UNPKG

@code-yeongyu/senpi

Version:

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

37 lines • 1.72 kB
import type { McpFormInput, McpFormOutcome } from "../../core/mcp-form-types.ts"; import { McpFormDialog, type McpFormClock, type McpFormHolder } from "./mcp-form-dialog.ts"; type Termination = "presentation_lost" | "presentation_timeout" | "operation_aborted"; /** * One form offered to every holder current when it reached the head of its binding's FIFO (D11 S3-3b). * One synchronous terminal latch for the whole group: the first valid human action, or the host termination, * settles it once; every other holder's dialog then resolves with the winning reason. */ export declare class McpFormGroup { readonly id: `${string}-${string}-${string}-${string}-${string}`; readonly input: McpFormInput; readonly result: Promise<McpFormOutcome>; private readonly deadline; private readonly context; private settled; private presented; private readonly members; private readonly cleanups; private resolve; constructor(input: McpFormInput, context: { readonly clock: McpFormClock; readonly sessionId: string; readonly admit: () => void; }); join(holder: McpFormHolder): McpFormDialog; start(): void; live(): boolean; /** Presentation by any holder decides the cancel-versus-processing-failure rule for the group. */ markPresented(): void; /** A lost holder leaves; the group ends with `presentation_lost` only when its last holder is gone. */ leave(dialog: McpFormDialog): void; /** Internal-only: never called with a cause decoded from RPC. */ terminate(cause: Termination): void; settle(outcome: McpFormOutcome, winner?: McpFormDialog): void; } export {}; //# sourceMappingURL=mcp-presenter-form-group.d.ts.map