Reference
Library
ESM TypeScript API. Importing runs nothing; only runApply and runUndo write.
import { scan, resolveTool, scanMcp, planFixes, preflight } from "wsl-shadow";
const report = scan({ required: ["node"] });
const npm = resolveTool("npm");
const fixes = planFixes(report);
if (report.exitCode !== 0) console.error(npm.status, npm.consequence);
ESM with types. Importing the module runs nothing. Only runApply and runUndo write.