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

@@ -1,6 +1,6 @@
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import { setActivePluginRegistry } from "../../plugins/runtime.js";
import { createIMessageTestPlugin, createTestRegistry } from "../../test-utils/channel-plugins.js";
import { slackPlugin } from "../../../extensions/slack/src/channel.js";
@@ -26,7 +26,7 @@ const slackConfig = {
appToken: "xapp-test",
},
},
} as ClawdbotConfig;
} as MoltbotConfig;
const whatsappConfig = {
channels: {
@@ -34,7 +34,7 @@ const whatsappConfig = {
allowFrom: ["*"],
},
},
} as ClawdbotConfig;
} as MoltbotConfig;
describe("runMessageAction context isolation", () => {
beforeEach(async () => {
@@ -263,7 +263,7 @@ describe("runMessageAction context isolation", () => {
token: "tg-test",
},
},
} as ClawdbotConfig;
} as MoltbotConfig;
const result = await runMessageAction({
cfg: multiConfig,
@@ -305,7 +305,7 @@ describe("runMessageAction context isolation", () => {
},
},
},
} as ClawdbotConfig;
} as MoltbotConfig;
await expect(
runMessageAction({
@@ -423,7 +423,7 @@ describe("runMessageAction sendAttachment hydration", () => {
password: "test-password",
},
},
} as ClawdbotConfig;
} as MoltbotConfig;
const result = await runMessageAction({
cfg,
@@ -491,7 +491,7 @@ describe("runMessageAction accountId defaults", () => {
it("propagates defaultAccountId into params", async () => {
await runMessageAction({
cfg: {} as ClawdbotConfig,
cfg: {} as MoltbotConfig,
action: "send",
params: {
channel: "discord",