@karmaniverous/jeeves-watcher-openclaw 0.5.1 → 0.5.3

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
@@ -418,11 +418,11 @@ function register(api) {
418
418
  const baseUrl = getApiUrl(api);
419
419
  registerWatcherTools(api, baseUrl);
420
420
  // Register the agent:bootstrap hook if the host OpenClaw version supports it
421
- const registerHook = api.registerInternalHook;
421
+ const registerHook = api.registerHook;
422
422
  if (typeof registerHook === 'function') {
423
423
  registerHook('agent:bootstrap', async (event) => {
424
424
  await handleAgentBootstrap(event, api);
425
- });
425
+ }, { name: 'jeeves-watcher-openclaw' });
426
426
  }
427
427
  }
428
428
 
@@ -23,7 +23,11 @@ export interface PluginApi {
23
23
  * Optional internal hook registration (available on newer OpenClaw builds).
24
24
  * We keep this optional to preserve compatibility.
25
25
  */
26
- registerInternalHook?: (event: string, handler: (event: unknown) => Promise<void> | void) => void;
26
+ registerHook?: (event: string | string[], handler: (event: unknown) => Promise<void> | void, opts?: {
27
+ name?: string;
28
+ description?: string;
29
+ register?: boolean;
30
+ }) => void;
27
31
  }
28
32
  /** Result shape returned by each tool execution. */
29
33
  export interface ToolResult {
@@ -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.5.1",
5
+ "version": "0.5.3",
6
6
  "skills": [
7
7
  "dist/skills/jeeves-watcher"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-watcher-openclaw",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
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",