@signetai/connector-hermes-agent 0.177.0 → 0.178.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 +54 -8
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -10389,6 +10389,18 @@ function up110(db) {
10389
10389
  ON memory_entity_mentions(entity_id, memory_id);
10390
10390
  `);
10391
10391
  }
10392
+ function hasColumn19(db, table, column) {
10393
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
10394
+ return rows.some((row) => row.name === column);
10395
+ }
10396
+ var COLUMNS2 = ["first_remember_at", "first_recall_at"];
10397
+ function up111(db) {
10398
+ for (const column of COLUMNS2) {
10399
+ if (!hasColumn19(db, "telemetry_install", column)) {
10400
+ db.exec(`ALTER TABLE telemetry_install ADD COLUMN ${column} TEXT`);
10401
+ }
10402
+ }
10403
+ }
10392
10404
  var MIGRATIONS = [
10393
10405
  {
10394
10406
  version: 1,
@@ -11264,6 +11276,17 @@ var MIGRATIONS = [
11264
11276
  version: 110,
11265
11277
  name: "memory-mention-join-index",
11266
11278
  up: up110
11279
+ },
11280
+ {
11281
+ version: 111,
11282
+ name: "telemetry-first-use",
11283
+ up: up111,
11284
+ artifacts: {
11285
+ columns: [
11286
+ { table: "telemetry_install", column: "first_remember_at" },
11287
+ { table: "telemetry_install", column: "first_recall_at" }
11288
+ ]
11289
+ }
11267
11290
  }
11268
11291
  ];
11269
11292
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -18528,7 +18551,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
18528
18551
  return true;
18529
18552
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
18530
18553
  }
18531
- function up111(db) {
18554
+ function up112(db) {
18532
18555
  db.exec(`
18533
18556
  CREATE TABLE IF NOT EXISTS schema_migrations (
18534
18557
  version INTEGER PRIMARY KEY,
@@ -18617,12 +18640,12 @@ function up111(db) {
18617
18640
  } catch {}
18618
18641
  createMemoriesFts2(db);
18619
18642
  }
18620
- function hasColumn19(db, table, column) {
18643
+ function hasColumn20(db, table, column) {
18621
18644
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
18622
18645
  return rows.some((r) => r.name === column);
18623
18646
  }
18624
18647
  function addColumnIfMissing23(db, table, column, definition) {
18625
- if (!hasColumn19(db, table, column)) {
18648
+ if (!hasColumn20(db, table, column)) {
18626
18649
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
18627
18650
  }
18628
18651
  }
@@ -18951,7 +18974,7 @@ function up1010(db) {
18951
18974
  )
18952
18975
  `);
18953
18976
  }
18954
- function up112(db) {
18977
+ function up113(db) {
18955
18978
  db.exec(`
18956
18979
  CREATE TABLE IF NOT EXISTS session_scores (
18957
18980
  id TEXT PRIMARY KEY,
@@ -21197,9 +21220,9 @@ function hasColumn112(db, table, column) {
21197
21220
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
21198
21221
  return rows.some((row) => row.name === column);
21199
21222
  }
21200
- var COLUMNS2 = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
21223
+ var COLUMNS3 = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
21201
21224
  function up822(db) {
21202
- for (const column of COLUMNS2) {
21225
+ for (const column of COLUMNS3) {
21203
21226
  if (!hasColumn112(db, "skill_invocations", column)) {
21204
21227
  db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
21205
21228
  }
@@ -21951,11 +21974,23 @@ function up1102(db) {
21951
21974
  ON memory_entity_mentions(entity_id, memory_id);
21952
21975
  `);
21953
21976
  }
21977
+ function hasColumn192(db, table, column) {
21978
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
21979
+ return rows.some((row) => row.name === column);
21980
+ }
21981
+ var COLUMNS22 = ["first_remember_at", "first_recall_at"];
21982
+ function up1112(db) {
21983
+ for (const column of COLUMNS22) {
21984
+ if (!hasColumn192(db, "telemetry_install", column)) {
21985
+ db.exec(`ALTER TABLE telemetry_install ADD COLUMN ${column} TEXT`);
21986
+ }
21987
+ }
21988
+ }
21954
21989
  var MIGRATIONS2 = [
21955
21990
  {
21956
21991
  version: 1,
21957
21992
  name: "baseline",
21958
- up: up111,
21993
+ up: up112,
21959
21994
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
21960
21995
  },
21961
21996
  {
@@ -22021,7 +22056,7 @@ var MIGRATIONS2 = [
22021
22056
  {
22022
22057
  version: 11,
22023
22058
  name: "session-scores",
22024
- up: up112,
22059
+ up: up113,
22025
22060
  artifacts: { tables: ["session_scores"] }
22026
22061
  },
22027
22062
  {
@@ -22826,6 +22861,17 @@ var MIGRATIONS2 = [
22826
22861
  version: 110,
22827
22862
  name: "memory-mention-join-index",
22828
22863
  up: up1102
22864
+ },
22865
+ {
22866
+ version: 111,
22867
+ name: "telemetry-first-use",
22868
+ up: up1112,
22869
+ artifacts: {
22870
+ columns: [
22871
+ { table: "telemetry_install", column: "first_remember_at" },
22872
+ { table: "telemetry_install", column: "first_recall_at" }
22873
+ ]
22874
+ }
22829
22875
  }
22830
22876
  ];
22831
22877
  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.177.0",
3
+ "version": "0.178.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.177.0",
29
- "@signetai/core": "0.177.0"
28
+ "@signetai/connector-base": "0.178.0",
29
+ "@signetai/core": "0.178.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",