v0.5.2 -- smarter scorer for libraries and CLIs
OPE-180: project-type-aware scoring
saar stats was penalizing component libraries and CLIs for missing auth patterns and exception classes. These sections don't exist in those project types -- it's not a bug, it's an irrelevant rubric.
Before: storybookjs/react-native scored 74/100 (C) -- penalized for missing auth/exceptions in a UI library
After: 80/100 (B) -- scored on 4 relevant sections only, with note '(library — auth/exceptions not required)'
How it works:
- web_app (FastAPI, Django, Next.js): full 6-section rubric, 40pts max coverage
- library (scoped @Package, SDK, component lib): 4-section rubric, 28pts max
- cli (bin field, typer/click): 4-section rubric, 28pts max
Detection uses both filesystem signals (package.json bin, scoped name, exports) and content signals (framework keywords).
Score banner now shows project type when it affects scoring. Coverage column shows the correct max (28, not 40) for libraries.