@signetai/connector-codex 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
@@ -9880,6 +9880,79 @@ function up87(db) {
9880
9880
  ON summary_jobs(agent_id, session_key, boundary_reason)
9881
9881
  `);
9882
9882
  }
9883
+ function up88(db) {
9884
+ db.exec(`
9885
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
9886
+ agent_id TEXT NOT NULL,
9887
+ source_path TEXT NOT NULL,
9888
+ harness TEXT NOT NULL,
9889
+ size_bytes INTEGER NOT NULL,
9890
+ mtime_ms INTEGER NOT NULL,
9891
+ content_sha256 TEXT NOT NULL,
9892
+ session_id TEXT NOT NULL,
9893
+ last_scanned_at TEXT NOT NULL,
9894
+ PRIMARY KEY (agent_id, source_path)
9895
+ );
9896
+
9897
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
9898
+ ON transcript_capture_jobs(agent_id, session_id, status);
9899
+ `);
9900
+ }
9901
+ function up89(db) {
9902
+ db.exec(`
9903
+ CREATE TABLE IF NOT EXISTS job_cancellations (
9904
+ id TEXT PRIMARY KEY,
9905
+ source_table TEXT NOT NULL,
9906
+ source_id TEXT NOT NULL,
9907
+ status_before TEXT NOT NULL,
9908
+ payload_json TEXT NOT NULL,
9909
+ reason TEXT,
9910
+ actor TEXT NOT NULL,
9911
+ actor_type TEXT NOT NULL,
9912
+ request_id TEXT,
9913
+ created_at TEXT NOT NULL
9914
+ )
9915
+ `);
9916
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_source")) {
9917
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
9918
+ ON job_cancellations(source_table, source_id)`);
9919
+ }
9920
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_created_at")) {
9921
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
9922
+ ON job_cancellations(created_at)`);
9923
+ }
9924
+ }
9925
+ function indexExists(db, table, indexName) {
9926
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9927
+ return rows.some((row) => row.name === indexName);
9928
+ }
9929
+ function up90(db) {
9930
+ db.exec(`
9931
+ CREATE TABLE IF NOT EXISTS job_archive (
9932
+ id TEXT PRIMARY KEY,
9933
+ source_table TEXT NOT NULL,
9934
+ source_id TEXT NOT NULL,
9935
+ status TEXT NOT NULL,
9936
+ payload_json TEXT NOT NULL,
9937
+ archived_at TEXT NOT NULL,
9938
+ archived_by TEXT NOT NULL,
9939
+ reason TEXT,
9940
+ created_at TEXT NOT NULL
9941
+ )
9942
+ `);
9943
+ if (!indexExists2(db, "job_archive", "idx_job_archive_source")) {
9944
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
9945
+ ON job_archive(source_table, source_id)`);
9946
+ }
9947
+ if (!indexExists2(db, "job_archive", "idx_job_archive_archived_at")) {
9948
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
9949
+ ON job_archive(archived_at)`);
9950
+ }
9951
+ }
9952
+ function indexExists2(db, table, indexName) {
9953
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9954
+ return rows.some((row) => row.name === indexName);
9955
+ }
9883
9956
  var MIGRATIONS = [
9884
9957
  {
9885
9958
  version: 1,
@@ -10591,6 +10664,30 @@ var MIGRATIONS = [
10591
10664
  artifacts: {
10592
10665
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
10593
10666
  }
10667
+ },
10668
+ {
10669
+ version: 88,
10670
+ name: "transcript-recovery-files",
10671
+ up: up88,
10672
+ artifacts: {
10673
+ tables: ["transcript_recovery_files"]
10674
+ }
10675
+ },
10676
+ {
10677
+ version: 89,
10678
+ name: "job-cancellations",
10679
+ up: up89,
10680
+ artifacts: {
10681
+ tables: ["job_cancellations"]
10682
+ }
10683
+ },
10684
+ {
10685
+ version: 90,
10686
+ name: "job-archive",
10687
+ up: up90,
10688
+ artifacts: {
10689
+ tables: ["job_archive"]
10690
+ }
10594
10691
  }
10595
10692
  ];
10596
10693
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17949,7 +18046,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17949
18046
  return true;
17950
18047
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17951
18048
  }
17952
- function up88(db) {
18049
+ function up91(db) {
17953
18050
  db.exec(`
17954
18051
  CREATE TABLE IF NOT EXISTS schema_migrations (
17955
18052
  version INTEGER PRIMARY KEY,
@@ -18324,7 +18421,7 @@ function up710(db) {
18324
18421
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
18325
18422
  }
18326
18423
  }
18327
- function up89(db) {
18424
+ function up810(db) {
18328
18425
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
18329
18426
  if (tables.length === 0)
18330
18427
  return;
@@ -20891,11 +20988,84 @@ function up872(db) {
20891
20988
  ON summary_jobs(agent_id, session_key, boundary_reason)
20892
20989
  `);
20893
20990
  }
20991
+ function up882(db) {
20992
+ db.exec(`
20993
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
20994
+ agent_id TEXT NOT NULL,
20995
+ source_path TEXT NOT NULL,
20996
+ harness TEXT NOT NULL,
20997
+ size_bytes INTEGER NOT NULL,
20998
+ mtime_ms INTEGER NOT NULL,
20999
+ content_sha256 TEXT NOT NULL,
21000
+ session_id TEXT NOT NULL,
21001
+ last_scanned_at TEXT NOT NULL,
21002
+ PRIMARY KEY (agent_id, source_path)
21003
+ );
21004
+
21005
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
21006
+ ON transcript_capture_jobs(agent_id, session_id, status);
21007
+ `);
21008
+ }
21009
+ function up892(db) {
21010
+ db.exec(`
21011
+ CREATE TABLE IF NOT EXISTS job_cancellations (
21012
+ id TEXT PRIMARY KEY,
21013
+ source_table TEXT NOT NULL,
21014
+ source_id TEXT NOT NULL,
21015
+ status_before TEXT NOT NULL,
21016
+ payload_json TEXT NOT NULL,
21017
+ reason TEXT,
21018
+ actor TEXT NOT NULL,
21019
+ actor_type TEXT NOT NULL,
21020
+ request_id TEXT,
21021
+ created_at TEXT NOT NULL
21022
+ )
21023
+ `);
21024
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_source")) {
21025
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
21026
+ ON job_cancellations(source_table, source_id)`);
21027
+ }
21028
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_created_at")) {
21029
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
21030
+ ON job_cancellations(created_at)`);
21031
+ }
21032
+ }
21033
+ function indexExists3(db, table, indexName) {
21034
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21035
+ return rows.some((row) => row.name === indexName);
21036
+ }
21037
+ function up902(db) {
21038
+ db.exec(`
21039
+ CREATE TABLE IF NOT EXISTS job_archive (
21040
+ id TEXT PRIMARY KEY,
21041
+ source_table TEXT NOT NULL,
21042
+ source_id TEXT NOT NULL,
21043
+ status TEXT NOT NULL,
21044
+ payload_json TEXT NOT NULL,
21045
+ archived_at TEXT NOT NULL,
21046
+ archived_by TEXT NOT NULL,
21047
+ reason TEXT,
21048
+ created_at TEXT NOT NULL
21049
+ )
21050
+ `);
21051
+ if (!indexExists22(db, "job_archive", "idx_job_archive_source")) {
21052
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
21053
+ ON job_archive(source_table, source_id)`);
21054
+ }
21055
+ if (!indexExists22(db, "job_archive", "idx_job_archive_archived_at")) {
21056
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
21057
+ ON job_archive(archived_at)`);
21058
+ }
21059
+ }
21060
+ function indexExists22(db, table, indexName) {
21061
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21062
+ return rows.some((row) => row.name === indexName);
21063
+ }
20894
21064
  var MIGRATIONS2 = [
20895
21065
  {
20896
21066
  version: 1,
20897
21067
  name: "baseline",
20898
- up: up88,
21068
+ up: up91,
20899
21069
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20900
21070
  },
20901
21071
  {
@@ -20944,7 +21114,7 @@ var MIGRATIONS2 = [
20944
21114
  {
20945
21115
  version: 8,
20946
21116
  name: "embeddings-unique-hash",
20947
- up: up89
21117
+ up: up810
20948
21118
  },
20949
21119
  {
20950
21120
  version: 9,
@@ -21602,6 +21772,30 @@ var MIGRATIONS2 = [
21602
21772
  artifacts: {
21603
21773
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
21604
21774
  }
21775
+ },
21776
+ {
21777
+ version: 88,
21778
+ name: "transcript-recovery-files",
21779
+ up: up882,
21780
+ artifacts: {
21781
+ tables: ["transcript_recovery_files"]
21782
+ }
21783
+ },
21784
+ {
21785
+ version: 89,
21786
+ name: "job-cancellations",
21787
+ up: up892,
21788
+ artifacts: {
21789
+ tables: ["job_cancellations"]
21790
+ }
21791
+ },
21792
+ {
21793
+ version: 90,
21794
+ name: "job-archive",
21795
+ up: up902,
21796
+ artifacts: {
21797
+ tables: ["job_archive"]
21798
+ }
21605
21799
  }
21606
21800
  ];
21607
21801
  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-codex",
3
- "version": "0.150.5",
3
+ "version": "0.152.0",
4
4
  "description": "Signet connector for Codex 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",