/** * Pure, TUI-free rendering of the Detail window (ADR-0001). * * Given a highlighted completion candidate and window state, produces the * lines to render in the 5-line detail window above the input box. * No pi imports — this is the single testable seam of the extension. */ import * as os from "node:os"; export interface DetailItem { label: string; kind: string; description: string; path?: string; invocation?: "model" | "human"; } /** * Rendered lines for the detail window: `[header, ...contentLines]`. * * - Returns `[]` when `item` is null or its description is empty/whitespace. * - Header is `