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

@@ -6,7 +6,7 @@ import {
setConfigOverride,
unsetConfigOverride,
} from "./runtime-overrides.js";
import type { ClawdbotConfig } from "./types.js";
import type { MoltbotConfig } from "./types.js";
describe("runtime overrides", () => {
beforeEach(() => {
@@ -15,8 +15,8 @@ describe("runtime overrides", () => {
it("sets and applies nested overrides", () => {
const cfg = {
messages: { responsePrefix: "[clawdbot]" },
} as ClawdbotConfig;
messages: { responsePrefix: "[moltbot]" },
} as MoltbotConfig;
setConfigOverride("messages.responsePrefix", "[debug]");
const next = applyConfigOverrides(cfg);
expect(next.messages?.responsePrefix).toBe("[debug]");
@@ -25,7 +25,7 @@ describe("runtime overrides", () => {
it("merges object overrides without clobbering siblings", () => {
const cfg = {
channels: { whatsapp: { dmPolicy: "pairing", allowFrom: ["+1"] } },
} as ClawdbotConfig;
} as MoltbotConfig;
setConfigOverride("channels.whatsapp.dmPolicy", "open");
const next = applyConfigOverrides(cfg);
expect(next.channels?.whatsapp?.dmPolicy).toBe("open");