pub async fn detect_install(
exec_path: &str,
config: &DetectionConfig<'_>,
cmd: &dyn CommandRunner,
) -> InstallDetectionExpand description
Main orchestrator for install detection.
Detection priority:
- Custom detectors (iterate, first non-None result wins)
- Install receipt (check for config_dir/{app_name}/install-receipt.json)
- Homebrew (check path patterns + optional
brew list --caskverification) - npm global (check path patterns + optional
npm prefix -gverification) - Fallback: unmanaged with heuristic evidence