(event_json: &str)
| 424 | } |
| 425 | |
| 426 | pub fn codex_workspace_status_from_event(event_json: &str) -> HookWorkspaceStatus { |
| 427 | let parsed = serde_json::from_str::<Value>(event_json).unwrap_or(Value::Null); |
| 428 | let root = codex_project_root_from_parsed_event(&parsed); |
| 429 | let cwd = event_cwd_from_parsed(&parsed); |
| 430 | codex_workspace_status(root.as_deref(), cwd.as_deref()) |
| 431 | } |
| 432 | |
| 433 | /// Extracts the project-relative paths touched by a Codex `apply_patch` command. |
| 434 | pub fn codex_apply_patch_rel_paths(command: &str, cwd: &Path, project_root: &Path) -> Vec<String> { |
nothing calls this directly
no test coverage detected