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