@kikkimo/claude-launcher 2.4.0 → 2.5.0
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/CHANGELOG.md +29 -0
- package/README.md +16 -8
- package/claude-launcher +36 -7
- package/docs/README-zh.md +16 -8
- package/docs/superpowers/plans/2026-03-31-update-models-and-auto-mode.md +1414 -0
- package/docs/superpowers/specs/2026-03-31-update-models-and-auto-mode-design.md +187 -0
- package/lib/i18n/locales/de.js +6 -0
- package/lib/i18n/locales/en.js +6 -0
- package/lib/i18n/locales/es.js +6 -0
- package/lib/i18n/locales/fr.js +6 -0
- package/lib/i18n/locales/it.js +6 -0
- package/lib/i18n/locales/ja.js +6 -0
- package/lib/i18n/locales/ko.js +6 -0
- package/lib/i18n/locales/pt.js +6 -0
- package/lib/i18n/locales/ru.js +6 -0
- package/lib/i18n/locales/zh-TW.js +6 -0
- package/lib/i18n/locales/zh.js +6 -0
- package/lib/launcher.js +10 -0
- package/lib/presets/providers.js +39 -18
- package/lib/ui/menu.js +17 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,35 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.5.0] - 2026-03-31
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Claude Auto Mode Support**: New menu item "Launch Claude Code (Enable Auto Mode)" using `--enable-auto-mode` flag
|
|
12
|
+
- Enables auto mode as a selectable permission mode (switch with Shift+Tab in session)
|
|
13
|
+
- Currently supports Team plan; Enterprise/API plans rolling out
|
|
14
|
+
- **Dynamic Menu Hints**: Context-sensitive hints displayed below the main menu based on selected item
|
|
15
|
+
- Auto Mode item: Shows plan support info and Shift+Tab usage instruction
|
|
16
|
+
- Third-party API items: Shows active API provider/model or prompts to configure
|
|
17
|
+
- Hints auto-hide when selecting other menu items
|
|
18
|
+
- **GLM-5.1 & GLM-5-Turbo Models**: Added latest ZhiPu AI models for both `zhipu` and `zai` providers
|
|
19
|
+
- New models: `glm-5.1` (latest), `glm-5-turbo`
|
|
20
|
+
- Removed deprecated: `glm-4.5`, `glm-4.6`
|
|
21
|
+
- All older models now suggest upgrade to `glm-5.1`
|
|
22
|
+
- **Kimi K2.5 Model**: Added latest Moonshot AI model for `moonshot` provider
|
|
23
|
+
- New model: `kimi-k2.5` (latest, multimodal, 256K context)
|
|
24
|
+
- Removed deprecated: `kimi-k2-0711-preview`, `kimi-k2-0905-preview`, `kimi-k2-turbo-preview`
|
|
25
|
+
- All older models now suggest upgrade to `kimi-k2.5`
|
|
26
|
+
- **MiniMax M2.7 & M2.5 Models**: Added latest MiniMax models for both `minimax_cn` and `minimax_global` providers
|
|
27
|
+
- New models: `MiniMax-M2.7` (latest), `MiniMax-M2.5`
|
|
28
|
+
- Older models now suggest upgrade to `MiniMax-M2.7`
|
|
29
|
+
- **Automated Test Suite**: Added test infrastructure with `npm test` entry point
|
|
30
|
+
- Provider model configuration tests (28 tests)
|
|
31
|
+
- Menu hintCallback rendering tests including navigate() stub tests (8 tests)
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
- **Menu Structure**: Main menu now has 9 items (was 8), with Auto Mode at position 3
|
|
35
|
+
- **i18n**: All 11 locale files updated with 4 new translation keys for Auto Mode and hints
|
|
36
|
+
|
|
8
37
|
## [2.4.0] - 2026-02-12
|
|
9
38
|
|
|
10
39
|
### Added
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ An elegant interactive launcher for Claude Code with a beautiful Claude-style in
|
|
|
25
25
|
- Strong password requirements and validation
|
|
26
26
|
|
|
27
27
|
### 🚀 **Third-party API Management**
|
|
28
|
-
- Full support for multiple third-party API providers (
|
|
28
|
+
- Full support for multiple third-party API providers (Anthropic, DeepSeek, Kimi K2.5, MiniMax M2.7, GLM-5.1/ZhiPu AI, and custom APIs)
|
|
29
29
|
- Interactive API configuration with validation
|
|
30
30
|
- API usage statistics with success/failure tracking
|
|
31
31
|
- Model upgrade notifications and auto-upgrade support
|
|
@@ -84,16 +84,17 @@ node claude-launcher
|
|
|
84
84
|
|
|
85
85
|
1. **Launch Claude Code** - Standard Claude Code launch
|
|
86
86
|
2. **Launch Claude Code (Skip Permissions)** - Launch with `--dangerously-skip-permissions`
|
|
87
|
-
3. **Launch Claude Code
|
|
88
|
-
4. **Launch Claude Code with Third-party API
|
|
89
|
-
5. **Third-party API
|
|
87
|
+
3. **Launch Claude Code (Enable Auto Mode)** - Launch with `--enable-auto-mode` for classifier-gated auto approvals (Team plan; Shift+Tab to switch)
|
|
88
|
+
4. **Launch Claude Code with Third-party API** - Use configured third-party API
|
|
89
|
+
5. **Launch Claude Code with Third-party API (Skip Permissions)** - Combine third-party API with permission skipping
|
|
90
|
+
6. **Third-party API Management** - Full API lifecycle management:
|
|
90
91
|
- Add, switch, and remove APIs
|
|
91
92
|
- View usage statistics with success/failure rates
|
|
92
93
|
- Model upgrade settings (auto/manual upgrade)
|
|
93
94
|
- Import/export configurations
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
7. **Language Settings** - Switch between 11 supported languages
|
|
96
|
+
8. **Version Update Check** - Check for launcher updates
|
|
97
|
+
9. **Exit** - Close the launcher
|
|
97
98
|
|
|
98
99
|
### Interactive Navigation
|
|
99
100
|
|
|
@@ -115,6 +116,7 @@ $ claude-launcher
|
|
|
115
116
|
|
|
116
117
|
→ Launch Claude Code
|
|
117
118
|
Launch Claude Code (Skip Permissions)
|
|
119
|
+
Launch Claude Code (Enable Auto Mode)
|
|
118
120
|
Launch Claude Code with Third-party API
|
|
119
121
|
Launch Claude Code with Third-party API (Skip Permissions)
|
|
120
122
|
Third-party API Management
|
|
@@ -171,7 +173,7 @@ Claude Launcher 2.0 uses an advanced configuration system:
|
|
|
171
173
|
|
|
172
174
|
Configure any third-party API provider through the interactive interface:
|
|
173
175
|
|
|
174
|
-
- **Supported Providers**: Anthropic,
|
|
176
|
+
- **Supported Providers**: Anthropic, DeepSeek, Moonshot/Kimi (K2.5), MiniMax (CN/Global, M2.7), GLM/ZhiPu AI (GLM-5.1), and custom Anthropic-compatible APIs
|
|
175
177
|
- **Secure Storage**: All API tokens encrypted before storage
|
|
176
178
|
- **Validation**: Real-time validation of URLs, tokens, and models
|
|
177
179
|
- **Usage Tracking**: Monitor API usage statistics with success/failure rates
|
|
@@ -212,6 +214,12 @@ cd claude-launcher
|
|
|
212
214
|
npm install
|
|
213
215
|
```
|
|
214
216
|
|
|
217
|
+
### Running Tests
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
npm test
|
|
221
|
+
```
|
|
222
|
+
|
|
215
223
|
### Testing Locally
|
|
216
224
|
|
|
217
225
|
```bash
|
package/claude-launcher
CHANGED
|
@@ -46,6 +46,7 @@ const {
|
|
|
46
46
|
const {
|
|
47
47
|
launchClaudeDefault,
|
|
48
48
|
launchClaudeSkipPermissions,
|
|
49
|
+
launchClaudeAutoMode,
|
|
49
50
|
launchClaudeWithApi
|
|
50
51
|
} = require('./lib/launcher');
|
|
51
52
|
const { getPasswordInput } = require('./lib/auth/password-input');
|
|
@@ -967,24 +968,28 @@ async function executeSelection(selectedIndex) {
|
|
|
967
968
|
launchClaudeSkipPermissions();
|
|
968
969
|
break;
|
|
969
970
|
|
|
970
|
-
case 2: // Launch Claude Code
|
|
971
|
+
case 2: // Launch Claude Code (Enable Auto Mode)
|
|
972
|
+
launchClaudeAutoMode();
|
|
973
|
+
break;
|
|
974
|
+
|
|
975
|
+
case 3: // Launch Claude Code with 3rd-party API
|
|
971
976
|
await handleThirdPartyApiLaunch(false);
|
|
972
977
|
break;
|
|
973
978
|
|
|
974
|
-
case
|
|
979
|
+
case 4: // Launch Claude Code with 3rd-party API (Skip Permissions)
|
|
975
980
|
await handleThirdPartyApiLaunch(true);
|
|
976
981
|
break;
|
|
977
982
|
|
|
978
|
-
case
|
|
983
|
+
case 5: // 3rd-party API Management
|
|
979
984
|
return await showApiManagementMenu();
|
|
980
985
|
|
|
981
|
-
case
|
|
986
|
+
case 6: // Language Settings
|
|
982
987
|
return await showLanguageSettings();
|
|
983
988
|
|
|
984
|
-
case
|
|
989
|
+
case 7: // Version Update Check
|
|
985
990
|
return await showVersionUpdateCheck();
|
|
986
991
|
|
|
987
|
-
case
|
|
992
|
+
case 8: // Exit
|
|
988
993
|
console.log('');
|
|
989
994
|
console.log(colors.green + '👋 ' + await i18n.t('menu.main.exit') + '!' + colors.reset);
|
|
990
995
|
process.exit(0);
|
|
@@ -1093,6 +1098,7 @@ async function showMenu() {
|
|
|
1093
1098
|
menuOptions = [
|
|
1094
1099
|
await i18n.t('menu.main.launch_default'),
|
|
1095
1100
|
await i18n.t('menu.main.launch_skip'),
|
|
1101
|
+
await i18n.t('menu.main.launch_auto_mode'),
|
|
1096
1102
|
await i18n.t('menu.main.launch_api'),
|
|
1097
1103
|
await i18n.t('menu.main.launch_api_skip'),
|
|
1098
1104
|
await i18n.t('menu.main.api_management'),
|
|
@@ -1101,8 +1107,31 @@ async function showMenu() {
|
|
|
1101
1107
|
await i18n.t('menu.main.exit')
|
|
1102
1108
|
];
|
|
1103
1109
|
|
|
1110
|
+
// Pre-compute hint texts synchronously for menu callback
|
|
1111
|
+
const hintAutoMode = i18n.tSync('hints.auto_mode_info');
|
|
1112
|
+
const activeApi = apiManager.getActiveApi();
|
|
1113
|
+
let hintApiInfo = null;
|
|
1114
|
+
if (activeApi) {
|
|
1115
|
+
const { getProvider } = require('./lib/presets/providers');
|
|
1116
|
+
const providerConfig = getProvider(activeApi.provider);
|
|
1117
|
+
const providerName = providerConfig ? providerConfig.name : (activeApi.provider || 'Custom');
|
|
1118
|
+
hintApiInfo = i18n.tSync('hints.active_api_info', providerName, activeApi.model);
|
|
1119
|
+
} else {
|
|
1120
|
+
hintApiInfo = i18n.tSync('hints.no_active_api');
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
// Synchronous hint callback — must not use await
|
|
1124
|
+
const hintCallback = (selectedIndex) => {
|
|
1125
|
+
switch (selectedIndex) {
|
|
1126
|
+
case 2: return hintAutoMode;
|
|
1127
|
+
case 3: return hintApiInfo;
|
|
1128
|
+
case 4: return hintApiInfo;
|
|
1129
|
+
default: return null;
|
|
1130
|
+
}
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1104
1133
|
globalMainMenu.setOptions(menuOptions);
|
|
1105
|
-
const selection = await globalMainMenu.navigate(false, displayInfo || null);
|
|
1134
|
+
const selection = await globalMainMenu.navigate(false, displayInfo || null, hintCallback);
|
|
1106
1135
|
|
|
1107
1136
|
if (selection === -1) {
|
|
1108
1137
|
console.log('');
|
package/docs/README-zh.md
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
- 强密码要求和验证
|
|
26
26
|
|
|
27
27
|
### 🚀 **第三方 API 管理**
|
|
28
|
-
- 全面支持多个第三方 API 提供商(Anthropic、
|
|
28
|
+
- 全面支持多个第三方 API 提供商(Anthropic、DeepSeek、Kimi K2.5、MiniMax M2.7、GLM-5.1/智谱AI 和自定义 API)
|
|
29
29
|
- 带验证的交互式 API 配置
|
|
30
30
|
- API 使用统计,支持成功/失败率追踪
|
|
31
31
|
- 模型升级通知和自动升级支持
|
|
@@ -84,16 +84,17 @@ node claude-launcher
|
|
|
84
84
|
|
|
85
85
|
1. **启动 Claude Code** - 标准 Claude Code 启动
|
|
86
86
|
2. **启动 Claude Code(跳过权限)** - 使用 `--dangerously-skip-permissions` 启动
|
|
87
|
-
3.
|
|
88
|
-
4. **使用第三方 API 启动 Claude Code
|
|
89
|
-
5.
|
|
87
|
+
3. **启动 Claude Code(启用自动模式)** - 使用 `--enable-auto-mode` 启动,支持分类器自动审批(Team 计划;启动后按 Shift+Tab 切换)
|
|
88
|
+
4. **使用第三方 API 启动 Claude Code** - 使用配置的第三方 API
|
|
89
|
+
5. **使用第三方 API 启动 Claude Code(跳过权限)** - 结合第三方 API 和跳过权限
|
|
90
|
+
6. **第三方 API 管理** - 完整的 API 生命周期管理:
|
|
90
91
|
- 添加、切换和删除 API
|
|
91
92
|
- 查看使用统计(含成功/失败率)
|
|
92
93
|
- 模型升级设置(自动/手动升级)
|
|
93
94
|
- 导入/导出配置
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
7. **语言设置** - 在11种支持的语言之间切换
|
|
96
|
+
8. **版本更新检查** - 检查启动器更新
|
|
97
|
+
9. **退出** - 关闭启动器
|
|
97
98
|
|
|
98
99
|
### 交互式导航
|
|
99
100
|
|
|
@@ -115,6 +116,7 @@ $ claude-launcher
|
|
|
115
116
|
|
|
116
117
|
→ 启动 Claude Code
|
|
117
118
|
启动 Claude Code(跳过权限)
|
|
119
|
+
启动 Claude Code(启用自动模式)
|
|
118
120
|
使用第三方 API 启动 Claude Code
|
|
119
121
|
使用第三方 API 启动 Claude Code(跳过权限)
|
|
120
122
|
第三方 API 管理
|
|
@@ -171,7 +173,7 @@ Claude Launcher 2.0 使用先进的配置系统:
|
|
|
171
173
|
|
|
172
174
|
通过交互界面配置任何第三方 API 提供商:
|
|
173
175
|
|
|
174
|
-
- **支持的提供商**:Anthropic、
|
|
176
|
+
- **支持的提供商**:Anthropic、DeepSeek、Moonshot/Kimi(K2.5)、MiniMax(国内版/国际版,M2.7)、GLM/智谱AI(GLM-5.1)和自定义 Anthropic 兼容 API
|
|
175
177
|
- **安全存储**:所有 API 令牌在存储前加密
|
|
176
178
|
- **验证**:URL、令牌和模型的实时验证
|
|
177
179
|
- **使用跟踪**:监控 API 使用统计,支持成功/失败率追踪
|
|
@@ -212,6 +214,12 @@ cd claude-launcher
|
|
|
212
214
|
npm install
|
|
213
215
|
```
|
|
214
216
|
|
|
217
|
+
### 运行测试
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
npm test
|
|
221
|
+
```
|
|
222
|
+
|
|
215
223
|
### 本地测试
|
|
216
224
|
|
|
217
225
|
```bash
|