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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user