nox-mem 3.2.0 → 3.2.1

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.
@@ -35,11 +35,9 @@ export async function crystallize(input) {
35
35
  VALUES (?, 'procedure', ?, datetime('now'), ?)
36
36
  `).run(`procedure/${input.title.toLowerCase().replace(/\s+/g, "-")}`, chunkText, metadata);
37
37
  const id = result.lastInsertRowid;
38
- // Index in FTS
39
- try {
40
- db.prepare("INSERT INTO chunks_fts (rowid, chunk_text) VALUES (?, ?)").run(id, chunkText);
41
- }
42
- catch { }
38
+ // FTS indexing is handled by the chunks_ai AFTER INSERT trigger (external-content, content=chunks).
39
+ // A manual INSERT here duplicated the FTS posting and broke the index 1:1 invariant,
40
+ // causing SQLITE_CORRUPT_VTAB on the next delete/update. Removed 2026-06-17.
43
41
  // Best-effort embed so procedures are immediately hybrid-searchable.
44
42
  // Skip silently if GEMINI_API_KEY is missing or embed fails — FTS still works.
45
43
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nox-mem",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Pain-weighted hybrid memory engine: FTS5 + semantic search + knowledge graph, self-hosted on any Linux VPS.",
5
5
  "type": "module",
6
6
  "license": "MIT",