UNPKG

@code-yeongyu/senpi

Version:

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

24 lines • 819 B
export interface SessionRegistryReapHandle { cancel(): void; unref(): void; } export type ReapCandidate = { generation: number; lastUsedAt: number; }; export type SessionReapDeps = { now: () => number; scheduleTimer: (callback: () => void, delayMs: number) => SessionRegistryReapHandle; idleTtlMs: number; candidate: (senpiSessionId: string, generation: number) => ReapCandidate | undefined; expire: (senpiSessionId: string) => void; }; export declare class SessionReapScheduler { private readonly scheduled; private readonly deps; constructor(deps: SessionReapDeps); arm(senpiSessionId: string, generation: number, delayMs?: number): void; cancel(senpiSessionId: string, generation: number): void; private fire; } //# sourceMappingURL=session-reaper.d.ts.map