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

@@ -376,7 +376,7 @@ export async function monitorWebChannel(
if (loggedOut) {
runtime.error(
`WhatsApp session logged out. Run \`${formatCliCommand("clawdbot channels login --channel web")}\` to relink.`,
`WhatsApp session logged out. Run \`${formatCliCommand("moltbot channels login --channel web")}\` to relink.`,
);
await closeListener();
break;

View File

@@ -9,7 +9,7 @@ const baseConfig = {
groups: { "*": { requireMention: true } },
},
},
session: { store: "/tmp/clawdbot-sessions.json" },
session: { store: "/tmp/moltbot-sessions.json" },
} as const;
describe("applyGroupGating", () => {

View File

@@ -252,7 +252,7 @@ export async function processMessage(params: {
const responsePrefix =
prefixContext.responsePrefix ??
(configuredResponsePrefix === undefined && isSelfChat
? (resolveIdentityNamePrefix(params.cfg, params.route.agentId) ?? "[clawdbot]")
? (resolveIdentityNamePrefix(params.cfg, params.route.agentId) ?? "[moltbot]")
: undefined);
const ctxPayload = finalizeInboundContext({

View File

@@ -12,7 +12,7 @@ describe("getSessionSnapshot", () => {
vi.useFakeTimers();
vi.setSystemTime(new Date(2026, 0, 18, 5, 0, 0));
try {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-snapshot-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-snapshot-"));
const storePath = path.join(root, "sessions.json");
const sessionKey = "agent:main:whatsapp:dm:s1";