v2.5.0
ContextLevy v2.5.0
Added
contextlevy scan— baseline scan of tracked files with repo context debt score (0–100) and grade.contextlevy fix— suggest or append.gitignore/.cursorignorepatterns for indexable junk (dry-run by default).contextlevy badge— generate shields.io markdown/URL badges for PR risk, repo debt, or token delta.contextlevy hook install— install pre-push or pre-commit hooks (Husky, lefthook, or plain.git/hooks).contextlevy init --full— scaffold config, workflow, pre-push hook, and branch-protection checklist.- GitHub Check Run named ContextLevy with file annotations (
create-checkinput, default on). - SARIF upload for Code Scanning plus workspace artifact (
upload-sarifinput, default on). - Action outputs:
risk-level,check-conclusion,badge-url,badge-markdown,sarif-path,sarif-uploaded. - Shared category severity helpers (
isHardFailCategory, SARIF/check annotation levels) aligned withHARD_FAIL_CATEGORIES. - Git repo/ref guards with friendly CLI errors (
assertGitRepo,assertGitRef).
Changed
analyzePullRequestFilesandanalyzeRepositoryFilesshareresolveFileClassificationfor consistent rules.loadAnalysiscentralizes config resolution and returnstrackedFileCount/settingsfor scan-based commands.- Init workflow template and README examples use
actions/checkout@v6and includechecks: write/security-events: write. - CLI and Action docs expanded for new commands, inputs, outputs, and hook install flags.
Full changelog: v2.4.0...v2.5.0