| 1 | //! Codewhale runtime: the headless half of the runtime/TUI split. |
| 2 | //! |
| 3 | //! Modules move here from `crates/tui/src` by explicit path, in the order |
| 4 | //! `docs/design/TUI_DECONSTRUCTION.md` records. The TUI calls them by their |
| 5 | //! `codewhale_runtime::<module>` paths; there is no alias block. |
| 6 | //! |
| 7 | //! This crate never depends on the terminal UI: no `codewhale-tui`, ratatui |
| 8 | //! or crossterm (`scripts/check-command-crate-boundaries.py`). |
| 9 | |
| 10 | // Copied verbatim from the TUI crate root: moved code relies on it. |
| 11 | #![allow(clippy::uninlined_format_args)] |
| 12 | |
| 13 | pub use codewhale_command_contract::elapsed; |
| 14 | |
| 15 | pub mod active_workshop; |
| 16 | pub mod artifacts; |
| 17 | pub mod audit; |
| 18 | pub mod browser; |
| 19 | pub mod child_env; |
| 20 | pub mod context_budget; |
| 21 | pub mod credentials; |
| 22 | pub mod delivery_files; |
| 23 | pub mod dsh_credentials; |
| 24 | pub mod external_credentials; |
| 25 | pub mod fast_hash; |
| 26 | pub mod features; |
| 27 | pub mod goal_loop; |
| 28 | pub mod hashing; |
| 29 | pub mod host_terminal; |
| 30 | pub mod lane_control; |
| 31 | pub mod llm_response_cache; |
| 32 | pub mod logging; |
| 33 | pub mod media_originals; |
| 34 | pub mod model_context; |
| 35 | pub mod native_memory; |
| 36 | pub mod private_log; |
| 37 | pub mod process_tree; |
| 38 | pub mod prompt_zones; |
| 39 | pub mod regex_cache; |
| 40 | pub mod retry_status; |
| 41 | pub mod runtime_control; |
| 42 | pub mod runtime_log; |
| 43 | pub mod runtime_policy; |
| 44 | pub mod safe_label; |
| 45 | pub mod session_diagnostics; |
| 46 | pub mod session_tree; |
| 47 | pub mod skill_state; |
| 48 | pub mod sleep_guard; |
| 49 | pub mod stall_report; |
| 50 | pub mod startup_trace; |
| 51 | #[cfg(any(test, feature = "test-support"))] |
| 52 | pub mod test_support; |
| 53 | pub mod tool_history_repair; |
| 54 | pub mod tool_output_receipts; |
| 55 | pub mod turn_budget; |
| 56 | pub mod working_set; |
| 57 | pub mod workspace_discovery; |
| 58 | |
| 59 | pub const CODEWHALE_MAIN_STACK_BYTES: usize = 32 * 1024 * 1024; |
| 60 | |
| 61 | pub fn resolve_state_from_environment() { |
| 62 | #[cfg(any(test, feature = "test-support"))] |
| 63 | test_support::resolve_state_from_environment(); |
| 64 | } |
| 65 | |
| 66 | pub mod catalog_cache; |
| 67 | |
| 68 | pub mod codex_model_roster; |
| 69 | |
| 70 | pub mod config; |
| 71 | |
| 72 | pub mod config_keys; |
| 73 | |
| 74 | pub mod config_persistence; |
| 75 | |
| 76 | pub mod oauth; |
| 77 | |
| 78 | pub mod settings; |
| 79 | pub mod workspace_lease; |
| 80 | pub mod workspace_trust; |
| 81 |