memory-search-plugin 1.3.10 → 1.3.11
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/index.js +6 -6
- package/index.ts +6 -6
- package/openclaw.plugin.json +4 -1
- package/package.json +5 -2
package/index.js
CHANGED
|
@@ -106,11 +106,11 @@ var index_default = definePluginEntry({
|
|
|
106
106
|
},
|
|
107
107
|
maxResults: {
|
|
108
108
|
type: "number",
|
|
109
|
-
description: "Max results (default
|
|
109
|
+
description: "Max results (default 20)"
|
|
110
110
|
},
|
|
111
111
|
minScore: {
|
|
112
112
|
type: "number",
|
|
113
|
-
description: "Min similarity score 0-1 (default 0.
|
|
113
|
+
description: "Min similarity score 0-1 (default 0.3)"
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
required: ["query"]
|
|
@@ -137,8 +137,8 @@ var index_default = definePluginEntry({
|
|
|
137
137
|
query,
|
|
138
138
|
scene: identity.scene,
|
|
139
139
|
group_id: identity.group_id,
|
|
140
|
-
limit: params.maxResults ||
|
|
141
|
-
threshold: params.minScore || 0.
|
|
140
|
+
limit: params.maxResults || 20,
|
|
141
|
+
threshold: params.minScore || 0.3
|
|
142
142
|
});
|
|
143
143
|
const text = data.results.length === 0 ? "No relevant memories found." : data.results.map((r, i) => {
|
|
144
144
|
const tag = r.memory_type === "group" && r.group_id ? `group/${r.group_id}` : r.memory_type === "knowledge" && r.kb_id ? `knowledge/${r.kb_id}` : r.memory_type;
|
|
@@ -189,7 +189,7 @@ ${r.content}`;
|
|
|
189
189
|
},
|
|
190
190
|
limit: {
|
|
191
191
|
type: "number",
|
|
192
|
-
description: "Max messages to return (default
|
|
192
|
+
description: "Max messages to return (default 20)"
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
required: ["keyword"]
|
|
@@ -216,7 +216,7 @@ ${r.content}`;
|
|
|
216
216
|
keyword,
|
|
217
217
|
scene: identity.scene,
|
|
218
218
|
group_id: identity.group_id,
|
|
219
|
-
limit: params.limit ||
|
|
219
|
+
limit: params.limit || 20
|
|
220
220
|
});
|
|
221
221
|
if (data.messages.length === 0) {
|
|
222
222
|
return {
|
package/index.ts
CHANGED
|
@@ -82,11 +82,11 @@ export default definePluginEntry({
|
|
|
82
82
|
},
|
|
83
83
|
maxResults: {
|
|
84
84
|
type: "number" as const,
|
|
85
|
-
description: "Max results (default
|
|
85
|
+
description: "Max results (default 20)",
|
|
86
86
|
},
|
|
87
87
|
minScore: {
|
|
88
88
|
type: "number" as const,
|
|
89
|
-
description: "Min similarity score 0-1 (default 0.
|
|
89
|
+
description: "Min similarity score 0-1 (default 0.3)",
|
|
90
90
|
},
|
|
91
91
|
},
|
|
92
92
|
required: ["query"],
|
|
@@ -128,8 +128,8 @@ export default definePluginEntry({
|
|
|
128
128
|
query,
|
|
129
129
|
scene: identity.scene,
|
|
130
130
|
group_id: identity.group_id,
|
|
131
|
-
limit: params.maxResults ||
|
|
132
|
-
threshold: params.minScore || 0.
|
|
131
|
+
limit: params.maxResults || 20,
|
|
132
|
+
threshold: params.minScore || 0.3,
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
const text =
|
|
@@ -194,7 +194,7 @@ export default definePluginEntry({
|
|
|
194
194
|
},
|
|
195
195
|
limit: {
|
|
196
196
|
type: "number" as const,
|
|
197
|
-
description: "Max messages to return (default
|
|
197
|
+
description: "Max messages to return (default 20)",
|
|
198
198
|
},
|
|
199
199
|
},
|
|
200
200
|
required: ["keyword"],
|
|
@@ -235,7 +235,7 @@ export default definePluginEntry({
|
|
|
235
235
|
keyword,
|
|
236
236
|
scene: identity.scene,
|
|
237
237
|
group_id: identity.group_id,
|
|
238
|
-
limit: params.limit ||
|
|
238
|
+
limit: params.limit || 20,
|
|
239
239
|
});
|
|
240
240
|
|
|
241
241
|
if (data.messages.length === 0) {
|
package/openclaw.plugin.json
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"name": "Memory Search Plugin",
|
|
4
4
|
"description": "Memory search and retrieval with owner_id-based isolation",
|
|
5
5
|
"kind": "memory",
|
|
6
|
-
"version": "1.3.
|
|
6
|
+
"version": "1.3.11",
|
|
7
|
+
"contracts": {
|
|
8
|
+
"tools": ["memory_search", "memory_get"]
|
|
9
|
+
},
|
|
7
10
|
"configSchema": {
|
|
8
11
|
"type": "object",
|
|
9
12
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memory-search-plugin",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"openclaw": {
|
|
17
17
|
"extensions": [
|
|
18
18
|
"./index.js"
|
|
19
|
-
]
|
|
19
|
+
],
|
|
20
|
+
"install": {
|
|
21
|
+
"minHostVersion": "2026.4.14"
|
|
22
|
+
}
|
|
20
23
|
}
|
|
21
24
|
}
|