/**
 * Resolves the active tool mode from a TuneConfig, applying the back-compat
 * mapping for legacy `disableNativeTools` flags.
 */
export function getTuneToolMode(tune) {
    if (!tune?.enabled)
        return 'native';
    if (tune.toolMode)
        return tune.toolMode;
    if (tune.disableNativeTools)
        return 'xml';
    return 'native';
}
export const TUNE_DEFAULTS = {
    // Auto-profiling is on by default: large/cloud models resolve to 'full'
    // (no change), while small local models are automatically given the
    // slimmer 'minimal'/'nano' tool set. Users can override via /tune.
    enabled: true,
    toolProfile: 'auto',
    aggressiveCompact: false,
};
//# sourceMappingURL=config.js.map