From 809a0c8cc28688f7a7253fc8816f2c08358ed8cb Mon Sep 17 00:00:00 2001 From: rUv Date: Thu, 8 Jan 2026 04:15:51 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-08T04:15:51Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../cli/.claude/helpers/statusline.js | 37 ++++++++++++++++--- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/v3/@claude-flow/cli/.claude/helpers/statusline.js b/v3/@claude-flow/cli/.claude/helpers/statusline.js index fde194fa66..cadada91ee 100644 --- a/v3/@claude-flow/cli/.claude/helpers/statusline.js +++ b/v3/@claude-flow/cli/.claude/helpers/statusline.js @@ -129,15 +129,40 @@ function getV3Progress() { }; } -// Get security status +// Get security status based on actual scans function getSecurityStatus() { - const securityPath = path.join(process.cwd(), 'v3', '@claude-flow', 'security'); - const exists = fs.existsSync(securityPath); + // Check for security scan results in memory + const scanResultsPath = path.join(process.cwd(), '.claude', 'security-scans'); + let cvesFixed = 0; + const totalCves = 3; + + if (fs.existsSync(scanResultsPath)) { + try { + const scans = fs.readdirSync(scanResultsPath).filter(f => f.endsWith('.json')); + // Each successful scan file = 1 CVE addressed + cvesFixed = Math.min(totalCves, scans.length); + } catch (e) { + // Ignore + } + } + + // Also check .swarm/security for audit results + const auditPath = path.join(process.cwd(), '.swarm', 'security'); + if (fs.existsSync(auditPath)) { + try { + const audits = fs.readdirSync(auditPath).filter(f => f.includes('audit')); + cvesFixed = Math.min(totalCves, Math.max(cvesFixed, audits.length)); + } catch (e) { + // Ignore + } + } + + const status = cvesFixed >= totalCves ? 'CLEAN' : cvesFixed > 0 ? 'IN_PROGRESS' : 'PENDING'; return { - status: exists ? 'CLEAN' : 'IN_PROGRESS', - cvesFixed: exists ? 3 : 2, - totalCves: 3, + status, + cvesFixed, + totalCves, }; }