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.
Files changed (2) hide show
  1. package/bin/cli.js +5 -2
  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
- execSync('copilot --version', { stdio: 'pipe' });
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-llm-council",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
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",