feat(FN-2673): stream automation schedule events over SSE
- Wire AutomationStore into dashboard SSE setup for both default and project-scoped /api/events streams - Emit schedule:created, schedule:updated, schedule:deleted, and schedule:run events to connected SSE clients - Add SSE coverage for automation event subscription, relay payloads, cleanup on disconnect, and graceful behavior without automation store - Add server events integration coverage for automationStore wiring and document automation schedule events in architecture docs
This commit is contained in:
@@ -430,7 +430,7 @@ Key server capabilities:
|
||||
|
||||
### Real-time channels
|
||||
- **SSE**: `/api/events` (`sse.ts`)
|
||||
- Emits `task:*`, mission events, AI session updates
|
||||
- Emits `task:*`, mission events, AI session updates, and automation schedule events (`schedule:created`, `schedule:updated`, `schedule:deleted`, `schedule:run`)
|
||||
- Project-scoped: resolves project context from query param or engine manager
|
||||
- **Chat streaming**: `/api/chat/sessions/:id/messages` (`routes.ts` + `chat.ts`)
|
||||
- Streams assistant responses as SSE events for chat sessions
|
||||
|
||||
Reference in New Issue
Block a user