liujie
2026-08-27 c919774537eceacb457b081782029efed93eb28c
1
2
3
4
5
6
7
8
const fs = require('fs');
const { spawnSync } = require('child_process');
const patch = fs.readFileSync('F:/code/TourGuide/.tmp-apply.patch', 'utf8');
const exe = 'C:/Users/Admin/AppData/Local/OpenAI/Codex/bin/3b5d676fd5f36bba/codex.exe';
const result = spawnSync(exe, ['--codex-run-as-apply-patch', patch], { encoding: 'utf8' });
process.stdout.write(result.stdout || '');
process.stderr.write(result.stderr || '');
process.exitCode = result.status ?? 1;