Commit Graph

451 Commits

Author SHA1 Message Date
lintsinghua f2d29efa1e
Update README.md 2025-12-08 21:51:10 +08:00
lintsinghua 3a297dda3f feat: add json-repair library as fallback for LLM response parsing
- Add json-repair>=0.30.0 to dependencies
- Add _repair_json_with_library method as final fallback in JSON parsing
- Update version to 2.0.0-beta.6
2025-12-08 21:45:58 +08:00
lintsinghua 4fa99b7615 Merge remote branch and resolve conflict: rename XCodeReviewer to DeepAudit 2025-12-08 21:36:28 +08:00
lintsinghua e856ad1a8d chore: rebrand XCodeReviewer to DeepAudit across all files
- Update project name from XCodeReviewer to DeepAudit in CI/CD workflows
- Replace Docker image names and release artifact naming conventions
- Update GitHub repository references in documentation files
- Modify database names and container names in setup instructions
- Update contributor badge and issue tracker links
- Rename frontend logo file from logo_deepaudit.png
- Update environment configuration examples and documentation
- Rebrand all references in CONTRIBUTING.md, DISCLAIMER.md, and README.md
- Update backend configuration and deployment documentation
- Ensure consistent naming across frontend and backend configurations
2025-12-08 21:35:09 +08:00
lintsinghua b018525d29
更新 README.md 2025-12-07 18:48:51 +08:00
lintsinghua d190ff4312
Update README.md 2025-12-06 21:32:22 +08:00
lintsinghua e9115af786
Update README.md 2025-12-06 21:29:17 +08:00
lintsinghua 575ab212b8 docs: enhance README with improved star history visualization and analytics
- Replace centered star history chart with dedicated "📈 项目统计" section
- Add dark mode support for star history chart using picture element with media queries
- Include Repobeats analytics embed for repository insights and activity tracking
- Improve visual presentation and accessibility of project statistics
- Better organize documentation structure for improved readability
2025-12-06 21:27:35 +08:00
lintsinghua 293d3018df chore: bump version to 2.0.0-beta.5 2025-12-06 21:22:36 +08:00
lintsinghua 40bd35ab08 feat(scanner): add file skipping logic and enhanced debug logging
- Add skipped_files counter to track empty and oversized files
- Implement file content validation to skip empty files
- Add file size check to skip files exceeding MAX_FILE_SIZE_BYTES limit
- Add detailed debug logging for file fetching, LLM analysis, and completion
- Add comprehensive error logging with traceback information for failed files
- Improve task status determination logic to distinguish between skipped files and LLM failures
- Mark tasks as completed when all files are empty/skipped instead of failing
- Update error messages to show actual failed file count instead of total files
- Enhance observability during code analysis workflow with emoji-prefixed status messages
2025-12-06 21:21:36 +08:00
lintsinghua cd80517f2d fix(llm): add debug logging for custom API base URL configuration
- Add debug print statement to log custom API base URL when configured
- Improves troubleshooting and visibility into LiteLLM adapter initialization
- Helps developers verify correct API endpoint configuration during runtime
2025-12-06 20:59:42 +08:00
lintsinghua 07810b309c feat(audit): refactor task creation with file selection and advanced options
- Add FileSelectionDialog component for granular file selection in audit tasks
- Extract task form logic into useTaskForm and useZipFile custom hooks
- Create modular components: BasicConfig, AdvancedOptions, ExcludePatterns, ProjectSelector, ZipFileSection
- Add file listing endpoint GET /projects/{id}/files with branch support
- Add branch listing endpoint GET /projects/{id}/branches for repository projects
- Implement ScanRequest model with file_paths, exclude_patterns, and branch_name fields
- Update scan endpoint to accept selective file scanning and exclude patterns
- Add branch_name and exclude_patterns fields to AuditTask model
- Enhance scanner service with GitHub and GitLab file/branch retrieval functions
- Improve CreateTaskDialog with better UX for repository and ZIP file scanning
- Support per-scan configuration storage in audit tasks
- Refactor repository scan services to handle file selection and branch parameters
2025-12-06 20:47:28 +08:00
lintsinghua 33c4df9645 refactor: 优化 Docker 部署配置
- 后端使用 uv 管理依赖,镜像内包含所有依赖
- 前端使用生产构建 + serve 提供静态文件
- 添加 WeasyPrint 完整系统依赖
- 修复 PDF 报告 Logo 显示问题
- 添加 .dockerignore 优化构建
- 更新部署文档和 GitHub Actions 工作流
- 前端端口从 5173 改为 3000
2025-12-05 20:51:22 +08:00
lintsinghua db3d8fd9f8 fix: 修复数据库初始化顺序问题
- docker-compose 启动时先运行 alembic upgrade head
- 优化数据库表不存在时的错误提示
2025-12-05 19:32:20 +08:00
lintsinghua d9cd0d73f9
更新 README.md 2025-12-05 15:25:08 +08:00
lintsinghua e3f96aac86
更新 README.md 2025-12-05 15:22:52 +08:00
lintsinghua f982d6a5e6 feat: 添加演示账户和演示数据,完善项目文档
- 添加演示账户 demo@example.com / demo123
- 创建 6 个演示项目和 15 个审计任务
- 完善 DEPLOYMENT.md、CONFIGURATION.md、LLM_PROVIDERS.md、FAQ.md 文档
- 更新 CONTRIBUTING.md、SECURITY.md、DISCLAIMER.md
- 前端版本号自动从 package.json 读取
- 仪表盘项目概览显示 6 个项目
- 版本号更新为 2.0.0-beta.3
2025-12-05 15:09:39 +08:00
lintsinghua 1550e51662
Add footer with creator information to README
Added a footer message indicating the creator of the project.
2025-12-05 14:40:54 +08:00
lintsinghua 4091e3ed13
Update README.md 2025-12-05 14:40:00 +08:00
lintsinghua 4f8823c584
Update README.md 2025-12-05 14:39:30 +08:00
lintsinghua 50d9d71f90 docs: expand contributing guidelines and improve documentation structure
- Restructure CONTRIBUTING.md with comprehensive sections including code of conduct, development setup, and PR workflow
- Add detailed environment requirements table with version specifications and descriptions
- Include step-by-step backend and frontend setup instructions with database initialization
- Document code standards for both Python (Ruff, mypy) and TypeScript (Biome) with example commands
- Add conventional commits specification with type definitions and practical examples
- Provide complete PR process guide from forking through code review
- Include project structure diagram for better navigation
- Expand DISCLAIMER.md with improved formatting, tables, and clearer responsibility sections
- Add AI analysis limitations and technical constraints documentation
- Update SECURITY.md with enhanced security guidelines
- Refresh backend/env.example and frontend/.env.example with current configuration options
- Create new docs/ARCHITECTURE.md for system design documentation
- Update docs/CONFIGURATION.md, docs/DEPLOYMENT.md, docs/FAQ.md, and docs/LLM_PROVIDERS.md with improved clarity and structure
- Improve overall documentation consistency and user experience across all guides
2025-12-05 14:37:07 +08:00
lintsinghua c454db6159 docs: improve README formatting and spacing
- Add blank line before call-to-action section for better visual separation
- Enhance readability of features section with improved spacing
- Maintain consistent formatting throughout documentation
2025-12-05 14:21:35 +08:00
lintsinghua 50fcc5af33 docs: simplify README formatting and improve content structure
- Remove emoji prefixes from core capabilities list for cleaner presentation
- Convert LLM platforms table to bullet point format for better readability
- Simplify roadmap section by removing blockquote and restructuring content
- Update contribution section heading from "一起让它变得更好" to "贡献"
- Streamline contribution description and remove extra line breaks
- Improve visual hierarchy and consistency across documentation sections
2025-12-05 14:20:31 +08:00
lintsinghua 0f0c68b8ee docs: update roadmap and documentation sections with more realistic goals
- Rewrite future roadmap with honest assessment of current limitations and planned improvements
- Simplify vision statement to reflect actual project maturity and development priorities
- Reorganize documentation section from table format to inline list with descriptions
- Update contribution section with clearer call-to-action and remove badge image
- Make content more conversational and approachable for users and contributors
- Emphasize cross-file analysis and hybrid analysis engine as key future features
2025-12-05 14:08:04 +08:00
lintsinghua 520e2afe3b
Update README.md 2025-12-05 13:57:40 +08:00
lintsinghua a8e6759d7f
Update README.md 2025-12-05 13:54:49 +08:00
lintsinghua f961e6a197 docs: restructure README with improved layout and formatting
- Replace centered HTML alignment with markdown heading and div styling
- Convert core capabilities table to bullet point list format
- Convert roadmap table to bullet point list format
- Add TypeScript badge to technology stack
- Reorganize contact section from centered links to bullet point list
- Add "Star this project" banner image to header
- Add development notice about multi-Agent PR batch audit version
- Improve visual hierarchy and readability of key sections
- Maintain all existing content while enhancing presentation
2025-12-05 13:52:48 +08:00
lintsinghua 0e00514aad docs: redesign README with improved visual hierarchy and content structure
- Restructure header with centered logo, title, and tagline for better visual impact
- Add comprehensive badge section showcasing version, tech stack, and social links
- Reorganize content with new "What is this?" section addressing user pain points
- Introduce "Why choose us?" comparison table highlighting key differentiators
- Replace text-based feature list with visual demo table showing screenshots
- Simplify quick start guide to 3-step process with clearer instructions
- Add core capabilities table for better feature discoverability
- Create LLM platform support table with categorized provider grouping
- Add future roadmap section with planned features and improvements
- Improve overall readability with better spacing, formatting, and visual hierarchy
- Enhance user engagement with emoji usage and conversational tone throughout
2025-12-05 13:48:34 +08:00
lintsinghua 318e836ebd
Update README.md 2025-12-05 13:39:18 +08:00
lintsinghua 8f113493e1 docs: add comprehensive documentation and guidelines
- Add CONTRIBUTING.md with development setup, code standards, and contribution workflow
- Add DISCLAIMER.md with privacy warnings, liability disclaimers, and user responsibilities
- Add SECURITY.md for code security and privacy guidelines
- Add docs/CONFIGURATION.md with backend configuration and database setup instructions
- Add docs/DEPLOYMENT.md with Docker and local development deployment guides
- Add docs/FAQ.md with frequently asked questions and troubleshooting
- Add docs/LLM_PROVIDERS.md with 10+ LLM platform configurations and API key setup
- Update README.md with documentation navigation table and streamlined feature descriptions
- Consolidate scattered documentation into organized docs/ directory for better maintainability
2025-12-05 13:38:14 +08:00
lintsinghua 5d28f066b4
Update README.md 2025-12-05 13:32:27 +08:00
lintsinghua 6fd305eac9 fix: 修复多个问题
- 修复创建ZIP项目时缺少source_type字段的问题
- 修复LiteLLM模型名称被错误解析为effort参数的问题
- 修复登录/注册页面无法正确显示验证错误的问题
- 添加Windows导出PDF需要GTK依赖的说明文档
2025-12-04 16:54:15 +08:00
lintsinghua 2656431c0a docs: add audit report section to README
- Add new "审计报告" (Audit Report) section with example screenshot
- Include description of professional code audit report features
- Document support for PDF/JSON export formats
- Highlight detailed issue analysis and fix recommendations
- Improve README documentation completeness with audit report showcase
2025-11-28 23:11:46 +08:00
lintsinghua 14dec67b22 docs: remove technical stack and project structure sections from README
- Remove "🛠️ 技术栈" section including frontend, backend, and data storage technology tables
- Remove "📁 项目结构" section with detailed project directory structure
- Remove "🎯 使用指南" section including system configuration, instant analysis, project management, audit tasks, report export, and build/deployment instructions
- Remove backend environment variables documentation and configuration tables
- Remove "🙏 致谢" (acknowledgments) section with technology and AI platform credits
- Simplify README by focusing on core content and removing detailed technical documentation that can be maintained separately
2025-11-28 23:04:28 +08:00
lintsinghua 2b73ca1af4 docs: remove system architecture diagram from README
- Remove embedded SVG diagram reference (frontend/public/diagram.svg)
- Remove associated diagram caption and styling div
- Remove extra separator line
- Streamline README by keeping feature descriptions while removing visual diagram
- Simplifies documentation maintenance and reduces visual clutter
2025-11-28 22:58:23 +08:00
lintsinghua 3d908ad93e feat: update UI screenshots, add fonts, and improve terminal progress dialog 2025-11-28 22:55:32 +08:00
lintsinghua 36622e1da8 docs: update README image paths and version to 2.0.0-beta.1
- Update all image references from `public/` to `frontend/public/` to reflect correct project structure
- Bump version badge from 1.3.4 to 2.0.0-beta.1 in README
- Refresh example screenshots (example1.png, example2.png, example3.png)
- Update audit report example image (审计报告示例.png)
- Ensure all documentation images point to correct frontend assets location
2025-11-28 22:12:27 +08:00
lintsinghua 7fa3a820ed fix: regenerate pnpm-lock.yaml to sync with package.json 2025-11-28 21:12:14 +08:00
lintsinghua 8192b16ebe fix(ci): upgrade pnpm to v9 for lockfile v9.0 compatibility 2025-11-28 21:08:09 +08:00
lintsinghua 833de0788c fix(ci): fix pnpm installation order in GitHub Actions
- Use pnpm/action-setup@v3 for proper pnpm installation
- Add pnpm store caching for faster builds
- Remove cache from setup-node to avoid pnpm not found error
- Update step numbers after adding cache steps
2025-11-28 20:53:05 +08:00
lintsinghua 9d2d9367b2 feat: improve Docker deployment and release workflows
- Add WeasyPrint system dependencies with Chinese font support
- Update requirements.txt with all dependencies
- Fix docker-compose.yml network configuration
- Update GitHub Actions release workflow for frontend-backend architecture
- Update release script for new project structure
- Support multi-arch Docker builds (amd64, arm64)
2025-11-28 20:43:26 +08:00
lintsinghua 9054f0d2c5 feat: v2.0.0-test release
Major changes:
- Backend: Add report generator service with comprehensive analysis
- Backend: Enhanced scan and task endpoints
- Frontend: Refactor instant analysis page and export dialog
- Frontend: Optimize report export service
- Infrastructure: Simplify Dockerfile and update docker-compose
- Docs: Streamline README documentation
- Assets: Add logo with transparent background
2025-11-28 20:34:15 +08:00
lintsinghua c54212a8c9 refactor: 清理IndexedDB相关代码,统一使用后端ZIP存储
- 移除前端废弃的loadZipFile/saveZipFile函数
- ProjectDetail使用scanStoredZipFile替代loadZipFile
- RecycleBin移除手动删除ZIP文件逻辑
- 后端permanently_delete_project自动清理ZIP文件
2025-11-28 18:01:43 +08:00
lintsinghua f640bfbaba feat: 添加敏感信息加密存储功能
- 新增 encryption.py 加密服务,使用 Fernet 对称加密
- API Key、Token 等敏感字段在数据库中加密存储
- 读取时自动解密,兼容未加密的旧数据
- 优化配置保存后自动更新前端状态
2025-11-28 17:51:17 +08:00
lintsinghua bfef3b35a6 feat(projects): add ZIP file upload support and source type tracking
- Add source_type field to projects model to distinguish between repository and ZIP sources
- Implement ZIP file storage service with save, load, delete, and metadata operations
- Add database migration to populate source_type for existing projects
- Create ZIP upload endpoint with file handling and metadata tracking
- Add ZIP download endpoint for project file retrieval
- Implement project ZIP info endpoint to check file status and metadata
- Update project creation to support both repository and ZIP source types
- Add project type constants and utility functions for source type handling
- Update database export/import to include source_type field
- Extend frontend components to support ZIP file uploads in project creation
- Add instant analysis page for direct ZIP file scanning without project creation
- Update .gitignore to exclude uploaded ZIP files and metadata
- Enhance project detail and task detail pages with ZIP file management UI
2025-11-28 17:38:12 +08:00
lintsinghua 7091f891d1 feat(llm): enhance LLM connection testing with improved error handling and adapter instantiation
- Bypass LLMFactory cache during connection tests to ensure fresh API calls with latest configuration
- Directly instantiate native adapters (Baidu, Minimax, Doubao) and LiteLLM adapter based on provider type
- Add comprehensive error handling in LiteLLM adapter with specific exception catching for authentication, rate limiting, and connection errors
- Implement user-friendly error messages for common failure scenarios (invalid API key, authentication failure, timeout, connection issues)
- Add response validation to detect and report empty API responses
- Disable LiteLLM internal caching to guarantee actual API calls during testing
- Update available models list with 2025 latest models across all providers (Gemini, OpenAI, Claude, Qwen, DeepSeek, etc.)
- Improve error message clarity and debugging information in config endpoint
2025-11-28 16:53:01 +08:00
lintsinghua 22c528acf1 refactor(llm): consolidate LLM adapters with LiteLLM unified layer
- Replace individual adapter implementations (OpenAI, Claude, Gemini, DeepSeek, Qwen, Zhipu, Moonshot, Ollama) with unified LiteLLM adapter
- Keep native adapters for providers with special API formats (Baidu, MiniMax, Doubao)
- Update LLM factory to route requests through LiteLLM for supported providers
- Add test-llm endpoint to validate LLM connections with configurable timeout and token limits
- Add get-llm-providers endpoint to retrieve supported providers and their configurations
- Update config.py to ignore extra environment variables (VITE_* frontend variables)
- Refactor Baidu adapter to use new complete() method signature and improve error handling
- Update pyproject.toml dependencies to include litellm package
- Update env.example with new configuration options
- Simplify adapter initialization and reduce code duplication across multiple provider implementations
2025-11-28 16:41:39 +08:00
lintsinghua 1fc0ecd14a refactor(frontend): modernize UI components with retro-futuristic styling
- Replace Card, Alert, and Separator components with retro-styled div elements
- Update DatabaseManager with retro-card styling and border-based design
- Refactor health status display to use styled Badge components instead of text
- Remove unused icon imports (Server, FileText) from DatabaseManager
- Clean up inline comments and unnecessary whitespace throughout components
- Simplify error handling by removing redundant console.error statements
- Update Sidebar, SystemConfig, Account, AdminDashboard, and other pages with consistent retro styling
- Apply uppercase font styling and monospace typography to match retro-futuristic theme
- Consolidate component structure across all pages for visual consistency
- Improve code readability by removing excessive blank lines and comments
2025-11-28 16:16:29 +08:00
lintsinghua b733181663 fix(api): restrict project and task queries to current user
- Filter projects endpoint to return only projects owned by current user
- Filter tasks endpoint to return only tasks from current user's projects
- Update statistics endpoint to calculate stats scoped to current user's data
- Add filtering logic for projects, tasks, and issues based on user ownership
- Improve data isolation and security by preventing cross-user data access
2025-11-28 01:11:21 +08:00
lintsinghua 5676211b20 feat(users): add comprehensive user management with search, filtering, and admin controls
- Add paginated user list endpoint with search by email, name, and phone
- Implement role-based and status filtering for user queries
- Add total count to user list response for pagination UI
- Create new Account page component for user profile management
- Add PUT /me endpoint for users to update their own profile information
- Add GET /{user_id} endpoint to retrieve specific user details
- Add PUT /{user_id} endpoint for admin user updates with full control
- Add DELETE /{user_id} endpoint for admin user deletion with self-protection
- Add POST /{user_id}/toggle-status endpoint to enable/disable user accounts
- Implement admin-only access control on user creation and management endpoints
- Add phone field support to user schema and creation flow
- Update user list response schema with pagination metadata
- Improve query validation with min/max constraints on pagination parameters
- Add Chinese localization to user-facing error messages and docstrings
- Update frontend routes to include new Account page
- Update Sidebar navigation to support account management links
- Update Login page styling to match new UI design system
2025-11-28 01:06:01 +08:00