agent-dag 1.33.37 → 1.33.39

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
@@ -39,6 +39,20 @@ if (flags.uninstall) {
39
39
  console.log(claude.changed
40
40
  ? `agents-deck: hooks removed from ${claude.settingsPath}`
41
41
  : "agents-deck: no Claude hooks to remove");
42
+ // The sound toggle is a second entry in the same file, marked
43
+ // __agent-dag-sound rather than __agent-dag, and uninstallHooks does not know
44
+ // that mark — so it used to be left behind, playing on every turn after the
45
+ // deck was supposedly gone. It also parks the user's own afplay/PowerShell
46
+ // Stop hooks while it is on, and once the deck is uninstalled nothing else can
47
+ // put them back, so this restores them too.
48
+ const { uninstallSoundHook } = await import(pathToFileURL(join(PKG_ROOT, "src/server/sound-hook.mjs")).href);
49
+ const sound = await uninstallSoundHook();
50
+ if (sound.ok === false) {
51
+ console.error(`agents-deck: sound hook left in place — ${sound.message}`);
52
+ } else {
53
+ if (sound.removed) console.log("agents-deck: sound hook removed");
54
+ if (sound.restored) console.log(`agents-deck: restored ${sound.restored} of your own sound hook(s)`);
55
+ }
42
56
  if (hasCodexInstalled()) {
43
57
  const codex = await uninstallHooks({ provider: "codex" });
44
58
  console.log(codex.changed