github-llm-council 2.0.0 → 2.0.2

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 +34 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1,12 +1,45 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { spawn } from 'node:child_process';
3
+ import { spawn, execSync } from 'node:child_process';
4
4
  import { fileURLToPath } from 'node:url';
5
5
  import path from 'node:path';
6
6
 
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
11
+ function checkCopilotCLI() {
12
+ try {
13
+ execSync('copilot --version', { stdio: 'pipe' });
14
+ return true;
15
+ } catch {
16
+ return false;
17
+ }
18
+ }
19
+
20
+ if (!checkCopilotCLI()) {
21
+ console.error(`
22
+ ╔══════════════════════════════════════════════════════════════════════╗
23
+ ║ ERROR: GitHub Copilot CLI is not installed ║
24
+ ╠══════════════════════════════════════════════════════════════════════╣
25
+ ║ This tool requires the GitHub Copilot CLI to access Copilot models. ║
26
+ ║ ║
27
+ ║ Install with npm: ║
28
+ ║ npm install -g @github/copilot ║
29
+ ║ ║
30
+ ║ Or with Homebrew (macOS/Linux): ║
31
+ ║ brew install copilot-cli ║
32
+ ║ ║
33
+ ║ Or with WinGet (Windows): ║
34
+ ║ winget install GitHub.Copilot ║
35
+ ║ ║
36
+ ║ You also need an active GitHub Copilot subscription. ║
37
+ ║ Learn more: https://github.com/github/copilot-cli ║
38
+ ╚══════════════════════════════════════════════════════════════════════╝
39
+ `);
40
+ process.exit(1);
41
+ }
42
+
10
43
  const port = process.env.PORT || '3000';
11
44
  const noOpen = process.argv.includes('--no-open');
12
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-llm-council",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
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",