Commit Graph

156 Commits

Author SHA1 Message Date
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
lintsinghua 7aa4ab89cb fix(projects): disable cancel button during file upload and remove duplicate button
- Add `disabled={uploading}` prop to cancel button to prevent interaction during upload
- Remove duplicate button group that was causing redundant UI elements
- Ensure consistent button state management during file upload operations
2025-11-28 00:51:58 +08:00
lintsinghua fafeec803d UI Update 2025-11-28 00:48:30 +08:00
lintsinghua a87259a2ee feat: update UI with new branding, logo, and modern terminal-inspired styling 2025-11-27 22:34:23 +08:00
lintsinghua 53c8c27ee7 feat: Implement retro-futuristic UI design across frontend pages and components. 2025-11-27 21:33:51 +08:00
lintsinghua 7315770a17 feat: add global Tailwind CSS styles and theme variables for light and dark modes. 2025-11-27 18:16:26 +08:00
lintsinghua 7d1925db66 feat: Refactor frontend layout with new sidebar and i18n, update backend LLM adapters, and adjust database models. 2025-11-27 18:01:57 +08:00
lintsinghua 6ce5b3c6c1 refactor: 重构项目结构,将前端和后端代码分离到独立目录
- 将前端代码移动到 frontend/ 目录
- 将后端代码移动到 backend/ 目录
- 更新 .gitignore 以包含 Python 和前端构建产物
- 修复 LLM JSON 解析问题,增强错误处理
- 修复前端配置默认值,改为从后端获取
- 删除 AdminDashboard 中的数据库信息和统计卡片
- 完善系统配置管理,支持从后端获取默认配置
2025-11-26 21:11:12 +08:00
github-actions[bot] cc9ef80278 chore: bump version to v1.3.4 2025-11-15 11:01:36 +00:00
lintsinghua dac82d3cd0 fix: 修复运行时配置不生效的问题
- 修改 repoScan.ts 使用 env.ts 中的运行时配置
- 修改 repoZipScan.ts 使用 env.ts 中的运行时配置
- 修改 CreateTaskDialog.tsx 使用 env.ts 中的 token 配置
- 确保 Web 界面修改的配置(如最大文件数量)能够立即生效
2025-11-15 18:51:07 +08:00
cto-new[bot] 30f670bfd3
Merge pull request #42 from lintsinghua/investigate-repo-audit-zero-quality-score
Stabilize code quality score calculation to prevent zero scores during repo audits
2025-11-12 13:11:47 +00:00
engine-labs-app[bot] 2060b81b22 fix(code-analysis): stabilize quality score calculation to avoid zero scores
Prevents quality_score from dropping to zero when many issues are reported during a repository audit. Reworks calculateQualityScore to use a balanced penalty scheme and a weighted average (issues 30%, metrics 70%). Keeps API compatibility and provides more stable, meaningful scores even with heavy issue loads.
2025-11-12 13:10:31 +00:00
lintsinghua 1f55c79231 docs(readme): Improve online demo section formatting
- Add line breaks to online demo section in both README files
- Enhance readability of demo URL presentation
- Maintain consistent formatting across Chinese and English README documents
2025-11-11 18:26:53 +08:00
lintsinghua 3c69ee74ab Merge branch 'main' of github.com:lintsinghua/XCodeReviewer 2025-11-11 18:25:14 +08:00
lintsinghua d6b80b8f90 docs(readme): Add online demo section to both README files
- Moved online demo section to a more prominent location in both Chinese and English README files
- Ensured consistent placement and formatting of online demo link
- Improved visibility of the online demo URL for easier access
- Maintained existing documentation structure and style
2025-11-11 18:24:55 +08:00
github-actions[bot] 7a2f45e7a4 chore: bump version to v1.3.3 2025-11-11 10:18:16 +00:00
lintsinghua 9198cdf9d2 feat(header): Add GitHub repository link to header navigation
- Add GitHub repository link in desktop header view
- Include GitHub link in mobile menu navigation
- Use GitHub SVG icon for consistent branding
- Improve navigation options by providing direct link to project repository
- Enhance user engagement and project visibility
2025-11-11 18:00:45 +08:00
lintsinghua 8e2fd8d01d docs(readme): Update online demo and deployment sections
- Remove redundant online demo section from both README files
- Simplify Vercel deployment introduction
- Maintain consistent messaging across English and Chinese READMEs
- Remove audit report export section for cleaner documentation
- Streamline quick start and deployment instructions
2025-11-11 17:56:06 +08:00
lintsinghua 885039a054 docs(readme): Add online demo section for Vercel deployment
- Update README.md and README_EN.md with new online demo section
- Add direct link to Vercel preview deployment
- Highlight key benefits of the online demo
- Update .gitignore to include .vercel directory
- Improve documentation for easier user onboarding
2025-11-11 17:46:50 +08:00
lintsinghua 074ac71b20 docs(readme): Update deployment and database mode documentation
- Clarify database mode details in both README.md and README_EN.md
- Highlight default local database mode (IndexedDB) usage
- Remove redundant recommendation for local database configuration
- Add explanation of Supabase cloud database option
- Update notes about Vercel deployment and backend API
- Modify vercel.json to set default local database environment variable
2025-11-11 17:22:50 +08:00
lintsinghua 67e050f0e0 chore(vercel): Remove unnecessary environment variables from configuration
- Clean up vercel.json configuration
- Remove hardcoded environment variable references
- Simplify deployment configuration
- Ensures cleaner and more minimal Vercel deployment setup
2025-11-11 17:15:45 +08:00
lintsinghua eec852914a feat(deployment): Add Vercel deployment support and configuration
- Add .vercelignore to exclude unnecessary files from Vercel deployment
- Update README.md and README_EN.md with detailed Vercel deployment instructions
- Create vercel.json with deployment configuration
- Add one-click deployment button and multiple deployment methods
- Include environment variable setup guidance
- Highlight Vercel deployment advantages and important notes
- Improve documentation for easier deployment and setup process
Enhances project deployment flexibility and provides clear, step-by-step guidance for users looking to quickly deploy the application on Vercel.
2025-11-11 17:01:29 +08:00
lintsinghua 688b3bd461
Update README.md 2025-11-09 20:32:51 +08:00
github-actions[bot] 4c66cfa8be chore: bump version to v1.3.2 2025-10-31 14:48:45 +00:00
lintsinghua a26552c86b feat(languages): Expand supported languages and improve code analysis
- Add Swift and Kotlin as supported programming languages
- Update language detection and file upload logic in InstantAnalysis page
- Refactor language-related code to use centralized SUPPORTED_LANGUAGES constant
- Enhance project detail page to handle repository scanning with more flexibility
- Improve error handling and user guidance for project audits
- Add language name formatting utility in ProjectDetail component
- Update file input accept types to include new language extensions
2025-10-31 22:36:43 +08:00
github-actions[bot] d8f6b2470a chore: bump version to v1.3.1 2025-10-30 17:27:52 +00:00
lintsinghua 6ca3b3568c docs(readme): Add contributors section with contrib.rocks badge
- Add contributors section to both README.md and README_EN.md
- Include contrib.rocks badge to showcase project contributors
- Update token description for GitLab to clarify support for Project Access Token
- Improve documentation with visual representation of project contributors
2025-10-30 20:26:37 +08:00
lintsinghua f0a5c3237e
Merge pull request #27 from Heartune/gitLab_support
增强 GitLab 仓库集成,支持多种 Token 认证方式,解决自建 GitLab 使用 Project Access Token 无法克隆的问题
2025-10-30 20:13:48 +08:00
Heartune 4c7529d5e0 增强 GitLab 仓库集成,支持多种 Token 认证方式,解决自建 GitLab 使用 Project Access Token 无法克隆的问题 2025-10-30 20:04:15 +08:00
lintsinghua 83fe1ad228
Merge pull request #25 from vinland100/fix/dashscope-cors-error
fix: route dashscope calls through dev proxy to avoid CORS
2025-10-30 16:00:54 +08:00
vinland100 ab5dfbd1f6 refactor: addresses review comments, move CORS fix logic from card.tsx to qwen-adapter.js 2025-10-30 15:42:51 +08:00
vinland100 66cbfa9629 fix: route dashscope calls through dev proxy to avoid CORS 2025-10-30 15:04:29 +08:00
lintsinghua 59c4d448f3 docs(readme): Remove contributors section from README files
- Remove "Contributors" section from README.md
- Remove "Contributors" section from README_EN.md
- Delete contrib.rocks badge from both files
- Maintain overall structure and other sections of the README files
2025-10-30 14:50:56 +08:00
lintsinghua 11253878ad docs(readme): Update contributors section with contrib.rocks badge
- Replace custom image-card with contrib.rocks contributors badge
- Update both README.md and README_EN.md with new contributors visualization
- Improve visual representation of project contributors
- Enhance readability and aesthetic of contributors section
2025-10-30 14:34:52 +08:00
lintsinghua f801615dbf docs(readme): Add contributors section to README files
- Added new "Contributors" section to both README.md and README_EN.md
- Included GitHub contributors graph image card in both files
- Highlighted community contribution and appreciation
- Improved project documentation with recognition of contributors
2025-10-30 14:28:38 +08:00
lintsinghua 7d1a9aac74
Merge pull request #24 from HuangLuGuang/main
feat(repoScan): 基于项目 repository_type 决定仓库类型,支持私有 GitLab 域名/IP;移除 URL正则判断
2025-10-30 14:19:02 +08:00
huanglg 2a910f3eff feat(repoScan): 基于项目 repository_type 决定仓库类型,支持私有 GitLab 域名/IP;移除 URL 正则判断 2025-10-30 13:39:02 +08:00
lintsinghua c44ca118d7
Update README_EN.md 2025-10-29 22:23:14 +08:00
lintsinghua a48542daea
Update README.md 2025-10-29 22:22:38 +08:00
lintsinghua 8bad846483
Update README.md 2025-10-29 22:21:01 +08:00
lintsinghua 112c85523a
Update FUNDING.yml 2025-10-29 22:15:40 +08:00
lintsinghua 19c901310a
Update FUNDING.yml with localized comments 2025-10-29 22:05:24 +08:00
lintsinghua 38d3c8d969
Update README_EN.md 2025-10-29 19:45:17 +08:00
lintsinghua e191023c91
Update README.md 2025-10-29 19:44:54 +08:00
lintsinghua 950325850c feat: v1.3.0 - 添加完整的日志系统和错误处理
- 新增日志记录系统,自动记录用户核心操作和错误
- 新增日志查看器,支持筛选、搜索和导出
- 增强错误处理,显示具体错误信息
- 修复所有LLM adapter的URL双斜杠问题
- 优化审计失败提示,引导用户查看日志
- 更新版本号到v1.3.0
2025-10-29 19:25:38 +08:00
lintsinghua 094677028a
Update README.md 2025-10-28 19:23:17 +08:00