@xdarkicex/openclaw-memory-libravdb 1.6.31 → 1.6.32
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/index.js +11 -15
- package/dist/memory-provider.js +13 -12
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34754,28 +34754,24 @@ function isOpenClawMemoryFile(filePath) {
|
|
|
34754
34754
|
// src/memory-provider.ts
|
|
34755
34755
|
var MEMORY_PROMPT_HEADER = [
|
|
34756
34756
|
"## Memory",
|
|
34757
|
-
"LibraVDB persistent memory is configured.
|
|
34758
|
-
"
|
|
34757
|
+
"LibraVDB persistent memory is configured. When asked about past",
|
|
34758
|
+
"conversations, facts, preferences, decisions, or anything a user",
|
|
34759
|
+
"might have told you before \u2014 actively retrieve it.",
|
|
34759
34760
|
""
|
|
34760
34761
|
];
|
|
34761
34762
|
function buildToolGuidance(availableTools) {
|
|
34762
34763
|
if (!availableTools?.has("memory_search")) {
|
|
34763
34764
|
return [];
|
|
34764
34765
|
}
|
|
34765
|
-
|
|
34766
|
-
"
|
|
34767
|
-
"
|
|
34768
|
-
"
|
|
34769
|
-
"For earliest or oldest
|
|
34770
|
-
|
|
34771
|
-
|
|
34772
|
-
lines.push("After a `memory_search` hit, call `memory_get` when exact wording or more context is needed.");
|
|
34773
|
-
}
|
|
34774
|
-
lines.push(
|
|
34775
|
-
"Do not treat a missing `MEMORY.md` file as missing memory; LibraVDB memory is vector-backed and retrieved through the memory tools.",
|
|
34766
|
+
return [
|
|
34767
|
+
"Call `memory_search` for prior turns, remembered facts, earliest interactions,",
|
|
34768
|
+
"and channel history. Do not answer memory questions from prior transcript",
|
|
34769
|
+
"claims or stale `memory_search` results \u2014 perform a fresh search every time.",
|
|
34770
|
+
"For earliest or oldest questions, request enough results and compare timestamps.",
|
|
34771
|
+
...availableTools.has("memory_get") ? ["After a `memory_search` hit, call `memory_get` when exact wording or more context is needed."] : [],
|
|
34772
|
+
"LibraVDB memory is vector-backed and retrieved through tools, not files.",
|
|
34776
34773
|
""
|
|
34777
|
-
|
|
34778
|
-
return lines;
|
|
34774
|
+
];
|
|
34779
34775
|
}
|
|
34780
34776
|
function buildMemoryPromptSection(_getClient, _cfg) {
|
|
34781
34777
|
return function memoryPromptSection({
|
package/dist/memory-provider.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
const MEMORY_PROMPT_HEADER = [
|
|
2
2
|
"## Memory",
|
|
3
|
-
"LibraVDB persistent memory is configured.
|
|
4
|
-
"
|
|
3
|
+
"LibraVDB persistent memory is configured. When asked about past",
|
|
4
|
+
"conversations, facts, preferences, decisions, or anything a user",
|
|
5
|
+
"might have told you before — actively retrieve it.",
|
|
5
6
|
"",
|
|
6
7
|
];
|
|
7
8
|
function buildToolGuidance(availableTools) {
|
|
8
9
|
if (!availableTools?.has("memory_search")) {
|
|
9
10
|
return [];
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"For earliest or oldest
|
|
12
|
+
return [
|
|
13
|
+
"Call `memory_search` for prior turns, remembered facts, earliest interactions,",
|
|
14
|
+
"and channel history. Do not answer memory questions from prior transcript",
|
|
15
|
+
"claims or stale `memory_search` results — perform a fresh search every time.",
|
|
16
|
+
"For earliest or oldest questions, request enough results and compare timestamps.",
|
|
17
|
+
...(availableTools.has("memory_get")
|
|
18
|
+
? ["After a `memory_search` hit, call `memory_get` when exact wording or more context is needed."]
|
|
19
|
+
: []),
|
|
20
|
+
"LibraVDB memory is vector-backed and retrieved through tools, not files.",
|
|
21
|
+
"",
|
|
16
22
|
];
|
|
17
|
-
if (availableTools.has("memory_get")) {
|
|
18
|
-
lines.push("After a `memory_search` hit, call `memory_get` when exact wording or more context is needed.");
|
|
19
|
-
}
|
|
20
|
-
lines.push("Do not treat a missing `MEMORY.md` file as missing memory; LibraVDB memory is vector-backed and retrieved through the memory tools.", "");
|
|
21
|
-
return lines;
|
|
22
23
|
}
|
|
23
24
|
export function buildMemoryPromptSection(_getClient, _cfg) {
|
|
24
25
|
return function memoryPromptSection({ availableTools, citationsMode: _citationsMode, }) {
|
package/openclaw.plugin.json
CHANGED