(&self, force: bool)
| 142 | } |
| 143 | |
| 144 | pub fn install_global(&self, force: bool) -> AgentResult<usize> { |
| 145 | let path = Self::global_hooks_path().ok_or_else(|| AgentError::ConfigError { |
| 146 | operation: "resolve".to_string(), |
| 147 | path: PathBuf::from("~/.codex/hooks.json"), |
| 148 | reason: "Could not determine home directory for Codex hooks".to_string(), |
| 149 | })?; |
| 150 | self.install_at(&path, force) |
| 151 | } |
| 152 | |
| 153 | /// Install or migrate Atomic hooks at an explicit Codex hooks file. |
| 154 | /// |