github-llm-council 2.0.2 → 2.0.4
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 +9 -3
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -7,12 +7,18 @@ 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
|
+
// Try to run copilot with a quick command
|
|
14
|
+
// Use shell: true on Windows to ensure proper command resolution
|
|
15
|
+
execSync('copilot --help', {
|
|
16
|
+
stdio: 'pipe',
|
|
17
|
+
shell: true,
|
|
18
|
+
timeout: 5000
|
|
19
|
+
});
|
|
14
20
|
return true;
|
|
15
|
-
} catch {
|
|
21
|
+
} catch (err) {
|
|
16
22
|
return false;
|
|
17
23
|
}
|
|
18
24
|
}
|