polyc-tui 2026.8.3

Operator cockpit TUI (pc-tui) for the polychrome control plane: fleet, transcript, approvals, and tools panes.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! `pc-tui` — the standalone polychrome operator cockpit.
//!
//! A thin launcher around [`polyc_tui::run`]: it installs color-eyre
//! (pretty panic/error reports + the terminal-restore prereq) and runs the app
//! on a multi-thread tokio runtime. The same entrypoint is embedded in the
//! `polychrome` CLI. Connection targets come from the `PC_TUI_*` env vars.

use color_eyre::Result;

#[tokio::main]
async fn main() -> Result<()> {
    // Installs color-eyre's panic + error hooks. `Tui::enter()` then chains its
    // terminal-restore hook IN FRONT of this, so restore runs before the report.
    color_eyre::install()?;

    polyc_tui::run(polyc_tui::Launch::default()).await
}