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` with `git mv`, in the order
4//! `docs/design/TUI_DECONSTRUCTION.md` records. The TUI reaches them through
5//! one path-alias block in its `lib.rs`, so moved code keeps its
6//! `crate::<module>` paths on both sides until the split deletes the alias.
7//!
8//! This crate never depends on the terminal UI: no `codewhale-tui`, ratatui
9//! or crossterm (`scripts/check-command-crate-boundaries.py`).
10
11// Copied verbatim from the TUI crate root: moved code relies on it.
12#![allow(clippy::uninlined_format_args)]
13
14pub use codewhale_command_contract::elapsed;
15
16pub mod context_budget;
17pub mod continual_harness;
18pub mod fast_hash;
19pub mod features;
20pub mod goal_loop;
21pub mod hashing;
22pub mod host_terminal;
23pub mod lane_control;
24pub mod llm_response_cache;
25pub mod logging;
26pub mod media_originals;
27pub mod model_context;
28pub mod native_memory;
29pub mod prompt_zones;
30pub mod regex_cache;
31pub mod resource_telemetry;
32pub mod retry_status;
33pub mod runtime_policy;
34pub mod safe_label;
35pub mod session_tree;
36pub mod skill_state;
37pub mod sleep_guard;
38pub mod startup_trace;
39#[cfg(any(test, feature = "test-support"))]
40pub mod test_support;
41pub mod tool_history_repair;
42pub mod workspace_discovery;
43
44pub const CODEWHALE_MAIN_STACK_BYTES: usize = 32 * 1024 * 1024;