Expand description
Presentation layer — one place owns the palette, table style, terminal
width, color detection, and progress indicators. Commands call semantic
helpers (project, timestamp, emphasis, …) rather than raw
owo_colors methods so the palette can change in one place.
Structs§
Enums§
Functions§
- apply_
color_ choice - banner
- cell_
cost - cell_
count - cell_
dim - cell_
model - cell_
plain - cell_
project - cell_
provider - Provider label cell, colored per agent so mixed result sets read at a glance.
- cell_
tool - classify_
text_ line - Color a plain text log line based on keywords it contains (fallback for
non-JSON
watchlines). - cost
- Colored cost for non-table contexts (summary). Green dollar figure.
- count
- Colored count for non-table contexts. No special color; just formatted.
- emphasis
- fmt_
cost - Format a cost as
$12,345.67— two decimals, thousands separator. Negative values render as-$5.00, not$-5.00. Amounts smaller than one cent but non-zero fall back to four decimals ($0.0040) so per-session costs don’t silently round to$0.00. - fmt_
count - Format an integer with comma thousands separators:
12,345. - header
- Build bold + cyan header cells. Comfy-table renders these as ANSI when
the table’s styling is enabled;
force_no_tty(called bytable()under--color never) suppresses them cleanly. - level_
debug - level_
error - level_
warn - match_
highlight - model_
name - note
- A dim, secondary caption printed beneath a table (e.g. a truncation hint).
- project
- project_
headline - record_
type - Color a session-record
typestring — green for user, blue for assistant, dimmed for system, yellow for other. - right_
align - Right-align the specified column indices. Use for numeric columns so digits line up on the decimal.
- role
- section_
title - session_
id - spans_
providers - Whether a result set spans more than one provider — used to decide if a table should carry a Provider column (omitted when everything is one provider, e.g. a Claude-only user, to keep tables narrow).
- table
- Preconfigured comfy-table with a minimal style: no outer box, no vertical dividers, no per-row separators — just a horizontal rule under the header. Dynamic arrangement fits content to the current terminal width.
- timestamp
- tool_
name - total_
row - Build a bold summary row (e.g. “TOTAL”). Cells inherit column alignment.