@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
13 lines • 872 B
TypeScript
import type { RpcCommand } from "./rpc-types.ts";
export interface AdmissionReplyScope {
readonly id?: string;
readonly admissionId?: string;
readonly peer?: string;
}
/** Bounded reply identity, not the command body or a retained request index, crosses an isolate. */
export declare function captureAdmissionReply(): AdmissionReplyScope | undefined;
export declare function withAdmissionReply<T>(scope: AdmissionReplyScope | undefined, action: () => T): T;
/** Request scope, not a retained request index: async session replies keep their caller's route. */
export declare function withAdmissionRequest<T>(command: RpcCommand, peer: string | undefined, action: () => T): T;
export declare function replyAdmission(id: string, peer: string | undefined, routes: readonly string[]): string | null | undefined;
//# sourceMappingURL=compact-admission-reply.d.ts.map