@signetai/connector-codex 0.214.4 → 0.214.7
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 +106 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -16095,6 +16095,41 @@ function up142(db) {
|
|
|
16095
16095
|
db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
|
|
16096
16096
|
}
|
|
16097
16097
|
}
|
|
16098
|
+
function up143(db) {
|
|
16099
|
+
const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
|
|
16100
|
+
const additions = [
|
|
16101
|
+
["migration_phase", "TEXT"],
|
|
16102
|
+
["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
|
|
16103
|
+
["progress_total", "INTEGER NOT NULL DEFAULT 0"],
|
|
16104
|
+
["projection_cursor_last_id", "TEXT"],
|
|
16105
|
+
["projection_cursor_slot", "TEXT"],
|
|
16106
|
+
["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
|
|
16107
|
+
["provider_endpoint", "TEXT"]
|
|
16108
|
+
];
|
|
16109
|
+
for (const [name, definition] of additions) {
|
|
16110
|
+
if (!columns.has(name))
|
|
16111
|
+
db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
|
|
16112
|
+
}
|
|
16113
|
+
db.exec(`
|
|
16114
|
+
UPDATE embedding_index_state
|
|
16115
|
+
SET provider_endpoint = COALESCE(
|
|
16116
|
+
provider_endpoint,
|
|
16117
|
+
json_extract(active_profile_json, '$.baseUrl')
|
|
16118
|
+
)
|
|
16119
|
+
WHERE id = 1
|
|
16120
|
+
`);
|
|
16121
|
+
const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
|
|
16122
|
+
const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
|
|
16123
|
+
if (hasEmbeddings && hasStaging) {
|
|
16124
|
+
db.exec(`
|
|
16125
|
+
UPDATE embedding_index_state
|
|
16126
|
+
SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
|
|
16127
|
+
progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
|
|
16128
|
+
progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
|
|
16129
|
+
WHERE state = 'building'
|
|
16130
|
+
`);
|
|
16131
|
+
}
|
|
16132
|
+
}
|
|
16098
16133
|
var MIGRATIONS = [
|
|
16099
16134
|
{
|
|
16100
16135
|
version: 1,
|
|
@@ -17216,6 +17251,22 @@ var MIGRATIONS = [
|
|
|
17216
17251
|
name: "source-sync-frontier",
|
|
17217
17252
|
up: up142,
|
|
17218
17253
|
artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
|
|
17254
|
+
},
|
|
17255
|
+
{
|
|
17256
|
+
version: 143,
|
|
17257
|
+
name: "embedding-index-progress",
|
|
17258
|
+
up: up143,
|
|
17259
|
+
artifacts: {
|
|
17260
|
+
columns: [
|
|
17261
|
+
{ table: "embedding_index_state", column: "migration_phase" },
|
|
17262
|
+
{ table: "embedding_index_state", column: "progress_staged" },
|
|
17263
|
+
{ table: "embedding_index_state", column: "progress_total" },
|
|
17264
|
+
{ table: "embedding_index_state", column: "projection_cursor_last_id" },
|
|
17265
|
+
{ table: "embedding_index_state", column: "projection_cursor_slot" },
|
|
17266
|
+
{ table: "embedding_index_state", column: "no_progress_ticks" },
|
|
17267
|
+
{ table: "embedding_index_state", column: "provider_endpoint" }
|
|
17268
|
+
]
|
|
17269
|
+
}
|
|
17219
17270
|
}
|
|
17220
17271
|
];
|
|
17221
17272
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -29179,7 +29230,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
29179
29230
|
return true;
|
|
29180
29231
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
29181
29232
|
}
|
|
29182
|
-
function
|
|
29233
|
+
function up144(db) {
|
|
29183
29234
|
db.exec(`
|
|
29184
29235
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
29185
29236
|
version INTEGER PRIMARY KEY,
|
|
@@ -29689,7 +29740,7 @@ function up1310(db) {
|
|
|
29689
29740
|
addColumnIfMissing52(db, "memories", "source_path", "TEXT");
|
|
29690
29741
|
addColumnIfMissing52(db, "memories", "source_section", "TEXT");
|
|
29691
29742
|
}
|
|
29692
|
-
function
|
|
29743
|
+
function up145(db) {
|
|
29693
29744
|
db.exec(`
|
|
29694
29745
|
CREATE TABLE IF NOT EXISTS telemetry_events (
|
|
29695
29746
|
id TEXT PRIMARY KEY,
|
|
@@ -33893,11 +33944,46 @@ function up1422(db) {
|
|
|
33893
33944
|
db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
|
|
33894
33945
|
}
|
|
33895
33946
|
}
|
|
33947
|
+
function up1432(db) {
|
|
33948
|
+
const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
|
|
33949
|
+
const additions = [
|
|
33950
|
+
["migration_phase", "TEXT"],
|
|
33951
|
+
["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
|
|
33952
|
+
["progress_total", "INTEGER NOT NULL DEFAULT 0"],
|
|
33953
|
+
["projection_cursor_last_id", "TEXT"],
|
|
33954
|
+
["projection_cursor_slot", "TEXT"],
|
|
33955
|
+
["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
|
|
33956
|
+
["provider_endpoint", "TEXT"]
|
|
33957
|
+
];
|
|
33958
|
+
for (const [name, definition] of additions) {
|
|
33959
|
+
if (!columns.has(name))
|
|
33960
|
+
db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
|
|
33961
|
+
}
|
|
33962
|
+
db.exec(`
|
|
33963
|
+
UPDATE embedding_index_state
|
|
33964
|
+
SET provider_endpoint = COALESCE(
|
|
33965
|
+
provider_endpoint,
|
|
33966
|
+
json_extract(active_profile_json, '$.baseUrl')
|
|
33967
|
+
)
|
|
33968
|
+
WHERE id = 1
|
|
33969
|
+
`);
|
|
33970
|
+
const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
|
|
33971
|
+
const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
|
|
33972
|
+
if (hasEmbeddings && hasStaging) {
|
|
33973
|
+
db.exec(`
|
|
33974
|
+
UPDATE embedding_index_state
|
|
33975
|
+
SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
|
|
33976
|
+
progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
|
|
33977
|
+
progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
|
|
33978
|
+
WHERE state = 'building'
|
|
33979
|
+
`);
|
|
33980
|
+
}
|
|
33981
|
+
}
|
|
33896
33982
|
var MIGRATIONS2 = [
|
|
33897
33983
|
{
|
|
33898
33984
|
version: 1,
|
|
33899
33985
|
name: "baseline",
|
|
33900
|
-
up:
|
|
33986
|
+
up: up144,
|
|
33901
33987
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
33902
33988
|
},
|
|
33903
33989
|
{
|
|
@@ -33986,7 +34072,7 @@ var MIGRATIONS2 = [
|
|
|
33986
34072
|
{
|
|
33987
34073
|
version: 14,
|
|
33988
34074
|
name: "telemetry",
|
|
33989
|
-
up:
|
|
34075
|
+
up: up145,
|
|
33990
34076
|
artifacts: { tables: ["telemetry_events"] }
|
|
33991
34077
|
},
|
|
33992
34078
|
{
|
|
@@ -35014,6 +35100,22 @@ var MIGRATIONS2 = [
|
|
|
35014
35100
|
name: "source-sync-frontier",
|
|
35015
35101
|
up: up1422,
|
|
35016
35102
|
artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
|
|
35103
|
+
},
|
|
35104
|
+
{
|
|
35105
|
+
version: 143,
|
|
35106
|
+
name: "embedding-index-progress",
|
|
35107
|
+
up: up1432,
|
|
35108
|
+
artifacts: {
|
|
35109
|
+
columns: [
|
|
35110
|
+
{ table: "embedding_index_state", column: "migration_phase" },
|
|
35111
|
+
{ table: "embedding_index_state", column: "progress_staged" },
|
|
35112
|
+
{ table: "embedding_index_state", column: "progress_total" },
|
|
35113
|
+
{ table: "embedding_index_state", column: "projection_cursor_last_id" },
|
|
35114
|
+
{ table: "embedding_index_state", column: "projection_cursor_slot" },
|
|
35115
|
+
{ table: "embedding_index_state", column: "no_progress_ticks" },
|
|
35116
|
+
{ table: "embedding_index_state", column: "provider_endpoint" }
|
|
35117
|
+
]
|
|
35118
|
+
}
|
|
35017
35119
|
}
|
|
35018
35120
|
];
|
|
35019
35121
|
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.214.
|
|
3
|
+
"version": "0.214.7",
|
|
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.214.
|
|
28
|
-
"@signetai/core": "0.214.
|
|
27
|
+
"@signetai/connector-base": "0.214.7",
|
|
28
|
+
"@signetai/core": "0.214.7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|