coverme-scanner 1.0.0
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.
- package/README.md +227 -0
- package/commands/scan.md +317 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +39 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/init.d.ts +6 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +636 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/scan.d.ts +11 -0
- package/dist/cli/scan.d.ts.map +1 -0
- package/dist/cli/scan.js +498 -0
- package/dist/cli/scan.js.map +1 -0
- package/dist/report/generator.d.ts +48 -0
- package/dist/report/generator.d.ts.map +1 -0
- package/dist/report/generator.js +368 -0
- package/dist/report/generator.js.map +1 -0
- package/dist/report/index.d.ts +35 -0
- package/dist/report/index.d.ts.map +1 -0
- package/dist/report/index.js +463 -0
- package/dist/report/index.js.map +1 -0
- package/dist/templates/report.html +796 -0
- package/dist/types.d.ts +94 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +48 -0
- package/src/cli/index.ts +43 -0
- package/src/cli/init.ts +611 -0
- package/src/cli/scan.ts +483 -0
- package/src/prompts/architecture-reviewer.md +171 -0
- package/src/prompts/consensus-builder.md +247 -0
- package/src/prompts/context-discovery.md +174 -0
- package/src/prompts/cross-validator.md +224 -0
- package/src/prompts/deep-dive-expert.md +224 -0
- package/src/prompts/dependency-auditor.md +190 -0
- package/src/prompts/performance-hunter.md +200 -0
- package/src/prompts/quality-analyzer.md +150 -0
- package/src/prompts/report-generator.md +285 -0
- package/src/prompts/security-scanner.md +180 -0
- package/src/report/generator.ts +382 -0
- package/src/report/index.ts +483 -0
- package/src/templates/report.html +796 -0
- package/src/types.ts +107 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.generateHtml = generateHtml;
|
|
40
|
+
exports.generatePdf = generatePdf;
|
|
41
|
+
exports.generateReport = generateReport;
|
|
42
|
+
const fs = __importStar(require("fs"));
|
|
43
|
+
const puppeteer_1 = __importDefault(require("puppeteer"));
|
|
44
|
+
function escapeHtml(text) {
|
|
45
|
+
if (!text)
|
|
46
|
+
return '';
|
|
47
|
+
return text
|
|
48
|
+
.replace(/&/g, '&')
|
|
49
|
+
.replace(/</g, '<')
|
|
50
|
+
.replace(/>/g, '>')
|
|
51
|
+
.replace(/"/g, '"')
|
|
52
|
+
.replace(/'/g, ''');
|
|
53
|
+
}
|
|
54
|
+
function calculateScore(findings) {
|
|
55
|
+
const critical = findings.filter(f => f.severity === 'critical').length;
|
|
56
|
+
const high = findings.filter(f => f.severity === 'high').length;
|
|
57
|
+
const medium = findings.filter(f => f.severity === 'medium').length;
|
|
58
|
+
const low = findings.filter(f => f.severity === 'low').length;
|
|
59
|
+
let penalty = 0;
|
|
60
|
+
penalty += Math.min(critical * 20, 50);
|
|
61
|
+
penalty += Math.min(high * 5, 30);
|
|
62
|
+
penalty += Math.min(medium * 2, 15);
|
|
63
|
+
penalty += Math.min(low * 0.5, 5);
|
|
64
|
+
const score = Math.max(0, Math.round(100 - penalty));
|
|
65
|
+
let grade;
|
|
66
|
+
if (critical > 0)
|
|
67
|
+
grade = 'f';
|
|
68
|
+
else if (score >= 90)
|
|
69
|
+
grade = 'a';
|
|
70
|
+
else if (score >= 75)
|
|
71
|
+
grade = 'b';
|
|
72
|
+
else if (score >= 60)
|
|
73
|
+
grade = 'c';
|
|
74
|
+
else if (score >= 40)
|
|
75
|
+
grade = 'd';
|
|
76
|
+
else
|
|
77
|
+
grade = 'f';
|
|
78
|
+
return { grade, value: score };
|
|
79
|
+
}
|
|
80
|
+
function generateSummary(findings) {
|
|
81
|
+
const critical = findings.filter(f => f.severity === 'critical').length;
|
|
82
|
+
const high = findings.filter(f => f.severity === 'high').length;
|
|
83
|
+
const total = findings.length;
|
|
84
|
+
if (critical > 0) {
|
|
85
|
+
return `This scan identified ${total} findings, including ${critical} critical issue${critical > 1 ? 's' : ''} requiring immediate attention.${high > 0 ? ` Additionally, ${high} high-priority issues were found.` : ''} Immediate remediation is recommended.`;
|
|
86
|
+
}
|
|
87
|
+
if (high > 0) {
|
|
88
|
+
return `This scan identified ${total} findings, with ${high} high-priority issue${high > 1 ? 's' : ''} that should be addressed soon. No critical vulnerabilities were detected.`;
|
|
89
|
+
}
|
|
90
|
+
if (total > 0) {
|
|
91
|
+
return `This scan identified ${total} findings, primarily medium and low priority items. No critical or high-severity issues were detected.`;
|
|
92
|
+
}
|
|
93
|
+
return `Excellent! No significant security or quality issues were found.`;
|
|
94
|
+
}
|
|
95
|
+
function renderFinding(f, severity) {
|
|
96
|
+
const dataAttrs = `data-finding-id="${escapeHtml(f.id)}" data-file="${escapeHtml(f.file || '')}" data-line="${f.line || ''}" data-description="${escapeHtml(f.description)}" data-recommendation="${escapeHtml(f.recommendation)}" data-severity="${severity}" data-why="${escapeHtml(f.why || '')}" data-context="${escapeHtml(f.context || '')}" data-checkbefore="${escapeHtml(f.checkBefore || '')}"`;
|
|
97
|
+
const whyBox = f.why ? `
|
|
98
|
+
<div class="info-box info-why">
|
|
99
|
+
<span class="info-label">Why This Matters</span>
|
|
100
|
+
<p>${escapeHtml(f.why)}</p>
|
|
101
|
+
</div>` : '';
|
|
102
|
+
const contextBox = f.context ? `
|
|
103
|
+
<div class="info-box info-context">
|
|
104
|
+
<span class="info-label">Code Context</span>
|
|
105
|
+
<p>${escapeHtml(f.context)}</p>
|
|
106
|
+
</div>` : '';
|
|
107
|
+
const checkBox = f.checkBefore ? `
|
|
108
|
+
<div class="info-box info-check">
|
|
109
|
+
<span class="info-label">Check Before Fixing</span>
|
|
110
|
+
<p>${escapeHtml(f.checkBefore)}</p>
|
|
111
|
+
</div>` : '';
|
|
112
|
+
const codeBlock = f.code ? `
|
|
113
|
+
<div class="code-block"><code>${escapeHtml(f.code)}</code></div>` : '';
|
|
114
|
+
return `
|
|
115
|
+
<div class="finding" ${dataAttrs}>
|
|
116
|
+
<div class="finding-header" onclick="this.parentElement.classList.toggle('open')">
|
|
117
|
+
<span class="severity-badge sev-${severity}">${severity}</span>
|
|
118
|
+
<span class="finding-title">${escapeHtml(f.title)}</span>
|
|
119
|
+
<span class="finding-file">${f.file ? escapeHtml(f.file) : ''}</span>
|
|
120
|
+
<svg class="expand-arrow" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="finding-body">
|
|
123
|
+
<div class="location">
|
|
124
|
+
<span class="location-file">${escapeHtml(f.file || '')}</span>
|
|
125
|
+
<span class="location-line">${f.line ? ':' + f.line : ''}</span>
|
|
126
|
+
<button class="copy-btn" onclick="event.stopPropagation(); copyText('${escapeHtml(f.file || '')}:${f.line || ''}', this)">Copy</button>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<div class="info-grid">
|
|
130
|
+
<div class="info-box info-problem">
|
|
131
|
+
<span class="info-label">Problem</span>
|
|
132
|
+
<p>${escapeHtml(f.description)}</p>
|
|
133
|
+
</div>
|
|
134
|
+
${whyBox}
|
|
135
|
+
${contextBox}
|
|
136
|
+
${checkBox}
|
|
137
|
+
${codeBlock}
|
|
138
|
+
<div class="info-box info-fix">
|
|
139
|
+
<span class="info-label">How to Fix</span>
|
|
140
|
+
<p>${escapeHtml(f.recommendation)}</p>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<div class="prompt-box">
|
|
145
|
+
<div class="prompt-header">
|
|
146
|
+
<span class="prompt-label">Claude Code Prompt</span>
|
|
147
|
+
<button class="copy-btn" onclick="event.stopPropagation(); copyPrompt(this.closest('.finding'))">Copy</button>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="prompt-text">Fix ${escapeHtml(f.id)} in ${escapeHtml(f.file || '')}:${f.line || ''}
|
|
150
|
+
|
|
151
|
+
Problem: ${escapeHtml(f.description)}
|
|
152
|
+
${f.why ? `\nWhy: ${escapeHtml(f.why)}` : ''}
|
|
153
|
+
${f.context ? `\nContext: ${escapeHtml(f.context)}` : ''}
|
|
154
|
+
${f.checkBefore ? `\nCheck first: ${escapeHtml(f.checkBefore)}` : ''}
|
|
155
|
+
|
|
156
|
+
Solution: ${escapeHtml(f.recommendation)}</div>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
</div>`;
|
|
160
|
+
}
|
|
161
|
+
function generateHtml(report) {
|
|
162
|
+
const { grade, value } = calculateScore(report.findings);
|
|
163
|
+
const critical = report.findings.filter(f => f.severity === 'critical');
|
|
164
|
+
const high = report.findings.filter(f => f.severity === 'high');
|
|
165
|
+
const medium = report.findings.filter(f => f.severity === 'medium');
|
|
166
|
+
const low = report.findings.filter(f => f.severity === 'low' || f.severity === 'info');
|
|
167
|
+
const criticalSection = critical.length > 0 ? `
|
|
168
|
+
<section>
|
|
169
|
+
<h2 class="section-title">Critical Issues</h2>
|
|
170
|
+
${critical.map(f => renderFinding(f, 'critical')).join('\n')}
|
|
171
|
+
</section>` : '';
|
|
172
|
+
const highSection = high.length > 0 ? `
|
|
173
|
+
<section>
|
|
174
|
+
<h2 class="section-title">High Priority</h2>
|
|
175
|
+
${high.map(f => renderFinding(f, 'high')).join('\n')}
|
|
176
|
+
</section>` : '';
|
|
177
|
+
const mediumSection = medium.length > 0 ? `
|
|
178
|
+
<section>
|
|
179
|
+
<h2 class="section-title">Medium Priority</h2>
|
|
180
|
+
${medium.map(f => renderFinding(f, 'medium')).join('\n')}
|
|
181
|
+
</section>` : '';
|
|
182
|
+
const lowSection = low.length > 0 ? `
|
|
183
|
+
<section>
|
|
184
|
+
<h2 class="section-title">Low Priority</h2>
|
|
185
|
+
${low.map(f => renderFinding(f, 'low')).join('\n')}
|
|
186
|
+
</section>` : '';
|
|
187
|
+
const positiveSection = report.positiveObservations.length > 0 ? `
|
|
188
|
+
<section>
|
|
189
|
+
<h2 class="section-title">What's Good</h2>
|
|
190
|
+
<ul class="positive-list">
|
|
191
|
+
${report.positiveObservations.map(obs => `
|
|
192
|
+
<li class="positive-item">
|
|
193
|
+
<span class="check-icon">✓</span>
|
|
194
|
+
<span>${escapeHtml(obs)}</span>
|
|
195
|
+
</li>
|
|
196
|
+
`).join('\n')}
|
|
197
|
+
</ul>
|
|
198
|
+
</section>` : '';
|
|
199
|
+
return `<!DOCTYPE html>
|
|
200
|
+
<html lang="en">
|
|
201
|
+
<head>
|
|
202
|
+
<meta charset="UTF-8">
|
|
203
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
204
|
+
<title>${escapeHtml(report.projectName)} - Security Report</title>
|
|
205
|
+
<style>
|
|
206
|
+
:root {
|
|
207
|
+
--bg: #fafafa;
|
|
208
|
+
--card: #ffffff;
|
|
209
|
+
--text: #111111;
|
|
210
|
+
--text-muted: #666666;
|
|
211
|
+
--text-light: #999999;
|
|
212
|
+
--border: #eaeaea;
|
|
213
|
+
--accent: #000000;
|
|
214
|
+
--critical: #e11d48;
|
|
215
|
+
--high: #f97316;
|
|
216
|
+
--medium: #eab308;
|
|
217
|
+
--low: #3b82f6;
|
|
218
|
+
--success: #10b981;
|
|
219
|
+
--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
220
|
+
--mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
|
|
221
|
+
}
|
|
222
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
223
|
+
body { font-family: var(--font); font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
|
|
224
|
+
.container { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
|
|
225
|
+
|
|
226
|
+
header { text-align: center; margin-bottom: 60px; }
|
|
227
|
+
.logo { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 20px; }
|
|
228
|
+
h1 { font-size: 42px; font-weight: 700; letter-spacing: -1px; margin-bottom: 8px; }
|
|
229
|
+
.date { color: var(--text-muted); font-size: 14px; }
|
|
230
|
+
|
|
231
|
+
.score-section { display: flex; justify-content: center; gap: 40px; margin: 50px 0; padding: 40px; background: var(--card); border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
|
|
232
|
+
.score-circle { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: white; text-transform: uppercase; }
|
|
233
|
+
.grade-a { background: var(--success); }
|
|
234
|
+
.grade-b { background: #22c55e; }
|
|
235
|
+
.grade-c { background: var(--medium); }
|
|
236
|
+
.grade-d { background: var(--high); }
|
|
237
|
+
.grade-f { background: var(--critical); }
|
|
238
|
+
.stats { display: flex; align-items: center; gap: 32px; }
|
|
239
|
+
.stat { text-align: center; }
|
|
240
|
+
.stat-num { font-size: 28px; font-weight: 700; line-height: 1; }
|
|
241
|
+
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-top: 6px; }
|
|
242
|
+
.stat-critical .stat-num { color: var(--critical); }
|
|
243
|
+
.stat-high .stat-num { color: var(--high); }
|
|
244
|
+
.stat-medium .stat-num { color: var(--medium); }
|
|
245
|
+
.stat-low .stat-num { color: var(--low); }
|
|
246
|
+
|
|
247
|
+
.copy-all { text-align: center; margin: 40px 0; }
|
|
248
|
+
.copy-all-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: var(--accent); color: white; border: none; border-radius: 100px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
|
|
249
|
+
.copy-all-btn:hover { transform: translateY(-2px); opacity: 0.9; }
|
|
250
|
+
.copy-all-btn.copied { background: var(--success); }
|
|
251
|
+
.copy-hint { margin-top: 10px; font-size: 13px; color: var(--text-light); }
|
|
252
|
+
|
|
253
|
+
section { margin-bottom: 50px; }
|
|
254
|
+
.section-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
|
|
255
|
+
|
|
256
|
+
.finding { background: var(--card); border-radius: 12px; margin-bottom: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid var(--border); }
|
|
257
|
+
.finding-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; transition: background 0.15s; }
|
|
258
|
+
.finding-header:hover { background: var(--bg); }
|
|
259
|
+
.severity-badge { padding: 4px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: white; }
|
|
260
|
+
.sev-critical { background: var(--critical); }
|
|
261
|
+
.sev-high { background: var(--high); }
|
|
262
|
+
.sev-medium { background: var(--medium); color: #000; }
|
|
263
|
+
.sev-low { background: var(--low); }
|
|
264
|
+
.finding-title { flex: 1; font-weight: 600; font-size: 15px; }
|
|
265
|
+
.finding-file { font-family: var(--mono); font-size: 12px; color: var(--text-light); }
|
|
266
|
+
.expand-arrow { color: var(--text-light); transition: transform 0.2s; }
|
|
267
|
+
.finding.open .expand-arrow { transform: rotate(180deg); }
|
|
268
|
+
|
|
269
|
+
.finding-body { display: none; padding: 0 24px 24px; }
|
|
270
|
+
.finding.open .finding-body { display: block; }
|
|
271
|
+
|
|
272
|
+
.location { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #f4f4f5; border-radius: 8px; font-family: var(--mono); font-size: 13px; margin-bottom: 20px; }
|
|
273
|
+
.location-file { color: var(--text); }
|
|
274
|
+
.location-line { color: var(--text-muted); }
|
|
275
|
+
.copy-btn { padding: 4px 10px; background: white; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; cursor: pointer; margin-left: 8px; }
|
|
276
|
+
.copy-btn:hover { background: var(--bg); }
|
|
277
|
+
|
|
278
|
+
.info-grid { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
|
|
279
|
+
.info-box { padding: 16px 20px; border-radius: 10px; font-size: 14px; line-height: 1.6; }
|
|
280
|
+
.info-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: block; }
|
|
281
|
+
.info-problem { background: #fef2f2; border-left: 3px solid var(--critical); }
|
|
282
|
+
.info-problem .info-label { color: var(--critical); }
|
|
283
|
+
.info-why { background: #fff7ed; border-left: 3px solid var(--high); }
|
|
284
|
+
.info-why .info-label { color: var(--high); }
|
|
285
|
+
.info-context { background: #f0f9ff; border-left: 3px solid var(--low); }
|
|
286
|
+
.info-context .info-label { color: var(--low); }
|
|
287
|
+
.info-check { background: #fefce8; border-left: 3px solid var(--medium); }
|
|
288
|
+
.info-check .info-label { color: #a16207; }
|
|
289
|
+
.info-fix { background: #f0fdf4; border-left: 3px solid var(--success); }
|
|
290
|
+
.info-fix .info-label { color: var(--success); }
|
|
291
|
+
|
|
292
|
+
.code-block { background: #18181b; border-radius: 10px; padding: 16px 20px; margin: 16px 0; overflow-x: auto; }
|
|
293
|
+
.code-block code { font-family: var(--mono); font-size: 13px; color: #e4e4e7; line-height: 1.6; white-space: pre; }
|
|
294
|
+
|
|
295
|
+
.prompt-box { margin-top: 20px; padding: 16px 20px; background: #18181b; border-radius: 10px; }
|
|
296
|
+
.prompt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
|
|
297
|
+
.prompt-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #71717a; }
|
|
298
|
+
.prompt-text { font-family: var(--mono); font-size: 12px; color: #a1a1aa; line-height: 1.7; white-space: pre-wrap; }
|
|
299
|
+
|
|
300
|
+
.summary-box { background: var(--card); border-radius: 12px; padding: 24px; margin-bottom: 20px; border: 1px solid var(--border); }
|
|
301
|
+
.summary-text { color: var(--text-muted); line-height: 1.8; }
|
|
302
|
+
|
|
303
|
+
.positive-list { list-style: none; }
|
|
304
|
+
.positive-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
|
|
305
|
+
.positive-item:last-child { border-bottom: none; }
|
|
306
|
+
.check-icon { width: 22px; height: 22px; background: #dcfce7; color: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
|
|
307
|
+
|
|
308
|
+
footer { margin-top: 80px; padding-top: 30px; border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--text-light); }
|
|
309
|
+
|
|
310
|
+
@media (max-width: 768px) {
|
|
311
|
+
.container { padding: 30px 16px; }
|
|
312
|
+
h1 { font-size: 28px; }
|
|
313
|
+
.score-section { flex-direction: column; gap: 24px; padding: 24px; }
|
|
314
|
+
.stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
|
|
315
|
+
.finding-header { flex-wrap: wrap; gap: 10px; padding: 16px; }
|
|
316
|
+
.finding-title { width: 100%; order: 2; }
|
|
317
|
+
.finding-file { width: 100%; order: 3; }
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@media print {
|
|
321
|
+
.finding-body { display: block !important; }
|
|
322
|
+
.copy-all, .copy-btn, .prompt-box { display: none; }
|
|
323
|
+
.finding { break-inside: avoid; }
|
|
324
|
+
}
|
|
325
|
+
</style>
|
|
326
|
+
</head>
|
|
327
|
+
<body>
|
|
328
|
+
<div class="container">
|
|
329
|
+
<header>
|
|
330
|
+
<div class="logo">Security Report</div>
|
|
331
|
+
<h1>${escapeHtml(report.projectName)}</h1>
|
|
332
|
+
<p class="date">${report.scanDate}</p>
|
|
333
|
+
</header>
|
|
334
|
+
|
|
335
|
+
<div class="score-section">
|
|
336
|
+
<div class="score-circle grade-${grade}">${grade}</div>
|
|
337
|
+
<div class="stats">
|
|
338
|
+
<div class="stat stat-critical">
|
|
339
|
+
<div class="stat-num">${critical.length}</div>
|
|
340
|
+
<div class="stat-label">Critical</div>
|
|
341
|
+
</div>
|
|
342
|
+
<div class="stat stat-high">
|
|
343
|
+
<div class="stat-num">${high.length}</div>
|
|
344
|
+
<div class="stat-label">High</div>
|
|
345
|
+
</div>
|
|
346
|
+
<div class="stat stat-medium">
|
|
347
|
+
<div class="stat-num">${medium.length}</div>
|
|
348
|
+
<div class="stat-label">Medium</div>
|
|
349
|
+
</div>
|
|
350
|
+
<div class="stat stat-low">
|
|
351
|
+
<div class="stat-num">${low.length}</div>
|
|
352
|
+
<div class="stat-label">Low</div>
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
</div>
|
|
356
|
+
|
|
357
|
+
<div class="summary-box">
|
|
358
|
+
<p class="summary-text">${generateSummary(report.findings)}</p>
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
<div class="copy-all">
|
|
362
|
+
<button class="copy-all-btn" onclick="copyAllFixes(this)">
|
|
363
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round">
|
|
364
|
+
<rect x="9" y="9" width="13" height="13" rx="2"></rect>
|
|
365
|
+
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
|
|
366
|
+
</svg>
|
|
367
|
+
Copy All Fixes for Claude Code
|
|
368
|
+
</button>
|
|
369
|
+
<p class="copy-hint">Paste directly into Claude Code to fix everything</p>
|
|
370
|
+
</div>
|
|
371
|
+
|
|
372
|
+
${criticalSection}
|
|
373
|
+
${highSection}
|
|
374
|
+
${mediumSection}
|
|
375
|
+
${lowSection}
|
|
376
|
+
${positiveSection}
|
|
377
|
+
|
|
378
|
+
<footer>
|
|
379
|
+
<p>Generated by CoverMe Scanner</p>
|
|
380
|
+
<p>${report.scanDuration ? Math.round(report.scanDuration / 1000) + 's' : ''}${report.agentCount ? ' · ' + report.agentCount + ' agents' : ''}</p>
|
|
381
|
+
</footer>
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
<script>
|
|
385
|
+
function copyText(text, btn) {
|
|
386
|
+
navigator.clipboard.writeText(text).then(() => {
|
|
387
|
+
btn.textContent = 'Copied!';
|
|
388
|
+
setTimeout(() => btn.textContent = 'Copy', 1500);
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
function copyPrompt(el) {
|
|
393
|
+
const text = el.querySelector('.prompt-text').textContent;
|
|
394
|
+
const btn = el.querySelector('.prompt-box .copy-btn');
|
|
395
|
+
copyText(text, btn);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
function copyAllFixes(btn) {
|
|
399
|
+
const findings = document.querySelectorAll('.finding[data-finding-id]');
|
|
400
|
+
let prompt = 'Fix these security issues:\\n\\n';
|
|
401
|
+
|
|
402
|
+
findings.forEach((f, i) => {
|
|
403
|
+
prompt += '## ' + (i + 1) + '. [' + f.dataset.severity.toUpperCase() + '] ' + f.dataset.findingId + '\\n';
|
|
404
|
+
prompt += 'File: ' + f.dataset.file + ':' + f.dataset.line + '\\n';
|
|
405
|
+
prompt += 'Problem: ' + f.dataset.description + '\\n';
|
|
406
|
+
if (f.dataset.why) prompt += 'Why: ' + f.dataset.why + '\\n';
|
|
407
|
+
if (f.dataset.checkbefore) prompt += 'Check first: ' + f.dataset.checkbefore + '\\n';
|
|
408
|
+
prompt += 'Fix: ' + f.dataset.recommendation + '\\n\\n';
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
navigator.clipboard.writeText(prompt).then(() => {
|
|
412
|
+
btn.classList.add('copied');
|
|
413
|
+
btn.innerHTML = '<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M20 6L9 17l-5-5"/></svg> Copied!';
|
|
414
|
+
setTimeout(() => {
|
|
415
|
+
btn.classList.remove('copied');
|
|
416
|
+
btn.innerHTML = '<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><rect x="9" y="9" width="13" height="13" rx="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg> Copy All Fixes for Claude Code';
|
|
417
|
+
}, 2500);
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
window.onbeforeprint = () => document.querySelectorAll('.finding').forEach(f => f.classList.add('open'));
|
|
422
|
+
</script>
|
|
423
|
+
</body>
|
|
424
|
+
</html>`;
|
|
425
|
+
}
|
|
426
|
+
async function generatePdf(report, outputPath) {
|
|
427
|
+
const html = generateHtml(report);
|
|
428
|
+
const browser = await puppeteer_1.default.launch({
|
|
429
|
+
headless: true,
|
|
430
|
+
args: ['--no-sandbox', '--disable-setuid-sandbox']
|
|
431
|
+
});
|
|
432
|
+
const page = await browser.newPage();
|
|
433
|
+
await page.setViewport({ width: 900, height: 800 });
|
|
434
|
+
await page.setContent(html, { waitUntil: 'networkidle0' });
|
|
435
|
+
await page.evaluate('document.querySelectorAll(".finding").forEach(f => f.classList.add("open"))');
|
|
436
|
+
const dimensions = await page.evaluate(`({
|
|
437
|
+
width: document.body.scrollWidth,
|
|
438
|
+
height: document.body.scrollHeight
|
|
439
|
+
})`);
|
|
440
|
+
await page.pdf({
|
|
441
|
+
path: outputPath,
|
|
442
|
+
width: '900px',
|
|
443
|
+
height: `${dimensions.height + 80}px`,
|
|
444
|
+
margin: { top: '40px', right: '40px', bottom: '40px', left: '40px' },
|
|
445
|
+
printBackground: true
|
|
446
|
+
});
|
|
447
|
+
await browser.close();
|
|
448
|
+
console.log(`PDF generated: ${outputPath}`);
|
|
449
|
+
}
|
|
450
|
+
async function generateReport(jsonPath, outputPath, format = 'pdf') {
|
|
451
|
+
const reportData = JSON.parse(fs.readFileSync(jsonPath, 'utf-8'));
|
|
452
|
+
const ext = format === 'pdf' ? '.pdf' : '.html';
|
|
453
|
+
const finalPath = outputPath || jsonPath.replace('.json', ext);
|
|
454
|
+
if (format === 'pdf') {
|
|
455
|
+
await generatePdf(reportData, finalPath);
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
const html = generateHtml(reportData);
|
|
459
|
+
fs.writeFileSync(finalPath, html);
|
|
460
|
+
console.log(`HTML generated: ${finalPath}`);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/report/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkKA,oCA+QC;AAED,kCA4BC;AAED,wCAiBC;AAleD,uCAAyB;AAEzB,0DAAkC;AAoClC,SAAS,UAAU,CAAC,IAAY;IAC9B,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IACrB,OAAO,IAAI;SACR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC;SACvB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,cAAc,CAAC,QAAmB;IACzC,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,UAAU,CAAC,CAAC,MAAM,CAAC;IACxE,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,MAAM,CAAC;IAChE,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,MAAM,CAAC;IACpE,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,KAAK,CAAC,CAAC,MAAM,CAAC;I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