panrouter 5.4.1 → 5.4.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/pool-worker.mjs +2 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "panrouter",
3
- "version": "5.4.1",
3
+ "version": "5.4.2",
4
4
  "description": "让 Claude Code 免费使用 DeepSeek 等模型,无需 API Key",
5
5
  "type": "module",
6
6
  "bin": {
package/pool-worker.mjs CHANGED
@@ -203,14 +203,11 @@ function handleUpgrade() {
203
203
  log("正在重启代理服务...");
204
204
  killPort(SERVER_PORT);
205
205
 
206
- // 启动新后台实例,完全脱离当前终端
206
+ // 启动新实例,在当前终端前台运行
207
207
  const child = spawn(process.execPath, [process.argv[1], "--pool"], {
208
208
  cwd: __dirname,
209
- stdio: "ignore",
210
- detached: true,
211
- windowsHide: true,
209
+ stdio: "inherit",
212
210
  });
213
- child.unref();
214
211
 
215
212
  log("新实例已在后台启动", "OFF");
216
213
  process.exit(0);