@signetai/connector-gemini 0.214.4 → 0.214.7

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;
@@ -29216,7 +29267,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
29216
29267
  return true;
29217
29268
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
29218
29269
  }
29219
- function up143(db) {
29270
+ function up144(db) {
29220
29271
  db.exec(`
29221
29272
  CREATE TABLE IF NOT EXISTS schema_migrations (
29222
29273
  version INTEGER PRIMARY KEY,
@@ -29726,7 +29777,7 @@ function up1310(db) {
29726
29777
  addColumnIfMissing52(db, "memories", "source_path", "TEXT");
29727
29778
  addColumnIfMissing52(db, "memories", "source_section", "TEXT");
29728
29779
  }
29729
- function up144(db) {
29780
+ function up145(db) {
29730
29781
  db.exec(`
29731
29782
  CREATE TABLE IF NOT EXISTS telemetry_events (
29732
29783
  id TEXT PRIMARY KEY,
@@ -33930,11 +33981,46 @@ function up1422(db) {
33930
33981
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
33931
33982
  }
33932
33983
  }
33984
+ function up1432(db) {
33985
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
33986
+ const additions = [
33987
+ ["migration_phase", "TEXT"],
33988
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
33989
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
33990
+ ["projection_cursor_last_id", "TEXT"],
33991
+ ["projection_cursor_slot", "TEXT"],
33992
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
33993
+ ["provider_endpoint", "TEXT"]
33994
+ ];
33995
+ for (const [name, definition] of additions) {
33996
+ if (!columns.has(name))
33997
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
33998
+ }
33999
+ db.exec(`
34000
+ UPDATE embedding_index_state
34001
+ SET provider_endpoint = COALESCE(
34002
+ provider_endpoint,
34003
+ json_extract(active_profile_json, '$.baseUrl')
34004
+ )
34005
+ WHERE id = 1
34006
+ `);
34007
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
34008
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
34009
+ if (hasEmbeddings && hasStaging) {
34010
+ db.exec(`
34011
+ UPDATE embedding_index_state
34012
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
34013
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
34014
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
34015
+ WHERE state = 'building'
34016
+ `);
34017
+ }
34018
+ }
33933
34019
  var MIGRATIONS2 = [
33934
34020
  {
33935
34021
  version: 1,
33936
34022
  name: "baseline",
33937
- up: up143,
34023
+ up: up144,
33938
34024
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
33939
34025
  },
33940
34026
  {
@@ -34023,7 +34109,7 @@ var MIGRATIONS2 = [
34023
34109
  {
34024
34110
  version: 14,
34025
34111
  name: "telemetry",
34026
- up: up144,
34112
+ up: up145,
34027
34113
  artifacts: { tables: ["telemetry_events"] }
34028
34114
  },
34029
34115
  {
@@ -35051,6 +35137,22 @@ var MIGRATIONS2 = [
35051
35137
  name: "source-sync-frontier",
35052
35138
  up: up1422,
35053
35139
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
35140
+ },
35141
+ {
35142
+ version: 143,
35143
+ name: "embedding-index-progress",
35144
+ up: up1432,
35145
+ artifacts: {
35146
+ columns: [
35147
+ { table: "embedding_index_state", column: "migration_phase" },
35148
+ { table: "embedding_index_state", column: "progress_staged" },
35149
+ { table: "embedding_index_state", column: "progress_total" },
35150
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
35151
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
35152
+ { table: "embedding_index_state", column: "no_progress_ticks" },
35153
+ { table: "embedding_index_state", column: "provider_endpoint" }
35154
+ ]
35155
+ }
35054
35156
  }
35055
35157
  ];
35056
35158
  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-gemini",
3
- "version": "0.214.4",
3
+ "version": "0.214.7",
4
4
  "description": "Signet connector for Gemini CLI",
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.4",
28
- "@signetai/core": "0.214.4"
27
+ "@signetai/connector-base": "0.214.7",
28
+ "@signetai/core": "0.214.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",