@signetai/connector-claude-code 0.188.2 → 0.189.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 +113 -27
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10806,6 +10806,35 @@ function up120(db) {
|
|
|
10806
10806
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
10807
10807
|
`);
|
|
10808
10808
|
}
|
|
10809
|
+
function hasColumn23(db, table, column) {
|
|
10810
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10811
|
+
}
|
|
10812
|
+
function addColumnIfMissing26(db, column, definition) {
|
|
10813
|
+
if (!hasColumn23(db, "telemetry_events", column)) {
|
|
10814
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
10815
|
+
}
|
|
10816
|
+
}
|
|
10817
|
+
function up121(db) {
|
|
10818
|
+
addColumnIfMissing26(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10819
|
+
addColumnIfMissing26(db, "last_attempt_at", "TEXT");
|
|
10820
|
+
addColumnIfMissing26(db, "sent_at", "TEXT");
|
|
10821
|
+
addColumnIfMissing26(db, "last_failure_code", "TEXT");
|
|
10822
|
+
db.exec(`
|
|
10823
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
10824
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
10825
|
+
window_started_at TEXT NOT NULL,
|
|
10826
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
10827
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
10828
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
10829
|
+
last_attempt_at TEXT,
|
|
10830
|
+
last_success_at TEXT,
|
|
10831
|
+
last_failure_code TEXT,
|
|
10832
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
10833
|
+
);
|
|
10834
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
10835
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
10836
|
+
`);
|
|
10837
|
+
}
|
|
10809
10838
|
var MIGRATIONS = [
|
|
10810
10839
|
{
|
|
10811
10840
|
version: 1,
|
|
@@ -11773,6 +11802,20 @@ var MIGRATIONS = [
|
|
|
11773
11802
|
name: "source-lifecycle-telemetry",
|
|
11774
11803
|
up: up120,
|
|
11775
11804
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
11805
|
+
},
|
|
11806
|
+
{
|
|
11807
|
+
version: 121,
|
|
11808
|
+
name: "telemetry-delivery-health",
|
|
11809
|
+
up: up121,
|
|
11810
|
+
artifacts: {
|
|
11811
|
+
tables: ["telemetry_delivery_state"],
|
|
11812
|
+
columns: [
|
|
11813
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
11814
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
11815
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
11816
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
11817
|
+
]
|
|
11818
|
+
}
|
|
11776
11819
|
}
|
|
11777
11820
|
];
|
|
11778
11821
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19066,7 +19109,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19066
19109
|
return true;
|
|
19067
19110
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19068
19111
|
}
|
|
19069
|
-
function
|
|
19112
|
+
function up122(db) {
|
|
19070
19113
|
db.exec(`
|
|
19071
19114
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19072
19115
|
version INTEGER PRIMARY KEY,
|
|
@@ -19155,31 +19198,31 @@ function up121(db) {
|
|
|
19155
19198
|
} catch {}
|
|
19156
19199
|
createMemoriesFts2(db);
|
|
19157
19200
|
}
|
|
19158
|
-
function
|
|
19201
|
+
function hasColumn24(db, table, column) {
|
|
19159
19202
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19160
19203
|
return rows.some((r) => r.name === column);
|
|
19161
19204
|
}
|
|
19162
|
-
function
|
|
19163
|
-
if (!
|
|
19205
|
+
function addColumnIfMissing27(db, table, column, definition) {
|
|
19206
|
+
if (!hasColumn24(db, table, column)) {
|
|
19164
19207
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19165
19208
|
}
|
|
19166
19209
|
}
|
|
19167
19210
|
function up210(db) {
|
|
19168
|
-
|
|
19169
|
-
|
|
19170
|
-
|
|
19171
|
-
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19177
|
-
|
|
19178
|
-
|
|
19179
|
-
|
|
19180
|
-
|
|
19181
|
-
|
|
19182
|
-
|
|
19211
|
+
addColumnIfMissing27(db, "memories", "content_hash", "TEXT");
|
|
19212
|
+
addColumnIfMissing27(db, "memories", "normalized_content", "TEXT");
|
|
19213
|
+
addColumnIfMissing27(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
19214
|
+
addColumnIfMissing27(db, "memories", "deleted_at", "TEXT");
|
|
19215
|
+
addColumnIfMissing27(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
19216
|
+
addColumnIfMissing27(db, "memories", "embedding_model", "TEXT");
|
|
19217
|
+
addColumnIfMissing27(db, "memories", "extraction_model", "TEXT");
|
|
19218
|
+
addColumnIfMissing27(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
19219
|
+
addColumnIfMissing27(db, "memories", "who", "TEXT");
|
|
19220
|
+
addColumnIfMissing27(db, "memories", "why", "TEXT");
|
|
19221
|
+
addColumnIfMissing27(db, "memories", "project", "TEXT");
|
|
19222
|
+
addColumnIfMissing27(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
19223
|
+
addColumnIfMissing27(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
19224
|
+
addColumnIfMissing27(db, "memories", "last_accessed", "TEXT");
|
|
19225
|
+
addColumnIfMissing27(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
19183
19226
|
db.exec(`
|
|
19184
19227
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
19185
19228
|
id TEXT PRIMARY KEY,
|
|
@@ -19275,7 +19318,7 @@ function up210(db) {
|
|
|
19275
19318
|
ON memory_entity_mentions(entity_id);
|
|
19276
19319
|
`);
|
|
19277
19320
|
}
|
|
19278
|
-
function
|
|
19321
|
+
function addColumnIfMissing28(db, table, column, definition) {
|
|
19279
19322
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19280
19323
|
if (rows.some((r) => r.name === column))
|
|
19281
19324
|
return false;
|
|
@@ -19283,8 +19326,8 @@ function addColumnIfMissing27(db, table, column, definition) {
|
|
|
19283
19326
|
return true;
|
|
19284
19327
|
}
|
|
19285
19328
|
function up310(db) {
|
|
19286
|
-
|
|
19287
|
-
|
|
19329
|
+
addColumnIfMissing28(db, "memories", "why", "TEXT");
|
|
19330
|
+
addColumnIfMissing28(db, "memories", "project", "TEXT");
|
|
19288
19331
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
19289
19332
|
db.exec(`
|
|
19290
19333
|
UPDATE memories
|
|
@@ -19310,12 +19353,12 @@ function up310(db) {
|
|
|
19310
19353
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
19311
19354
|
`);
|
|
19312
19355
|
}
|
|
19313
|
-
function
|
|
19356
|
+
function hasColumn25(db, table, column) {
|
|
19314
19357
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19315
19358
|
return rows.some((r) => r.name === column);
|
|
19316
19359
|
}
|
|
19317
19360
|
function addColumnIfMissing32(db, table, column, definition) {
|
|
19318
|
-
if (!
|
|
19361
|
+
if (!hasColumn25(db, table, column)) {
|
|
19319
19362
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19320
19363
|
}
|
|
19321
19364
|
}
|
|
@@ -19509,7 +19552,7 @@ function up1110(db) {
|
|
|
19509
19552
|
ON session_scores(session_key);
|
|
19510
19553
|
`);
|
|
19511
19554
|
}
|
|
19512
|
-
function
|
|
19555
|
+
function up123(db) {
|
|
19513
19556
|
db.exec(`
|
|
19514
19557
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
19515
19558
|
id TEXT PRIMARY KEY,
|
|
@@ -22905,11 +22948,40 @@ function up1202(db) {
|
|
|
22905
22948
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
22906
22949
|
`);
|
|
22907
22950
|
}
|
|
22951
|
+
function hasColumn232(db, table, column) {
|
|
22952
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
22953
|
+
}
|
|
22954
|
+
function addColumnIfMissing262(db, column, definition) {
|
|
22955
|
+
if (!hasColumn232(db, "telemetry_events", column)) {
|
|
22956
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
22957
|
+
}
|
|
22958
|
+
}
|
|
22959
|
+
function up1212(db) {
|
|
22960
|
+
addColumnIfMissing262(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
22961
|
+
addColumnIfMissing262(db, "last_attempt_at", "TEXT");
|
|
22962
|
+
addColumnIfMissing262(db, "sent_at", "TEXT");
|
|
22963
|
+
addColumnIfMissing262(db, "last_failure_code", "TEXT");
|
|
22964
|
+
db.exec(`
|
|
22965
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
22966
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
22967
|
+
window_started_at TEXT NOT NULL,
|
|
22968
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
22969
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
22970
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
22971
|
+
last_attempt_at TEXT,
|
|
22972
|
+
last_success_at TEXT,
|
|
22973
|
+
last_failure_code TEXT,
|
|
22974
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
22975
|
+
);
|
|
22976
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
22977
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
22978
|
+
`);
|
|
22979
|
+
}
|
|
22908
22980
|
var MIGRATIONS2 = [
|
|
22909
22981
|
{
|
|
22910
22982
|
version: 1,
|
|
22911
22983
|
name: "baseline",
|
|
22912
|
-
up:
|
|
22984
|
+
up: up122,
|
|
22913
22985
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
22914
22986
|
},
|
|
22915
22987
|
{
|
|
@@ -22981,7 +23053,7 @@ var MIGRATIONS2 = [
|
|
|
22981
23053
|
{
|
|
22982
23054
|
version: 12,
|
|
22983
23055
|
name: "scheduled-tasks",
|
|
22984
|
-
up:
|
|
23056
|
+
up: up123,
|
|
22985
23057
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
22986
23058
|
},
|
|
22987
23059
|
{
|
|
@@ -23872,6 +23944,20 @@ var MIGRATIONS2 = [
|
|
|
23872
23944
|
name: "source-lifecycle-telemetry",
|
|
23873
23945
|
up: up1202,
|
|
23874
23946
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
23947
|
+
},
|
|
23948
|
+
{
|
|
23949
|
+
version: 121,
|
|
23950
|
+
name: "telemetry-delivery-health",
|
|
23951
|
+
up: up1212,
|
|
23952
|
+
artifacts: {
|
|
23953
|
+
tables: ["telemetry_delivery_state"],
|
|
23954
|
+
columns: [
|
|
23955
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
23956
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
23957
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
23958
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
23959
|
+
]
|
|
23960
|
+
}
|
|
23875
23961
|
}
|
|
23876
23962
|
];
|
|
23877
23963
|
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.
|
|
3
|
+
"version": "0.189.0",
|
|
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.
|
|
28
|
-
"@signetai/core": "0.
|
|
27
|
+
"@signetai/connector-base": "0.189.0",
|
|
28
|
+
"@signetai/core": "0.189.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|