mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
0402012a95
Move command and retained resource lifetimes into a shared verifier owner, keeping package workspace release as a separate dependency. Migrate Pi and Hermes verification to that owner while preserving open pipes, explicit EOF, diagnostics, and retained labs. Require positive writable finalization before accepting EOF delivery. Cover premature close, opaque failures, late ownership delivery, mixed cleanup outcomes, exact retry, and real descendant cleanup with authored process boundaries.
20 lines
627 B
TypeScript
20 lines
627 B
TypeScript
import type { VerifierCommands } from "./verifier-command-owner.mjs";
|
|
|
|
export interface SetupTerminalOptions {
|
|
readonly commands: Pick<VerifierCommands, "adopt">;
|
|
readonly command: string;
|
|
readonly environment: NodeJS.ProcessEnv;
|
|
readonly root: string;
|
|
readonly unchangedPaths: readonly string[];
|
|
}
|
|
|
|
/** Require positive canonical-input and echo observations. */
|
|
export function terminalModesRestored(termios: unknown): boolean;
|
|
|
|
export function verifyInteractiveSetup(
|
|
options: SetupTerminalOptions,
|
|
): Promise<void>;
|
|
export function verifyRedirectedStdoutSetup(
|
|
options: SetupTerminalOptions,
|
|
): Promise<void>;
|