()
| 601 | } |
| 602 | |
| 603 | export function getMockHeaderless429Message(): string | null { |
| 604 | if ((process.env.NCODE_BUILD_MODE !== 'noumena' && process.env.USER_TYPE !== 'ant')) { |
| 605 | return null |
| 606 | } |
| 607 | // Env var path for -p / SDK testing where slash commands aren't available |
| 608 | if (process.env.CLAUDE_MOCK_HEADERLESS_429) { |
| 609 | return process.env.CLAUDE_MOCK_HEADERLESS_429 |
| 610 | } |
| 611 | if (!mockEnabled) { |
| 612 | return null |
| 613 | } |
| 614 | return mockHeaderless429Message |
| 615 | } |
| 616 | |
| 617 | export function getMockHeaders(): MockHeaders | null { |
| 618 | if ( |
no outgoing calls
no test coverage detected