// ci-generator/planu-config.ts — Generate .planu.yml config file (SPEC-066 AC-05)
/**
 * Generate the YAML content for a .planu.yml configuration file.
 * This file configures the Planu CI check workflow behavior.
 */
export function generatePlanuConfigYaml(options) {
    const { specsDir, failOnDrift, severityThreshold, postComment, badge, include, exclude, licenseKeyRef, } = options;
    const lines = ['# .planu.yml — Planu CI configuration', ''];
    // Specs section
    lines.push('specs:');
    lines.push(`  directory: ${specsDir}`);
    if (include && include.length > 0) {
        lines.push('  include:');
        for (const spec of include) {
            lines.push(`    - ${spec}`);
        }
    }
    if (exclude && exclude.length > 0) {
        lines.push('  exclude:');
        for (const spec of exclude) {
            lines.push(`    - ${spec}`);
        }
    }
    lines.push('');
    // CI section
    lines.push('ci:');
    lines.push(`  fail-on-drift: ${String(failOnDrift)}`);
    lines.push(`  severity-threshold: ${severityThreshold}`);
    lines.push(`  post-comment: ${String(postComment)}`);
    lines.push(`  badge: ${String(badge)}`);
    // License section
    if (licenseKeyRef) {
        lines.push('');
        lines.push('license:');
        lines.push(`  key: \${${licenseKeyRef}}`);
    }
    lines.push('');
    return lines.join('\n');
}
//# sourceMappingURL=planu-config.js.map