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.
|
@@ -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 || '
|
|
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