feat(KB-279): add AI-powered async title generation for tasks

- Add async generateTitle() using AI to create concise task titles from descriptions\n- Update createTask() to generate titles asynchronously when not provided\n- Add dynamic import pattern for @kb/engine to enable testability\n- Update store tests with comprehensive coverage for AI title generation\n- Add changeset for the title generation fix
This commit is contained in:
gsxdsm
2026-03-31 07:52:42 -07:00
parent 4ad3fe240b
commit b97c713427
3 changed files with 258 additions and 83 deletions

View File

@@ -0,0 +1,5 @@
---
"@dustinbyrne/kb": patch
---
Fix title auto-creation to use AI summarization instead of simple truncation. When creating a task without a title, the system now uses an AI agent to generate a proper summary of the description (3-8 words, max 60 chars). Short descriptions (3 words or less) bypass AI and use the description as-is. If the AI call fails, the task is created without a title rather than falling back to truncated text.