docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Creates human-readable status lines that stack nested emphasis styles while rendering multiple message segments.
highlightIndex points to a message part, that part is wrapped in a contrasting nested style without breaking the surrounding base style, even across newline boundaries. Example: label "deploy", parts ["pushing", "to", "prod"], highlightIndex = 2 renders a distinct accent on "prod" while keeping the rest uniformly styled. @testaddSpacer is true, inserts a blank spacer line after the header (if any) before the first status line; styles reopen correctly for each subsequent line. @testexport interface StatusLine {
label: string;
parts: string[];
highlightIndex?: number;
}
export interface FormatOptions {
header?: string;
addSpacer?: boolean;
}
export function formatStatus(lines: StatusLine[], options?: FormatOptions): string;All output lines should be joined with \n and must not end with a trailing newline.
Provides chained styling for colored terminal text with nested segments.