pin agents (#815)
This commit is contained in:
committed by
GitHub
parent
b36572f255
commit
794e2304a8
@@ -33,7 +33,7 @@ pub struct Amp {
|
||||
|
||||
impl Amp {
|
||||
fn build_command_builder(&self) -> CommandBuilder {
|
||||
let mut builder = CommandBuilder::new("npx -y @sourcegraph/amp@latest")
|
||||
let mut builder = CommandBuilder::new("npx -y @sourcegraph/amp@0.0.1758615753-ge2e2fb")
|
||||
.params(["--execute", "--stream-json"]);
|
||||
if self.dangerously_allow_all.unwrap_or(false) {
|
||||
builder = builder.extend_params(["--dangerously-allow-all"]);
|
||||
|
||||
@@ -39,9 +39,9 @@ const CONFIRM_HOOK_SCRIPT: &str = include_str!("./hooks/confirm.py");
|
||||
|
||||
fn base_command(claude_code_router: bool) -> &'static str {
|
||||
if claude_code_router {
|
||||
"npx -y @musistudio/claude-code-router code"
|
||||
"npx -y @musistudio/claude-code-router@1.0.49 code"
|
||||
} else {
|
||||
"npx -y @anthropic-ai/claude-code@latest"
|
||||
"npx -y @anthropic-ai/claude-code@1.0.120"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ pub enum GeminiModel {
|
||||
|
||||
impl GeminiModel {
|
||||
fn base_command(&self) -> &'static str {
|
||||
"npx -y @google/gemini-cli@latest"
|
||||
"npx -y @google/gemini-cli@0.5.5"
|
||||
}
|
||||
|
||||
fn build_command_builder(&self) -> CommandBuilder {
|
||||
|
||||
@@ -108,7 +108,7 @@ pub struct Opencode {
|
||||
|
||||
impl Opencode {
|
||||
fn build_command_builder(&self) -> CommandBuilder {
|
||||
let mut builder = CommandBuilder::new("npx -y opencode-ai@latest run").params([
|
||||
let mut builder = CommandBuilder::new("npx -y opencode-ai@0.11.1 run").params([
|
||||
"--print-logs",
|
||||
"--log-level",
|
||||
"ERROR",
|
||||
|
||||
@@ -26,7 +26,7 @@ pub struct QwenCode {
|
||||
|
||||
impl QwenCode {
|
||||
fn build_command_builder(&self) -> CommandBuilder {
|
||||
let mut builder = CommandBuilder::new("npx -y @qwen-code/qwen-code@latest");
|
||||
let mut builder = CommandBuilder::new("npx -y @qwen-code/qwen-code@0.0.12");
|
||||
|
||||
if self.yolo.unwrap_or(false) {
|
||||
builder = builder.extend_params(["--yolo"]);
|
||||
|
||||
Reference in New Issue
Block a user