refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

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