@signetai/connector-openclaw 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
@@ -16093,6 +16093,41 @@ function up142(db) {
16093
16093
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
16094
16094
  }
16095
16095
  }
16096
+ function up143(db) {
16097
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
16098
+ const additions = [
16099
+ ["migration_phase", "TEXT"],
16100
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
16101
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
16102
+ ["projection_cursor_last_id", "TEXT"],
16103
+ ["projection_cursor_slot", "TEXT"],
16104
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
16105
+ ["provider_endpoint", "TEXT"]
16106
+ ];
16107
+ for (const [name, definition] of additions) {
16108
+ if (!columns.has(name))
16109
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
16110
+ }
16111
+ db.exec(`
16112
+ UPDATE embedding_index_state
16113
+ SET provider_endpoint = COALESCE(
16114
+ provider_endpoint,
16115
+ json_extract(active_profile_json, '$.baseUrl')
16116
+ )
16117
+ WHERE id = 1
16118
+ `);
16119
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
16120
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
16121
+ if (hasEmbeddings && hasStaging) {
16122
+ db.exec(`
16123
+ UPDATE embedding_index_state
16124
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
16125
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
16126
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
16127
+ WHERE state = 'building'
16128
+ `);
16129
+ }
16130
+ }
16096
16131
  var MIGRATIONS = [
16097
16132
  {
16098
16133
  version: 1,
@@ -17214,6 +17249,22 @@ var MIGRATIONS = [
17214
17249
  name: "source-sync-frontier",
17215
17250
  up: up142,
17216
17251
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
17252
+ },
17253
+ {
17254
+ version: 143,
17255
+ name: "embedding-index-progress",
17256
+ up: up143,
17257
+ artifacts: {
17258
+ columns: [
17259
+ { table: "embedding_index_state", column: "migration_phase" },
17260
+ { table: "embedding_index_state", column: "progress_staged" },
17261
+ { table: "embedding_index_state", column: "progress_total" },
17262
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
17263
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
17264
+ { table: "embedding_index_state", column: "no_progress_ticks" },
17265
+ { table: "embedding_index_state", column: "provider_endpoint" }
17266
+ ]
17267
+ }
17217
17268
  }
17218
17269
  ];
17219
17270
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -31056,7 +31107,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
31056
31107
  return true;
31057
31108
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
31058
31109
  }
31059
- function up143(db) {
31110
+ function up144(db) {
31060
31111
  db.exec(`
31061
31112
  CREATE TABLE IF NOT EXISTS schema_migrations (
31062
31113
  version INTEGER PRIMARY KEY,
@@ -31566,7 +31617,7 @@ function up1310(db) {
31566
31617
  addColumnIfMissing52(db, "memories", "source_path", "TEXT");
31567
31618
  addColumnIfMissing52(db, "memories", "source_section", "TEXT");
31568
31619
  }
31569
- function up144(db) {
31620
+ function up145(db) {
31570
31621
  db.exec(`
31571
31622
  CREATE TABLE IF NOT EXISTS telemetry_events (
31572
31623
  id TEXT PRIMARY KEY,
@@ -35770,11 +35821,46 @@ function up1422(db) {
35770
35821
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
35771
35822
  }
35772
35823
  }
35824
+ function up1432(db) {
35825
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
35826
+ const additions = [
35827
+ ["migration_phase", "TEXT"],
35828
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
35829
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
35830
+ ["projection_cursor_last_id", "TEXT"],
35831
+ ["projection_cursor_slot", "TEXT"],
35832
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
35833
+ ["provider_endpoint", "TEXT"]
35834
+ ];
35835
+ for (const [name, definition] of additions) {
35836
+ if (!columns.has(name))
35837
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
35838
+ }
35839
+ db.exec(`
35840
+ UPDATE embedding_index_state
35841
+ SET provider_endpoint = COALESCE(
35842
+ provider_endpoint,
35843
+ json_extract(active_profile_json, '$.baseUrl')
35844
+ )
35845
+ WHERE id = 1
35846
+ `);
35847
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
35848
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
35849
+ if (hasEmbeddings && hasStaging) {
35850
+ db.exec(`
35851
+ UPDATE embedding_index_state
35852
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
35853
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
35854
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
35855
+ WHERE state = 'building'
35856
+ `);
35857
+ }
35858
+ }
35773
35859
  var MIGRATIONS2 = [
35774
35860
  {
35775
35861
  version: 1,
35776
35862
  name: "baseline",
35777
- up: up143,
35863
+ up: up144,
35778
35864
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
35779
35865
  },
35780
35866
  {
@@ -35863,7 +35949,7 @@ var MIGRATIONS2 = [
35863
35949
  {
35864
35950
  version: 14,
35865
35951
  name: "telemetry",
35866
- up: up144,
35952
+ up: up145,
35867
35953
  artifacts: { tables: ["telemetry_events"] }
35868
35954
  },
35869
35955
  {
@@ -36891,6 +36977,22 @@ var MIGRATIONS2 = [
36891
36977
  name: "source-sync-frontier",
36892
36978
  up: up1422,
36893
36979
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
36980
+ },
36981
+ {
36982
+ version: 143,
36983
+ name: "embedding-index-progress",
36984
+ up: up1432,
36985
+ artifacts: {
36986
+ columns: [
36987
+ { table: "embedding_index_state", column: "migration_phase" },
36988
+ { table: "embedding_index_state", column: "progress_staged" },
36989
+ { table: "embedding_index_state", column: "progress_total" },
36990
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
36991
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
36992
+ { table: "embedding_index_state", column: "no_progress_ticks" },
36993
+ { table: "embedding_index_state", column: "provider_endpoint" }
36994
+ ]
36995
+ }
36894
36996
  }
36895
36997
  ];
36896
36998
  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-openclaw",
3
- "version": "0.214.4",
3
+ "version": "0.214.7",
4
4
  "description": "Signet connector for OpenClaw - configures workspace and memory hooks",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,8 +25,8 @@
25
25
  "test": "bun test"
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",