/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
// Session reducer with exhaustive switch
export const sessionReducer = (state, action) => {
    switch (action.type) {
        case 'SET_CURRENT_MODEL':
            return { ...state, currentModel: action.payload };
        case 'SET_PAID_MODE':
            return { ...state, isPaidMode: action.payload };
        case 'SET_LAST_PROVIDER':
            return { ...state, lastProvider: action.payload };
        case 'SET_USER_TIER':
            return { ...state, userTier: action.payload };
        case 'SET_TRANSIENT_WARNINGS':
            return { ...state, transientWarnings: action.payload };
        case 'CLEAR_TRANSIENT_WARNINGS':
            return { ...state, transientWarnings: [] };
        default: {
            // Exhaustive check - this ensures all action types are handled
            const _exhaustiveCheck = action;
            void _exhaustiveCheck; // Explicitly acknowledge the variable for TypeScript
            return state;
        }
    }
};
//# sourceMappingURL=sessionReducer.js.map