@signetai/connector-base 0.214.0 → 0.214.1

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/dist/index.js +50 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -16107,6 +16107,38 @@ function up139(db) {
16107
16107
  ON native_source_sync_state(agent_id, status);
16108
16108
  `);
16109
16109
  }
16110
+ function up140(db) {
16111
+ db.exec(`
16112
+ CREATE TABLE IF NOT EXISTS transcript_recovery_frontiers (
16113
+ agent_id TEXT NOT NULL,
16114
+ harness TEXT NOT NULL,
16115
+ root_path TEXT NOT NULL,
16116
+ cursor_path TEXT,
16117
+ updated_at TEXT NOT NULL,
16118
+ PRIMARY KEY (agent_id, harness, root_path)
16119
+ );
16120
+ `);
16121
+ }
16122
+ function up141(db) {
16123
+ db.exec(`
16124
+ CREATE TABLE IF NOT EXISTS source_sync_checkpoints (
16125
+ agent_id TEXT NOT NULL,
16126
+ source_key TEXT NOT NULL,
16127
+ phase TEXT NOT NULL,
16128
+ cursor TEXT,
16129
+ scanned INTEGER NOT NULL DEFAULT 0,
16130
+ complete INTEGER NOT NULL DEFAULT 0,
16131
+ updated_at TEXT NOT NULL,
16132
+ PRIMARY KEY (agent_id, source_key, phase)
16133
+ );
16134
+ `);
16135
+ }
16136
+ function up142(db) {
16137
+ const columns = db.prepare("PRAGMA table_info(source_sync_checkpoints)").all();
16138
+ if (!columns.some((column) => column.name === "frontier")) {
16139
+ db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
16140
+ }
16141
+ }
16110
16142
  var MIGRATIONS = [
16111
16143
  {
16112
16144
  version: 1,
@@ -17210,6 +17242,24 @@ var MIGRATIONS = [
17210
17242
  name: "native-source-sync-state",
17211
17243
  up: up139,
17212
17244
  artifacts: { tables: ["native_source_sync_state"] }
17245
+ },
17246
+ {
17247
+ version: 140,
17248
+ name: "transcript-recovery-frontier",
17249
+ up: up140,
17250
+ artifacts: { tables: ["transcript_recovery_frontiers"] }
17251
+ },
17252
+ {
17253
+ version: 141,
17254
+ name: "source-sync-checkpoints",
17255
+ up: up141,
17256
+ artifacts: { tables: ["source_sync_checkpoints"] }
17257
+ },
17258
+ {
17259
+ version: 142,
17260
+ name: "source-sync-frontier",
17261
+ up: up142,
17262
+ artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
17213
17263
  }
17214
17264
  ];
17215
17265
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-base",
3
- "version": "0.214.0",
3
+ "version": "0.214.1",
4
4
  "description": "Base class for Signet harness connectors",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "typecheck": "tsc --noEmit"
27
27
  },
28
28
  "dependencies": {
29
- "@signetai/core": "0.214.0",
29
+ "@signetai/core": "0.214.1",
30
30
  "json5": "^2.2.3",
31
31
  "jsonc-parser": "3.3.1"
32
32
  },