mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 16:15:13 +00:00
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:
1 parent
753ba3e249
commit
fcc605bc1f
2 files changed
+2
-2
No files matched your search
@@ -353,7 +353,7 @@ export function handleBanDetection(
|
|||||||
|
|
||||||
console.error('');
|
console.error('');
|
||||||
console.error(warn('Account safety: account appears disabled by Google'));
|
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(` "${truncate(errorMessage, 120)}"`);
|
||||||
console.error('');
|
console.error('');
|
||||||
console.error(info('Auto-pausing this account to prevent further issues.'));
|
console.error(info('Auto-pausing this account to prevent further issues.'));
|
||||||
|
|||||||
@@ -384,7 +384,7 @@ export interface RuntimeMonitorConfig {
|
|||||||
warn_threshold: number;
|
warn_threshold: number;
|
||||||
/** Quota percentage that triggers cooldown + switch (default: 5) */
|
/** Quota percentage that triggers cooldown + switch (default: 5) */
|
||||||
exhaustion_threshold: number;
|
exhaustion_threshold: number;
|
||||||
/** Minutes to cooldown exhausted account (default: 10) */
|
/** Minutes to cooldown exhausted account (default: 5) */
|
||||||
cooldown_minutes: number;
|
cooldown_minutes: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user