opencode-studio-server 1.14.1 → 1.14.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.
- package/package.json +1 -1
- package/proxy-manager.js +6 -2
package/package.json
CHANGED
package/proxy-manager.js
CHANGED
|
@@ -29,14 +29,18 @@ const getProxyCommand = async () => {
|
|
|
29
29
|
if (process.platform === 'win32') {
|
|
30
30
|
const localAppData = process.env.LOCALAPPDATA;
|
|
31
31
|
if (localAppData) {
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const aliases = ['CLIProxyAPI.exe', 'cli-proxy-api.exe', 'cliproxyapi.exe'];
|
|
33
|
+
for (const alias of aliases) {
|
|
34
|
+
const wingetPath = path.join(localAppData, 'Microsoft', 'WinGet', 'Links', alias);
|
|
35
|
+
if (fs.existsSync(wingetPath)) return wingetPath;
|
|
36
|
+
}
|
|
34
37
|
|
|
35
38
|
const progPath = path.join(localAppData, 'Programs', 'CLIProxyAPI', 'CLIProxyAPI.exe');
|
|
36
39
|
if (fs.existsSync(progPath)) return progPath;
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
|
|
43
|
+
if (await checkBinary('cli-proxy-api')) return 'cli-proxy-api';
|
|
40
44
|
if (await checkBinary('cliproxyapi')) return 'cliproxyapi';
|
|
41
45
|
if (await checkBinary('CLIProxyAPI')) return 'CLIProxyAPI';
|
|
42
46
|
if (await checkBinary('cliproxyapi.exe')) return 'cliproxyapi.exe';
|