Files
rea/scripts/lib/verify-commands.mjs
T
morluto 0402012a95 fix(verifiers): share command ownership and preserve stdin
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.
2026-10-24 19:16:42 +08:00

14 lines
438 B
JavaScript

let implementation;
/** Load the development command owner and its canonical process source graph. */
export async function createVerifierCommands(options = {}) {
implementation ??= import("tsx/esm/api").then(({ tsImport }) =>
tsImport(
new URL("./verifier-command-owner.mts", import.meta.url).href,
import.meta.url,
),
);
const module = await implementation;
return module.createVerifierCommands(options);
}