claude-code-sounds 1.5.3 → 1.5.4

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.
Files changed (2) hide show
  1. package/bin/cli.js +20 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -626,14 +626,21 @@ async function interactiveInstall(autoYes) {
626
626
  const existing = detectExistingInstall();
627
627
 
628
628
  if (existing && !autoYes) {
629
+ const muted = lib.isMuted(paths);
630
+ const muteStatus = muted ? color.yellow(" (muted)") : "";
629
631
  p.log.info(
630
- `Already installed — ${color.bold(existing.themeDisplays.join(", "))} (${existing.totalEnabled} sounds enabled)`
632
+ `Already installed — ${color.bold(existing.themeDisplays.join(", "))} (${existing.totalEnabled} sounds enabled)${muteStatus}`
631
633
  );
632
634
 
635
+ const muteOption = muted
636
+ ? { value: "unmute", label: "Unmute sounds", hint: "Sounds are currently muted" }
637
+ : { value: "mute", label: "Mute sounds", hint: "Silence sounds without uninstalling" };
638
+
633
639
  const action = await p.select({
634
640
  message: "What would you like to do?",
635
641
  options: [
636
642
  { value: "modify", label: "Modify install", hint: "Add themes, change sounds" },
643
+ muteOption,
637
644
  { value: "fresh", label: "Fresh install", hint: "Start over from scratch" },
638
645
  { value: "uninstall", label: "Uninstall", hint: "Remove all sounds and hooks" },
639
646
  ],
@@ -644,6 +651,18 @@ async function interactiveInstall(autoYes) {
644
651
  process.exit(0);
645
652
  }
646
653
 
654
+ if (action === "mute") {
655
+ lib.setMuted(true, paths);
656
+ p.outro("Sounds muted.");
657
+ return;
658
+ }
659
+
660
+ if (action === "unmute") {
661
+ lib.setMuted(false, paths);
662
+ p.outro("Sounds unmuted.");
663
+ return;
664
+ }
665
+
647
666
  if (action === "uninstall") {
648
667
  uninstallAll();
649
668
  p.outro("All sounds removed.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-sounds",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "Sound themes for Claude Code lifecycle hooks",
5
5
  "bin": {
6
6
  "claude-code-sounds": "bin/cli.js"