@signetai/connector-codex 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
@@ -9603,6 +9603,25 @@ function up81(db) {
9603
9603
  ON aggregate_evidence_sources(source_kind, source_id);
9604
9604
  `);
9605
9605
  }
9606
+ function hasColumn11(db, table, column) {
9607
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
9608
+ return rows.some((row) => row.name === column);
9609
+ }
9610
+ var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
9611
+ function up82(db) {
9612
+ for (const column of COLUMNS) {
9613
+ if (!hasColumn11(db, "skill_invocations", column)) {
9614
+ db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
9615
+ }
9616
+ }
9617
+ db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
9618
+ db.exec(`
9619
+ CREATE UNIQUE INDEX idx_skill_inv_dedupe
9620
+ ON skill_invocations(agent_id, harness, session_id, tool_use_id)
9621
+ WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
9622
+ `);
9623
+ db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
9624
+ }
9606
9625
  var MIGRATIONS = [
9607
9626
  {
9608
9627
  version: 1,
@@ -10256,6 +10275,17 @@ var MIGRATIONS = [
10256
10275
  artifacts: {
10257
10276
  tables: ["aggregate_evidence_sources"]
10258
10277
  }
10278
+ },
10279
+ {
10280
+ version: 82,
10281
+ name: "skill-invocations-harness",
10282
+ up: up82,
10283
+ artifacts: {
10284
+ columns: [
10285
+ { table: "skill_invocations", column: "harness" },
10286
+ { table: "skill_invocations", column: "tool_use_id" }
10287
+ ]
10288
+ }
10259
10289
  }
10260
10290
  ];
10261
10291
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17606,7 +17636,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17606
17636
  return true;
17607
17637
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17608
17638
  }
17609
- function up82(db) {
17639
+ function up83(db) {
17610
17640
  db.exec(`
17611
17641
  CREATE TABLE IF NOT EXISTS schema_migrations (
17612
17642
  version INTEGER PRIMARY KEY,
@@ -17695,12 +17725,12 @@ function up82(db) {
17695
17725
  } catch {}
17696
17726
  createMemoriesFts2(db);
17697
17727
  }
17698
- function hasColumn11(db, table, column) {
17728
+ function hasColumn12(db, table, column) {
17699
17729
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
17700
17730
  return rows.some((r) => r.name === column);
17701
17731
  }
17702
17732
  function addColumnIfMissing20(db, table, column, definition) {
17703
- if (!hasColumn11(db, table, column)) {
17733
+ if (!hasColumn12(db, table, column)) {
17704
17734
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
17705
17735
  }
17706
17736
  }
@@ -17981,7 +18011,7 @@ function up710(db) {
17981
18011
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
17982
18012
  }
17983
18013
  }
17984
- function up83(db) {
18014
+ function up84(db) {
17985
18015
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
17986
18016
  if (tables.length === 0)
17987
18017
  return;
@@ -20271,11 +20301,30 @@ function up812(db) {
20271
20301
  ON aggregate_evidence_sources(source_kind, source_id);
20272
20302
  `);
20273
20303
  }
20304
+ function hasColumn112(db, table, column) {
20305
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
20306
+ return rows.some((row) => row.name === column);
20307
+ }
20308
+ var COLUMNS2 = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
20309
+ function up822(db) {
20310
+ for (const column of COLUMNS2) {
20311
+ if (!hasColumn112(db, "skill_invocations", column)) {
20312
+ db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
20313
+ }
20314
+ }
20315
+ db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
20316
+ db.exec(`
20317
+ CREATE UNIQUE INDEX idx_skill_inv_dedupe
20318
+ ON skill_invocations(agent_id, harness, session_id, tool_use_id)
20319
+ WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
20320
+ `);
20321
+ db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
20322
+ }
20274
20323
  var MIGRATIONS2 = [
20275
20324
  {
20276
20325
  version: 1,
20277
20326
  name: "baseline",
20278
- up: up82,
20327
+ up: up83,
20279
20328
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20280
20329
  },
20281
20330
  {
@@ -20324,7 +20373,7 @@ var MIGRATIONS2 = [
20324
20373
  {
20325
20374
  version: 8,
20326
20375
  name: "embeddings-unique-hash",
20327
- up: up83
20376
+ up: up84
20328
20377
  },
20329
20378
  {
20330
20379
  version: 9,
@@ -20924,6 +20973,17 @@ var MIGRATIONS2 = [
20924
20973
  artifacts: {
20925
20974
  tables: ["aggregate_evidence_sources"]
20926
20975
  }
20976
+ },
20977
+ {
20978
+ version: 82,
20979
+ name: "skill-invocations-harness",
20980
+ up: up822,
20981
+ artifacts: {
20982
+ columns: [
20983
+ { table: "skill_invocations", column: "harness" },
20984
+ { table: "skill_invocations", column: "tool_use_id" }
20985
+ ]
20986
+ }
20927
20987
  }
20928
20988
  ];
20929
20989
  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.145.9",
3
+ "version": "0.146.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.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",