kanban-dev-webapp/src
Dave 1aaf31a4c5 refactor(ai): extract testable polish prompt, guard against empty input
- Extract prompt text into buildPolishPrompt() in polish-prompt.ts (no server-only),
  matching the pattern used by batch.ts/buildBatchPrompt and narrative.ts/buildNarrativePrompt
  so the prompt itself is unit testable.
- Add MAX_NOTE_LENGTH guard to truncate excessively long notes before polishing.
- Add early-return guard against empty input (non-retryable error).
- Run getProvider() and getSystemPrompt() concurrently via Promise.all().
- Document that polishNote() throws (foreground user-initiated action).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-09-19 11:02:16 +02:00
..
app feat(dashboard): add Refresh commits button, separate from Recompute 2026-09-17 14:58:01 +02:00
components fix(ai): exclude manual entries from card narratives, clarify summary panel wording 2026-09-19 10:50:12 +02:00
lib refactor(ai): extract testable polish prompt, guard against empty input 2026-09-19 11:02:16 +02:00
middleware.ts feat(roadmap): planning page with bands, timeline and stats 2026-09-17 07:19:00 +02:00