Spaces:
Sleeping
Sleeping
Commit History
-
fix: Enable trust proxy for express-rate-limit in proxied environments
Unknown-Geek +1: Copilot- Added app.set('trust proxy', true) to fix X-Forwarded-For header validation - Resolves ERR_ERL_UNEXPECTED_X_FORWARDED_FOR error on HuggingFace Spaces - Allows rate limiter to correctly identify users behind proxies This fixes the ValidationError that occurs when the server is deployed behind a proxy (like HuggingFace Spaces) and receives X-Forwarded-For headers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>f4a4c49 -
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 -
fix: add fallback N8N_WEBHOOK_URL in routes.js
Unknown-Geekbf42a29
-
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 -
fix: add root GET / route for HF Spaces
Unknown-Geek26218cd -
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: implement logical code chunking for better vulnerability detection
Unknown-Geek +1: Claude Opus 4.6- Replace character-based chunking with logical code parsing - Split Python code into functions, classes, imports, and blocks - Each chunk is now a complete logical unit with full context - Group small blocks together to reduce API calls - Increased max chunk size to 3000 chars (coherent chunks need less splitting) - Add comment-based vulnerability detection (# Vulnerability X: Type) - Detect all 6 vulnerability types even if already marked as fixed Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1821bb9 -
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
-
fix: line-offset drift in chunked assembly + strip markdown fences from AI responses
Shravan Pandala67b35c2 -
feat: persist scan results + Apply Stored Fix command
Shravan Pandalade4dcb4 -
fix: bogus-response guard + overlap context for chunks
Shravan Pandala69014b3 -
fix: retry + chunking to handle n8n 504 timeouts
Shravan Pandalaeda6089 -
feat: add real-time scan toggle, .vscodeignore, LICENSE, updated README with install & usage guide
Shravan Pandala39e682f -
refactor: restore src/ for extension, server/ for backend — clean root
Shravan Pandala113fc23