feat(backend): Add EventBus service with Redis Pub/Sub

- Add EventBus class for real-time event communication
- Add Event schema with type-safe event types (agent, issue, sprint events)
- Add typed payload schemas (AgentSpawnedPayload, AgentMessagePayload)
- Add channel helpers for project/agent/user scoping
- Add subscribe_sse generator for SSE streaming
- Add reconnection support via Last-Event-ID
- Add keepalive mechanism for connection health
- Add 44 comprehensive tests with mocked Redis

Implements #33
This commit is contained in:
2025-12-30 02:07:51 +01:00
parent 1c04c0bb1a
commit 29cb69c0d7
3 changed files with 1932 additions and 0 deletions

File diff suppressed because it is too large Load Diff