@karmaniverous/jeeves-meta-openclaw 0.13.0 → 0.13.1
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 +8 -4
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolvePluginSetting, fetchJson, postJson, ok, connectionFail, createPluginToolset, resolveWorkspacePath, init, loadWorkspaceConfig, WORKSPACE_CONFIG_DEFAULTS, createAsyncContentCache, jeevesComponentDescriptorSchema, getPackageVersion, createComponentWriter } from '@karmaniverous/jeeves';
|
|
1
|
+
import { resolvePluginSetting, resolveOptionalPluginSetting, fetchJson, postJson, ok, connectionFail, createPluginToolset, resolveWorkspacePath, init, loadWorkspaceConfig, WORKSPACE_CONFIG_DEFAULTS, createAsyncContentCache, jeevesComponentDescriptorSchema, getPackageVersion, createComponentWriter } from '@karmaniverous/jeeves';
|
|
2
2
|
import { phaseNames, getEndpoint, META_COMPONENT } from '@karmaniverous/jeeves-meta-core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -20,7 +20,11 @@ function getServiceUrl(api) {
|
|
|
20
20
|
}
|
|
21
21
|
/** Resolve the platform config root. */
|
|
22
22
|
function getConfigRoot(api) {
|
|
23
|
-
|
|
23
|
+
const value = resolveOptionalPluginSetting(api, PLUGIN_ID, 'configRoot', 'JEEVES_CONFIG_ROOT');
|
|
24
|
+
if (!value) {
|
|
25
|
+
throw new Error('configRoot not configured — set it in plugin config or via JEEVES_CONFIG_ROOT env var');
|
|
26
|
+
}
|
|
27
|
+
return value;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
/**
|
|
@@ -110,7 +114,7 @@ async function generateMetaMenu(client) {
|
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
const parts = [];
|
|
113
|
-
for (const state of ['fresh', 'pending', 'running', 'failed']) {
|
|
117
|
+
for (const state of ['fresh', 'pending', 'running', 'stale', 'failed']) {
|
|
114
118
|
if (totals[state]) {
|
|
115
119
|
parts.push(totals[state].toString() + ' ' + state);
|
|
116
120
|
}
|
|
@@ -132,7 +136,7 @@ async function generateMetaMenu(client) {
|
|
|
132
136
|
}
|
|
133
137
|
}
|
|
134
138
|
if (failedParts.length > 0) {
|
|
135
|
-
phaseLines.push('
|
|
139
|
+
phaseLines.push('⚠ Failed: ' +
|
|
136
140
|
failedParts.slice(0, 10).join(', ') +
|
|
137
141
|
(failedParts.length > 10
|
|
138
142
|
? ' (+' + (failedParts.length - 10).toString() + ' more)'
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED