UNPKG

@code-yeongyu/senpi

Version:

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

29 lines • 1.23 kB
/** * RULING-99: a session's single counter, not a socket/epoch counter. Registries bind the durable identity before * admission. Anonymous standalone lanes keep a memory counter; a failed durable binding NEVER falls back to it. * A lifetime kernel lock excludes concurrent owners, including other hosts. A crash releases the lock, but burns * the whole fsynced range. Synchronous freezes issue only reserved values, preserving cut/suffix ordering. */ export declare class SessionGenerations { private issued; private ceiling; private failed; private closed; private binding; private path; private release; private pending; private readonly dir; private readonly agentDir; constructor(agentDir: string); /** Replacement burns the old range and reserves above both the lane ceiling and the target's durable floor. */ bind(sessionId: string): Promise<void>; private initialize; /** Exhaustion while refill is pending, corruption, contention and failed persistence all refuse issuance. */ next(): number | undefined; private reserve; private unavailable; idle(): Promise<void>; close(): void; } //# sourceMappingURL=compact-session-generations.d.ts.map