@signetai/signet-memory-openclaw 0.111.12 → 0.111.13

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 +63 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9064,6 +9064,38 @@ function up65(db) {
9064
9064
  }
9065
9065
  db.exec("CREATE INDEX IF NOT EXISTS idx_embeddings_agent_source ON embeddings(agent_id, source_type, source_id)");
9066
9066
  }
9067
+ function up66(db) {
9068
+ db.exec(`
9069
+ CREATE TABLE IF NOT EXISTS memory_search_telemetry (
9070
+ id TEXT PRIMARY KEY,
9071
+ created_at TEXT NOT NULL,
9072
+ route TEXT NOT NULL,
9073
+ agent_id TEXT NOT NULL,
9074
+ session_key TEXT,
9075
+ project TEXT,
9076
+ query TEXT NOT NULL,
9077
+ keyword_query TEXT,
9078
+ filters_json TEXT NOT NULL,
9079
+ method TEXT NOT NULL,
9080
+ result_count INTEGER NOT NULL,
9081
+ top_score REAL,
9082
+ no_hits INTEGER NOT NULL DEFAULT 0,
9083
+ duration_ms REAL NOT NULL DEFAULT 0,
9084
+ timings_json TEXT NOT NULL,
9085
+ results_json TEXT NOT NULL,
9086
+ sources_json TEXT
9087
+ );
9088
+
9089
+ CREATE INDEX IF NOT EXISTS idx_memory_search_telemetry_agent_time
9090
+ ON memory_search_telemetry(agent_id, created_at DESC);
9091
+ CREATE INDEX IF NOT EXISTS idx_memory_search_telemetry_session
9092
+ ON memory_search_telemetry(session_key) WHERE session_key IS NOT NULL;
9093
+ CREATE INDEX IF NOT EXISTS idx_memory_search_telemetry_route_time
9094
+ ON memory_search_telemetry(route, created_at DESC);
9095
+ CREATE INDEX IF NOT EXISTS idx_memory_search_telemetry_no_hits
9096
+ ON memory_search_telemetry(no_hits, created_at DESC);
9097
+ `);
9098
+ }
9067
9099
  var MIGRATIONS = [
9068
9100
  {
9069
9101
  version: 1,
@@ -9564,6 +9596,14 @@ var MIGRATIONS = [
9564
9596
  artifacts: {
9565
9597
  columns: [{ table: "embeddings", column: "agent_id", optional: true }]
9566
9598
  }
9599
+ },
9600
+ {
9601
+ version: 66,
9602
+ name: "memory-search-telemetry",
9603
+ up: up66,
9604
+ artifacts: {
9605
+ tables: ["memory_search_telemetry"]
9606
+ }
9567
9607
  }
9568
9608
  ];
9569
9609
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -10588,6 +10628,29 @@ class SignetClient extends SignetClientHelpers {
10588
10628
  limit: opts?.limit
10589
10629
  });
10590
10630
  }
10631
+ async getMemorySearchTelemetry(opts) {
10632
+ return this.transport.get("/api/telemetry/memory-search", {
10633
+ agent_id: opts?.agentId,
10634
+ session_key: opts?.sessionKey,
10635
+ route: opts?.route,
10636
+ since: opts?.since,
10637
+ until: opts?.until,
10638
+ no_hits: opts?.noHits,
10639
+ limit: opts?.limit,
10640
+ offset: opts?.offset
10641
+ });
10642
+ }
10643
+ async exportMemorySearchTelemetry(opts) {
10644
+ return this.transport.get("/api/telemetry/memory-search/export", {
10645
+ agent_id: opts?.agentId,
10646
+ session_key: opts?.sessionKey,
10647
+ route: opts?.route,
10648
+ since: opts?.since,
10649
+ until: opts?.until,
10650
+ no_hits: opts?.noHits,
10651
+ limit: opts?.limit
10652
+ });
10653
+ }
10591
10654
  async listConfig() {
10592
10655
  return this.transport.get("/api/config");
10593
10656
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/signet-memory-openclaw",
3
- "version": "0.111.12",
3
+ "version": "0.111.13",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,8 +36,8 @@
36
36
  "@sinclair/typebox": "0.34.47"
37
37
  },
38
38
  "devDependencies": {
39
- "@signet/core": "0.111.12",
40
- "@signet/sdk": "0.111.12",
39
+ "@signet/core": "0.111.13",
40
+ "@signet/sdk": "0.111.13",
41
41
  "@types/node": "^22.0.0"
42
42
  },
43
43
  "peerDependencies": {