fastgrc-openclaw 1.0.34 → 1.0.35
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/bin.js +6 -7
- package/dist/bin.mjs +6 -7
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -324,14 +324,13 @@ function doConfigureExecApprovals() {
|
|
|
324
324
|
const updated = {
|
|
325
325
|
...existing,
|
|
326
326
|
defaults: {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
askFallback: "allow",
|
|
327
|
+
...existing.defaults ?? {},
|
|
328
|
+
security: "allow",
|
|
330
329
|
autoAllowSkills: false
|
|
331
330
|
}
|
|
332
331
|
};
|
|
333
332
|
fs3.writeFileSync(cfgPath, JSON.stringify(updated, null, 2), "utf8");
|
|
334
|
-
process.stdout.write(`\u2713 exec-approvals.json configured \u2014
|
|
333
|
+
process.stdout.write(`\u2713 exec-approvals.json configured \u2014 FastGRC plugin handles webchat exec policy enforcement.
|
|
335
334
|
`);
|
|
336
335
|
}
|
|
337
336
|
var [, , cmd, arg] = process.argv;
|
|
@@ -482,10 +481,10 @@ if (cmd === "serve-approvals") {
|
|
|
482
481
|
const cfgPath = path3.join(os3.homedir(), ".openclaw", "exec-approvals.json");
|
|
483
482
|
const raw = JSON.parse(fs3.readFileSync(cfgPath, "utf8"));
|
|
484
483
|
const defaults = raw.defaults ?? {};
|
|
485
|
-
if (defaults.security !== "
|
|
486
|
-
raw.defaults = { ...defaults, security: "
|
|
484
|
+
if (defaults.security !== "allow") {
|
|
485
|
+
raw.defaults = { ...defaults, security: "allow" };
|
|
487
486
|
fs3.writeFileSync(cfgPath, JSON.stringify(raw, null, 2), "utf8");
|
|
488
|
-
process.stdout.write("[fastgrc] exec-approvals defaults patched: security=
|
|
487
|
+
process.stdout.write("[fastgrc] exec-approvals defaults patched: security=allow (FastGRC plugin handles policy enforcement)\n");
|
|
489
488
|
}
|
|
490
489
|
} catch {
|
|
491
490
|
}
|
package/dist/bin.mjs
CHANGED
|
@@ -301,14 +301,13 @@ function doConfigureExecApprovals() {
|
|
|
301
301
|
const updated = {
|
|
302
302
|
...existing,
|
|
303
303
|
defaults: {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
askFallback: "allow",
|
|
304
|
+
...existing.defaults ?? {},
|
|
305
|
+
security: "allow",
|
|
307
306
|
autoAllowSkills: false
|
|
308
307
|
}
|
|
309
308
|
};
|
|
310
309
|
fs3.writeFileSync(cfgPath, JSON.stringify(updated, null, 2), "utf8");
|
|
311
|
-
process.stdout.write(`\u2713 exec-approvals.json configured \u2014
|
|
310
|
+
process.stdout.write(`\u2713 exec-approvals.json configured \u2014 FastGRC plugin handles webchat exec policy enforcement.
|
|
312
311
|
`);
|
|
313
312
|
}
|
|
314
313
|
var [, , cmd, arg] = process.argv;
|
|
@@ -459,10 +458,10 @@ if (cmd === "serve-approvals") {
|
|
|
459
458
|
const cfgPath = path3.join(os3.homedir(), ".openclaw", "exec-approvals.json");
|
|
460
459
|
const raw = JSON.parse(fs3.readFileSync(cfgPath, "utf8"));
|
|
461
460
|
const defaults = raw.defaults ?? {};
|
|
462
|
-
if (defaults.security !== "
|
|
463
|
-
raw.defaults = { ...defaults, security: "
|
|
461
|
+
if (defaults.security !== "allow") {
|
|
462
|
+
raw.defaults = { ...defaults, security: "allow" };
|
|
464
463
|
fs3.writeFileSync(cfgPath, JSON.stringify(raw, null, 2), "utf8");
|
|
465
|
-
process.stdout.write("[fastgrc] exec-approvals defaults patched: security=
|
|
464
|
+
process.stdout.write("[fastgrc] exec-approvals defaults patched: security=allow (FastGRC plugin handles policy enforcement)\n");
|
|
466
465
|
}
|
|
467
466
|
} catch {
|
|
468
467
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastgrc-openclaw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"description": "FastGRC agent compliance plugin for OpenClaw — evaluates every tool call against your policy before it executes",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|