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

@@ -57,7 +57,6 @@ beforeEach(() => {
config = {
messages: { responsePrefix: "PFX" },
signal: { autoStart: false, dmPolicy: "open", allowFrom: ["*"] },
routing: { allowFrom: [] },
};
sendMock.mockReset().mockResolvedValue(undefined);
replyMock.mockReset();

View File

@@ -80,8 +80,8 @@ export async function sendMessageSignal(
if (typeof accountInfo.config.mediaMaxMb === "number") {
return accountInfo.config.mediaMaxMb * 1024 * 1024;
}
if (typeof cfg.agent?.mediaMaxMb === "number") {
return cfg.agent.mediaMaxMb * 1024 * 1024;
if (typeof cfg.agents?.defaults?.mediaMaxMb === "number") {
return cfg.agents.defaults.mediaMaxMb * 1024 * 1024;
}
return 8 * 1024 * 1024;
})();