UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

34 lines • 1.3 kB
import { type Component, type KeybindingsManager, type SelectItem, type TUI } from "@earendil-works/pi-tui"; import { type Theme } from "../../../../modes/interactive/theme/theme.ts"; export interface McpManagerMenu { readonly title: string; readonly items: SelectItem[]; readonly details?: string; readonly empty?: string; readonly confirmLabel: string; readonly cancelLabel: string; readonly selected?: string; } /** A focused menu that rebuilds on MCP events, never on a polling timer. */ export declare class McpManagerView implements Component { private content; private inputHandler; private cancelMenu; private rebuild; private width; private rows; private disposed; private readonly tui; private readonly theme; private readonly keybindings; constructor(tui: TUI, theme: Theme, keybindings: KeybindingsManager); menu(build: () => McpManagerMenu | Promise<McpManagerMenu>, subscribe?: (listener: () => void) => () => void): Promise<string | undefined>; status(title: string, message: string): void; get columns(): number; private setContent; handleInput(data: string): void; render(width: number): string[]; invalidate(): void; dispose(): void; } //# sourceMappingURL=manager-view.d.ts.map