@signetai/connector-hermes-agent 0.214.4 → 0.214.7

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 +106 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -16096,6 +16096,41 @@ function up142(db) {
16096
16096
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
16097
16097
  }
16098
16098
  }
16099
+ function up143(db) {
16100
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
16101
+ const additions = [
16102
+ ["migration_phase", "TEXT"],
16103
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
16104
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
16105
+ ["projection_cursor_last_id", "TEXT"],
16106
+ ["projection_cursor_slot", "TEXT"],
16107
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
16108
+ ["provider_endpoint", "TEXT"]
16109
+ ];
16110
+ for (const [name, definition] of additions) {
16111
+ if (!columns.has(name))
16112
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
16113
+ }
16114
+ db.exec(`
16115
+ UPDATE embedding_index_state
16116
+ SET provider_endpoint = COALESCE(
16117
+ provider_endpoint,
16118
+ json_extract(active_profile_json, '$.baseUrl')
16119
+ )
16120
+ WHERE id = 1
16121
+ `);
16122
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
16123
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
16124
+ if (hasEmbeddings && hasStaging) {
16125
+ db.exec(`
16126
+ UPDATE embedding_index_state
16127
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
16128
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
16129
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
16130
+ WHERE state = 'building'
16131
+ `);
16132
+ }
16133
+ }
16099
16134
  var MIGRATIONS = [
16100
16135
  {
16101
16136
  version: 1,
@@ -17217,6 +17252,22 @@ var MIGRATIONS = [
17217
17252
  name: "source-sync-frontier",
17218
17253
  up: up142,
17219
17254
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
17255
+ },
17256
+ {
17257
+ version: 143,
17258
+ name: "embedding-index-progress",
17259
+ up: up143,
17260
+ artifacts: {
17261
+ columns: [
17262
+ { table: "embedding_index_state", column: "migration_phase" },
17263
+ { table: "embedding_index_state", column: "progress_staged" },
17264
+ { table: "embedding_index_state", column: "progress_total" },
17265
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
17266
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
17267
+ { table: "embedding_index_state", column: "no_progress_ticks" },
17268
+ { table: "embedding_index_state", column: "provider_endpoint" }
17269
+ ]
17270
+ }
17220
17271
  }
17221
17272
  ];
17222
17273
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -29058,7 +29109,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
29058
29109
  return true;
29059
29110
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
29060
29111
  }
29061
- function up143(db) {
29112
+ function up144(db) {
29062
29113
  db.exec(`
29063
29114
  CREATE TABLE IF NOT EXISTS schema_migrations (
29064
29115
  version INTEGER PRIMARY KEY,
@@ -29568,7 +29619,7 @@ function up1310(db) {
29568
29619
  addColumnIfMissing52(db, "memories", "source_path", "TEXT");
29569
29620
  addColumnIfMissing52(db, "memories", "source_section", "TEXT");
29570
29621
  }
29571
- function up144(db) {
29622
+ function up145(db) {
29572
29623
  db.exec(`
29573
29624
  CREATE TABLE IF NOT EXISTS telemetry_events (
29574
29625
  id TEXT PRIMARY KEY,
@@ -33772,11 +33823,46 @@ function up1422(db) {
33772
33823
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
33773
33824
  }
33774
33825
  }
33826
+ function up1432(db) {
33827
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
33828
+ const additions = [
33829
+ ["migration_phase", "TEXT"],
33830
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
33831
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
33832
+ ["projection_cursor_last_id", "TEXT"],
33833
+ ["projection_cursor_slot", "TEXT"],
33834
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
33835
+ ["provider_endpoint", "TEXT"]
33836
+ ];
33837
+ for (const [name, definition] of additions) {
33838
+ if (!columns.has(name))
33839
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
33840
+ }
33841
+ db.exec(`
33842
+ UPDATE embedding_index_state
33843
+ SET provider_endpoint = COALESCE(
33844
+ provider_endpoint,
33845
+ json_extract(active_profile_json, '$.baseUrl')
33846
+ )
33847
+ WHERE id = 1
33848
+ `);
33849
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
33850
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
33851
+ if (hasEmbeddings && hasStaging) {
33852
+ db.exec(`
33853
+ UPDATE embedding_index_state
33854
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
33855
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
33856
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
33857
+ WHERE state = 'building'
33858
+ `);
33859
+ }
33860
+ }
33775
33861
  var MIGRATIONS2 = [
33776
33862
  {
33777
33863
  version: 1,
33778
33864
  name: "baseline",
33779
- up: up143,
33865
+ up: up144,
33780
33866
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
33781
33867
  },
33782
33868
  {
@@ -33865,7 +33951,7 @@ var MIGRATIONS2 = [
33865
33951
  {
33866
33952
  version: 14,
33867
33953
  name: "telemetry",
33868
- up: up144,
33954
+ up: up145,
33869
33955
  artifacts: { tables: ["telemetry_events"] }
33870
33956
  },
33871
33957
  {
@@ -34893,6 +34979,22 @@ var MIGRATIONS2 = [
34893
34979
  name: "source-sync-frontier",
34894
34980
  up: up1422,
34895
34981
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
34982
+ },
34983
+ {
34984
+ version: 143,
34985
+ name: "embedding-index-progress",
34986
+ up: up1432,
34987
+ artifacts: {
34988
+ columns: [
34989
+ { table: "embedding_index_state", column: "migration_phase" },
34990
+ { table: "embedding_index_state", column: "progress_staged" },
34991
+ { table: "embedding_index_state", column: "progress_total" },
34992
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
34993
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
34994
+ { table: "embedding_index_state", column: "no_progress_ticks" },
34995
+ { table: "embedding_index_state", column: "provider_endpoint" }
34996
+ ]
34997
+ }
34896
34998
  }
34897
34999
  ];
34898
35000
  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.214.4",
3
+ "version": "0.214.7",
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.214.4",
29
- "@signetai/core": "0.214.4"
28
+ "@signetai/connector-base": "0.214.7",
29
+ "@signetai/core": "0.214.7"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",