@signetai/connector-forge 0.214.5 → 0.214.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.
Files changed (2) hide show
  1. package/dist/index.js +106 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -16120,6 +16120,41 @@ function up142(db) {
16120
16120
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
16121
16121
  }
16122
16122
  }
16123
+ function up143(db) {
16124
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
16125
+ const additions = [
16126
+ ["migration_phase", "TEXT"],
16127
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
16128
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
16129
+ ["projection_cursor_last_id", "TEXT"],
16130
+ ["projection_cursor_slot", "TEXT"],
16131
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
16132
+ ["provider_endpoint", "TEXT"]
16133
+ ];
16134
+ for (const [name, definition] of additions) {
16135
+ if (!columns.has(name))
16136
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
16137
+ }
16138
+ db.exec(`
16139
+ UPDATE embedding_index_state
16140
+ SET provider_endpoint = COALESCE(
16141
+ provider_endpoint,
16142
+ json_extract(active_profile_json, '$.baseUrl')
16143
+ )
16144
+ WHERE id = 1
16145
+ `);
16146
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
16147
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
16148
+ if (hasEmbeddings && hasStaging) {
16149
+ db.exec(`
16150
+ UPDATE embedding_index_state
16151
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
16152
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
16153
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
16154
+ WHERE state = 'building'
16155
+ `);
16156
+ }
16157
+ }
16123
16158
  var MIGRATIONS = [
16124
16159
  {
16125
16160
  version: 1,
@@ -17241,6 +17276,22 @@ var MIGRATIONS = [
17241
17276
  name: "source-sync-frontier",
17242
17277
  up: up142,
17243
17278
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
17279
+ },
17280
+ {
17281
+ version: 143,
17282
+ name: "embedding-index-progress",
17283
+ up: up143,
17284
+ artifacts: {
17285
+ columns: [
17286
+ { table: "embedding_index_state", column: "migration_phase" },
17287
+ { table: "embedding_index_state", column: "progress_staged" },
17288
+ { table: "embedding_index_state", column: "progress_total" },
17289
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
17290
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
17291
+ { table: "embedding_index_state", column: "no_progress_ticks" },
17292
+ { table: "embedding_index_state", column: "provider_endpoint" }
17293
+ ]
17294
+ }
17244
17295
  }
17245
17296
  ];
17246
17297
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -29345,7 +29396,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
29345
29396
  return true;
29346
29397
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
29347
29398
  }
29348
- function up143(db) {
29399
+ function up144(db) {
29349
29400
  db.exec(`
29350
29401
  CREATE TABLE IF NOT EXISTS schema_migrations (
29351
29402
  version INTEGER PRIMARY KEY,
@@ -29855,7 +29906,7 @@ function up1310(db) {
29855
29906
  addColumnIfMissing52(db, "memories", "source_path", "TEXT");
29856
29907
  addColumnIfMissing52(db, "memories", "source_section", "TEXT");
29857
29908
  }
29858
- function up144(db) {
29909
+ function up145(db) {
29859
29910
  db.exec(`
29860
29911
  CREATE TABLE IF NOT EXISTS telemetry_events (
29861
29912
  id TEXT PRIMARY KEY,
@@ -34059,11 +34110,46 @@ function up1422(db) {
34059
34110
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
34060
34111
  }
34061
34112
  }
34113
+ function up1432(db) {
34114
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
34115
+ const additions = [
34116
+ ["migration_phase", "TEXT"],
34117
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
34118
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
34119
+ ["projection_cursor_last_id", "TEXT"],
34120
+ ["projection_cursor_slot", "TEXT"],
34121
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
34122
+ ["provider_endpoint", "TEXT"]
34123
+ ];
34124
+ for (const [name, definition] of additions) {
34125
+ if (!columns.has(name))
34126
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
34127
+ }
34128
+ db.exec(`
34129
+ UPDATE embedding_index_state
34130
+ SET provider_endpoint = COALESCE(
34131
+ provider_endpoint,
34132
+ json_extract(active_profile_json, '$.baseUrl')
34133
+ )
34134
+ WHERE id = 1
34135
+ `);
34136
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
34137
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
34138
+ if (hasEmbeddings && hasStaging) {
34139
+ db.exec(`
34140
+ UPDATE embedding_index_state
34141
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
34142
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
34143
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
34144
+ WHERE state = 'building'
34145
+ `);
34146
+ }
34147
+ }
34062
34148
  var MIGRATIONS2 = [
34063
34149
  {
34064
34150
  version: 1,
34065
34151
  name: "baseline",
34066
- up: up143,
34152
+ up: up144,
34067
34153
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
34068
34154
  },
34069
34155
  {
@@ -34152,7 +34238,7 @@ var MIGRATIONS2 = [
34152
34238
  {
34153
34239
  version: 14,
34154
34240
  name: "telemetry",
34155
- up: up144,
34241
+ up: up145,
34156
34242
  artifacts: { tables: ["telemetry_events"] }
34157
34243
  },
34158
34244
  {
@@ -35180,6 +35266,22 @@ var MIGRATIONS2 = [
35180
35266
  name: "source-sync-frontier",
35181
35267
  up: up1422,
35182
35268
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
35269
+ },
35270
+ {
35271
+ version: 143,
35272
+ name: "embedding-index-progress",
35273
+ up: up1432,
35274
+ artifacts: {
35275
+ columns: [
35276
+ { table: "embedding_index_state", column: "migration_phase" },
35277
+ { table: "embedding_index_state", column: "progress_staged" },
35278
+ { table: "embedding_index_state", column: "progress_total" },
35279
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
35280
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
35281
+ { table: "embedding_index_state", column: "no_progress_ticks" },
35282
+ { table: "embedding_index_state", column: "provider_endpoint" }
35283
+ ]
35284
+ }
35183
35285
  }
35184
35286
  ];
35185
35287
  var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-forge",
3
- "version": "0.214.5",
3
+ "version": "0.214.8",
4
4
  "description": "Signet connector for ForgeCode - installs MCP, identity, and skills integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "typecheck": "tsc --noEmit"
25
25
  },
26
26
  "dependencies": {
27
- "@signetai/connector-base": "0.214.5",
28
- "@signetai/core": "0.214.5"
27
+ "@signetai/connector-base": "0.214.8",
28
+ "@signetai/core": "0.214.8"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",