/**
 * Audit Types
 *
 * Shared types for the `shieldcortex audit` command — a comprehensive
 * security scanner for AI agent environments.
 */
/**
 * Calculate grade from findings.
 *
 * A = no findings above info
 * B = only low/info findings
 * C = medium findings present
 * D = high findings present
 * F = critical findings present
 */
export function calculateGrade(bySeverity) {
    if (bySeverity.critical > 0)
        return 'F';
    if (bySeverity.high > 0)
        return 'D';
    if (bySeverity.medium > 0)
        return 'C';
    if (bySeverity.low > 0)
        return 'B';
    return 'A';
}
