fullcourtdefense-cli 1.6.1 → 1.6.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.
@@ -32,7 +32,7 @@ async function installAllCommand(args, config) {
32
32
  shieldKey: creds.shieldKey,
33
33
  apiUrl: creds.apiUrl,
34
34
  project: args.cursorProject,
35
- events: 'prompt,shell,mcp,file,read',
35
+ events: 'shell,mcp',
36
36
  failClosed: 'true',
37
37
  };
38
38
  try {
@@ -109,7 +109,7 @@ async function installCursorHookCommand(args, config) {
109
109
  const projectScope = args.project === 'true';
110
110
  const shadow = args.shadow === 'true';
111
111
  const file = hooksJsonPath(projectScope);
112
- const requested = (args.events || 'prompt,shell,mcp,file,read')
112
+ const requested = (args.events || 'shell,mcp')
113
113
  .split(/[\s,]+/).map((e) => e.trim().toLowerCase()).filter(Boolean);
114
114
  const events = requested.filter((e) => EVENT_MAP[e]);
115
115
  if (events.length === 0) {
@@ -125,9 +125,9 @@ async function installCursorHookCommand(args, config) {
125
125
  const json = readHooksJson(file);
126
126
  for (const e of events) {
127
127
  const { hookKey, flag, failClosedDefault, timeoutSec } = EVENT_MAP[e];
128
- const failClosed = args.failClosed !== undefined ? args.failClosed === 'true' : failClosedDefault;
128
+ const failClosed = e === 'prompt' ? false : (args.failClosed !== undefined ? args.failClosed === 'true' : failClosedDefault);
129
129
  const entry = {
130
- command: buildHookCommand(flag, { shadow, failClosed }),
130
+ command: buildHookCommand(flag, { shadow: e === 'prompt' ? true : shadow, failClosed }),
131
131
  timeout: timeoutSec,
132
132
  };
133
133
  if (failClosed)
package/dist/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "1.6.1"
2
+ "version": "1.6.2"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fullcourtdefense-cli",
3
- "version": "1.6.1",
3
+ "version": "1.6.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": {