github-llm-council 2.0.3 → 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.
Files changed (2) hide show
  1. package/bin/cli.js +8 -5
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -10,12 +10,15 @@ const __dirname = path.dirname(__filename);
10
10
  // Check for GitHub Copilot CLI before starting (cross-platform)
11
11
  function checkCopilotCLI() {
12
12
  try {
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' });
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
+ });
17
20
  return true;
18
- } catch {
21
+ } catch (err) {
19
22
  return false;
20
23
  }
21
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-llm-council",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Watch multiple AI models debate side-by-side using GitHub Copilot",
5
5
  "type": "module",
6
6
  "main": "dist/src/server.js",