qwenproxy-cli 1.0.8 → 1.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/qwenproxy.js CHANGED
@@ -180,6 +180,11 @@ if (isBrowserCommand) {
180
180
 
181
181
  if (res.status === 0) {
182
182
  console.log("✓ [QwenProxy] Navegador instalado com sucesso!\n");
183
+ // Automatically prune older, unused browser builds to free up disk space
184
+ try {
185
+ const { cleanPlaywrightBrowsers } = await import("../src/clean-cache.ts");
186
+ await cleanPlaywrightBrowsers(true);
187
+ } catch {}
183
188
  }
184
189
  }
185
190
  } catch {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qwenproxy-cli",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "High-performance OpenAI & Anthropic compatible API gateway for Qwen with multi-account rotation, interactive TUI, and resilient tool calling.",
5
5
  "main": "src/index.ts",
6
6
  "bin": {
@@ -60,7 +60,7 @@
60
60
  "better-sqlite3": "^13.0.3",
61
61
  "dotenv": "^17.4.2",
62
62
  "hono": "^4.13.7",
63
- "patchright": "^1.62.3",
63
+ "patchright": "1.63.0",
64
64
  "tsx": "^4.23.13",
65
65
  "uuid": "^14.0.2",
66
66
  "zod": "^4.5.4"
@@ -47,6 +47,13 @@ function autoInstallPlaywrightChromium(): void {
47
47
  console.log("\n⚠️ [Playwright] Falha no CDN primário. Tentando espelho global de alta velocidade...");
48
48
  tryInstall("https://npmmirror.com/mirrors/playwright");
49
49
  }
50
+
51
+ try {
52
+ void (async () => {
53
+ const { cleanPlaywrightBrowsers } = await import("../clean-cache.ts");
54
+ await cleanPlaywrightBrowsers(true);
55
+ })();
56
+ } catch {}
50
57
  }
51
58
  import { loadAccounts, type QwenAccount } from "../core/accounts.ts";
52
59
  // Imported here rather than injected from session-keeper.ts: account-concurrency