@dedenlabs/claude-code-router-cli 2.0.7 → 2.0.8-beta.10
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/README.md +65 -2
- package/dist/cli.js +34552 -78450
- package/examples/configs/unified-router-example.json +50 -9
- package/package.json +89 -76
- package/packages/core/dist/cjs/server.cjs +29794 -0
- package/packages/core/dist/cjs/server.cjs.map +7 -0
- package/packages/core/dist/esm/server.mjs +29780 -0
- package/packages/core/dist/esm/server.mjs.map +7 -0
- package/packages/core/package.json +58 -0
- package/packages/core/pnpm-lock.yaml +1572 -0
- package/dist/lib/pino.js +0 -234
- package/dist/lib/worker.js +0 -194
- package/dist/reproduce_issue.js +0 -2027
- package/dist/standalone.js +0 -81387
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Claude Code Router CLI v2.0.
|
|
1
|
+
# Claude Code Router CLI v2.0.8-beta.6
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
[](https://github.com/dedenlabs/claude-code-router-cli)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
[](https://www.typescriptlang.org/)
|
|
@@ -87,6 +87,37 @@ ccr migrate
|
|
|
87
87
|
### 🎛️ GLM思考模式 (GLM Thinking)
|
|
88
88
|
内置GLM模型思考转换器,提升推理质量
|
|
89
89
|
|
|
90
|
+
### 📈 Token 速度监控 (Token Speed Monitor)
|
|
91
|
+
实时监控流式输出的 token 生成速度,提供直观的可视化展示。
|
|
92
|
+
|
|
93
|
+
**启用方式**:在配置文件中添加:
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"plugins": [
|
|
97
|
+
{
|
|
98
|
+
"name": "token-speed",
|
|
99
|
+
"enabled": true,
|
|
100
|
+
"options": {
|
|
101
|
+
"reporter": ["console"]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**效果示例**:
|
|
109
|
+
```
|
|
110
|
+
[Token 速度] Token: 347 | Time: 11.92s | TTFT: 7931 | 104 tps | █████████░ | ⚡ 极速
|
|
111
|
+
[Token 速度] [完成] Token: 2235 | Time: 45.41s | TTFT: 7931 | 49 tps | █████░░░░░ | 🚀 快速
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**速度等级**:
|
|
115
|
+
- 🦎 慢速: < 20 tps
|
|
116
|
+
- 🐢 中等: 20-40 tps
|
|
117
|
+
- 🚀 快速: 40-80 tps
|
|
118
|
+
- ⚡ 极速: 80-120 tps
|
|
119
|
+
- 💖 超级极速: > 120 tps
|
|
120
|
+
|
|
90
121
|
---
|
|
91
122
|
|
|
92
123
|
## 🚀 快速开始
|
|
@@ -695,6 +726,38 @@ export class MyTransformer extends BaseTransformer {
|
|
|
695
726
|
|
|
696
727
|
## 📈 版本历史
|
|
697
728
|
|
|
729
|
+
### v2.0.8-beta.6 (2026-03-03)
|
|
730
|
+
|
|
731
|
+
**✨ 新增功能**
|
|
732
|
+
|
|
733
|
+
- feat: 新增 Token 速度监控插件
|
|
734
|
+
- 支持流式输出 TPS 实时监控
|
|
735
|
+
- 可视化控制台输出(颜色等级、进度条)
|
|
736
|
+
- 支持通过配置文件启用/禁用插件
|
|
737
|
+
- 5 档速度等级:慢速/中等/快速/极速/超级极速
|
|
738
|
+
|
|
739
|
+
**🔧 代码重构**
|
|
740
|
+
|
|
741
|
+
- 将核心模块重构为独立的 npm workspace 包 `@musistudio/llms`
|
|
742
|
+
- 支持通过 pnpm workspace 管理多包项目
|
|
743
|
+
|
|
744
|
+
### v2.0.8 (2026-01-07)
|
|
745
|
+
|
|
746
|
+
**🐛 问题修复**
|
|
747
|
+
|
|
748
|
+
- fix: 修复 Windows 代理环境下 localhost 请求失败问题
|
|
749
|
+
- 错误信息: `fetch failed TypeError: fetch failed`
|
|
750
|
+
- 添加 NO_PROXY 环境变量配置
|
|
751
|
+
- 创建统一请求工具 sendUnifiedRequest
|
|
752
|
+
- 添加 esbuild 代理注入机制
|
|
753
|
+
|
|
754
|
+
### v2.0.7 (2025-12-28)
|
|
755
|
+
|
|
756
|
+
**🐛 问题修复**
|
|
757
|
+
|
|
758
|
+
- fix: 修复路由条件验证逻辑 bug
|
|
759
|
+
- 优化统一路由引擎的字段兼容性处理
|
|
760
|
+
|
|
698
761
|
### v2.0.6 (2025-12-23)
|
|
699
762
|
|
|
700
763
|
**🎯 正式版本发布**
|