UNPKG

@code-yeongyu/senpi

Version:

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

21 lines • 1.28 kB
import type { SessionHold } from "./engine-turn-hold.ts"; import type { SessionEntry } from "./session-manager.ts"; /** The hold a superseded host's drain puts on a session nobody is attached to (senpi#3114). */ export declare const HOST_DRAIN_HOLD_KEY = "host-drain"; /** Why a restart left an engine-started run held: it keeps being cut with no progress, or it reached the limit. */ export type RestartHoldReason = "repeated_restart_no_progress" | "repeated_restart_limit"; /** The data the interrupted-run hold carries on a session the restart left held for a repeated restart. */ export declare function restartHoldData(continued: boolean, branch: () => readonly SessionEntry[]): { readonly reason: RestartHoldReason; } | undefined; /** * `resume`: the restart's holds are the only ones, so the session resumes through the ordinary Resume path. `release`: * another hold stays (a person's Stop, an unattended hold the session already had), so only the drain hold is dropped. */ export declare function restartRelease(holds: readonly SessionHold[], branch: () => readonly SessionEntry[]): { readonly resume: true; readonly interruptedRun: boolean; } | { readonly release: readonly string[]; } | undefined; //# sourceMappingURL=host-restart-continuation.d.ts.map