/** * Home screen, OpenCode style (packages/tui/src/routes/home.tsx): before the session has a * message, the transcript and sidebar give way to pi's own logo, the prompt (max 75 columns), a * tip, and a bottom bar with the directory, MCP count and version. layout.ts composes these with * pi's own prompt; this file renders the pieces. * * (pi logo, coral/blue/yellow) * * ┃ Ask anything… "Fix a TODO in the codebase" * ┃ 󰚩 BUILD Opus 5.5 Anthropic medium * ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ * tab agents ctrl+p commands * * ● Tip Press tab to cycle between Build and Plan agents * * ● Acme pi 1.1.0 · chassis 0.1.0 ~/git/pi-chassis main ● 6 MCP ⟲ "chassis" 2h ago ctrl+x r */ import type { Theme } from "@earendil-works/pi-coding-agent"; import type { UiState } from "./state.ts"; /** OpenCode's prompt width on the home screen (tui.prompt.max_width default). */ export declare const HOME_PROMPT_WIDTH = 75; /** OpenCode's home placeholders, shown as `Ask anything… ""`. */ export declare const PLACEHOLDERS: string[]; /** The pi logo's pixels (pi's own components/pi-logo-animation.js): c coral, b blue, y yellow. */ export declare const PI_PIXELS: string[]; /** * The pi logo scaled up: each logo pixel becomes `scale` columns by `scale` half-rows, drawn with * half blocks, so scale 3 gives 12 columns by 6 rows (a 12 by 6 cell logo). */ export declare function piLogoRows(theme: Theme, scale?: number): string[]; /** The logo, centred: pi's own logo (falls back to a plain "pi" when too narrow). */ export declare function renderLogo(theme: Theme, width: number): string[]; /** Tips, `{x}` marks the highlighted part (OpenCode: {highlight}…{/highlight}). */ export declare const TIPS: string[]; /** Splits a tip into plain and highlighted parts. */ export declare function parseTip(tip: string): { text: string; highlight: boolean; }[]; /** "● Tip …" (OpenCode: warning-coloured label, highlights in text, the rest muted), centred. */ export declare function renderTip(theme: Theme, width: number, index: number): string[]; /** * Bottom bar (OpenCode home/footer.tsx): 1 row of padding above and below, 2 columns at the sides; * the folder and branch (with the branch icon) muted and the MCP count with a coloured dot on the left; on the right, the most * recent other session in this directory and the leader key that resumes it. With `piVersion`, the * brand with the pi and chassis versions comes first on the same line. */ export declare function renderHomeFooter(state: UiState, theme: Theme, width: number, piVersion?: string): string[];