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

@@ -35,7 +35,7 @@ vi.mock("../config/sessions.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("../config/sessions.js")>();
return {
...actual,
resolveStorePath: vi.fn(() => "/tmp/moltbot-sessions.json"),
resolveStorePath: vi.fn(() => "/tmp/openclaw-sessions.json"),
updateLastRoute: (...args: unknown[]) => updateLastRouteMock(...args),
resolveSessionKey: vi.fn(),
};
@@ -61,10 +61,10 @@ describe("discord tool result dispatch", () => {
agents: {
defaults: {
model: "anthropic/claude-opus-4-5",
workspace: "/tmp/clawd",
workspace: "/tmp/openclaw",
},
},
session: { store: "/tmp/moltbot-sessions.json" },
session: { store: "/tmp/openclaw-sessions.json" },
channels: {
discord: {
dm: { enabled: true, policy: "open" },
@@ -74,7 +74,7 @@ describe("discord tool result dispatch", () => {
},
messages: {
responsePrefix: "PFX",
groupChat: { mentionPatterns: ["\\bclawd\\b"] },
groupChat: { mentionPatterns: ["\\bopenclaw\\b"] },
},
} as ReturnType<typeof import("../config/config.js").loadConfig>;
@@ -112,7 +112,7 @@ describe("discord tool result dispatch", () => {
{
message: {
id: "m2",
content: "clawd: hello",
content: "openclaw: hello",
channelId: "c1",
timestamp: new Date().toISOString(),
type: MessageType.Default,
@@ -141,10 +141,10 @@ describe("discord tool result dispatch", () => {
agents: {
defaults: {
model: "anthropic/claude-opus-4-5",
workspace: "/tmp/clawd",
workspace: "/tmp/openclaw",
},
},
session: { store: "/tmp/moltbot-sessions.json" },
session: { store: "/tmp/openclaw-sessions.json" },
channels: {
discord: {
dm: { enabled: true, policy: "open" },
@@ -154,7 +154,7 @@ describe("discord tool result dispatch", () => {
},
messages: {
responsePrefix: "PFX",
groupChat: { mentionPatterns: ["\\bclawd\\b"] },
groupChat: { mentionPatterns: ["\\bopenclaw\\b"] },
},
} as ReturnType<typeof import("../config/config.js").loadConfig>;
@@ -192,7 +192,7 @@ describe("discord tool result dispatch", () => {
{
message: {
id: "m2",
content: "clawd: hello",
content: "openclaw: hello",
channelId: "c1",
timestamp: new Date().toISOString(),
type: MessageType.Default,
@@ -221,10 +221,10 @@ describe("discord tool result dispatch", () => {
agents: {
defaults: {
model: "anthropic/claude-opus-4-5",
workspace: "/tmp/clawd",
workspace: "/tmp/openclaw",
},
},
session: { store: "/tmp/moltbot-sessions.json" },
session: { store: "/tmp/openclaw-sessions.json" },
channels: {
discord: {
dm: { enabled: true, policy: "open" },
@@ -289,7 +289,7 @@ describe("discord tool result dispatch", () => {
mentionedEveryone: false,
mentionedUsers: [],
mentionedRoles: [],
author: { id: "bot-id", bot: true, username: "Moltbot" },
author: { id: "bot-id", bot: true, username: "OpenClaw" },
},
},
author: { id: "u1", bot: false, username: "Ada" },
@@ -335,10 +335,10 @@ describe("discord tool result dispatch", () => {
agents: {
defaults: {
model: "anthropic/claude-opus-4-5",
workspace: "/tmp/clawd",
workspace: "/tmp/openclaw",
},
},
session: { store: "/tmp/moltbot-sessions.json" },
session: { store: "/tmp/openclaw-sessions.json" },
messages: { responsePrefix: "PFX" },
channels: {
discord: {
@@ -446,8 +446,8 @@ describe("discord tool result dispatch", () => {
});
const cfg = {
agent: { model: "anthropic/claude-opus-4-5", workspace: "/tmp/clawd" },
session: { store: "/tmp/moltbot-sessions.json" },
agent: { model: "anthropic/claude-opus-4-5", workspace: "/tmp/openclaw" },
session: { store: "/tmp/openclaw-sessions.json" },
channels: {
discord: {
dm: { enabled: true, policy: "open" },
@@ -553,10 +553,10 @@ describe("discord tool result dispatch", () => {
agents: {
defaults: {
model: "anthropic/claude-opus-4-5",
workspace: "/tmp/clawd",
workspace: "/tmp/openclaw",
},
},
session: { store: "/tmp/moltbot-sessions.json" },
session: { store: "/tmp/openclaw-sessions.json" },
messages: { responsePrefix: "PFX" },
channels: {
discord: {