managarten/packages/shared-branding/src
Till JS d6d50e4d94 feat(brain): add meditate+sleep, parallelize DaySnapshot, deprecate _activity
Final optimization pass for the Companion Brain.

New modules (31 total):
- Meditate: MeditationCompleted event + log_meditation tool
- Sleep: SleepLogged event + log_sleep tool

Performance: DaySnapshot buildSnapshot() now runs all 6 Dexie
queries + 4 decryption passes in parallel via Promise.all instead
of sequentially. Estimated 3-5x speedup on first render.

Cleanup: trackActivity() in database.ts is now a no-op — the
_activity table is no longer written to. getRecentActivity() in
activity.ts delegates to queryEvents() from the Domain Event Store,
converting domain events to the legacy ActivityEntry shape.

Totals: 69 event types, 49 tools across 31 modules.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 23:37:33 +02:00
..
logos refactor: rename planta → plants, clean up codebase 2026-04-12 18:59:44 +02:00
app-icons.ts feat(brain): add meditate+sleep, parallelize DaySnapshot, deprecate _activity 2026-04-13 23:37:33 +02:00
AppLogo.svelte style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
AppLogoWithName.svelte style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
config.ts refactor: rename planta → plants, clean up codebase 2026-04-12 18:59:44 +02:00
index.ts refactor: rename planta → plants, clean up codebase 2026-04-12 18:59:44 +02:00
mana-apps.spec.ts refactor(shared-branding): derive APP_URLS from APP_ICONS 2026-04-09 15:14:52 +02:00
mana-apps.ts feat(brain): add meditate+sleep, parallelize DaySnapshot, deprecate _activity 2026-04-13 23:37:33 +02:00
ManaIcon.svelte style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
types.ts refactor: rename planta → plants, clean up codebase 2026-04-12 18:59:44 +02:00