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

@@ -35,7 +35,7 @@ vi.mock("../config/sessions.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("../config/sessions.js")>();
return {
...actual,
resolveStorePath: vi.fn(() => "/tmp/clawdbot-sessions.json"),
resolveStorePath: vi.fn(() => "/tmp/moltbot-sessions.json"),
updateLastRoute: (...args: unknown[]) => updateLastRouteMock(...args),
resolveSessionKey: vi.fn(),
};
@@ -64,7 +64,7 @@ describe("discord tool result dispatch", () => {
workspace: "/tmp/clawd",
},
},
session: { store: "/tmp/clawdbot-sessions.json" },
session: { store: "/tmp/moltbot-sessions.json" },
channels: {
discord: {
dm: { enabled: true, policy: "open" },
@@ -144,7 +144,7 @@ describe("discord tool result dispatch", () => {
workspace: "/tmp/clawd",
},
},
session: { store: "/tmp/clawdbot-sessions.json" },
session: { store: "/tmp/moltbot-sessions.json" },
channels: {
discord: {
dm: { enabled: true, policy: "open" },
@@ -224,7 +224,7 @@ describe("discord tool result dispatch", () => {
workspace: "/tmp/clawd",
},
},
session: { store: "/tmp/clawdbot-sessions.json" },
session: { store: "/tmp/moltbot-sessions.json" },
channels: {
discord: {
dm: { enabled: true, policy: "open" },
@@ -289,7 +289,7 @@ describe("discord tool result dispatch", () => {
mentionedEveryone: false,
mentionedUsers: [],
mentionedRoles: [],
author: { id: "bot-id", bot: true, username: "Clawdbot" },
author: { id: "bot-id", bot: true, username: "Moltbot" },
},
},
author: { id: "u1", bot: false, username: "Ada" },
@@ -338,7 +338,7 @@ describe("discord tool result dispatch", () => {
workspace: "/tmp/clawd",
},
},
session: { store: "/tmp/clawdbot-sessions.json" },
session: { store: "/tmp/moltbot-sessions.json" },
messages: { responsePrefix: "PFX" },
channels: {
discord: {
@@ -447,7 +447,7 @@ describe("discord tool result dispatch", () => {
const cfg = {
agent: { model: "anthropic/claude-opus-4-5", workspace: "/tmp/clawd" },
session: { store: "/tmp/clawdbot-sessions.json" },
session: { store: "/tmp/moltbot-sessions.json" },
channels: {
discord: {
dm: { enabled: true, policy: "open" },
@@ -556,7 +556,7 @@ describe("discord tool result dispatch", () => {
workspace: "/tmp/clawd",
},
},
session: { store: "/tmp/clawdbot-sessions.json" },
session: { store: "/tmp/moltbot-sessions.json" },
messages: { responsePrefix: "PFX" },
channels: {
discord: {