//! Convenience entry point: build a built-in registry on the fly and run a
//! single detection on one directory. For repeated calls, build a
//! [`crate::DetectorRegistry`] once and reuse it.
use Path;
use crate;
/// Probe `dir` with the default built-in registry and return all hits.
///
/// Returns an empty `Vec` when `dir` matches no detector. Multiple hits
/// can come back when the dir is both a project and a workspace, or when
/// multiple workspace kinds coexist at the same root (Cargo + Npm in a
/// Tauri-style repo).