()
| 1975 | } |
| 1976 | |
| 1977 | export function getRateLimitTier(): string | null { |
| 1978 | if (!isAnthropicAuthEnabled()) { |
| 1979 | return null |
| 1980 | } |
| 1981 | const oauthTokens = getClaudeAIOAuthTokens() |
| 1982 | if (!oauthTokens) { |
| 1983 | return null |
| 1984 | } |
| 1985 | |
| 1986 | return oauthTokens.rateLimitTier ?? null |
| 1987 | } |
| 1988 | |
| 1989 | export function getSubscriptionName(): string { |
| 1990 | const subscriptionType = getSubscriptionType() |
no test coverage detected