@dedenlabs/claude-code-router-cli 2.0.8-beta.3 → 2.0.8-beta.5

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.
@@ -4,6 +4,17 @@
4
4
  "PORT": 3456,
5
5
  "APIKEY": "1",
6
6
  "API_TIMEOUT_MS": 600000,
7
+ "plugins": [
8
+ {
9
+ "name": "token-speed",
10
+ "enabled": true,
11
+ "options": {
12
+ "reporter": [
13
+ "console"
14
+ ]
15
+ }
16
+ }
17
+ ],
7
18
  "Providers": [
8
19
  {
9
20
  "name": "openrouter",
@@ -16,9 +27,13 @@
16
27
  "@preset/kimi"
17
28
  ],
18
29
  "transformer": {
19
- "use": ["openrouter"],
30
+ "use": [
31
+ "openrouter"
32
+ ],
20
33
  "deepseek/deepseek-chat-v3-0324": {
21
- "use": ["tooluse"]
34
+ "use": [
35
+ "tooluse"
36
+ ]
22
37
  }
23
38
  }
24
39
  },
@@ -26,11 +41,18 @@
26
41
  "name": "deepseek",
27
42
  "api_base_url": "https://api.deepseek.com/chat/completions",
28
43
  "api_key": "sk-",
29
- "models": ["deepseek-chat", "deepseek-reasoner"],
44
+ "models": [
45
+ "deepseek-chat",
46
+ "deepseek-reasoner"
47
+ ],
30
48
  "transformer": {
31
- "use": ["deepseek"],
49
+ "use": [
50
+ "deepseek"
51
+ ],
32
52
  "deepseek-chat": {
33
- "use": ["tooluse"]
53
+ "use": [
54
+ "tooluse"
55
+ ]
34
56
  }
35
57
  }
36
58
  },
@@ -38,15 +60,34 @@
38
60
  "name": "gemini",
39
61
  "api_base_url": "https://generativelanguage.googleapis.com/v1beta/models/",
40
62
  "api_key": "",
41
- "models": ["gemini-2.5-flash", "gemini-2.5-pro"],
63
+ "models": [
64
+ "gemini-2.5-flash",
65
+ "gemini-2.5-pro"
66
+ ],
67
+ "transformer": {
68
+ "use": [
69
+ "gemini"
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ "name": "minimax",
75
+ "api_base_url": "https://api.minimaxi.com/anthropic/v1/messages",
76
+ "api_key": "",
77
+ "models": [
78
+ "MiniMax-M2.5-highspeed",
79
+ "MiniMax-M2.5"
80
+ ],
42
81
  "transformer": {
43
- "use": ["gemini"]
82
+ "use": [
83
+ "Anthropic"
84
+ ]
44
85
  }
45
86
  }
46
87
  ],
47
88
  "Router": {
48
89
  "engine": "unified",
49
- "defaultRoute": "openrouter,anthropic/claude-3.5-sonnet",
90
+ "defaultRoute": "minimax",
50
91
  "rules": [
51
92
  {
52
93
  "name": "longContext",
@@ -162,4 +203,4 @@
162
203
  }
163
204
  },
164
205
  "NON_INTERACTIVE_MODE": false
165
- }
206
+ }
package/package.json CHANGED
@@ -1,81 +1,87 @@
1
- {
2
- "name": "@dedenlabs/claude-code-router-cli",
3
- "version": "2.0.8-beta.3",
4
- "description": "基于@musistudio/claude-code-router的增强版CLI路由工具 - 支持统一路由引擎、外部规则加载、智能日志系统、自动配置迁移和GLM思考模式",
5
- "bin": {
6
- "ccr": "dist/cli.js"
7
- },
8
- "scripts": {
9
- "build": "node scripts/build.js",
10
- "release": "npm run build && npm publish",
11
- "prepublishOnly": "node scripts/prepublish-check.js",
12
- "test": "vitest run",
13
- "test:watch": "vitest",
14
- "test:coverage": "vitest run --coverage",
15
- "test:ui": "vitest --ui",
16
- "test:integration": "vitest run --config ./vitest.config.ts tests/integration",
17
- "test:unit": "vitest run --config ./vitest.config.ts tests/unit",
18
- "test:ui:unit": "vitest run --config ./vitest.config.ts tests/ui"
19
- },
20
- "keywords": [
21
- "claude",
22
- "code",
23
- "router",
24
- "llm",
25
- "anthropic",
26
- "cli",
27
- "unified",
28
- "external-rules"
29
- ],
30
- "author": "dedenlabs <deden.labs@gmail.com> (Original by musistudio)",
31
- "license": "MIT",
32
- "repository": {
33
- "type": "git",
34
- "url": "git+https://github.com/dedenlabs/claude-code-router-cli.git"
35
- },
36
- "bugs": {
37
- "url": "https://github.com/dedenlabs/claude-code-router-cli/issues"
38
- },
39
- "homepage": "https://github.com/dedenlabs/claude-code-router-cli#readme",
40
- "dependencies": {
41
- "@anthropic-ai/sdk": "^0.54.0",
42
- "@fastify/cors": "^11.0.1",
43
- "@fastify/static": "^8.2.0",
44
- "@google/genai": "^1.7.0",
45
- "@inquirer/prompts": "^5.0.0",
46
- "@musistudio/llms": "^1.0.51",
47
- "dotenv": "^16.4.7",
48
- "find-process": "^2.0.0",
49
- "json5": "^2.2.3",
50
- "lru-cache": "^11.2.2",
51
- "minimist": "^1.2.8",
52
- "openai": "^5.6.0",
53
- "rotating-file-stream": "^3.2.7",
54
- "shell-quote": "^1.8.3",
55
- "tiktoken": "^1.0.21",
56
- "undici": "^7.10.0",
57
- "uuid": "^11.1.0"
58
- },
59
- "devDependencies": {
60
- "@testing-library/react": "^14.3.1",
61
- "@types/node": "^24.0.15",
62
- "@vitest/coverage-v8": "^2.1.9",
63
- "@vitest/ui": "^2.1.9",
64
- "esbuild": "^0.25.1",
65
- "fastify": "^5.4.0",
66
- "jsdom": "^25.0.1",
67
- "shx": "^0.4.0",
68
- "typescript": "^5.8.2",
69
- "vitest": "^2.1.9"
70
- },
71
- "files": [
72
- "dist/",
73
- "examples/",
74
- "LICENSE",
75
- "README.md",
76
- "tsconfig.json"
77
- ],
78
- "publishConfig": {
79
- "access": "public"
80
- }
81
- }
1
+ {
2
+ "name": "@dedenlabs/claude-code-router-cli",
3
+ "version": "2.0.8-beta.5",
4
+ "description": "基于@musistudio/claude-code-router的增强版CLI路由工具 - 支持统一路由引擎、外部规则加载、智能日志系统、自动配置迁移和GLM思考模式",
5
+ "bin": {
6
+ "ccr": "dist/cli.js"
7
+ },
8
+ "pnpm": {
9
+ "overrides": {
10
+ "@musistudio/llms": "workspace:*"
11
+ }
12
+ },
13
+ "scripts": {
14
+ "build": "node scripts/build.js",
15
+ "release": "npm run build && npm publish",
16
+ "build:core": "pnpm --filter @musistudio/llms build",
17
+ "dev:core": "pnpm --filter @musistudio/llms dev",
18
+ "prepublishOnly": "node scripts/prepublish-check.js",
19
+ "test": "vitest run",
20
+ "test:watch": "vitest",
21
+ "test:coverage": "vitest run --coverage",
22
+ "test:ui": "vitest --ui",
23
+ "test:integration": "vitest run --config ./vitest.config.ts tests/integration",
24
+ "test:unit": "vitest run --config ./vitest.config.ts tests/unit",
25
+ "test:ui:unit": "vitest run --config ./vitest.config.ts tests/ui"
26
+ },
27
+ "keywords": [
28
+ "claude",
29
+ "code",
30
+ "router",
31
+ "llm",
32
+ "anthropic",
33
+ "cli",
34
+ "unified",
35
+ "external-rules"
36
+ ],
37
+ "author": "dedenlabs <deden.labs@gmail.com> (Original by musistudio)",
38
+ "license": "MIT",
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/dedenlabs/claude-code-router-cli.git"
42
+ },
43
+ "bugs": {
44
+ "url": "https://github.com/dedenlabs/claude-code-router-cli/issues"
45
+ },
46
+ "homepage": "https://github.com/dedenlabs/claude-code-router-cli#readme",
47
+ "dependencies": {
48
+ "@anthropic-ai/sdk": "^0.54.0",
49
+ "@fastify/cors": "^11.0.1",
50
+ "@fastify/static": "^8.2.0",
51
+ "@google/genai": "^1.7.0",
52
+ "@inquirer/prompts": "^5.0.0",
53
+ "dotenv": "^16.4.7",
54
+ "find-process": "^2.0.0",
55
+ "json5": "^2.2.3",
56
+ "lru-cache": "^11.2.2",
57
+ "minimist": "^1.2.8",
58
+ "openai": "^5.6.0",
59
+ "rotating-file-stream": "^3.2.7",
60
+ "shell-quote": "^1.8.3",
61
+ "tiktoken": "^1.0.21",
62
+ "undici": "^7.10.0",
63
+ "uuid": "^11.1.0"
64
+ },
65
+ "devDependencies": {
66
+ "@testing-library/react": "^14.3.1",
67
+ "@types/node": "^24.0.15",
68
+ "@vitest/coverage-v8": "^2.1.9",
69
+ "@vitest/ui": "^2.1.9",
70
+ "esbuild": "^0.25.1",
71
+ "fastify": "^5.4.0",
72
+ "jsdom": "^25.0.1",
73
+ "shx": "^0.4.0",
74
+ "typescript": "^5.8.2",
75
+ "vitest": "^2.1.9"
76
+ },
77
+ "files": [
78
+ "dist/",
79
+ "examples/",
80
+ "LICENSE",
81
+ "README.md",
82
+ "tsconfig.json"
83
+ ],
84
+ "publishConfig": {
85
+ "access": "public"
86
+ }
87
+ }