github-llm-council 2.0.1 → 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.
- package/bin/cli.js +18 -37
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -10,51 +10,32 @@ const __dirname = path.dirname(__filename);
|
|
|
10
10
|
// Check for GitHub Copilot CLI before starting
|
|
11
11
|
function checkCopilotCLI() {
|
|
12
12
|
try {
|
|
13
|
-
execSync('
|
|
13
|
+
execSync('copilot --version', { stdio: 'pipe' });
|
|
14
14
|
return true;
|
|
15
15
|
} catch {
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
function checkGitHubCLI() {
|
|
21
|
-
try {
|
|
22
|
-
execSync('gh --version', { stdio: 'pipe' });
|
|
23
|
-
return true;
|
|
24
|
-
} catch {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (!checkGitHubCLI()) {
|
|
30
|
-
console.error(`
|
|
31
|
-
╔════════════════════════════════════════════════════════════════════╗
|
|
32
|
-
║ ERROR: GitHub CLI (gh) is not installed ║
|
|
33
|
-
╠════════════════════════════════════════════════════════════════════╣
|
|
34
|
-
║ This tool requires the GitHub CLI to access Copilot models. ║
|
|
35
|
-
║ ║
|
|
36
|
-
║ Install it from: https://cli.github.com/ ║
|
|
37
|
-
║ ║
|
|
38
|
-
║ After installing, authenticate with: ║
|
|
39
|
-
║ gh auth login ║
|
|
40
|
-
╚════════════════════════════════════════════════════════════════════╝
|
|
41
|
-
`);
|
|
42
|
-
process.exit(1);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
20
|
if (!checkCopilotCLI()) {
|
|
46
21
|
console.error(`
|
|
47
|
-
|
|
48
|
-
║ ERROR: GitHub Copilot CLI
|
|
49
|
-
|
|
50
|
-
║ This tool requires the Copilot
|
|
51
|
-
║
|
|
52
|
-
║ Install
|
|
53
|
-
║
|
|
54
|
-
║
|
|
55
|
-
║
|
|
56
|
-
║
|
|
57
|
-
|
|
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
|
+
╚══════════════════════════════════════════════════════════════════════╝
|
|
58
39
|
`);
|
|
59
40
|
process.exit(1);
|
|
60
41
|
}
|