Shared hook that manages the confirmation state machine for tool calls.
Handles initial state computation, auto-allow/deny via preference mode, and wiring up the response's confirmation and user-confirmation promises.
Shared hook that manages the confirmation state machine for tool calls.
Handles initial state computation, auto-allow/deny via preference mode, and wiring up the response's confirmation and user-confirmation promises.