UNPKG

@code-yeongyu/senpi

Version:

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

24 lines • 987 B
import { type ToolChildMessage, type ToolChildMessageOf } from "./protocol.ts"; export declare class WakeAdmissionError extends Error { readonly code = "wake_too_large"; constructor(bytes: number); } /** * Wake notifications awaiting `wake_ack`, bounded by count and summed bytes. A wake past either bound waits, FIFO, * until an ack frees room: wakes are durable wake-source demand and are never dropped. */ export declare class WakeAdmission { #private; get pending(): number; get blocked(): number; send(wakeId: string, bytes: number): Promise<void>; ack(wakeId: string): void; } /** Per-second budget for `trace` frames, the only lossy class: an over-budget frame is dropped and counted. */ export declare class TraceBudget { #private; get dropped(): number; admit(_frame: ToolChildMessageOf<"trace">, nowMs: number): boolean; } export declare function isLossy(message: ToolChildMessage): boolean; //# sourceMappingURL=flow-control.d.ts.map