acp-agent 0.0.0

CLI for discovering, installing, launching, and proxying ACP agents from the public registry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::process::ExitStatus;

use anyhow::Result;

use crate::runtime::stdio;

/// Runs the named agent over stdio, mirroring the CLI `run` command.
///
/// Arguments are forwarded to the agent process, and the caller receives the exit
/// status so they can decide how to report success or failure.
pub async fn run_agent(agent_id: &str, user_args: &[String]) -> Result<ExitStatus> {
    stdio::run_agent_stdio(agent_id, user_args).await
}