@signetai/connector-hermes-agent 0.147.10 → 0.147.13
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 +65 -23
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9868,6 +9868,19 @@ function up86(db) {
|
|
|
9868
9868
|
ON summary_jobs(agent_id, session_key, content_hash)
|
|
9869
9869
|
`);
|
|
9870
9870
|
}
|
|
9871
|
+
function addColumnIfMissing22(db, table, column, definition) {
|
|
9872
|
+
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
9873
|
+
if (cols.some((col) => col.name === column))
|
|
9874
|
+
return;
|
|
9875
|
+
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
9876
|
+
}
|
|
9877
|
+
function up87(db) {
|
|
9878
|
+
addColumnIfMissing22(db, "summary_jobs", "boundary_reason", "TEXT");
|
|
9879
|
+
db.exec(`
|
|
9880
|
+
CREATE INDEX IF NOT EXISTS idx_summary_jobs_boundary_reason
|
|
9881
|
+
ON summary_jobs(agent_id, session_key, boundary_reason)
|
|
9882
|
+
`);
|
|
9883
|
+
}
|
|
9871
9884
|
var MIGRATIONS = [
|
|
9872
9885
|
{
|
|
9873
9886
|
version: 1,
|
|
@@ -10571,6 +10584,14 @@ var MIGRATIONS = [
|
|
|
10571
10584
|
artifacts: {
|
|
10572
10585
|
columns: [{ table: "summary_jobs", column: "content_hash" }]
|
|
10573
10586
|
}
|
|
10587
|
+
},
|
|
10588
|
+
{
|
|
10589
|
+
version: 87,
|
|
10590
|
+
name: "summary-jobs-boundary-reason",
|
|
10591
|
+
up: up87,
|
|
10592
|
+
artifacts: {
|
|
10593
|
+
columns: [{ table: "summary_jobs", column: "boundary_reason" }]
|
|
10594
|
+
}
|
|
10574
10595
|
}
|
|
10575
10596
|
];
|
|
10576
10597
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -17911,7 +17932,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
17911
17932
|
return true;
|
|
17912
17933
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
17913
17934
|
}
|
|
17914
|
-
function
|
|
17935
|
+
function up88(db) {
|
|
17915
17936
|
db.exec(`
|
|
17916
17937
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
17917
17938
|
version INTEGER PRIMARY KEY,
|
|
@@ -18004,27 +18025,27 @@ function hasColumn13(db, table, column) {
|
|
|
18004
18025
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18005
18026
|
return rows.some((r) => r.name === column);
|
|
18006
18027
|
}
|
|
18007
|
-
function
|
|
18028
|
+
function addColumnIfMissing23(db, table, column, definition) {
|
|
18008
18029
|
if (!hasColumn13(db, table, column)) {
|
|
18009
18030
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18010
18031
|
}
|
|
18011
18032
|
}
|
|
18012
18033
|
function up210(db) {
|
|
18013
|
-
|
|
18014
|
-
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
18025
|
-
|
|
18026
|
-
|
|
18027
|
-
|
|
18034
|
+
addColumnIfMissing23(db, "memories", "content_hash", "TEXT");
|
|
18035
|
+
addColumnIfMissing23(db, "memories", "normalized_content", "TEXT");
|
|
18036
|
+
addColumnIfMissing23(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
18037
|
+
addColumnIfMissing23(db, "memories", "deleted_at", "TEXT");
|
|
18038
|
+
addColumnIfMissing23(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
18039
|
+
addColumnIfMissing23(db, "memories", "embedding_model", "TEXT");
|
|
18040
|
+
addColumnIfMissing23(db, "memories", "extraction_model", "TEXT");
|
|
18041
|
+
addColumnIfMissing23(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
18042
|
+
addColumnIfMissing23(db, "memories", "who", "TEXT");
|
|
18043
|
+
addColumnIfMissing23(db, "memories", "why", "TEXT");
|
|
18044
|
+
addColumnIfMissing23(db, "memories", "project", "TEXT");
|
|
18045
|
+
addColumnIfMissing23(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
18046
|
+
addColumnIfMissing23(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
18047
|
+
addColumnIfMissing23(db, "memories", "last_accessed", "TEXT");
|
|
18048
|
+
addColumnIfMissing23(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
18028
18049
|
db.exec(`
|
|
18029
18050
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
18030
18051
|
id TEXT PRIMARY KEY,
|
|
@@ -18120,7 +18141,7 @@ function up210(db) {
|
|
|
18120
18141
|
ON memory_entity_mentions(entity_id);
|
|
18121
18142
|
`);
|
|
18122
18143
|
}
|
|
18123
|
-
function
|
|
18144
|
+
function addColumnIfMissing24(db, table, column, definition) {
|
|
18124
18145
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18125
18146
|
if (rows.some((r) => r.name === column))
|
|
18126
18147
|
return false;
|
|
@@ -18128,8 +18149,8 @@ function addColumnIfMissing23(db, table, column, definition) {
|
|
|
18128
18149
|
return true;
|
|
18129
18150
|
}
|
|
18130
18151
|
function up310(db) {
|
|
18131
|
-
|
|
18132
|
-
|
|
18152
|
+
addColumnIfMissing24(db, "memories", "why", "TEXT");
|
|
18153
|
+
addColumnIfMissing24(db, "memories", "project", "TEXT");
|
|
18133
18154
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
18134
18155
|
db.exec(`
|
|
18135
18156
|
UPDATE memories
|
|
@@ -18286,7 +18307,7 @@ function up710(db) {
|
|
|
18286
18307
|
db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
|
|
18287
18308
|
}
|
|
18288
18309
|
}
|
|
18289
|
-
function
|
|
18310
|
+
function up89(db) {
|
|
18290
18311
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
|
|
18291
18312
|
if (tables.length === 0)
|
|
18292
18313
|
return;
|
|
@@ -20840,11 +20861,24 @@ function up862(db) {
|
|
|
20840
20861
|
ON summary_jobs(agent_id, session_key, content_hash)
|
|
20841
20862
|
`);
|
|
20842
20863
|
}
|
|
20864
|
+
function addColumnIfMissing222(db, table, column, definition) {
|
|
20865
|
+
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
20866
|
+
if (cols.some((col) => col.name === column))
|
|
20867
|
+
return;
|
|
20868
|
+
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
20869
|
+
}
|
|
20870
|
+
function up872(db) {
|
|
20871
|
+
addColumnIfMissing222(db, "summary_jobs", "boundary_reason", "TEXT");
|
|
20872
|
+
db.exec(`
|
|
20873
|
+
CREATE INDEX IF NOT EXISTS idx_summary_jobs_boundary_reason
|
|
20874
|
+
ON summary_jobs(agent_id, session_key, boundary_reason)
|
|
20875
|
+
`);
|
|
20876
|
+
}
|
|
20843
20877
|
var MIGRATIONS2 = [
|
|
20844
20878
|
{
|
|
20845
20879
|
version: 1,
|
|
20846
20880
|
name: "baseline",
|
|
20847
|
-
up:
|
|
20881
|
+
up: up88,
|
|
20848
20882
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
20849
20883
|
},
|
|
20850
20884
|
{
|
|
@@ -20893,7 +20927,7 @@ var MIGRATIONS2 = [
|
|
|
20893
20927
|
{
|
|
20894
20928
|
version: 8,
|
|
20895
20929
|
name: "embeddings-unique-hash",
|
|
20896
|
-
up:
|
|
20930
|
+
up: up89
|
|
20897
20931
|
},
|
|
20898
20932
|
{
|
|
20899
20933
|
version: 9,
|
|
@@ -21543,6 +21577,14 @@ var MIGRATIONS2 = [
|
|
|
21543
21577
|
artifacts: {
|
|
21544
21578
|
columns: [{ table: "summary_jobs", column: "content_hash" }]
|
|
21545
21579
|
}
|
|
21580
|
+
},
|
|
21581
|
+
{
|
|
21582
|
+
version: 87,
|
|
21583
|
+
name: "summary-jobs-boundary-reason",
|
|
21584
|
+
up: up872,
|
|
21585
|
+
artifacts: {
|
|
21586
|
+
columns: [{ table: "summary_jobs", column: "boundary_reason" }]
|
|
21587
|
+
}
|
|
21546
21588
|
}
|
|
21547
21589
|
];
|
|
21548
21590
|
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.147.
|
|
3
|
+
"version": "0.147.13",
|
|
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.147.
|
|
29
|
-
"@signetai/core": "0.147.
|
|
28
|
+
"@signetai/connector-base": "0.147.13",
|
|
29
|
+
"@signetai/core": "0.147.13"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|