Files
rea/scripts/lib/verify-commands.mjs
T
morluto 48ff37f6ea fix(verifiers): consolidate shared helper ownership
Use JSON.parse directly in package verification and retain one parsed Cursor recovery snapshot. Route native command source loading through the shared transform-service owner so completed command cleanup leaves no transform child.

Preserve JSONC validation and caller inputs. Cover the actual public source-loading lifecycle with an authored command and verified process lineage.
2026-10-24 22:28:39 +08:00

14 lines
460 B
JavaScript

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