feat(omo-codex): batch 94 (13 files)

This commit is contained in:
YeonGyu-Kim
2026-05-30 19:12:17 +09:00
parent b4655c18d7
commit 2a0d8822eb
13 changed files with 1048 additions and 0 deletions
@@ -0,0 +1,19 @@
import { spawn } from "node:child_process";
export async function defaultRunCommand(command, args, options) {
await new Promise((resolvePromise, reject) => {
const child = spawn(command, args, {
cwd: options.cwd,
stdio: "inherit",
});
child.once("error", reject);
child.once("exit", (code, signal) => {
if (code === 0) {
resolvePromise();
return;
}
const suffix = signal ? `signal ${signal}` : `exit code ${code}`;
reject(new Error(`${command} ${args.join(" ")} failed in ${options.cwd} with ${suffix}`));
});
});
}