import { ModelPolicyService } from '../../../../../core/llm/models/index.js';
export function resolveStoredSessionExecutionPreferences(args) {
    return {
        model: args.stored?.model ?? args.defaultModel,
        reasoningEffort: args.stored?.reasoningEffort,
    };
}
export function resolveNewSessionExecutionPreferences(args) {
    return {
        model: args.inherited?.model ?? args.defaultModel,
        reasoningEffort: args.inherited?.reasoningEffort,
    };
}
export function resolveEffectiveReasoningEffort(args) {
    return args.reasoningEffort ?? ModelPolicyService.resolveDefaultReasoningEffort(args.model);
}
export function formatSessionReasoningEffortStatus(args) {
    const supported = ModelPolicyService.supportsReasoningEffort(args.model);
    const effective = resolveEffectiveReasoningEffort(args);
    return [
        `Current model: ${args.model}`,
        `Reasoning effort support: ${supported ? 'supported' : 'unsupported'}`,
        `Configured effort: ${args.reasoningEffort ?? 'default'}`,
        `Effective effort: ${effective ?? 'none'}`,
        '',
        'Use /reasoning set to choose an effort, or /reasoning default to clear it.',
    ].join('\n');
}
//# sourceMappingURL=service.js.map