@signetai/connector-hermes-agent 0.145.10 → 0.146.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 +66 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9604,6 +9604,25 @@ function up81(db) {
9604
9604
  ON aggregate_evidence_sources(source_kind, source_id);
9605
9605
  `);
9606
9606
  }
9607
+ function hasColumn11(db, table, column) {
9608
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
9609
+ return rows.some((row) => row.name === column);
9610
+ }
9611
+ var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
9612
+ function up82(db) {
9613
+ for (const column of COLUMNS) {
9614
+ if (!hasColumn11(db, "skill_invocations", column)) {
9615
+ db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
9616
+ }
9617
+ }
9618
+ db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
9619
+ db.exec(`
9620
+ CREATE UNIQUE INDEX idx_skill_inv_dedupe
9621
+ ON skill_invocations(agent_id, harness, session_id, tool_use_id)
9622
+ WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
9623
+ `);
9624
+ db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
9625
+ }
9607
9626
  var MIGRATIONS = [
9608
9627
  {
9609
9628
  version: 1,
@@ -10257,6 +10276,17 @@ var MIGRATIONS = [
10257
10276
  artifacts: {
10258
10277
  tables: ["aggregate_evidence_sources"]
10259
10278
  }
10279
+ },
10280
+ {
10281
+ version: 82,
10282
+ name: "skill-invocations-harness",
10283
+ up: up82,
10284
+ artifacts: {
10285
+ columns: [
10286
+ { table: "skill_invocations", column: "harness" },
10287
+ { table: "skill_invocations", column: "tool_use_id" }
10288
+ ]
10289
+ }
10260
10290
  }
10261
10291
  ];
10262
10292
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17597,7 +17627,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17597
17627
  return true;
17598
17628
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17599
17629
  }
17600
- function up82(db) {
17630
+ function up83(db) {
17601
17631
  db.exec(`
17602
17632
  CREATE TABLE IF NOT EXISTS schema_migrations (
17603
17633
  version INTEGER PRIMARY KEY,
@@ -17686,12 +17716,12 @@ function up82(db) {
17686
17716
  } catch {}
17687
17717
  createMemoriesFts2(db);
17688
17718
  }
17689
- function hasColumn11(db, table, column) {
17719
+ function hasColumn12(db, table, column) {
17690
17720
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
17691
17721
  return rows.some((r) => r.name === column);
17692
17722
  }
17693
17723
  function addColumnIfMissing20(db, table, column, definition) {
17694
- if (!hasColumn11(db, table, column)) {
17724
+ if (!hasColumn12(db, table, column)) {
17695
17725
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
17696
17726
  }
17697
17727
  }
@@ -17972,7 +18002,7 @@ function up710(db) {
17972
18002
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
17973
18003
  }
17974
18004
  }
17975
- function up83(db) {
18005
+ function up84(db) {
17976
18006
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
17977
18007
  if (tables.length === 0)
17978
18008
  return;
@@ -20262,11 +20292,30 @@ function up812(db) {
20262
20292
  ON aggregate_evidence_sources(source_kind, source_id);
20263
20293
  `);
20264
20294
  }
20295
+ function hasColumn112(db, table, column) {
20296
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
20297
+ return rows.some((row) => row.name === column);
20298
+ }
20299
+ var COLUMNS2 = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
20300
+ function up822(db) {
20301
+ for (const column of COLUMNS2) {
20302
+ if (!hasColumn112(db, "skill_invocations", column)) {
20303
+ db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
20304
+ }
20305
+ }
20306
+ db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
20307
+ db.exec(`
20308
+ CREATE UNIQUE INDEX idx_skill_inv_dedupe
20309
+ ON skill_invocations(agent_id, harness, session_id, tool_use_id)
20310
+ WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
20311
+ `);
20312
+ db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
20313
+ }
20265
20314
  var MIGRATIONS2 = [
20266
20315
  {
20267
20316
  version: 1,
20268
20317
  name: "baseline",
20269
- up: up82,
20318
+ up: up83,
20270
20319
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20271
20320
  },
20272
20321
  {
@@ -20315,7 +20364,7 @@ var MIGRATIONS2 = [
20315
20364
  {
20316
20365
  version: 8,
20317
20366
  name: "embeddings-unique-hash",
20318
- up: up83
20367
+ up: up84
20319
20368
  },
20320
20369
  {
20321
20370
  version: 9,
@@ -20915,6 +20964,17 @@ var MIGRATIONS2 = [
20915
20964
  artifacts: {
20916
20965
  tables: ["aggregate_evidence_sources"]
20917
20966
  }
20967
+ },
20968
+ {
20969
+ version: 82,
20970
+ name: "skill-invocations-harness",
20971
+ up: up822,
20972
+ artifacts: {
20973
+ columns: [
20974
+ { table: "skill_invocations", column: "harness" },
20975
+ { table: "skill_invocations", column: "tool_use_id" }
20976
+ ]
20977
+ }
20918
20978
  }
20919
20979
  ];
20920
20980
  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.145.10",
3
+ "version": "0.146.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.145.10",
29
- "@signetai/core": "0.145.10"
28
+ "@signetai/connector-base": "0.146.0",
29
+ "@signetai/core": "0.146.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",