import type { Theme, ThemeColor } from "@earendil-works/pi-coding-agent"; // Theme-less renders (QA, exports) get plain text; previews must never emit // raw ANSI when no theme is present. export function previewStyle( theme: Theme | undefined, color: ThemeColor, text: string ): string { return theme === undefined ? text : theme.fg(color, text); }