refactor!: rename chat providers to channels

This commit is contained in:
Peter Steinberger
2026-01-13 06:16:43 +00:00
parent 0cd632ba84
commit 90342a4f3a
393 changed files with 8004 additions and 6737 deletions

View File

@@ -17,15 +17,17 @@ describe("normalizeConfigPaths", () => {
path: "~/.clawdbot/hooks.json5",
transformsDir: "~/hooks-xform",
},
telegram: {
accounts: {
personal: {
tokenFile: "~/.clawdbot/telegram.token",
channels: {
telegram: {
accounts: {
personal: {
tokenFile: "~/.clawdbot/telegram.token",
},
},
},
},
imessage: {
accounts: { personal: { dbPath: "~/Library/Messages/chat.db" } },
imessage: {
accounts: { personal: { dbPath: "~/Library/Messages/chat.db" } },
},
},
agents: {
defaults: { workspace: "~/ws-default" },
@@ -51,10 +53,10 @@ describe("normalizeConfigPaths", () => {
);
expect(cfg.hooks?.path).toBe(path.join(home, ".clawdbot", "hooks.json5"));
expect(cfg.hooks?.transformsDir).toBe(path.join(home, "hooks-xform"));
expect(cfg.telegram?.accounts?.personal?.tokenFile).toBe(
expect(cfg.channels?.telegram?.accounts?.personal?.tokenFile).toBe(
path.join(home, ".clawdbot", "telegram.token"),
);
expect(cfg.imessage?.accounts?.personal?.dbPath).toBe(
expect(cfg.channels?.imessage?.accounts?.personal?.dbPath).toBe(
path.join(home, "Library", "Messages", "chat.db"),
);
expect(cfg.agents?.defaults?.workspace).toBe(