@signetai/signet-memory-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 +1 -1
package/dist/index.js CHANGED
@@ -16353,6 +16353,41 @@ function up142(db) {
16353
16353
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
16354
16354
  }
16355
16355
  }
16356
+ function up143(db) {
16357
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
16358
+ const additions = [
16359
+ ["migration_phase", "TEXT"],
16360
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
16361
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
16362
+ ["projection_cursor_last_id", "TEXT"],
16363
+ ["projection_cursor_slot", "TEXT"],
16364
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
16365
+ ["provider_endpoint", "TEXT"]
16366
+ ];
16367
+ for (const [name, definition] of additions) {
16368
+ if (!columns.has(name))
16369
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
16370
+ }
16371
+ db.exec(`
16372
+ UPDATE embedding_index_state
16373
+ SET provider_endpoint = COALESCE(
16374
+ provider_endpoint,
16375
+ json_extract(active_profile_json, '$.baseUrl')
16376
+ )
16377
+ WHERE id = 1
16378
+ `);
16379
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
16380
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
16381
+ if (hasEmbeddings && hasStaging) {
16382
+ db.exec(`
16383
+ UPDATE embedding_index_state
16384
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
16385
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
16386
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
16387
+ WHERE state = 'building'
16388
+ `);
16389
+ }
16390
+ }
16356
16391
  var MIGRATIONS = [
16357
16392
  {
16358
16393
  version: 1,
@@ -17474,6 +17509,22 @@ var MIGRATIONS = [
17474
17509
  name: "source-sync-frontier",
17475
17510
  up: up142,
17476
17511
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
17512
+ },
17513
+ {
17514
+ version: 143,
17515
+ name: "embedding-index-progress",
17516
+ up: up143,
17517
+ artifacts: {
17518
+ columns: [
17519
+ { table: "embedding_index_state", column: "migration_phase" },
17520
+ { table: "embedding_index_state", column: "progress_staged" },
17521
+ { table: "embedding_index_state", column: "progress_total" },
17522
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
17523
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
17524
+ { table: "embedding_index_state", column: "no_progress_ticks" },
17525
+ { table: "embedding_index_state", column: "provider_endpoint" }
17526
+ ]
17527
+ }
17477
17528
  }
17478
17529
  ];
17479
17530
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -29452,7 +29503,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
29452
29503
  return true;
29453
29504
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
29454
29505
  }
29455
- function up143(db) {
29506
+ function up144(db) {
29456
29507
  db.exec(`
29457
29508
  CREATE TABLE IF NOT EXISTS schema_migrations (
29458
29509
  version INTEGER PRIMARY KEY,
@@ -29962,7 +30013,7 @@ function up1310(db) {
29962
30013
  addColumnIfMissing52(db, "memories", "source_path", "TEXT");
29963
30014
  addColumnIfMissing52(db, "memories", "source_section", "TEXT");
29964
30015
  }
29965
- function up144(db) {
30016
+ function up145(db) {
29966
30017
  db.exec(`
29967
30018
  CREATE TABLE IF NOT EXISTS telemetry_events (
29968
30019
  id TEXT PRIMARY KEY,
@@ -34166,11 +34217,46 @@ function up1422(db) {
34166
34217
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
34167
34218
  }
34168
34219
  }
34220
+ function up1432(db) {
34221
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
34222
+ const additions = [
34223
+ ["migration_phase", "TEXT"],
34224
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
34225
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
34226
+ ["projection_cursor_last_id", "TEXT"],
34227
+ ["projection_cursor_slot", "TEXT"],
34228
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
34229
+ ["provider_endpoint", "TEXT"]
34230
+ ];
34231
+ for (const [name, definition] of additions) {
34232
+ if (!columns.has(name))
34233
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
34234
+ }
34235
+ db.exec(`
34236
+ UPDATE embedding_index_state
34237
+ SET provider_endpoint = COALESCE(
34238
+ provider_endpoint,
34239
+ json_extract(active_profile_json, '$.baseUrl')
34240
+ )
34241
+ WHERE id = 1
34242
+ `);
34243
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
34244
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
34245
+ if (hasEmbeddings && hasStaging) {
34246
+ db.exec(`
34247
+ UPDATE embedding_index_state
34248
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
34249
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
34250
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
34251
+ WHERE state = 'building'
34252
+ `);
34253
+ }
34254
+ }
34169
34255
  var MIGRATIONS2 = [
34170
34256
  {
34171
34257
  version: 1,
34172
34258
  name: "baseline",
34173
- up: up143,
34259
+ up: up144,
34174
34260
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
34175
34261
  },
34176
34262
  {
@@ -34259,7 +34345,7 @@ var MIGRATIONS2 = [
34259
34345
  {
34260
34346
  version: 14,
34261
34347
  name: "telemetry",
34262
- up: up144,
34348
+ up: up145,
34263
34349
  artifacts: { tables: ["telemetry_events"] }
34264
34350
  },
34265
34351
  {
@@ -35287,6 +35373,22 @@ var MIGRATIONS2 = [
35287
35373
  name: "source-sync-frontier",
35288
35374
  up: up1422,
35289
35375
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
35376
+ },
35377
+ {
35378
+ version: 143,
35379
+ name: "embedding-index-progress",
35380
+ up: up1432,
35381
+ artifacts: {
35382
+ columns: [
35383
+ { table: "embedding_index_state", column: "migration_phase" },
35384
+ { table: "embedding_index_state", column: "progress_staged" },
35385
+ { table: "embedding_index_state", column: "progress_total" },
35386
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
35387
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
35388
+ { table: "embedding_index_state", column: "no_progress_ticks" },
35389
+ { table: "embedding_index_state", column: "provider_endpoint" }
35390
+ ]
35391
+ }
35290
35392
  }
35291
35393
  ];
35292
35394
  var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/signet-memory-openclaw",
3
- "version": "0.214.4",
3
+ "version": "0.214.7",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",