@traqr/memory 0.2.31 → 0.2.32

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/package.json +1 -1
  2. package/setup.sql +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@traqr/memory",
3
- "version": "0.2.31",
3
+ "version": "0.2.32",
4
4
  "description": "Persistent memory for AI agents. Multi-strategy retrieval (semantic + BM25 + RRF), 3-zone cosine triage, type-aware lifecycle, entity canonicalization. Postgres + pgvector.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/setup.sql CHANGED
@@ -1032,6 +1032,15 @@ INSERT INTO schema_version (version, description)
1032
1032
  VALUES (2, 'Memory Engine v2 -- pipeline, retrieval, temporal, entities (M5-M9)')
1033
1033
  ON CONFLICT (version) DO NOTHING;
1034
1034
 
1035
+ -- v3 stamps no schema changes (see upgrade-v3.sql) -- it marks the v0.2.0
1036
+ -- server release (BYO providers, teaching errors, schema detection). A fresh
1037
+ -- setup.sql install produces a v3-equivalent schema, so stamp v3 here too;
1038
+ -- otherwise a fresh install lands at v2 and the v3-expecting server cries
1039
+ -- "v2 detected, v3 required" on every boot (TD-941).
1040
+ INSERT INTO schema_version (version, description)
1041
+ VALUES (3, 'v0.2.0 -- BYO providers, teaching errors, schema detection (no DDL changes)')
1042
+ ON CONFLICT (version) DO NOTHING;
1043
+
1035
1044
  -- Migration tracking table (so migrate.ts runner works for future migrations)
1036
1045
  CREATE TABLE IF NOT EXISTS _traqr_migrations (
1037
1046
  name TEXT PRIMARY KEY,