mix claude.hooks.run (claude v0.5.2)
View SourceDispatcher for Claude hooks. This task reads the .claude.exs configuration and executes the appropriate hooks based on the event type and tool matcher.
Usage
mix claude.hooks.run EVENT_TYPE [--json-file PATH]
Where EVENT_TYPE is one of:
- pre_tool_use
- post_tool_use
- stop
- subagent_stop
- user_prompt_submit
- notification
- pre_compact
- session_start
The task reads the event data from stdin by default, or from a file when --json-file is provided, and executes matching hooks sequentially.