UNPKG

@code-yeongyu/senpi

Version:

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

21 lines • 1.3 kB
import { type DaemonPidFile } from "../../utils/process-identity.ts"; import { type HostDaemonPaths } from "./host-daemon-paths.ts"; export interface LegacyHost { readonly record: DaemonPidFile; readonly socket: string; } /** * An ensure's whole dealing with a legacy host: nothing to do, or drain an idle one and wait until it * is gone. Returns the refusal detail when the ensure must refuse `legacy_host` instead. */ export declare function retireIdleLegacyHost(paths: HostDaemonPaths, probe: (pid: number) => Promise<string | undefined>, drainTimeoutMs?: number): Promise<string | undefined>; export declare function readLegacyHost(paths: HostDaemonPaths): Promise<LegacyHost | undefined>; /** The legacy host serving `socket`, when its record PROVES which process that is; otherwise nothing. */ export declare function provenLegacyOwner(paths: HostDaemonPaths, socket: string): Promise<{ pid: number; processStartTime: string; } | undefined>; /** Why a proven legacy host that holds work is left alone, and the command that retires it. */ export declare function busyLegacyHostDetail(pid: number, socket: string, sessions: number | undefined): string; export declare function describeSessions(sessions: number | undefined): string; //# sourceMappingURL=host-legacy.d.ts.map