Skip to main content

codewhale_runtime/
lib.rs

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
13pub use codewhale_command_contract::elapsed;
14
15pub mod active_workshop;
16pub mod artifacts;
17pub mod audit;
18pub mod browser;
19pub mod child_env;
20pub mod context_budget;
21pub mod continual_harness;
22pub mod credentials;
23pub mod delivery_files;
24pub mod dsh_credentials;
25pub mod external_credentials;
26pub mod fast_hash;
27pub mod features;
28pub mod goal_loop;
29pub mod hashing;
30pub mod host_terminal;
31pub mod lane_control;
32pub mod llm_response_cache;
33pub mod logging;
34pub mod media_originals;
35pub mod model_context;
36pub mod native_memory;
37pub mod private_log;
38pub mod process_tree;
39pub mod prompt_zones;
40pub mod regex_cache;
41pub mod retry_status;
42pub mod runtime_control;
43pub mod runtime_log;
44pub mod runtime_policy;
45pub mod safe_label;
46pub mod session_diagnostics;
47pub mod session_tree;
48pub mod skill_state;
49pub mod sleep_guard;
50pub mod stall_report;
51pub mod startup_trace;
52#[cfg(any(test, feature = "test-support"))]
53pub mod test_support;
54pub mod tool_history_repair;
55pub mod tool_output_receipts;
56pub mod turn_budget;
57pub mod working_set;
58pub mod workspace_discovery;
59
60pub const CODEWHALE_MAIN_STACK_BYTES: usize = 32 * 1024 * 1024;
61
62pub fn resolve_state_from_environment() {
63    #[cfg(any(test, feature = "test-support"))]
64    test_support::resolve_state_from_environment();
65}
66
67pub mod catalog_cache;
68
69pub mod codex_model_roster;
70
71pub mod config;
72
73pub mod config_keys;
74
75pub mod config_persistence;
76
77pub mod oauth;
78
79pub mod settings;
80pub mod workspace_lease;
81pub mod workspace_trust;