给npx类型的agent也添加cmd命令行
This commit is contained in:
@@ -5,6 +5,8 @@ pub enum AgentDistribution {
|
|||||||
Npx {
|
Npx {
|
||||||
version: &'static str,
|
version: &'static str,
|
||||||
package: &'static str,
|
package: &'static str,
|
||||||
|
/// The command name provided by this npx package (e.g. "gemini", "openclaw").
|
||||||
|
cmd: &'static str,
|
||||||
args: &'static [&'static str],
|
args: &'static [&'static str],
|
||||||
env: &'static [(&'static str, &'static str)],
|
env: &'static [(&'static str, &'static str)],
|
||||||
/// Minimum Node.js version required, e.g. "22.12.0". None means no specific requirement.
|
/// Minimum Node.js version required, e.g. "22.12.0". None means no specific requirement.
|
||||||
@@ -113,6 +115,7 @@ pub fn get_agent_meta(agent_type: AgentType) -> AcpAgentMeta {
|
|||||||
distribution: AgentDistribution::Npx {
|
distribution: AgentDistribution::Npx {
|
||||||
version: "0.22.0",
|
version: "0.22.0",
|
||||||
package: "@zed-industries/claude-agent-acp@0.22.0",
|
package: "@zed-industries/claude-agent-acp@0.22.0",
|
||||||
|
cmd: "claude-agent-acp",
|
||||||
args: &[],
|
args: &[],
|
||||||
env: &[],
|
env: &[],
|
||||||
node_required: None,
|
node_required: None,
|
||||||
@@ -162,6 +165,7 @@ pub fn get_agent_meta(agent_type: AgentType) -> AcpAgentMeta {
|
|||||||
distribution: AgentDistribution::Npx {
|
distribution: AgentDistribution::Npx {
|
||||||
version: "0.33.2",
|
version: "0.33.2",
|
||||||
package: "@google/gemini-cli@0.33.2",
|
package: "@google/gemini-cli@0.33.2",
|
||||||
|
cmd: "gemini",
|
||||||
args: &["--acp"],
|
args: &["--acp"],
|
||||||
env: &[],
|
env: &[],
|
||||||
node_required: None,
|
node_required: None,
|
||||||
@@ -174,6 +178,7 @@ pub fn get_agent_meta(agent_type: AgentType) -> AcpAgentMeta {
|
|||||||
distribution: AgentDistribution::Npx {
|
distribution: AgentDistribution::Npx {
|
||||||
version: "2026.3.13",
|
version: "2026.3.13",
|
||||||
package: "openclaw@2026.3.13",
|
package: "openclaw@2026.3.13",
|
||||||
|
cmd: "openclaw",
|
||||||
args: &["acp"],
|
args: &["acp"],
|
||||||
env: &[],
|
env: &[],
|
||||||
node_required: Some("22.12.0"),
|
node_required: Some("22.12.0"),
|
||||||
|
|||||||
Reference in New Issue
Block a user