@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 1.05 kB
TypeScript
import type { SealedAnswerReply, SealedLatch } from "./secret-input-requests.ts";
import type { SealedHolder, SealedSecretSource } from "./secret-sealed-holders.ts";
/** What one pending or settled request offers a sealed answer: its holder snapshot and its session's latch. */
export interface SealedAnswerTarget {
readonly sealed: ReadonlySet<SealedHolder>;
readonly latch: SealedLatch | undefined;
}
/**
* An `mcp_presenter_secret_answer` from `connection` (D11 secret phase 7.1), for an RPC host and a terminal alike:
* step 1 the shape, step 2 the sender holds an eligible grant in the request's snapshot, step 3 a settled request
* answers from its receipt, steps 4 and 5 the authority's checks; the latch then decides (steps 3 and 6 again, at the
* claim).
*/
export declare function answerSealedFrame(connection: string, value: unknown, source: SealedSecretSource | undefined, target: (uiRequestId: string) => SealedAnswerTarget | undefined): Promise<SealedAnswerReply>;
//# sourceMappingURL=secret-sealed-answer-route.d.ts.map