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_seensentinel. Triggered by/earendilor 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 toconfig::agent_dirso anRPI_CODING_AGENT_DIRoverride is honored (the oldrpi_dir()ignored it). ReturnsNonewhen 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).