@signetai/connector-gemini 0.151.0 → 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 +144 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9909,6 +9909,61 @@ function up88(db) {
9909
9909
  ON transcript_capture_jobs(agent_id, session_id, status);
9910
9910
  `);
9911
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
+ }
9912
9967
  var MIGRATIONS = [
9913
9968
  {
9914
9969
  version: 1,
@@ -10628,6 +10683,22 @@ var MIGRATIONS = [
10628
10683
  artifacts: {
10629
10684
  tables: ["transcript_recovery_files"]
10630
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
+ }
10631
10702
  }
10632
10703
  ];
10633
10704
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -18032,7 +18103,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
18032
18103
  return true;
18033
18104
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
18034
18105
  }
18035
- function up89(db) {
18106
+ function up91(db) {
18036
18107
  db.exec(`
18037
18108
  CREATE TABLE IF NOT EXISTS schema_migrations (
18038
18109
  version INTEGER PRIMARY KEY,
@@ -20992,11 +21063,66 @@ function up882(db) {
20992
21063
  ON transcript_capture_jobs(agent_id, session_id, status);
20993
21064
  `);
20994
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
+ }
20995
21121
  var MIGRATIONS2 = [
20996
21122
  {
20997
21123
  version: 1,
20998
21124
  name: "baseline",
20999
- up: up89,
21125
+ up: up91,
21000
21126
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
21001
21127
  },
21002
21128
  {
@@ -21711,6 +21837,22 @@ var MIGRATIONS2 = [
21711
21837
  artifacts: {
21712
21838
  tables: ["transcript_recovery_files"]
21713
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
+ }
21714
21856
  }
21715
21857
  ];
21716
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.151.0",
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.151.0",
28
- "@signetai/core": "0.151.0"
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",