Skip to content

OpenCode DMXAPI v2.0.2

Choose a tag to compare

@github-actions github-actions released this 07 Mar 17:01
· 68 commits to main since this release

OpenCode DMXAPI 配置工具 v2.0.2

一键配置 OpenCode 使用 DMXAPI 服务的跨平台工具。


🐛 修复

  • Gpt-5 系列模型使用 responses 格式(@ai-sdk/openai)
  • 修复 Windows 多平台兼容性问题
  • ui/display.go: 实现真正的 supportsColor() 检测逻辑
    - 支持 NO_COLOR 标准环境变量(https://no-color.org/)
    - Windows 下检测 WT_SESSION(Windows Terminal)、ANSICON、ConEmuANSI
    - 旧版 CMD 返回 false,避免 ANSI 乱码
    - 导出 IsLegacyWindowsCMD() 供调用方使用
    - config/writer.go: 为 auth.json 添加 Windows 权限警告
    - 注释说明 Windows 忽略 0600 权限位
    - 运行时在 Windows 上输出提示,提醒用户保护目录安全
    - main.go: 检测旧版 CMD 并提示 chcp 65001
    - 在 init() 中检测,早于所有业务逻辑
    - 仅在旧版 CMD 下输出,不影响 Windows Terminal 用户

📥 下载

平台 架构 文件
Windows x64 opencode-dmxapi-v2.0.2-windows-amd64.exe
Linux x64 opencode-dmxapi-v2.0.2-linux-amd64
Linux ARM64 opencode-dmxapi-v2.0.2-linux-arm64
macOS Intel opencode-dmxapi-v2.0.2-darwin-amd64
macOS Apple Silicon opencode-dmxapi-v2.0.2-darwin-arm64

🛠️ 安装说明

Windows

.\opencode-dmxapi-v2.0.2-windows-amd64.exe

Linux

chmod +x opencode-dmxapi-v2.0.2-linux-amd64
./opencode-dmxapi-v2.0.2-linux-amd64

macOS

chmod +x opencode-dmxapi-v2.0.2-darwin-arm64
./opencode-dmxapi-v2.0.2-darwin-arm64

🔗 相关链接