| 1 | //! Terminal UI (TUI) module for `DeepSeek` CLI. |
| 2 | |
| 3 | // The rendering layer runs inside the alt-screen. Raw stdio prints |
| 4 | // produce the scroll demon (see `runtime_log` for full context). Use |
| 5 | // `tracing::*` for diagnostics — `runtime_log` captures it to disk. |
| 6 | // `ui::run_event_loop` legitimately prints a post-exit resume hint |
| 7 | // AFTER `LeaveAlternateScreen`; that single site uses |
| 8 | // `#[allow(clippy::print_stdout)]` locally. |
| 9 | #![deny(clippy::print_stdout)] |
| 10 | #![deny(clippy::print_stderr)] |
| 11 | |
| 12 | // === Submodules === |
| 13 | |
| 14 | pub mod active_cell; |
| 15 | pub(crate) mod agent_details; |
| 16 | pub mod ambient_life; |
| 17 | pub mod app; |
| 18 | pub mod approval; |
| 19 | pub mod auto_review; |
| 20 | pub mod auto_router; |
| 21 | mod automation_routing; |
| 22 | pub mod backtrack; |
| 23 | pub mod behavioral_tips; |
| 24 | pub mod clipboard; |
| 25 | pub mod color_compat; |
| 26 | pub mod command_palette; |
| 27 | pub mod composer_chrome; |
| 28 | pub mod composer_ui; |
| 29 | pub mod context_inspector; |
| 30 | pub mod context_menu; |
| 31 | pub(crate) mod coordination_detail; |
| 32 | pub mod diff_render; |
| 33 | pub mod display_refresh; |
| 34 | pub mod event_broker; |
| 35 | pub mod external_editor; |
| 36 | pub mod feedback_picker; |
| 37 | pub mod file_frecency; |
| 38 | pub mod file_mention; |
| 39 | pub mod file_picker; |
| 40 | pub mod file_picker_relevance; |
| 41 | pub mod file_tree; |
| 42 | pub mod focus_texture; |
| 43 | pub mod footer_ui; |
| 44 | pub mod format_helpers; |
| 45 | pub mod frame_rate_limiter; |
| 46 | pub mod git_mention; |
| 47 | pub mod git_status; |
| 48 | pub mod glyphs; |
| 49 | pub mod history; |
| 50 | pub mod hot_tail; |
| 51 | pub mod hotbar; |
| 52 | pub mod hover_hit; |
| 53 | pub mod hover_layer; |
| 54 | pub mod key_actions; |
| 55 | pub mod key_shortcuts; |
| 56 | pub mod keybindings; |
| 57 | pub mod list_nav; |
| 58 | pub mod live_transcript; |
| 59 | pub mod markdown_render; |
| 60 | mod mcp_routing; |
| 61 | pub(crate) mod mention_completion; |
| 62 | pub mod menu_style; |
| 63 | pub mod model_picker; |
| 64 | pub mod motion; |
| 65 | pub mod mouse_ui; |
| 66 | pub mod notification_payload; |
| 67 | pub mod notifications; |
| 68 | pub mod ocean; |
| 69 | pub mod onboarding; |
| 70 | pub mod osc8; |
| 71 | pub mod output_rows_cache; |
| 72 | pub mod pager; |
| 73 | pub mod paste; |
| 74 | pub mod paste_burst; |
| 75 | pub mod persistence_actor; |
| 76 | pub mod phase_strip; |
| 77 | pub mod prompt_suggestion; |
| 78 | pub mod provider_picker; |
| 79 | pub mod scrolling; |
| 80 | pub mod selection; |
| 81 | pub mod session_picker; |
| 82 | pub mod settings_picker; |
| 83 | pub mod setup; |
| 84 | mod shell_job_routing; |
| 85 | pub mod shell_key_routing; |
| 86 | pub mod sidebar; |
| 87 | pub mod slash_menu; |
| 88 | pub mod sound_policy; |
| 89 | pub mod spinner; |
| 90 | pub mod startup_defaults; |
| 91 | pub mod streaming; |
| 92 | pub mod streaming_thinking; |
| 93 | mod subagent_routing; |
| 94 | pub mod theme_picker; |
| 95 | mod tool_routing; |
| 96 | pub mod transcript; |
| 97 | pub mod transcript_cache; |
| 98 | pub mod translation; |
| 99 | pub mod ui; |
| 100 | mod ui_text; |
| 101 | pub mod underwater; |
| 102 | pub mod user_input; |
| 103 | pub mod views; |
| 104 | pub mod vim_mode; |
| 105 | pub mod widgets; |
| 106 | pub mod work_surface; |
| 107 | pub mod workspace_context; |
| 108 | pub mod worktree_manager; |
| 109 | |
| 110 | // === Re-exports === |
| 111 | |
| 112 | pub use app::{InitialInput, TuiOptions}; |
| 113 | pub use ui::run_tui; |
| 114 |