Skip to main content

Module extras

Module extras 

Source
Expand description

Extras & easter-egg wiring — thin host wrappers over the rpi-tui components.

Hosts the chat-container push helpers for the armin XBM art and the earendil announcement, plus the first-time-setup sentinel logic. These are the interactive_tui.rs-side glue (/armin, /earendil, and the first-launch gate) that depend on rpi_tui::Container + Arc — kept out of the library crate so rpi-tui stays cli-free (project constraint).

Functions§

add_armin
Push the armin XBM art block (+ a trailing spacer) into the chat transcript. Triggered by /armin.
add_earendil
Push the earendil announcement block (+ a trailing spacer) into the chat transcript, and mark it seen via the ~/.rpi/agent/.earendil_seen sentinel. Triggered by /earendil or the first-launch gate.
earendil_seen
Whether the earendil announcement has already been shown (sentinel present).
earendil_seen_path
Path of the “earendil announcement seen” sentinel, under the agent dir (~/.rpi/agent/.earendil_seen). Delegates to config::agent_dir so an RPI_CODING_AGENT_DIR override is honored (the old rpi_dir() ignored it). Returns None when the home dir can’t be resolved.
mark_setup_done
Mark first-time setup complete (write the sentinel). Best-effort.
maybe_first_time_setup
If first-time setup hasn’t run yet, show a brief setup note + the earendil announcement in the chat container. The TS original is a multi-step dialog (theme picker, analytics opt-in); this v1 simplifies to a one-shot banner
setup_done
Whether first-time setup has already been completed (sentinel present).
setup_done_path
Path of the “first-time setup done” sentinel, under the agent dir (~/.rpi/agent/.setup_done).