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

@@ -36,7 +36,7 @@ vi.mock("../pairing/pairing-store.js", () => ({
}));
vi.mock("../config/sessions.js", () => ({
resolveStorePath: vi.fn(() => "/tmp/moltbot-sessions.json"),
resolveStorePath: vi.fn(() => "/tmp/openclaw-sessions.json"),
updateLastRoute: (...args: unknown[]) => updateLastRouteMock(...args),
readSessionUpdatedAt: vi.fn(() => undefined),
recordSessionMetaFromInbound: vi.fn().mockResolvedValue(undefined),
@@ -80,7 +80,7 @@ beforeEach(() => {
},
session: { mainKey: "main" },
messages: {
groupChat: { mentionPatterns: ["@clawd"] },
groupChat: { mentionPatterns: ["@openclaw"] },
},
};
requestMock.mockReset().mockImplementation((method: string) => {
@@ -219,7 +219,7 @@ describe("monitorIMessageProvider", () => {
chat_id: 123,
sender: "+15550001111",
is_from_me: false,
text: "@clawd hello",
text: "@openclaw hello",
is_group: true,
},
},
@@ -364,7 +364,7 @@ describe("monitorIMessageProvider", () => {
chat_id: 42,
sender: "+15550002222",
is_from_me: false,
text: "@clawd ping",
text: "@openclaw ping",
is_group: true,
chat_name: "Lobster Squad",
participants: ["+1555", "+1556"],
@@ -413,7 +413,7 @@ describe("monitorIMessageProvider", () => {
chat_id: 202,
sender: "+15550003333",
is_from_me: false,
text: "@clawd hi",
text: "@openclaw hi",
is_group: true,
},
},
@@ -448,7 +448,7 @@ describe("monitorIMessageProvider", () => {
chat_id: 303,
sender: "+15550003333",
is_from_me: false,
text: "@clawd hi",
text: "@openclaw hi",
is_group: true,
},
},
@@ -474,7 +474,7 @@ describe("monitorIMessageProvider", () => {
chat_name: "Test Group",
sender: "+15550001111",
is_from_me: false,
text: "@clawd hi",
text: "@openclaw hi",
is_group: true,
created_at: "2026-01-17T00:00:00Z",
},
@@ -489,7 +489,7 @@ describe("monitorIMessageProvider", () => {
const ctx = replyMock.mock.calls[0]?.[0];
const body = ctx?.Body ?? "";
expect(body).toContain("Test Group id:99");
expect(body).toContain("+15550001111: @clawd hi");
expect(body).toContain("+15550001111: @openclaw hi");
});
it("includes reply context when imessage reply metadata is present", async () => {