mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -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%.
30 lines
937 B
TypeScript
30 lines
937 B
TypeScript
import type { PackageVerifierCommands } from "./lib/package-command-owner.mjs";
|
|
|
|
/** Validate a live registration and its byte-identical pre-setup backup. */
|
|
export function assertClientConfig(
|
|
cli: string,
|
|
configPath: string,
|
|
original: Uint8Array,
|
|
): Promise<void>;
|
|
|
|
/** Verify setup using the parent's explicit command owner. */
|
|
export function verifyPackageSetup(input: {
|
|
readonly commands: Pick<
|
|
PackageVerifierCommands,
|
|
"run" | "runWithStatus" | "adopt"
|
|
>;
|
|
readonly cli: string;
|
|
readonly packageRunnerCli: string;
|
|
readonly environment: NodeJS.ProcessEnv;
|
|
readonly home: string;
|
|
readonly npxLog: string;
|
|
readonly claudeConfig: string;
|
|
readonly codexConfig: string;
|
|
readonly cursorConfig: string;
|
|
readonly codexTarget: string;
|
|
readonly cursorTarget: string;
|
|
readonly supportedSetupHost: boolean;
|
|
readonly hopperSetupSupported: boolean | undefined;
|
|
readonly root: string;
|
|
}): Promise<void>;
|