UNPKG

@code-yeongyu/senpi

Version:

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

29 lines • 1.38 kB
import type { RecoveryCarrier } from "../../core/session-recovery-identity.ts"; /** * The producer half of RULING-36a/40: one lifetime ordinal per acceptance unit (on a worker, the S04a output-frame * ordinal itself, never reset) and each message's first canonical ordinal, bound by the producer until its outer end. * Every message ends with a legacy `message_end` (completion, error and abort alike), so that record releases the * binding even when no canonical terminal paired with it; an epoch's end releases them all. */ export declare class CompactProducerStamp { private next; private readonly first; private last; stamp(carrier: RecoveryCarrier | undefined, canonical: { readonly type: string; } | undefined, legacy?: object): { readonly ordinal: number; readonly firstOrdinal?: number; }; /** * The unit stamped last becomes the final commit frame of a transfer whose `prefix` fragment frames take the ordinals * before it (RULING-64): its ordinal moves past them, and so does a first-ordinal binding it started itself. */ defer(prefix: number): { readonly ordinal: number; readonly firstOrdinal?: number; }; /** A replacement starts a new epoch, in which no message of the old one continues. */ forget(): void; } //# sourceMappingURL=compact-producer-stamp.d.ts.map