Commit Graph

35 Commits

Author SHA1 Message Date
musi
0be4c3753f Merge pull request #691 from zoyopei/fix/ui-custom-router
fix(ui): add CUSTOM_ROUTER_PATH support in general settings
2025-09-01 20:53:07 +08:00
Aivan Monceller
d2a0815cb7 enhance Input component to manage numeric values and improve onChange handling 2025-08-25 13:27:58 +08:00
zoyopei
7cc41d83cf fix(ui): add CUSTOM_ROUTER_PATH support in general settings
- Add CUSTOM_ROUTER_PATH field to UI configuration
  - Fix configuration preservation during save operations
2025-08-24 19:52:14 +08:00
musistudio
b72b05eb5c release v1.0.40 2025-08-18 22:10:46 +08:00
musistudio
95b2dadd40 feat: optimize ui 2025-08-17 18:02:09 +08:00
musistudio
d6b11e1b60 feat: statusline support script 2025-08-17 00:25:22 +08:00
musistudio
d2969e4332 feat: update statusline config ui 2025-08-16 19:01:15 +08:00
musistudio
e078127ac6 release v1.0.38 2025-08-15 23:54:41 +08:00
musistudio
0e509528c2 add ccr statusline command 2025-08-15 23:50:57 +08:00
BigUncle
b8f52ba538 feat logging: Implement LOG_LEVEL configuration option and improve logging consistency
- Add LOG_LEVEL configuration option to control logging verbosity
- Update UI to include LOG_LEVEL dropdown in settings
- Fix logging inconsistency between environment variables and config file
- Unify logging configuration to use config file settings
- Maintain separate logging systems for different purposes:
  * Server-level logs (HTTP requests, API calls) using pino in ~/.claude-code-router/logs/
  * Application-level logs (routing decisions, business logic) in ~/.claude-code-router/claude-code-router.log
- Update documentation with accurate logging system information
- Add detailed information about dual logging systems in README.md and README_zh.md
- Improve type safety and validation in ConfigProvider

Co-authored-by: qwen-cli <https://github.com/QwenLM/qwen-code>
2025-08-14 21:17:27 +08:00
musistudio
bc08c4ab48 add update button 2025-08-13 21:32:57 +08:00
musistudio
cce1625534 fix windows/linux get system uuid error 2025-08-12 21:41:42 +08:00
musistudio
9cd5587f52 feat: Implement temporary API key based on system UUID for UI access
This commit introduces a new authentication mechanism for the web UI.
Instead of requiring a pre-configured API key, a temporary API key is
generated based on the system's UUID. This key is passed to the UI
as a URL parameter and used for API requests.

Changes:
- Added a new utility to get the system UUID and generate a temporary API key.
- Modified the `ccr ui` command to generate and pass the temporary API key.
- Updated the authentication middleware to validate the temporary API key.
- Adjusted the frontend to use the temporary API key from the URL.
- Added a dedicated endpoint to test API access without modifying data.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 15:00:42 +08:00
HynoR
38bc747261 fix: check provider name to prevent duplicate name with different config 2025-08-07 00:56:30 +08:00
musistudio
0794151eb5 release v1.0.33 2025-08-06 22:19:05 +08:00
musistudio
3e1963564a fix ui: add form validator 2025-08-06 21:11:44 +08:00
musistudio
023c045821 Merge remote-tracking branch 'origin/main' 2025-08-06 20:54:21 +08:00
musistudio
216ee939fb feat ui: add placeholder for proxy_url 2025-08-05 22:21:13 +08:00
Yashvardhan Jagnani
47051bf11b docs: non interactive env 2025-08-05 14:20:18 +05:30
musistudio
7bb816ad03 fix ui: custom transformer error 2025-08-04 13:18:57 +08:00
musistudio
38c6cf0c9a feat ui: show apikey in edit provider dialog 2025-08-04 13:02:39 +08:00
musistudio
e51d70caf2 feat ui: add tooltip 2025-08-04 09:48:15 +08:00
musistudio
5fd78a103b feat ui: add import and export config 2025-08-03 16:42:59 +08:00
musistudio
996a05d1d6 feat ui: support import provider from template 2025-08-02 22:56:18 +08:00
musistudio
6523255d83 fix ui: add proxy_url in general settings 2025-08-02 17:50:11 +08:00
musistudio
a3d1f44908 release v1.0.31 to support anthropic endpoint provider 2025-08-01 22:10:14 +08:00
Reed Qu
d929e7cfef fix(ui): 优化Providers编辑模态框取消以关闭的删除逻辑和保存逻辑 2025-08-01 11:30:35 +08:00
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
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
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
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