@xdarkicex/openclaw-memory-libravdb 1.4.50 → 1.4.51
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 +6 -0
- package/dist/rpc-protobuf-codecs.js +6 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38904,6 +38904,12 @@ function normalizeSearchTextResponse(bytes) {
|
|
|
38904
38904
|
if (!item.metadata || typeof item.metadata !== "object" || Array.isArray(item.metadata)) {
|
|
38905
38905
|
item.metadata = {};
|
|
38906
38906
|
}
|
|
38907
|
+
if (typeof item.text !== "string") {
|
|
38908
|
+
item.text = "";
|
|
38909
|
+
}
|
|
38910
|
+
if (typeof item.score !== "number" || !Number.isFinite(item.score)) {
|
|
38911
|
+
item.score = 0;
|
|
38912
|
+
}
|
|
38907
38913
|
}
|
|
38908
38914
|
return response;
|
|
38909
38915
|
}
|
|
@@ -20,6 +20,12 @@ function normalizeSearchTextResponse(bytes) {
|
|
|
20
20
|
if (!item.metadata || typeof item.metadata !== "object" || Array.isArray(item.metadata)) {
|
|
21
21
|
item.metadata = {};
|
|
22
22
|
}
|
|
23
|
+
if (typeof item.text !== "string") {
|
|
24
|
+
item.text = "";
|
|
25
|
+
}
|
|
26
|
+
if (typeof item.score !== "number" || !Number.isFinite(item.score)) {
|
|
27
|
+
item.score = 0;
|
|
28
|
+
}
|
|
23
29
|
}
|
|
24
30
|
return response;
|
|
25
31
|
}
|
package/openclaw.plugin.json
CHANGED