feat: add adaptive pool metrics and self-check

This commit is contained in:
fawney19
2026-05-15 02:21:11 +08:00
parent bf511f9f8c
commit 54a8312e46
34 changed files with 4521 additions and 300 deletions
@@ -12,6 +12,7 @@ describe('poolAdvancedDialog', () => {
expect(buildPoolHealthToggleCards().map(item => item.key)).toEqual([
'health_policy_enabled',
'probing_enabled',
'account_self_check_enabled',
'auto_remove_banned_keys',
'skip_exhausted_accounts',
])
@@ -27,7 +28,12 @@ describe('poolAdvancedDialog', () => {
{
key: 'probing_enabled',
label: '主动探测',
description: '按固定间隔刷新 Key 的状态与额度,减少号池状态滞后。',
description: '自动维护热池,缺口时异步补位。',
},
{
key: 'account_self_check_enabled',
label: '账号自检',
description: '定时确认封号状态,默认刷新额度,也可使用自定义请求。',
},
{
key: 'auto_remove_banned_keys',
@@ -1,6 +1,7 @@
export type PoolHealthToggleKey =
| 'health_policy_enabled'
| 'probing_enabled'
| 'account_self_check_enabled'
| 'auto_remove_banned_keys'
| 'skip_exhausted_accounts'
@@ -34,7 +35,12 @@ export function buildPoolHealthToggleCards(): PoolHealthToggleCard[] {
{
key: 'probing_enabled',
label: '主动探测',
description: '按固定间隔刷新 Key 的状态与额度,减少号池状态滞后。',
description: '自动维护热池,缺口时异步补位。',
},
{
key: 'account_self_check_enabled',
label: '账号自检',
description: '定时确认封号状态,默认刷新额度,也可使用自定义请求。',
},
{
key: 'auto_remove_banned_keys',