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

Method detect_presence

atomic-agent/src/hooks/opencode.rs:619–623  ·  view source on GitHub ↗
(&self, repo_root: &Path)

Source from the content-addressed store, hash-verified

617 }
618
619 fn detect_presence(&self, repo_root: &Path) -> bool {
620 // OpenCode is present if the repo has a .opencode directory OR if
621 // the atomic-hooks.ts plugin is staged under ~/.config/opencode/.
622 repo_root.join(OPENCODE_DIR).is_dir() || Self::is_plugin_installed()
623 }
624
625 fn hook_verbs(&self) -> Vec<&str> {
626 vec![

Callers

nothing calls this directly

Calls 1

is_dirMethod · 0.80

Tested by

no test coverage detected