learning_ai_clock/backend
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
..
src fix(backend): harden Phase A endpoints — Zod validation, feature flag gate, state filtering 2026-03-31 23:56:35 -07:00
.env.example fix(backend): harden Phase A endpoints — Zod validation, feature flag gate, state filtering 2026-03-31 23:56:35 -07:00
.gitignore feat(backend): scaffold product-specific Fastify backend (port 4011) 2026-03-01 20:39:08 -08:00
Dockerfile fix(docker): remove hardcoded corporate proxy and jfrog registry from Dockerfiles 2026-03-24 11:12:38 -07:00
eslint.config.js chore(backend): add eslint config and lint script 2026-03-26 22:59:50 -07:00
package.json chore(backend): add eslint config and lint script 2026-03-26 22:59:50 -07:00
tsconfig.json feat(backend): scaffold product-specific Fastify backend (port 4011) 2026-03-01 20:39:08 -08:00
vitest.config.ts feat(backend): scaffold product-specific Fastify backend (port 4011) 2026-03-01 20:39:08 -08:00