refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger
2026-01-27 12:19:58 +00:00
parent 83460df96f
commit 6d16a658e5
1839 changed files with 11250 additions and 11199 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export async function ensureMediaHosted(
if (needsServerStart && !opts.startServer) {
await fs.rm(saved.path).catch(() => {});
throw new Error(
`Media hosting requires the webhook/Funnel server. Start \`${formatCliCommand("clawdbot webhook")}\`/\`${formatCliCommand("clawdbot up")}\` or re-run with --serve-media.`,
`Media hosting requires the webhook/Funnel server. Start \`${formatCliCommand("moltbot webhook")}\`/\`${formatCliCommand("moltbot up")}\` or re-run with --serve-media.`,
);
}
if (needsServerStart && opts.startServer) {
+1 -1
View File
@@ -120,7 +120,7 @@ function readJpegExifOrientation(buffer: Buffer): number | null {
}
async function withTempDir<T>(fn: (dir: string) => Promise<T>): Promise<T> {
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-img-"));
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-img-"));
try {
return await fn(dir);
} finally {
+1 -1
View File
@@ -165,7 +165,7 @@ export async function fetchWithGuard(params: {
try {
const response = await fetch(parsedUrl, {
signal: controller.signal,
headers: { "User-Agent": "Clawdbot-Gateway/1.0" },
headers: { "User-Agent": "Moltbot-Gateway/1.0" },
redirect: "manual",
dispatcher,
} as RequestInit & { dispatcher: Dispatcher });
+1 -1
View File
@@ -3,7 +3,7 @@ import path from "node:path";
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
const realOs = await vi.importActual<typeof import("node:os")>("node:os");
const HOME = path.join(realOs.tmpdir(), "clawdbot-home-header-ext-test");
const HOME = path.join(realOs.tmpdir(), "moltbot-home-header-ext-test");
vi.mock("node:os", () => ({
default: { homedir: () => HOME, tmpdir: () => realOs.tmpdir() },
+1 -1
View File
@@ -6,7 +6,7 @@ import JSZip from "jszip";
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
const realOs = await vi.importActual<typeof import("node:os")>("node:os");
const HOME = path.join(realOs.tmpdir(), "clawdbot-home-redirect");
const HOME = path.join(realOs.tmpdir(), "moltbot-home-redirect");
const mockRequest = vi.fn();
vi.doMock("node:os", () => ({
+1 -1
View File
@@ -27,7 +27,7 @@ describe("media store", () => {
beforeAll(async () => {
snapshotEnv();
home = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-test-home-"));
home = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-test-home-"));
process.env.HOME = home;
process.env.USERPROFILE = home;
process.env.CLAWDBOT_STATE_DIR = path.join(home, ".clawdbot");