import { RELEVANCE_VALUES } from "./types.js";
export function countByRelevance(records) {
    const counts = { low: 0, medium: 0, high: 0, critical: 0 };
    for (const r of records)
        counts[r.relevance]++;
    return counts;
}
export function formatRelevanceHistogram(counts) {
    return RELEVANCE_VALUES
        .slice()
        .reverse()
        .map((r) => `${r}: ${counts[r]}`)
        .join(" · ");
}
