import { normalizeAssistantTextToToolCallsWithNative } from '../../../router/virtual-router/engine-selection/native-shared-conversion-semantics.js';
function enabled() {
    try {
        return String(process?.env?.RCC_TEXT_MARKUP_COMPAT ?? '1').trim() !== '0';
    }
    catch {
        return true;
    }
}
export function normalizeAssistantTextToToolCalls(message, options) {
    if (!enabled())
        return message;
    return normalizeAssistantTextToToolCallsWithNative(message, options);
}
