MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getScenarioDescription

Function getScenarioDescription

src/services/mockRateLimits.ts:758–803  ·  view source on GitHub ↗
(scenario: MockScenario)

Source from the content-addressed store, hash-verified

756}
757
758export function getScenarioDescription(scenario: MockScenario): string {
759 switch (scenario) {
760 case 'normal':
761 return 'Normal usage, no limits'
762 case 'session-limit-reached':
763 return 'Session rate limit exceeded'
764 case 'approaching-weekly-limit':
765 return 'Approaching weekly aggregate limit'
766 case 'weekly-limit-reached':
767 return 'Weekly aggregate limit exceeded'
768 case 'overage-active':
769 return 'Using extra usage (overage active)'
770 case 'overage-warning':
771 return 'Approaching extra usage limit'
772 case 'overage-exhausted':
773 return 'Both subscription and extra usage limits exhausted'
774 case 'out-of-credits':
775 return 'Out of extra usage credits (wallet empty)'
776 case 'org-zero-credit-limit':
777 return 'Org spend cap is zero (no extra usage budget)'
778 case 'org-spend-cap-hit':
779 return 'Org spend cap hit for the month'
780 case 'member-zero-credit-limit':
781 return 'Member limit is zero (admin can allocate more)'
782 case 'seat-tier-zero-credit-limit':
783 return 'Seat tier limit is zero (admin can allocate more)'
784 case 'opus-limit':
785 return 'Opus limit reached'
786 case 'opus-warning':
787 return 'Approaching Opus limit'
788 case 'sonnet-limit':
789 return 'Sonnet limit reached'
790 case 'sonnet-warning':
791 return 'Approaching Sonnet limit'
792 case 'fast-mode-limit':
793 return 'Fast mode rate limit'
794 case 'fast-mode-short-limit':
795 return 'Fast mode rate limit (short)'
796 case 'extra-usage-required':
797 return 'Headerless 429: Extra usage required for 1M context'
798 case 'clear':
799 return 'Clear mock headers (use real limits)'
800 default:
801 return 'Unknown scenario'
802 }
803}
804
805// Mock subscription type management
806export function setMockSubscriptionType(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected