feat(M4-013,M5-001,M5-002,M5-003): routing e2e tests, agent config loading, model+agent switching (#323)
Some checks failed
ci/woodpecker/push/ci Pipeline failed

Co-authored-by: Jason Woltje <jason@diversecanvas.com>
Co-committed-by: Jason Woltje <jason@diversecanvas.com>
This commit was merged in pull request #323.
This commit is contained in:
2026-03-23 01:09:09 +00:00
committed by jason.woltje
parent 1035d13fc0
commit 701bb69e6c
5 changed files with 277 additions and 10 deletions

View File

@@ -40,6 +40,7 @@ const mockRedis = {
del: vi.fn(),
};
// Mock agent config returned by brain.agents.findByName for "my-agent-id"
const mockAgentConfig = {
id: 'my-agent-id',
name: 'my-agent-id',
@@ -67,6 +68,10 @@ const mockBrain = {
},
};
const mockChatGateway = {
broadcastSessionInfo: vi.fn(),
};
function buildService(): CommandExecutorService {
return new CommandExecutorService(
mockRegistry as never,
@@ -76,7 +81,7 @@ function buildService(): CommandExecutorService {
mockRedis as never,
mockBrain as never,
null,
null,
mockChatGateway as never,
);
}