@signetai/connector-gemini 0.150.5 → 0.152.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 +198 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9891,6 +9891,79 @@ function up87(db) {
9891
9891
  ON summary_jobs(agent_id, session_key, boundary_reason)
9892
9892
  `);
9893
9893
  }
9894
+ function up88(db) {
9895
+ db.exec(`
9896
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
9897
+ agent_id TEXT NOT NULL,
9898
+ source_path TEXT NOT NULL,
9899
+ harness TEXT NOT NULL,
9900
+ size_bytes INTEGER NOT NULL,
9901
+ mtime_ms INTEGER NOT NULL,
9902
+ content_sha256 TEXT NOT NULL,
9903
+ session_id TEXT NOT NULL,
9904
+ last_scanned_at TEXT NOT NULL,
9905
+ PRIMARY KEY (agent_id, source_path)
9906
+ );
9907
+
9908
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
9909
+ ON transcript_capture_jobs(agent_id, session_id, status);
9910
+ `);
9911
+ }
9912
+ function up89(db) {
9913
+ db.exec(`
9914
+ CREATE TABLE IF NOT EXISTS job_cancellations (
9915
+ id TEXT PRIMARY KEY,
9916
+ source_table TEXT NOT NULL,
9917
+ source_id TEXT NOT NULL,
9918
+ status_before TEXT NOT NULL,
9919
+ payload_json TEXT NOT NULL,
9920
+ reason TEXT,
9921
+ actor TEXT NOT NULL,
9922
+ actor_type TEXT NOT NULL,
9923
+ request_id TEXT,
9924
+ created_at TEXT NOT NULL
9925
+ )
9926
+ `);
9927
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_source")) {
9928
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
9929
+ ON job_cancellations(source_table, source_id)`);
9930
+ }
9931
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_created_at")) {
9932
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
9933
+ ON job_cancellations(created_at)`);
9934
+ }
9935
+ }
9936
+ function indexExists(db, table, indexName) {
9937
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9938
+ return rows.some((row) => row.name === indexName);
9939
+ }
9940
+ function up90(db) {
9941
+ db.exec(`
9942
+ CREATE TABLE IF NOT EXISTS job_archive (
9943
+ id TEXT PRIMARY KEY,
9944
+ source_table TEXT NOT NULL,
9945
+ source_id TEXT NOT NULL,
9946
+ status TEXT NOT NULL,
9947
+ payload_json TEXT NOT NULL,
9948
+ archived_at TEXT NOT NULL,
9949
+ archived_by TEXT NOT NULL,
9950
+ reason TEXT,
9951
+ created_at TEXT NOT NULL
9952
+ )
9953
+ `);
9954
+ if (!indexExists2(db, "job_archive", "idx_job_archive_source")) {
9955
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
9956
+ ON job_archive(source_table, source_id)`);
9957
+ }
9958
+ if (!indexExists2(db, "job_archive", "idx_job_archive_archived_at")) {
9959
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
9960
+ ON job_archive(archived_at)`);
9961
+ }
9962
+ }
9963
+ function indexExists2(db, table, indexName) {
9964
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9965
+ return rows.some((row) => row.name === indexName);
9966
+ }
9894
9967
  var MIGRATIONS = [
9895
9968
  {
9896
9969
  version: 1,
@@ -10602,6 +10675,30 @@ var MIGRATIONS = [
10602
10675
  artifacts: {
10603
10676
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
10604
10677
  }
10678
+ },
10679
+ {
10680
+ version: 88,
10681
+ name: "transcript-recovery-files",
10682
+ up: up88,
10683
+ artifacts: {
10684
+ tables: ["transcript_recovery_files"]
10685
+ }
10686
+ },
10687
+ {
10688
+ version: 89,
10689
+ name: "job-cancellations",
10690
+ up: up89,
10691
+ artifacts: {
10692
+ tables: ["job_cancellations"]
10693
+ }
10694
+ },
10695
+ {
10696
+ version: 90,
10697
+ name: "job-archive",
10698
+ up: up90,
10699
+ artifacts: {
10700
+ tables: ["job_archive"]
10701
+ }
10605
10702
  }
10606
10703
  ];
10607
10704
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -18006,7 +18103,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
18006
18103
  return true;
18007
18104
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
18008
18105
  }
18009
- function up88(db) {
18106
+ function up91(db) {
18010
18107
  db.exec(`
18011
18108
  CREATE TABLE IF NOT EXISTS schema_migrations (
18012
18109
  version INTEGER PRIMARY KEY,
@@ -18381,7 +18478,7 @@ function up710(db) {
18381
18478
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
18382
18479
  }
18383
18480
  }
18384
- function up89(db) {
18481
+ function up810(db) {
18385
18482
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
18386
18483
  if (tables.length === 0)
18387
18484
  return;
@@ -20948,11 +21045,84 @@ function up872(db) {
20948
21045
  ON summary_jobs(agent_id, session_key, boundary_reason)
20949
21046
  `);
20950
21047
  }
21048
+ function up882(db) {
21049
+ db.exec(`
21050
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
21051
+ agent_id TEXT NOT NULL,
21052
+ source_path TEXT NOT NULL,
21053
+ harness TEXT NOT NULL,
21054
+ size_bytes INTEGER NOT NULL,
21055
+ mtime_ms INTEGER NOT NULL,
21056
+ content_sha256 TEXT NOT NULL,
21057
+ session_id TEXT NOT NULL,
21058
+ last_scanned_at TEXT NOT NULL,
21059
+ PRIMARY KEY (agent_id, source_path)
21060
+ );
21061
+
21062
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
21063
+ ON transcript_capture_jobs(agent_id, session_id, status);
21064
+ `);
21065
+ }
21066
+ function up892(db) {
21067
+ db.exec(`
21068
+ CREATE TABLE IF NOT EXISTS job_cancellations (
21069
+ id TEXT PRIMARY KEY,
21070
+ source_table TEXT NOT NULL,
21071
+ source_id TEXT NOT NULL,
21072
+ status_before TEXT NOT NULL,
21073
+ payload_json TEXT NOT NULL,
21074
+ reason TEXT,
21075
+ actor TEXT NOT NULL,
21076
+ actor_type TEXT NOT NULL,
21077
+ request_id TEXT,
21078
+ created_at TEXT NOT NULL
21079
+ )
21080
+ `);
21081
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_source")) {
21082
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
21083
+ ON job_cancellations(source_table, source_id)`);
21084
+ }
21085
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_created_at")) {
21086
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
21087
+ ON job_cancellations(created_at)`);
21088
+ }
21089
+ }
21090
+ function indexExists3(db, table, indexName) {
21091
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21092
+ return rows.some((row) => row.name === indexName);
21093
+ }
21094
+ function up902(db) {
21095
+ db.exec(`
21096
+ CREATE TABLE IF NOT EXISTS job_archive (
21097
+ id TEXT PRIMARY KEY,
21098
+ source_table TEXT NOT NULL,
21099
+ source_id TEXT NOT NULL,
21100
+ status TEXT NOT NULL,
21101
+ payload_json TEXT NOT NULL,
21102
+ archived_at TEXT NOT NULL,
21103
+ archived_by TEXT NOT NULL,
21104
+ reason TEXT,
21105
+ created_at TEXT NOT NULL
21106
+ )
21107
+ `);
21108
+ if (!indexExists22(db, "job_archive", "idx_job_archive_source")) {
21109
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
21110
+ ON job_archive(source_table, source_id)`);
21111
+ }
21112
+ if (!indexExists22(db, "job_archive", "idx_job_archive_archived_at")) {
21113
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
21114
+ ON job_archive(archived_at)`);
21115
+ }
21116
+ }
21117
+ function indexExists22(db, table, indexName) {
21118
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21119
+ return rows.some((row) => row.name === indexName);
21120
+ }
20951
21121
  var MIGRATIONS2 = [
20952
21122
  {
20953
21123
  version: 1,
20954
21124
  name: "baseline",
20955
- up: up88,
21125
+ up: up91,
20956
21126
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20957
21127
  },
20958
21128
  {
@@ -21001,7 +21171,7 @@ var MIGRATIONS2 = [
21001
21171
  {
21002
21172
  version: 8,
21003
21173
  name: "embeddings-unique-hash",
21004
- up: up89
21174
+ up: up810
21005
21175
  },
21006
21176
  {
21007
21177
  version: 9,
@@ -21659,6 +21829,30 @@ var MIGRATIONS2 = [
21659
21829
  artifacts: {
21660
21830
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
21661
21831
  }
21832
+ },
21833
+ {
21834
+ version: 88,
21835
+ name: "transcript-recovery-files",
21836
+ up: up882,
21837
+ artifacts: {
21838
+ tables: ["transcript_recovery_files"]
21839
+ }
21840
+ },
21841
+ {
21842
+ version: 89,
21843
+ name: "job-cancellations",
21844
+ up: up892,
21845
+ artifacts: {
21846
+ tables: ["job_cancellations"]
21847
+ }
21848
+ },
21849
+ {
21850
+ version: 90,
21851
+ name: "job-archive",
21852
+ up: up902,
21853
+ artifacts: {
21854
+ tables: ["job_archive"]
21855
+ }
21662
21856
  }
21663
21857
  ];
21664
21858
  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.150.5",
3
+ "version": "0.152.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.150.5",
28
- "@signetai/core": "0.150.5"
27
+ "@signetai/connector-base": "0.152.0",
28
+ "@signetai/core": "0.152.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",