@signetai/connector-hermes-agent 0.150.5 → 0.152.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 +198 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9881,6 +9881,79 @@ function up87(db) {
9881
9881
  ON summary_jobs(agent_id, session_key, boundary_reason)
9882
9882
  `);
9883
9883
  }
9884
+ function up88(db) {
9885
+ db.exec(`
9886
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
9887
+ agent_id TEXT NOT NULL,
9888
+ source_path TEXT NOT NULL,
9889
+ harness TEXT NOT NULL,
9890
+ size_bytes INTEGER NOT NULL,
9891
+ mtime_ms INTEGER NOT NULL,
9892
+ content_sha256 TEXT NOT NULL,
9893
+ session_id TEXT NOT NULL,
9894
+ last_scanned_at TEXT NOT NULL,
9895
+ PRIMARY KEY (agent_id, source_path)
9896
+ );
9897
+
9898
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
9899
+ ON transcript_capture_jobs(agent_id, session_id, status);
9900
+ `);
9901
+ }
9902
+ function up89(db) {
9903
+ db.exec(`
9904
+ CREATE TABLE IF NOT EXISTS job_cancellations (
9905
+ id TEXT PRIMARY KEY,
9906
+ source_table TEXT NOT NULL,
9907
+ source_id TEXT NOT NULL,
9908
+ status_before TEXT NOT NULL,
9909
+ payload_json TEXT NOT NULL,
9910
+ reason TEXT,
9911
+ actor TEXT NOT NULL,
9912
+ actor_type TEXT NOT NULL,
9913
+ request_id TEXT,
9914
+ created_at TEXT NOT NULL
9915
+ )
9916
+ `);
9917
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_source")) {
9918
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
9919
+ ON job_cancellations(source_table, source_id)`);
9920
+ }
9921
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_created_at")) {
9922
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
9923
+ ON job_cancellations(created_at)`);
9924
+ }
9925
+ }
9926
+ function indexExists(db, table, indexName) {
9927
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9928
+ return rows.some((row) => row.name === indexName);
9929
+ }
9930
+ function up90(db) {
9931
+ db.exec(`
9932
+ CREATE TABLE IF NOT EXISTS job_archive (
9933
+ id TEXT PRIMARY KEY,
9934
+ source_table TEXT NOT NULL,
9935
+ source_id TEXT NOT NULL,
9936
+ status TEXT NOT NULL,
9937
+ payload_json TEXT NOT NULL,
9938
+ archived_at TEXT NOT NULL,
9939
+ archived_by TEXT NOT NULL,
9940
+ reason TEXT,
9941
+ created_at TEXT NOT NULL
9942
+ )
9943
+ `);
9944
+ if (!indexExists2(db, "job_archive", "idx_job_archive_source")) {
9945
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
9946
+ ON job_archive(source_table, source_id)`);
9947
+ }
9948
+ if (!indexExists2(db, "job_archive", "idx_job_archive_archived_at")) {
9949
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
9950
+ ON job_archive(archived_at)`);
9951
+ }
9952
+ }
9953
+ function indexExists2(db, table, indexName) {
9954
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9955
+ return rows.some((row) => row.name === indexName);
9956
+ }
9884
9957
  var MIGRATIONS = [
9885
9958
  {
9886
9959
  version: 1,
@@ -10592,6 +10665,30 @@ var MIGRATIONS = [
10592
10665
  artifacts: {
10593
10666
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
10594
10667
  }
10668
+ },
10669
+ {
10670
+ version: 88,
10671
+ name: "transcript-recovery-files",
10672
+ up: up88,
10673
+ artifacts: {
10674
+ tables: ["transcript_recovery_files"]
10675
+ }
10676
+ },
10677
+ {
10678
+ version: 89,
10679
+ name: "job-cancellations",
10680
+ up: up89,
10681
+ artifacts: {
10682
+ tables: ["job_cancellations"]
10683
+ }
10684
+ },
10685
+ {
10686
+ version: 90,
10687
+ name: "job-archive",
10688
+ up: up90,
10689
+ artifacts: {
10690
+ tables: ["job_archive"]
10691
+ }
10595
10692
  }
10596
10693
  ];
10597
10694
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17932,7 +18029,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17932
18029
  return true;
17933
18030
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17934
18031
  }
17935
- function up88(db) {
18032
+ function up91(db) {
17936
18033
  db.exec(`
17937
18034
  CREATE TABLE IF NOT EXISTS schema_migrations (
17938
18035
  version INTEGER PRIMARY KEY,
@@ -18307,7 +18404,7 @@ function up710(db) {
18307
18404
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
18308
18405
  }
18309
18406
  }
18310
- function up89(db) {
18407
+ function up810(db) {
18311
18408
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
18312
18409
  if (tables.length === 0)
18313
18410
  return;
@@ -20874,11 +20971,84 @@ function up872(db) {
20874
20971
  ON summary_jobs(agent_id, session_key, boundary_reason)
20875
20972
  `);
20876
20973
  }
20974
+ function up882(db) {
20975
+ db.exec(`
20976
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
20977
+ agent_id TEXT NOT NULL,
20978
+ source_path TEXT NOT NULL,
20979
+ harness TEXT NOT NULL,
20980
+ size_bytes INTEGER NOT NULL,
20981
+ mtime_ms INTEGER NOT NULL,
20982
+ content_sha256 TEXT NOT NULL,
20983
+ session_id TEXT NOT NULL,
20984
+ last_scanned_at TEXT NOT NULL,
20985
+ PRIMARY KEY (agent_id, source_path)
20986
+ );
20987
+
20988
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
20989
+ ON transcript_capture_jobs(agent_id, session_id, status);
20990
+ `);
20991
+ }
20992
+ function up892(db) {
20993
+ db.exec(`
20994
+ CREATE TABLE IF NOT EXISTS job_cancellations (
20995
+ id TEXT PRIMARY KEY,
20996
+ source_table TEXT NOT NULL,
20997
+ source_id TEXT NOT NULL,
20998
+ status_before TEXT NOT NULL,
20999
+ payload_json TEXT NOT NULL,
21000
+ reason TEXT,
21001
+ actor TEXT NOT NULL,
21002
+ actor_type TEXT NOT NULL,
21003
+ request_id TEXT,
21004
+ created_at TEXT NOT NULL
21005
+ )
21006
+ `);
21007
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_source")) {
21008
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
21009
+ ON job_cancellations(source_table, source_id)`);
21010
+ }
21011
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_created_at")) {
21012
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
21013
+ ON job_cancellations(created_at)`);
21014
+ }
21015
+ }
21016
+ function indexExists3(db, table, indexName) {
21017
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21018
+ return rows.some((row) => row.name === indexName);
21019
+ }
21020
+ function up902(db) {
21021
+ db.exec(`
21022
+ CREATE TABLE IF NOT EXISTS job_archive (
21023
+ id TEXT PRIMARY KEY,
21024
+ source_table TEXT NOT NULL,
21025
+ source_id TEXT NOT NULL,
21026
+ status TEXT NOT NULL,
21027
+ payload_json TEXT NOT NULL,
21028
+ archived_at TEXT NOT NULL,
21029
+ archived_by TEXT NOT NULL,
21030
+ reason TEXT,
21031
+ created_at TEXT NOT NULL
21032
+ )
21033
+ `);
21034
+ if (!indexExists22(db, "job_archive", "idx_job_archive_source")) {
21035
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
21036
+ ON job_archive(source_table, source_id)`);
21037
+ }
21038
+ if (!indexExists22(db, "job_archive", "idx_job_archive_archived_at")) {
21039
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
21040
+ ON job_archive(archived_at)`);
21041
+ }
21042
+ }
21043
+ function indexExists22(db, table, indexName) {
21044
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21045
+ return rows.some((row) => row.name === indexName);
21046
+ }
20877
21047
  var MIGRATIONS2 = [
20878
21048
  {
20879
21049
  version: 1,
20880
21050
  name: "baseline",
20881
- up: up88,
21051
+ up: up91,
20882
21052
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20883
21053
  },
20884
21054
  {
@@ -20927,7 +21097,7 @@ var MIGRATIONS2 = [
20927
21097
  {
20928
21098
  version: 8,
20929
21099
  name: "embeddings-unique-hash",
20930
- up: up89
21100
+ up: up810
20931
21101
  },
20932
21102
  {
20933
21103
  version: 9,
@@ -21585,6 +21755,30 @@ var MIGRATIONS2 = [
21585
21755
  artifacts: {
21586
21756
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
21587
21757
  }
21758
+ },
21759
+ {
21760
+ version: 88,
21761
+ name: "transcript-recovery-files",
21762
+ up: up882,
21763
+ artifacts: {
21764
+ tables: ["transcript_recovery_files"]
21765
+ }
21766
+ },
21767
+ {
21768
+ version: 89,
21769
+ name: "job-cancellations",
21770
+ up: up892,
21771
+ artifacts: {
21772
+ tables: ["job_cancellations"]
21773
+ }
21774
+ },
21775
+ {
21776
+ version: 90,
21777
+ name: "job-archive",
21778
+ up: up902,
21779
+ artifacts: {
21780
+ tables: ["job_archive"]
21781
+ }
21588
21782
  }
21589
21783
  ];
21590
21784
  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.150.5",
3
+ "version": "0.152.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.150.5",
29
- "@signetai/core": "0.150.5"
28
+ "@signetai/connector-base": "0.152.0",
29
+ "@signetai/core": "0.152.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",