@voidwire/lore 1.6.1 → 1.6.2

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 (2) hide show
  1. package/lib/realtime.ts +5 -3
  2. package/package.json +1 -1
package/lib/realtime.ts CHANGED
@@ -324,12 +324,14 @@ function insertEmbedding(
324
324
 
325
325
  const embeddingBlob = serializeEmbedding(embedding);
326
326
 
327
+ const timestamp = event.timestamp || new Date().toISOString();
328
+
327
329
  const stmt = db.prepare(`
328
- INSERT INTO embeddings (doc_id, chunk_idx, source, topic, type, embedding)
329
- VALUES (?, 0, ?, ?, ?, ?)
330
+ INSERT INTO embeddings (doc_id, chunk_idx, source, topic, type, timestamp, embedding)
331
+ VALUES (?, 0, ?, ?, ?, ?, ?)
330
332
  `);
331
333
 
332
- stmt.run(docId, source, topic, type, embeddingBlob);
334
+ stmt.run(docId, source, topic, type, timestamp, embeddingBlob);
333
335
  }
334
336
 
335
337
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidwire/lore",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Unified knowledge CLI - Search, list, and capture your indexed knowledge",
5
5
  "type": "module",
6
6
  "main": "./index.ts",