@signetai/core 0.226.5 → 0.226.8

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/dist/index.js CHANGED
@@ -17270,6 +17270,33 @@ function up152(db) {
17270
17270
  }
17271
17271
  }
17272
17272
 
17273
+ // src/migrations/153-vector-repair-checkpoints.ts
17274
+ function up153(db) {
17275
+ db.exec(`
17276
+ CREATE TABLE IF NOT EXISTS vector_repair_checkpoints (
17277
+ operation TEXT NOT NULL CHECK (operation IN ('resync', 'clean-orphans')),
17278
+ agent_id TEXT NOT NULL CHECK (length(trim(agent_id)) > 0),
17279
+ checkpoint_id TEXT NOT NULL UNIQUE,
17280
+ phase TEXT NOT NULL CHECK (
17281
+ phase IN ('orphan-vectors', 'missing-vectors', 'orphan-embeddings', 'complete')
17282
+ ),
17283
+ cursor TEXT,
17284
+ processed INTEGER NOT NULL DEFAULT 0 CHECK (processed >= 0),
17285
+ skipped INTEGER NOT NULL DEFAULT 0 CHECK (skipped >= 0),
17286
+ failed INTEGER NOT NULL DEFAULT 0 CHECK (failed >= 0),
17287
+ affected INTEGER NOT NULL DEFAULT 0 CHECK (affected >= 0),
17288
+ remaining INTEGER NOT NULL DEFAULT 0 CHECK (remaining >= 0),
17289
+ status TEXT NOT NULL DEFAULT 'running' CHECK (status IN ('running', 'complete', 'failed')),
17290
+ last_error TEXT,
17291
+ created_at TEXT NOT NULL,
17292
+ updated_at TEXT NOT NULL,
17293
+ PRIMARY KEY (operation, agent_id)
17294
+ );
17295
+ CREATE INDEX IF NOT EXISTS idx_vector_repair_checkpoints_status
17296
+ ON vector_repair_checkpoints(status, updated_at);
17297
+ `);
17298
+ }
17299
+
17273
17300
  // src/migrations/index.ts
17274
17301
  var MIGRATIONS = [
17275
17302
  {
@@ -18509,6 +18536,12 @@ var MIGRATIONS = [
18509
18536
  name: "memory-artifact-sha-index",
18510
18537
  up: up2,
18511
18538
  artifacts: { indexes: ["idx_memory_artifacts_agent_sha"] }
18539
+ },
18540
+ {
18541
+ version: 153,
18542
+ name: "vector-repair-checkpoints",
18543
+ up: up153,
18544
+ artifacts: { tables: ["vector_repair_checkpoints"] }
18512
18545
  }
18513
18546
  ];
18514
18547
  function checksum(m) {
@@ -0,0 +1,11 @@
1
+ import type { MigrationDb } from "./contract";
2
+ /**
3
+ * Durable progress for bounded vector-index repair.
4
+ *
5
+ * There is one resumable checkpoint per operation and resolved agent. The
6
+ * checkpoint is intentionally separate from embedding-index migration state:
7
+ * this table tracks repair of the active derived vec index and canonical
8
+ * orphan cleanup, not a provider/profile generation change.
9
+ */
10
+ export declare function up(db: MigrationDb): void;
11
+ //# sourceMappingURL=153-vector-repair-checkpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"153-vector-repair-checkpoints.d.ts","sourceRoot":"","sources":["../../src/migrations/153-vector-repair-checkpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;;;;;GAOG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAwBxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAsB,WAAW,EAAE,MAAM,YAAY,CAAC;AAyJ7E,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE7E,oEAAoE;AACpE,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,EA2tC1C,CAAC;AA6MF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAiB7D;AAED,6CAA6C;AAC7C,eAAO,MAAM,qBAAqB,QAAkD,CAAC;AAsBrF;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAiDnD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAsB,WAAW,EAAE,MAAM,YAAY,CAAC;AA0J7E,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE7E,oEAAoE;AACpE,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,EAiuC1C,CAAC;AA6MF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAiB7D;AAED,6CAA6C;AAC7C,eAAO,MAAM,qBAAqB,QAAkD,CAAC;AAsBrF;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAiDnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/core",
3
- "version": "0.226.5",
3
+ "version": "0.226.8",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Core library for Signet - portable AI agent identity",
6
6
  "type": "module",