UNPKG

@code-yeongyu/senpi

Version:

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

23 lines • 1.32 kB
import type { RpcSessionEntry } from "./session-registry.ts"; export interface SessionTeardownHost { readonly closeGraceMs: number; get(handle: string): RpcSessionEntry | undefined; delete(handle: string): void; releaseReservation(key: string): Promise<void>; /** Publishes that this path is retained with no client attached, for the cross-generation claim. */ markDetached(key: string): void; /** The registry's clock, so the detach stamp shares the sweep's timeline. */ now(): number; sync(): void; } export declare function beginSessionClose(host: SessionTeardownHost, handle: string, onRole?: (finalizer: boolean) => void, options?: { detach?: boolean; }): RpcSessionEntry; /** * Close waits for the claim file to be gone, but a removal that never settles (a wedged mount) * must not hold the close past the grace window: the close completes and the failure is reported. */ export declare function releaseWithinGrace(host: Pick<SessionTeardownHost, "closeGraceMs" | "releaseReservation">, handle: string, key: string): Promise<void>; export declare function closeSession(host: SessionTeardownHost, handle: string): Promise<void>; export declare function closeMarkedSession(host: SessionTeardownHost, handle: string): Promise<void>; //# sourceMappingURL=session-teardown.d.ts.map