blaze-performance-tester 3.0.39 → 3.0.40
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/dist/cli.js +9 -2
- package/dist/index.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -487,7 +487,7 @@ function exportHtmlDashboard(history, config, verdictReason, semanticReport, res
|
|
|
487
487
|
\u{1F9E0} Interactive Remediation Playbooks & Log Classification
|
|
488
488
|
</h3>
|
|
489
489
|
<div style="color: #94a3b8; font-size: 0.9rem; margin-bottom: 1.5rem;">
|
|
490
|
-
Captured <strong style="color: #f8fafc;">${totalLogCount}</strong> raw failures grouped into <strong style="color: #f8fafc;">${uniquePatternsCount}</strong> unique structural patterns. Expand a playbook to inspect automated remediation strategies.
|
|
490
|
+
Captured <strong style="color: #f8fafc;">${totalLogCount}</strong> raw failures grouped into <strong style="color: #f8fafc;">${uniquePatternsCount}</strong> unique structural patterns. Expand a playbook to inspect automated remediation strategies and diagnostics confidence ratings.
|
|
491
491
|
</div>
|
|
492
492
|
|
|
493
493
|
<div style="display: flex; flex-direction: column; gap: 1rem;">
|
|
@@ -499,6 +499,12 @@ function exportHtmlDashboard(history, config, verdictReason, semanticReport, res
|
|
|
499
499
|
let sevBg = c.severity === "CRITICAL" ? "#dc2626" : "#ea580c";
|
|
500
500
|
const rawTemplate = c.template || "";
|
|
501
501
|
const cleanedTemplate = rawTemplate.replace(/\[\d{4}-\d{2}-\d{2}.*?\]\s*/, "");
|
|
502
|
+
const clarityBonus = c.severity === "CRITICAL" ? 15 : 8;
|
|
503
|
+
const freqScore = Math.min(25, c.count * 0.5);
|
|
504
|
+
const confidenceScore = Math.min(99, Math.round(65 + freqScore + clarityBonus));
|
|
505
|
+
let confColor = "#10b981";
|
|
506
|
+
if (confidenceScore < 80) confColor = "#f59e0b";
|
|
507
|
+
if (confidenceScore < 70) confColor = "#ef4444";
|
|
502
508
|
let fixTitle = "Infrastructure Pool & Tuning Fix";
|
|
503
509
|
let fixCode = "const pool = new Pool({ max: 50, idleTimeoutMillis: 30000 });";
|
|
504
510
|
let explanation = "High concurrency is causing socket/connection starvation. Increase connection limits or enable pooling keep-alives.";
|
|
@@ -515,10 +521,11 @@ function exportHtmlDashboard(history, config, verdictReason, semanticReport, res
|
|
|
515
521
|
return `
|
|
516
522
|
<details style="background: #090d16; border: 1px solid #1e293b; border-radius: 6px; overflow: hidden;">
|
|
517
523
|
<summary style="padding: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none;">
|
|
518
|
-
<div style="display: flex; align-items: center; gap: 1rem;">
|
|
524
|
+
<div style="display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;">
|
|
519
525
|
<span style="font-size: 1.1rem; font-weight: bold; color: #f8fafc; background: #131c2e; padding: 0.2rem 0.6rem; border-radius: 4px;">${c.count}x</span>
|
|
520
526
|
<span style="color: ${catColor}; font-weight: 600; font-size: 0.95rem;">${c.category}</span>
|
|
521
527
|
<span style="background: ${sevBg}; color: #ffffff; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.65rem; font-weight: bold; letter-spacing: 0.05em;">${c.severity}</span>
|
|
528
|
+
<span style="background: rgba(16, 185, 129, 0.15); color: ${confColor}; border: 1px solid ${confColor}40; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: bold;">AI Confidence: ${confidenceScore}%</span>
|
|
522
529
|
</div>
|
|
523
530
|
<div style="color: #64748b; font-size: 0.85rem; font-family: monospace;">Expand Playbook \u25BC</div>
|
|
524
531
|
</summary>
|
|
Binary file
|