aicodeswitch 2.0.6 → 2.0.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### 2.0.7 (2026-02-02)
6
+
5
7
  ### 2.0.6 (2026-02-01)
6
8
 
7
9
  ### 2.0.5 (2026-01-27)
package/bin/ui.js CHANGED
@@ -7,19 +7,24 @@ const { getServerInfo } = require('./utils/get-server');
7
7
 
8
8
  const openBrowser = (url) => {
9
9
  let command;
10
+ let args;
10
11
 
11
12
  if (os.platform() === 'darwin') {
12
13
  command = 'open';
14
+ args = [url];
13
15
  } else if (os.platform() === 'win32') {
14
- command = 'start';
16
+ command = 'cmd';
17
+ args = ['/c', 'start', '', url]; // 空字符串作为窗口标题
15
18
  } else {
16
19
  // Linux and others
17
20
  command = 'xdg-open';
21
+ args = [url];
18
22
  }
19
23
 
20
- const child = spawn(command, [url], {
24
+ const child = spawn(command, args, {
21
25
  detached: true,
22
- stdio: 'ignore'
26
+ stdio: 'ignore',
27
+ shell: os.platform() === 'win32' // Windows 需要 shell
23
28
  });
24
29
 
25
30
  child.unref();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicodeswitch",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "A tool to help you manage AI programming tools to access large language models locally. It allows your Claude Code, Codex and other tools to no longer be limited to official models.",
5
5
  "author": "tangshuang",
6
6
  "license": "GPL-3.0",