diff --git a/src/services/evaluator.ts b/src/services/evaluator.ts index 6a30001..d9356bc 100644 --- a/src/services/evaluator.ts +++ b/src/services/evaluator.ts @@ -224,6 +224,10 @@ async function loadConfig(configPath: string): Promise { } async function findCopilotCliPath(): Promise { + if (process.platform === "win32") { + return "copilot"; + } + // Try standard PATH first try { const { stdout } = await execFileAsync("which", ["copilot"], { timeout: 5000 }); diff --git a/src/services/instructions.ts b/src/services/instructions.ts index a1ea882..3ff216f 100644 --- a/src/services/instructions.ts +++ b/src/services/instructions.ts @@ -90,6 +90,10 @@ Output ONLY the markdown content for the instructions file.`; const execFileAsync = promisify(execFile); async function findCopilotCliPath(): Promise { + if (process.platform === "win32") { + return "copilot"; + } + // Try standard PATH first try { const { stdout } = await execFileAsync("which", ["copilot"], { timeout: 5000 }); @@ -122,6 +126,10 @@ async function findCopilotCliPath(): Promise { async function assertCopilotCliReady(): Promise { const cliPath = await findCopilotCliPath(); + if (process.platform === "win32" && cliPath === "copilot") { + return cliPath; + } + try { await execFileAsync(cliPath, ["--version"], { timeout: 5000 }); } catch {