@dedenlabs/claude-code-router-cli 2.0.8-beta.9 → 2.0.9
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 +20 -3
- package/dist/cli.js +15 -3
- package/package.json +1 -1
- 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/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Claude Code Router CLI v2.0.
|
|
1
|
+
# Claude Code Router CLI v2.0.9
|
|
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/)
|
|
@@ -726,7 +726,18 @@ export class MyTransformer extends BaseTransformer {
|
|
|
726
726
|
|
|
727
727
|
## 📈 版本历史
|
|
728
728
|
|
|
729
|
-
### v2.0.
|
|
729
|
+
### v2.0.9 (2026-03-04)
|
|
730
|
+
|
|
731
|
+
**🐛 问题修复**
|
|
732
|
+
|
|
733
|
+
- fix: 移除硬编码版本号,改用 package.json 动态读取
|
|
734
|
+
- fix: 修复 CLI 版本显示不一致的问题
|
|
735
|
+
|
|
736
|
+
**🔧 代码优化**
|
|
737
|
+
|
|
738
|
+
- 改进版本加载失败时的错误提示
|
|
739
|
+
|
|
740
|
+
### v2.0.8 (2026-03-04)
|
|
730
741
|
|
|
731
742
|
**✨ 新增功能**
|
|
732
743
|
|
|
@@ -740,6 +751,12 @@ export class MyTransformer extends BaseTransformer {
|
|
|
740
751
|
|
|
741
752
|
- 将核心模块重构为独立的 npm workspace 包 `@musistudio/llms`
|
|
742
753
|
- 支持通过 pnpm workspace 管理多包项目
|
|
754
|
+
- 修复 CLI 在 npm 全局安装环境下无法加载核心模块的问题
|
|
755
|
+
|
|
756
|
+
**🐛 问题修复**
|
|
757
|
+
|
|
758
|
+
- fix: 修复重复 0 tps 日志输出问题
|
|
759
|
+
- fix: 修复 npm 包发布时缺少 packages/core/dist 的问题
|
|
743
760
|
|
|
744
761
|
### v2.0.8 (2026-01-07)
|
|
745
762
|
|
package/dist/cli.js
CHANGED
|
@@ -11921,7 +11921,7 @@ var require_package = __commonJS({
|
|
|
11921
11921
|
"package.json"(exports2, module2) {
|
|
11922
11922
|
module2.exports = {
|
|
11923
11923
|
name: "@dedenlabs/claude-code-router-cli",
|
|
11924
|
-
version: "2.0.
|
|
11924
|
+
version: "2.0.9",
|
|
11925
11925
|
description: "\u57FA\u4E8E@musistudio/claude-code-router\u7684\u589E\u5F3A\u7248CLI\u8DEF\u7531\u5DE5\u5177 - \u652F\u6301\u7EDF\u4E00\u8DEF\u7531\u5F15\u64CE\u3001\u5916\u90E8\u89C4\u5219\u52A0\u8F7D\u3001\u667A\u80FD\u65E5\u5FD7\u7CFB\u7EDF\u3001\u81EA\u52A8\u914D\u7F6E\u8FC1\u79FB\u548CGLM\u601D\u8003\u6A21\u5F0F",
|
|
11926
11926
|
bin: {
|
|
11927
11927
|
ccr: "dist/cli.js"
|
|
@@ -38588,6 +38588,17 @@ var DEFAULT_CONFIG = {
|
|
|
38588
38588
|
"APIKEY": "sk-anything",
|
|
38589
38589
|
"API_TIMEOUT_MS": "600000",
|
|
38590
38590
|
"PROXY_URL": "",
|
|
38591
|
+
"plugins": [
|
|
38592
|
+
{
|
|
38593
|
+
"name": "token-speed",
|
|
38594
|
+
"enabled": true,
|
|
38595
|
+
"options": {
|
|
38596
|
+
"reporter": [
|
|
38597
|
+
"console"
|
|
38598
|
+
]
|
|
38599
|
+
}
|
|
38600
|
+
}
|
|
38601
|
+
],
|
|
38591
38602
|
"transformers": [
|
|
38592
38603
|
{
|
|
38593
38604
|
"name": "",
|
|
@@ -43418,7 +43429,8 @@ try {
|
|
|
43418
43429
|
};
|
|
43419
43430
|
}
|
|
43420
43431
|
} catch (error) {
|
|
43421
|
-
|
|
43432
|
+
console.error("Failed to load package.json version");
|
|
43433
|
+
packageInfo = { name: "Claude Code Router CLI", version: "unknown" };
|
|
43422
43434
|
}
|
|
43423
43435
|
function formatPackageName(packageName) {
|
|
43424
43436
|
const cleanName = packageName.replace(/^@[^/]+\//, "");
|
|
@@ -43764,7 +43776,7 @@ async function run(options = {}) {
|
|
|
43764
43776
|
const primaryIP = getPrimaryIP(HOST);
|
|
43765
43777
|
const url = HOST === "0.0.0.0" ? `http://${primaryIP}:${servicePort}` : `http://127.0.0.1:${servicePort}`;
|
|
43766
43778
|
const formattedName = packageInfo ? formatPackageName(packageInfo.name) : "Claude Code Router CLI";
|
|
43767
|
-
const version2 = packageInfo?.version || "
|
|
43779
|
+
const version2 = packageInfo?.version || "unknown";
|
|
43768
43780
|
console.log(`
|
|
43769
43781
|
\u{1F680} ${formattedName} v${version2} is running on ${url}`);
|
|
43770
43782
|
if (HOST === "0.0.0.0" && accessibleIPs.length > 0) {
|