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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user