github-llm-council 2.0.7 → 2.0.9
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 +3 -7
- package/package.json +3 -2
package/bin/cli.js
CHANGED
|
@@ -2,26 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
import { spawn } from 'node:child_process';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
|
-
import { createRequire } from 'node:module';
|
|
6
5
|
import path from 'node:path';
|
|
6
|
+
import resolve from 'resolve';
|
|
7
7
|
|
|
8
8
|
const __filename = fileURLToPath(import.meta.url);
|
|
9
9
|
const __dirname = path.dirname(__filename);
|
|
10
|
-
|
|
11
|
-
// Create require from package root (not bin/) for better dependency resolution
|
|
12
10
|
const packageRoot = path.join(__dirname, '..');
|
|
13
|
-
const require = createRequire(path.join(packageRoot, 'package.json'));
|
|
14
11
|
|
|
15
12
|
// Resolve the @github/copilot CLI loader path
|
|
13
|
+
// Uses 'resolve' package to bypass Node.js exports restrictions
|
|
16
14
|
// Returns null if not found
|
|
17
15
|
function resolveCopilotCliPath() {
|
|
18
16
|
if (process.env.COPILOT_MOCK === '1') {
|
|
19
17
|
return null; // Mock mode doesn't need the CLI
|
|
20
18
|
}
|
|
21
19
|
try {
|
|
22
|
-
|
|
23
|
-
const copilotDir = path.dirname(copilotPkgPath);
|
|
24
|
-
return path.join(copilotDir, 'npm-loader.js');
|
|
20
|
+
return resolve.sync('@github/copilot/npm-loader.js', { basedir: packageRoot });
|
|
25
21
|
} catch {
|
|
26
22
|
return null;
|
|
27
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-llm-council",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
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",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"@github/copilot": "^0.0.384",
|
|
50
50
|
"@github/copilot-sdk": "^0.1.13",
|
|
51
51
|
"express": "^5.2.1",
|
|
52
|
-
"open": "^11.0.0"
|
|
52
|
+
"open": "^11.0.0",
|
|
53
|
+
"resolve": "^1.22.11"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@playwright/test": "^1.57.0",
|