feat: wire multi-agent config and routing

Co-authored-by: Mark Pors <1078320+pors@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-01-09 12:44:23 +00:00
parent 81beda0772
commit 7b81d97ec2
189 changed files with 4340 additions and 2903 deletions

View File

@@ -78,9 +78,8 @@ beforeEach(() => {
groups: { "*": { requireMention: true } },
},
session: { mainKey: "main" },
routing: {
messages: {
groupChat: { mentionPatterns: ["@clawd"] },
allowFrom: [],
},
};
requestMock.mockReset().mockImplementation((method: string) => {
@@ -159,7 +158,7 @@ describe("monitorIMessageProvider", () => {
it("allows group messages when requireMention is true but no mentionPatterns exist", async () => {
config = {
...config,
routing: { groupChat: { mentionPatterns: [] }, allowFrom: [] },
messages: { groupChat: { mentionPatterns: [] } },
imessage: { groups: { "*": { requireMention: true } } },
};
const run = monitorIMessageProvider();