()
| 917 | |
| 918 | // Only used in tests |
| 919 | export function resetStateForTests(): void { |
| 920 | if (process.env.NODE_ENV !== 'test') { |
| 921 | throw new Error('resetStateForTests can only be called in tests') |
| 922 | } |
| 923 | Object.entries(getInitialState()).forEach(([key, value]) => { |
| 924 | STATE[key as keyof State] = value as never |
| 925 | }) |
| 926 | outputTokensAtTurnStart = 0 |
| 927 | currentTurnTokenBudget = null |
| 928 | budgetContinuationCount = 0 |
| 929 | sessionSwitched.clear() |
| 930 | } |
| 931 | |
| 932 | // You shouldn't use this directly. See src/utils/model/modelStrings.ts::getModelStrings() |
| 933 | export function getModelStrings(): ModelStrings | null { |
nothing calls this directly
no test coverage detected