()
| 122 | } |
| 123 | |
| 124 | fn validate_codex_automation_project_path() -> tracedecay::errors::Result<PathBuf> { |
| 125 | let project_path = |
| 126 | std::env::current_dir().map_err(|e| tracedecay::errors::TraceDecayError::Config { |
| 127 | message: format!("could not determine current project directory: {e}"), |
| 128 | })?; |
| 129 | std::fs::canonicalize(&project_path).map_err(|e| tracedecay::errors::TraceDecayError::Config { |
| 130 | message: format!( |
| 131 | "could not canonicalize project directory {}: {e}", |
| 132 | project_path.display() |
| 133 | ), |
| 134 | }) |
| 135 | } |
| 136 | |
| 137 | async fn install_codex_daemon_automation( |
| 138 | project_path: &Path, |
no test coverage detected