@signetai/connector-hermes-agent 0.198.0 → 0.198.2
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
|
@@ -11232,6 +11232,46 @@ function up129(db) {
|
|
|
11232
11232
|
AND status IN ('pending', 'leased');
|
|
11233
11233
|
`);
|
|
11234
11234
|
}
|
|
11235
|
+
function up130(db) {
|
|
11236
|
+
db.exec(`
|
|
11237
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
11238
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
11239
|
+
window_started_at TEXT NOT NULL,
|
|
11240
|
+
batches_started INTEGER NOT NULL DEFAULT 0 CHECK (batches_started >= 0),
|
|
11241
|
+
last_completed_at TEXT,
|
|
11242
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
11243
|
+
lease_id TEXT,
|
|
11244
|
+
lease_expires_at TEXT,
|
|
11245
|
+
last_error TEXT,
|
|
11246
|
+
updated_at TEXT NOT NULL
|
|
11247
|
+
);
|
|
11248
|
+
|
|
11249
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_backoff (
|
|
11250
|
+
memory_id TEXT NOT NULL,
|
|
11251
|
+
content_hash TEXT NOT NULL,
|
|
11252
|
+
model TEXT NOT NULL,
|
|
11253
|
+
attempts INTEGER NOT NULL DEFAULT 1 CHECK (attempts > 0),
|
|
11254
|
+
retry_at TEXT NOT NULL,
|
|
11255
|
+
updated_at TEXT NOT NULL,
|
|
11256
|
+
PRIMARY KEY (memory_id, content_hash, model)
|
|
11257
|
+
);
|
|
11258
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_backoff_retry
|
|
11259
|
+
ON embedding_repair_backoff(model, retry_at);
|
|
11260
|
+
|
|
11261
|
+
-- Backoff is derived state. Retire it when the source memory disappears
|
|
11262
|
+
-- or moves to a new hash so stale retry keys cannot accumulate forever.
|
|
11263
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_memory_deleted
|
|
11264
|
+
AFTER DELETE ON memories BEGIN
|
|
11265
|
+
DELETE FROM embedding_repair_backoff WHERE memory_id = OLD.id;
|
|
11266
|
+
END;
|
|
11267
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_content_hash_changed
|
|
11268
|
+
AFTER UPDATE OF content_hash ON memories
|
|
11269
|
+
WHEN OLD.content_hash IS NOT NEW.content_hash BEGIN
|
|
11270
|
+
DELETE FROM embedding_repair_backoff
|
|
11271
|
+
WHERE memory_id = OLD.id AND content_hash IS NOT NEW.content_hash;
|
|
11272
|
+
END;
|
|
11273
|
+
`);
|
|
11274
|
+
}
|
|
11235
11275
|
var MIGRATIONS = [
|
|
11236
11276
|
{
|
|
11237
11277
|
version: 1,
|
|
@@ -12268,6 +12308,12 @@ var MIGRATIONS = [
|
|
|
12268
12308
|
version: 129,
|
|
12269
12309
|
name: "retire-structural-jobs",
|
|
12270
12310
|
up: up129
|
|
12311
|
+
},
|
|
12312
|
+
{
|
|
12313
|
+
version: 130,
|
|
12314
|
+
name: "embedding-repair-state",
|
|
12315
|
+
up: up130,
|
|
12316
|
+
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
12271
12317
|
}
|
|
12272
12318
|
];
|
|
12273
12319
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19629,7 +19675,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19629
19675
|
return true;
|
|
19630
19676
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19631
19677
|
}
|
|
19632
|
-
function
|
|
19678
|
+
function up131(db) {
|
|
19633
19679
|
db.exec(`
|
|
19634
19680
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19635
19681
|
version INTEGER PRIMARY KEY,
|
|
@@ -23799,11 +23845,51 @@ function up1292(db) {
|
|
|
23799
23845
|
AND status IN ('pending', 'leased');
|
|
23800
23846
|
`);
|
|
23801
23847
|
}
|
|
23848
|
+
function up1302(db) {
|
|
23849
|
+
db.exec(`
|
|
23850
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
23851
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
23852
|
+
window_started_at TEXT NOT NULL,
|
|
23853
|
+
batches_started INTEGER NOT NULL DEFAULT 0 CHECK (batches_started >= 0),
|
|
23854
|
+
last_completed_at TEXT,
|
|
23855
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
23856
|
+
lease_id TEXT,
|
|
23857
|
+
lease_expires_at TEXT,
|
|
23858
|
+
last_error TEXT,
|
|
23859
|
+
updated_at TEXT NOT NULL
|
|
23860
|
+
);
|
|
23861
|
+
|
|
23862
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_backoff (
|
|
23863
|
+
memory_id TEXT NOT NULL,
|
|
23864
|
+
content_hash TEXT NOT NULL,
|
|
23865
|
+
model TEXT NOT NULL,
|
|
23866
|
+
attempts INTEGER NOT NULL DEFAULT 1 CHECK (attempts > 0),
|
|
23867
|
+
retry_at TEXT NOT NULL,
|
|
23868
|
+
updated_at TEXT NOT NULL,
|
|
23869
|
+
PRIMARY KEY (memory_id, content_hash, model)
|
|
23870
|
+
);
|
|
23871
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_backoff_retry
|
|
23872
|
+
ON embedding_repair_backoff(model, retry_at);
|
|
23873
|
+
|
|
23874
|
+
-- Backoff is derived state. Retire it when the source memory disappears
|
|
23875
|
+
-- or moves to a new hash so stale retry keys cannot accumulate forever.
|
|
23876
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_memory_deleted
|
|
23877
|
+
AFTER DELETE ON memories BEGIN
|
|
23878
|
+
DELETE FROM embedding_repair_backoff WHERE memory_id = OLD.id;
|
|
23879
|
+
END;
|
|
23880
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_content_hash_changed
|
|
23881
|
+
AFTER UPDATE OF content_hash ON memories
|
|
23882
|
+
WHEN OLD.content_hash IS NOT NEW.content_hash BEGIN
|
|
23883
|
+
DELETE FROM embedding_repair_backoff
|
|
23884
|
+
WHERE memory_id = OLD.id AND content_hash IS NOT NEW.content_hash;
|
|
23885
|
+
END;
|
|
23886
|
+
`);
|
|
23887
|
+
}
|
|
23802
23888
|
var MIGRATIONS2 = [
|
|
23803
23889
|
{
|
|
23804
23890
|
version: 1,
|
|
23805
23891
|
name: "baseline",
|
|
23806
|
-
up:
|
|
23892
|
+
up: up131,
|
|
23807
23893
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23808
23894
|
},
|
|
23809
23895
|
{
|
|
@@ -24835,6 +24921,12 @@ var MIGRATIONS2 = [
|
|
|
24835
24921
|
version: 129,
|
|
24836
24922
|
name: "retire-structural-jobs",
|
|
24837
24923
|
up: up1292
|
|
24924
|
+
},
|
|
24925
|
+
{
|
|
24926
|
+
version: 130,
|
|
24927
|
+
name: "embedding-repair-state",
|
|
24928
|
+
up: up1302,
|
|
24929
|
+
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
24838
24930
|
}
|
|
24839
24931
|
];
|
|
24840
24932
|
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-hermes-agent",
|
|
3
|
-
"version": "0.198.
|
|
3
|
+
"version": "0.198.2",
|
|
4
4
|
"description": "Signet connector for Hermes Agent — installs Signet as a pluggable memory provider",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"typecheck": "tsc --noEmit"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@signetai/connector-base": "0.198.
|
|
29
|
-
"@signetai/core": "0.198.
|
|
28
|
+
"@signetai/connector-base": "0.198.2",
|
|
29
|
+
"@signetai/core": "0.198.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|