Skip to content

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.

ApprovalGate | ApprovalPolicy | undefined

ApprovalPolicy