SIGN IN SIGN UP

fix(claude): add Anthropic unified rate-limit parsing helpers

- Add new Claude rate-limit helper utilities to detect unified header-based quota rejections (5h/7d), handling case-insensitive headers and missing canonical forms.
- Compute deterministic retry duration from `Retry-After` and header reset timestamps, preferring the longest applicable unified window so cooldowns can be applied consistently.
- Introduce reusable rate-limit classification logic to distinguish header-authoritative rejections from request-scoped errors (e.g. fast-mode entitlement failures) for correct credential/model cooldown behavior.

Closes: #4874
L
Luis Pater committed
ac82bedfaf5b74e40f4530e3fcb61099cf6d582e
Parent: 297139c