saya-cli 0.3.2

Database-aware AI agent for the terminal: full-screen TUI, schema discovery, and bounded read-only SQL over PostgreSQL, MySQL, SQLite, DuckDB, and Snowflake.
mod agent;
mod app;
mod chart;
mod cli;
mod commands;
mod config;
mod connection;
#[allow(dead_code)] // contract ops surface for the adapter slices (2b-2/3/4) not yet wired in
mod contracts;
mod interactive;
mod render;
mod runtime_profile;
mod slash;
mod stream_render;

#[cfg(test)]
mod privacy_tests;
mod profile_identity;
mod prompt_approval;
mod state_path;

use clap::Parser;

pub use app::run;
pub use cli::{
    ClaimKindArg, Cli, Command, ConfigCommand, ConnectionCommand, ContractsCommand,
    ForgetReasonArg, FormatArg, GlobalOptions, ReviewDecisionArg,
};
pub use commands::{capture_output_start, capture_output_take, run_contracts};
pub use config::runtime::{RuntimeConfig, approval_name, load_with_sources};
pub use interactive::session_paths::{default_session_dir, resolve_session_dir};
pub use interactive::{Session, SessionAction, SessionState};
pub use profile_identity::profile_identity;
pub use render::{
    ContractClaimView, ContractConflictView, ContractQueueItemView, ContractView, RenderFormat,
    TerminalEvent, render_event,
};
pub use slash::{SlashCommand, parse_slash_command};
pub use state_path::resolve_state_db_path;

pub fn run_from_env() -> i32 {
    run(Cli::parse_from(std::env::args_os()))
}