Skip to content

Commit 9b17e63

Browse files
committed
fix(ci): run Claude scope probe through cmd on Windows
Refs #645. AIDD-Session-Id: 01a0ca9a-53ab-7ec2-bdc8-d6a3b3ae164c
1 parent 013ab0f commit 9b17e63

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎scripts/probe-claude-project-scope.cjs‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ const home = path.join(root, "home");
1111
const env = { ...process.env, HOME: home, CLAUDE_CONFIG_DIR: path.join(home, ".claude") };
1212

1313
function run(args) {
14-
const result = spawnSync("claude", args, { cwd: project, env, encoding: "utf8", timeout: 120000 });
14+
const result = spawnSync("claude", args, {
15+
cwd: project,
16+
env,
17+
encoding: "utf8",
18+
timeout: 120000,
19+
// npm exposes Claude as claude.cmd on Windows. The production adapter uses cmd.exe too.
20+
shell: process.platform === "win32",
21+
});
1522
if (result.error || result.status !== 0) {
1623
throw new Error(`claude ${args.join(" ")} failed: ${result.stderr || result.error?.message || result.status}`);
1724
}

0 commit comments

Comments
 (0)