/** * Shared TUI formatting primitives for Pisces extension notify surfaces. * * Rules: * - Use `─` (U+2500) for all dividers — never `═` (U+2550). * - SYM entries are the single source-of-truth for status symbols. * - `check()` always emits two spaces between the symbol and the text so * all check lines align regardless of which symbol is used. */ export const SYM = { ok: "✓", fail: "✗", warn: "⚠", skip: "·" } as const; export type SymKey = keyof typeof SYM; export const SEP = "─".repeat(40); /** A single check-list line: ` [ ← ]` */ export function check(state: SymKey, text: string, hint?: string): string { return `${SYM[state]} ${text}${hint ? ` ← ${hint}` : ""}`; } /** A key-value row with a 12-char padded label: `