Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/services/evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ async function loadConfig(configPath: string): Promise<EvalConfig> {
}

async function findCopilotCliPath(): Promise<string> {
if (process.platform === "win32") {
return "copilot";
}

// Try standard PATH first
try {
const { stdout } = await execFileAsync("which", ["copilot"], { timeout: 5000 });
Expand Down
8 changes: 8 additions & 0 deletions src/services/instructions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ Output ONLY the markdown content for the instructions file.`;
const execFileAsync = promisify(execFile);

async function findCopilotCliPath(): Promise<string> {
if (process.platform === "win32") {
return "copilot";
}

// Try standard PATH first
try {
const { stdout } = await execFileAsync("which", ["copilot"], { timeout: 5000 });
Expand Down Expand Up @@ -122,6 +126,10 @@ async function findCopilotCliPath(): Promise<string> {
async function assertCopilotCliReady(): Promise<string> {
const cliPath = await findCopilotCliPath();

if (process.platform === "win32" && cliPath === "copilot") {
return cliPath;
}

try {
await execFileAsync(cliPath, ["--version"], { timeout: 5000 });
} catch {
Expand Down