Skip to content

smelt.frontend

Tier: Host — Available in every runtime, including headless mode.

Query which frontend is active (TUI vs headless).

smelt.frontend.is_interactive

fun(): boolean

Return true when the frontend supports interactive prompts (a TTY user is present). Defaults to true when no host is installed.

smelt.frontend.kind

fun(): string

Return the active frontend kind (e.g. "tui" or "headless"). Falls back to "tui" when no host is installed.