@signetai/connector-claude-code 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
|
@@ -16094,6 +16094,41 @@ function up142(db) {
|
|
|
16094
16094
|
db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
|
|
16095
16095
|
}
|
|
16096
16096
|
}
|
|
16097
|
+
function up143(db) {
|
|
16098
|
+
const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
|
|
16099
|
+
const additions = [
|
|
16100
|
+
["migration_phase", "TEXT"],
|
|
16101
|
+
["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
|
|
16102
|
+
["progress_total", "INTEGER NOT NULL DEFAULT 0"],
|
|
16103
|
+
["projection_cursor_last_id", "TEXT"],
|
|
16104
|
+
["projection_cursor_slot", "TEXT"],
|
|
16105
|
+
["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
|
|
16106
|
+
["provider_endpoint", "TEXT"]
|
|
16107
|
+
];
|
|
16108
|
+
for (const [name, definition] of additions) {
|
|
16109
|
+
if (!columns.has(name))
|
|
16110
|
+
db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
|
|
16111
|
+
}
|
|
16112
|
+
db.exec(`
|
|
16113
|
+
UPDATE embedding_index_state
|
|
16114
|
+
SET provider_endpoint = COALESCE(
|
|
16115
|
+
provider_endpoint,
|
|
16116
|
+
json_extract(active_profile_json, '$.baseUrl')
|
|
16117
|
+
)
|
|
16118
|
+
WHERE id = 1
|
|
16119
|
+
`);
|
|
16120
|
+
const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
|
|
16121
|
+
const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
|
|
16122
|
+
if (hasEmbeddings && hasStaging) {
|
|
16123
|
+
db.exec(`
|
|
16124
|
+
UPDATE embedding_index_state
|
|
16125
|
+
SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
|
|
16126
|
+
progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
|
|
16127
|
+
progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
|
|
16128
|
+
WHERE state = 'building'
|
|
16129
|
+
`);
|
|
16130
|
+
}
|
|
16131
|
+
}
|
|
16097
16132
|
var MIGRATIONS = [
|
|
16098
16133
|
{
|
|
16099
16134
|
version: 1,
|
|
@@ -17215,6 +17250,22 @@ var MIGRATIONS = [
|
|
|
17215
17250
|
name: "source-sync-frontier",
|
|
17216
17251
|
up: up142,
|
|
17217
17252
|
artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
|
|
17253
|
+
},
|
|
17254
|
+
{
|
|
17255
|
+
version: 143,
|
|
17256
|
+
name: "embedding-index-progress",
|
|
17257
|
+
up: up143,
|
|
17258
|
+
artifacts: {
|
|
17259
|
+
columns: [
|
|
17260
|
+
{ table: "embedding_index_state", column: "migration_phase" },
|
|
17261
|
+
{ table: "embedding_index_state", column: "progress_staged" },
|
|
17262
|
+
{ table: "embedding_index_state", column: "progress_total" },
|
|
17263
|
+
{ table: "embedding_index_state", column: "projection_cursor_last_id" },
|
|
17264
|
+
{ table: "embedding_index_state", column: "projection_cursor_slot" },
|
|
17265
|
+
{ table: "embedding_index_state", column: "no_progress_ticks" },
|
|
17266
|
+
{ table: "embedding_index_state", column: "provider_endpoint" }
|
|
17267
|
+
]
|
|
17268
|
+
}
|
|
17218
17269
|
}
|
|
17219
17270
|
];
|
|
17220
17271
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -29084,7 +29135,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
29084
29135
|
return true;
|
|
29085
29136
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
29086
29137
|
}
|
|
29087
|
-
function
|
|
29138
|
+
function up144(db) {
|
|
29088
29139
|
db.exec(`
|
|
29089
29140
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
29090
29141
|
version INTEGER PRIMARY KEY,
|
|
@@ -29594,7 +29645,7 @@ function up1310(db) {
|
|
|
29594
29645
|
addColumnIfMissing52(db, "memories", "source_path", "TEXT");
|
|
29595
29646
|
addColumnIfMissing52(db, "memories", "source_section", "TEXT");
|
|
29596
29647
|
}
|
|
29597
|
-
function
|
|
29648
|
+
function up145(db) {
|
|
29598
29649
|
db.exec(`
|
|
29599
29650
|
CREATE TABLE IF NOT EXISTS telemetry_events (
|
|
29600
29651
|
id TEXT PRIMARY KEY,
|
|
@@ -33798,11 +33849,46 @@ function up1422(db) {
|
|
|
33798
33849
|
db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
|
|
33799
33850
|
}
|
|
33800
33851
|
}
|
|
33852
|
+
function up1432(db) {
|
|
33853
|
+
const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
|
|
33854
|
+
const additions = [
|
|
33855
|
+
["migration_phase", "TEXT"],
|
|
33856
|
+
["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
|
|
33857
|
+
["progress_total", "INTEGER NOT NULL DEFAULT 0"],
|
|
33858
|
+
["projection_cursor_last_id", "TEXT"],
|
|
33859
|
+
["projection_cursor_slot", "TEXT"],
|
|
33860
|
+
["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
|
|
33861
|
+
["provider_endpoint", "TEXT"]
|
|
33862
|
+
];
|
|
33863
|
+
for (const [name, definition] of additions) {
|
|
33864
|
+
if (!columns.has(name))
|
|
33865
|
+
db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
|
|
33866
|
+
}
|
|
33867
|
+
db.exec(`
|
|
33868
|
+
UPDATE embedding_index_state
|
|
33869
|
+
SET provider_endpoint = COALESCE(
|
|
33870
|
+
provider_endpoint,
|
|
33871
|
+
json_extract(active_profile_json, '$.baseUrl')
|
|
33872
|
+
)
|
|
33873
|
+
WHERE id = 1
|
|
33874
|
+
`);
|
|
33875
|
+
const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
|
|
33876
|
+
const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
|
|
33877
|
+
if (hasEmbeddings && hasStaging) {
|
|
33878
|
+
db.exec(`
|
|
33879
|
+
UPDATE embedding_index_state
|
|
33880
|
+
SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
|
|
33881
|
+
progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
|
|
33882
|
+
progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
|
|
33883
|
+
WHERE state = 'building'
|
|
33884
|
+
`);
|
|
33885
|
+
}
|
|
33886
|
+
}
|
|
33801
33887
|
var MIGRATIONS2 = [
|
|
33802
33888
|
{
|
|
33803
33889
|
version: 1,
|
|
33804
33890
|
name: "baseline",
|
|
33805
|
-
up:
|
|
33891
|
+
up: up144,
|
|
33806
33892
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
33807
33893
|
},
|
|
33808
33894
|
{
|
|
@@ -33891,7 +33977,7 @@ var MIGRATIONS2 = [
|
|
|
33891
33977
|
{
|
|
33892
33978
|
version: 14,
|
|
33893
33979
|
name: "telemetry",
|
|
33894
|
-
up:
|
|
33980
|
+
up: up145,
|
|
33895
33981
|
artifacts: { tables: ["telemetry_events"] }
|
|
33896
33982
|
},
|
|
33897
33983
|
{
|
|
@@ -34919,6 +35005,22 @@ var MIGRATIONS2 = [
|
|
|
34919
35005
|
name: "source-sync-frontier",
|
|
34920
35006
|
up: up1422,
|
|
34921
35007
|
artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
|
|
35008
|
+
},
|
|
35009
|
+
{
|
|
35010
|
+
version: 143,
|
|
35011
|
+
name: "embedding-index-progress",
|
|
35012
|
+
up: up1432,
|
|
35013
|
+
artifacts: {
|
|
35014
|
+
columns: [
|
|
35015
|
+
{ table: "embedding_index_state", column: "migration_phase" },
|
|
35016
|
+
{ table: "embedding_index_state", column: "progress_staged" },
|
|
35017
|
+
{ table: "embedding_index_state", column: "progress_total" },
|
|
35018
|
+
{ table: "embedding_index_state", column: "projection_cursor_last_id" },
|
|
35019
|
+
{ table: "embedding_index_state", column: "projection_cursor_slot" },
|
|
35020
|
+
{ table: "embedding_index_state", column: "no_progress_ticks" },
|
|
35021
|
+
{ table: "embedding_index_state", column: "provider_endpoint" }
|
|
35022
|
+
]
|
|
35023
|
+
}
|
|
34922
35024
|
}
|
|
34923
35025
|
];
|
|
34924
35026
|
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-claude-code",
|
|
3
|
-
"version": "0.214.
|
|
3
|
+
"version": "0.214.7",
|
|
4
4
|
"description": "Signet connector for Claude Code (Anthropic 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",
|