fastgrc-openclaw 1.0.33 → 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 CHANGED
@@ -174,7 +174,7 @@ function startExecApprovalsServer(apiKey, policyId, baseUrl) {
174
174
  });
175
175
  server.listen(sockPath, () => {
176
176
  try {
177
- fs2.chmodSync(sockPath, 432);
177
+ fs2.chmodSync(sockPath, 438);
178
178
  } catch {
179
179
  }
180
180
  console.log(`[fastgrc] exec-approvals server listening on ${sockPath}`);
@@ -324,14 +324,13 @@ function doConfigureExecApprovals() {
324
324
  const updated = {
325
325
  ...existing,
326
326
  defaults: {
327
- security: "ask",
328
- ask: "always",
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 all webchat execs routed through FastGRC.
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 !== "ask" || defaults.askFallback !== "allow") {
486
- raw.defaults = { ...defaults, security: "ask", askFallback: "allow" };
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=ask, askFallback=allow\n");
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
@@ -151,7 +151,7 @@ function startExecApprovalsServer(apiKey, policyId, baseUrl) {
151
151
  });
152
152
  server.listen(sockPath, () => {
153
153
  try {
154
- fs2.chmodSync(sockPath, 432);
154
+ fs2.chmodSync(sockPath, 438);
155
155
  } catch {
156
156
  }
157
157
  console.log(`[fastgrc] exec-approvals server listening on ${sockPath}`);
@@ -301,14 +301,13 @@ function doConfigureExecApprovals() {
301
301
  const updated = {
302
302
  ...existing,
303
303
  defaults: {
304
- security: "ask",
305
- ask: "always",
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 all webchat execs routed through FastGRC.
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 !== "ask" || defaults.askFallback !== "allow") {
463
- raw.defaults = { ...defaults, security: "ask", askFallback: "allow" };
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=ask, askFallback=allow\n");
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/dist/plugin.js CHANGED
@@ -196,7 +196,7 @@ function startExecApprovalsServer(apiKey, policyId, baseUrl) {
196
196
  });
197
197
  server.listen(sockPath, () => {
198
198
  try {
199
- fs2.chmodSync(sockPath, 432);
199
+ fs2.chmodSync(sockPath, 438);
200
200
  } catch {
201
201
  }
202
202
  console.log(`[fastgrc] exec-approvals server listening on ${sockPath}`);
package/dist/plugin.mjs CHANGED
@@ -160,7 +160,7 @@ function startExecApprovalsServer(apiKey, policyId, baseUrl) {
160
160
  });
161
161
  server.listen(sockPath, () => {
162
162
  try {
163
- fs2.chmodSync(sockPath, 432);
163
+ fs2.chmodSync(sockPath, 438);
164
164
  } catch {
165
165
  }
166
166
  console.log(`[fastgrc] exec-approvals server listening on ${sockPath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastgrc-openclaw",
3
- "version": "1.0.33",
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",