mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 13:59:40 +02:00
feat(brain): add Domain Event Bus and emit events from 5 pilot modules
Phase 1 of the Companion Brain architecture. Introduces a typed, synchronous event bus with microtask-scheduled handlers, an append-only event store persisted to IndexedDB (_events table, v10 schema), and semantic domain events emitted from module stores. Pilot modules with emit() calls: - Todo: TaskCreated, TaskCompleted, TaskUncompleted, TaskDeleted, SubtasksUpdated - Calendar: CalendarEventCreated, CalendarEventUpdated, CalendarEventDeleted - Drink: DrinkLogged, DrinkEntryDeleted, DrinkEntryUndone - Nutriphi: MealLogged, MealFromPhotoLogged, MealDeleted - Places: PlaceCreated, PlaceDeleted, PlaceVisited, LocationLogged, TrackingStarted, TrackingStopped Also includes the full architecture plan at docs/architecture/COMPANION_BRAIN_ARCHITECTURE.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f5b9d0a31f
commit
e927c1f10f
14 changed files with 2116 additions and 3 deletions
1333
docs/architecture/COMPANION_BRAIN_ARCHITECTURE.md
Normal file
1333
docs/architecture/COMPANION_BRAIN_ARCHITECTURE.md
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue