agent-dag 1.33.16 → 1.33.18

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/bin/deck.js CHANGED
@@ -157,7 +157,18 @@ await printBanner();
157
157
  process.stdout.write(` ${C.dim}workspace :${C.reset} ${workspace === "" ? C.yellow + "(all)" + C.reset : workspace}\n`);
158
158
 
159
159
  sp = spinner("installing Claude hooks…");
160
- const claudeInstall = await installHooks({ provider: "claude" });
160
+ let claudeInstall;
161
+ try {
162
+ claudeInstall = await installHooks({ provider: "claude" });
163
+ } catch (err) {
164
+ // Settings the installer cannot parse are settings it cannot rewrite without
165
+ // losing them, so it refuses. That refusal has to be said out loud: the file
166
+ // it names is one only the user can repair, and every Claude Code session on
167
+ // this machine is reading it too.
168
+ sp.stop(false, `Claude hooks ${C.dim}not installed${C.reset}`);
169
+ console.error(`\n agents-deck: ${err.message}\n`);
170
+ process.exit(1);
171
+ }
161
172
  sp.stop(true, `Claude hooks ${C.dim}→ ${claudeInstall.hookPath}${C.reset}`);
162
173
 
163
174
  // Codex CLI hooks never fire on Windows (sandbox refuses to spawn the hook