@karmaniverous/jeeves-meta-openclaw 0.9.2 → 0.9.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 +15 -8
- package/dist/src/serviceClient.d.ts +25 -11
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18279,20 +18279,22 @@ async function generateMetaMenu(client) {
|
|
|
18279
18279
|
')'
|
|
18280
18280
|
: 'n/a';
|
|
18281
18281
|
// Service status + dependency health
|
|
18282
|
+
// The core SDK's createStatusHandler nests getHealth() under `health`.
|
|
18283
|
+
const { dependencies } = status.health;
|
|
18282
18284
|
const depLines = [];
|
|
18283
|
-
if (
|
|
18285
|
+
if (dependencies.watcher.status === 'indexing') {
|
|
18284
18286
|
depLines.push('> ⏳ **Watcher indexing**: Initial filesystem scan in progress. Synthesis will resume when complete.');
|
|
18285
18287
|
}
|
|
18286
|
-
else if (
|
|
18287
|
-
|
|
18288
|
-
depLines.push('> ⚠️ **Watcher**: ' +
|
|
18288
|
+
else if (dependencies.watcher.status !== 'ok' &&
|
|
18289
|
+
dependencies.watcher.status !== 'indexing') {
|
|
18290
|
+
depLines.push('> ⚠️ **Watcher**: ' + dependencies.watcher.status);
|
|
18289
18291
|
}
|
|
18290
|
-
if (
|
|
18291
|
-
|
|
18292
|
+
if (dependencies.watcher.rulesRegistered === false &&
|
|
18293
|
+
dependencies.watcher.status === 'ok') {
|
|
18292
18294
|
depLines.push('> ⚠️ **Watcher rules not registered**: Meta files may not render properly in search/server.');
|
|
18293
18295
|
}
|
|
18294
|
-
if (
|
|
18295
|
-
depLines.push('> ⚠️ **Gateway**: ' +
|
|
18296
|
+
if (dependencies.gateway.status !== 'ok') {
|
|
18297
|
+
depLines.push('> ⚠️ **Gateway**: ' + dependencies.gateway.status);
|
|
18296
18298
|
}
|
|
18297
18299
|
return [
|
|
18298
18300
|
'The jeeves-meta synthesis engine manages ' +
|
|
@@ -18718,6 +18720,11 @@ function register(api) {
|
|
|
18718
18720
|
'-c',
|
|
18719
18721
|
configPath,
|
|
18720
18722
|
],
|
|
18723
|
+
// Plugin-side descriptor is only used by ComponentWriter for managed
|
|
18724
|
+
// content. The real run callback lives in the service descriptor.
|
|
18725
|
+
run: () => {
|
|
18726
|
+
return Promise.reject(new Error('run() is not available on the plugin-side descriptor'));
|
|
18727
|
+
},
|
|
18721
18728
|
sectionId: 'Meta',
|
|
18722
18729
|
refreshIntervalSeconds: 73,
|
|
18723
18730
|
generateToolsContent: getContent,
|
|
@@ -7,24 +7,38 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module serviceClient
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
10
|
+
/** Watcher dependency health within the status response. */
|
|
11
|
+
export interface WatcherDepHealth {
|
|
12
|
+
status: string;
|
|
13
|
+
rulesRegistered?: boolean;
|
|
14
|
+
indexing?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Gateway dependency health within the status response. */
|
|
17
|
+
export interface GatewayDepHealth {
|
|
18
|
+
status: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Service status response from GET /status.
|
|
22
|
+
*
|
|
23
|
+
* The jeeves-core `createStatusHandler` wraps `getHealth()` output under
|
|
24
|
+
* a top-level `health` key. Dependency info lives at `health.dependencies`.
|
|
25
|
+
*/
|
|
11
26
|
export interface StatusResponse {
|
|
27
|
+
/** Service name. */
|
|
28
|
+
name: string;
|
|
12
29
|
/** Service uptime in seconds. */
|
|
13
30
|
uptime: number;
|
|
14
|
-
/**
|
|
31
|
+
/** Overall status (healthy, degraded, unhealthy). */
|
|
15
32
|
status: string;
|
|
16
33
|
/** Service version. */
|
|
17
34
|
version?: string;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
indexing?: boolean;
|
|
24
|
-
};
|
|
25
|
-
gateway: {
|
|
26
|
-
status: string;
|
|
35
|
+
/** Component-specific health details from getHealth(). */
|
|
36
|
+
health: {
|
|
37
|
+
dependencies: {
|
|
38
|
+
watcher: WatcherDepHealth;
|
|
39
|
+
gateway: GatewayDepHealth;
|
|
27
40
|
};
|
|
41
|
+
[key: string]: unknown;
|
|
28
42
|
};
|
|
29
43
|
}
|
|
30
44
|
/** Summary block in the metas response. */
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED