@karmaniverous/jeeves-watcher-openclaw 0.3.5 → 0.3.6
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 +17 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -180,10 +180,26 @@ function createMemoryTools(api, baseUrl) {
|
|
|
180
180
|
body: JSON.stringify({ source: PLUGIN_SOURCE }),
|
|
181
181
|
});
|
|
182
182
|
// Register virtual rules
|
|
183
|
+
const virtualRules = buildVirtualRules(state.workspace);
|
|
183
184
|
await postJson(`${state.baseUrl}/rules/register`, {
|
|
184
185
|
source: PLUGIN_SOURCE,
|
|
185
|
-
rules:
|
|
186
|
+
rules: virtualRules,
|
|
186
187
|
});
|
|
188
|
+
// Re-apply rules to already-indexed files matching virtual rule globs
|
|
189
|
+
const globs = virtualRules
|
|
190
|
+
.map((r) => {
|
|
191
|
+
const path = r.match.properties.file.properties.path;
|
|
192
|
+
return typeof path.glob === 'string' ? path.glob : undefined;
|
|
193
|
+
})
|
|
194
|
+
.filter((g) => g !== undefined);
|
|
195
|
+
if (globs.length > 0) {
|
|
196
|
+
try {
|
|
197
|
+
await postJson(`${state.baseUrl}/rules/reapply`, { globs });
|
|
198
|
+
}
|
|
199
|
+
catch {
|
|
200
|
+
// Non-fatal: files will get correct rules on next change
|
|
201
|
+
}
|
|
202
|
+
}
|
|
187
203
|
state.initialized = true;
|
|
188
204
|
}
|
|
189
205
|
const memorySearch = async (_id, params) => {
|
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.6",
|
|
6
6
|
"kind": "memory",
|
|
7
7
|
"skills": [
|
|
8
8
|
"dist/skills/jeeves-watcher"
|
package/package.json
CHANGED