@signetai/connector-codex 0.198.0 → 0.198.2
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 +94 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11231,6 +11231,46 @@ function up129(db) {
|
|
|
11231
11231
|
AND status IN ('pending', 'leased');
|
|
11232
11232
|
`);
|
|
11233
11233
|
}
|
|
11234
|
+
function up130(db) {
|
|
11235
|
+
db.exec(`
|
|
11236
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
11237
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
11238
|
+
window_started_at TEXT NOT NULL,
|
|
11239
|
+
batches_started INTEGER NOT NULL DEFAULT 0 CHECK (batches_started >= 0),
|
|
11240
|
+
last_completed_at TEXT,
|
|
11241
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
11242
|
+
lease_id TEXT,
|
|
11243
|
+
lease_expires_at TEXT,
|
|
11244
|
+
last_error TEXT,
|
|
11245
|
+
updated_at TEXT NOT NULL
|
|
11246
|
+
);
|
|
11247
|
+
|
|
11248
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_backoff (
|
|
11249
|
+
memory_id TEXT NOT NULL,
|
|
11250
|
+
content_hash TEXT NOT NULL,
|
|
11251
|
+
model TEXT NOT NULL,
|
|
11252
|
+
attempts INTEGER NOT NULL DEFAULT 1 CHECK (attempts > 0),
|
|
11253
|
+
retry_at TEXT NOT NULL,
|
|
11254
|
+
updated_at TEXT NOT NULL,
|
|
11255
|
+
PRIMARY KEY (memory_id, content_hash, model)
|
|
11256
|
+
);
|
|
11257
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_backoff_retry
|
|
11258
|
+
ON embedding_repair_backoff(model, retry_at);
|
|
11259
|
+
|
|
11260
|
+
-- Backoff is derived state. Retire it when the source memory disappears
|
|
11261
|
+
-- or moves to a new hash so stale retry keys cannot accumulate forever.
|
|
11262
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_memory_deleted
|
|
11263
|
+
AFTER DELETE ON memories BEGIN
|
|
11264
|
+
DELETE FROM embedding_repair_backoff WHERE memory_id = OLD.id;
|
|
11265
|
+
END;
|
|
11266
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_content_hash_changed
|
|
11267
|
+
AFTER UPDATE OF content_hash ON memories
|
|
11268
|
+
WHEN OLD.content_hash IS NOT NEW.content_hash BEGIN
|
|
11269
|
+
DELETE FROM embedding_repair_backoff
|
|
11270
|
+
WHERE memory_id = OLD.id AND content_hash IS NOT NEW.content_hash;
|
|
11271
|
+
END;
|
|
11272
|
+
`);
|
|
11273
|
+
}
|
|
11234
11274
|
var MIGRATIONS = [
|
|
11235
11275
|
{
|
|
11236
11276
|
version: 1,
|
|
@@ -12267,6 +12307,12 @@ var MIGRATIONS = [
|
|
|
12267
12307
|
version: 129,
|
|
12268
12308
|
name: "retire-structural-jobs",
|
|
12269
12309
|
up: up129
|
|
12310
|
+
},
|
|
12311
|
+
{
|
|
12312
|
+
version: 130,
|
|
12313
|
+
name: "embedding-repair-state",
|
|
12314
|
+
up: up130,
|
|
12315
|
+
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
12270
12316
|
}
|
|
12271
12317
|
];
|
|
12272
12318
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19743,7 +19789,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19743
19789
|
return true;
|
|
19744
19790
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19745
19791
|
}
|
|
19746
|
-
function
|
|
19792
|
+
function up131(db) {
|
|
19747
19793
|
db.exec(`
|
|
19748
19794
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19749
19795
|
version INTEGER PRIMARY KEY,
|
|
@@ -23913,11 +23959,51 @@ function up1292(db) {
|
|
|
23913
23959
|
AND status IN ('pending', 'leased');
|
|
23914
23960
|
`);
|
|
23915
23961
|
}
|
|
23962
|
+
function up1302(db) {
|
|
23963
|
+
db.exec(`
|
|
23964
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
23965
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
23966
|
+
window_started_at TEXT NOT NULL,
|
|
23967
|
+
batches_started INTEGER NOT NULL DEFAULT 0 CHECK (batches_started >= 0),
|
|
23968
|
+
last_completed_at TEXT,
|
|
23969
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
23970
|
+
lease_id TEXT,
|
|
23971
|
+
lease_expires_at TEXT,
|
|
23972
|
+
last_error TEXT,
|
|
23973
|
+
updated_at TEXT NOT NULL
|
|
23974
|
+
);
|
|
23975
|
+
|
|
23976
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_backoff (
|
|
23977
|
+
memory_id TEXT NOT NULL,
|
|
23978
|
+
content_hash TEXT NOT NULL,
|
|
23979
|
+
model TEXT NOT NULL,
|
|
23980
|
+
attempts INTEGER NOT NULL DEFAULT 1 CHECK (attempts > 0),
|
|
23981
|
+
retry_at TEXT NOT NULL,
|
|
23982
|
+
updated_at TEXT NOT NULL,
|
|
23983
|
+
PRIMARY KEY (memory_id, content_hash, model)
|
|
23984
|
+
);
|
|
23985
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_backoff_retry
|
|
23986
|
+
ON embedding_repair_backoff(model, retry_at);
|
|
23987
|
+
|
|
23988
|
+
-- Backoff is derived state. Retire it when the source memory disappears
|
|
23989
|
+
-- or moves to a new hash so stale retry keys cannot accumulate forever.
|
|
23990
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_memory_deleted
|
|
23991
|
+
AFTER DELETE ON memories BEGIN
|
|
23992
|
+
DELETE FROM embedding_repair_backoff WHERE memory_id = OLD.id;
|
|
23993
|
+
END;
|
|
23994
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_content_hash_changed
|
|
23995
|
+
AFTER UPDATE OF content_hash ON memories
|
|
23996
|
+
WHEN OLD.content_hash IS NOT NEW.content_hash BEGIN
|
|
23997
|
+
DELETE FROM embedding_repair_backoff
|
|
23998
|
+
WHERE memory_id = OLD.id AND content_hash IS NOT NEW.content_hash;
|
|
23999
|
+
END;
|
|
24000
|
+
`);
|
|
24001
|
+
}
|
|
23916
24002
|
var MIGRATIONS2 = [
|
|
23917
24003
|
{
|
|
23918
24004
|
version: 1,
|
|
23919
24005
|
name: "baseline",
|
|
23920
|
-
up:
|
|
24006
|
+
up: up131,
|
|
23921
24007
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23922
24008
|
},
|
|
23923
24009
|
{
|
|
@@ -24949,6 +25035,12 @@ var MIGRATIONS2 = [
|
|
|
24949
25035
|
version: 129,
|
|
24950
25036
|
name: "retire-structural-jobs",
|
|
24951
25037
|
up: up1292
|
|
25038
|
+
},
|
|
25039
|
+
{
|
|
25040
|
+
version: 130,
|
|
25041
|
+
name: "embedding-repair-state",
|
|
25042
|
+
up: up1302,
|
|
25043
|
+
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
24952
25044
|
}
|
|
24953
25045
|
];
|
|
24954
25046
|
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.198.
|
|
3
|
+
"version": "0.198.2",
|
|
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.198.
|
|
28
|
-
"@signetai/core": "0.198.
|
|
27
|
+
"@signetai/connector-base": "0.198.2",
|
|
28
|
+
"@signetai/core": "0.198.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|