@xdarkicex/openclaw-memory-libravdb 1.9.10-beta.4 → 1.9.10-beta.6
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 +2 -1
- package/dist/index.js +2 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/context-engine.js
CHANGED
|
@@ -18,6 +18,7 @@ const AFTER_TURN_INGEST_MAX_TOKENS = 2048;
|
|
|
18
18
|
const OPENCLAW_LEADING_TIMESTAMP_PREFIX_RE = /^\[[A-Za-z]{3} \d{4}-\d{2}-\d{2} \d{2}:\d{2}[^\]]*\] */;
|
|
19
19
|
const OPENCLAW_METADATA_HEADERS = [
|
|
20
20
|
"Conversation info (untrusted metadata):",
|
|
21
|
+
"Conversation context (untrusted, chronological, selected for current message):",
|
|
21
22
|
"Sender (untrusted metadata):",
|
|
22
23
|
"Thread starter (untrusted, for context):",
|
|
23
24
|
"Reply target of current user message (untrusted, for context):",
|
|
@@ -1770,7 +1771,7 @@ export function buildContextEngineFactory(runtime, cfg, logger = console) {
|
|
|
1770
1771
|
btLog(`BeforeTurnKernel skipped: non-interactive trigger sessionId=${sessionId}`);
|
|
1771
1772
|
}
|
|
1772
1773
|
else {
|
|
1773
|
-
beforeTurnQueryHint = extractQueryHint(messages, (text) => typeof text === "string" ? text
|
|
1774
|
+
beforeTurnQueryHint = extractQueryHint(messages, (text) => typeof text === "string" ? stripOpenClawUntrustedMetadataEnvelope(text).trim() : text);
|
|
1774
1775
|
if (!beforeTurnQueryHint) {
|
|
1775
1776
|
btLog(`BeforeTurnKernel skipped: no query hint extracted sessionId=${sessionId}`);
|
|
1776
1777
|
}
|
package/dist/index.js
CHANGED
|
@@ -35493,6 +35493,7 @@ var AFTER_TURN_INGEST_MAX_TOKENS = 2048;
|
|
|
35493
35493
|
var OPENCLAW_LEADING_TIMESTAMP_PREFIX_RE = /^\[[A-Za-z]{3} \d{4}-\d{2}-\d{2} \d{2}:\d{2}[^\]]*\] */;
|
|
35494
35494
|
var OPENCLAW_METADATA_HEADERS = [
|
|
35495
35495
|
"Conversation info (untrusted metadata):",
|
|
35496
|
+
"Conversation context (untrusted, chronological, selected for current message):",
|
|
35496
35497
|
"Sender (untrusted metadata):",
|
|
35497
35498
|
"Thread starter (untrusted, for context):",
|
|
35498
35499
|
"Reply target of current user message (untrusted, for context):",
|
|
@@ -36997,7 +36998,7 @@ function buildContextEngineFactory(runtime, cfg, logger = console) {
|
|
|
36997
36998
|
} else {
|
|
36998
36999
|
beforeTurnQueryHint = extractQueryHint(
|
|
36999
37000
|
messages,
|
|
37000
|
-
(text) => typeof text === "string" ? text
|
|
37001
|
+
(text) => typeof text === "string" ? stripOpenClawUntrustedMetadataEnvelope(text).trim() : text
|
|
37001
37002
|
);
|
|
37002
37003
|
if (!beforeTurnQueryHint) {
|
|
37003
37004
|
btLog(`BeforeTurnKernel skipped: no query hint extracted sessionId=${sessionId}`);
|
package/openclaw.plugin.json
CHANGED