learning_ai_clock/backend/src/modules
saravanakumardb1 ea5adcc6ca fix(backend): harden Phase A endpoints — Zod validation, feature flag gate, state filtering
3 bugs fixed in recent Phase A code:

1. POST /api/context-message: Add Zod schema validation, feature flag gate
   (ai_context_messages.enabled), and safe body parsing. Previously had no
   validation and unsafe 'as' cast that could null-ptr on missing body.

2. GET /api/timers/availability: Filter out dismissed/completed/fired timers.
   Previously included inactive timers in occupied intervals, causing the
   endpoint to report less free time than actually available.

3. agent-actions/routes.ts: Import PRODUCT_ID from product-config.ts instead
   of hardcoding 'chronomind' string. Ensures consistency if product identity
   changes.

Also: Add EXTRACTION_SERVICE_URL + PLATFORM_SERVICE_URL to .env.example.

All 219 backend tests pass. No breaking changes.
2026-03-31 23:56:35 -07:00
..
agent-actions fix(backend): harden Phase A endpoints — Zod validation, feature flag gate, state filtering 2026-03-31 23:56:35 -07:00
households refactor(backend): remove errors.ts re-export, import @bytelyst/errors directly 2026-03-20 07:19:29 -07:00
routines feat(mcp): Phase A.1 — reschedule, availability, and start-routine endpoints 2026-03-31 23:31:04 -07:00
shared-timers feat(backend): encrypt sensitive fields across all modules 2026-03-21 12:11:39 -07:00
timers fix(backend): harden Phase A endpoints — Zod validation, feature flag gate, state filtering 2026-03-31 23:56:35 -07:00
webhooks feat(backend): encrypt sensitive fields across all modules 2026-03-21 12:11:39 -07:00