resolve_tool_path

Function resolve_tool_path 

Source
async fn resolve_tool_path(tool: &str) -> Option<String>
Expand description

Returns the path to the installed CLI binary if present in the per-version cache, else None. Used by install.check. Locate a system tool (e.g. git, gh) on PATH. Uses the platform equivalent of which and returns the resolved absolute path. None when the tool isn’t on PATH or the lookup itself failed.

Used by resolve.prereqs to pre-launch-check whether a provider’s system dependencies are installed. The probe is path-only — never executes the tool — so it’s safe to call without side effects. See SPEC_PROVIDER_SYSTEM_PREREQS_2026_05_18.md.