@tensakulabs/openclaw-mem0 1.0.3 → 1.0.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tensakulabs/openclaw-mem0",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "description": "Long-term memory plugin for OpenClaw agents, powered by Mem0",
6
6
  "license": "Apache-2.0",
@@ -2606,6 +2606,7 @@ function getUpdateMemoryMessages(retrievedOldMemory, newRetrievedFacts) {
2606
2606
  Do not return anything except the JSON format.`;
2607
2607
  }
2608
2608
  function removeCodeBlocks(text) {
2609
+ if (typeof text !== "string") return String(text ?? "");
2609
2610
  return text.replace(/```[^`]*```/g, "");
2610
2611
  }
2611
2612