@signetai/connector-hermes-agent 0.226.4 → 0.226.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 +66 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -16512,6 +16512,31 @@ function up152(db) {
|
|
|
16512
16512
|
`);
|
|
16513
16513
|
}
|
|
16514
16514
|
}
|
|
16515
|
+
function up153(db) {
|
|
16516
|
+
db.exec(`
|
|
16517
|
+
CREATE TABLE IF NOT EXISTS vector_repair_checkpoints (
|
|
16518
|
+
operation TEXT NOT NULL CHECK (operation IN ('resync', 'clean-orphans')),
|
|
16519
|
+
agent_id TEXT NOT NULL CHECK (length(trim(agent_id)) > 0),
|
|
16520
|
+
checkpoint_id TEXT NOT NULL UNIQUE,
|
|
16521
|
+
phase TEXT NOT NULL CHECK (
|
|
16522
|
+
phase IN ('orphan-vectors', 'missing-vectors', 'orphan-embeddings', 'complete')
|
|
16523
|
+
),
|
|
16524
|
+
cursor TEXT,
|
|
16525
|
+
processed INTEGER NOT NULL DEFAULT 0 CHECK (processed >= 0),
|
|
16526
|
+
skipped INTEGER NOT NULL DEFAULT 0 CHECK (skipped >= 0),
|
|
16527
|
+
failed INTEGER NOT NULL DEFAULT 0 CHECK (failed >= 0),
|
|
16528
|
+
affected INTEGER NOT NULL DEFAULT 0 CHECK (affected >= 0),
|
|
16529
|
+
remaining INTEGER NOT NULL DEFAULT 0 CHECK (remaining >= 0),
|
|
16530
|
+
status TEXT NOT NULL DEFAULT 'running' CHECK (status IN ('running', 'complete', 'failed')),
|
|
16531
|
+
last_error TEXT,
|
|
16532
|
+
created_at TEXT NOT NULL,
|
|
16533
|
+
updated_at TEXT NOT NULL,
|
|
16534
|
+
PRIMARY KEY (operation, agent_id)
|
|
16535
|
+
);
|
|
16536
|
+
CREATE INDEX IF NOT EXISTS idx_vector_repair_checkpoints_status
|
|
16537
|
+
ON vector_repair_checkpoints(status, updated_at);
|
|
16538
|
+
`);
|
|
16539
|
+
}
|
|
16515
16540
|
var MIGRATIONS = [
|
|
16516
16541
|
{
|
|
16517
16542
|
version: 1,
|
|
@@ -17750,6 +17775,12 @@ var MIGRATIONS = [
|
|
|
17750
17775
|
name: "memory-artifact-sha-index",
|
|
17751
17776
|
up: up2,
|
|
17752
17777
|
artifacts: { indexes: ["idx_memory_artifacts_agent_sha"] }
|
|
17778
|
+
},
|
|
17779
|
+
{
|
|
17780
|
+
version: 153,
|
|
17781
|
+
name: "vector-repair-checkpoints",
|
|
17782
|
+
up: up153,
|
|
17783
|
+
artifacts: { tables: ["vector_repair_checkpoints"] }
|
|
17753
17784
|
}
|
|
17754
17785
|
];
|
|
17755
17786
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -29406,7 +29437,7 @@ var DAEMON_DERIVED_MEMORY_SOURCE_TYPES2 = [
|
|
|
29406
29437
|
"checkpoint",
|
|
29407
29438
|
"dreaming"
|
|
29408
29439
|
];
|
|
29409
|
-
function
|
|
29440
|
+
function up154(db) {
|
|
29410
29441
|
const hasColumn26 = (table, column) => {
|
|
29411
29442
|
const statement = db.prepare(`SELECT 1 FROM pragma_table_info('${table}') WHERE name = ?`);
|
|
29412
29443
|
try {
|
|
@@ -30071,7 +30102,7 @@ function addColumnIfMissing52(db, table, column, definition) {
|
|
|
30071
30102
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
30072
30103
|
}
|
|
30073
30104
|
}
|
|
30074
|
-
function
|
|
30105
|
+
function up155(db) {
|
|
30075
30106
|
db.exec(`
|
|
30076
30107
|
CREATE TABLE IF NOT EXISTS ingestion_jobs (
|
|
30077
30108
|
id TEXT PRIMARY KEY,
|
|
@@ -34607,6 +34638,31 @@ function up1522(db) {
|
|
|
34607
34638
|
`);
|
|
34608
34639
|
}
|
|
34609
34640
|
}
|
|
34641
|
+
function up1532(db) {
|
|
34642
|
+
db.exec(`
|
|
34643
|
+
CREATE TABLE IF NOT EXISTS vector_repair_checkpoints (
|
|
34644
|
+
operation TEXT NOT NULL CHECK (operation IN ('resync', 'clean-orphans')),
|
|
34645
|
+
agent_id TEXT NOT NULL CHECK (length(trim(agent_id)) > 0),
|
|
34646
|
+
checkpoint_id TEXT NOT NULL UNIQUE,
|
|
34647
|
+
phase TEXT NOT NULL CHECK (
|
|
34648
|
+
phase IN ('orphan-vectors', 'missing-vectors', 'orphan-embeddings', 'complete')
|
|
34649
|
+
),
|
|
34650
|
+
cursor TEXT,
|
|
34651
|
+
processed INTEGER NOT NULL DEFAULT 0 CHECK (processed >= 0),
|
|
34652
|
+
skipped INTEGER NOT NULL DEFAULT 0 CHECK (skipped >= 0),
|
|
34653
|
+
failed INTEGER NOT NULL DEFAULT 0 CHECK (failed >= 0),
|
|
34654
|
+
affected INTEGER NOT NULL DEFAULT 0 CHECK (affected >= 0),
|
|
34655
|
+
remaining INTEGER NOT NULL DEFAULT 0 CHECK (remaining >= 0),
|
|
34656
|
+
status TEXT NOT NULL DEFAULT 'running' CHECK (status IN ('running', 'complete', 'failed')),
|
|
34657
|
+
last_error TEXT,
|
|
34658
|
+
created_at TEXT NOT NULL,
|
|
34659
|
+
updated_at TEXT NOT NULL,
|
|
34660
|
+
PRIMARY KEY (operation, agent_id)
|
|
34661
|
+
);
|
|
34662
|
+
CREATE INDEX IF NOT EXISTS idx_vector_repair_checkpoints_status
|
|
34663
|
+
ON vector_repair_checkpoints(status, updated_at);
|
|
34664
|
+
`);
|
|
34665
|
+
}
|
|
34610
34666
|
var MIGRATIONS2 = [
|
|
34611
34667
|
{
|
|
34612
34668
|
version: 1,
|
|
@@ -34689,7 +34745,7 @@ var MIGRATIONS2 = [
|
|
|
34689
34745
|
{
|
|
34690
34746
|
version: 13,
|
|
34691
34747
|
name: "ingestion-tracking",
|
|
34692
|
-
up:
|
|
34748
|
+
up: up155,
|
|
34693
34749
|
artifacts: {
|
|
34694
34750
|
columns: [
|
|
34695
34751
|
{ table: "memories", column: "source_path" },
|
|
@@ -35814,7 +35870,7 @@ var MIGRATIONS2 = [
|
|
|
35814
35870
|
{
|
|
35815
35871
|
version: 151,
|
|
35816
35872
|
name: "transcript-import-bytes",
|
|
35817
|
-
up:
|
|
35873
|
+
up: up154,
|
|
35818
35874
|
artifacts: {
|
|
35819
35875
|
tables: [
|
|
35820
35876
|
"source_import_chunks",
|
|
@@ -35845,6 +35901,12 @@ var MIGRATIONS2 = [
|
|
|
35845
35901
|
name: "memory-artifact-sha-index",
|
|
35846
35902
|
up: up210,
|
|
35847
35903
|
artifacts: { indexes: ["idx_memory_artifacts_agent_sha"] }
|
|
35904
|
+
},
|
|
35905
|
+
{
|
|
35906
|
+
version: 153,
|
|
35907
|
+
name: "vector-repair-checkpoints",
|
|
35908
|
+
up: up1532,
|
|
35909
|
+
artifacts: { tables: ["vector_repair_checkpoints"] }
|
|
35848
35910
|
}
|
|
35849
35911
|
];
|
|
35850
35912
|
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.226.
|
|
3
|
+
"version": "0.226.7",
|
|
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.226.
|
|
29
|
-
"@signetai/core": "0.226.
|
|
28
|
+
"@signetai/connector-base": "0.226.7",
|
|
29
|
+
"@signetai/core": "0.226.7"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|