彻底删除支持不完整的Agent和相关代码,减轻维护工作量,等后续真正适配好了再加回来
This commit is contained in:
@@ -169,22 +169,6 @@ async fn build_agent(
|
||||
let refs: Vec<&str> = parts.iter().map(|s| s.as_str()).collect();
|
||||
AcpAgent::from_args(&refs).map_err(|e| AcpError::SpawnFailed(e.to_string()))
|
||||
}
|
||||
AgentDistribution::Uvx {
|
||||
package, args, env, ..
|
||||
} => {
|
||||
let merged_env = merge_agent_env(env, runtime_env);
|
||||
let mut parts: Vec<String> = Vec::new();
|
||||
for (k, v) in &merged_env {
|
||||
parts.push(format!("{k}={v}"));
|
||||
}
|
||||
parts.push("uvx".into());
|
||||
parts.push(package.into());
|
||||
for a in args {
|
||||
parts.push((*a).into());
|
||||
}
|
||||
let refs: Vec<&str> = parts.iter().map(|s| s.as_str()).collect();
|
||||
AcpAgent::from_args(&refs).map_err(|e| AcpError::SpawnFailed(e.to_string()))
|
||||
}
|
||||
AgentDistribution::Binary {
|
||||
version,
|
||||
cmd,
|
||||
|
||||
Reference in New Issue
Block a user