Files
morluto d01ee7b19a fix(verifiers): own setup terminal and snapshot lifetimes
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%.
2026-10-24 17:54:18 +08:00

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>;