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

@@ -34,9 +34,9 @@ describe("agents helpers", () => {
bindings: [
{
agentId: "work",
match: { provider: "whatsapp", accountId: "biz" },
match: { channel: "whatsapp", accountId: "biz" },
},
{ agentId: "main", match: { provider: "telegram" } },
{ agentId: "main", match: { channel: "telegram" } },
],
};
@@ -86,7 +86,7 @@ describe("agents helpers", () => {
bindings: [
{
agentId: "main",
match: { provider: "whatsapp", accountId: "default" },
match: { channel: "whatsapp", accountId: "default" },
},
],
};
@@ -94,15 +94,15 @@ describe("agents helpers", () => {
const result = applyAgentBindings(cfg, [
{
agentId: "main",
match: { provider: "whatsapp", accountId: "default" },
match: { channel: "whatsapp", accountId: "default" },
},
{
agentId: "work",
match: { provider: "whatsapp", accountId: "default" },
match: { channel: "whatsapp", accountId: "default" },
},
{
agentId: "work",
match: { provider: "telegram" },
match: { channel: "telegram" },
},
]);
@@ -121,8 +121,8 @@ describe("agents helpers", () => {
],
},
bindings: [
{ agentId: "work", match: { provider: "whatsapp" } },
{ agentId: "home", match: { provider: "telegram" } },
{ agentId: "work", match: { channel: "whatsapp" } },
{ agentId: "home", match: { channel: "telegram" } },
],
tools: {
agentToAgent: { enabled: true, allow: ["work", "home"] },