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

Method is_installed

atomic-agent/src/hooks/claude_code/mod.rs:147–160  ·  view source on GitHub ↗
(&self, repo_root: &Path)

Source from the content-addressed store, hash-verified

145 }
146
147 fn is_installed(&self, repo_root: &Path) -> bool {
148 let settings_path = Self::settings_path(repo_root);
149
150 let Ok(data) = std::fs::read(&settings_path) else {
151 return false;
152 };
153
154 let Ok(raw) = serde_json::from_slice::<serde_json::Value>(&data) else {
155 return false;
156 };
157
158 super::live::json_hooks_active("claude-code", &raw, "hooks", ATOMIC_HOOK_PREFIX)
159 .unwrap_or(false)
160 }
161
162 fn supported_hooks(&self) -> Vec<HookType> {
163 vec![

Callers

nothing calls this directly

Calls 2

json_hooks_activeFunction · 0.85
readFunction · 0.50

Tested by

no test coverage detected