@signetai/core 0.214.0 → 0.214.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.
package/dist/index.js CHANGED
@@ -16765,6 +16765,44 @@ function up139(db) {
16765
16765
  `);
16766
16766
  }
16767
16767
 
16768
+ // src/migrations/140-transcript-recovery-frontier.ts
16769
+ function up140(db) {
16770
+ db.exec(`
16771
+ CREATE TABLE IF NOT EXISTS transcript_recovery_frontiers (
16772
+ agent_id TEXT NOT NULL,
16773
+ harness TEXT NOT NULL,
16774
+ root_path TEXT NOT NULL,
16775
+ cursor_path TEXT,
16776
+ updated_at TEXT NOT NULL,
16777
+ PRIMARY KEY (agent_id, harness, root_path)
16778
+ );
16779
+ `);
16780
+ }
16781
+
16782
+ // src/migrations/141-source-sync-checkpoints.ts
16783
+ function up141(db) {
16784
+ db.exec(`
16785
+ CREATE TABLE IF NOT EXISTS source_sync_checkpoints (
16786
+ agent_id TEXT NOT NULL,
16787
+ source_key TEXT NOT NULL,
16788
+ phase TEXT NOT NULL,
16789
+ cursor TEXT,
16790
+ scanned INTEGER NOT NULL DEFAULT 0,
16791
+ complete INTEGER NOT NULL DEFAULT 0,
16792
+ updated_at TEXT NOT NULL,
16793
+ PRIMARY KEY (agent_id, source_key, phase)
16794
+ );
16795
+ `);
16796
+ }
16797
+
16798
+ // src/migrations/142-source-sync-frontier.ts
16799
+ function up142(db) {
16800
+ const columns = db.prepare("PRAGMA table_info(source_sync_checkpoints)").all();
16801
+ if (!columns.some((column) => column.name === "frontier")) {
16802
+ db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
16803
+ }
16804
+ }
16805
+
16768
16806
  // src/migrations/index.ts
16769
16807
  var MIGRATIONS = [
16770
16808
  {
@@ -17869,6 +17907,24 @@ var MIGRATIONS = [
17869
17907
  name: "native-source-sync-state",
17870
17908
  up: up139,
17871
17909
  artifacts: { tables: ["native_source_sync_state"] }
17910
+ },
17911
+ {
17912
+ version: 140,
17913
+ name: "transcript-recovery-frontier",
17914
+ up: up140,
17915
+ artifacts: { tables: ["transcript_recovery_frontiers"] }
17916
+ },
17917
+ {
17918
+ version: 141,
17919
+ name: "source-sync-checkpoints",
17920
+ up: up141,
17921
+ artifacts: { tables: ["source_sync_checkpoints"] }
17922
+ },
17923
+ {
17924
+ version: 142,
17925
+ name: "source-sync-frontier",
17926
+ up: up142,
17927
+ artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
17872
17928
  }
17873
17929
  ];
17874
17930
  function checksum(m) {
@@ -0,0 +1,4 @@
1
+ import type { MigrationDb } from "./index";
2
+ /** Durable traversal cursor for the killable transcript recovery worker. */
3
+ export declare function up(db: MigrationDb): void;
4
+ //# sourceMappingURL=140-transcript-recovery-frontier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"140-transcript-recovery-frontier.d.ts","sourceRoot":"","sources":["../../src/migrations/140-transcript-recovery-frontier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,4EAA4E;AAC5E,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAWxC"}
@@ -0,0 +1,4 @@
1
+ /** Migration 141: per-agent/source/phase scan cursors; distinct from 139 provider lifecycle state. */
2
+ import type { MigrationDb } from "./index";
3
+ export declare function up(db: MigrationDb): void;
4
+ //# sourceMappingURL=141-source-sync-checkpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"141-source-sync-checkpoints.d.ts","sourceRoot":"","sources":["../../src/migrations/141-source-sync-checkpoints.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAaxC"}
@@ -0,0 +1,4 @@
1
+ /** Migration 142: add filesystem frontiers to the per-scan checkpoint table from migration 141. */
2
+ import type { MigrationDb } from "./index";
3
+ export declare function up(db: MigrationDb): void;
4
+ //# sourceMappingURL=142-source-sync-frontier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"142-source-sync-frontier.d.ts","sourceRoot":"","sources":["../../src/migrations/142-source-sync-frontier.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAKxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgJH,MAAM,WAAW,WAAW;IAC3B,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG;QACrB,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAC9B,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;QAC7D,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;KACnD,CAAC;CACF;AAED,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS;QAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,6FAA6F;QAC7F,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;KAC5B,EAAE,CAAC;CACJ;AAED,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAA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CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;KAC5B,EAAE,CAAC;CACJ;AAED,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC;CACxC;AAED,oEAAoE;AACpE,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,EAwmC1C,CAAC;AAqOF;;;;;;;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.214.0",
3
+ "version": "0.214.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Core library for Signet - portable AI agent identity",
6
6
  "type": "module",