@signetai/connector-hermes-agent 0.167.0 → 0.169.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 +110 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10345,6 +10345,36 @@ function up106(db) {
|
|
|
10345
10345
|
}
|
|
10346
10346
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
10347
10347
|
}
|
|
10348
|
+
function hasColumn18(db, table, column) {
|
|
10349
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10350
|
+
}
|
|
10351
|
+
var TOKEN_COLUMNS = [
|
|
10352
|
+
["tokens_input", "INTEGER"],
|
|
10353
|
+
["tokens_output", "INTEGER"],
|
|
10354
|
+
["tokens_cache_read", "INTEGER"],
|
|
10355
|
+
["tokens_cache_write", "INTEGER"],
|
|
10356
|
+
["tokens_cost", "REAL"]
|
|
10357
|
+
];
|
|
10358
|
+
function up107(db) {
|
|
10359
|
+
for (const [column, type] of TOKEN_COLUMNS) {
|
|
10360
|
+
if (!hasColumn18(db, "dreaming_passes", column)) {
|
|
10361
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
10362
|
+
}
|
|
10363
|
+
}
|
|
10364
|
+
}
|
|
10365
|
+
function up108(db) {
|
|
10366
|
+
db.exec(`
|
|
10367
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
10368
|
+
day TEXT NOT NULL,
|
|
10369
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
10370
|
+
source_kind TEXT NOT NULL,
|
|
10371
|
+
provider TEXT NOT NULL,
|
|
10372
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
10373
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
10374
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
10375
|
+
);
|
|
10376
|
+
`);
|
|
10377
|
+
}
|
|
10348
10378
|
var MIGRATIONS = [
|
|
10349
10379
|
{
|
|
10350
10380
|
version: 1,
|
|
@@ -11185,6 +11215,28 @@ var MIGRATIONS = [
|
|
|
11185
11215
|
artifacts: {
|
|
11186
11216
|
columns: [{ table: "memories", column: "review_after" }]
|
|
11187
11217
|
}
|
|
11218
|
+
},
|
|
11219
|
+
{
|
|
11220
|
+
version: 107,
|
|
11221
|
+
name: "dreaming-pass-usage",
|
|
11222
|
+
up: up107,
|
|
11223
|
+
artifacts: {
|
|
11224
|
+
columns: [
|
|
11225
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
11226
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
11227
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
11228
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
11229
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
11230
|
+
]
|
|
11231
|
+
}
|
|
11232
|
+
},
|
|
11233
|
+
{
|
|
11234
|
+
version: 108,
|
|
11235
|
+
name: "embedding-usage",
|
|
11236
|
+
up: up108,
|
|
11237
|
+
artifacts: {
|
|
11238
|
+
tables: ["embedding_usage"]
|
|
11239
|
+
}
|
|
11188
11240
|
}
|
|
11189
11241
|
];
|
|
11190
11242
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18449,7 +18501,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18449
18501
|
return true;
|
|
18450
18502
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18451
18503
|
}
|
|
18452
|
-
function
|
|
18504
|
+
function up109(db) {
|
|
18453
18505
|
db.exec(`
|
|
18454
18506
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18455
18507
|
version INTEGER PRIMARY KEY,
|
|
@@ -18538,12 +18590,12 @@ function up107(db) {
|
|
|
18538
18590
|
} catch {}
|
|
18539
18591
|
createMemoriesFts2(db);
|
|
18540
18592
|
}
|
|
18541
|
-
function
|
|
18593
|
+
function hasColumn19(db, table, column) {
|
|
18542
18594
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18543
18595
|
return rows.some((r) => r.name === column);
|
|
18544
18596
|
}
|
|
18545
18597
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
18546
|
-
if (!
|
|
18598
|
+
if (!hasColumn19(db, table, column)) {
|
|
18547
18599
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18548
18600
|
}
|
|
18549
18601
|
}
|
|
@@ -18861,7 +18913,7 @@ function up910(db) {
|
|
|
18861
18913
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
18862
18914
|
ON summary_jobs(status)`);
|
|
18863
18915
|
}
|
|
18864
|
-
function
|
|
18916
|
+
function up1010(db) {
|
|
18865
18917
|
db.exec(`
|
|
18866
18918
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
18867
18919
|
id INTEGER PRIMARY KEY,
|
|
@@ -21828,11 +21880,41 @@ function up1062(db) {
|
|
|
21828
21880
|
}
|
|
21829
21881
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
21830
21882
|
}
|
|
21883
|
+
function hasColumn182(db, table, column) {
|
|
21884
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
21885
|
+
}
|
|
21886
|
+
var TOKEN_COLUMNS2 = [
|
|
21887
|
+
["tokens_input", "INTEGER"],
|
|
21888
|
+
["tokens_output", "INTEGER"],
|
|
21889
|
+
["tokens_cache_read", "INTEGER"],
|
|
21890
|
+
["tokens_cache_write", "INTEGER"],
|
|
21891
|
+
["tokens_cost", "REAL"]
|
|
21892
|
+
];
|
|
21893
|
+
function up1072(db) {
|
|
21894
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
21895
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
21896
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
21897
|
+
}
|
|
21898
|
+
}
|
|
21899
|
+
}
|
|
21900
|
+
function up1082(db) {
|
|
21901
|
+
db.exec(`
|
|
21902
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
21903
|
+
day TEXT NOT NULL,
|
|
21904
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
21905
|
+
source_kind TEXT NOT NULL,
|
|
21906
|
+
provider TEXT NOT NULL,
|
|
21907
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
21908
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
21909
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
21910
|
+
);
|
|
21911
|
+
`);
|
|
21912
|
+
}
|
|
21831
21913
|
var MIGRATIONS2 = [
|
|
21832
21914
|
{
|
|
21833
21915
|
version: 1,
|
|
21834
21916
|
name: "baseline",
|
|
21835
|
-
up:
|
|
21917
|
+
up: up109,
|
|
21836
21918
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
21837
21919
|
},
|
|
21838
21920
|
{
|
|
@@ -21892,7 +21974,7 @@ var MIGRATIONS2 = [
|
|
|
21892
21974
|
{
|
|
21893
21975
|
version: 10,
|
|
21894
21976
|
name: "umap-cache",
|
|
21895
|
-
up:
|
|
21977
|
+
up: up1010,
|
|
21896
21978
|
artifacts: { tables: ["umap_cache"] }
|
|
21897
21979
|
},
|
|
21898
21980
|
{
|
|
@@ -22668,6 +22750,28 @@ var MIGRATIONS2 = [
|
|
|
22668
22750
|
artifacts: {
|
|
22669
22751
|
columns: [{ table: "memories", column: "review_after" }]
|
|
22670
22752
|
}
|
|
22753
|
+
},
|
|
22754
|
+
{
|
|
22755
|
+
version: 107,
|
|
22756
|
+
name: "dreaming-pass-usage",
|
|
22757
|
+
up: up1072,
|
|
22758
|
+
artifacts: {
|
|
22759
|
+
columns: [
|
|
22760
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
22761
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
22762
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
22763
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
22764
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
22765
|
+
]
|
|
22766
|
+
}
|
|
22767
|
+
},
|
|
22768
|
+
{
|
|
22769
|
+
version: 108,
|
|
22770
|
+
name: "embedding-usage",
|
|
22771
|
+
up: up1082,
|
|
22772
|
+
artifacts: {
|
|
22773
|
+
tables: ["embedding_usage"]
|
|
22774
|
+
}
|
|
22671
22775
|
}
|
|
22672
22776
|
];
|
|
22673
22777
|
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.169.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.169.0",
|
|
29
|
+
"@signetai/core": "0.169.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|