(prefix = "codex-plugin-test-")
| 5 | import { spawnSync } from "node:child_process"; |
| 6 | |
| 7 | export function makeTempDir(prefix = "codex-plugin-test-") { |
| 8 | return fs.mkdtempSync(path.join(os.tmpdir(), prefix)); |
| 9 | } |
| 10 | |
| 11 | export function writeExecutable(filePath, source) { |
| 12 | fs.writeFileSync(filePath, source, { encoding: "utf8", mode: 0o755 }); |
no outgoing calls