fullcourtdefense-cli 1.1.1 → 1.1.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.
@@ -243,7 +243,10 @@ async function hookCommand(args, config) {
243
243
  if (agentMsg)
244
244
  decision.agent_message = agentMsg;
245
245
  process.stdout.write(JSON.stringify(decision));
246
- process.exit(blocked ? 2 : 0);
246
+ // ALWAYS exit 0 so Cursor uses our JSON verdict. Exit 2 is interpreted as
247
+ // `permission: "deny"`, which beforeSubmitPrompt ignores (it uses `continue`),
248
+ // so exiting 2 would silently let blocked prompts through.
249
+ process.exit(0);
247
250
  };
248
251
  // Nothing to scan, or no Shield configured → allow (fail-open by design here:
249
252
  // a misconfigured machine must not brick the developer's IDE).
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ const configure_1 = require("./commands/configure");
10
10
  const discover_1 = require("./commands/discover");
11
11
  const hook_1 = require("./commands/hook");
12
12
  const installCursorHook_1 = require("./commands/installCursorHook");
13
- const VERSION = '1.1.1';
13
+ const VERSION = '1.1.2';
14
14
  function parseArgs(argv) {
15
15
  const flags = {};
16
16
  let command = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fullcourtdefense-cli",
3
- "version": "1.1.1",
3
+ "version": "1.1.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": {