UNPKG

@code-yeongyu/senpi

Version:

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

21 lines • 1.33 kB
import type { PendingInput, PendingInputFailure, PendingInputMode, SupersededVersion } from "./pending-input-types.ts"; export type PendingInputState = "queued" | "edited" | "sending" | "delivered" | "removed" | "failed"; export type PendingInputAction = "edit" | "remove" | "copy" | "retry" | "check_delivery"; export type PendingInputStatusCode = "queued_follow_up" | "queued_steer" | "edited" | "sending" | "delivered" | "applied" | "removed" | "failed" | "delivery_unconfirmed"; export interface PendingInputProjection { readonly clientMessageId: string; readonly state: PendingInputState; readonly text: string; readonly requestedMode: PendingInputMode; readonly revision: number; readonly statusCode: PendingInputStatusCode; readonly statusText: string; readonly actions: readonly PendingInputAction[]; /** True while the input still waits; surfaces draw the pending outline only then. */ readonly pendingDecoration: boolean; readonly failure?: PendingInputFailure; readonly supersededVersions: readonly SupersededVersion[]; } /** What every surface renders for one input; the actions offered are decided here, never by a client. */ export declare function projectPendingInput(input: PendingInput): PendingInputProjection; //# sourceMappingURL=pending-input-projection.d.ts.map