export const GithubPushReportMensagens = {
    scoreLabel: (score) => {
        if (score >= 80)
            return 'good';
        if (score >= 60)
            return 'attention';
        return 'critical';
    },
    rotuloScoreNome: 'tutanus: diagnosis',
    nenhumaOcorrencia: '_No occurrences found._\n',
    explicarSeveridade: (nivel) => {
        const map = {
            erro: '**Errors** — issues affecting functionality, security, or code integrity. Should be top priority.',
            aviso: '**Warnings** — bad practices, inefficient code, or potential future bugs. Review recommended.',
            info: '**Info** — improvement opportunities, best practices not followed, or organization suggestions.',
            sugestao: '**Suggestions** — optional improvements for readability, performance, or maintainability.'
        };
        return map[nivel.toLowerCase()] ?? nivel;
    },
    qualidadeOtimo: '> **Excellent.** The analyzed code has good quality. Few or no interventions needed.\n\n',
    qualidadeAtencao: '> **Needs attention.** The code has points that should be reviewed before going to production.\n\n',
    qualidadeCritico: '> **Critical.** It is highly recommended to review and fix the issues found before proceeding.\n\n',
    maisOcorrencias: (count) => `\n_… and ${count} more occurrence(s)._\n`,
    maisArquivos: (count) => `\n- *… and ${count} more file(s)*`,
    prBodyEstadoScore: (estado) => `**Score: %score%/100 (${estado})**`,
    repoDescricao: (owner, repo) => `**Repository:** \`${owner}/${repo}\``,
    escopoLabel: (branch, baseRef) => baseRef ? `\`${branch}\` → \`${baseRef}\`` : `\`${branch}\``,
    nenhumProblema: '### No problems found\n\nThe analyzed code had no occurrences.\n\n',
    acoesRecomendadas: `### Recommended actions\n\n1. Review the errors — they have the highest impact on quality and security\n2. Review the warnings — they may indicate latent bugs or technical debt\n3. Consider the suggestions — they improve maintainability and performance\n4. Check inline comments — each occurrence has a practical suggestion\n\n`,
    sobreAnalise: (branch, alvo) => `### About this analysis\n\nThis analysis was executed automatically by the **GitHub App Tutanus** on the app server. It does not depend on workflows or configuration in your repository. Each new push to \`${branch}\` updates this report. The PR targets merge into ${alvo}.\n\n`,
    relatorioTruncado: '\n\n_… report truncated due to size._',
    prBodyScore: (branch, baseRef, score, estado, sha, escopo) => `## PR Analysis — \`${branch}\` → \`${baseRef}\`\n\n**Score: ${score}/100 (${estado})** · Commit \`${sha}\` · Scope: ${escopo}\n\n`,
    prQualityOtimo: '> **Excellent.** This PR has good quality.\n\n',
    prQualityAtencao: '> **Needs attention.** This PR has points that deserve review.\n\n',
    prQualityCritico: '> **Critical.** It is highly recommended to review and fix the issues in this PR.\n\n',
    nenhumProblemaPR: '### No problems found\n\nThis PR had no occurrences.\n\n',
    maisOcorrenciasPR: (count) => `\n  *… and ${count} more occurrence(s). See inline comments.*\n`,
};
export const GithubDashboardMensagens = {
    redirectAfterInstall: 'GitHub (settings/installations) — does not redirect to the dashboard',
    statsZeradas: 'Zeroed statistics.',
    paramsObrigatorios: 'Required parameters: owner, repo, installationId',
    nenhumWorkflowEncontrado: 'No workflow found.',
    erroCriarJob: 'Failed to create job',
    jobEnfileirado: (jobId) => `Complete analysis queued. Check status at GET /api/github/acoes/analisar-completo/${jobId}`,
    jobNaoEncontrado: (jobId) => `Job '${jobId}' not found`,
    installationIdInvalido: 'Invalid installation id',
    acessoNegado: 'Unauthorized. Provide the admin token (Authorization: Bearer <token>).',
    tokenNaoConfigurado: 'Admin token (TUTANUS_ADMIN_TOKEN) not configured. Access allowed without authentication.',
};
//# sourceMappingURL=github-push-report-messages.js.map