qwenproxy-cli 1.0.8 → 1.0.10
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 +5 -0
- package/package.json +2 -2
- package/src/api/server.ts +6 -2
- package/src/services/playwright.ts +7 -0
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.
|
|
3
|
+
"version": "1.0.10",
|
|
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": "
|
|
63
|
+
"patchright": "1.63.0",
|
|
64
64
|
"tsx": "^4.23.13",
|
|
65
65
|
"uuid": "^14.0.2",
|
|
66
66
|
"zod": "^4.5.4"
|
package/src/api/server.ts
CHANGED
|
@@ -750,9 +750,13 @@ export async function startServer(options?: {
|
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
752
|
|
|
753
|
-
if (
|
|
753
|
+
if (failed > 0) {
|
|
754
|
+
console.warn(
|
|
755
|
+
`⚠️ [Server] Standby validation finished: ${validated} ok, ${failed} failed`,
|
|
756
|
+
);
|
|
757
|
+
} else if (validated > 0) {
|
|
754
758
|
console.log(
|
|
755
|
-
|
|
759
|
+
`✅ [Server] Standby validation complete: all ${validated} account(s) ready`,
|
|
756
760
|
);
|
|
757
761
|
}
|
|
758
762
|
})().catch((error) => {
|
|
@@ -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
|