Skip to content

Commit d562152

Browse files
committed
chore: bump version to 4.1.0
1 parent 4570c1a commit d562152

File tree

5 files changed

+77
-18
lines changed

5 files changed

+77
-18
lines changed

CHANGELOG.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,65 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10+
## [4.1.0] - 2025-11-25
11+
12+
### Added
13+
14+
- **Interactive Provider Management**: Complete implementation of add/edit provider flows in interactive mode
15+
- Full-featured provider creation with validation
16+
- In-place provider editing with current values pre-filled
17+
- ID column display in provider tables for easier reference
18+
- **Port Testing**: Added endpoint connectivity testing for API providers
19+
- Test reachability of API endpoints before switching
20+
- Validates base URLs and ports are accessible
21+
- **Prompts Deactivate Command**: New `prompts deactivate` command to disable active prompts
22+
- Supports multi-app deactivation (Claude/Codex/Gemini)
23+
- Removes active prompt files from app directories
24+
- **Toggle Prompt Mode**: Added ability to switch between prompt switching modes
25+
- Configure how prompts are activated and managed
26+
- Interactive mode support for toggling settings
27+
- **Environment Management Commands**: Full implementation of environment variable detection
28+
- `env check`: Detect conflicting API keys in system environment
29+
- `env list`: List all relevant environment variables by app
30+
- Helps identify issues when provider switching doesn't take effect
31+
- **Delete Commands for Prompts**: Multi-app support for deleting prompts
32+
- Delete prompts from all configured apps at once
33+
- Proper cleanup of prompt files and configuration
34+
35+
### Changed
36+
37+
- **Interactive Mode Refactoring**: Reorganized into modular structure (~1,254 lines reorganized)
38+
- Split into 6 focused submodules: `provider.rs`, `mcp.rs`, `prompts.rs`, `config.rs`, `settings.rs`, `utils.rs`
39+
- Improved code maintainability and separation of concerns
40+
- Better error handling and user feedback
41+
- **Command Output Enhancement**: Improved formatting and alignment in command mode
42+
- Better table formatting for command-line output
43+
- Consistent status indicators and color coding
44+
- **Backup Management**: Enhanced interactive backup selection and management
45+
- Improved backup listing with timestamps
46+
- Better restore flow with confirmation prompts
47+
48+
### Fixed
49+
50+
- Command mode table alignment issues in provider display
51+
- ID column visibility in interactive provider lists
52+
- Provider add/edit validation edge cases
53+
54+
### Removed
55+
56+
- Environment variable set/unset features (removed for safety)
57+
- Users must manually manage environment variables
58+
- Tool now focuses on detection only to prevent accidental overwrites
59+
60+
### Technical
61+
62+
- 15 commits since v4.0.1
63+
- Cargo.toml version updated to 4.1.0
64+
- Core business logic preserved at 100%
65+
- All changes maintain backward compatibility with existing configs
66+
67+
---
68+
1069
## [4.0.2-cli] - 2025-11-24
1170

1271
### Changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# CC-Switch CLI
44

5-
[![Version](https://img.shields.io/badge/version-4.0.1-blue.svg)](https://github.com/saladday/cc-switch-cli/releases)
5+
[![Version](https://img.shields.io/badge/version-4.1.0-blue.svg)](https://github.com/saladday/cc-switch-cli/releases)
66
[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey.svg)](https://github.com/saladday/cc-switch-cli/releases)
77
[![Built with Rust](https://img.shields.io/badge/built%20with-Rust-orange.svg)](https://www.rust-lang.org/)
88
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
@@ -197,10 +197,10 @@ Download the latest release from [GitHub Releases](https://github.com/saladday/c
197197

198198
```bash
199199
# Download Universal Binary (recommended, supports Apple Silicon + Intel)
200-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.0.1-darwin-universal.tar.gz
200+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.1.0-darwin-universal.tar.gz
201201

202202
# Extract
203-
tar -xzf cc-switch-cli-v4.0.1-darwin-universal.tar.gz
203+
tar -xzf cc-switch-cli-v4.1.0-darwin-universal.tar.gz
204204

205205
# Add execute permission
206206
chmod +x cc-switch
@@ -216,10 +216,10 @@ xattr -cr /usr/local/bin/cc-switch
216216

217217
```bash
218218
# Download
219-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.0.1-linux-x64-musl.tar.gz
219+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.1.0-linux-x64-musl.tar.gz
220220

221221
# Extract
222-
tar -xzf cc-switch-cli-v4.0.1-linux-x64-musl.tar.gz
222+
tar -xzf cc-switch-cli-v4.1.0-linux-x64-musl.tar.gz
223223

224224
# Add execute permission
225225
chmod +x cc-switch
@@ -232,8 +232,8 @@ sudo mv cc-switch /usr/local/bin/
232232

233233
```bash
234234
# For Raspberry Pi or ARM servers
235-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.0.1-linux-arm64-musl.tar.gz
236-
tar -xzf cc-switch-cli-v4.0.1-linux-arm64-musl.tar.gz
235+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.1.0-linux-arm64-musl.tar.gz
236+
tar -xzf cc-switch-cli-v4.1.0-linux-arm64-musl.tar.gz
237237
chmod +x cc-switch
238238
sudo mv cc-switch /usr/local/bin/
239239
```
@@ -242,7 +242,7 @@ sudo mv cc-switch /usr/local/bin/
242242

243243
```powershell
244244
# Download the zip file
245-
# https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.0.1-windows-x64.zip
245+
# https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.1.0-windows-x64.zip
246246
247247
# After extracting, move cc-switch.exe to a PATH directory, e.g.:
248248
move cc-switch.exe C:\Windows\System32\

README_ZH.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# CC-Switch CLI
44

5-
[![Version](https://img.shields.io/badge/version-4.0.1-blue.svg)](https://github.com/saladday/cc-switch-cli/releases)
5+
[![Version](https://img.shields.io/badge/version-4.1.0-blue.svg)](https://github.com/saladday/cc-switch-cli/releases)
66
[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey.svg)](https://github.com/saladday/cc-switch-cli/releases)
77
[![Built with Rust](https://img.shields.io/badge/built%20with-Rust-orange.svg)](https://www.rust-lang.org/)
88
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
@@ -197,10 +197,10 @@ cc-switch env list # 列出环境变量
197197

198198
```bash
199199
# 下载 Universal Binary(推荐,支持 Apple Silicon + Intel)
200-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.0.1-darwin-universal.tar.gz
200+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.1.0-darwin-universal.tar.gz
201201

202202
# 解压
203-
tar -xzf cc-switch-cli-v4.0.1-darwin-universal.tar.gz
203+
tar -xzf cc-switch-cli-v4.1.0-darwin-universal.tar.gz
204204

205205
# 添加执行权限
206206
chmod +x cc-switch
@@ -216,10 +216,10 @@ xattr -cr /usr/local/bin/cc-switch
216216

217217
```bash
218218
# 下载
219-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.0.1-linux-x64-musl.tar.gz
219+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.1.0-linux-x64-musl.tar.gz
220220

221221
# 解压
222-
tar -xzf cc-switch-cli-v4.0.1-linux-x64-musl.tar.gz
222+
tar -xzf cc-switch-cli-v4.1.0-linux-x64-musl.tar.gz
223223

224224
# 添加执行权限
225225
chmod +x cc-switch
@@ -232,8 +232,8 @@ sudo mv cc-switch /usr/local/bin/
232232

233233
```bash
234234
# 适用于树莓派或 ARM 服务器
235-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.0.1-linux-arm64-musl.tar.gz
236-
tar -xzf cc-switch-cli-v4.0.1-linux-arm64-musl.tar.gz
235+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.1.0-linux-arm64-musl.tar.gz
236+
tar -xzf cc-switch-cli-v4.1.0-linux-arm64-musl.tar.gz
237237
chmod +x cc-switch
238238
sudo mv cc-switch /usr/local/bin/
239239
```
@@ -242,7 +242,7 @@ sudo mv cc-switch /usr/local/bin/
242242

243243
```powershell
244244
# 下载 zip 文件
245-
# https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.0.1-windows-x64.zip
245+
# https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-v4.1.0-windows-x64.zip
246246
247247
# 解压后将 cc-switch.exe 移动到 PATH 目录,例如:
248248
move cc-switch.exe C:\Windows\System32\

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cc-switch"
3-
version = "3.7.1"
3+
version = "4.1.0"
44
description = "All-in-One Assistant for Claude Code, Codex & Gemini CLI"
55
authors = ["Jason Young"]
66
license = "MIT"

0 commit comments

Comments
 (0)