@memtensor/memos-local-openclaw-plugin 0.3.15 → 0.3.16

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/index.ts +2 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -14,7 +14,7 @@ import { SqliteStore } from "./src/storage/sqlite";
14
14
  import { Embedder } from "./src/embedding";
15
15
  import { IngestWorker } from "./src/ingest/worker";
16
16
  import { RecallEngine } from "./src/recall/engine";
17
- import { captureMessages } from "./src/capture";
17
+ import { captureMessages, stripInboundMetadata } from "./src/capture";
18
18
  import { DEFAULTS } from "./src/types";
19
19
  import { ViewerServer } from "./src/viewer/server";
20
20
  import { SkillEvolver } from "./src/skill/evolver";
@@ -710,7 +710,7 @@ const memosLocalPlugin = {
710
710
  const tail = rawPrompt.slice(lastDoubleNewline + 2).trim();
711
711
  if (tail.length >= 2) query = tail;
712
712
  }
713
- query = query.replace(/^\[.*?\]\s*/, "");
713
+ query = stripInboundMetadata(query);
714
714
  query = query.replace(/<[^>]+>/g, "").trim();
715
715
  recallQuery = query;
716
716
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memtensor/memos-local-openclaw-plugin",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "MemOS Local memory plugin for OpenClaw — full-write, hybrid-recall, progressive retrieval",
5
5
  "type": "module",
6
6
  "main": "index.ts",