refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions
+10 -10
View File
@@ -4,7 +4,7 @@ import path from "node:path";
import { afterEach, describe, expect, it, vi } from "vitest";
import type { MoltbotConfig } from "../src/config/config.js";
import type { OpenClawConfig } from "../src/config/config.js";
import type { MsgContext } from "../src/auto-reply/templating.js";
const makeTempDir = async (prefix: string) => await fs.mkdtemp(path.join(os.tmpdir(), prefix));
@@ -16,7 +16,7 @@ const writeExecutable = async (dir: string, name: string, content: string) => {
};
const makeTempMedia = async (ext: string) => {
const dir = await makeTempDir("moltbot-media-e2e-");
const dir = await makeTempDir("openclaw-media-e2e-");
const filePath = path.join(dir, `sample${ext}`);
await fs.writeFile(filePath, "audio");
return { dir, filePath };
@@ -52,8 +52,8 @@ describe("media understanding auto-detect (e2e)", () => {
it("uses sherpa-onnx-offline when available", async () => {
const snapshot = envSnapshot();
try {
const binDir = await makeTempDir("moltbot-bin-sherpa-");
const modelDir = await makeTempDir("moltbot-sherpa-model-");
const binDir = await makeTempDir("openclaw-bin-sherpa-");
const modelDir = await makeTempDir("openclaw-sherpa-model-");
tempPaths.push(binDir, modelDir);
await fs.writeFile(path.join(modelDir, "tokens.txt"), "a");
@@ -79,7 +79,7 @@ describe("media understanding auto-detect (e2e)", () => {
MediaPath: filePath,
MediaType: "audio/wav",
};
const cfg: MoltbotConfig = { tools: { media: { audio: {} } } };
const cfg: OpenClawConfig = { tools: { media: { audio: {} } } };
await applyMediaUnderstanding({ ctx, cfg });
@@ -92,8 +92,8 @@ describe("media understanding auto-detect (e2e)", () => {
it("uses whisper-cli when sherpa is missing", async () => {
const snapshot = envSnapshot();
try {
const binDir = await makeTempDir("moltbot-bin-whispercpp-");
const modelDir = await makeTempDir("moltbot-whispercpp-model-");
const binDir = await makeTempDir("openclaw-bin-whispercpp-");
const modelDir = await makeTempDir("openclaw-whispercpp-model-");
tempPaths.push(binDir, modelDir);
const modelPath = path.join(modelDir, "tiny.bin");
@@ -124,7 +124,7 @@ describe("media understanding auto-detect (e2e)", () => {
MediaPath: filePath,
MediaType: "audio/wav",
};
const cfg: MoltbotConfig = { tools: { media: { audio: {} } } };
const cfg: OpenClawConfig = { tools: { media: { audio: {} } } };
await applyMediaUnderstanding({ ctx, cfg });
@@ -137,7 +137,7 @@ describe("media understanding auto-detect (e2e)", () => {
it("uses gemini CLI for images when available", async () => {
const snapshot = envSnapshot();
try {
const binDir = await makeTempDir("moltbot-bin-gemini-");
const binDir = await makeTempDir("openclaw-bin-gemini-");
tempPaths.push(binDir);
await writeExecutable(
@@ -157,7 +157,7 @@ describe("media understanding auto-detect (e2e)", () => {
MediaPath: filePath,
MediaType: "image/png",
};
const cfg: MoltbotConfig = { tools: { media: { image: {} } } };
const cfg: OpenClawConfig = { tools: { media: { image: {} } } };
await applyMediaUnderstanding({ ctx, cfg });