UNPKG

@code-yeongyu/senpi

Version:

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

21 lines • 935 B
/** * Key dispatch for the ask-user question overlay. Split from the component to * keep every sibling under 250 LOC; handlers operate on the shared state and * the component's Inputs via an explicit context. */ import { type Input } from "@earendil-works/pi-tui"; import type { QuestionResponse } from "../../../core/extensions/types.ts"; import type { AskUserQuestionState } from "./ask-user-question-state.ts"; export interface AskUserKeyHandlerContext { state: AskUserQuestionState; ownAnswerInput: Input; commentInput: Input; finish(status: QuestionResponse["status"], autoResolvedAfterMs?: number): void; attemptSubmit(): void; openOwnAnswer(initialText?: string): void; commitOwnAnswer(): void; emitProgress(): void; updateAll(): void; } export declare function handleAskUserKeyInput(ctx: AskUserKeyHandlerContext, data: string): void; //# sourceMappingURL=ask-user-question-keys.d.ts.map