130const plan = planResolvedCommandSpawn(executable, args, process.env);
131const r = spawnSync(plan.cmd, plan.args, { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"], shell: plan.shell, ...(plan.windowsVerbatimArguments ? { windowsVerbatimArguments:...
132 return Promise.resolve({ code: r.status ?? (r.error ? 127 : 1), stdout: r.stdout ?? "" });
133 }
⋯
139statSize, isFile, isDirectory, realpath, readText: (f) => fs.readFileSync(f, "utf8"), writeState,
140writeStderr: (line) => process.stderr.write(line),
141listSecrets: stubs ? async () => { throw new Error("HQ_JOB_TEST_STUB blocked real hq secrets list"); } : listSecrets,
142commandExists: (name) => hasProbeCommand(name, env),
143fetcher: stubs ? async () => { throw new Error("HQ_JOB_TEST_STUB blocked re