Update CLI commands to use latest versions for Amp, Claude, and Gemini executors (#140)
This commit is contained in:
@@ -58,6 +58,7 @@ Task title: {}"#,
|
||||
|
||||
// Use shell command for cross-platform compatibility
|
||||
let (shell_cmd, shell_arg) = get_shell_command();
|
||||
// --format=jsonl is deprecated in latest versions of Amp CLI
|
||||
let amp_command = "npx @sourcegraph/amp@0.0.1752148945-gd8844f --format=jsonl";
|
||||
|
||||
let mut command = Command::new(shell_cmd);
|
||||
|
||||
@@ -509,7 +509,7 @@ impl Executor for ClaudeFollowupExecutor {
|
||||
let (shell_cmd, shell_arg) = get_shell_command();
|
||||
// Pass prompt via stdin instead of command line to avoid shell escaping issues
|
||||
let claude_command = format!(
|
||||
"npx -y @anthropic-ai/claude-code -p --dangerously-skip-permissions --verbose --output-format=stream-json --resume={}",
|
||||
"npx -y @anthropic-ai/claude-code@latest -p --dangerously-skip-permissions --verbose --output-format=stream-json --resume={}",
|
||||
self.session_id
|
||||
);
|
||||
|
||||
|
||||
@@ -620,7 +620,7 @@ You are continuing work on the above task. The execution history shows what has
|
||||
comprehensive_prompt: &str,
|
||||
) -> Result<AsyncGroupChild, ExecutorError> {
|
||||
let (shell_cmd, shell_arg) = get_shell_command();
|
||||
let gemini_command = "npx @google/gemini-cli --yolo";
|
||||
let gemini_command = "npx @google/gemini-cli@latest --yolo";
|
||||
|
||||
tracing::info!(
|
||||
"Spawning Gemini followup execution for attempt {} with resume context ({} chars)",
|
||||
|
||||
Reference in New Issue
Block a user