@xdarkicex/openclaw-memory-libravdb 1.4.54 → 1.4.55
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/dist/context-engine.js +4 -1
- package/dist/index.js +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/context-engine.js
CHANGED
|
@@ -312,7 +312,10 @@ function escapeMemoryFactText(text) {
|
|
|
312
312
|
.replaceAll("<", "<")
|
|
313
313
|
.replaceAll(">", ">")
|
|
314
314
|
.replaceAll('"', """)
|
|
315
|
-
.replaceAll("'", "'")
|
|
315
|
+
.replaceAll("'", "'")
|
|
316
|
+
.replaceAll("\r", " ")
|
|
317
|
+
.replaceAll("\n", " ")
|
|
318
|
+
.replaceAll("\t", "	");
|
|
316
319
|
}
|
|
317
320
|
function buildExactRecallFact(result, token) {
|
|
318
321
|
const factText = extractExactRecallFactText(result.text, token);
|
package/dist/index.js
CHANGED
|
@@ -33919,7 +33919,7 @@ function extractExactRecallFactText(text, token) {
|
|
|
33919
33919
|
return factSentence ?? tail.split("\n")[0]?.trim() ?? tail;
|
|
33920
33920
|
}
|
|
33921
33921
|
function escapeMemoryFactText(text) {
|
|
33922
|
-
return text.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
33922
|
+
return text.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'").replaceAll("\r", " ").replaceAll("\n", " ").replaceAll(" ", "	");
|
|
33923
33923
|
}
|
|
33924
33924
|
function buildExactRecallFact(result, token) {
|
|
33925
33925
|
const factText = extractExactRecallFactText(result.text, token);
|
package/openclaw.plugin.json
CHANGED