mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-03 22:02:08 +03:00
- 073_memory_vec.sql: creates memory_vec_meta singleton table (active_dim, embedding_signature, last_reset_at, vec_loaded) and adds needs_reindex column to memories table with a partial index; idempotent via CREATE IF NOT EXISTS + INSERT OR IGNORE + migration runner's duplicate-column-name guard - src/lib/db/memoryVec.ts: implements 6 CRUD functions per §3.8 contract (getMemoryVecMeta, setMemoryVecMeta, markMemoryNeedsReindex, markAllMemoriesNeedReindex, getMemoryReindexQueue, countMemoryReindexPending) - src/lib/localDb.ts: adds re-export block for the 6 functions (Hard Rule #2) - .env.example: documents 7 new MEMORY_* env vars per §3.9 - tests/unit/memory-vec-meta.test.ts: 7 tests (meta get/set, migration idempotency) - tests/unit/memory-needs-reindex.test.ts: 12 tests (mark/unmark, markAll, queue)
8.7 KiB
8.7 KiB