Expand description
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
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/.
Modules§
- ui
- UI layout and rendering for ptop.
Structs§
- App
- Cell
Buffer - Buffer of terminal cells with dirty tracking.
- Diff
Renderer - Differential renderer that minimizes terminal I/O.
- Metrics
Snapshot - Metrics snapshot sent from background collector to main thread. Contains only the data needed for rendering - no heavy objects.
- Ptop
Config - Main ptop configuration