add 5 new hook sound mappings — TaskCreated, StopFailure, CwdChanged, FileChanged, PermissionDenied

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Shayan Rais
2026-04-04 18:34:13 +05:00
parent cbd0cc37f2
commit ec967be1de
+7 -2
View File
@@ -3,7 +3,7 @@
Claude Code Hook Handler
=============================================
This script handles events from Claude Code and plays sounds for different hook events.
Supports all 22 Claude Code hooks: https://code.claude.com/docs/en/hooks
Supports all 27 Claude Code hooks: https://code.claude.com/docs/en/hooks
Special handling for git commits: plays pretooluse-git-committing.mp3
@@ -44,13 +44,18 @@ HOOK_SOUND_MAP = {
"SessionEnd": "sessionend",
"Setup": "setup",
"TeammateIdle": "teammateidle",
"TaskCreated": "taskcreated",
"TaskCompleted": "taskcompleted",
"ConfigChange": "configchange",
"WorktreeCreate": "worktreecreate",
"WorktreeRemove": "worktreeremove",
"InstructionsLoaded": "instructionsloaded",
"Elicitation": "elicitation",
"ElicitationResult": "elicitationresult"
"ElicitationResult": "elicitationresult",
"StopFailure": "stopfailure",
"CwdChanged": "cwdchanged",
"FileChanged": "filechanged",
"PermissionDenied": "permissiondenied"
}
# ===== AGENT HOOK EVENT TO SOUND FOLDER MAPPING =====