apoc 0.9.1

Agentic process control for LLMs
Documentation
use std::sync::Arc;

mod engine;
mod model;
mod registry;
#[cfg(target_os = "macos")]
mod vz;

#[path = "lib.rs"]
mod provider;

#[cfg(not(target_os = "macos"))]
use engine::UnavailableEngine;
use provider::{App, build_cli};
#[cfg(target_os = "macos")]
use vz::NativeVzEngine;

#[tokio::main]
async fn main() {
    #[cfg(target_os = "macos")]
    let engine = Arc::new(NativeVzEngine::from_environment());
    #[cfg(not(target_os = "macos"))]
    let engine = Arc::new(UnavailableEngine);
    let app = App::new(engine);
    if let Err(error) = build_cli(app).serve().await {
        eprintln!("Error: {error}");
        std::process::exit(1);
    }
}