guardvibe 3.0.36 → 3.0.37
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.
|
@@ -945,7 +945,7 @@ function formatBuddyOutput(findings, filePath) {
|
|
|
945
945
|
score -= counts.medium * 3;
|
|
946
946
|
score -= counts.low * 1;
|
|
947
947
|
score = Math.max(0, Math.min(100, score));
|
|
948
|
-
const grade = score >= 90 ? "A" : score >= 75 ? "B" : score >=
|
|
948
|
+
const grade = score >= 90 ? "A" : score >= 75 ? "B" : score >= 50 ? "C" : score >= 25 ? "D" : "F";
|
|
949
949
|
const faces = {
|
|
950
950
|
A: "\\[^_^]/",
|
|
951
951
|
B: " [^_^]b",
|
|
@@ -119,7 +119,8 @@ export function scanDirectory(path, recursive = true, exclude = [], format = "ma
|
|
|
119
119
|
// density 0 = 100, uses log scale so medium findings don't dominate
|
|
120
120
|
// density 0.5 ≈ 85 (B), density 2.0 ≈ 60 (C), density 5.0 ≈ 30 (D)
|
|
121
121
|
const score = Math.max(0, Math.min(100, Math.round(100 - Math.min(density, 5) * 20)));
|
|
122
|
-
|
|
122
|
+
// Grade boundaries match full-audit so the section sub-grade and overall verdict agree.
|
|
123
|
+
const grade = score >= 90 ? "A" : score >= 75 ? "B" : score >= 50 ? "C" : score >= 25 ? "D" : "F";
|
|
123
124
|
// Baseline comparison
|
|
124
125
|
let baselineDiff = null;
|
|
125
126
|
let previousBaseline = null;
|
|
@@ -93,7 +93,7 @@ export function scanStaged(cwd = process.cwd(), format = "markdown", rules) {
|
|
|
93
93
|
const weightedIssues = totalCritical * 10 + totalHigh * 3 + totalMedium * 1;
|
|
94
94
|
const density = weightedIssues / Math.max(scannedCount, 1);
|
|
95
95
|
const score = Math.max(0, Math.min(100, Math.round(100 - density * 20)));
|
|
96
|
-
const grade = score >= 90 ? "A" : score >= 75 ? "B" : score >=
|
|
96
|
+
const grade = score >= 90 ? "A" : score >= 75 ? "B" : score >= 50 ? "C" : score >= 25 ? "D" : "F";
|
|
97
97
|
if (format === "json") {
|
|
98
98
|
return formatFindingsJson(allFindings, { grade, score });
|
|
99
99
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "guardvibe",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.37",
|
|
4
4
|
"mcpName": "io.github.goklab/guardvibe",
|
|
5
5
|
"description": "Security MCP for vibe coding. 365 rules, 38 tools, CLI + doctor. Host security, auth coverage mapping, LLM-powered deep scan (IDOR/business logic), taint analysis. Plus Next.js, Supabase, Clerk, Stripe, Prisma, tRPC, Hono, GraphQL, Convex, Turso, Uploadthing, AI SDK, and the full AI-generated stack.",
|
|
6
6
|
"type": "module",
|