UNPKG

@code-yeongyu/senpi

Version:

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

45 lines • 1.86 kB
import { Container, type Component, type Focusable, type TUI } from "@earendil-works/pi-tui"; import type { RpcSessionState } from "../rpc/rpc-types.ts"; import { type AttachStartup } from "./attach-startup.ts"; import { RecordRenderer } from "./record-renderer.ts"; /** What an attached TUI declares in `set_client_info`; it renders tool arguments only from `toolcall_end`. */ export declare const ATTACH_CLIENT_CAPABILITIES: readonly ["interactive_user", "question", "grant_select", "secret_input_v1"]; export declare function validateAttachTerminal(inputIsTTY: boolean | undefined, outputIsTTY: boolean | undefined): void; /** The RPC presentation owns no session runtime, provider, session file, or host process. */ export declare class AttachedTui extends Container implements Focusable { readonly transcript: RecordRenderer; readonly layoutRoot: Component; state: RpcSessionState | undefined; private readonly ui; private readonly statusText; private readonly status; private width; private readonly editor; private readonly dialogs; private readonly client; private sessionId; private connected; private attached; private closing; private streaming; private before; private loadingHistory; private buffering; constructor(ui: TUI, finish: () => void, options?: { readonly answerDeadlineMs?: number; }); get focused(): boolean; set focused(value: boolean); connect(address: string, ref: string, startup?: AttachStartup): Promise<void>; loadHistory(): Promise<void>; private readHistory; submit(text: string): Promise<void>; abort(): Promise<void>; close(): Promise<void>; handleInput(data: string): void; private record; private reportWidth; private showStatus; private perform; } //# sourceMappingURL=attach.d.ts.map