saya-cli 0.4.1

Database-aware AI agent for the terminal: full-screen TUI, schema discovery, and bounded read-only SQL over PostgreSQL, MySQL, SQLite, DuckDB, and Snowflake.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! What the TUI's startup trust modal decided.

/// What the TUI's startup trust modal decided: the trusted directory when
/// the modal bound one, or `Unasked` on every other path — modal dismissed
/// unbound, or never opened. `session_loop` pins the record and refreshes
/// the header facts from the rebound session behind an `Answered`.
pub(crate) enum TrustOutcome {
    Answered(std::path::PathBuf),
    Unasked,
}

impl TrustOutcome {
    /// The process exit code: the TUI always exits cleanly here; the trust
    /// answer rides the session, never the exit status.
    pub(crate) fn exit_code(self) -> i32 {
        0
    }
}