MCPcopy Create free account
hub / github.com/Noumena-Network/code / shouldProcessMockLimits

Function shouldProcessMockLimits

src/services/mockRateLimits.ts:714–719  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

712// Check if we should process rate limits even without subscription
713// This is for Ant employees testing with mocks
714export function shouldProcessMockLimits(): boolean {
715 if ((process.env.NCODE_BUILD_MODE !== 'noumena' && process.env.USER_TYPE !== 'ant')) {
716 return false
717 }
718 return mockEnabled || Boolean(process.env.CLAUDE_MOCK_HEADERLESS_429)
719}
720
721export function getCurrentMockScenario(): MockScenario | null {
722 if (!mockEnabled) {

Callers 6

RateLimitMessageFunction · 0.85
callFunction · 0.85
processRateLimitHeadersFunction · 0.85
shouldProcessRateLimitsFunction · 0.85
checkMockRateLimitErrorFunction · 0.85
isMockRateLimitErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected