@adversity/coding-tool-x 3.0.2 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -11,6 +11,21 @@
11
11
  - 修改 `detectChannelType()` 函数,仅检查域名而非完整 URL 路径
12
12
  - 修复 `https://code.newcli.com/claude/aws` 等第三方代理无法获取模型列表的问题
13
13
  - 添加 URL 解析错误处理,增强容错性
14
+ - 🐛 **修复 Cloudflare 检测崩溃** - 修复模型检测时引用未定义变量导致服务崩溃的问题
15
+ - 修正 `model-detector.js` 第 534 行变量名错误(`body` → `data`)
16
+ - 确保 Cloudflare 检测逻辑正常工作
17
+
18
+ ### Added
19
+ - ✨ **Cloudflare 防护智能处理** - 当模型列表接口被 Cloudflare 保护时自动使用默认模型
20
+ - 检测到 Cloudflare 拦截时,自动返回 `claude-sonnet-4-5` 作为默认模型
21
+ - 前端显示友好提示信息,说明使用了默认模型
22
+ - 区分 Cloudflare 保护、认证失败、访问拒绝等不同错误类型
23
+ - 保持向后兼容,不影响其他正常工作的渠道
24
+ - ✨ **支持手动输入模型名称** - 渠道配置表单增强
25
+ - 测速模型选择器改为自动完成输入框,支持手动输入
26
+ - 无法获取模型列表时,提供常见模型名称示例
27
+ - 用户可以从下拉列表选择或直接输入自定义模型名称
28
+ - 提升用户体验,解决第三方代理模型配置问题
14
29
 
15
30
  ## [3.0.1] - 2026-02-01
16
31