(state: DenialTrackingState)
| 30 | } |
| 31 | |
| 32 | export function recordSuccess(state: DenialTrackingState): DenialTrackingState { |
| 33 | if (state.consecutiveDenials === 0) return state // No change needed |
| 34 | return { |
| 35 | ...state, |
| 36 | consecutiveDenials: 0, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | export function shouldFallbackToPrompting(state: DenialTrackingState): boolean { |
| 41 | return ( |
no outgoing calls
no test coverage detected