fix(react-edit-benchmark): fixed incorrect path resolution for CLI module using Bun.fileURLToPath()

- Fixed incorrect path resolution for CLI module by using Bun.fileURLToPath() to convert import.meta.resolve() result to a proper file path.
- Reordered constant declarations to ensure TMP_DIR is initialized before CLI_PATH which depends on it.
- Updated scripts/repro-stuck.ts to use consistent CLI path resolution with Bun.fileURLToPath().
This commit is contained in:
can1357
2026-02-12 15:10:17 +01:00
parent 35dd7b9060
commit 0b492d9fbb
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
import { Subprocess } from "bun";
import * as path from "node:path";
const CLI_PATH = path.resolve(import.meta.dir, "../packages/coding-agent/src/cli.ts");
const CLI_PATH = Bun.fileURLToPath(import.meta.resolve("@oh-my-pi/pi-coding-agent/cli"));
const TRACE_LOADER = path.resolve(import.meta.dir, "trace-loader.ts");
const POLL_INTERVAL = 200;