@assistkick/create 1.32.0 → 1.33.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.
- package/package.json +1 -1
- package/templates/assistkick-product-system/package.json +3 -1
- package/templates/assistkick-product-system/packages/frontend/src/components/GraphLegend.tsx +10 -3
- package/templates/assistkick-product-system/packages/frontend/src/constants/graph.ts +8 -1
- package/templates/assistkick-product-system/packages/shared/db/migrate.ts +21 -2
- package/templates/assistkick-product-system/packages/shared/db/migrations/0003_solid_manta.sql +1 -0
- package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0003_snapshot.json +1836 -0
- package/templates/assistkick-product-system/packages/shared/db/migrations/meta/_journal.json +7 -0
- package/templates/assistkick-product-system/packages/shared/db/schema.ts +1 -0
- package/templates/assistkick-product-system/packages/shared/lib/constants.ts +12 -0
- package/templates/assistkick-product-system/packages/shared/lib/embedding_service.test.ts +75 -0
- package/templates/assistkick-product-system/packages/shared/lib/embedding_service.ts +100 -0
- package/templates/assistkick-product-system/packages/shared/lib/relevance_search.ts +50 -38
- package/templates/assistkick-product-system/packages/shared/package.json +1 -0
- package/templates/assistkick-product-system/packages/shared/tools/add_node.ts +11 -3
- package/templates/assistkick-product-system/packages/shared/tools/delete_note.ts +50 -0
- package/templates/assistkick-product-system/packages/shared/tools/save_note.ts +79 -0
- package/templates/assistkick-product-system/packages/shared/tools/search_nodes.ts +6 -1
- package/templates/assistkick-product-system/packages/shared/tools/search_notes.ts +99 -0
- 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,
|