opencode-qwen-cli-auth 2.3.1 → 2.3.4

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/README.md CHANGED
@@ -67,7 +67,7 @@ The plugin stores each successful login in the multi-account store and can auto-
67
67
  | `ENABLE_PLUGIN_REQUEST_LOGGING=1` | Enable request logging to file | Optional |
68
68
  | `OPENCODE_QWEN_ENABLE_CLI_FALLBACK=1` | Enable CLI fallback on quota error | Optional |
69
69
  | `OPENCODE_QWEN_ACCOUNTS_PATH` | Override multi-account store path (must be inside `~/.qwen`) | Optional |
70
- | `OPENCODE_QWEN_QUOTA_COOLDOWN_MS` | Cooldown for exhausted accounts | Default: `1800000` (30 min) |
70
+ | `OPENCODE_QWEN_QUOTA_COOLDOWN_MS` | Cooldown for exhausted accounts | Default: `86400000` (24h) |
71
71
 
72
72
  ### Debug & Logging
73
73
 
package/README.vi.md CHANGED
@@ -67,7 +67,7 @@ Plugin sẽ lưu từng lần đăng nhập thành công vào kho đa tài kho
67
67
  | `ENABLE_PLUGIN_REQUEST_LOGGING=1` | Bật ghi log request ra file | Tùy chọn |
68
68
  | `OPENCODE_QWEN_ENABLE_CLI_FALLBACK=1` | Bật tính năng gọi CLI khi hết quota | Tùy chọn |
69
69
  | `OPENCODE_QWEN_ACCOUNTS_PATH` | Ghi đè đường dẫn kho đa tài khoản (phải nằm trong `~/.qwen`) | Tùy chọn |
70
- | `OPENCODE_QWEN_QUOTA_COOLDOWN_MS` | Thời gian cooldown cho tài khoản đã hết quota | Mặc định: `1800000` (30 phút) |
70
+ | `OPENCODE_QWEN_QUOTA_COOLDOWN_MS` | Thời gian cooldown cho tài khoản đã hết quota | Mặc định: `86400000` (24 giờ) |
71
71
 
72
72
  ### Debug & Logging
73
73
 
package/dist/index.js CHANGED
@@ -964,7 +964,7 @@ async function failFastFetch(input, init) {
964
964
  attempt: retryAttempt + 1,
965
965
  });
966
966
  }
967
- const RETRYABLE_STATUS_CODES = [429, 500, 502, 503, 504];
967
+ const RETRYABLE_STATUS_CODES = [429, 500, 502, 503, 504];
968
968
  if (RETRYABLE_STATUS_CODES.includes(response.status)) {
969
969
  if (response.status === 429) {
970
970
  const firstBody = await response.text().catch(() => "");
@@ -30,7 +30,7 @@ const LOCK_MAX_ATTEMPTS = 20;
30
30
  /** Account schema version for ~/.qwen/oauth_accounts.json */
31
31
  const ACCOUNT_STORE_VERSION = 1;
32
32
  /** Default cooldown when account hits insufficient_quota */
33
- const DEFAULT_QUOTA_COOLDOWN_MS = 30 * 60 * 1000;
33
+ const DEFAULT_QUOTA_COOLDOWN_MS = 24 * 60 * 60 * 1000;
34
34
 
35
35
  /**
36
36
  * Checks if an error is an AbortError (from AbortController)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-qwen-cli-auth",
3
- "version": "2.3.1",
3
+ "version": "2.3.4",
4
4
  "description": "Qwen OAuth authentication plugin for opencode - use your Qwen account instead of API keys",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",