opencode-studio-server 1.14.1 → 1.14.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/package.json +1 -1
  2. package/proxy-manager.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-studio-server",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "Backend server for OpenCode Studio - manages opencode configurations",
5
5
  "main": "index.js",
6
6
  "bin": {
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 wingetPath = path.join(localAppData, 'Microsoft', 'WinGet', 'Links', 'CLIProxyAPI.exe');
33
- if (fs.existsSync(wingetPath)) return wingetPath;
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';