test(FN-4249): address Step 2 review typing feedback

Fusion-Task-Id: FN-4249
Fusion-Task-Lineage: e0052fae-38e1-4d66-8240-43d26f5790bb
This commit is contained in:
Fusion
2026-05-12 22:08:57 -07:00
committed by gsxdsm
parent 7006a083d0
commit 081bb74939

View File

@@ -79,7 +79,7 @@ function createAgentStore(agents: MutableAgent[]): AgentStore {
return {
getAgent: vi.fn(async (id: string) => byId.get(id) ?? null),
listAgents: vi.fn(async (filters?: { state?: Agent["state"] }) => {
listAgents: vi.fn(async (filters?: { state?: Agent["state"]; includeEphemeral?: boolean }) => {
const agents = Array.from(byId.values());
if (filters?.state) return agents.filter((agent) => agent.state === filters.state);
return agents;