github-llm-council 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +5 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -7,10 +7,13 @@ import path from 'node:path';
|
|
|
7
7
|
const __filename = fileURLToPath(import.meta.url);
|
|
8
8
|
const __dirname = path.dirname(__filename);
|
|
9
9
|
|
|
10
|
-
// Check for GitHub Copilot CLI before starting
|
|
10
|
+
// Check for GitHub Copilot CLI before starting (cross-platform)
|
|
11
11
|
function checkCopilotCLI() {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
// Use 'where' on Windows, 'which' on Unix
|
|
14
|
+
const isWindows = process.platform === 'win32';
|
|
15
|
+
const checkCmd = isWindows ? 'where copilot' : 'which copilot';
|
|
16
|
+
execSync(checkCmd, { stdio: 'pipe' });
|
|
14
17
|
return true;
|
|
15
18
|
} catch {
|
|
16
19
|
return false;
|