1
0
Fork 0
mirror of https://github.com/imjasonh/cnotes synced 2026-07-10 18:03:41 +00:00
cnotes/internal/handlers
Jason Hall 45ef980233
Scaffold all 7 hook events and eliminate type casting
- Add missing hook handlers: Stop, SubagentStop, PreCompact
- Replace all string type casting with proper JSON unmarshaling
- Change ToolUseRequest.Parameters from map[string]interface{} to json.RawMessage
- Update helper methods to use json.Unmarshal directly to typed structs
- Replace speech notifications with simple logging notifications
- Update documentation to reflect all hook events and remove speech references
- Add comprehensive CLAUDE.md with architecture overview and development guidance

All hooks now use type-safe JSON handling without .(string) assertions.
Complete coverage of Claude Code events: PreToolUse, PostToolUse,
UserPromptSubmit, Notification, Stop, SubagentStop, PreCompact.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-21 12:01:55 -04:00
..
goimports.go Complete hooks implementation with comprehensive features 2025-07-21 11:27:18 -04:00
handlers.go Scaffold all 7 hook events and eliminate type casting 2025-07-21 12:01:55 -04:00
notification.go Scaffold all 7 hook events and eliminate type casting 2025-07-21 12:01:55 -04:00
posttooluse.go Scaffold all 7 hook events and eliminate type casting 2025-07-21 12:01:55 -04:00
precompact.go Scaffold all 7 hook events and eliminate type casting 2025-07-21 12:01:55 -04:00
pretooluse.go Complete hooks implementation with comprehensive features 2025-07-21 11:27:18 -04:00
stop.go Scaffold all 7 hook events and eliminate type casting 2025-07-21 12:01:55 -04:00
subagentstop.go Scaffold all 7 hook events and eliminate type casting 2025-07-21 12:01:55 -04:00
userprompt.go Scaffold all 7 hook events and eliminate type casting 2025-07-21 12:01:55 -04:00