fullcourtdefense-cli 1.7.1 → 1.7.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.
@@ -332,7 +332,7 @@ async function hookCommand(args, config) {
332
332
  const forceEnforce = args.enforce === 'true';
333
333
  const failClosed = args.failClosed === 'true';
334
334
  const timeoutMs = Number(args.timeout) > 0 ? Number(args.timeout) : 8000;
335
- const approvalMode = args.approvalMode === 'wait' ? 'wait' : 'block';
335
+ const approvalMode = args.approvalMode === 'block' ? 'block' : 'wait';
336
336
  const approvalTimeoutMs = Number(args.approvalTimeoutMs) > 0 ? Number(args.approvalTimeoutMs) : 300000;
337
337
  const approvalPollMs = Math.max(1000, Number(args.approvalPollMs) > 0 ? Number(args.approvalPollMs) : 3000);
338
338
  const creds = (0, config_1.resolveCliCredentials)(config, {
@@ -69,6 +69,8 @@ function buildHookCommand(flag, opts) {
69
69
  cmd += ' --shadow true';
70
70
  if (opts.failClosed)
71
71
  cmd += ' --fail-closed true';
72
+ if (opts.waitForApproval)
73
+ cmd += ' --approval-mode wait';
72
74
  cmd += ` ${MANAGED_MARKER}`;
73
75
  return cmd;
74
76
  }
@@ -138,7 +140,7 @@ async function installCursorHookCommand(args, config) {
138
140
  const { hookKey, flag, failClosedDefault, timeoutSec } = EVENT_MAP[e];
139
141
  const failClosed = e === 'prompt' ? false : (args.failClosed !== undefined ? args.failClosed === 'true' : failClosedDefault);
140
142
  const entry = {
141
- command: buildHookCommand(flag, { shadow, failClosed }),
143
+ command: buildHookCommand(flag, { shadow, failClosed, waitForApproval: e !== 'prompt' }),
142
144
  timeout: timeoutSec,
143
145
  };
144
146
  if (failClosed)
package/dist/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "1.7.1"
2
+ "version": "1.7.2"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fullcourtdefense-cli",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Full Court Defense CLI — security scanning for AI agents from your terminal",
5
5
  "main": "dist/index.js",
6
6
  "bin": {