guardvibe 1.8.9 → 1.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -100,7 +100,7 @@ export function scanDirectory(path, recursive = true, exclude = [], format = "ma
|
|
|
100
100
|
const totalIssues = totalCritical + totalHigh + totalMedium;
|
|
101
101
|
// Score based on weighted issue density (per file), not raw counts.
|
|
102
102
|
// This makes scoring fair for both small and large projects.
|
|
103
|
-
const filesScanned =
|
|
103
|
+
const filesScanned = metadata.filesScanned || 1;
|
|
104
104
|
const weightedIssues = totalCritical * 10 + totalHigh * 3 + totalMedium * 1;
|
|
105
105
|
const density = weightedIssues / filesScanned;
|
|
106
106
|
// density 0 = 100, density >= 5 = 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "guardvibe",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.10",
|
|
4
4
|
"description": "Security MCP for vibe coding. 277 rules, 22 tools for Next.js, Supabase, Clerk, Stripe, Prisma, tRPC, Hono, GraphQL, Convex, Turso, Uploadthing, AI SDK, and the full AI-generated stack.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|