cu_tuimon
cu_tuimon is the shared Ratatui UI library for Copper monitors.
It does not implement CuMonitor itself. Instead, it provides:
MonitorModel: shared monitor state updated from Copper runtime dataMonitorUi: reusable Ratatui rendering for system info, DAG, latency, bandwidth, pool, and log viewsMonitorUiEventandMonitorUiKey: backend-neutral monitor input events shared by multiple frontendsMonitorLogCapture: shared live Copper log and optionalstderrcapture for monitor frontends- shared scrolling and screen-selection behavior used by multiple frontends
Current intended consumers:
cu_consolemon: terminal / crossterm frontendcu_bevymon: Bevy /bevy_ratatuifrontend
Input ownership:
cu_tuimonowns monitor behavior and bindingscu_tuimonowns the sharedLOGpane, including live Copper log formatting- frontend adapters translate raw backend events into
MonitorUiEvent cu_tuimonnever needs to know whether it is running in a terminal or in Bevy
This crate lives under components/libs because it is a reusable UI backend, not a standalone monitor component.