@signetai/signet-memory-openclaw 0.226.5 → 0.226.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 +70 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16763,6 +16763,31 @@ function up152(db) {
16763
16763
  `);
16764
16764
  }
16765
16765
  }
16766
+ function up153(db) {
16767
+ db.exec(`
16768
+ CREATE TABLE IF NOT EXISTS vector_repair_checkpoints (
16769
+ operation TEXT NOT NULL CHECK (operation IN ('resync', 'clean-orphans')),
16770
+ agent_id TEXT NOT NULL CHECK (length(trim(agent_id)) > 0),
16771
+ checkpoint_id TEXT NOT NULL UNIQUE,
16772
+ phase TEXT NOT NULL CHECK (
16773
+ phase IN ('orphan-vectors', 'missing-vectors', 'orphan-embeddings', 'complete')
16774
+ ),
16775
+ cursor TEXT,
16776
+ processed INTEGER NOT NULL DEFAULT 0 CHECK (processed >= 0),
16777
+ skipped INTEGER NOT NULL DEFAULT 0 CHECK (skipped >= 0),
16778
+ failed INTEGER NOT NULL DEFAULT 0 CHECK (failed >= 0),
16779
+ affected INTEGER NOT NULL DEFAULT 0 CHECK (affected >= 0),
16780
+ remaining INTEGER NOT NULL DEFAULT 0 CHECK (remaining >= 0),
16781
+ status TEXT NOT NULL DEFAULT 'running' CHECK (status IN ('running', 'complete', 'failed')),
16782
+ last_error TEXT,
16783
+ created_at TEXT NOT NULL,
16784
+ updated_at TEXT NOT NULL,
16785
+ PRIMARY KEY (operation, agent_id)
16786
+ );
16787
+ CREATE INDEX IF NOT EXISTS idx_vector_repair_checkpoints_status
16788
+ ON vector_repair_checkpoints(status, updated_at);
16789
+ `);
16790
+ }
16766
16791
  var MIGRATIONS = [
16767
16792
  {
16768
16793
  version: 1,
@@ -18001,6 +18026,12 @@ var MIGRATIONS = [
18001
18026
  name: "memory-artifact-sha-index",
18002
18027
  up: up2,
18003
18028
  artifacts: { indexes: ["idx_memory_artifacts_agent_sha"] }
18029
+ },
18030
+ {
18031
+ version: 153,
18032
+ name: "vector-repair-checkpoints",
18033
+ up: up153,
18034
+ artifacts: { tables: ["vector_repair_checkpoints"] }
18004
18035
  }
18005
18036
  ];
18006
18037
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -29902,7 +29933,7 @@ var DAEMON_DERIVED_MEMORY_SOURCE_TYPES2 = [
29902
29933
  "checkpoint",
29903
29934
  "dreaming"
29904
29935
  ];
29905
- function up153(db) {
29936
+ function up154(db) {
29906
29937
  const hasColumn26 = (table, column) => {
29907
29938
  const statement = db.prepare(`SELECT 1 FROM pragma_table_info('${table}') WHERE name = ?`);
29908
29939
  try {
@@ -30567,7 +30598,7 @@ function addColumnIfMissing52(db, table, column, definition) {
30567
30598
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
30568
30599
  }
30569
30600
  }
30570
- function up154(db) {
30601
+ function up155(db) {
30571
30602
  db.exec(`
30572
30603
  CREATE TABLE IF NOT EXISTS ingestion_jobs (
30573
30604
  id TEXT PRIMARY KEY,
@@ -35103,6 +35134,31 @@ function up1522(db) {
35103
35134
  `);
35104
35135
  }
35105
35136
  }
35137
+ function up1532(db) {
35138
+ db.exec(`
35139
+ CREATE TABLE IF NOT EXISTS vector_repair_checkpoints (
35140
+ operation TEXT NOT NULL CHECK (operation IN ('resync', 'clean-orphans')),
35141
+ agent_id TEXT NOT NULL CHECK (length(trim(agent_id)) > 0),
35142
+ checkpoint_id TEXT NOT NULL UNIQUE,
35143
+ phase TEXT NOT NULL CHECK (
35144
+ phase IN ('orphan-vectors', 'missing-vectors', 'orphan-embeddings', 'complete')
35145
+ ),
35146
+ cursor TEXT,
35147
+ processed INTEGER NOT NULL DEFAULT 0 CHECK (processed >= 0),
35148
+ skipped INTEGER NOT NULL DEFAULT 0 CHECK (skipped >= 0),
35149
+ failed INTEGER NOT NULL DEFAULT 0 CHECK (failed >= 0),
35150
+ affected INTEGER NOT NULL DEFAULT 0 CHECK (affected >= 0),
35151
+ remaining INTEGER NOT NULL DEFAULT 0 CHECK (remaining >= 0),
35152
+ status TEXT NOT NULL DEFAULT 'running' CHECK (status IN ('running', 'complete', 'failed')),
35153
+ last_error TEXT,
35154
+ created_at TEXT NOT NULL,
35155
+ updated_at TEXT NOT NULL,
35156
+ PRIMARY KEY (operation, agent_id)
35157
+ );
35158
+ CREATE INDEX IF NOT EXISTS idx_vector_repair_checkpoints_status
35159
+ ON vector_repair_checkpoints(status, updated_at);
35160
+ `);
35161
+ }
35106
35162
  var MIGRATIONS2 = [
35107
35163
  {
35108
35164
  version: 1,
@@ -35185,7 +35241,7 @@ var MIGRATIONS2 = [
35185
35241
  {
35186
35242
  version: 13,
35187
35243
  name: "ingestion-tracking",
35188
- up: up154,
35244
+ up: up155,
35189
35245
  artifacts: {
35190
35246
  columns: [
35191
35247
  { table: "memories", column: "source_path" },
@@ -36310,7 +36366,7 @@ var MIGRATIONS2 = [
36310
36366
  {
36311
36367
  version: 151,
36312
36368
  name: "transcript-import-bytes",
36313
- up: up153,
36369
+ up: up154,
36314
36370
  artifacts: {
36315
36371
  tables: [
36316
36372
  "source_import_chunks",
@@ -36341,6 +36397,12 @@ var MIGRATIONS2 = [
36341
36397
  name: "memory-artifact-sha-index",
36342
36398
  up: up210,
36343
36399
  artifacts: { indexes: ["idx_memory_artifacts_agent_sha"] }
36400
+ },
36401
+ {
36402
+ version: 153,
36403
+ name: "vector-repair-checkpoints",
36404
+ up: up1532,
36405
+ artifacts: { tables: ["vector_repair_checkpoints"] }
36344
36406
  }
36345
36407
  ];
36346
36408
  var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
@@ -36920,11 +36982,11 @@ class SignetClientP2 {
36920
36982
  async reembedMissing(opts) {
36921
36983
  return this.transport.post("/api/repair/re-embed", opts ?? {});
36922
36984
  }
36923
- async resyncVectorIndex() {
36924
- return this.transport.post("/api/repair/resync-vec", {});
36985
+ async resyncVectorIndex(opts) {
36986
+ return this.transport.post("/api/repair/resync-vec", opts ?? {});
36925
36987
  }
36926
- async cleanOrphanedEmbeddings() {
36927
- return this.transport.post("/api/repair/clean-orphans", {});
36988
+ async cleanOrphanedEmbeddings(opts) {
36989
+ return this.transport.post("/api/repair/clean-orphans", opts ?? {});
36928
36990
  }
36929
36991
  async getDedupStats() {
36930
36992
  return this.transport.get("/api/repair/dedup-stats");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/signet-memory-openclaw",
3
- "version": "0.226.5",
3
+ "version": "0.226.7",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",