refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger committed 2026-01-27 12:21:02 +00:00
1 parent 83460df96f
commit 6d16a658e5
1839 files changed
+11250 -11199

No files matched your search

+5 -5
View File
@@ -65,8 +65,8 @@ describe("normalizeForwardedContext", () => {
it("handles legacy forwards with signatures", () => {
const ctx = normalizeForwardedContext({
forward_from_chat: {
title: "Clawdbot Updates",
username: "clawdbot",
title: "Moltbot Updates",
username: "moltbot",
id: 99,
type: "channel",
},
@@ -74,11 +74,11 @@ describe("normalizeForwardedContext", () => {
forward_date: 789,
} as any);
expect(ctx).not.toBeNull();
expect(ctx?.from).toBe("Clawdbot Updates (Stan)");
expect(ctx?.from).toBe("Moltbot Updates (Stan)");
expect(ctx?.fromType).toBe("legacy_channel");
expect(ctx?.fromId).toBe("99");
expect(ctx?.fromUsername).toBe("clawdbot");
expect(ctx?.fromTitle).toBe("Clawdbot Updates");
expect(ctx?.fromUsername).toBe("moltbot");
expect(ctx?.fromTitle).toBe("Moltbot Updates");
expect(ctx?.fromSignature).toBe("Stan");
expect(ctx?.date).toBe(789);
});