import { type Component, Container, type Focusable, getKeybindings, truncateToWidth, visibleWidth, wrapTextWithAnsi, } from "@earendil-works/pi-tui"; import { theme } from "../theme/theme.js"; import { keyText } from "./keybinding-hints.js"; import { MenuPanel, MenuSearchInput } from "./menu-panel.js"; import { shouldTreatAsBack } from "./modal-back.js"; export interface McpTokenPasteField { /** Catalog setup field id (the env var the manifest names — display only). */ id: string; /** Human prompt label derived from the field (e.g. "GitHub personal access token"). */ label: string; } export interface McpTokenPastePanelOptions { /** Service display label (e.g. "GitHub"); the panel title reads "Connect