@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
21 lines • 905 B
TypeScript
import { type HostDaemonPaths } from "./host-daemon-paths.ts";
export interface DrainHostOptions {
readonly socket: string;
/** Drain this generation instead of the one the pointer names. */
readonly instanceId?: string;
/** Wait up to this long for the drained generation to exit, and report whether it did. */
readonly waitMs?: number;
readonly timeoutMs?: number;
}
export type DrainHostResult = {
readonly action: "drained";
readonly pid: number;
readonly instanceId?: string;
/** Present when the caller waited: whether the generation's process exited within `waitMs`. */
readonly exited?: boolean;
} | {
readonly action: "refuse";
readonly reason: "unknown_owner" | "drain_unsupported";
};
export declare function drainHost(paths: HostDaemonPaths, options: DrainHostOptions): Promise<DrainHostResult>;
//# sourceMappingURL=host-stop-drain.d.ts.map