@karmaniverous/jeeves-watcher-openclaw 0.8.1 → 0.10.0
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/content/agents-section.md +5 -1
- package/content/soul-section.md +8 -0
- package/content/templates/spec.md +6 -0
- package/content/tools-platform.md +5 -15
- package/dist/cli.js +1664 -8950
- package/dist/index.js +1836 -9201
- package/dist/src/cli.d.ts +3 -2
- package/dist/src/helpers.d.ts +10 -49
- package/dist/src/index.d.ts +1 -1
- package/dist/src/promptInjection.d.ts +6 -2
- package/dist/src/watcherTools.d.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
- package/dist/src/cli.test.d.ts +0 -1
package/dist/src/cli.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* - OPENCLAW_CONFIG env var (path to openclaw.json)
|
|
13
13
|
* - OPENCLAW_HOME env var (path to .openclaw directory)
|
|
14
14
|
* - Default: ~/.openclaw/openclaw.json
|
|
15
|
+
*
|
|
16
|
+
* @module cli
|
|
15
17
|
*/
|
|
16
|
-
|
|
17
|
-
export declare function patchConfig(config: Record<string, unknown>, mode: 'add' | 'remove'): string[];
|
|
18
|
+
export {};
|
package/dist/src/helpers.d.ts
CHANGED
|
@@ -1,54 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Watcher-specific convenience wrappers over `@karmaniverous/jeeves` core SDK.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Only watcher-specific resolution logic lives here. Core SDK types and
|
|
6
|
+
* utilities (`PluginApi`, `ToolResult`, `ok`, `connectionFail`, `fetchJson`,
|
|
7
|
+
* `postJson`) should be imported directly from `@karmaniverous/jeeves`.
|
|
8
|
+
*
|
|
2
9
|
* @module plugin/helpers
|
|
3
|
-
* Shared types and utility functions for the OpenClaw plugin tool registrations.
|
|
4
10
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
config?: {
|
|
8
|
-
agents?: {
|
|
9
|
-
defaults?: {
|
|
10
|
-
workspace?: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
plugins?: {
|
|
14
|
-
entries?: Record<string, {
|
|
15
|
-
config?: Record<string, unknown>;
|
|
16
|
-
}>;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Resolve a path relative to the OpenClaw workspace.
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Present on newer OpenClaw builds; optional for backwards compatibility.
|
|
24
|
-
*/
|
|
25
|
-
resolvePath?: (input: string) => string;
|
|
26
|
-
registerTool(tool: {
|
|
27
|
-
name: string;
|
|
28
|
-
description: string;
|
|
29
|
-
parameters: Record<string, unknown>;
|
|
30
|
-
execute: (id: string, params: Record<string, unknown>) => Promise<ToolResult>;
|
|
31
|
-
}, options?: {
|
|
32
|
-
optional?: boolean;
|
|
33
|
-
}): void;
|
|
34
|
-
}
|
|
35
|
-
/** Result shape returned by each tool execution. */
|
|
36
|
-
export interface ToolResult {
|
|
37
|
-
content: Array<{
|
|
38
|
-
type: string;
|
|
39
|
-
text: string;
|
|
40
|
-
}>;
|
|
41
|
-
isError?: boolean;
|
|
42
|
-
}
|
|
43
|
-
/** Resolve the watcher API base URL from plugin config. */
|
|
11
|
+
import { type PluginApi } from '@karmaniverous/jeeves';
|
|
12
|
+
/** Resolve the watcher API base URL. */
|
|
44
13
|
export declare function getApiUrl(api: PluginApi): string;
|
|
45
|
-
/** Resolve the platform config root path
|
|
14
|
+
/** Resolve the platform config root path. */
|
|
46
15
|
export declare function getConfigRoot(api: PluginApi): string;
|
|
47
|
-
/** Format a successful tool result. */
|
|
48
|
-
export declare function ok(data: unknown): ToolResult;
|
|
49
|
-
/** Format a connection error with actionable guidance. */
|
|
50
|
-
export declare function connectionFail(error: unknown, baseUrl: string): ToolResult;
|
|
51
|
-
/** Fetch JSON from a URL, throwing on non-OK responses. */
|
|
52
|
-
export declare function fetchJson(url: string, init?: RequestInit): Promise<unknown>;
|
|
53
|
-
/** POST JSON to a URL and return parsed response. */
|
|
54
|
-
export declare function postJson(url: string, body: unknown): Promise<unknown>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* OpenClaw plugin entry point. Registers all jeeves-watcher tools and starts
|
|
4
4
|
* the managed content writer via `@karmaniverous/jeeves` core.
|
|
5
5
|
*/
|
|
6
|
-
import type { PluginApi } from '
|
|
6
|
+
import type { PluginApi } from '@karmaniverous/jeeves';
|
|
7
7
|
/** Register all jeeves-watcher tools with the OpenClaw plugin API. */
|
|
8
8
|
export default function register(api: PluginApi): void;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Fetches
|
|
3
|
-
*
|
|
2
|
+
* Fetches minimal operational context from the watcher API and generates a
|
|
3
|
+
* compact Markdown string suitable for injection into TOOLS.md.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* We intentionally do NOT embed catalogues (rules, watched paths, ignored
|
|
7
|
+
* paths). Those are available live via `watcher_config` on demand.
|
|
4
8
|
*/
|
|
5
9
|
export declare function generateWatcherMenu(apiUrl: string): Promise<string>;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* @module plugin/watcherTools
|
|
3
3
|
* Watcher tool registrations (watcher_* tools) for the OpenClaw plugin.
|
|
4
4
|
*/
|
|
5
|
-
import { type PluginApi } from '
|
|
5
|
+
import { type PluginApi } from '@karmaniverous/jeeves';
|
|
6
6
|
/** Register all 9 watcher_* tools with the OpenClaw plugin API. */
|
|
7
7
|
export declare function registerWatcherTools(api: PluginApi, baseUrl: string): void;
|
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.
|
|
5
|
+
"version": "0.10.0",
|
|
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.
|
|
3
|
+
"version": "0.10.0",
|
|
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",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"hideCredit": true
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@karmaniverous/jeeves": "^0.
|
|
60
|
+
"@karmaniverous/jeeves": "^0.3.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@dotenvx/dotenvx": "^1.55.1",
|
package/dist/src/cli.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|