openclaw-safeclaw-plugin 0.8.1 → 0.8.2
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/cli.tsx +6 -1
- package/dist/cli.js +7 -1
- package/package.json +1 -1
package/cli.tsx
CHANGED
|
@@ -249,7 +249,12 @@ if (command === 'connect') {
|
|
|
249
249
|
} else if (res.status === 401 || res.status === 403) {
|
|
250
250
|
console.log('[ok] Service evaluate: responding (auth required)');
|
|
251
251
|
} else {
|
|
252
|
-
|
|
252
|
+
let detail = '';
|
|
253
|
+
try {
|
|
254
|
+
const body = await res.json() as Record<string, unknown>;
|
|
255
|
+
detail = ` — ${body.detail ?? body.error ?? JSON.stringify(body)}`;
|
|
256
|
+
} catch { /* ignore */ }
|
|
257
|
+
console.log(`[!!] Service evaluate: HTTP ${res.status}${detail}`);
|
|
253
258
|
allOk = false;
|
|
254
259
|
}
|
|
255
260
|
} catch (e) {
|
package/dist/cli.js
CHANGED
|
@@ -242,7 +242,13 @@ else if (command === 'status') {
|
|
|
242
242
|
console.log('[ok] Service evaluate: responding (auth required)');
|
|
243
243
|
}
|
|
244
244
|
else {
|
|
245
|
-
|
|
245
|
+
let detail = '';
|
|
246
|
+
try {
|
|
247
|
+
const body = await res.json();
|
|
248
|
+
detail = ` — ${body.detail ?? body.error ?? JSON.stringify(body)}`;
|
|
249
|
+
}
|
|
250
|
+
catch { /* ignore */ }
|
|
251
|
+
console.log(`[!!] Service evaluate: HTTP ${res.status}${detail}`);
|
|
246
252
|
allOk = false;
|
|
247
253
|
}
|
|
248
254
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-safeclaw-plugin",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "SafeClaw Neurosymbolic Governance plugin for OpenClaw — validates AI agent actions against OWL ontologies and SHACL constraints",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|