rho-coding-agent 1.5.0

A lightweight agent harness inspired by Pi
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::process::ExitCode;

use clap::Parser;
use rho_coding_agent::{run, AutomationInterrupted, Cli};

#[tokio::main]
async fn main() -> ExitCode {
    match run(Cli::parse()).await {
        Ok(()) => ExitCode::SUCCESS,
        Err(error) => {
            let exit_code = error
                .downcast_ref::<AutomationInterrupted>()
                .map_or(1, AutomationInterrupted::exit_code);
            eprintln!("Error: {error:?}");
            ExitCode::from(exit_code)
        }
    }
}