@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 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: buildVirtualRules(state.workspace),
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) => {
@@ -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",
5
+ "version": "0.3.6",
6
6
  "kind": "memory",
7
7
  "skills": [
8
8
  "dist/skills/jeeves-watcher"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-watcher-openclaw",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "OpenClaw plugin for jeeves-watcher — semantic search and metadata enrichment tools",
6
6
  "license": "BSD-3-Clause",