@signetai/connector-codex 0.167.0 → 0.169.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 +110 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10344,6 +10344,36 @@ 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
|
+
}
|
|
10364
|
+
function up108(db) {
|
|
10365
|
+
db.exec(`
|
|
10366
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
10367
|
+
day TEXT NOT NULL,
|
|
10368
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
10369
|
+
source_kind TEXT NOT NULL,
|
|
10370
|
+
provider TEXT NOT NULL,
|
|
10371
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
10372
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
10373
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
10374
|
+
);
|
|
10375
|
+
`);
|
|
10376
|
+
}
|
|
10347
10377
|
var MIGRATIONS = [
|
|
10348
10378
|
{
|
|
10349
10379
|
version: 1,
|
|
@@ -11184,6 +11214,28 @@ var MIGRATIONS = [
|
|
|
11184
11214
|
artifacts: {
|
|
11185
11215
|
columns: [{ table: "memories", column: "review_after" }]
|
|
11186
11216
|
}
|
|
11217
|
+
},
|
|
11218
|
+
{
|
|
11219
|
+
version: 107,
|
|
11220
|
+
name: "dreaming-pass-usage",
|
|
11221
|
+
up: up107,
|
|
11222
|
+
artifacts: {
|
|
11223
|
+
columns: [
|
|
11224
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
11225
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
11226
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
11227
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
11228
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
11229
|
+
]
|
|
11230
|
+
}
|
|
11231
|
+
},
|
|
11232
|
+
{
|
|
11233
|
+
version: 108,
|
|
11234
|
+
name: "embedding-usage",
|
|
11235
|
+
up: up108,
|
|
11236
|
+
artifacts: {
|
|
11237
|
+
tables: ["embedding_usage"]
|
|
11238
|
+
}
|
|
11187
11239
|
}
|
|
11188
11240
|
];
|
|
11189
11241
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18563,7 +18615,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18563
18615
|
return true;
|
|
18564
18616
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18565
18617
|
}
|
|
18566
|
-
function
|
|
18618
|
+
function up109(db) {
|
|
18567
18619
|
db.exec(`
|
|
18568
18620
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18569
18621
|
version INTEGER PRIMARY KEY,
|
|
@@ -18652,12 +18704,12 @@ function up107(db) {
|
|
|
18652
18704
|
} catch {}
|
|
18653
18705
|
createMemoriesFts2(db);
|
|
18654
18706
|
}
|
|
18655
|
-
function
|
|
18707
|
+
function hasColumn19(db, table, column) {
|
|
18656
18708
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18657
18709
|
return rows.some((r) => r.name === column);
|
|
18658
18710
|
}
|
|
18659
18711
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
18660
|
-
if (!
|
|
18712
|
+
if (!hasColumn19(db, table, column)) {
|
|
18661
18713
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18662
18714
|
}
|
|
18663
18715
|
}
|
|
@@ -18975,7 +19027,7 @@ function up910(db) {
|
|
|
18975
19027
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
18976
19028
|
ON summary_jobs(status)`);
|
|
18977
19029
|
}
|
|
18978
|
-
function
|
|
19030
|
+
function up1010(db) {
|
|
18979
19031
|
db.exec(`
|
|
18980
19032
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
18981
19033
|
id INTEGER PRIMARY KEY,
|
|
@@ -21942,11 +21994,41 @@ function up1062(db) {
|
|
|
21942
21994
|
}
|
|
21943
21995
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
21944
21996
|
}
|
|
21997
|
+
function hasColumn182(db, table, column) {
|
|
21998
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
21999
|
+
}
|
|
22000
|
+
var TOKEN_COLUMNS2 = [
|
|
22001
|
+
["tokens_input", "INTEGER"],
|
|
22002
|
+
["tokens_output", "INTEGER"],
|
|
22003
|
+
["tokens_cache_read", "INTEGER"],
|
|
22004
|
+
["tokens_cache_write", "INTEGER"],
|
|
22005
|
+
["tokens_cost", "REAL"]
|
|
22006
|
+
];
|
|
22007
|
+
function up1072(db) {
|
|
22008
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
22009
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
22010
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
22011
|
+
}
|
|
22012
|
+
}
|
|
22013
|
+
}
|
|
22014
|
+
function up1082(db) {
|
|
22015
|
+
db.exec(`
|
|
22016
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
22017
|
+
day TEXT NOT NULL,
|
|
22018
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
22019
|
+
source_kind TEXT NOT NULL,
|
|
22020
|
+
provider TEXT NOT NULL,
|
|
22021
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
22022
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
22023
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
22024
|
+
);
|
|
22025
|
+
`);
|
|
22026
|
+
}
|
|
21945
22027
|
var MIGRATIONS2 = [
|
|
21946
22028
|
{
|
|
21947
22029
|
version: 1,
|
|
21948
22030
|
name: "baseline",
|
|
21949
|
-
up:
|
|
22031
|
+
up: up109,
|
|
21950
22032
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
21951
22033
|
},
|
|
21952
22034
|
{
|
|
@@ -22006,7 +22088,7 @@ var MIGRATIONS2 = [
|
|
|
22006
22088
|
{
|
|
22007
22089
|
version: 10,
|
|
22008
22090
|
name: "umap-cache",
|
|
22009
|
-
up:
|
|
22091
|
+
up: up1010,
|
|
22010
22092
|
artifacts: { tables: ["umap_cache"] }
|
|
22011
22093
|
},
|
|
22012
22094
|
{
|
|
@@ -22782,6 +22864,28 @@ var MIGRATIONS2 = [
|
|
|
22782
22864
|
artifacts: {
|
|
22783
22865
|
columns: [{ table: "memories", column: "review_after" }]
|
|
22784
22866
|
}
|
|
22867
|
+
},
|
|
22868
|
+
{
|
|
22869
|
+
version: 107,
|
|
22870
|
+
name: "dreaming-pass-usage",
|
|
22871
|
+
up: up1072,
|
|
22872
|
+
artifacts: {
|
|
22873
|
+
columns: [
|
|
22874
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
22875
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
22876
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
22877
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
22878
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
22879
|
+
]
|
|
22880
|
+
}
|
|
22881
|
+
},
|
|
22882
|
+
{
|
|
22883
|
+
version: 108,
|
|
22884
|
+
name: "embedding-usage",
|
|
22885
|
+
up: up1082,
|
|
22886
|
+
artifacts: {
|
|
22887
|
+
tables: ["embedding_usage"]
|
|
22888
|
+
}
|
|
22785
22889
|
}
|
|
22786
22890
|
];
|
|
22787
22891
|
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.169.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.169.0",
|
|
28
|
+
"@signetai/core": "0.169.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|