Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: im47cn/coderocket-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: im47cn/coderocket-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 11 commits
  • 30 files changed
  • 1 contributor

Commits on Jul 31, 2025

  1. Configuration menu
    Copy the full SHA
    f1ef071 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2025

  1. refactor: Refactor API integration and remove OpenCode service

    - Removed OpenCode API configuration and related functions from api-versions.sh and opencode-service.sh.
    - Updated mr-generator.sh to eliminate references to OpenCode functions.
    - Introduced new test scripts for CodeRocket CLI, including unit tests and security tests.
    - Implemented security tests to validate environment variable loading and protection against code injection.
    - Simplified security tests to focus on core functionality without importing entire scripts.
    im47cn committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    ed2df6a View commit details
    Browse the repository at this point in the history
  2. fix: 修复coderocket-cli安装脚本中的重复性文案问题

    - 删除install.sh中重复的ClaudeCode CLI检查逻辑
    - 修复配置菜单中重复的ClaudeCode选项
    - 清理install-hooks.sh中的多余空行
    - 添加测试脚本验证修复效果
    - 确保安装过程输出文案清晰一致
    
    问题详情:
    1. install_ai_services()函数中存在两段ClaudeCode CLI检查代码
    2. 第一段使用硬编码false条件,永远不会执行
    3. 配置菜单中ClaudeCode选项重复出现
    4. 导致用户看到重复的'ClaudeCode CLI 未安装 (可选)'消息
    
    修复结果:
    - ✅ 消除重复文案输出
    - ✅ 简化配置菜单选项
    - ✅ 提升用户体验
    - ✅ 通过测试验证
    im47cn committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    0f5fc46 View commit details
    Browse the repository at this point in the history
  3. fix: 修复Claude CLI检测问题,使用正确的命令名'claude'

    问题分析:
    - 脚本检测使用'claudecode'命令,但实际安装的包使用'claude'命令
    - @anthropic-ai/claude-code@1.0.67 包的可执行文件名是'claude'
    - 导致已安装Claude CLI但检测显示未安装
    
    修复内容:
    - install.sh: 将'claudecode'检测改为'claude'
    - install-hooks.sh: 同步修复命令检测
    - lib/claudecode-service.sh: 修复CLI检测和调用逻辑
    - 更新配置说明中的命令名称
    
    验证结果:
    - ✅ 正确检测已安装的Claude CLI
    - ✅ 使用正确的命令名'claude'
    - ✅ 配置和调用逻辑一致
    - ✅ 语法检查通过
    im47cn committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    fb89812 View commit details
    Browse the repository at this point in the history
  4. fix: 完善Claude CLI检测修复,实现真正的举一反三

    问题发现:
    - ai-service-manager.sh 中的 check_ai_service_available() 仍使用 'claudecode'
    - 导致 AI服务状态检查显示 'claudecode - 未安装'
    - 配置命令提示也使用错误的 'claudecode config'
    
    举一反三修复:
    - lib/ai-service-manager.sh: 修复服务可用性检查逻辑
    - lib/ai-service-manager.sh: 修复配置命令提示
    - 确保所有相关函数都使用正确的 'claude' 命令
    
    验证结果:
    - ✅ AI服务状态正确显示 'claudecode - 已安装'
    - ✅ 配置命令提示使用 'claude config'
    - ✅ 所有检测逻辑统一使用 'claude' 命令
    - ✅ 完整测试通过
    
    这次真正做到了系统性排查和修复!
    im47cn committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    d6fc592 View commit details
    Browse the repository at this point in the history
  5. feat: 添加完整的卸载功能

    新增功能:
    - 创建专业的卸载脚本 uninstall.sh
    - 支持完全移除 CodeRocket CLI 及其所有组件
    - 智能检测和清理所有相关文件
    
    卸载脚本特性:
    ✅ 安装目录清理 (~/.coderocket)
    ✅ 全局命令移除 (/usr/local/bin/*)
    ✅ 用户命令清理 (~/.local/bin/*)
    ✅ Shell 配置恢复 (.bashrc/.zshrc)
    ✅ Git 模板清理 (~/.git-templates)
    ✅ 项目 hooks 扫描清理
    ✅ 残留文件清理
    ✅ 配置文件备份和恢复
    ✅ 交互式确认和强制模式
    ✅ 详细的进度显示和错误处理
    
    用户体验:
    - 彩色输出和进度指示
    - 详细的卸载预览
    - 安全的备份机制
    - 智能的项目扫描
    - 完整的帮助文档
    
    文档更新:
    - 在 README.md 中添加详细的卸载说明
    - 在 install.sh 中添加卸载脚本引用
    - 提供多种卸载方式和注意事项
    
    这为用户提供了完整的安装/卸载生命周期管理!
    im47cn committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    4f5cf93 View commit details
    Browse the repository at this point in the history
  6. fix: 修复卸载脚本的 source 兼容性问题

    修复内容:
    - 添加 BASH_SOURCE 检查,防止 source 时执行主逻辑
    - 现在可以安全地 source 脚本来测试单个函数
    - 保持直接执行时的完整功能不变
    
    测试验证:
    - ✅ Shell 检测函数正常工作
    - ✅ 配置文件路径函数正常工作
    - ✅ 帮助功能正常显示
    - ✅ 安装状态检测准确
    - ✅ 所有语法检查通过
    
    新增测试脚本:
    - 添加 test-uninstall.sh 用于验证卸载功能
    - 包含语法检查、函数测试、权限检查等
    
    这确保了卸载脚本的稳定性和可测试性!
    im47cn committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    adf1853 View commit details
    Browse the repository at this point in the history
  7. docs: 添加详细的卸载指南文档

    新增内容:
    - 创建 UNINSTALL_GUIDE.md 详细卸载指南
    - 包含多种卸载方式和选项说明
    - 详细列出所有卸载内容和安全特性
    - 提供故障排除和重新安装指导
    
    文档特色:
    📋 完整的卸载内容清单
    🛡️ 安全特性和备份机制说明
    ⚡ 快速卸载和强制卸载选项
    🔍 卸载预览示例
    📝 详细的使用选项
    ⚠️ 重要注意事项
    🆘 故障排除指南
    
    为用户提供了完整的卸载生命周期文档!
    im47cn committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    dea703d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c5cca41 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    401a4d7 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2025

  1. Configuration menu
    Copy the full SHA
    7b6dcd8 View commit details
    Browse the repository at this point in the history
Loading