Hook handler that shells out to a command.
Exit code semantics (matching Claude Code):
0—:ok(allow)2—{:deny, output}(block)- Other —
:ok(non-blocking error)
The hook context is passed as JSON in the HOOK_INPUT environment variable.
Hook handler that shells out to a command.
Exit code semantics (matching Claude Code):
0 — :ok (allow)2 — {:deny, output} (block):ok (non-blocking error)The hook context is passed as JSON in the HOOK_INPUT environment variable.