@karmaniverous/jeeves-watcher-openclaw 0.8.0 → 0.9.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 +190 -0
- package/content/soul-section.md +91 -0
- package/content/templates/spec-to-code-guide.md +250 -0
- package/content/templates/spec.md +171 -0
- package/content/tools-platform.md +68 -0
- package/dist/cli.js +18885 -147
- package/dist/index.js +20278 -63
- package/dist/rollup.config.d.ts +6 -1
- package/dist/src/cli.d.ts +3 -2
- package/dist/src/constants.d.ts +12 -0
- package/dist/src/helpers.d.ts +10 -44
- package/dist/src/index.d.ts +1 -1
- package/dist/src/watcherTools.d.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +8 -3
- package/dist/src/cli.test.d.ts +0 -1
package/dist/rollup.config.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @module rollup.config
|
|
3
2
|
* Rollup configuration for the OpenClaw plugin package.
|
|
4
3
|
* Two entry points: plugin (ESM + declarations) and CLI (ESM executable).
|
|
4
|
+
*
|
|
5
|
+
* `@karmaniverous/jeeves` is BUNDLED into the plugin output — the plugin
|
|
6
|
+
* runs in OpenClaw's extensions directory where node_modules is not
|
|
7
|
+
* reliably available. All node: builtins are externalized.
|
|
8
|
+
*
|
|
9
|
+
* @module rollup.config
|
|
5
10
|
*/
|
|
6
11
|
import type { RollupOptions } from 'rollup';
|
|
7
12
|
declare const _default: RollupOptions[];
|
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/constants.d.ts
CHANGED
|
@@ -16,3 +16,15 @@ export declare const DEFAULT_CONFIG_ROOT = "j:/config";
|
|
|
16
16
|
export declare const DEFAULT_QDRANT_URL = "http://127.0.0.1:6333";
|
|
17
17
|
/** Timeout in milliseconds for service health probes. */
|
|
18
18
|
export declare const PROBE_TIMEOUT_MS = 1500;
|
|
19
|
+
/**
|
|
20
|
+
* Timeout in milliseconds for menu generation fetch calls.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Must be generous enough to survive watcher startup (initial scan can
|
|
24
|
+
* take 15+ minutes on large filesystems). If the fetch hangs past this
|
|
25
|
+
* timeout, the `createAsyncContentCache` `refreshing` flag is cleared
|
|
26
|
+
* and the next cycle retries. Too short = unnecessary "unreachable"
|
|
27
|
+
* messages. Too long = `refreshing` deadlock when the server genuinely
|
|
28
|
+
* hangs. 10 seconds balances both concerns.
|
|
29
|
+
*/
|
|
30
|
+
export declare const MENU_FETCH_TIMEOUT_MS = 10000;
|
package/dist/src/helpers.d.ts
CHANGED
|
@@ -1,49 +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
|
-
plugins?: {
|
|
9
|
-
entries?: Record<string, {
|
|
10
|
-
config?: Record<string, unknown>;
|
|
11
|
-
}>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Resolve a path relative to the OpenClaw workspace.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* Present on newer OpenClaw builds; optional for backwards compatibility.
|
|
19
|
-
*/
|
|
20
|
-
resolvePath?: (input: string) => string;
|
|
21
|
-
registerTool(tool: {
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
parameters: Record<string, unknown>;
|
|
25
|
-
execute: (id: string, params: Record<string, unknown>) => Promise<ToolResult>;
|
|
26
|
-
}, options?: {
|
|
27
|
-
optional?: boolean;
|
|
28
|
-
}): void;
|
|
29
|
-
}
|
|
30
|
-
/** Result shape returned by each tool execution. */
|
|
31
|
-
export interface ToolResult {
|
|
32
|
-
content: Array<{
|
|
33
|
-
type: string;
|
|
34
|
-
text: string;
|
|
35
|
-
}>;
|
|
36
|
-
isError?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/** Resolve the watcher API base URL from plugin config. */
|
|
11
|
+
import { type PluginApi } from '@karmaniverous/jeeves';
|
|
12
|
+
/** Resolve the watcher API base URL. */
|
|
39
13
|
export declare function getApiUrl(api: PluginApi): string;
|
|
40
|
-
/** Resolve the platform config root path
|
|
14
|
+
/** Resolve the platform config root path. */
|
|
41
15
|
export declare function getConfigRoot(api: PluginApi): string;
|
|
42
|
-
/** Format a successful tool result. */
|
|
43
|
-
export declare function ok(data: unknown): ToolResult;
|
|
44
|
-
/** Format a connection error with actionable guidance. */
|
|
45
|
-
export declare function connectionFail(error: unknown, baseUrl: string): ToolResult;
|
|
46
|
-
/** Fetch JSON from a URL, throwing on non-OK responses. */
|
|
47
|
-
export declare function fetchJson(url: string, init?: RequestInit): Promise<unknown>;
|
|
48
|
-
/** POST JSON to a URL and return parsed response. */
|
|
49
|
-
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;
|
|
@@ -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.9.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.9.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",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
|
+
"content",
|
|
23
24
|
"openclaw.plugin.json"
|
|
24
25
|
],
|
|
25
26
|
"publishConfig": {
|
|
@@ -56,10 +57,13 @@
|
|
|
56
57
|
"hideCredit": true
|
|
57
58
|
},
|
|
58
59
|
"dependencies": {
|
|
59
|
-
"@karmaniverous/jeeves": "^0.
|
|
60
|
+
"@karmaniverous/jeeves": "^0.2.0"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@dotenvx/dotenvx": "^1.55.1",
|
|
64
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
65
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
66
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
63
67
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
64
68
|
"auto-changelog": "^2.5.0",
|
|
65
69
|
"cross-env": "^10.1.0",
|
|
@@ -72,7 +76,8 @@
|
|
|
72
76
|
"scripts": {
|
|
73
77
|
"build:plugin": "rimraf dist && cross-env NO_COLOR=1 rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
74
78
|
"build:skills": "tsx scripts/build-skills.ts",
|
|
75
|
-
"build": "npm run build:plugin && npm run build:skills",
|
|
79
|
+
"build": "npm run build:plugin && npm run build:skills && npm run build:content",
|
|
80
|
+
"build:content": "node scripts/copy-content.mjs",
|
|
76
81
|
"changelog": "auto-changelog",
|
|
77
82
|
"lint": "eslint .",
|
|
78
83
|
"lint:fix": "eslint --fix .",
|
package/dist/src/cli.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|