@signetai/connector-gemini 0.147.12 → 0.147.13

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 +65 -23
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9878,6 +9878,19 @@ function up86(db) {
9878
9878
  ON summary_jobs(agent_id, session_key, content_hash)
9879
9879
  `);
9880
9880
  }
9881
+ function addColumnIfMissing22(db, table, column, definition) {
9882
+ const cols = db.prepare(`PRAGMA table_info(${table})`).all();
9883
+ if (cols.some((col) => col.name === column))
9884
+ return;
9885
+ db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
9886
+ }
9887
+ function up87(db) {
9888
+ addColumnIfMissing22(db, "summary_jobs", "boundary_reason", "TEXT");
9889
+ db.exec(`
9890
+ CREATE INDEX IF NOT EXISTS idx_summary_jobs_boundary_reason
9891
+ ON summary_jobs(agent_id, session_key, boundary_reason)
9892
+ `);
9893
+ }
9881
9894
  var MIGRATIONS = [
9882
9895
  {
9883
9896
  version: 1,
@@ -10581,6 +10594,14 @@ var MIGRATIONS = [
10581
10594
  artifacts: {
10582
10595
  columns: [{ table: "summary_jobs", column: "content_hash" }]
10583
10596
  }
10597
+ },
10598
+ {
10599
+ version: 87,
10600
+ name: "summary-jobs-boundary-reason",
10601
+ up: up87,
10602
+ artifacts: {
10603
+ columns: [{ table: "summary_jobs", column: "boundary_reason" }]
10604
+ }
10584
10605
  }
10585
10606
  ];
10586
10607
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17977,7 +17998,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17977
17998
  return true;
17978
17999
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17979
18000
  }
17980
- function up87(db) {
18001
+ function up88(db) {
17981
18002
  db.exec(`
17982
18003
  CREATE TABLE IF NOT EXISTS schema_migrations (
17983
18004
  version INTEGER PRIMARY KEY,
@@ -18070,27 +18091,27 @@ function hasColumn13(db, table, column) {
18070
18091
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
18071
18092
  return rows.some((r) => r.name === column);
18072
18093
  }
18073
- function addColumnIfMissing22(db, table, column, definition) {
18094
+ function addColumnIfMissing23(db, table, column, definition) {
18074
18095
  if (!hasColumn13(db, table, column)) {
18075
18096
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
18076
18097
  }
18077
18098
  }
18078
18099
  function up210(db) {
18079
- addColumnIfMissing22(db, "memories", "content_hash", "TEXT");
18080
- addColumnIfMissing22(db, "memories", "normalized_content", "TEXT");
18081
- addColumnIfMissing22(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
18082
- addColumnIfMissing22(db, "memories", "deleted_at", "TEXT");
18083
- addColumnIfMissing22(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
18084
- addColumnIfMissing22(db, "memories", "embedding_model", "TEXT");
18085
- addColumnIfMissing22(db, "memories", "extraction_model", "TEXT");
18086
- addColumnIfMissing22(db, "memories", "update_count", "INTEGER DEFAULT 0");
18087
- addColumnIfMissing22(db, "memories", "who", "TEXT");
18088
- addColumnIfMissing22(db, "memories", "why", "TEXT");
18089
- addColumnIfMissing22(db, "memories", "project", "TEXT");
18090
- addColumnIfMissing22(db, "memories", "pinned", "INTEGER DEFAULT 0");
18091
- addColumnIfMissing22(db, "memories", "importance", "REAL DEFAULT 0.5");
18092
- addColumnIfMissing22(db, "memories", "last_accessed", "TEXT");
18093
- addColumnIfMissing22(db, "memories", "access_count", "INTEGER DEFAULT 0");
18100
+ addColumnIfMissing23(db, "memories", "content_hash", "TEXT");
18101
+ addColumnIfMissing23(db, "memories", "normalized_content", "TEXT");
18102
+ addColumnIfMissing23(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
18103
+ addColumnIfMissing23(db, "memories", "deleted_at", "TEXT");
18104
+ addColumnIfMissing23(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
18105
+ addColumnIfMissing23(db, "memories", "embedding_model", "TEXT");
18106
+ addColumnIfMissing23(db, "memories", "extraction_model", "TEXT");
18107
+ addColumnIfMissing23(db, "memories", "update_count", "INTEGER DEFAULT 0");
18108
+ addColumnIfMissing23(db, "memories", "who", "TEXT");
18109
+ addColumnIfMissing23(db, "memories", "why", "TEXT");
18110
+ addColumnIfMissing23(db, "memories", "project", "TEXT");
18111
+ addColumnIfMissing23(db, "memories", "pinned", "INTEGER DEFAULT 0");
18112
+ addColumnIfMissing23(db, "memories", "importance", "REAL DEFAULT 0.5");
18113
+ addColumnIfMissing23(db, "memories", "last_accessed", "TEXT");
18114
+ addColumnIfMissing23(db, "memories", "access_count", "INTEGER DEFAULT 0");
18094
18115
  db.exec(`
18095
18116
  CREATE TABLE IF NOT EXISTS memory_history (
18096
18117
  id TEXT PRIMARY KEY,
@@ -18186,7 +18207,7 @@ function up210(db) {
18186
18207
  ON memory_entity_mentions(entity_id);
18187
18208
  `);
18188
18209
  }
18189
- function addColumnIfMissing23(db, table, column, definition) {
18210
+ function addColumnIfMissing24(db, table, column, definition) {
18190
18211
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
18191
18212
  if (rows.some((r) => r.name === column))
18192
18213
  return false;
@@ -18194,8 +18215,8 @@ function addColumnIfMissing23(db, table, column, definition) {
18194
18215
  return true;
18195
18216
  }
18196
18217
  function up310(db) {
18197
- addColumnIfMissing23(db, "memories", "why", "TEXT");
18198
- addColumnIfMissing23(db, "memories", "project", "TEXT");
18218
+ addColumnIfMissing24(db, "memories", "why", "TEXT");
18219
+ addColumnIfMissing24(db, "memories", "project", "TEXT");
18199
18220
  db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
18200
18221
  db.exec(`
18201
18222
  UPDATE memories
@@ -18352,7 +18373,7 @@ function up710(db) {
18352
18373
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
18353
18374
  }
18354
18375
  }
18355
- function up88(db) {
18376
+ function up89(db) {
18356
18377
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
18357
18378
  if (tables.length === 0)
18358
18379
  return;
@@ -20906,11 +20927,24 @@ function up862(db) {
20906
20927
  ON summary_jobs(agent_id, session_key, content_hash)
20907
20928
  `);
20908
20929
  }
20930
+ function addColumnIfMissing222(db, table, column, definition) {
20931
+ const cols = db.prepare(`PRAGMA table_info(${table})`).all();
20932
+ if (cols.some((col) => col.name === column))
20933
+ return;
20934
+ db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
20935
+ }
20936
+ function up872(db) {
20937
+ addColumnIfMissing222(db, "summary_jobs", "boundary_reason", "TEXT");
20938
+ db.exec(`
20939
+ CREATE INDEX IF NOT EXISTS idx_summary_jobs_boundary_reason
20940
+ ON summary_jobs(agent_id, session_key, boundary_reason)
20941
+ `);
20942
+ }
20909
20943
  var MIGRATIONS2 = [
20910
20944
  {
20911
20945
  version: 1,
20912
20946
  name: "baseline",
20913
- up: up87,
20947
+ up: up88,
20914
20948
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20915
20949
  },
20916
20950
  {
@@ -20959,7 +20993,7 @@ var MIGRATIONS2 = [
20959
20993
  {
20960
20994
  version: 8,
20961
20995
  name: "embeddings-unique-hash",
20962
- up: up88
20996
+ up: up89
20963
20997
  },
20964
20998
  {
20965
20999
  version: 9,
@@ -21609,6 +21643,14 @@ var MIGRATIONS2 = [
21609
21643
  artifacts: {
21610
21644
  columns: [{ table: "summary_jobs", column: "content_hash" }]
21611
21645
  }
21646
+ },
21647
+ {
21648
+ version: 87,
21649
+ name: "summary-jobs-boundary-reason",
21650
+ up: up872,
21651
+ artifacts: {
21652
+ columns: [{ table: "summary_jobs", column: "boundary_reason" }]
21653
+ }
21612
21654
  }
21613
21655
  ];
21614
21656
  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.147.12",
3
+ "version": "0.147.13",
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.147.12",
28
- "@signetai/core": "0.147.12"
27
+ "@signetai/connector-base": "0.147.13",
28
+ "@signetai/core": "0.147.13"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",