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

View File

@@ -25,10 +25,10 @@ describe("onboard (non-interactive): token auth", () => {
delete process.env.CLAWDBOT_GATEWAY_TOKEN;
delete process.env.CLAWDBOT_GATEWAY_PASSWORD;
const tempHome = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-onboard-token-"));
const tempHome = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-onboard-token-"));
process.env.HOME = tempHome;
process.env.CLAWDBOT_STATE_DIR = tempHome;
process.env.CLAWDBOT_CONFIG_PATH = path.join(tempHome, "clawdbot.json");
process.env.CLAWDBOT_CONFIG_PATH = path.join(tempHome, "moltbot.json");
vi.resetModules();
const token = `sk-ant-oat01-${"a".repeat(80)}`;
@@ -59,8 +59,8 @@ describe("onboard (non-interactive): token auth", () => {
runtime,
);
const { CONFIG_PATH_CLAWDBOT } = await import("../config/config.js");
const cfg = JSON.parse(await fs.readFile(CONFIG_PATH_CLAWDBOT, "utf8")) as {
const { CONFIG_PATH } = await import("../config/config.js");
const cfg = JSON.parse(await fs.readFile(CONFIG_PATH, "utf8")) as {
auth?: {
profiles?: Record<string, { provider?: string; mode?: string }>;
};