UNPKG

@code-yeongyu/senpi

Version:

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

31 lines • 1.39 kB
import { Container, type TUI } from "@earendil-works/pi-tui"; import type { KeybindingsManager } from "../../core/keybindings.ts"; import type { RpcExtensionUIRequest, RpcExtensionUIResponse } from "../rpc/rpc-types.ts"; /** Owns only the visible dialog; the endpoint owns its resolution and lifetime. */ export declare class AttachDialogs extends Container { private readonly queue; private readonly seen; private readonly settled; private current; private closed; private readonly ui; private readonly keys; private readonly answer; private readonly report; private readonly focusEditor; constructor(ui: TUI, keys: KeybindingsManager, answer: (response: RpcExtensionUIResponse) => Promise<void>, report: (message: string) => void, focusEditor: () => void); get active(): boolean; accept(request: RpcExtensionUIRequest): void; /** The endpoint settled the request (another client answered it): it never comes back. */ resolve(id: string): void; handleInput(data: string): void; dispose(): void; private dismiss; /** * The dialog leaves while its answer is in flight and comes back unless the endpoint accepted it. * A request the endpoint no longer waits on (settled elsewhere, or gone) stays dismissed. */ private submit; private showNext; } //# sourceMappingURL=attach-dialogs.d.ts.map