@signetai/connector-hermes-agent 0.167.0 → 0.168.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.
Files changed (2) hide show
  1. package/dist/index.js +68 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -10345,6 +10345,23 @@ 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
+ }
10348
10365
  var MIGRATIONS = [
10349
10366
  {
10350
10367
  version: 1,
@@ -11185,6 +11202,20 @@ var MIGRATIONS = [
11185
11202
  artifacts: {
11186
11203
  columns: [{ table: "memories", column: "review_after" }]
11187
11204
  }
11205
+ },
11206
+ {
11207
+ version: 107,
11208
+ name: "dreaming-pass-usage",
11209
+ up: up107,
11210
+ artifacts: {
11211
+ columns: [
11212
+ { table: "dreaming_passes", column: "tokens_input" },
11213
+ { table: "dreaming_passes", column: "tokens_output" },
11214
+ { table: "dreaming_passes", column: "tokens_cache_read" },
11215
+ { table: "dreaming_passes", column: "tokens_cache_write" },
11216
+ { table: "dreaming_passes", column: "tokens_cost" }
11217
+ ]
11218
+ }
11188
11219
  }
11189
11220
  ];
11190
11221
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -18449,7 +18480,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
18449
18480
  return true;
18450
18481
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
18451
18482
  }
18452
- function up107(db) {
18483
+ function up108(db) {
18453
18484
  db.exec(`
18454
18485
  CREATE TABLE IF NOT EXISTS schema_migrations (
18455
18486
  version INTEGER PRIMARY KEY,
@@ -18538,12 +18569,12 @@ function up107(db) {
18538
18569
  } catch {}
18539
18570
  createMemoriesFts2(db);
18540
18571
  }
18541
- function hasColumn18(db, table, column) {
18572
+ function hasColumn19(db, table, column) {
18542
18573
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
18543
18574
  return rows.some((r) => r.name === column);
18544
18575
  }
18545
18576
  function addColumnIfMissing23(db, table, column, definition) {
18546
- if (!hasColumn18(db, table, column)) {
18577
+ if (!hasColumn19(db, table, column)) {
18547
18578
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
18548
18579
  }
18549
18580
  }
@@ -18861,7 +18892,7 @@ function up910(db) {
18861
18892
  db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
18862
18893
  ON summary_jobs(status)`);
18863
18894
  }
18864
- function up108(db) {
18895
+ function up109(db) {
18865
18896
  db.exec(`
18866
18897
  CREATE TABLE IF NOT EXISTS umap_cache (
18867
18898
  id INTEGER PRIMARY KEY,
@@ -21828,11 +21859,28 @@ function up1062(db) {
21828
21859
  }
21829
21860
  db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
21830
21861
  }
21862
+ function hasColumn182(db, table, column) {
21863
+ return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
21864
+ }
21865
+ var TOKEN_COLUMNS2 = [
21866
+ ["tokens_input", "INTEGER"],
21867
+ ["tokens_output", "INTEGER"],
21868
+ ["tokens_cache_read", "INTEGER"],
21869
+ ["tokens_cache_write", "INTEGER"],
21870
+ ["tokens_cost", "REAL"]
21871
+ ];
21872
+ function up1072(db) {
21873
+ for (const [column, type] of TOKEN_COLUMNS2) {
21874
+ if (!hasColumn182(db, "dreaming_passes", column)) {
21875
+ db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
21876
+ }
21877
+ }
21878
+ }
21831
21879
  var MIGRATIONS2 = [
21832
21880
  {
21833
21881
  version: 1,
21834
21882
  name: "baseline",
21835
- up: up107,
21883
+ up: up108,
21836
21884
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
21837
21885
  },
21838
21886
  {
@@ -21892,7 +21940,7 @@ var MIGRATIONS2 = [
21892
21940
  {
21893
21941
  version: 10,
21894
21942
  name: "umap-cache",
21895
- up: up108,
21943
+ up: up109,
21896
21944
  artifacts: { tables: ["umap_cache"] }
21897
21945
  },
21898
21946
  {
@@ -22668,6 +22716,20 @@ var MIGRATIONS2 = [
22668
22716
  artifacts: {
22669
22717
  columns: [{ table: "memories", column: "review_after" }]
22670
22718
  }
22719
+ },
22720
+ {
22721
+ version: 107,
22722
+ name: "dreaming-pass-usage",
22723
+ up: up1072,
22724
+ artifacts: {
22725
+ columns: [
22726
+ { table: "dreaming_passes", column: "tokens_input" },
22727
+ { table: "dreaming_passes", column: "tokens_output" },
22728
+ { table: "dreaming_passes", column: "tokens_cache_read" },
22729
+ { table: "dreaming_passes", column: "tokens_cache_write" },
22730
+ { table: "dreaming_passes", column: "tokens_cost" }
22731
+ ]
22732
+ }
22671
22733
  }
22672
22734
  ];
22673
22735
  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.167.0",
3
+ "version": "0.168.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.167.0",
29
- "@signetai/core": "0.167.0"
28
+ "@signetai/connector-base": "0.168.0",
29
+ "@signetai/core": "0.168.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",