feat(ai): add OpenCode CLI provider

This commit is contained in:
Guoyu Su authored and GitHub committed 2026-08-07 17:06:03 +08:00
1 parent f711855ddf
commit 309e3aef5e
36 files changed
+1197 -30

No files matched your search

+3
View File
@@ -970,6 +970,7 @@ pub async fn run_codex_agent(
CliAgentProcessSpec {
command,
env,
env_remove: Vec::new(),
current_dir: None,
stdin: Some(prompt.to_string()),
dialect: CliAgentJsonlDialect::CodexExec,
@@ -1037,6 +1038,8 @@ mod tests {
claude_code_cli_env: Default::default(),
pi_agent_cli_path: None,
pi_agent_cli_env: Default::default(),
opencode_cli_path: None,
opencode_cli_env: Default::default(),
}
}