"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.renderArchitectureBaselineCreateConsole = renderArchitectureBaselineCreateConsole;
exports.renderArchitectureBaselineUpdateConsole = renderArchitectureBaselineUpdateConsole;
exports.renderArchitectureDriftConsole = renderArchitectureDriftConsole;
function renderStringList(values) {
    if (values.length === 0) {
        return '- (none)';
    }
    return values.map((value) => `- ${value}`).join('\n');
}
function renderDependencyList(values) {
    if (values.length === 0) {
        return '- (none)';
    }
    return values.map((entry) => `- ${entry.source} -> ${entry.target}`).join('\n');
}
function renderArchitectureBaselineCreateConsole(baseline, baselinePath) {
    return `Architecture Baseline Created

Modules: ${baseline.modules.length}
Edges: ${baseline.edges.length}
Cycles: ${baseline.cycles.length}
Orphans: ${baseline.orphanModules.length}

Baseline file:
${baselinePath}
`;
}
function renderArchitectureBaselineUpdateConsole(baseline, baselinePath) {
    return `Architecture Baseline Updated

Modules: ${baseline.modules.length}
Edges: ${baseline.edges.length}
Cycles: ${baseline.cycles.length}
Orphans: ${baseline.orphanModules.length}

Baseline file:
${baselinePath}
`;
}
function renderArchitectureDriftConsole(report) {
    return `ArchPilot Architecture Drift Report

New modules:
${renderStringList(report.modulesAdded)}

Removed modules:
${renderStringList(report.modulesRemoved)}

New dependencies:
${renderDependencyList(report.dependenciesAdded)}

Removed dependencies:
${renderDependencyList(report.dependenciesRemoved)}

New cycles detected:
${renderStringList(report.cyclesAdded)}

Removed cycles:
${renderStringList(report.cyclesRemoved)}
`;
}
//# sourceMappingURL=architectureBaselineReporter.js.map