(
agent: Option<&str>,
automation: Option<CodexAutomationInstall>,
)
| 107 | } |
| 108 | |
| 109 | fn validate_codex_automation_flags( |
| 110 | agent: Option<&str>, |
| 111 | automation: Option<CodexAutomationInstall>, |
| 112 | ) -> tracedecay::errors::Result<()> { |
| 113 | if automation.is_none() { |
| 114 | return Ok(()); |
| 115 | } |
| 116 | if agent != Some("codex") { |
| 117 | return Err(tracedecay::errors::TraceDecayError::Config { |
| 118 | message: "`--automation` is only supported with `--agent codex`".to_string(), |
| 119 | }); |
| 120 | } |
| 121 | Ok(()) |
| 122 | } |
| 123 | |
| 124 | fn validate_codex_automation_project_path() -> tracedecay::errors::Result<PathBuf> { |
| 125 | let project_path = |
no outgoing calls
no test coverage detected