234 Commits

Author SHA1 Message Date
musi
cd65b3605d Merge pull request #378 from BigUncle/feature/ui-add-api-timeout-setting
feat(ui): add API_TIMEOUT_MS setting to configuration UI(添加 API 超时时间设置功能)
2025-07-31 09:14:45 +08:00
BigUncle
754125e3a3 feat(ui): add API_TIMEOUT_MS setting to configuration UI
- Add API_TIMEOUT_MS input field to SettingsDialog
- Add translations for the new setting in both English and Chinese locales
- Update ConfigProvider to handle API_TIMEOUT_MS configuration
2025-07-30 23:15:57 +08:00
musistudio
3cb086fc57 feat: Limit config backups to 3 most recent files
Modified the backupConfigFile function to automatically clean up old backups,
keeping only the 3 most recent backup files. This prevents the config directory
from accumulating excessive backup files over time.

The implementation:
- Creates timestamped backups as before
- After each new backup, scans for existing backups
- Sorts backups by timestamp (newest first)
- Deletes all but the 3 most recent backups
- Gracefully handles cleanup errors with warnings

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 21:59:10 +08:00
musistudio
3a12fdffb1 update docker file 2025-07-30 21:48:47 +08:00
musistudio
7978f1abae fix some ui issue 2025-07-30 21:33:58 +08:00
musistudio
aea48239f9 fix ui fetch failed 2025-07-30 20:31:14 +08:00
musistudio
7acb443aad release v1.0.30 2025-07-30 16:48:32 +08:00
musistudio
18cfe6e2f0 update doc 2025-07-30 15:53:50 +08:00
musistudio
1d7374067e fix: improve error handling and config validation
- Add fallback mechanism for service startup with default config
- Implement config file backup before saving
- Add robust validation for config data in UI components
- Improve error handling and user feedback in UI
- Fix potential null/undefined access in provider and router components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 15:39:44 +08:00
musistudio
e560db85f4 fix: show default port 3456 in status when not specified in config
When the PORT was not specified in the config file, the status command
would show "undefined" for the port. This fix ensures that the default
port 3456 is displayed instead, matching the actual behavior of the
service which uses 3456 as the default port.

Fixes the issue where `ccr status` shows undefined for port when not
configured explicitly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 15:10:44 +08:00
musistudio
74fa03d3a5 update doc 2025-07-30 14:50:45 +08:00
musistudio
c02e314d76 release v1.0.29 2025-07-30 14:36:03 +08:00
musistudio
27fa655425 Merge branch 'main' of github.com:musistudio/claude-code-router 2025-07-30 14:28:14 +08:00
musistudio
d013a8a01a docs: add ccr ui command to README
- Add documentation for the `ccr ui` command to both the English and Chinese README files.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 14:22:38 +08:00
musistudio
7faf20e0c8 feat: add JSON editor for config
- Add a JSON editor using Monaco Editor to allow raw editing of the configuration.
- The editor is presented as a full-screen dialog that slides up from the bottom.
- Includes 'Save' and 'Save and Restart' functionality with internationalized labels and toast notifications for success/failure.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 14:20:20 +08:00
musistudio
ad17b27c3d feat: get all transformers 2025-07-30 11:55:55 +08:00
musistudio
112d7ef8f9 feat: add UI build to build process
- Created separate build script to handle both CLI and UI building
- Added automatic UI dependency installation
- Copy built UI artifacts to dist directory

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 11:15:05 +08:00
musi
2acfce5b63 Merge pull request #346 from BigUncle/feature/add-api-timeout-config
Add API_TIMEOUT_MS configuration option
2025-07-28 09:18:12 +08:00
BigUncle
2c44ea73c7 Add API_TIMEOUT_MS configuration option
- Add API_TIMEOUT_MS to config.example.json with default value of 600000ms
- Update README.md and README_zh.md to document the new configuration option
- Modify codeCommand.ts to use the configured timeout value instead of hardcoded 600000ms
- Default to 10 minutes (600000ms) if not set in config
2025-07-28 00:51:04 +08:00
musistudio
31db041084 release v1.0.28 2025-07-27 17:36:17 +08:00
musistudio
882efb5284 update readme 2025-07-27 17:27:06 +08:00
musistudio
604cc8e1dc fix the stuttering issue on windows 2025-07-27 16:10:48 +08:00
musi
a778755492 Merge pull request #330 from JoeChen2me/main
Feature: 添加可选的长上下文模型阈值配置
2025-07-26 23:03:47 +08:00
JoeChen
3bbfebb5e3 Feature: 添加可选的长上下文模型阈值配置 2025-07-26 12:13:55 +08:00
musistudio
6883fff352 update qwen3-coder example 2025-07-25 17:19:52 +08:00
musistudio
179bab605e release v1.0.27 to fix some bugs and enhance tools 2025-07-25 17:17:14 +08:00
jinhui.li
202402a123 update readme 2025-07-25 14:27:34 +08:00
jinhui.li
c6969fdd90 release v1.0.26 2025-07-23 12:20:52 +08:00
musi
b9d556ff1b add release command 2025-07-21 16:48:30 +08:00
musi
194a664f20 update cli help text 2025-07-21 15:34:39 +08:00
musi
09c3f0ccc6 add custom router doc 2025-07-21 15:31:55 +08:00
musi
5e14b9b0e1 release v1.0.24 to support custom router 2025-07-21 15:13:58 +08:00
jinhui.li
7165953b50 release v1.0.23 to support websearch 2025-07-21 10:46:53 +08:00
musi
e362feaa82 Merge pull request #264 from Linde7777/main
docs: add official Gemini api example in README.md
2025-07-21 10:37:12 +08:00
Linde7777
66054dccb0 docs: add official Gemini api example in README.md 2025-07-21 09:52:52 +08:00
jinhui.li
7efd7183d8 update readme 2025-07-20 16:20:12 +08:00
musi
5b27e797b3 Merge pull request #255 from Thlnking/feature/docs-fix 2025-07-20 15:31:46 +08:00
Thlnking
269a87da74 fix: 更新 pnpm-lock.yaml 和 README_zh.md,删除冲突标志信息 2025-07-20 14:06:30 +08:00
Thlnking
88fbf5e400 doc: 删除文档中出现的 git 冲突标志信息
Signed-off-by: Thlnking <2927874032@qq.com>
2025-07-20 09:23:46 +08:00
jinhui.li
f45316904b Merge branch 'main' of github.com:musistudio/claude-code-router 2025-07-20 01:27:43 +08:00
jinhui.li
d528a8df4c release v1.0.22 to support image 2025-07-20 01:26:52 +08:00
jinhui.li
d0de78eaf0 support configuring the port 2025-07-20 01:00:33 +08:00
musi
2fc79dcf37 release 1.0.21 2025-07-18 23:22:37 +08:00
musi
174c9a740f add groq transformer doc 2025-07-17 23:12:52 +08:00
musi
445908f8ae release v1.0.20 to support groq and fix messges transform bug 2025-07-17 23:10:10 +08:00
jinhui.li
18803469de update doc 2025-07-17 13:25:27 +08:00
jinhui.li
49502e1534 support authentication via APIKEY configuration 2025-07-17 12:49:14 +08:00
jinhui.li
f7f6943d31 update doc 2025-07-17 12:06:22 +08:00
jinhui.li
df21270a7e add config.example.json 2025-07-17 08:45:29 +08:00
musi
0a6d06b7a6 update sponsors 2025-07-16 21:59:00 +08:00