// tools/create-spec-hu/build-tool-hu-adapter.ts — SPEC-050 S5
// Build-tool-aware HU.md criteria injection for create_spec.
// C12: bundler=rolldown → tree-shaking verification criterion
// C13: buildTool=turbopack → Fast Refresh HMR <100ms criterion
/**
 * Generate build-tool-specific acceptance criteria lines for HU.md.
 * Returns an array of markdown lines to splice into the criteria section.
 *
 * C12: Rolldown/Vite 8 → tree-shaking verification
 * C13: Turbopack → Fast Refresh HMR <100ms
 */
export function buildBuildToolHuSection(knowledge) {
    if (!knowledge?.buildTool) {
        return [];
    }
    const { buildTool } = knowledge;
    const lines = [];
    // C12: Rolldown bundler (Vite 8+)
    if (buildTool.bundler === 'rolldown') {
        lines.push('', '## Build Tool — Rolldown Criteria', '', '- [ ] El bundle de producción pasa tree-shaking verification — módulos no usados ausentes del bundle analizado con rolldown-visualizer', '- [ ] El tiempo de build de producción (rolldown build) es monitorizado en CI y no excede el baseline establecido en +20%', '');
    }
    // C13: Turbopack
    if (buildTool.buildTool === 'turbopack') {
        lines.push('', '## Build Tool — Turbopack Criteria', '', '- [ ] Fast Refresh configurado para todos los componentes — tiempo de HMR <100ms medido en dev mode', '- [ ] Turbopack cache es persistente entre builds de CI — configurado con TURBOPACK_CACHE_DIR', '');
    }
    return lines;
}
//# sourceMappingURL=build-tool-hu-adapter.js.map