Commit Graph

30 Commits

  • docs: update README for v3.5.1 release
    - Bump version badge to 3.5.1
    - Remove project restructure notice
    - Add MCP configuration documentation section
    - Add architecture overview with SSOT design
    - Enhance project structure and contribution guidelines
  • refactor(api): unify AppType parsing with FromStr trait
    BREAKING CHANGE: Remove support for legacy app_type/appType parameters.
    All Tauri commands now accept only the 'app' parameter (values: "claude" or "codex").
    Invalid app values will return localized error messages with allowed values.
    
    This commit addresses code duplication and improves error handling:
    
    - Consolidate AppType parsing into FromStr trait implementation
      * Eliminates duplicate parse_app() functions across 3 command modules
      * Provides single source of truth for app type validation
      * Enables idiomatic Rust .parse::<AppType>() syntax
    
    - Enhance error messages with localization
      * Return bilingual error messages (Chinese + English)
      * Include list of allowed values in error responses
      * Use structured AppError::localized for better categorization
    
    - Add input normalization
      * Case-insensitive matching ("CLAUDE" → AppType::Claude)
      * Automatic whitespace trimming (" codex \n" → AppType::Codex)
      * Improves API robustness against user input variations
    
    - Introduce comprehensive unit tests
      * Test valid inputs with case variations
      * Test whitespace handling
      * Verify error message content and localization
      * 100% coverage of from_str logic
    
    - Update documentation
      * Add CHANGELOG entry marking breaking change
      * Update README with accurate architecture description
      * Revise REFACTORING_MASTER_PLAN with migration examples
      * Remove all legacy app_type/appType references
    
    Code Quality Metrics:
    - Lines removed: 27 (duplicate code)
    - Lines added: 52 (including tests and docs)
    - Code duplication: 3 → 0 instances
    - Test coverage: 0% → 100% for AppType parsing
  • docs: update README for v3.5.0 release
    - Add v3.5.0 feature highlights (MCP management, import/export, speed testing)
    - Update feature list section to v3.5.0
    - Fix macOS download filename to .tar.gz (standardized naming)
    - Add refactoring notice in contribution section
  • chore: standardize release artifact naming with version tags
    - Update GitHub Actions to generate version-tagged filenames
    - macOS: CC-Switch-v{version}-macOS.tar.gz / .zip
    - Windows: CC-Switch-v{version}-Windows.msi / -Portable.zip
    - Linux: CC-Switch-v{version}-Linux.AppImage / .deb
    - Update README installation instructions with new filename format
    - Add naming standardization note to CHANGELOG v3.5.0
  • chore: bump version to 3.4.0
    - Add i18next internationalization with Chinese/English support
    - Add Claude plugin sync alongside VS Code integration
    - Extend provider presets with new models (DeepSeek-V3.2-Exp, Qwen3-Max, GLM-4.6)
    - Support portable mode and single instance enforcement
    - Add tray minimize and macOS Dock visibility management
    - Improve Settings UI with scrollable layout and save icon
    - Fix layout shifts and provider toggle consistency
    - Remove unnecessary OpenAI auth requirement
    - Update Windows MSI installer to target per-user LocalAppData
  • release: bump version to 3.3.0
    Update version across all package files and add comprehensive changelog for v3.3.0 release featuring VS Code integration, shared config snippets, enhanced Codex wizard, and cross-platform improvements.
  • docs: update README and screenshots for v3.2.0 release
    - Update README with v3.2.0 features and UI improvements
    - Replace screenshots with new UI design
    - Clarify SSOT architecture and one-time migration details
    - Update version badge to 3.2.0
  • chore: update repository URLs from jasonyoung to farion1231
    - Update GitHub repository URLs in README.md badges
    - Update repository URL in Cargo.toml metadata
    - Update updater endpoint URL in tauri.conf.json for auto-updates
  • docs(cleanup): remove 'current' as special provider; align UI/messages and migration naming to 'default' and one-time import rule
    - App: update auto-import message to '默认供应商'
    - README: clarify default import only when providers are empty
    - Plan doc: replace 'current entry' wording with current pointer (manager.current)
    - Migration: name live-imported item 'default' instead of 'current'
  • feat: optimize release workflow for better distribution
    - Configure GitHub Actions to generate platform-specific releases:
      - macOS: zip package only (avoids signing issues)
      - Windows: installer (NSIS) and portable version
      - Linux: AppImage and deb packages
    - Update Tauri config to build all available targets
    - Add documentation for macOS signature workarounds
  • feat: add prettier formatter and MIT license
    - Add prettier dev dependency for code formatting
    - Create MIT LICENSE file
    - Format TypeScript files with prettier
    - Update provider order in README (Qwen coder first)
    - Update add provider screenshot with new UI
  • docs: update README for v3.0.0 Tauri release
    - Add version badges and Tauri branding
    - Update performance metrics (85% size reduction, 10x startup speed)
    - Add detailed system requirements for all platforms
    - Update installation instructions with specific file names
    - Add comprehensive development setup guide
    - Include new npm scripts (typecheck, format)
    - Add Rust development commands
    - Enhance project structure documentation
    - Link to CHANGELOG for version details
    - Update screenshots for new UI
  • refactor: 清理 Electron 遗留代码并优化项目结构
    - 删除 Electron 主进程代码 (src/main/)
    - 删除构建产物文件夹 (build/, dist/, release/)
    - 清理 package.json 中的 Electron 依赖和脚本
    - 删除 TypeScript 配置中的 Electron 相关文件
    - 优化前端代码结构至 Tauri 标准结构 (src/renderer → src/)
    - 删除移动端图标和不必要文件
    - 更新文档说明技术栈变更为 Tauri
  • docs: 改进 README 文档
    - 添加 macOS 自行编译说明
    - 新增界面预览截图展示
    - 优化安装说明结构
  • 实施最终发布策略:Intel-only 配置
     配置 Intel-only 构建 (package.json)
     更新 GitHub Actions 发布流程
     完善 README 安装说明
    
    核心策略:
    - 只发布 Intel x64 版本,通过 Rosetta 2 支持 M 系列芯片
    - 使用 ad-hoc 签名,避免 ARM64 签名复杂性
    - 提供详细的 macOS 安全警告处理指南
    - 强调兼容性和稳定性优于原生性能
  • 更新 README:补充功能特性和使用说明
    - 添加支持的供应商示例(智谱 GLM、Qwen coder 等)
    - 强调本地存储无隐私风险
    - 完善使用说明,提醒重启 Claude Code 生效