@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
16 lines • 834 B
TypeScript
import { type WriterProbes } from "../../core/session-writer-claims.ts";
export interface ResidentWriter {
readonly host: string;
readonly pid: number;
readonly bootAtMs: number;
readonly processStartedAtMs: number;
}
export declare function currentResidentWriter(probes?: WriterProbes): ResidentWriter;
export declare function isResidentWriter(value: unknown): value is ResidentWriter;
/**
* A liveness probe for one reopen watch, which polls: a writer found gone stays gone, and a live pid's start time
* (a process spawn on some platforms) is read once. A writer on another host cannot be probed from here, so it is
* never displaced.
*/
export declare function residentWriterProbe(probes?: WriterProbes): (writer: ResidentWriter) => Promise<boolean>;
//# sourceMappingURL=host-handover-resident-writer.d.ts.map