@signetai/connector-codex 0.188.2 → 0.189.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 +113 -27
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10807,6 +10807,35 @@ function up120(db) {
|
|
|
10807
10807
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
10808
10808
|
`);
|
|
10809
10809
|
}
|
|
10810
|
+
function hasColumn23(db, table, column) {
|
|
10811
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10812
|
+
}
|
|
10813
|
+
function addColumnIfMissing26(db, column, definition) {
|
|
10814
|
+
if (!hasColumn23(db, "telemetry_events", column)) {
|
|
10815
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
10816
|
+
}
|
|
10817
|
+
}
|
|
10818
|
+
function up121(db) {
|
|
10819
|
+
addColumnIfMissing26(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10820
|
+
addColumnIfMissing26(db, "last_attempt_at", "TEXT");
|
|
10821
|
+
addColumnIfMissing26(db, "sent_at", "TEXT");
|
|
10822
|
+
addColumnIfMissing26(db, "last_failure_code", "TEXT");
|
|
10823
|
+
db.exec(`
|
|
10824
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
10825
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
10826
|
+
window_started_at TEXT NOT NULL,
|
|
10827
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
10828
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
10829
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
10830
|
+
last_attempt_at TEXT,
|
|
10831
|
+
last_success_at TEXT,
|
|
10832
|
+
last_failure_code TEXT,
|
|
10833
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
10834
|
+
);
|
|
10835
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
10836
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
10837
|
+
`);
|
|
10838
|
+
}
|
|
10810
10839
|
var MIGRATIONS = [
|
|
10811
10840
|
{
|
|
10812
10841
|
version: 1,
|
|
@@ -11774,6 +11803,20 @@ var MIGRATIONS = [
|
|
|
11774
11803
|
name: "source-lifecycle-telemetry",
|
|
11775
11804
|
up: up120,
|
|
11776
11805
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
11806
|
+
},
|
|
11807
|
+
{
|
|
11808
|
+
version: 121,
|
|
11809
|
+
name: "telemetry-delivery-health",
|
|
11810
|
+
up: up121,
|
|
11811
|
+
artifacts: {
|
|
11812
|
+
tables: ["telemetry_delivery_state"],
|
|
11813
|
+
columns: [
|
|
11814
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
11815
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
11816
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
11817
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
11818
|
+
]
|
|
11819
|
+
}
|
|
11777
11820
|
}
|
|
11778
11821
|
];
|
|
11779
11822
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19157,7 +19200,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19157
19200
|
return true;
|
|
19158
19201
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19159
19202
|
}
|
|
19160
|
-
function
|
|
19203
|
+
function up122(db) {
|
|
19161
19204
|
db.exec(`
|
|
19162
19205
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19163
19206
|
version INTEGER PRIMARY KEY,
|
|
@@ -19246,31 +19289,31 @@ function up121(db) {
|
|
|
19246
19289
|
} catch {}
|
|
19247
19290
|
createMemoriesFts2(db);
|
|
19248
19291
|
}
|
|
19249
|
-
function
|
|
19292
|
+
function hasColumn24(db, table, column) {
|
|
19250
19293
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19251
19294
|
return rows.some((r) => r.name === column);
|
|
19252
19295
|
}
|
|
19253
|
-
function
|
|
19254
|
-
if (!
|
|
19296
|
+
function addColumnIfMissing27(db, table, column, definition) {
|
|
19297
|
+
if (!hasColumn24(db, table, column)) {
|
|
19255
19298
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19256
19299
|
}
|
|
19257
19300
|
}
|
|
19258
19301
|
function up210(db) {
|
|
19259
|
-
|
|
19260
|
-
|
|
19261
|
-
|
|
19262
|
-
|
|
19263
|
-
|
|
19264
|
-
|
|
19265
|
-
|
|
19266
|
-
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
|
|
19270
|
-
|
|
19271
|
-
|
|
19272
|
-
|
|
19273
|
-
|
|
19302
|
+
addColumnIfMissing27(db, "memories", "content_hash", "TEXT");
|
|
19303
|
+
addColumnIfMissing27(db, "memories", "normalized_content", "TEXT");
|
|
19304
|
+
addColumnIfMissing27(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
19305
|
+
addColumnIfMissing27(db, "memories", "deleted_at", "TEXT");
|
|
19306
|
+
addColumnIfMissing27(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
19307
|
+
addColumnIfMissing27(db, "memories", "embedding_model", "TEXT");
|
|
19308
|
+
addColumnIfMissing27(db, "memories", "extraction_model", "TEXT");
|
|
19309
|
+
addColumnIfMissing27(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
19310
|
+
addColumnIfMissing27(db, "memories", "who", "TEXT");
|
|
19311
|
+
addColumnIfMissing27(db, "memories", "why", "TEXT");
|
|
19312
|
+
addColumnIfMissing27(db, "memories", "project", "TEXT");
|
|
19313
|
+
addColumnIfMissing27(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
19314
|
+
addColumnIfMissing27(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
19315
|
+
addColumnIfMissing27(db, "memories", "last_accessed", "TEXT");
|
|
19316
|
+
addColumnIfMissing27(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
19274
19317
|
db.exec(`
|
|
19275
19318
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
19276
19319
|
id TEXT PRIMARY KEY,
|
|
@@ -19366,7 +19409,7 @@ function up210(db) {
|
|
|
19366
19409
|
ON memory_entity_mentions(entity_id);
|
|
19367
19410
|
`);
|
|
19368
19411
|
}
|
|
19369
|
-
function
|
|
19412
|
+
function addColumnIfMissing28(db, table, column, definition) {
|
|
19370
19413
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19371
19414
|
if (rows.some((r) => r.name === column))
|
|
19372
19415
|
return false;
|
|
@@ -19374,8 +19417,8 @@ function addColumnIfMissing27(db, table, column, definition) {
|
|
|
19374
19417
|
return true;
|
|
19375
19418
|
}
|
|
19376
19419
|
function up310(db) {
|
|
19377
|
-
|
|
19378
|
-
|
|
19420
|
+
addColumnIfMissing28(db, "memories", "why", "TEXT");
|
|
19421
|
+
addColumnIfMissing28(db, "memories", "project", "TEXT");
|
|
19379
19422
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
19380
19423
|
db.exec(`
|
|
19381
19424
|
UPDATE memories
|
|
@@ -19401,12 +19444,12 @@ function up310(db) {
|
|
|
19401
19444
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
19402
19445
|
`);
|
|
19403
19446
|
}
|
|
19404
|
-
function
|
|
19447
|
+
function hasColumn25(db, table, column) {
|
|
19405
19448
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19406
19449
|
return rows.some((r) => r.name === column);
|
|
19407
19450
|
}
|
|
19408
19451
|
function addColumnIfMissing32(db, table, column, definition) {
|
|
19409
|
-
if (!
|
|
19452
|
+
if (!hasColumn25(db, table, column)) {
|
|
19410
19453
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19411
19454
|
}
|
|
19412
19455
|
}
|
|
@@ -19600,7 +19643,7 @@ function up1110(db) {
|
|
|
19600
19643
|
ON session_scores(session_key);
|
|
19601
19644
|
`);
|
|
19602
19645
|
}
|
|
19603
|
-
function
|
|
19646
|
+
function up123(db) {
|
|
19604
19647
|
db.exec(`
|
|
19605
19648
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
19606
19649
|
id TEXT PRIMARY KEY,
|
|
@@ -22996,11 +23039,40 @@ function up1202(db) {
|
|
|
22996
23039
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
22997
23040
|
`);
|
|
22998
23041
|
}
|
|
23042
|
+
function hasColumn232(db, table, column) {
|
|
23043
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
23044
|
+
}
|
|
23045
|
+
function addColumnIfMissing262(db, column, definition) {
|
|
23046
|
+
if (!hasColumn232(db, "telemetry_events", column)) {
|
|
23047
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
23048
|
+
}
|
|
23049
|
+
}
|
|
23050
|
+
function up1212(db) {
|
|
23051
|
+
addColumnIfMissing262(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
23052
|
+
addColumnIfMissing262(db, "last_attempt_at", "TEXT");
|
|
23053
|
+
addColumnIfMissing262(db, "sent_at", "TEXT");
|
|
23054
|
+
addColumnIfMissing262(db, "last_failure_code", "TEXT");
|
|
23055
|
+
db.exec(`
|
|
23056
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
23057
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
23058
|
+
window_started_at TEXT NOT NULL,
|
|
23059
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
23060
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
23061
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
23062
|
+
last_attempt_at TEXT,
|
|
23063
|
+
last_success_at TEXT,
|
|
23064
|
+
last_failure_code TEXT,
|
|
23065
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
23066
|
+
);
|
|
23067
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
23068
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
23069
|
+
`);
|
|
23070
|
+
}
|
|
22999
23071
|
var MIGRATIONS2 = [
|
|
23000
23072
|
{
|
|
23001
23073
|
version: 1,
|
|
23002
23074
|
name: "baseline",
|
|
23003
|
-
up:
|
|
23075
|
+
up: up122,
|
|
23004
23076
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23005
23077
|
},
|
|
23006
23078
|
{
|
|
@@ -23072,7 +23144,7 @@ var MIGRATIONS2 = [
|
|
|
23072
23144
|
{
|
|
23073
23145
|
version: 12,
|
|
23074
23146
|
name: "scheduled-tasks",
|
|
23075
|
-
up:
|
|
23147
|
+
up: up123,
|
|
23076
23148
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
23077
23149
|
},
|
|
23078
23150
|
{
|
|
@@ -23963,6 +24035,20 @@ var MIGRATIONS2 = [
|
|
|
23963
24035
|
name: "source-lifecycle-telemetry",
|
|
23964
24036
|
up: up1202,
|
|
23965
24037
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
24038
|
+
},
|
|
24039
|
+
{
|
|
24040
|
+
version: 121,
|
|
24041
|
+
name: "telemetry-delivery-health",
|
|
24042
|
+
up: up1212,
|
|
24043
|
+
artifacts: {
|
|
24044
|
+
tables: ["telemetry_delivery_state"],
|
|
24045
|
+
columns: [
|
|
24046
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
24047
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
24048
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
24049
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
24050
|
+
]
|
|
24051
|
+
}
|
|
23966
24052
|
}
|
|
23967
24053
|
];
|
|
23968
24054
|
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.189.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.189.0",
|
|
28
|
+
"@signetai/core": "0.189.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|