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

@@ -21,7 +21,7 @@ describe("resolveSendPolicy", () => {
expect(resolveSendPolicy({ cfg, entry })).toBe("deny");
});
it("rule match by surface + chatType", () => {
it("rule match by provider + chatType", () => {
const cfg = {
session: {
sendPolicy: {
@@ -29,7 +29,7 @@ describe("resolveSendPolicy", () => {
rules: [
{
action: "deny",
match: { surface: "discord", chatType: "group" },
match: { provider: "discord", chatType: "group" },
},
],
},
@@ -38,7 +38,7 @@ describe("resolveSendPolicy", () => {
const entry: SessionEntry = {
sessionId: "s",
updatedAt: 0,
surface: "discord",
provider: "discord",
chatType: "group",
};
expect(