UNPKG

@code-yeongyu/senpi

Version:

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

25 lines • 1.33 kB
import type { SealedAnswer, SealedAnswerReply, SecretInputRoute } from "./secret-input-requests.ts"; import type { SessionWorkerToHost } from "./session-worker-protocol.ts"; type Exchange = (message: (signal: SharedArrayBuffer) => SessionWorkerToHost) => void; /** * A worker isolate's secret-prompt route (senpi#5192; D11 secret phase 5.5). The host selects the presenter and * authenticates sealed answers; this isolate keeps the latch, the per-request key, the receipts and the step-up `jti` * cache, and claims, opens and settles here. */ export declare class WorkerSecretRoutes { readonly cancels: Map<string, () => void>; private latch?; /** Step-up `jti`s admitted beside the receipts, after the replay check (5.5, gate r2 L2). */ private readonly jtis; private readonly exchange; private readonly currentConnection; constructor(exchange: Exchange, currentConnection: () => string | undefined); route(): SecretInputRoute; /** * 7.1 steps 3 and 6 for an answer the host authenticated, at this isolate's latch. The grant check is the host's * step 2 followed by this one request (5.5): the isolate has no grants. */ answer(answer: SealedAnswer): SealedAnswerReply | Promise<SealedAnswerReply>; } export {}; //# sourceMappingURL=session-worker-secret-route.d.ts.map