Spaces:
Sleeping
Sleeping
Commit History
-
fix: Improve fix application accuracy and indentation preservation
Unknown-Geek +1: Copilot- Fixed line number detection: replaced character-based indexOf with line-by-line matching - Added smart line search: finds code within ±10 lines if file changed - Implemented indentation preservation: detects and maintains base indentation - Enhanced validation: verifies code before applying fixes - Added fuzzy matching fallback for line detection - Improved error handling and user warnings Files modified: - server/diffAnalyzer.js: Line-by-line matching algorithm - src/extension.ts: Smart validation and indentation logic Documentation added: - INSTALLATION.md: Complete installation guide - INSTALLATION_COMPLETE.md: Post-installation summary - test-fix-application.md: Technical details of improvements Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>6c57ac0
-
refactor: simplify backend server + fix n8n workflow loop
Unknown-Geek- Fix n8n workflow: filter false-positive Bandit findings, add loop convergence check, ignore B603, detect hardcoded API keys, persist Patcher fixed_code in static data - Patcher Agent: mandatory fixed_code per vulnerability - Backend: remove 700-line diff analyzer, use n8n data directly (61% less code) - Backend: remove chunking system, LCS diff, regex pattern matching - All API contracts unchanged, VSCode extension requires no modifications4700f34 -
feat: align extension + backend with n8n output format
Unknown-Geek- Rewrite applyIndividualFix with line-number-based replacement - Fix All in File applies fixes bottom-to-top by line range - Pass n8n vulnerability types/details through backend pipeline - diffAnalyzer uses n8n type hints for correct vulnerability labeling - Normalize n8n error responses to uniform output format - Show vulnerability types + Apply Fix indicator in tree view - Package latest VSIX88ae80a
-
fix: prevent file corruption in apply individual fix
Unknown-Geek +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>8db2286 -
fix: improve individual vulnerability fix application
Unknown-Geek +1: Claude Opus 4.6- Use line-based replacement as primary strategy instead of string search - Properly extract corresponding corrected code blocks (not just changed lines) - Fix code block mismatch that was causing full file replacement - Add multiple fallback strategies for finding original code - Remove automatic full-file replacement fallback Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>d43f6e6 -
feat: add comment-based vulnerability detection
Unknown-Geek +1: Claude Opus 4.6- Scan for vulnerability comments in code - Detect all 6 vulnerability types from comments - Merge comment-based with diff-based detection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>810db56 -
fix: improve individual vulnerability fix application
Unknown-Geek +1: Claude Opus 4.6- Changed applyIndividualFix to search for original code in document rather than relying on line numbers which can drift - Handle full-file replacement case when original code not found - Extract complete line ranges in diffAnalyzer (not just changed lines) - Ensures originalCode matches actual document content for replacement Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>4f7b015 -
feat: add individual vulnerability detection and display
Unknown-Geek +1: Claude Opus 4.6- Add diffAnalyzer.js to extract individual vulnerabilities by comparing original vs corrected code - Detect vulnerability types: SQL Injection, Command Injection, XSS, Path Traversal, Hardcoded Credentials, etc. - Update /api/scan-file to return individual vulnerabilities with line numbers, type, severity, and specific fixes - Add /api/stored-vulnerabilities and /api/apply-individual-fix endpoints - Update tree view to show each vulnerability with type and line number - Add severity badges with color coding (critical/high/medium/low) - Show vulnerable code vs fixed code in expandable tree items - Support applying fixes individually or all at once Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f8e3ab3