1
0
Fork 0
mirror of https://github.com/imjasonh/cnotes synced 2026-07-18 06:39:02 +00:00

Switch to terminal-notifier for visual notifications

- Replaced go-toast with terminal-notifier for better reliability
- Visual notifications now require: brew install terminal-notifier
- Speech notifications continue to work with built-in say command
- Cleaner implementation with no deprecation warnings

🤖 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:26:59 -04:00
parent f36813078c
commit 9cfbafb584
Failed to extract signature
4 changed files with 67 additions and 40 deletions

View file

@ -65,7 +65,9 @@ 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(" • notification: Shows notifications and speaks them aloud (macOS)")
fmt.Println("\nOptional: Install terminal-notifier for visual notifications:")
fmt.Println(" brew install terminal-notifier")
fmt.Println("\nTo test: echo '{\"event\":\"pre_tool_use\",\"tool\":\"Bash\",\"tool_use_request\":{\"tool\":\"Bash\",\"parameters\":{\"command\":\"ls\"}}}' | hooks run")
return nil