@karmaniverous/jeeves-watcher-openclaw 0.3.0 → 0.3.2
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/cli.js +16 -0
- package/dist/index.js +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -105,6 +105,22 @@ function patchConfig(config, mode) {
|
|
|
105
105
|
Reflect.deleteProperty(entries, PLUGIN_ID);
|
|
106
106
|
messages.push(`Removed "${PLUGIN_ID}" from plugins.entries`);
|
|
107
107
|
}
|
|
108
|
+
// plugins.slots — claim or release the memory slot
|
|
109
|
+
if (!plugins.slots || typeof plugins.slots !== 'object') {
|
|
110
|
+
plugins.slots = {};
|
|
111
|
+
}
|
|
112
|
+
const slots = plugins.slots;
|
|
113
|
+
if (mode === 'add') {
|
|
114
|
+
const prev = slots.memory;
|
|
115
|
+
slots.memory = PLUGIN_ID;
|
|
116
|
+
if (prev !== PLUGIN_ID) {
|
|
117
|
+
messages.push(`Set plugins.slots.memory to "${PLUGIN_ID}"${prev ? ` (was "${prev}")` : ''}`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else if (slots.memory === PLUGIN_ID) {
|
|
121
|
+
slots.memory = 'memory-core';
|
|
122
|
+
messages.push(`Reverted plugins.slots.memory to "memory-core"`);
|
|
123
|
+
}
|
|
108
124
|
// tools.allow
|
|
109
125
|
const tools = (config.tools ?? {});
|
|
110
126
|
const toolAllow = patchAllowList(tools, 'allow', 'tools.allow', mode);
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ function getWorkspacePath(api) {
|
|
|
28
28
|
}
|
|
29
29
|
/** Resolve the watcher API base URL from plugin config. */
|
|
30
30
|
function getApiUrl(api) {
|
|
31
|
-
const url = api.config?.plugins?.entries?.['jeeves-watcher']?.config?.apiUrl;
|
|
31
|
+
const url = api.config?.plugins?.entries?.['jeeves-watcher-openclaw']?.config?.apiUrl;
|
|
32
32
|
return typeof url === 'string' ? url : DEFAULT_API_URL;
|
|
33
33
|
}
|
|
34
34
|
/** Format a successful tool result. */
|
|
@@ -60,7 +60,7 @@ function connectionFail(error, baseUrl) {
|
|
|
60
60
|
text: [
|
|
61
61
|
`Watcher service not reachable at ${baseUrl}.`,
|
|
62
62
|
'Either start the watcher service, or if it runs on a different port,',
|
|
63
|
-
'set plugins.entries.jeeves-watcher.config.apiUrl in openclaw.json.',
|
|
63
|
+
'set plugins.entries.jeeves-watcher-openclaw.config.apiUrl in openclaw.json.',
|
|
64
64
|
].join('\n'),
|
|
65
65
|
},
|
|
66
66
|
],
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "jeeves-watcher-openclaw",
|
|
3
3
|
"name": "Jeeves Watcher",
|
|
4
4
|
"description": "Semantic search, metadata enrichment, and instance administration for a jeeves-watcher deployment.",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.2",
|
|
6
6
|
"kind": "memory",
|
|
7
7
|
"skills": [
|
|
8
8
|
"dist/skills/jeeves-watcher"
|
package/package.json
CHANGED