@assistkick/create 1.32.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/package.json +1 -1
  2. package/templates/assistkick-product-system/package.json +3 -1
  3. package/templates/assistkick-product-system/packages/backend/src/server.ts +1 -1
  4. package/templates/assistkick-product-system/packages/backend/src/services/chat_cli_bridge.ts +41 -16
  5. package/templates/assistkick-product-system/packages/backend/src/services/chat_ws_handler.ts +25 -5
  6. package/templates/assistkick-product-system/packages/frontend/src/components/GraphLegend.tsx +10 -3
  7. package/templates/assistkick-product-system/packages/frontend/src/constants/graph.ts +8 -1
  8. package/templates/assistkick-product-system/packages/frontend/src/hooks/use_chat_stream.ts +23 -32
  9. package/templates/assistkick-product-system/packages/frontend/src/lib/chat_message_helpers.test.ts +105 -0
  10. package/templates/assistkick-product-system/packages/frontend/src/lib/chat_message_helpers.ts +48 -1
  11. package/templates/assistkick-product-system/packages/shared/db/migrate.ts +46 -2
  12. package/templates/assistkick-product-system/packages/shared/db/migrations/0003_solid_manta.sql +1 -0
  13. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0003_snapshot.json +1836 -0
  14. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/_journal.json +7 -0
  15. package/templates/assistkick-product-system/packages/shared/db/schema.ts +1 -0
  16. package/templates/assistkick-product-system/packages/shared/lib/constants.ts +12 -0
  17. package/templates/assistkick-product-system/packages/shared/lib/embedding_service.test.ts +75 -0
  18. package/templates/assistkick-product-system/packages/shared/lib/embedding_service.ts +100 -0
  19. package/templates/assistkick-product-system/packages/shared/lib/relevance_search.ts +50 -38
  20. package/templates/assistkick-product-system/packages/shared/package.json +1 -0
  21. package/templates/assistkick-product-system/packages/shared/tools/add_node.ts +11 -3
  22. package/templates/assistkick-product-system/packages/shared/tools/delete_note.ts +50 -0
  23. package/templates/assistkick-product-system/packages/shared/tools/save_note.ts +79 -0
  24. package/templates/assistkick-product-system/packages/shared/tools/search_nodes.ts +6 -1
  25. package/templates/assistkick-product-system/packages/shared/tools/search_notes.ts +99 -0
  26. package/templates/assistkick-product-system/packages/shared/tools/update_node.ts +15 -0
@@ -11,6 +11,7 @@ import { readNode, writeNode, appendToSection, setSection, deriveMetadata } from
11
11
  import { assertNodeExists, assertNotDone } from '../lib/validator.js';
12
12
  import { VALID_STATUSES, VALID_PRIORITIES, VALID_FEATURE_KINDS } from '../lib/constants.js';
13
13
  import { getKanbanEntry, saveKanbanEntry } from '../lib/kanban.js';
14
+ import { embedAndStore } from '../lib/embedding_service.js';
14
15
 
15
16
  program
16
17
  .argument('<id>', 'Node ID to update')
@@ -120,6 +121,20 @@ const opts = program.opts();
120
121
  }
121
122
  }
122
123
 
124
+ // Recompute embedding when content changes (name, description, or sections)
125
+ const contentChanged = opts.setName || opts.setDescription || opts.setSection
126
+ || opts.addAcceptanceCriteria || opts.addOpenQuestion || opts.addNote;
127
+ if (contentChanged) {
128
+ try {
129
+ const bodyText = Object.entries(sections)
130
+ .map(([name, content]) => content.trim() ? `## ${name}\n${content.trim()}` : '')
131
+ .filter(Boolean).join('\n');
132
+ await embedAndStore(id, frontmatter.name, bodyText);
133
+ } catch (embErr: any) {
134
+ console.log(chalk.yellow(`⚠ Embedding update skipped: ${embErr.message}`));
135
+ }
136
+ }
137
+
123
138
  console.log(chalk.green(`✓ Updated ${id}`));
124
139
  console.log(JSON.stringify({
125
140
  id,