@signetai/connector-codex 0.194.0 → 0.195.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 +84 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -11077,6 +11077,40 @@ function up125(db) {
11077
11077
  scannedAt
11078
11078
  });
11079
11079
  }
11080
+ function up126(db) {
11081
+ const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
11082
+ if (!table)
11083
+ return;
11084
+ if (table.sql?.includes("'surprisal'"))
11085
+ return;
11086
+ db.exec(`
11087
+ DROP INDEX IF EXISTS idx_dreaming_attention_pending;
11088
+ ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
11089
+ CREATE TABLE dreaming_attention (
11090
+ id TEXT PRIMARY KEY,
11091
+ agent_id TEXT NOT NULL,
11092
+ kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
11093
+ subject_ref TEXT NOT NULL,
11094
+ details_json TEXT NOT NULL DEFAULT '{}',
11095
+ priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
11096
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
11097
+ generation INTEGER NOT NULL DEFAULT 0,
11098
+ resolved_at TEXT,
11099
+ resolved_by_pass_id TEXT,
11100
+ UNIQUE(agent_id, kind, subject_ref)
11101
+ );
11102
+ INSERT INTO dreaming_attention (
11103
+ id, agent_id, kind, subject_ref, details_json, priority, created_at,
11104
+ generation, resolved_at, resolved_by_pass_id
11105
+ )
11106
+ SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
11107
+ generation, resolved_at, resolved_by_pass_id
11108
+ FROM dreaming_attention_legacy_126;
11109
+ DROP TABLE dreaming_attention_legacy_126;
11110
+ CREATE INDEX idx_dreaming_attention_pending
11111
+ ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
11112
+ `);
11113
+ }
11080
11114
  var MIGRATIONS = [
11081
11115
  {
11082
11116
  version: 1,
@@ -12091,6 +12125,12 @@ var MIGRATIONS = [
12091
12125
  name: "memory-content-safety",
12092
12126
  up: up125,
12093
12127
  artifacts: { tables: ["memory_content_safety"] }
12128
+ },
12129
+ {
12130
+ version: 126,
12131
+ name: "dreaming-surprisal-attention",
12132
+ up: up126,
12133
+ artifacts: { tables: ["dreaming_attention"] }
12094
12134
  }
12095
12135
  ];
12096
12136
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -19567,7 +19607,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
19567
19607
  return true;
19568
19608
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
19569
19609
  }
19570
- function up126(db) {
19610
+ function up127(db) {
19571
19611
  db.exec(`
19572
19612
  CREATE TABLE IF NOT EXISTS schema_migrations (
19573
19613
  version INTEGER PRIMARY KEY,
@@ -20010,7 +20050,7 @@ function up1110(db) {
20010
20050
  ON session_scores(session_key);
20011
20051
  `);
20012
20052
  }
20013
- function up127(db) {
20053
+ function up128(db) {
20014
20054
  db.exec(`
20015
20055
  CREATE TABLE IF NOT EXISTS scheduled_tasks (
20016
20056
  id TEXT PRIMARY KEY,
@@ -23583,11 +23623,45 @@ function up1252(db) {
23583
23623
  scannedAt
23584
23624
  });
23585
23625
  }
23626
+ function up1262(db) {
23627
+ const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
23628
+ if (!table)
23629
+ return;
23630
+ if (table.sql?.includes("'surprisal'"))
23631
+ return;
23632
+ db.exec(`
23633
+ DROP INDEX IF EXISTS idx_dreaming_attention_pending;
23634
+ ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
23635
+ CREATE TABLE dreaming_attention (
23636
+ id TEXT PRIMARY KEY,
23637
+ agent_id TEXT NOT NULL,
23638
+ kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
23639
+ subject_ref TEXT NOT NULL,
23640
+ details_json TEXT NOT NULL DEFAULT '{}',
23641
+ priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
23642
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
23643
+ generation INTEGER NOT NULL DEFAULT 0,
23644
+ resolved_at TEXT,
23645
+ resolved_by_pass_id TEXT,
23646
+ UNIQUE(agent_id, kind, subject_ref)
23647
+ );
23648
+ INSERT INTO dreaming_attention (
23649
+ id, agent_id, kind, subject_ref, details_json, priority, created_at,
23650
+ generation, resolved_at, resolved_by_pass_id
23651
+ )
23652
+ SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
23653
+ generation, resolved_at, resolved_by_pass_id
23654
+ FROM dreaming_attention_legacy_126;
23655
+ DROP TABLE dreaming_attention_legacy_126;
23656
+ CREATE INDEX idx_dreaming_attention_pending
23657
+ ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
23658
+ `);
23659
+ }
23586
23660
  var MIGRATIONS2 = [
23587
23661
  {
23588
23662
  version: 1,
23589
23663
  name: "baseline",
23590
- up: up126,
23664
+ up: up127,
23591
23665
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
23592
23666
  },
23593
23667
  {
@@ -23659,7 +23733,7 @@ var MIGRATIONS2 = [
23659
23733
  {
23660
23734
  version: 12,
23661
23735
  name: "scheduled-tasks",
23662
- up: up127,
23736
+ up: up128,
23663
23737
  artifacts: { tables: ["scheduled_tasks", "task_runs"] }
23664
23738
  },
23665
23739
  {
@@ -24597,6 +24671,12 @@ var MIGRATIONS2 = [
24597
24671
  name: "memory-content-safety",
24598
24672
  up: up1252,
24599
24673
  artifacts: { tables: ["memory_content_safety"] }
24674
+ },
24675
+ {
24676
+ version: 126,
24677
+ name: "dreaming-surprisal-attention",
24678
+ up: up1262,
24679
+ artifacts: { tables: ["dreaming_attention"] }
24600
24680
  }
24601
24681
  ];
24602
24682
  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.194.0",
3
+ "version": "0.195.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.194.0",
28
- "@signetai/core": "0.194.0"
27
+ "@signetai/connector-base": "0.195.0",
28
+ "@signetai/core": "0.195.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",