@signetai/connector-hermes-agent 0.194.1 → 0.195.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 +84 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11078,6 +11078,40 @@ function up125(db) {
|
|
|
11078
11078
|
scannedAt
|
|
11079
11079
|
});
|
|
11080
11080
|
}
|
|
11081
|
+
function up126(db) {
|
|
11082
|
+
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
11083
|
+
if (!table)
|
|
11084
|
+
return;
|
|
11085
|
+
if (table.sql?.includes("'surprisal'"))
|
|
11086
|
+
return;
|
|
11087
|
+
db.exec(`
|
|
11088
|
+
DROP INDEX IF EXISTS idx_dreaming_attention_pending;
|
|
11089
|
+
ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
|
|
11090
|
+
CREATE TABLE dreaming_attention (
|
|
11091
|
+
id TEXT PRIMARY KEY,
|
|
11092
|
+
agent_id TEXT NOT NULL,
|
|
11093
|
+
kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
|
|
11094
|
+
subject_ref TEXT NOT NULL,
|
|
11095
|
+
details_json TEXT NOT NULL DEFAULT '{}',
|
|
11096
|
+
priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
|
|
11097
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
11098
|
+
generation INTEGER NOT NULL DEFAULT 0,
|
|
11099
|
+
resolved_at TEXT,
|
|
11100
|
+
resolved_by_pass_id TEXT,
|
|
11101
|
+
UNIQUE(agent_id, kind, subject_ref)
|
|
11102
|
+
);
|
|
11103
|
+
INSERT INTO dreaming_attention (
|
|
11104
|
+
id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11105
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11106
|
+
)
|
|
11107
|
+
SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11108
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11109
|
+
FROM dreaming_attention_legacy_126;
|
|
11110
|
+
DROP TABLE dreaming_attention_legacy_126;
|
|
11111
|
+
CREATE INDEX idx_dreaming_attention_pending
|
|
11112
|
+
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
11113
|
+
`);
|
|
11114
|
+
}
|
|
11081
11115
|
var MIGRATIONS = [
|
|
11082
11116
|
{
|
|
11083
11117
|
version: 1,
|
|
@@ -12092,6 +12126,12 @@ var MIGRATIONS = [
|
|
|
12092
12126
|
name: "memory-content-safety",
|
|
12093
12127
|
up: up125,
|
|
12094
12128
|
artifacts: { tables: ["memory_content_safety"] }
|
|
12129
|
+
},
|
|
12130
|
+
{
|
|
12131
|
+
version: 126,
|
|
12132
|
+
name: "dreaming-surprisal-attention",
|
|
12133
|
+
up: up126,
|
|
12134
|
+
artifacts: { tables: ["dreaming_attention"] }
|
|
12095
12135
|
}
|
|
12096
12136
|
];
|
|
12097
12137
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19453,7 +19493,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19453
19493
|
return true;
|
|
19454
19494
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19455
19495
|
}
|
|
19456
|
-
function
|
|
19496
|
+
function up127(db) {
|
|
19457
19497
|
db.exec(`
|
|
19458
19498
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19459
19499
|
version INTEGER PRIMARY KEY,
|
|
@@ -19896,7 +19936,7 @@ function up1110(db) {
|
|
|
19896
19936
|
ON session_scores(session_key);
|
|
19897
19937
|
`);
|
|
19898
19938
|
}
|
|
19899
|
-
function
|
|
19939
|
+
function up128(db) {
|
|
19900
19940
|
db.exec(`
|
|
19901
19941
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
19902
19942
|
id TEXT PRIMARY KEY,
|
|
@@ -23469,11 +23509,45 @@ function up1252(db) {
|
|
|
23469
23509
|
scannedAt
|
|
23470
23510
|
});
|
|
23471
23511
|
}
|
|
23512
|
+
function up1262(db) {
|
|
23513
|
+
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
23514
|
+
if (!table)
|
|
23515
|
+
return;
|
|
23516
|
+
if (table.sql?.includes("'surprisal'"))
|
|
23517
|
+
return;
|
|
23518
|
+
db.exec(`
|
|
23519
|
+
DROP INDEX IF EXISTS idx_dreaming_attention_pending;
|
|
23520
|
+
ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
|
|
23521
|
+
CREATE TABLE dreaming_attention (
|
|
23522
|
+
id TEXT PRIMARY KEY,
|
|
23523
|
+
agent_id TEXT NOT NULL,
|
|
23524
|
+
kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
|
|
23525
|
+
subject_ref TEXT NOT NULL,
|
|
23526
|
+
details_json TEXT NOT NULL DEFAULT '{}',
|
|
23527
|
+
priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
|
|
23528
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
23529
|
+
generation INTEGER NOT NULL DEFAULT 0,
|
|
23530
|
+
resolved_at TEXT,
|
|
23531
|
+
resolved_by_pass_id TEXT,
|
|
23532
|
+
UNIQUE(agent_id, kind, subject_ref)
|
|
23533
|
+
);
|
|
23534
|
+
INSERT INTO dreaming_attention (
|
|
23535
|
+
id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
23536
|
+
generation, resolved_at, resolved_by_pass_id
|
|
23537
|
+
)
|
|
23538
|
+
SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
23539
|
+
generation, resolved_at, resolved_by_pass_id
|
|
23540
|
+
FROM dreaming_attention_legacy_126;
|
|
23541
|
+
DROP TABLE dreaming_attention_legacy_126;
|
|
23542
|
+
CREATE INDEX idx_dreaming_attention_pending
|
|
23543
|
+
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
23544
|
+
`);
|
|
23545
|
+
}
|
|
23472
23546
|
var MIGRATIONS2 = [
|
|
23473
23547
|
{
|
|
23474
23548
|
version: 1,
|
|
23475
23549
|
name: "baseline",
|
|
23476
|
-
up:
|
|
23550
|
+
up: up127,
|
|
23477
23551
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23478
23552
|
},
|
|
23479
23553
|
{
|
|
@@ -23545,7 +23619,7 @@ var MIGRATIONS2 = [
|
|
|
23545
23619
|
{
|
|
23546
23620
|
version: 12,
|
|
23547
23621
|
name: "scheduled-tasks",
|
|
23548
|
-
up:
|
|
23622
|
+
up: up128,
|
|
23549
23623
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
23550
23624
|
},
|
|
23551
23625
|
{
|
|
@@ -24483,6 +24557,12 @@ var MIGRATIONS2 = [
|
|
|
24483
24557
|
name: "memory-content-safety",
|
|
24484
24558
|
up: up1252,
|
|
24485
24559
|
artifacts: { tables: ["memory_content_safety"] }
|
|
24560
|
+
},
|
|
24561
|
+
{
|
|
24562
|
+
version: 126,
|
|
24563
|
+
name: "dreaming-surprisal-attention",
|
|
24564
|
+
up: up1262,
|
|
24565
|
+
artifacts: { tables: ["dreaming_attention"] }
|
|
24486
24566
|
}
|
|
24487
24567
|
];
|
|
24488
24568
|
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.
|
|
3
|
+
"version": "0.195.0",
|
|
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.
|
|
29
|
-
"@signetai/core": "0.
|
|
28
|
+
"@signetai/connector-base": "0.195.0",
|
|
29
|
+
"@signetai/core": "0.195.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|