(&self, repo_root: &Path)
| 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![ |
nothing calls this directly
no test coverage detected