supercode-cli 0.4.18

supercode — a lightweight, fully-customizable AI coding agent CLI in Rust. Any model via OpenRouter; natively continues Claude Code and Codex sessions.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Activation gate for the shared SDK frontend.

use std::io;
use std::io::IsTerminal;

/// Full-screen mode is opt-in and requires all three standard streams to be
/// real terminals. Protocol, piped, and redirected surfaces cannot enter it.
pub fn should_activate(config: &supercode::Config) -> bool {
    supercode::tui::should_activate(
        config.tui_enabled,
        io::stdin().is_terminal(),
        io::stdout().is_terminal(),
        io::stderr().is_terminal(),
    )
}