@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 1.08 kB
TypeScript
import type { StartupClock, StartupOutcome } from "./host-startup-policy.ts";
export type StartupFailure = Exclude<StartupOutcome, {
readonly kind: "ready";
}>;
export interface StartupFinalReport {
readonly outcome: StartupFailure;
readonly cleanup: "completed" | "incomplete";
readonly detail: string;
}
export declare function createStartupFinalizer(options: {
readonly clock: StartupClock;
/** C: the failed-start cleanup allowance; startup progress never renews it. */
readonly cleanupBudgetMs: number;
/** Owned teardown of this attempt's own resources; it must leave live evidence in place when it cannot prove death. */
readonly cleanup: () => Promise<void>;
}): (outcome: StartupFailure) => Promise<StartupFinalReport>;
/** One failed `startHost` attempt, settled once: owned cleanup inside the failed-start allowance C at the resolved stall setting. */
export declare function finalizeFailedStart(outcome: StartupFailure, cleanup: () => Promise<void>): Promise<StartupFinalReport>;
//# sourceMappingURL=host-startup-finalizer.d.ts.map