Files
clawdbot/src
Muhammed Mukhthar CM ce6c7737c1 feat: add round-robin rotation and cooldown for auth profiles
Adds usage tracking to auth profiles for automatic rotation:

- ProfileUsageStats type with lastUsed, cooldownUntil, errorCount
- markAuthProfileUsed(): tracks successful usage, resets errors
- markAuthProfileCooldown(): applies exponential backoff (1/5/25/60min)
- isProfileInCooldown(): checks if profile should be skipped
- orderProfilesByMode(): now sorts by lastUsed (oldest first)

On auth/rate-limit failures, profiles are marked for cooldown before
rotation. On success, usage is recorded for round-robin ordering.

This enables automatic load distribution across multiple accounts
(e.g., Antigravity 5-hour rate limit windows).
2026-01-06 05:17:59 +00:00
..
2026-01-06 04:51:05 +00:00
2026-01-06 05:41:24 +01:00
2026-01-06 04:51:05 +00:00
2026-01-06 04:51:05 +00:00
2026-01-06 01:46:59 +00:00
2026-01-06 00:42:23 +01:00
2026-01-06 02:22:19 +00:00
2026-01-04 14:38:51 +00:00
2026-01-06 04:51:05 +00:00
2026-01-06 04:51:05 +00:00
2026-01-04 14:57:57 +00:00
2026-01-04 14:38:51 +00:00
2026-01-06 04:51:05 +00:00
2026-01-06 04:51:05 +00:00
2025-12-26 02:35:40 +01:00
2026-01-04 14:38:51 +00:00