UNPKG

@code-yeongyu/senpi

Version:

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

21 lines • 999 B
/** * The relay host's stdin path (its `input.ts`, ported): one input queue per handle so writes never interleave; `paste` * brackets the text when the program turned bracketed paste on; named keys go one at a time KEY_GAP_MS apart (a TUI * reading escape sequences needs the gap); with `expectActivityMs` the effect reports whether output followed. */ import type { After, LiveHandle } from "./live-handle.ts"; /** `ctrl+c`, `alt+x`, `enter`, a single character; undefined for a key this encoder does not know. */ export declare const encodeKey: (key: string) => Uint8Array | undefined; export type StdinInput = Readonly<{ data?: Uint8Array; keys?: readonly Uint8Array[]; paste?: boolean; }>; export type StdinEffect = Readonly<{ acceptedBytes: number; observed?: boolean; }>; export declare const createInputQueues: (after: After) => { write: (h: LiveHandle, input: StdinInput, expectMs?: number) => Promise<StdinEffect>; }; //# sourceMappingURL=terminal-input.d.ts.map