Install or migrate Atomic hooks at an explicit Codex hooks file. Integration receipts record the exact settings target they manage. Using that path during upgrades avoids accidentally creating a repository-local hook file while leaving stale global hooks active.
(&self, path: &Path, force: bool)
| 156 | /// Using that path during upgrades avoids accidentally creating a |
| 157 | /// repository-local hook file while leaving stale global hooks active. |
| 158 | pub fn install_at(&self, path: &Path, force: bool) -> AgentResult<usize> { |
| 159 | install_hooks_at(path, force) |
| 160 | } |
| 161 | |
| 162 | pub fn uninstall_global(&self) -> AgentResult<()> { |
| 163 | if let Some(path) = Self::global_hooks_path() { |
no test coverage detected