Function: toApprovalPolicy()
toApprovalPolicy(
gate):ApprovalPolicy
Normalize any accepted approval spelling into an ApprovalPolicy.
A pattern gate with no usable patterns collapses to "none" rather than
gating everything, so a blank env var can never wedge the tools behind an
approval nobody configured.
Parameters
Section titled “Parameters”ApprovalGate | ApprovalPolicy | undefined