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

@@ -53,7 +53,7 @@ describe("buildPairingReply", () => {
expect(text).toContain(`Pairing code: ${testCase.code}`);
// CLI commands should respect CLAWDBOT_PROFILE when set (most tests run with isolated profile)
const commandRe = new RegExp(
`(?:clawdbot|moltbot) --profile isolated pairing approve ${testCase.channel} <code>`,
`(?:moltbot|moltbot) --profile isolated pairing approve ${testCase.channel} <code>`,
);
expect(text).toMatch(commandRe);
});

View File

@@ -8,13 +8,13 @@ export function buildPairingReply(params: {
}): string {
const { channel, idLine, code } = params;
return [
"Clawdbot: access not configured.",
"Moltbot: access not configured.",
"",
idLine,
"",
`Pairing code: ${code}`,
"",
"Ask the bot owner to approve with:",
formatCliCommand(`clawdbot pairing approve ${channel} <code>`),
formatCliCommand(`moltbot pairing approve ${channel} <code>`),
].join("\n");
}

View File

@@ -10,7 +10,7 @@ import { listChannelPairingRequests, upsertChannelPairingRequest } from "./pairi
async function withTempStateDir<T>(fn: (stateDir: string) => Promise<T>) {
const previous = process.env.CLAWDBOT_STATE_DIR;
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-pairing-"));
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-pairing-"));
process.env.CLAWDBOT_STATE_DIR = dir;
try {
return await fn(dir);