diff --git a/.eslintignore b/.eslintignore index 40b211be..3781d7d7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -8,6 +8,7 @@ node_modules/ # Browser binary camoufox/ +camoufox-macos/ # Temporary files tmp/ diff --git a/.gitignore b/.gitignore index 71eac191..20170499 100644 --- a/.gitignore +++ b/.gitignore @@ -35,7 +35,6 @@ tmp/ temp/ ui/dist/ *.css -test/ debug_*.png debug_*.html proxylist.txt diff --git a/.prettierignore b/.prettierignore index 21559cbc..997905f1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -12,6 +12,7 @@ build/ # Camoufox directory camoufox/ +camoufox-macos/ # Logs *.log @@ -32,3 +33,8 @@ Thumbs.db # Temporary files *.tmp *.temp + +# Local tooling and rejected configs +.npm-cache/ +.serena/ +*.REJECTED.yaml diff --git a/README.md b/README.md index 473beea2..4010c67e 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,7 @@ services: | `ENABLE_AUTH_UPDATE` | 是否启用自动保存凭证更新。默认为启用状态,将在每次登录/切换账号成功时以及每 24 小时自动更新 auth 文件。设为 `false` 禁用。 | `true` | | `MAX_RETRIES` | 请求失败后的最大重试次数(仅对假流式和非流式生效)。 | `3` | | `RETRY_DELAY` | 两次重试之间的间隔(毫秒)。 | `2000` | -| `STREAM_TIMEOUT_MS` | 真流式响应相邻数据块之间的超时时间(毫秒),最大 `300000`。 | `60000` | +| `STREAM_TIMEOUT_MS` | 真流式响应相邻数据块之间的超时时间(毫秒),默认值为 `0`(禁用超时),设为正值启用,最大 `300000`。 | `0` | | `FAKE_STREAM_TIMEOUT_MS` | 假流式/非流式缓冲响应的超时时间(毫秒),最大 `300000`。 | `300000` | | `SWITCH_ON_USES` | 自动切换帐户前允许的请求次数(设为 `0` 禁用)。 | `40` | | `FAILURE_THRESHOLD` | 切换帐户前允许的连续失败次数(设为 `0` 禁用)。 | `3` | diff --git a/README_EN.md b/README_EN.md index 9aa299f4..fd9045ad 100644 --- a/README_EN.md +++ b/README_EN.md @@ -265,7 +265,7 @@ Usage: | `ENABLE_AUTH_UPDATE` | Whether to enable automatic auth credential updates. Defaults to enabled. The auth file will be automatically updated upon successful login/account switch and every 24 hours. Set to `false` to disable. | `true` | | `MAX_RETRIES` | Maximum number of retries for failed requests (only effective for fake streaming and non-streaming). | `3` | | `RETRY_DELAY` | Delay between retries in milliseconds. | `2000` | -| `STREAM_TIMEOUT_MS` | Timeout between real streaming chunks, in milliseconds. Maximum: `300000`. | `60000` | +| `STREAM_TIMEOUT_MS` | Timeout between real streaming chunks, in milliseconds. Default is `0` (disabled); set a positive value to enable. Maximum: `300000`. | `0` | | `FAKE_STREAM_TIMEOUT_MS` | Timeout for fake streaming / non-streaming buffered responses, in milliseconds. Maximum: `300000`. | `300000` | | `SWITCH_ON_USES` | Number of requests before automatically switching accounts (`0` to disable). | `40` | | `FAILURE_THRESHOLD` | Number of consecutive failures before switching accounts (`0` to disable). | `3` | diff --git a/package.json b/package.json index d1772eca..10a1066f 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "lint:js:fix": "eslint . --fix", "lint:css:fix": "stylelint \"ui/**/*.{css,less}\" --fix", "format": "prettier --write .", - "format:check": "prettier --check ." + "format:check": "prettier --check .", + "test": "node --test" }, "dependencies": { "archiver": "^7.0.1", diff --git a/scripts/client/index.html b/scripts/client/index.html index bcebc8e3..9356ae65 100644 --- a/scripts/client/index.html +++ b/scripts/client/index.html @@ -1,35 +1,37 @@ - + -
- -