MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_installed

Method is_installed

atomic-agent/src/hooks/sherpa.rs:352–356  ·  view source on GitHub ↗

Sherpa hooks are always "installed" when the TUI binary is present. We cannot easily introspect the TUI binary from here, so we return `true` whenever `~/.sherpa/sessions/` exists (i.e. the TUI has been run at least once).

(&self, _repo_root: &Path)

Source from the content-addressed store, hash-verified

350 /// `true` whenever `~/.sherpa/sessions/` exists (i.e. the TUI has been
351 /// run at least once).
352 fn is_installed(&self, _repo_root: &Path) -> bool {
353 Self::sherpa_sessions_dir()
354 .map(|p| p.is_dir())
355 .unwrap_or(false)
356 }
357
358 fn supported_hooks(&self) -> Vec<HookType> {
359 vec![

Callers

nothing calls this directly

Calls 1

is_dirMethod · 0.80

Tested by

no test coverage detected