mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 17:28:28 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -13,16 +13,16 @@ describe("normalizeConfigPaths", () => {
|
||||
const cfg = normalizeConfigPaths({
|
||||
tools: { exec: { pathPrepend: ["~/bin"] } },
|
||||
plugins: { load: { paths: ["~/plugins/a"] } },
|
||||
logging: { file: "~/.clawdbot/logs/moltbot.log" },
|
||||
logging: { file: "~/.openclaw/logs/openclaw.log" },
|
||||
hooks: {
|
||||
path: "~/.clawdbot/hooks.json5",
|
||||
path: "~/.openclaw/hooks.json5",
|
||||
transformsDir: "~/hooks-xform",
|
||||
},
|
||||
channels: {
|
||||
telegram: {
|
||||
accounts: {
|
||||
personal: {
|
||||
tokenFile: "~/.clawdbot/telegram.token",
|
||||
tokenFile: "~/.openclaw/telegram.token",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -36,7 +36,7 @@ describe("normalizeConfigPaths", () => {
|
||||
{
|
||||
id: "main",
|
||||
workspace: "~/ws-agent",
|
||||
agentDir: "~/.clawdbot/agents/main",
|
||||
agentDir: "~/.openclaw/agents/main",
|
||||
identity: {
|
||||
name: "~not-a-path",
|
||||
},
|
||||
@@ -47,19 +47,19 @@ describe("normalizeConfigPaths", () => {
|
||||
});
|
||||
|
||||
expect(cfg.plugins?.load?.paths?.[0]).toBe(path.join(home, "plugins", "a"));
|
||||
expect(cfg.logging?.file).toBe(path.join(home, ".clawdbot", "logs", "moltbot.log"));
|
||||
expect(cfg.hooks?.path).toBe(path.join(home, ".clawdbot", "hooks.json5"));
|
||||
expect(cfg.logging?.file).toBe(path.join(home, ".openclaw", "logs", "openclaw.log"));
|
||||
expect(cfg.hooks?.path).toBe(path.join(home, ".openclaw", "hooks.json5"));
|
||||
expect(cfg.hooks?.transformsDir).toBe(path.join(home, "hooks-xform"));
|
||||
expect(cfg.tools?.exec?.pathPrepend?.[0]).toBe(path.join(home, "bin"));
|
||||
expect(cfg.channels?.telegram?.accounts?.personal?.tokenFile).toBe(
|
||||
path.join(home, ".clawdbot", "telegram.token"),
|
||||
path.join(home, ".openclaw", "telegram.token"),
|
||||
);
|
||||
expect(cfg.channels?.imessage?.accounts?.personal?.dbPath).toBe(
|
||||
path.join(home, "Library", "Messages", "chat.db"),
|
||||
);
|
||||
expect(cfg.agents?.defaults?.workspace).toBe(path.join(home, "ws-default"));
|
||||
expect(cfg.agents?.list?.[0]?.workspace).toBe(path.join(home, "ws-agent"));
|
||||
expect(cfg.agents?.list?.[0]?.agentDir).toBe(path.join(home, ".clawdbot", "agents", "main"));
|
||||
expect(cfg.agents?.list?.[0]?.agentDir).toBe(path.join(home, ".openclaw", "agents", "main"));
|
||||
expect(cfg.agents?.list?.[0]?.sandbox?.workspaceRoot).toBe(path.join(home, "sandbox-root"));
|
||||
|
||||
// Non-path key => do not treat "~" as home expansion.
|
||||
|
||||
Reference in New Issue
Block a user