@pentatonic-ai/openclaw-memory-plugin 0.5.3 → 0.5.5
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 +7 -5
- package/openclaw.plugin.json +5 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -55,12 +55,13 @@ async function localSearch(baseUrl, query, limit = 5, minScore = 0.3) {
|
|
|
55
55
|
body: JSON.stringify({ query, limit, min_score: minScore }),
|
|
56
56
|
signal: AbortSignal.timeout(5000),
|
|
57
57
|
});
|
|
58
|
-
if (!res.ok) { stats.backendReachable = false; return []; }
|
|
58
|
+
if (!res.ok) { stats.backendReachable = false; console.error(`[pentatonic-memory] search HTTP ${res.status}`); return []; }
|
|
59
59
|
stats.backendReachable = true;
|
|
60
60
|
const data = await res.json();
|
|
61
61
|
return data.results || [];
|
|
62
|
-
} catch {
|
|
62
|
+
} catch (err) {
|
|
63
63
|
stats.backendReachable = false;
|
|
64
|
+
console.error(`[pentatonic-memory] search fetch error: ${err.message}`);
|
|
64
65
|
return [];
|
|
65
66
|
}
|
|
66
67
|
}
|
|
@@ -73,11 +74,12 @@ async function localStore(baseUrl, content, metadata = {}) {
|
|
|
73
74
|
body: JSON.stringify({ content, metadata }),
|
|
74
75
|
signal: AbortSignal.timeout(10000),
|
|
75
76
|
});
|
|
76
|
-
if (!res.ok) { stats.backendReachable = false; return null; }
|
|
77
|
+
if (!res.ok) { stats.backendReachable = false; console.error(`[pentatonic-memory] store HTTP ${res.status}`); return null; }
|
|
77
78
|
stats.backendReachable = true;
|
|
78
79
|
return res.json();
|
|
79
|
-
} catch {
|
|
80
|
+
} catch (err) {
|
|
80
81
|
stats.backendReachable = false;
|
|
82
|
+
console.error(`[pentatonic-memory] store fetch error: ${err.message}`);
|
|
81
83
|
return null;
|
|
82
84
|
}
|
|
83
85
|
}
|
|
@@ -264,7 +266,7 @@ export default {
|
|
|
264
266
|
kind: "context-engine",
|
|
265
267
|
|
|
266
268
|
register(api) {
|
|
267
|
-
const config = api.config || {};
|
|
269
|
+
const config = api.pluginConfig || api.config?.plugins?.entries?.["pentatonic-memory"]?.config || api.config || {};
|
|
268
270
|
const hosted = !!(config.tes_endpoint && config.tes_api_key);
|
|
269
271
|
const baseUrl = config.memory_url || "http://localhost:3333";
|
|
270
272
|
const searchLimit = config.search_limit || 5;
|
package/openclaw.plugin.json
CHANGED
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"default": "local",
|
|
15
15
|
"description": "Local (Docker + Ollama) or hosted (Pentatonic TES)"
|
|
16
16
|
},
|
|
17
|
+
"memory_url": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": "http://localhost:3333",
|
|
20
|
+
"description": "Memory server HTTP URL (local mode, default: http://localhost:3333)"
|
|
21
|
+
},
|
|
17
22
|
"database_url": {
|
|
18
23
|
"type": "string",
|
|
19
24
|
"description": "PostgreSQL connection string (local mode)"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pentatonic-ai/openclaw-memory-plugin",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "Pentatonic Memory plugin for OpenClaw — persistent, searchable memory with multi-signal retrieval and HyDE query expansion",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|