workflow dispatch and test fix (#15)
* workflow dispatch * Prettier fix * Fix cargo fmt
This commit is contained in:
committed by
GitHub
parent
fa00caf967
commit
5c452e78e2
@@ -4,7 +4,9 @@ use tokio::io::{AsyncBufReadExt, BufReader};
|
||||
use ts_rs::TS;
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::executors::{AmpExecutor, ClaudeExecutor, EchoExecutor, GeminiExecutor, OpencodeExecutor};
|
||||
use crate::executors::{
|
||||
AmpExecutor, ClaudeExecutor, EchoExecutor, GeminiExecutor, OpencodeExecutor,
|
||||
};
|
||||
|
||||
/// Context information for spawn failures to provide comprehensive error details
|
||||
#[derive(Debug, Clone)]
|
||||
|
||||
@@ -44,7 +44,10 @@ impl Executor for OpencodeExecutor {
|
||||
|
||||
// Use shell command for cross-platform compatibility
|
||||
let (shell_cmd, shell_arg) = get_shell_command();
|
||||
let opencode_command = format!("opencode -p \"{}\" --output-format=json", prompt.replace('"', "\\\""));
|
||||
let opencode_command = format!(
|
||||
"opencode -p \"{}\" --output-format=json",
|
||||
prompt.replace('"', "\\\"")
|
||||
);
|
||||
|
||||
let mut command = Command::new(shell_cmd);
|
||||
command
|
||||
@@ -82,7 +85,10 @@ impl Executor for OpencodeFollowupExecutor {
|
||||
|
||||
// Use shell command for cross-platform compatibility
|
||||
let (shell_cmd, shell_arg) = get_shell_command();
|
||||
let opencode_command = format!("opencode -p \"{}\" --output-format=json", self.prompt.replace('"', "\\\""));
|
||||
let opencode_command = format!(
|
||||
"opencode -p \"{}\" --output-format=json",
|
||||
self.prompt.replace('"', "\\\"")
|
||||
);
|
||||
|
||||
let mut command = Command::new(shell_cmd);
|
||||
command
|
||||
|
||||
@@ -867,7 +867,8 @@ impl TaskAttempt {
|
||||
prompt,
|
||||
} => {
|
||||
use crate::executors::{
|
||||
AmpFollowupExecutor, ClaudeFollowupExecutor, GeminiFollowupExecutor, OpencodeFollowupExecutor,
|
||||
AmpFollowupExecutor, ClaudeFollowupExecutor, GeminiFollowupExecutor,
|
||||
OpencodeFollowupExecutor,
|
||||
};
|
||||
|
||||
let executor: Box<dyn crate::executor::Executor> = match config {
|
||||
|
||||
Reference in New Issue
Block a user