fix(cliproxy): mask email in ban detection and fix JSDoc default

- Use maskEmail() in handleBanDetection output for consistency
- Fix cooldown_minutes JSDoc: default is 5, not 10
This commit is contained in:
Tam Nhu Tran
2026-02-12 00:34:03 +07:00
parent 753ba3e249
commit fcc605bc1f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ export function handleBanDetection(
console.error('');
console.error(warn('Account safety: account appears disabled by Google'));
console.error(` Account "${accountId}" (${provider}) returned:`);
console.error(` Account "${maskEmail(accountId)}" (${provider}) returned:`);
console.error(` "${truncate(errorMessage, 120)}"`);
console.error('');
console.error(info('Auto-pausing this account to prevent further issues.'));
+1 -1
View File
@@ -384,7 +384,7 @@ export interface RuntimeMonitorConfig {
warn_threshold: number;
/** Quota percentage that triggers cooldown + switch (default: 5) */
exhaustion_threshold: number;
/** Minutes to cooldown exhausted account (default: 10) */
/** Minutes to cooldown exhausted account (default: 5) */
cooldown_minutes: number;
}