mirror of
https://github.com/morluto/rea
synced 2026-10-25 22:08:11 -04:00
d01ee7b19a
Join identity-verified PTY family cleanup and native exit before workspace removal, retaining failed cleanup capabilities for retry. Replace duplicate kill-and-reject loops with shared process ownership and deadlines. Capture configuration before setup using owned file handles and compare raw bytes. Preserve interactive cancellation, terminal restoration, redirected output, and selected inputs; remove the test-only forwarding export. Verified 122 focused cases, 9 README cases, build, static checks, docs, discovery, and duplication at 3.58%.
20 lines
642 B
TypeScript
20 lines
642 B
TypeScript
import type { PackageVerifierCommands } from "./verify-package-commands.mjs";
|
|
|
|
export interface SetupTerminalOptions {
|
|
readonly commands: Pick<PackageVerifierCommands, "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>;
|