use super::AgentAdapter;
pub struct OpenCodeAgent;
impl AgentAdapter for OpenCodeAgent {
fn name(&self) -> &'static str {
"OpenCode"
}
fn exec_command(
&self,
_phase: u32,
prompt: &str,
_extra_writable_roots: &[std::path::PathBuf],
) -> (&'static str, Vec<String>) {
("opencode", vec!["run".into(), prompt.to_string()])
}
fn completion_signal_detected(&self, _output: &str) -> bool {
false
}
}