@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
28 lines • 1.16 kB
TypeScript
/** A worker's offer of a sealed request to the host's holders (D11 secret phase 5.5); the host signs and fans it out. */
export interface SealedOfferRecord {
readonly type: "secret_sealed_offer";
readonly hpkePk: string;
readonly title: string;
readonly placeholder?: string;
readonly deadlineAtMs: number;
}
export declare function isSealedOffer(record: object): record is SealedOfferRecord;
/**
* The secret ids one worker holds on the host, and the frames each may still send (senpi#5192).
* Secret frames travel on the control exchange, outside the payload frame bound, so every count and size is bounded here.
*/
export declare class WorkerSecretIds {
private readonly sent;
has(id: string): boolean;
ids(): Iterable<string>;
admitsNew(): boolean;
add(id: string): void;
/**
* A live id's request, settled record and sealed offer (D11 secret phase 5.5), each at most once and within
* `secretFrameBytes`; a refusal spends nothing.
*/
admitFrame(id: string, record: object): boolean;
forget(id: string): void;
clear(): void;
}
//# sourceMappingURL=session-worker-secrets.d.ts.map