1
0
Fork 0
mirror of https://github.com/imjasonh/cnotes synced 2026-07-11 10:21:44 +00:00

Add notification hook with macOS speech synthesis

- Speaks Claude notifications using the 'say' command
- Handles both permission requests and regular notifications
- Only runs on macOS systems
- Non-blocking execution to avoid delays

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2025-07-21 10:17:58 -04:00
parent 2e7a2badba
commit f36813078c
Failed to extract signature
3 changed files with 76 additions and 0 deletions

View file

@ -65,6 +65,7 @@ func runInstall(cmd *cobra.Command, args []string) error {
fmt.Println(" • pre_tool_use: Validates bash commands and prevents sensitive file edits")
fmt.Println(" • post_tool_use: Logs tool usage and runs goimports on modified Go files")
fmt.Println(" • user_prompt_submit: Adds project context to prompts")
fmt.Println(" • notification: Speaks notifications aloud using macOS 'say' command")
fmt.Println("\nTo test: echo '{\"event\":\"pre_tool_use\",\"tool\":\"Bash\",\"tool_use_request\":{\"tool\":\"Bash\",\"parameters\":{\"command\":\"ls\"}}}' | hooks run")
return nil