@karmaniverous/jeeves-meta-openclaw 0.12.7 → 0.13.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/dist/cli.js +22 -9
- package/dist/index.js +1 -4
- package/dist/skills/jeeves-meta/SKILL.md +5 -18
- package/dist/src/serviceClient.d.ts +0 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -10,8 +10,8 @@ import require$$4 from 'util';
|
|
|
10
10
|
import require$$5 from 'assert';
|
|
11
11
|
import require$$2 from 'events';
|
|
12
12
|
import 'vm';
|
|
13
|
+
import require$$1, { execSync } from 'node:child_process';
|
|
13
14
|
import require$$0$5 from 'node:events';
|
|
14
|
-
import require$$1 from 'node:child_process';
|
|
15
15
|
import process$2 from 'node:process';
|
|
16
16
|
import { homedir } from 'node:os';
|
|
17
17
|
import { fileURLToPath } from 'node:url';
|
|
@@ -24353,14 +24353,14 @@ const SECTION_ORDER = [
|
|
|
24353
24353
|
* Core library version, inlined at build time.
|
|
24354
24354
|
*
|
|
24355
24355
|
* @remarks
|
|
24356
|
-
* The `0.5.
|
|
24356
|
+
* The `0.5.11` placeholder is replaced by
|
|
24357
24357
|
* `@rollup/plugin-replace` during the build with the actual version
|
|
24358
24358
|
* from `package.json`. This ensures the correct version survives
|
|
24359
24359
|
* when consumers bundle core into their own dist (where runtime
|
|
24360
24360
|
* `import.meta.url`-based resolution would find the wrong package.json).
|
|
24361
24361
|
*/
|
|
24362
24362
|
/** The core library version from package.json (inlined at build time). */
|
|
24363
|
-
const CORE_VERSION = '0.5.
|
|
24363
|
+
const CORE_VERSION = '0.5.11';
|
|
24364
24364
|
|
|
24365
24365
|
/**
|
|
24366
24366
|
* Workspace and config root initialization.
|
|
@@ -25993,9 +25993,8 @@ function createPluginCli(options) {
|
|
|
25993
25993
|
const configPath = resolveConfigPath(openClawHome);
|
|
25994
25994
|
// 1. Copy dist to extensions
|
|
25995
25995
|
const extensionsDir = join(openClawHome, 'extensions', pluginId);
|
|
25996
|
-
if (!existsSync(distDir))
|
|
25997
|
-
throw new Error(`Plugin dist directory not found: ${distDir}
|
|
25998
|
-
}
|
|
25996
|
+
if (!existsSync(distDir))
|
|
25997
|
+
throw new Error(`Plugin dist directory not found: ${distDir}`);
|
|
25999
25998
|
console.log(`Copying dist to ${extensionsDir}...`);
|
|
26000
25999
|
copyDistFiles(distDir, join(extensionsDir, 'dist'));
|
|
26001
26000
|
// Copy package.json and openclaw.plugin.json from package root
|
|
@@ -26006,6 +26005,20 @@ function createPluginCli(options) {
|
|
|
26006
26005
|
}
|
|
26007
26006
|
}
|
|
26008
26007
|
console.log(' ✓ Dist files copied');
|
|
26008
|
+
// 1b. Install production dependencies
|
|
26009
|
+
console.log('Installing dependencies...');
|
|
26010
|
+
try {
|
|
26011
|
+
execSync('npm install --omit=dev', {
|
|
26012
|
+
cwd: extensionsDir,
|
|
26013
|
+
stdio: 'pipe',
|
|
26014
|
+
});
|
|
26015
|
+
}
|
|
26016
|
+
catch (err) {
|
|
26017
|
+
throw new Error(`npm install failed in ${extensionsDir}`, {
|
|
26018
|
+
cause: err,
|
|
26019
|
+
});
|
|
26020
|
+
}
|
|
26021
|
+
console.log(' ✓ Dependencies installed');
|
|
26009
26022
|
// 2. Patch openclaw.json
|
|
26010
26023
|
console.log('Patching OpenClaw config...');
|
|
26011
26024
|
const config = readJsonFile(configPath);
|
|
@@ -26051,9 +26064,9 @@ function createPluginCli(options) {
|
|
|
26051
26064
|
// 4. Write initial HEARTBEAT entry and seed jeeves skill
|
|
26052
26065
|
try {
|
|
26053
26066
|
const cfgRoot = opts.configRoot;
|
|
26054
|
-
const
|
|
26055
|
-
const
|
|
26056
|
-
const ws = opts.workspace ??
|
|
26067
|
+
const ag = config.agents;
|
|
26068
|
+
const defs = ag?.defaults;
|
|
26069
|
+
const ws = opts.workspace ?? defs?.workspace;
|
|
26057
26070
|
if (ws) {
|
|
26058
26071
|
init({ workspacePath: ws, configRoot: cfgRoot });
|
|
26059
26072
|
const heartbeatPath = join(ws, WORKSPACE_FILES.heartbeat);
|
package/dist/index.js
CHANGED
|
@@ -529,7 +529,7 @@ function buildMetaUpdateTool(client, baseUrl) {
|
|
|
529
529
|
},
|
|
530
530
|
updates: {
|
|
531
531
|
type: 'object',
|
|
532
|
-
description: 'Properties to set. Supported: _steer, _emphasis, _depth, _crossRefs, _disabled
|
|
532
|
+
description: 'Properties to set. Supported: _steer, _emphasis, _depth, _crossRefs, _disabled. Set to null to remove.',
|
|
533
533
|
properties: {
|
|
534
534
|
_steer: { type: ['string', 'null'] },
|
|
535
535
|
_emphasis: { type: ['number', 'null'] },
|
|
@@ -541,9 +541,6 @@ function buildMetaUpdateTool(client, baseUrl) {
|
|
|
541
541
|
],
|
|
542
542
|
},
|
|
543
543
|
_disabled: { type: ['boolean', 'null'] },
|
|
544
|
-
_architectTimeout: { type: ['number', 'null'] },
|
|
545
|
-
_builderTimeout: { type: ['number', 'null'] },
|
|
546
|
-
_criticTimeout: { type: ['number', 'null'] },
|
|
547
544
|
},
|
|
548
545
|
},
|
|
549
546
|
},
|
|
@@ -109,8 +109,7 @@ modify `_crossRefs` — without editing `meta.json` directly on the filesystem.
|
|
|
109
109
|
**Parameters:**
|
|
110
110
|
- `path` (required): `.meta/` or owner directory path.
|
|
111
111
|
- `updates` (required): Object with properties to set. Supported:
|
|
112
|
-
`_steer`, `_emphasis`, `_depth`, `_crossRefs`, `_disabled
|
|
113
|
-
`_architectTimeout`, `_builderTimeout`, `_criticTimeout`.
|
|
112
|
+
`_steer`, `_emphasis`, `_depth`, `_crossRefs`, `_disabled`.
|
|
114
113
|
Set a value to `null` to remove the property.
|
|
115
114
|
|
|
116
115
|
### meta_queue
|
|
@@ -146,7 +145,6 @@ compatibility.
|
|
|
146
145
|
- **Disabling a meta:** `meta_update` with path and `updates: { _disabled: true }`
|
|
147
146
|
- **Re-enabling a meta:** `meta_update` with path and `updates: { _disabled: null }`
|
|
148
147
|
- **Changing steer via API:** `meta_update` with path and `updates: { _steer: "new focus" }`
|
|
149
|
-
- **Setting per-entity timeouts:** `meta_update` with path and `updates: { _builderTimeout: 600 }`
|
|
150
148
|
- **Reading synthesis output:** Use `watcher_search` filtered by the properties
|
|
151
149
|
configured in `metaProperty` (e.g. `{ "domains": ["meta"] }` in production).
|
|
152
150
|
The default properties are `{ _meta: "current" }` for live metas and
|
|
@@ -210,9 +208,6 @@ Key settings:
|
|
|
210
208
|
| `depthWeight` | 0.5 | Exponent for depth-based scheduling (0 = pure staleness) |
|
|
211
209
|
| `maxArchive` | 20 | Max archived snapshots per meta |
|
|
212
210
|
| `maxLines` | 500 | Max lines for builder context |
|
|
213
|
-
| `architectTimeout` | 180s | Architect subprocess timeout |
|
|
214
|
-
| `builderTimeout` | 360s | Builder subprocess timeout |
|
|
215
|
-
| `criticTimeout` | 240s | Critic subprocess timeout |
|
|
216
211
|
| `skipUnchanged` | true | Skip candidates with no changes since last synthesis |
|
|
217
212
|
| `thinking` | `low` | Thinking level for spawned LLM sessions |
|
|
218
213
|
| `port` | 1938 | HTTP API listen port |
|
|
@@ -296,12 +291,12 @@ to override the defaults for that specific entity.
|
|
|
296
291
|
**Template variables:** All prompts (default, config-overridden, and per-meta)
|
|
297
292
|
are compiled as Handlebars templates at synthesis time with access to:
|
|
298
293
|
|
|
299
|
-
- `{{config.
|
|
294
|
+
- `{{config.maxLines}}`, `{{config.architectEvery}}`, etc.
|
|
300
295
|
- `{{scope.fileCount}}`, `{{scope.deltaCount}}`, `{{scope.childCount}}`, `{{scope.crossRefCount}}`
|
|
301
296
|
- `{{meta._depth}}`, `{{meta._emphasis}}`
|
|
302
297
|
|
|
303
298
|
The architect prompt can write template expressions into its `_builder` output
|
|
304
|
-
using escaped syntax (`\{{config.
|
|
299
|
+
using escaped syntax (`\{{config.maxLines}}`). These pass through the
|
|
305
300
|
architect compilation as literal `{{...}}` text and resolve when the builder
|
|
306
301
|
prompt is compiled.
|
|
307
302
|
|
|
@@ -355,14 +350,7 @@ creation. It is an array of policy rules, each with the shape:
|
|
|
355
350
|
`_crossRefs` in the seeded `meta.json`.
|
|
356
351
|
- **`parentDepth`** (optional, default 0) — walk up this many extra parent
|
|
357
352
|
levels from the matched file's directory.
|
|
358
|
-
|
|
359
|
-
the architect phase (seconds, min 30).
|
|
360
|
-
- **`builderTimeout`** (optional) — per-category timeout override for
|
|
361
|
-
the builder phase (seconds, min 30).
|
|
362
|
-
- **`criticTimeout`** (optional) — per-category timeout override for
|
|
363
|
-
the critic phase (seconds, min 30).
|
|
364
|
-
|
|
365
|
-
**Evaluation order:** Rules are processed in array order. If multiple rules
|
|
353
|
+
**Evaluation order: Rules are processed in array order. If multiple rules
|
|
366
354
|
match the same directory, the last match wins for `steer` and `crossRefs`.
|
|
367
355
|
|
|
368
356
|
**Behavior:**
|
|
@@ -666,8 +654,7 @@ progressive work is not lost on timeout — only the content update is skipped.
|
|
|
666
654
|
**Fix:**
|
|
667
655
|
1. Check if `_state` advanced (partial recovery succeeded) — subsequent
|
|
668
656
|
cycles can continue from where the builder left off
|
|
669
|
-
2.
|
|
670
|
-
`criticTimeout`)
|
|
657
|
+
2. Check the gateway's `agents.defaults.subagents.runTimeoutSeconds` setting and increase it if needed
|
|
671
658
|
3. Check if the LLM provider is slow or rate-limited
|
|
672
659
|
4. Check scope size: large scopes with many files take longer
|
|
673
660
|
|
|
@@ -72,9 +72,6 @@ export declare class MetaServiceClient {
|
|
|
72
72
|
_depth?: number | null;
|
|
73
73
|
_crossRefs?: string[] | null;
|
|
74
74
|
_disabled?: boolean | null;
|
|
75
|
-
_architectTimeout?: number | null;
|
|
76
|
-
_builderTimeout?: number | null;
|
|
77
|
-
_criticTimeout?: number | null;
|
|
78
75
|
}): Promise<unknown>;
|
|
79
76
|
/** GET /metas/:path — detail for a single meta. */
|
|
80
77
|
detail(metaPath: string, options?: {
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"url": "https://github.com/karmaniverous/jeeves-meta/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@karmaniverous/jeeves": "^0.5.
|
|
11
|
-
"@karmaniverous/jeeves-meta-core": "^0.
|
|
10
|
+
"@karmaniverous/jeeves": "^0.5.12",
|
|
11
|
+
"@karmaniverous/jeeves-meta-core": "^0.2.0"
|
|
12
12
|
},
|
|
13
13
|
"description": "OpenClaw plugin for jeeves-meta — synthesis tools and virtual rule registration",
|
|
14
14
|
"devDependencies": {
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
},
|
|
113
113
|
"type": "module",
|
|
114
114
|
"types": "dist/index.d.ts",
|
|
115
|
-
"version": "0.
|
|
115
|
+
"version": "0.13.0"
|
|
116
116
|
}
|