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)
| 147 | /// Using that path during upgrades avoids accidentally creating a |
| 148 | /// repository-local hook file while leaving stale global hooks active. |
| 149 | pub fn install_at(&self, path: &Path, force: bool) -> AgentResult<usize> { |
| 150 | install_hooks_at(path, force) |
| 151 | } |
| 152 | |
| 153 | pub fn is_installed_global(&self) -> bool { |
| 154 | Self::global_hooks_path().is_some_and(|path| self.is_installed_at(&path)) |