Skip to content

v1.4.0

Choose a tag to compare

@dwgx dwgx released this 22 Apr 03:38
· 2526 commits to master since this release

新功能

  • 图片上传 — /v1/chat/completions 和 /v1/messages 支持发图 OpenAI image_url + Anthropic image 双格式 Cascade field 6 编码
  • Auth1 登录 — 支持 Windsurf 新认证方式 号商账号能用了(PR #20 by @motto1)
  • 批量导入 — Dashboard 登录取号页 按"邮箱 密码"格式一次粘贴多组账号
  • Cursor 别名 — opus-4.6 / sonnet-4.6 / ws-opus / ws-sonnet 等不含 claude 的模型名 绕过 Cursor 白名单
  • macOS 支持 — install-ls.sh 自动检测 Linux/macOS + x64/arm64 下载对应 LS binary
  • opus-4-7 alias — Claude Code 选 Opus 4.7 能直接用

安全

  • 3 轮审计 累计修 17 个安全+功能问题
  • SSRF 私有地址过滤 + 重定向深度限制
  • base64 大小检查防 DoS
  • proto decodeVarint 截断检测
  • grpc pendingBuf 100MB 上限防 OOM
  • Dashboard /test-proxy SSRF 防护
  • .env.example 加 DASHBOARD_PASSWORD 安全警告

修复

  • #22 Cascade anti-injection 误判 — field 13 去掉 identity 指令 工具调用不再被拒
  • #19 Mac ENOEXEC — 平台检测 + 友好提示
  • #15 opus 4.7 alias
  • #9 Cursor 模型名白名单

社区

  • SECURITY.md 漏洞披露渠道
  • Issue / PR 模板 + CI
  • CONTRIBUTING.md
  • GitHub Pages 重构(Claude 纸色 + Windsurf 浪动)
  • Contributors: @dd373156 @colin1112a @motto1

部署

git clone https://github.com/dwgx/WindsurfAPI.git
cd WindsurfAPI
bash install-ls.sh
cp .env.example .env
pm2 start src/index.js --name windsurf-api