feat: multi-agent routing + multi-account providers

This commit is contained in:
Peter Steinberger
2026-01-06 18:25:37 +00:00
parent 50d4b17417
commit dbfa316d19
129 changed files with 3760 additions and 1126 deletions

View File

@@ -42,10 +42,10 @@ async function writeSessionStore(home: string) {
storePath,
JSON.stringify(
{
main: {
"agent:main:main": {
sessionId: "main-session",
updatedAt: Date.now(),
lastChannel: "webchat",
lastProvider: "webchat",
lastTo: "",
},
},
@@ -224,7 +224,7 @@ describe("runCronIsolatedAgentTurn", () => {
kind: "agentTurn",
message: "do it",
deliver: true,
channel: "whatsapp",
provider: "whatsapp",
bestEffortDeliver: false,
}),
message: "do it",
@@ -264,7 +264,7 @@ describe("runCronIsolatedAgentTurn", () => {
kind: "agentTurn",
message: "do it",
deliver: true,
channel: "whatsapp",
provider: "whatsapp",
bestEffortDeliver: true,
}),
message: "do it",
@@ -309,7 +309,7 @@ describe("runCronIsolatedAgentTurn", () => {
kind: "agentTurn",
message: "do it",
deliver: true,
channel: "telegram",
provider: "telegram",
to: "123",
}),
message: "do it",
@@ -361,7 +361,7 @@ describe("runCronIsolatedAgentTurn", () => {
kind: "agentTurn",
message: "do it",
deliver: true,
channel: "discord",
provider: "discord",
to: "channel:1122",
}),
message: "do it",
@@ -406,7 +406,7 @@ describe("runCronIsolatedAgentTurn", () => {
kind: "agentTurn",
message: "do it",
deliver: true,
channel: "telegram",
provider: "telegram",
to: "123",
}),
message: "do it",
@@ -450,7 +450,7 @@ describe("runCronIsolatedAgentTurn", () => {
kind: "agentTurn",
message: "do it",
deliver: true,
channel: "whatsapp",
provider: "whatsapp",
to: "+1234",
}),
message: "do it",
@@ -493,7 +493,7 @@ describe("runCronIsolatedAgentTurn", () => {
kind: "agentTurn",
message: "do it",
deliver: true,
channel: "telegram",
provider: "telegram",
to: "123",
}),
message: "do it",
@@ -537,7 +537,7 @@ describe("runCronIsolatedAgentTurn", () => {
kind: "agentTurn",
message: "do it",
deliver: true,
channel: "telegram",
provider: "telegram",
to: "123",
}),
message: "do it",
@@ -585,7 +585,7 @@ describe("runCronIsolatedAgentTurn", () => {
kind: "agentTurn",
message: "do it",
deliver: true,
channel: "telegram",
provider: "telegram",
to: "123",
}),
message: "do it",