2 Commits

Author SHA1 Message Date
c6d880fd71 feat(dispatcher): use server-side incremental query (after=) from #26
- fetchEvents no longer reverses results (after= returns ASC)
- Watcher removes client-side id filtering (server handles it)
- Updated test mock to match ASC order
2026-04-13 08:12:46 +00:00
a3aa77eb31 feat: add event stream discovery mode for P0 Task system
- Add discovery config with agentId and optional eventTypes filtering
- Add fetchEvents method to OGraphClient for event stream access
- Update Watcher to support both projection and event stream modes
- Update Scheduler to format event stream messages appropriately
- Add comprehensive tests for event stream diff logic and API client
- Maintain backward compatibility with existing projection mode
- Support OGRAPH_AGENT_ID environment variable override

This enables P0 Task system to discover changes from event streams
without requiring Projection fixes (#19). Event stream mode activated
when config.discovery is present, otherwise falls back to projection mode.
2026-04-13 04:52:07 +00:00