@signetai/connector-hermes-agent 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
|
@@ -10808,6 +10808,35 @@ function up120(db) {
|
|
|
10808
10808
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
10809
10809
|
`);
|
|
10810
10810
|
}
|
|
10811
|
+
function hasColumn23(db, table, column) {
|
|
10812
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10813
|
+
}
|
|
10814
|
+
function addColumnIfMissing26(db, column, definition) {
|
|
10815
|
+
if (!hasColumn23(db, "telemetry_events", column)) {
|
|
10816
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
10817
|
+
}
|
|
10818
|
+
}
|
|
10819
|
+
function up121(db) {
|
|
10820
|
+
addColumnIfMissing26(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10821
|
+
addColumnIfMissing26(db, "last_attempt_at", "TEXT");
|
|
10822
|
+
addColumnIfMissing26(db, "sent_at", "TEXT");
|
|
10823
|
+
addColumnIfMissing26(db, "last_failure_code", "TEXT");
|
|
10824
|
+
db.exec(`
|
|
10825
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
10826
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
10827
|
+
window_started_at TEXT NOT NULL,
|
|
10828
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
10829
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
10830
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
10831
|
+
last_attempt_at TEXT,
|
|
10832
|
+
last_success_at TEXT,
|
|
10833
|
+
last_failure_code TEXT,
|
|
10834
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
10835
|
+
);
|
|
10836
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
10837
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
10838
|
+
`);
|
|
10839
|
+
}
|
|
10811
10840
|
var MIGRATIONS = [
|
|
10812
10841
|
{
|
|
10813
10842
|
version: 1,
|
|
@@ -11775,6 +11804,20 @@ var MIGRATIONS = [
|
|
|
11775
11804
|
name: "source-lifecycle-telemetry",
|
|
11776
11805
|
up: up120,
|
|
11777
11806
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
11807
|
+
},
|
|
11808
|
+
{
|
|
11809
|
+
version: 121,
|
|
11810
|
+
name: "telemetry-delivery-health",
|
|
11811
|
+
up: up121,
|
|
11812
|
+
artifacts: {
|
|
11813
|
+
tables: ["telemetry_delivery_state"],
|
|
11814
|
+
columns: [
|
|
11815
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
11816
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
11817
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
11818
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
11819
|
+
]
|
|
11820
|
+
}
|
|
11778
11821
|
}
|
|
11779
11822
|
];
|
|
11780
11823
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19043,7 +19086,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19043
19086
|
return true;
|
|
19044
19087
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19045
19088
|
}
|
|
19046
|
-
function
|
|
19089
|
+
function up122(db) {
|
|
19047
19090
|
db.exec(`
|
|
19048
19091
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19049
19092
|
version INTEGER PRIMARY KEY,
|
|
@@ -19132,31 +19175,31 @@ function up121(db) {
|
|
|
19132
19175
|
} catch {}
|
|
19133
19176
|
createMemoriesFts2(db);
|
|
19134
19177
|
}
|
|
19135
|
-
function
|
|
19178
|
+
function hasColumn24(db, table, column) {
|
|
19136
19179
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19137
19180
|
return rows.some((r) => r.name === column);
|
|
19138
19181
|
}
|
|
19139
|
-
function
|
|
19140
|
-
if (!
|
|
19182
|
+
function addColumnIfMissing27(db, table, column, definition) {
|
|
19183
|
+
if (!hasColumn24(db, table, column)) {
|
|
19141
19184
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19142
19185
|
}
|
|
19143
19186
|
}
|
|
19144
19187
|
function up210(db) {
|
|
19145
|
-
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
|
|
19149
|
-
|
|
19150
|
-
|
|
19151
|
-
|
|
19152
|
-
|
|
19153
|
-
|
|
19154
|
-
|
|
19155
|
-
|
|
19156
|
-
|
|
19157
|
-
|
|
19158
|
-
|
|
19159
|
-
|
|
19188
|
+
addColumnIfMissing27(db, "memories", "content_hash", "TEXT");
|
|
19189
|
+
addColumnIfMissing27(db, "memories", "normalized_content", "TEXT");
|
|
19190
|
+
addColumnIfMissing27(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
19191
|
+
addColumnIfMissing27(db, "memories", "deleted_at", "TEXT");
|
|
19192
|
+
addColumnIfMissing27(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
19193
|
+
addColumnIfMissing27(db, "memories", "embedding_model", "TEXT");
|
|
19194
|
+
addColumnIfMissing27(db, "memories", "extraction_model", "TEXT");
|
|
19195
|
+
addColumnIfMissing27(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
19196
|
+
addColumnIfMissing27(db, "memories", "who", "TEXT");
|
|
19197
|
+
addColumnIfMissing27(db, "memories", "why", "TEXT");
|
|
19198
|
+
addColumnIfMissing27(db, "memories", "project", "TEXT");
|
|
19199
|
+
addColumnIfMissing27(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
19200
|
+
addColumnIfMissing27(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
19201
|
+
addColumnIfMissing27(db, "memories", "last_accessed", "TEXT");
|
|
19202
|
+
addColumnIfMissing27(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
19160
19203
|
db.exec(`
|
|
19161
19204
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
19162
19205
|
id TEXT PRIMARY KEY,
|
|
@@ -19252,7 +19295,7 @@ function up210(db) {
|
|
|
19252
19295
|
ON memory_entity_mentions(entity_id);
|
|
19253
19296
|
`);
|
|
19254
19297
|
}
|
|
19255
|
-
function
|
|
19298
|
+
function addColumnIfMissing28(db, table, column, definition) {
|
|
19256
19299
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19257
19300
|
if (rows.some((r) => r.name === column))
|
|
19258
19301
|
return false;
|
|
@@ -19260,8 +19303,8 @@ function addColumnIfMissing27(db, table, column, definition) {
|
|
|
19260
19303
|
return true;
|
|
19261
19304
|
}
|
|
19262
19305
|
function up310(db) {
|
|
19263
|
-
|
|
19264
|
-
|
|
19306
|
+
addColumnIfMissing28(db, "memories", "why", "TEXT");
|
|
19307
|
+
addColumnIfMissing28(db, "memories", "project", "TEXT");
|
|
19265
19308
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
19266
19309
|
db.exec(`
|
|
19267
19310
|
UPDATE memories
|
|
@@ -19287,12 +19330,12 @@ function up310(db) {
|
|
|
19287
19330
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
19288
19331
|
`);
|
|
19289
19332
|
}
|
|
19290
|
-
function
|
|
19333
|
+
function hasColumn25(db, table, column) {
|
|
19291
19334
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19292
19335
|
return rows.some((r) => r.name === column);
|
|
19293
19336
|
}
|
|
19294
19337
|
function addColumnIfMissing32(db, table, column, definition) {
|
|
19295
|
-
if (!
|
|
19338
|
+
if (!hasColumn25(db, table, column)) {
|
|
19296
19339
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19297
19340
|
}
|
|
19298
19341
|
}
|
|
@@ -19486,7 +19529,7 @@ function up1110(db) {
|
|
|
19486
19529
|
ON session_scores(session_key);
|
|
19487
19530
|
`);
|
|
19488
19531
|
}
|
|
19489
|
-
function
|
|
19532
|
+
function up123(db) {
|
|
19490
19533
|
db.exec(`
|
|
19491
19534
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
19492
19535
|
id TEXT PRIMARY KEY,
|
|
@@ -22882,11 +22925,40 @@ function up1202(db) {
|
|
|
22882
22925
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
22883
22926
|
`);
|
|
22884
22927
|
}
|
|
22928
|
+
function hasColumn232(db, table, column) {
|
|
22929
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
22930
|
+
}
|
|
22931
|
+
function addColumnIfMissing262(db, column, definition) {
|
|
22932
|
+
if (!hasColumn232(db, "telemetry_events", column)) {
|
|
22933
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
22934
|
+
}
|
|
22935
|
+
}
|
|
22936
|
+
function up1212(db) {
|
|
22937
|
+
addColumnIfMissing262(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
22938
|
+
addColumnIfMissing262(db, "last_attempt_at", "TEXT");
|
|
22939
|
+
addColumnIfMissing262(db, "sent_at", "TEXT");
|
|
22940
|
+
addColumnIfMissing262(db, "last_failure_code", "TEXT");
|
|
22941
|
+
db.exec(`
|
|
22942
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
22943
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
22944
|
+
window_started_at TEXT NOT NULL,
|
|
22945
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
22946
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
22947
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
22948
|
+
last_attempt_at TEXT,
|
|
22949
|
+
last_success_at TEXT,
|
|
22950
|
+
last_failure_code TEXT,
|
|
22951
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
22952
|
+
);
|
|
22953
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
22954
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
22955
|
+
`);
|
|
22956
|
+
}
|
|
22885
22957
|
var MIGRATIONS2 = [
|
|
22886
22958
|
{
|
|
22887
22959
|
version: 1,
|
|
22888
22960
|
name: "baseline",
|
|
22889
|
-
up:
|
|
22961
|
+
up: up122,
|
|
22890
22962
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
22891
22963
|
},
|
|
22892
22964
|
{
|
|
@@ -22958,7 +23030,7 @@ var MIGRATIONS2 = [
|
|
|
22958
23030
|
{
|
|
22959
23031
|
version: 12,
|
|
22960
23032
|
name: "scheduled-tasks",
|
|
22961
|
-
up:
|
|
23033
|
+
up: up123,
|
|
22962
23034
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
22963
23035
|
},
|
|
22964
23036
|
{
|
|
@@ -23849,6 +23921,20 @@ var MIGRATIONS2 = [
|
|
|
23849
23921
|
name: "source-lifecycle-telemetry",
|
|
23850
23922
|
up: up1202,
|
|
23851
23923
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
23924
|
+
},
|
|
23925
|
+
{
|
|
23926
|
+
version: 121,
|
|
23927
|
+
name: "telemetry-delivery-health",
|
|
23928
|
+
up: up1212,
|
|
23929
|
+
artifacts: {
|
|
23930
|
+
tables: ["telemetry_delivery_state"],
|
|
23931
|
+
columns: [
|
|
23932
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
23933
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
23934
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
23935
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
23936
|
+
]
|
|
23937
|
+
}
|
|
23852
23938
|
}
|
|
23853
23939
|
];
|
|
23854
23940
|
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.189.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.189.0",
|
|
29
|
+
"@signetai/core": "0.189.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|