feat(FN-1776): expose AgentStore for SSE event forwarding with ephemeral agent filtering

- Expose getAgentStore from runtime and engine packages
- Add includeSystem filter to getOrgTree API endpoint
- Wire AgentStore into SSE endpoint for event forwarding
- Forward agent events through the SSE pipeline
- Exclude ephemeral agents from org tree API and UI
- Filter ephemeral agents in useAgents hook
- Update AgentsView test to expect includeSystem filter
- Document agent SSE event forwarding architecture
This commit is contained in:
Fusion
2026-04-16 01:44:54 -07:00
committed by gsxdsm
parent 8a3c192301
commit 45b6b5cfad
12 changed files with 85 additions and 15 deletions

View File

@@ -710,6 +710,14 @@ export class InProcessRuntime
return this.taskStore;
}
/**
* Get the AgentStore instance (if initialized).
* Returns undefined before start() or if init fails.
*/
getAgentStore(): import("@fusion/core").AgentStore | undefined {
return this.agentStore;
}
/**
* Get the project's Scheduler instance.
* @throws Error if runtime has not been started