pub fn resolve_driver_binary(driver: &str, cli_alias: Option<&str>) -> StringExpand description
Resolve the binary name for a given driver name.
F2: takes an explicit cli_alias parameter (from --cli flag) instead of
reading only the process-global CLI env var. Precedence (mirrors
driver-claude-code.sh binary resolution):
$CLAUDE_CLIenv var (explicit override)cli_alias(from--cliflag, placed in child env asCLI)$CLIenv var (legacy path)"claude"default
Passing cli_alias explicitly avoids set_var (process-global mutation
that is a footgun in tests). The child env receives CLI=<alias> via the
static env list; this function reflects that same value without touching the
parent process environment.