@signetai/connector-codex 0.184.0 → 0.185.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.
- package/dist/index.js +143 -27
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10499,6 +10499,50 @@ function up115(db) {
|
|
|
10499
10499
|
ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
|
|
10500
10500
|
`);
|
|
10501
10501
|
}
|
|
10502
|
+
function hasColumn21(db, table, column) {
|
|
10503
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10504
|
+
}
|
|
10505
|
+
function addColumnIfMissing24(db, column, definition) {
|
|
10506
|
+
if (!hasColumn21(db, "cross_agent_messages", column)) {
|
|
10507
|
+
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
10508
|
+
}
|
|
10509
|
+
}
|
|
10510
|
+
function up116(db) {
|
|
10511
|
+
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
10512
|
+
if (table == null)
|
|
10513
|
+
return;
|
|
10514
|
+
addColumnIfMissing24(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
10515
|
+
addColumnIfMissing24(db, "delivery_attempt_id", "TEXT");
|
|
10516
|
+
addColumnIfMissing24(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10517
|
+
addColumnIfMissing24(db, "delivery_lease_token", "TEXT");
|
|
10518
|
+
addColumnIfMissing24(db, "delivery_lease_expires_at", "TEXT");
|
|
10519
|
+
addColumnIfMissing24(db, "delivery_attempt_started_at", "TEXT");
|
|
10520
|
+
addColumnIfMissing24(db, "delivery_updated_at", "TEXT");
|
|
10521
|
+
addColumnIfMissing24(db, "acp_base_url", "TEXT");
|
|
10522
|
+
addColumnIfMissing24(db, "acp_target_agent_name", "TEXT");
|
|
10523
|
+
addColumnIfMissing24(db, "acp_timeout_ms", "INTEGER");
|
|
10524
|
+
addColumnIfMissing24(db, "acp_metadata_json", "TEXT");
|
|
10525
|
+
db.exec(`
|
|
10526
|
+
UPDATE cross_agent_messages
|
|
10527
|
+
SET delivery_state = CASE delivery_status
|
|
10528
|
+
WHEN 'delivered' THEN 'delivered'
|
|
10529
|
+
WHEN 'failed' THEN 'failed'
|
|
10530
|
+
ELSE 'pending'
|
|
10531
|
+
END
|
|
10532
|
+
WHERE delivery_state = 'pending';
|
|
10533
|
+
|
|
10534
|
+
UPDATE cross_agent_messages
|
|
10535
|
+
SET delivery_attempt_id = id
|
|
10536
|
+
WHERE delivery_attempt_id IS NULL;
|
|
10537
|
+
|
|
10538
|
+
UPDATE cross_agent_messages
|
|
10539
|
+
SET delivery_updated_at = created_at
|
|
10540
|
+
WHERE delivery_updated_at IS NULL;
|
|
10541
|
+
|
|
10542
|
+
CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
|
|
10543
|
+
ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
|
|
10544
|
+
`);
|
|
10545
|
+
}
|
|
10502
10546
|
var MIGRATIONS = [
|
|
10503
10547
|
{
|
|
10504
10548
|
version: 1,
|
|
@@ -11424,6 +11468,20 @@ var MIGRATIONS = [
|
|
|
11424
11468
|
artifacts: {
|
|
11425
11469
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
11426
11470
|
}
|
|
11471
|
+
},
|
|
11472
|
+
{
|
|
11473
|
+
version: 116,
|
|
11474
|
+
name: "acp-delivery-reconciliation",
|
|
11475
|
+
up: up116,
|
|
11476
|
+
artifacts: {
|
|
11477
|
+
columns: [
|
|
11478
|
+
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
11479
|
+
{ table: "cross_agent_messages", column: "delivery_attempt_id" },
|
|
11480
|
+
{ table: "cross_agent_messages", column: "delivery_lease_expires_at" },
|
|
11481
|
+
{ table: "cross_agent_messages", column: "acp_base_url" },
|
|
11482
|
+
{ table: "cross_agent_messages", column: "acp_target_agent_name" }
|
|
11483
|
+
]
|
|
11484
|
+
}
|
|
11427
11485
|
}
|
|
11428
11486
|
];
|
|
11429
11487
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18806,7 +18864,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18806
18864
|
return true;
|
|
18807
18865
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18808
18866
|
}
|
|
18809
|
-
function
|
|
18867
|
+
function up117(db) {
|
|
18810
18868
|
db.exec(`
|
|
18811
18869
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18812
18870
|
version INTEGER PRIMARY KEY,
|
|
@@ -18895,31 +18953,31 @@ function up116(db) {
|
|
|
18895
18953
|
} catch {}
|
|
18896
18954
|
createMemoriesFts2(db);
|
|
18897
18955
|
}
|
|
18898
|
-
function
|
|
18956
|
+
function hasColumn22(db, table, column) {
|
|
18899
18957
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18900
18958
|
return rows.some((r) => r.name === column);
|
|
18901
18959
|
}
|
|
18902
|
-
function
|
|
18903
|
-
if (!
|
|
18960
|
+
function addColumnIfMissing25(db, table, column, definition) {
|
|
18961
|
+
if (!hasColumn22(db, table, column)) {
|
|
18904
18962
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18905
18963
|
}
|
|
18906
18964
|
}
|
|
18907
18965
|
function up210(db) {
|
|
18908
|
-
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
|
|
18921
|
-
|
|
18922
|
-
|
|
18966
|
+
addColumnIfMissing25(db, "memories", "content_hash", "TEXT");
|
|
18967
|
+
addColumnIfMissing25(db, "memories", "normalized_content", "TEXT");
|
|
18968
|
+
addColumnIfMissing25(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
18969
|
+
addColumnIfMissing25(db, "memories", "deleted_at", "TEXT");
|
|
18970
|
+
addColumnIfMissing25(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
18971
|
+
addColumnIfMissing25(db, "memories", "embedding_model", "TEXT");
|
|
18972
|
+
addColumnIfMissing25(db, "memories", "extraction_model", "TEXT");
|
|
18973
|
+
addColumnIfMissing25(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
18974
|
+
addColumnIfMissing25(db, "memories", "who", "TEXT");
|
|
18975
|
+
addColumnIfMissing25(db, "memories", "why", "TEXT");
|
|
18976
|
+
addColumnIfMissing25(db, "memories", "project", "TEXT");
|
|
18977
|
+
addColumnIfMissing25(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
18978
|
+
addColumnIfMissing25(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
18979
|
+
addColumnIfMissing25(db, "memories", "last_accessed", "TEXT");
|
|
18980
|
+
addColumnIfMissing25(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
18923
18981
|
db.exec(`
|
|
18924
18982
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
18925
18983
|
id TEXT PRIMARY KEY,
|
|
@@ -19015,7 +19073,7 @@ function up210(db) {
|
|
|
19015
19073
|
ON memory_entity_mentions(entity_id);
|
|
19016
19074
|
`);
|
|
19017
19075
|
}
|
|
19018
|
-
function
|
|
19076
|
+
function addColumnIfMissing26(db, table, column, definition) {
|
|
19019
19077
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19020
19078
|
if (rows.some((r) => r.name === column))
|
|
19021
19079
|
return false;
|
|
@@ -19023,8 +19081,8 @@ function addColumnIfMissing25(db, table, column, definition) {
|
|
|
19023
19081
|
return true;
|
|
19024
19082
|
}
|
|
19025
19083
|
function up310(db) {
|
|
19026
|
-
|
|
19027
|
-
|
|
19084
|
+
addColumnIfMissing26(db, "memories", "why", "TEXT");
|
|
19085
|
+
addColumnIfMissing26(db, "memories", "project", "TEXT");
|
|
19028
19086
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
19029
19087
|
db.exec(`
|
|
19030
19088
|
UPDATE memories
|
|
@@ -19050,12 +19108,12 @@ function up310(db) {
|
|
|
19050
19108
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
19051
19109
|
`);
|
|
19052
19110
|
}
|
|
19053
|
-
function
|
|
19111
|
+
function hasColumn23(db, table, column) {
|
|
19054
19112
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19055
19113
|
return rows.some((r) => r.name === column);
|
|
19056
19114
|
}
|
|
19057
19115
|
function addColumnIfMissing32(db, table, column, definition) {
|
|
19058
|
-
if (!
|
|
19116
|
+
if (!hasColumn23(db, table, column)) {
|
|
19059
19117
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19060
19118
|
}
|
|
19061
19119
|
}
|
|
@@ -19229,7 +19287,7 @@ function up1010(db) {
|
|
|
19229
19287
|
)
|
|
19230
19288
|
`);
|
|
19231
19289
|
}
|
|
19232
|
-
function
|
|
19290
|
+
function up118(db) {
|
|
19233
19291
|
db.exec(`
|
|
19234
19292
|
CREATE TABLE IF NOT EXISTS session_scores (
|
|
19235
19293
|
id TEXT PRIMARY KEY,
|
|
@@ -22338,11 +22396,55 @@ function up1152(db) {
|
|
|
22338
22396
|
ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
|
|
22339
22397
|
`);
|
|
22340
22398
|
}
|
|
22399
|
+
function hasColumn212(db, table, column) {
|
|
22400
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
22401
|
+
}
|
|
22402
|
+
function addColumnIfMissing242(db, column, definition) {
|
|
22403
|
+
if (!hasColumn212(db, "cross_agent_messages", column)) {
|
|
22404
|
+
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
22405
|
+
}
|
|
22406
|
+
}
|
|
22407
|
+
function up1162(db) {
|
|
22408
|
+
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
22409
|
+
if (table == null)
|
|
22410
|
+
return;
|
|
22411
|
+
addColumnIfMissing242(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
22412
|
+
addColumnIfMissing242(db, "delivery_attempt_id", "TEXT");
|
|
22413
|
+
addColumnIfMissing242(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
22414
|
+
addColumnIfMissing242(db, "delivery_lease_token", "TEXT");
|
|
22415
|
+
addColumnIfMissing242(db, "delivery_lease_expires_at", "TEXT");
|
|
22416
|
+
addColumnIfMissing242(db, "delivery_attempt_started_at", "TEXT");
|
|
22417
|
+
addColumnIfMissing242(db, "delivery_updated_at", "TEXT");
|
|
22418
|
+
addColumnIfMissing242(db, "acp_base_url", "TEXT");
|
|
22419
|
+
addColumnIfMissing242(db, "acp_target_agent_name", "TEXT");
|
|
22420
|
+
addColumnIfMissing242(db, "acp_timeout_ms", "INTEGER");
|
|
22421
|
+
addColumnIfMissing242(db, "acp_metadata_json", "TEXT");
|
|
22422
|
+
db.exec(`
|
|
22423
|
+
UPDATE cross_agent_messages
|
|
22424
|
+
SET delivery_state = CASE delivery_status
|
|
22425
|
+
WHEN 'delivered' THEN 'delivered'
|
|
22426
|
+
WHEN 'failed' THEN 'failed'
|
|
22427
|
+
ELSE 'pending'
|
|
22428
|
+
END
|
|
22429
|
+
WHERE delivery_state = 'pending';
|
|
22430
|
+
|
|
22431
|
+
UPDATE cross_agent_messages
|
|
22432
|
+
SET delivery_attempt_id = id
|
|
22433
|
+
WHERE delivery_attempt_id IS NULL;
|
|
22434
|
+
|
|
22435
|
+
UPDATE cross_agent_messages
|
|
22436
|
+
SET delivery_updated_at = created_at
|
|
22437
|
+
WHERE delivery_updated_at IS NULL;
|
|
22438
|
+
|
|
22439
|
+
CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
|
|
22440
|
+
ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
|
|
22441
|
+
`);
|
|
22442
|
+
}
|
|
22341
22443
|
var MIGRATIONS2 = [
|
|
22342
22444
|
{
|
|
22343
22445
|
version: 1,
|
|
22344
22446
|
name: "baseline",
|
|
22345
|
-
up:
|
|
22447
|
+
up: up117,
|
|
22346
22448
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
22347
22449
|
},
|
|
22348
22450
|
{
|
|
@@ -22408,7 +22510,7 @@ var MIGRATIONS2 = [
|
|
|
22408
22510
|
{
|
|
22409
22511
|
version: 11,
|
|
22410
22512
|
name: "session-scores",
|
|
22411
|
-
up:
|
|
22513
|
+
up: up118,
|
|
22412
22514
|
artifacts: { tables: ["session_scores"] }
|
|
22413
22515
|
},
|
|
22414
22516
|
{
|
|
@@ -23263,6 +23365,20 @@ var MIGRATIONS2 = [
|
|
|
23263
23365
|
artifacts: {
|
|
23264
23366
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
23265
23367
|
}
|
|
23368
|
+
},
|
|
23369
|
+
{
|
|
23370
|
+
version: 116,
|
|
23371
|
+
name: "acp-delivery-reconciliation",
|
|
23372
|
+
up: up1162,
|
|
23373
|
+
artifacts: {
|
|
23374
|
+
columns: [
|
|
23375
|
+
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
23376
|
+
{ table: "cross_agent_messages", column: "delivery_attempt_id" },
|
|
23377
|
+
{ table: "cross_agent_messages", column: "delivery_lease_expires_at" },
|
|
23378
|
+
{ table: "cross_agent_messages", column: "acp_base_url" },
|
|
23379
|
+
{ table: "cross_agent_messages", column: "acp_target_agent_name" }
|
|
23380
|
+
]
|
|
23381
|
+
}
|
|
23266
23382
|
}
|
|
23267
23383
|
];
|
|
23268
23384
|
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.
|
|
3
|
+
"version": "0.185.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.
|
|
28
|
-
"@signetai/core": "0.
|
|
27
|
+
"@signetai/connector-base": "0.185.0",
|
|
28
|
+
"@signetai/core": "0.185.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|