@signetai/connector-codex 0.166.0 → 0.168.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 +68 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10344,6 +10344,23 @@ function up106(db) {
|
|
|
10344
10344
|
}
|
|
10345
10345
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
10346
10346
|
}
|
|
10347
|
+
function hasColumn18(db, table, column) {
|
|
10348
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10349
|
+
}
|
|
10350
|
+
var TOKEN_COLUMNS = [
|
|
10351
|
+
["tokens_input", "INTEGER"],
|
|
10352
|
+
["tokens_output", "INTEGER"],
|
|
10353
|
+
["tokens_cache_read", "INTEGER"],
|
|
10354
|
+
["tokens_cache_write", "INTEGER"],
|
|
10355
|
+
["tokens_cost", "REAL"]
|
|
10356
|
+
];
|
|
10357
|
+
function up107(db) {
|
|
10358
|
+
for (const [column, type] of TOKEN_COLUMNS) {
|
|
10359
|
+
if (!hasColumn18(db, "dreaming_passes", column)) {
|
|
10360
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
10361
|
+
}
|
|
10362
|
+
}
|
|
10363
|
+
}
|
|
10347
10364
|
var MIGRATIONS = [
|
|
10348
10365
|
{
|
|
10349
10366
|
version: 1,
|
|
@@ -11184,6 +11201,20 @@ var MIGRATIONS = [
|
|
|
11184
11201
|
artifacts: {
|
|
11185
11202
|
columns: [{ table: "memories", column: "review_after" }]
|
|
11186
11203
|
}
|
|
11204
|
+
},
|
|
11205
|
+
{
|
|
11206
|
+
version: 107,
|
|
11207
|
+
name: "dreaming-pass-usage",
|
|
11208
|
+
up: up107,
|
|
11209
|
+
artifacts: {
|
|
11210
|
+
columns: [
|
|
11211
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
11212
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
11213
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
11214
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
11215
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
11216
|
+
]
|
|
11217
|
+
}
|
|
11187
11218
|
}
|
|
11188
11219
|
];
|
|
11189
11220
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18563,7 +18594,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18563
18594
|
return true;
|
|
18564
18595
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18565
18596
|
}
|
|
18566
|
-
function
|
|
18597
|
+
function up108(db) {
|
|
18567
18598
|
db.exec(`
|
|
18568
18599
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18569
18600
|
version INTEGER PRIMARY KEY,
|
|
@@ -18652,12 +18683,12 @@ function up107(db) {
|
|
|
18652
18683
|
} catch {}
|
|
18653
18684
|
createMemoriesFts2(db);
|
|
18654
18685
|
}
|
|
18655
|
-
function
|
|
18686
|
+
function hasColumn19(db, table, column) {
|
|
18656
18687
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18657
18688
|
return rows.some((r) => r.name === column);
|
|
18658
18689
|
}
|
|
18659
18690
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
18660
|
-
if (!
|
|
18691
|
+
if (!hasColumn19(db, table, column)) {
|
|
18661
18692
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18662
18693
|
}
|
|
18663
18694
|
}
|
|
@@ -18975,7 +19006,7 @@ function up910(db) {
|
|
|
18975
19006
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
18976
19007
|
ON summary_jobs(status)`);
|
|
18977
19008
|
}
|
|
18978
|
-
function
|
|
19009
|
+
function up109(db) {
|
|
18979
19010
|
db.exec(`
|
|
18980
19011
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
18981
19012
|
id INTEGER PRIMARY KEY,
|
|
@@ -21942,11 +21973,28 @@ function up1062(db) {
|
|
|
21942
21973
|
}
|
|
21943
21974
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
21944
21975
|
}
|
|
21976
|
+
function hasColumn182(db, table, column) {
|
|
21977
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
21978
|
+
}
|
|
21979
|
+
var TOKEN_COLUMNS2 = [
|
|
21980
|
+
["tokens_input", "INTEGER"],
|
|
21981
|
+
["tokens_output", "INTEGER"],
|
|
21982
|
+
["tokens_cache_read", "INTEGER"],
|
|
21983
|
+
["tokens_cache_write", "INTEGER"],
|
|
21984
|
+
["tokens_cost", "REAL"]
|
|
21985
|
+
];
|
|
21986
|
+
function up1072(db) {
|
|
21987
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
21988
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
21989
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
21990
|
+
}
|
|
21991
|
+
}
|
|
21992
|
+
}
|
|
21945
21993
|
var MIGRATIONS2 = [
|
|
21946
21994
|
{
|
|
21947
21995
|
version: 1,
|
|
21948
21996
|
name: "baseline",
|
|
21949
|
-
up:
|
|
21997
|
+
up: up108,
|
|
21950
21998
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
21951
21999
|
},
|
|
21952
22000
|
{
|
|
@@ -22006,7 +22054,7 @@ var MIGRATIONS2 = [
|
|
|
22006
22054
|
{
|
|
22007
22055
|
version: 10,
|
|
22008
22056
|
name: "umap-cache",
|
|
22009
|
-
up:
|
|
22057
|
+
up: up109,
|
|
22010
22058
|
artifacts: { tables: ["umap_cache"] }
|
|
22011
22059
|
},
|
|
22012
22060
|
{
|
|
@@ -22782,6 +22830,20 @@ var MIGRATIONS2 = [
|
|
|
22782
22830
|
artifacts: {
|
|
22783
22831
|
columns: [{ table: "memories", column: "review_after" }]
|
|
22784
22832
|
}
|
|
22833
|
+
},
|
|
22834
|
+
{
|
|
22835
|
+
version: 107,
|
|
22836
|
+
name: "dreaming-pass-usage",
|
|
22837
|
+
up: up1072,
|
|
22838
|
+
artifacts: {
|
|
22839
|
+
columns: [
|
|
22840
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
22841
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
22842
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
22843
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
22844
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
22845
|
+
]
|
|
22846
|
+
}
|
|
22785
22847
|
}
|
|
22786
22848
|
];
|
|
22787
22849
|
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.168.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.168.0",
|
|
28
|
+
"@signetai/core": "0.168.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|