forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to src/api/insights/getInsightByUserId.tsClear filter

2026-09-17

feat: 🧠 wire the new insights and podcast backend doorsBurak Boduroğlu · ce4dc54
feat: 🧠 wire the new insights and podcast backend doors

- new src/api/insights: /insights/me, one student's insight, the detached
  per-student recompute, the manager-only run ledger and the school-wide
  refresh; both writes answer 202 with a receipt, never the computed rows
- new src/api/podcast: submit a course note for narration, poll the job,
  read a finished job's artifacts, cancel one, and the same-origin audio
  URL an <audio src> takes
- types for ZEKA's read: the nightly summary with its four module members
  left unread, the teacher-facing attention list, recommendation cards,
  the segment profile with its contrast against the student's own level,
  and one run ledger row
- neither domain is a licence module, so both are gated by AI capability
  alone: the detached writes answer 503 when no service serves them and
  queue nothing, and the podcast formats past duz_okuma need the
  service's LLM key
- contract fixtures cover both doors in a world with and without an AI
  service: the reads answer their DTO either way, the writes may refuse
  with 503 but may not 500 or mint a receipt they did not queue

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>