@kikkimo/claude-launcher 3.0.0 → 3.1.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 +28 -0
- package/README.md +7 -4
- package/claude-launcher +634 -38
- package/docs/README-zh.md +7 -4
- package/lib/api-manager.js +501 -67
- package/lib/i18n/locales/de.js +144 -6
- package/lib/i18n/locales/en.js +150 -6
- package/lib/i18n/locales/es.js +144 -6
- package/lib/i18n/locales/fr.js +144 -6
- package/lib/i18n/locales/it.js +144 -6
- package/lib/i18n/locales/ja.js +144 -6
- package/lib/i18n/locales/ko.js +144 -6
- package/lib/i18n/locales/pt.js +144 -6
- package/lib/i18n/locales/ru.js +144 -6
- package/lib/i18n/locales/zh-TW.js +144 -6
- package/lib/i18n/locales/zh.js +150 -6
- package/lib/launcher.js +46 -17
- package/lib/presets/providers.js +143 -39
- package/lib/ui/api-editor.js +668 -210
- package/lib/ui/i18n-labels.js +16 -0
- package/lib/ui/menu.js +19 -13
- package/lib/ui/screen.js +125 -125
- package/lib/utils/version-checker.js +6 -5
- package/lib/validators.js +102 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,34 @@ 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
|
+
## [3.1.0] - 2026-05-09
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **6-Step Add API Wizard**: Multi-step wizard (Provider → URL → Token → Model → Name → Confirm) with state machine. Esc/back navigation between steps, pre-create duplicate detection with branch UI, draft editing before persistence, and race-condition handling at persist time.
|
|
12
|
+
- **Draft Layer**: `buildApiDraft()` / `applyDraftEnvChange()` / `deleteDraftCustomEnvVar()` static methods on `ApiManager` for pre-persist config editing without touching disk.
|
|
13
|
+
- **Model Tier Auto-Matching**: Same-generation tier templates for all 9 providers — Anthropic auto-detects Opus/Sonnet/Haiku from model list; DeepSeek maps pro→flash; GLM maps 5.1→5-turbo; Moonshot maps k2.6→k2-thinking-turbo; MiniMax maps M2.x→M2.x-highspeed. Subagent defaults to Haiku tier (per Anthropic recommendation).
|
|
14
|
+
- **Provider Default Values**: All 9 providers now carry runtime env defaults (`API_TIMEOUT_MS`, `CLAUDE_CODE_ATTRIBUTION_HEADER: '0'`, `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: '1'`, etc.). DeepSeek defaults `CLAUDE_CODE_EFFORT_LEVEL` to `max`. Moonshot/Kimi/MiniMax/GLM default `CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK: '1'`.
|
|
15
|
+
- **Comprehensive Hint System**: 12 field-level `_detail` hints across all 11 locales — each shows field description + corresponding env var `[KEY]` + dynamic value source (provider default / manual / built-in default). Both list pages and edit sub-pages covered.
|
|
16
|
+
- **New i18n Sections**: `page`, `action`, `prompt`, `add_api`, `summary`, `confirm`, `config_labels.model/runtime` — ~50 new keys across all 11 languages.
|
|
17
|
+
- **New i18n Keys**: `hints.model.*_detail`, `hints.runtime.*_detail`, `hints.runtime.source_*`, `hints.runtime.effort_values`, `action.cancel_config`, `add_api.confirm_page_prompt`, `errors.api.not_found`, `status.auto`, `config.values.recommended_on`, `navigation.enter_to_edit/select`, `navigation.input_1_to_n_or_q`, `navigation.invalid_selection`.
|
|
18
|
+
- **Menu Component** `navigationKey` param + `_navigationKey` cache passed through all redraws. Non-TTY fallback now renders numbered prefixes (`1.`, `2.`) and i18n prompts. `selectFromList()` prompts i18n'd.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- **Runtime Config Display**: "Default" replaced with actual provider values (e.g. `600000`, `0`, `max`). TYPE_A `'1'` shown as "Enabled", `'off'` as "Disabled". Fields without provider default shown as `(not set)` via new `status.auto` key.
|
|
22
|
+
- **Config Label i18n**: `i18nLabel()` helper resolves `config_labels.<section>.<key>` lookup before falling back to English constants. Labels now follow user locale.
|
|
23
|
+
- **Edit API Menu**: 3 env entries merged into single "Model & Runtime Config" entry with summary counts (7→5 items). Sub-pages restructured as 3-section home with per-section hints.
|
|
24
|
+
- **Model/Runtime List Pages**: Dynamic column alignment via `getStringWidth()`/`padStringToWidth()` instead of hardcoded `padEnd(24)`. Labels align correctly in all languages.
|
|
25
|
+
- **Experimental Features Label**: All 11 locales updated from ambiguous "Experimental Features" to "Disable Experimental Features" matching `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS` semantics.
|
|
26
|
+
- **noFlicker Default**: Now defaults to `true` (On, recommended) matching telemetry's default pattern. Added `config.values.recommended_on` key.
|
|
27
|
+
- **API Default Name**: Simplified from `"Provider Name model-name"` to `"ProviderShort #N"` with auto-increment counting by short-name prefix (moonshot + kimi_for_coding share "Moonshot AI" prefix).
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
- **Confirmation Page Rendering**: Content passed via `versionInfo` parameter to Menu instead of `screen.render()` that was immediately overwritten by `displayMenu()`.
|
|
31
|
+
- **Confirmation Page Back Button**: Changed from "Back" to "Cancel" (`action.cancel_config`) — exits to main menu without saving.
|
|
32
|
+
- **Token Input**: Removed misleading "empty to restore recommended" hint; added minimum 10-character validation.
|
|
33
|
+
- **Exit Handling**: `addNewThirdPartyApi` state machine wrapped in try-catch so `exit` at any step returns to main menu gracefully.
|
|
34
|
+
- **Locale File Structure**: Fixed `nonstreaming` key having `},` on the same line, premature `runtime` section closure causing `source_*` keys to land at wrong nesting level.
|
|
35
|
+
|
|
8
36
|
## [3.0.0] - 2026-04-07
|
|
9
37
|
|
|
10
38
|
### Added
|
package/README.md
CHANGED
|
@@ -28,9 +28,12 @@ An elegant interactive launcher for Claude Code with a beautiful Claude-style in
|
|
|
28
28
|
- Strong password requirements and validation
|
|
29
29
|
|
|
30
30
|
### 🚀 **Third-party API Management**
|
|
31
|
-
- Full support for
|
|
32
|
-
-
|
|
33
|
-
- **
|
|
31
|
+
- Full support for 9 third-party API providers (Anthropic, DeepSeek, Kimi K2.6, MiniMax M2.7, GLM-5.1/ZhiPu AI, and custom APIs)
|
|
32
|
+
- **6-Step Add API Wizard**: Provider → URL → Token → Model → Name → Config Confirm with pre-create duplicate detection, back navigation between steps, and inline config editing before persist
|
|
33
|
+
- **Env Config Editor**: Edit model config (6 fields: Sonnet/Opus/Haiku/Subagent/Custom), runtime config (6 fields: timeout/attribution/nonessential/effort/experimental/nonstreaming), and custom env vars — with per-field hints, provider default values, and overridden markers
|
|
34
|
+
- **Auto Model Tier Matching**: Same-generation auto-matching for all providers (AnthropicOpus/Sonnet/Haiku, DeepSeek pro/flash, GLM 5.1/turbo, etc.)
|
|
35
|
+
- **Interactive API Editing**: Modify name, provider, base URL, model, and all env configs for existing APIs
|
|
36
|
+
- Dynamic column alignment and comprehensive field hints across all supported languages
|
|
34
37
|
- API usage statistics with success/failure tracking
|
|
35
38
|
- Model upgrade notifications and auto-upgrade support
|
|
36
39
|
- Secure configuration backup and restore
|
|
@@ -180,7 +183,7 @@ Claude Launcher uses an advanced configuration system:
|
|
|
180
183
|
|
|
181
184
|
Configure any third-party API provider through the interactive interface:
|
|
182
185
|
|
|
183
|
-
- **Supported Providers**: Anthropic, DeepSeek, Moonshot/Kimi (K2.
|
|
186
|
+
- **Supported Providers**: Anthropic (Opus 4.7/Sonnet 4.6/Haiku 4.5), DeepSeek (V4-Pro/V4-Flash), Moonshot/Kimi (K2.6), MiniMax CN/Global (M2.7), ZhiPu AI/Z.ai (GLM-5.1/5-Turbo), and custom Anthropic-compatible APIs
|
|
184
187
|
- **Secure Storage**: All API tokens encrypted before storage
|
|
185
188
|
- **Validation**: Real-time validation of URLs, tokens, and models
|
|
186
189
|
- **Usage Tracking**: Monitor API usage statistics with success/failure rates
|