@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
17 lines • 624 B
TypeScript
/**
* Bounded GC of stale leases and empty manifests in the shared per-cwd terminal state dir.
*/
import { type LeaseSelfIdentity } from "./manifest-lease.ts";
export declare function sweepTerminalStateDir(dir: string, options: {
self: LeaseSelfIdentity;
keep: ReadonlySet<string>;
limit?: number;
isProcessAlive?: (pid: number) => boolean;
readProcessStartMs?: (pid: number) => Promise<number | undefined>;
readdir?: (dir: string) => Promise<string[]>;
}): Promise<{
examined: number;
removedLeases: number;
removedManifests: number;
}>;
//# sourceMappingURL=terminal-state-gc.d.ts.map