@xdarkicex/openclaw-memory-libravdb 1.9.10-beta.13 → 1.9.10-beta.14
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 +3 -3
- package/dist/index.js +1 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/context-engine.js
CHANGED
|
@@ -1392,9 +1392,9 @@ export function buildContextEngineFactory(runtime, cfg, logger = console) {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
function cleanPredictionText(text) {
|
|
1394
1394
|
// Strip the [OpenClaw context: key=value; ...] routing prefix line.
|
|
1395
|
-
|
|
1396
|
-
//
|
|
1397
|
-
return
|
|
1395
|
+
// Keep the timestamp/sender envelope — LLMs recognize it as conversation
|
|
1396
|
+
// history format and use it to understand message context.
|
|
1397
|
+
return text.replace(OPENCLAW_CONTEXT_PREFIX_RE, "").trimStart();
|
|
1398
1398
|
}
|
|
1399
1399
|
function formatRetrievedMemory(predictions) {
|
|
1400
1400
|
if (!predictions?.length)
|
package/dist/index.js
CHANGED
|
@@ -36635,8 +36635,7 @@ function buildContextEngineFactory(runtime, cfg, logger = console) {
|
|
|
36635
36635
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
36636
36636
|
}
|
|
36637
36637
|
function cleanPredictionText(text) {
|
|
36638
|
-
|
|
36639
|
-
return stripOpenClawUntrustedMetadataEnvelope(stripped);
|
|
36638
|
+
return text.replace(OPENCLAW_CONTEXT_PREFIX_RE, "").trimStart();
|
|
36640
36639
|
}
|
|
36641
36640
|
function formatRetrievedMemory(predictions) {
|
|
36642
36641
|
if (!predictions?.length) return "";
|
package/openclaw.plugin.json
CHANGED