@signetai/connector-hermes-agent 0.151.0 → 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 +144 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9899,6 +9899,61 @@ function up88(db) {
9899
9899
  ON transcript_capture_jobs(agent_id, session_id, status);
9900
9900
  `);
9901
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
+ }
9902
9957
  var MIGRATIONS = [
9903
9958
  {
9904
9959
  version: 1,
@@ -10618,6 +10673,22 @@ var MIGRATIONS = [
10618
10673
  artifacts: {
10619
10674
  tables: ["transcript_recovery_files"]
10620
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
+ }
10621
10692
  }
10622
10693
  ];
10623
10694
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17958,7 +18029,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17958
18029
  return true;
17959
18030
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17960
18031
  }
17961
- function up89(db) {
18032
+ function up91(db) {
17962
18033
  db.exec(`
17963
18034
  CREATE TABLE IF NOT EXISTS schema_migrations (
17964
18035
  version INTEGER PRIMARY KEY,
@@ -20918,11 +20989,66 @@ function up882(db) {
20918
20989
  ON transcript_capture_jobs(agent_id, session_id, status);
20919
20990
  `);
20920
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
+ }
20921
21047
  var MIGRATIONS2 = [
20922
21048
  {
20923
21049
  version: 1,
20924
21050
  name: "baseline",
20925
- up: up89,
21051
+ up: up91,
20926
21052
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20927
21053
  },
20928
21054
  {
@@ -21637,6 +21763,22 @@ var MIGRATIONS2 = [
21637
21763
  artifacts: {
21638
21764
  tables: ["transcript_recovery_files"]
21639
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
+ }
21640
21782
  }
21641
21783
  ];
21642
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.151.0",
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.151.0",
29
- "@signetai/core": "0.151.0"
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",