408616b34e
Add `hooks: Option<&crate::hooks::HookRunner>` as the last parameter to the public `agent::run()` (re-exported from `loop_::run`). This enables library consumers to inject custom HookHandler implementations (before_tool_call, on_after_tool_call) without patching the crate. The hooks are threaded through to `run_tool_call_loop` which already accepts and dispatches them. All existing call sites pass `None`, preserving backward compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>