pub async fn run_prompt(
agent_name: &str,
command: String,
args: Vec<String>,
cwd: PathBuf,
prompt_text: String,
session_name: Option<String>,
permission_mode: PermissionMode,
output_format: &str,
timeout_secs: Option<u64>,
no_wait: bool,
prompt_retries: u32,
suppress_reads: bool,
) -> Result<i32>Expand description
Run an interactive or piped prompt session.
Resolves or creates a session, starts the ACP bridge, sends the prompt, and enters the event loop with signal handling and optional timeout. After the first prompt completes, becomes the queue owner — listening on a Unix socket for subsequent prompts from IPC clients until idle timeout.