@signetai/connector-claude-code 0.198.0 → 0.198.1
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 +94 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11230,6 +11230,46 @@ function up129(db) {
|
|
|
11230
11230
|
AND status IN ('pending', 'leased');
|
|
11231
11231
|
`);
|
|
11232
11232
|
}
|
|
11233
|
+
function up130(db) {
|
|
11234
|
+
db.exec(`
|
|
11235
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
11236
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
11237
|
+
window_started_at TEXT NOT NULL,
|
|
11238
|
+
batches_started INTEGER NOT NULL DEFAULT 0 CHECK (batches_started >= 0),
|
|
11239
|
+
last_completed_at TEXT,
|
|
11240
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
11241
|
+
lease_id TEXT,
|
|
11242
|
+
lease_expires_at TEXT,
|
|
11243
|
+
last_error TEXT,
|
|
11244
|
+
updated_at TEXT NOT NULL
|
|
11245
|
+
);
|
|
11246
|
+
|
|
11247
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_backoff (
|
|
11248
|
+
memory_id TEXT NOT NULL,
|
|
11249
|
+
content_hash TEXT NOT NULL,
|
|
11250
|
+
model TEXT NOT NULL,
|
|
11251
|
+
attempts INTEGER NOT NULL DEFAULT 1 CHECK (attempts > 0),
|
|
11252
|
+
retry_at TEXT NOT NULL,
|
|
11253
|
+
updated_at TEXT NOT NULL,
|
|
11254
|
+
PRIMARY KEY (memory_id, content_hash, model)
|
|
11255
|
+
);
|
|
11256
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_backoff_retry
|
|
11257
|
+
ON embedding_repair_backoff(model, retry_at);
|
|
11258
|
+
|
|
11259
|
+
-- Backoff is derived state. Retire it when the source memory disappears
|
|
11260
|
+
-- or moves to a new hash so stale retry keys cannot accumulate forever.
|
|
11261
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_memory_deleted
|
|
11262
|
+
AFTER DELETE ON memories BEGIN
|
|
11263
|
+
DELETE FROM embedding_repair_backoff WHERE memory_id = OLD.id;
|
|
11264
|
+
END;
|
|
11265
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_content_hash_changed
|
|
11266
|
+
AFTER UPDATE OF content_hash ON memories
|
|
11267
|
+
WHEN OLD.content_hash IS NOT NEW.content_hash BEGIN
|
|
11268
|
+
DELETE FROM embedding_repair_backoff
|
|
11269
|
+
WHERE memory_id = OLD.id AND content_hash IS NOT NEW.content_hash;
|
|
11270
|
+
END;
|
|
11271
|
+
`);
|
|
11272
|
+
}
|
|
11233
11273
|
var MIGRATIONS = [
|
|
11234
11274
|
{
|
|
11235
11275
|
version: 1,
|
|
@@ -12266,6 +12306,12 @@ var MIGRATIONS = [
|
|
|
12266
12306
|
version: 129,
|
|
12267
12307
|
name: "retire-structural-jobs",
|
|
12268
12308
|
up: up129
|
|
12309
|
+
},
|
|
12310
|
+
{
|
|
12311
|
+
version: 130,
|
|
12312
|
+
name: "embedding-repair-state",
|
|
12313
|
+
up: up130,
|
|
12314
|
+
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
12269
12315
|
}
|
|
12270
12316
|
];
|
|
12271
12317
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19652,7 +19698,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19652
19698
|
return true;
|
|
19653
19699
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19654
19700
|
}
|
|
19655
|
-
function
|
|
19701
|
+
function up131(db) {
|
|
19656
19702
|
db.exec(`
|
|
19657
19703
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19658
19704
|
version INTEGER PRIMARY KEY,
|
|
@@ -23822,11 +23868,51 @@ function up1292(db) {
|
|
|
23822
23868
|
AND status IN ('pending', 'leased');
|
|
23823
23869
|
`);
|
|
23824
23870
|
}
|
|
23871
|
+
function up1302(db) {
|
|
23872
|
+
db.exec(`
|
|
23873
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
23874
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
23875
|
+
window_started_at TEXT NOT NULL,
|
|
23876
|
+
batches_started INTEGER NOT NULL DEFAULT 0 CHECK (batches_started >= 0),
|
|
23877
|
+
last_completed_at TEXT,
|
|
23878
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
23879
|
+
lease_id TEXT,
|
|
23880
|
+
lease_expires_at TEXT,
|
|
23881
|
+
last_error TEXT,
|
|
23882
|
+
updated_at TEXT NOT NULL
|
|
23883
|
+
);
|
|
23884
|
+
|
|
23885
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_backoff (
|
|
23886
|
+
memory_id TEXT NOT NULL,
|
|
23887
|
+
content_hash TEXT NOT NULL,
|
|
23888
|
+
model TEXT NOT NULL,
|
|
23889
|
+
attempts INTEGER NOT NULL DEFAULT 1 CHECK (attempts > 0),
|
|
23890
|
+
retry_at TEXT NOT NULL,
|
|
23891
|
+
updated_at TEXT NOT NULL,
|
|
23892
|
+
PRIMARY KEY (memory_id, content_hash, model)
|
|
23893
|
+
);
|
|
23894
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_backoff_retry
|
|
23895
|
+
ON embedding_repair_backoff(model, retry_at);
|
|
23896
|
+
|
|
23897
|
+
-- Backoff is derived state. Retire it when the source memory disappears
|
|
23898
|
+
-- or moves to a new hash so stale retry keys cannot accumulate forever.
|
|
23899
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_memory_deleted
|
|
23900
|
+
AFTER DELETE ON memories BEGIN
|
|
23901
|
+
DELETE FROM embedding_repair_backoff WHERE memory_id = OLD.id;
|
|
23902
|
+
END;
|
|
23903
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_content_hash_changed
|
|
23904
|
+
AFTER UPDATE OF content_hash ON memories
|
|
23905
|
+
WHEN OLD.content_hash IS NOT NEW.content_hash BEGIN
|
|
23906
|
+
DELETE FROM embedding_repair_backoff
|
|
23907
|
+
WHERE memory_id = OLD.id AND content_hash IS NOT NEW.content_hash;
|
|
23908
|
+
END;
|
|
23909
|
+
`);
|
|
23910
|
+
}
|
|
23825
23911
|
var MIGRATIONS2 = [
|
|
23826
23912
|
{
|
|
23827
23913
|
version: 1,
|
|
23828
23914
|
name: "baseline",
|
|
23829
|
-
up:
|
|
23915
|
+
up: up131,
|
|
23830
23916
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23831
23917
|
},
|
|
23832
23918
|
{
|
|
@@ -24858,6 +24944,12 @@ var MIGRATIONS2 = [
|
|
|
24858
24944
|
version: 129,
|
|
24859
24945
|
name: "retire-structural-jobs",
|
|
24860
24946
|
up: up1292
|
|
24947
|
+
},
|
|
24948
|
+
{
|
|
24949
|
+
version: 130,
|
|
24950
|
+
name: "embedding-repair-state",
|
|
24951
|
+
up: up1302,
|
|
24952
|
+
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
24861
24953
|
}
|
|
24862
24954
|
];
|
|
24863
24955
|
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.198.
|
|
3
|
+
"version": "0.198.1",
|
|
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.198.
|
|
28
|
-
"@signetai/core": "0.198.
|
|
27
|
+
"@signetai/connector-base": "0.198.1",
|
|
28
|
+
"@signetai/core": "0.198.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|