1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! ttop v2: Terminal Top - Sovereign AI Stack System Monitor
//!
//! Built on presentar-terminal (no ratatui dependency).
//! Zero-allocation steady-state rendering via CellBuffer + DiffRenderer.
//!
//! ## Architecture
//!
//! ```text
//! ttop binary
//! └── presentar-terminal::ptop (panels, app, ui)
//! └── presentar-terminal::direct (CellBuffer, DiffRenderer)
//! └── crossterm (terminal I/O)
//! ```
//!
//! ## Sovereign Stack
//!
//! All rendering is PAIML-owned. The only external terminal dependency is crossterm.
//! Contracts enforced via provable-contracts YAML definitions in `contracts/`.
// =============================================================================
// SPEC-024 ARCHITECTURAL ENFORCEMENT
// =============================================================================
// These constants require test files to exist at compile time.
// If a test file is deleted, the build FAILS.
// Tests define the interface. Implementation follows.
/// ENFORCEMENT: Brick interface tests MUST exist
pub const _ENFORCE_BRICK_TESTS: &str = include_str!;
/// ENFORCEMENT: Falsification tests MUST exist
pub const _ENFORCE_FALSIFICATION: &str = include_str!;
/// ENFORCEMENT: Pixel parity tests MUST exist
pub const _ENFORCE_PIXEL_PARITY: &str = include_str!;
// Re-export presentar-terminal ptop types for testing and embedding
pub use App;
pub use PtopConfig;
pub use ui;
pub use PanelType;
pub use MetricsSnapshot;
pub use ;
pub use ColorMode;