@signetai/connector-gemini 0.145.9 → 0.146.0

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 +66 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9614,6 +9614,25 @@ function up81(db) {
9614
9614
  ON aggregate_evidence_sources(source_kind, source_id);
9615
9615
  `);
9616
9616
  }
9617
+ function hasColumn11(db, table, column) {
9618
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
9619
+ return rows.some((row) => row.name === column);
9620
+ }
9621
+ var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
9622
+ function up82(db) {
9623
+ for (const column of COLUMNS) {
9624
+ if (!hasColumn11(db, "skill_invocations", column)) {
9625
+ db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
9626
+ }
9627
+ }
9628
+ db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
9629
+ db.exec(`
9630
+ CREATE UNIQUE INDEX idx_skill_inv_dedupe
9631
+ ON skill_invocations(agent_id, harness, session_id, tool_use_id)
9632
+ WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
9633
+ `);
9634
+ db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
9635
+ }
9617
9636
  var MIGRATIONS = [
9618
9637
  {
9619
9638
  version: 1,
@@ -10267,6 +10286,17 @@ var MIGRATIONS = [
10267
10286
  artifacts: {
10268
10287
  tables: ["aggregate_evidence_sources"]
10269
10288
  }
10289
+ },
10290
+ {
10291
+ version: 82,
10292
+ name: "skill-invocations-harness",
10293
+ up: up82,
10294
+ artifacts: {
10295
+ columns: [
10296
+ { table: "skill_invocations", column: "harness" },
10297
+ { table: "skill_invocations", column: "tool_use_id" }
10298
+ ]
10299
+ }
10270
10300
  }
10271
10301
  ];
10272
10302
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17663,7 +17693,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17663
17693
  return true;
17664
17694
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17665
17695
  }
17666
- function up82(db) {
17696
+ function up83(db) {
17667
17697
  db.exec(`
17668
17698
  CREATE TABLE IF NOT EXISTS schema_migrations (
17669
17699
  version INTEGER PRIMARY KEY,
@@ -17752,12 +17782,12 @@ function up82(db) {
17752
17782
  } catch {}
17753
17783
  createMemoriesFts2(db);
17754
17784
  }
17755
- function hasColumn11(db, table, column) {
17785
+ function hasColumn12(db, table, column) {
17756
17786
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
17757
17787
  return rows.some((r) => r.name === column);
17758
17788
  }
17759
17789
  function addColumnIfMissing20(db, table, column, definition) {
17760
- if (!hasColumn11(db, table, column)) {
17790
+ if (!hasColumn12(db, table, column)) {
17761
17791
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
17762
17792
  }
17763
17793
  }
@@ -18038,7 +18068,7 @@ function up710(db) {
18038
18068
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
18039
18069
  }
18040
18070
  }
18041
- function up83(db) {
18071
+ function up84(db) {
18042
18072
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
18043
18073
  if (tables.length === 0)
18044
18074
  return;
@@ -20328,11 +20358,30 @@ function up812(db) {
20328
20358
  ON aggregate_evidence_sources(source_kind, source_id);
20329
20359
  `);
20330
20360
  }
20361
+ function hasColumn112(db, table, column) {
20362
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
20363
+ return rows.some((row) => row.name === column);
20364
+ }
20365
+ var COLUMNS2 = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
20366
+ function up822(db) {
20367
+ for (const column of COLUMNS2) {
20368
+ if (!hasColumn112(db, "skill_invocations", column)) {
20369
+ db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
20370
+ }
20371
+ }
20372
+ db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
20373
+ db.exec(`
20374
+ CREATE UNIQUE INDEX idx_skill_inv_dedupe
20375
+ ON skill_invocations(agent_id, harness, session_id, tool_use_id)
20376
+ WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
20377
+ `);
20378
+ db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
20379
+ }
20331
20380
  var MIGRATIONS2 = [
20332
20381
  {
20333
20382
  version: 1,
20334
20383
  name: "baseline",
20335
- up: up82,
20384
+ up: up83,
20336
20385
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20337
20386
  },
20338
20387
  {
@@ -20381,7 +20430,7 @@ var MIGRATIONS2 = [
20381
20430
  {
20382
20431
  version: 8,
20383
20432
  name: "embeddings-unique-hash",
20384
- up: up83
20433
+ up: up84
20385
20434
  },
20386
20435
  {
20387
20436
  version: 9,
@@ -20981,6 +21030,17 @@ var MIGRATIONS2 = [
20981
21030
  artifacts: {
20982
21031
  tables: ["aggregate_evidence_sources"]
20983
21032
  }
21033
+ },
21034
+ {
21035
+ version: 82,
21036
+ name: "skill-invocations-harness",
21037
+ up: up822,
21038
+ artifacts: {
21039
+ columns: [
21040
+ { table: "skill_invocations", column: "harness" },
21041
+ { table: "skill_invocations", column: "tool_use_id" }
21042
+ ]
21043
+ }
20984
21044
  }
20985
21045
  ];
20986
21046
  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.145.9",
3
+ "version": "0.146.0",
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.145.9",
28
- "@signetai/core": "0.145.9"
27
+ "@signetai/connector-base": "0.146.0",
28
+ "@signetai/core": "0.146.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",