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:
parent
2e7a2badba
commit
f36813078c
3 changed files with 76 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue