pub async fn call_opencode<T: DeserializeOwned>(
binary: &Path,
model: &str,
prompt: &str,
timeout_secs: u64,
) -> Result<(T, f64, u64), AppError>Expand description
Call opencode headless and return the parsed JSON response.
Combines build_opencode_command, subprocess execution with timeout,
parse_opencode_output, and parse_json_from_opencode_text.