pub trait AgentDetector: Send + Sync {
// Required methods
fn id(&self) -> &'static str;
fn display_name(&self) -> &'static str;
fn detect(&self, home: &Path) -> AgentSnapshot;
}Expand description
Trait every per-agent detector implements.
Required Methods§
Sourcefn display_name(&self) -> &'static str
fn display_name(&self) -> &'static str
Fn.
Sourcefn detect(&self, home: &Path) -> AgentSnapshot
fn detect(&self, home: &Path) -> AgentSnapshot
Inspect home (the user’s home directory) and produce a snapshot.
Detectors must not panic on missing paths — InstallStatus::No is the
expected outcome for absent agents.