//! `maestro tui` — terminal UI client over the local daemon's `/api/*` surface. //! //! Design: `docs/superpowers/specs/2026-05-28-maestro-tui-design.md` //! Implementation: `docs/superpowers/plans/2026-05-28-maestro-tui.md` //! //! Phase 1 (NAP-276) scaffolds the crate and a `Tui` subcommand stub. The real //! event loop, rendering, and `/api/*` plumbing land in NAP-277 onward. #![deny(missing_debug_implementations)] pub mod action; pub mod catalog; pub mod cli; pub mod config; pub mod emulators; pub mod input; pub mod keymap; pub mod overlays; pub mod pane; pub mod render; pub mod session_task; pub mod sidebar; pub mod state; pub mod tabs; pub mod terminal; /// Inputs for [`run`]. Built by the umbrella binary from the parsed /// `TuiArgs` plus any global flags. #[derive(Debug, Clone)] pub struct RunConfig { /// HTTP base URL of the local daemon, e.g. `http://127.0.0.1:7070`. /// No trailing slash. pub daemon_url: String, } #[derive(Debug, thiserror::Error)] pub enum TuiError { #[error("not implemented")] NotImplemented, } /// Entry point. Phase-1 stub — returns `NotImplemented` so the subcommand /// dispatch path is exercisable end-to-end before the renderer lands. pub async fn run(_cfg: RunConfig) -> Result<(), TuiError> { Err(TuiError::NotImplemented) }