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

@@ -42,7 +42,7 @@ describe("subagent registry persistence", () => {
});
it("persists runs to disk and resumes after restart", async () => {
tempStateDir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-subagent-"));
tempStateDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-subagent-"));
process.env.CLAWDBOT_STATE_DIR = tempStateDir;
vi.resetModules();
@@ -102,7 +102,7 @@ describe("subagent registry persistence", () => {
});
it("skips cleanup when cleanupHandled was persisted", async () => {
tempStateDir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-subagent-"));
tempStateDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-subagent-"));
process.env.CLAWDBOT_STATE_DIR = tempStateDir;
const registryPath = path.join(tempStateDir, "subagents", "runs.json");
@@ -142,7 +142,7 @@ describe("subagent registry persistence", () => {
});
it("maps legacy announce fields into cleanup state", async () => {
tempStateDir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-subagent-"));
tempStateDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-subagent-"));
process.env.CLAWDBOT_STATE_DIR = tempStateDir;
const registryPath = path.join(tempStateDir, "subagents", "runs.json");
@@ -183,7 +183,7 @@ describe("subagent registry persistence", () => {
});
it("retries cleanup announce after a failed announce", async () => {
tempStateDir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-subagent-"));
tempStateDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-subagent-"));
process.env.CLAWDBOT_STATE_DIR = tempStateDir;
const registryPath = path.join(tempStateDir, "subagents", "runs.json");