zcf 3.1.4 → 3.2.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/README.md +48 -18
- package/dist/chunks/claude-code-config-manager.mjs +705 -0
- package/dist/chunks/claude-code-incremental-manager.mjs +393 -0
- package/dist/chunks/codex-config-switch.mjs +2 -174
- package/dist/chunks/codex-provider-manager.mjs +193 -0
- package/dist/chunks/codex-uninstaller.mjs +1 -1
- package/dist/chunks/commands.mjs +117 -0
- package/dist/chunks/simple-config.mjs +355 -158
- package/dist/cli.mjs +223 -136
- package/dist/i18n/locales/en/api.json +1 -2
- package/dist/i18n/locales/en/codex.json +0 -1
- package/dist/i18n/locales/en/common.json +2 -2
- package/dist/i18n/locales/en/multi-config.json +61 -0
- package/dist/i18n/locales/zh-CN/api.json +1 -2
- package/dist/i18n/locales/zh-CN/codex.json +0 -1
- package/dist/i18n/locales/zh-CN/common.json +2 -2
- package/dist/i18n/locales/zh-CN/multi-config.json +61 -0
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/templates/claude-code/en/workflow/git/commands/git-commit.md +1 -0
- package/templates/claude-code/zh-CN/workflow/git/commands/git-commit.md +1 -0
- package/templates/codex/en/workflow/git/prompts/git-commit.md +1 -0
- package/templates/codex/zh-CN/workflow/git/prompts/git-commit.md +1 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[中文](README_zh-CN.md) | **English** | [日本語](README_ja-JP.md) | [Changelog](CHANGELOG.md)
|
|
12
12
|
|
|
13
|
-
**✨ Quick Links**: [Codex Support](#-codex-support-v300-new) | [BMad Workflow](#-bmad-workflow-v27-new-feature) | [Spec Workflow](#-spec-workflow-v2124-new-feature) | [Open Web Search](#-open-web-search-v2129-new-feature) | [CCR Router](#-ccr-claude-code-router-support-v28-enhanced) | [CCometixLine](#-ccometixline-support-status-bar-tool-v299-new) | [Output Styles](#-ai-output-styles-v212-new-feature)
|
|
13
|
+
**✨ Quick Links**: [Codex Support](#-codex-support-v300-new) | [BMad Workflow](#-bmad-workflow-v27-new-feature) | [Spec Workflow](#-spec-workflow-v2124-new-feature) | [Open Web Search](#-open-web-search-v2129-new-feature) | [CCR Router](#-ccr-claude-code-router-support-v28-enhanced) | [CCometixLine](#-ccometixline-support-status-bar-tool-v299-new) | [Output Styles](#-ai-output-styles-v212-new-feature) | [Multi-Configuration Management](#-multi-configuration-management-v320-new)
|
|
14
14
|
|
|
15
15
|
> Zero-config, one-click setup for Claude Code & Codex with bilingual support, intelligent agent system and personalized AI assistant
|
|
16
16
|
|
|
@@ -83,7 +83,7 @@ ZCF supports bilingual operation with automatic language switching for all comma
|
|
|
83
83
|
# Use Chinese for all operations
|
|
84
84
|
npx zcf --lang zh-CN # Interactive menu in Chinese
|
|
85
85
|
npx zcf init --lang zh-CN # Initialize with Chinese interface
|
|
86
|
-
npx zcf ccr --
|
|
86
|
+
npx zcf ccr --all-lang zh-CN # Configure CCR in Chinese
|
|
87
87
|
|
|
88
88
|
# Language parameter priority (highest to lowest):
|
|
89
89
|
# --all-lang > --lang > saved user preference > interactive prompt
|
|
@@ -117,7 +117,7 @@ When using `--skip-prompt`, the following parameters are available:
|
|
|
117
117
|
| `--lang, -l` | ZCF display language (applies to all commands) | `zh-CN`, `en` | No | `en` or user's saved preference |
|
|
118
118
|
| `--config-lang, -c` | Configuration language (template files language) | `zh-CN`, `en` | No | `en` |
|
|
119
119
|
| `--ai-output-lang, -a` | AI output language | `zh-CN`, `en`, custom string | No | `en` |
|
|
120
|
-
| `--all-lang, -g` | Set all language parameters (applies to all commands) | `zh-CN`, `en`, custom string | No | - (Priority:
|
|
120
|
+
| `--all-lang, -g` | Set all language parameters (applies to all commands) | `zh-CN`, `en`, custom string | No | - (Priority: `--all-lang` > `--lang` > saved user preference > interactive prompt. Custom string sets AI output language to custom while interaction and config languages remain 'en') |
|
|
121
121
|
| `--config-action, -r` | Config handling | `new`, `backup`, `merge`, `docs-only`, `skip` | No | `backup` |
|
|
122
122
|
| `--api-type, -t` | API configuration type | `auth_token`, `api_key`, `ccr_proxy`, `skip` | No | `skip` |
|
|
123
123
|
| `--api-key, -k` | API key (for both API key and auth token types) | string | Required when `api-type` is not `skip` | - |
|
|
@@ -189,18 +189,6 @@ npx zcf → Select 4 # Configure Codex MCP services
|
|
|
189
189
|
- Workflows: `~/.codex/prompts/`
|
|
190
190
|
- Backups: `~/.codex/backup/`
|
|
191
191
|
|
|
192
|
-
**Command Line Operations:**
|
|
193
|
-
|
|
194
|
-
Dedicated command line tool for Codex (v3.0.0+ New):
|
|
195
|
-
|
|
196
|
-
```bash
|
|
197
|
-
# Codex API provider switching
|
|
198
|
-
npx zcf config-switch # Interactive provider selection
|
|
199
|
-
npx zcf cs # Using alias
|
|
200
|
-
npx zcf cs provider-name # Direct switch to specified provider
|
|
201
|
-
npx zcf cs --list # List all available providers
|
|
202
|
-
```
|
|
203
|
-
|
|
204
192
|
**Migration Between Tools:**
|
|
205
193
|
|
|
206
194
|
ZCF allows seamless switching between Claude Code and Codex while preserving your preferences and workflow configurations. Both tools share the same MCP services and workflow templates for consistent development experience.
|
|
@@ -302,8 +290,6 @@ CCR menu options:
|
|
|
302
290
|
|
|
303
291
|
After CCR setup, ZCF automatically configures Claude Code to use CCR as the API proxy.
|
|
304
292
|
|
|
305
|
-
**Important Notice for v2.9.9 Users**: If you previously installed CCometixLine using ZCF v2.9.9, please rerun the installation process to ensure that the CCometixLine configuration is correctly added. Run `npx zcf` -> `Select L` -> `Select 1` to add the CCometixLine configuration.
|
|
306
|
-
|
|
307
293
|
|
|
308
294
|
#### 📊 CCometixLine Support (Status Bar Tool) (v2.9.9+ New)
|
|
309
295
|
|
|
@@ -401,6 +387,50 @@ After configuration:
|
|
|
401
387
|
- AI memory management (v2.0 new)
|
|
402
388
|
- ZCF cache cleanup (v2.0 new)
|
|
403
389
|
|
|
390
|
+
### 🧩 Multi-Configuration Management (v3.2.0 New)
|
|
391
|
+
|
|
392
|
+
Unified, incremental, interactive management for both Claude Code and Codex:
|
|
393
|
+
|
|
394
|
+
- Claude Code: Manage API profiles (add/edit/delete, default profile, duplicate detection)
|
|
395
|
+
- Codex: Manage model providers (list/switch, official login via interactive)
|
|
396
|
+
- Safe backups; prevents deleting the last profile (Claude Code)
|
|
397
|
+
- Applies environment to `~/.claude/settings.json` and restarts CCR when needed
|
|
398
|
+
- Config storage: `~/.ufomiao/zcf/config.toml` (backups `config.backup.YYYY-MM-DD_HH-mm-ss.toml`)
|
|
399
|
+
|
|
400
|
+
Choose tool type explicitly:
|
|
401
|
+
|
|
402
|
+
```bash
|
|
403
|
+
# -T accepts: claude-code|codex or short aliases cc|cx
|
|
404
|
+
npx zcf cs --list -T cc # List Claude Code profiles
|
|
405
|
+
npx zcf cs --list -T cx # List Codex providers
|
|
406
|
+
npx zcf cs -l -T cc # Short option for --list
|
|
407
|
+
npx zcf cs -l -T cx # Short option for --list
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
Claude Code usage:
|
|
411
|
+
|
|
412
|
+
```bash
|
|
413
|
+
# Quick switch
|
|
414
|
+
npx zcf cs official -T cc # Switch to official login
|
|
415
|
+
npx zcf cs ccr -T cc # Switch to CCR proxy
|
|
416
|
+
npx zcf cs my-profile -T cc
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
Codex usage:
|
|
420
|
+
|
|
421
|
+
```bash
|
|
422
|
+
# List and switch providers
|
|
423
|
+
npx zcf cs --list -T cx
|
|
424
|
+
npx zcf cs my-provider -T cx
|
|
425
|
+
|
|
426
|
+
# Switch to official login (interactive selection)
|
|
427
|
+
npx zcf config-switch -T cx
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
Notes:
|
|
431
|
+
- ENV mapping (Claude Code): API Key → `ANTHROPIC_API_KEY`, Auth Token → `ANTHROPIC_AUTH_TOKEN`, Base URL → `ANTHROPIC_BASE_URL`.
|
|
432
|
+
- Active code tool type is stored in ZCF config; use `-T cc/cx` only when targeting a different tool than the current one.
|
|
433
|
+
|
|
404
434
|
## 📖 Usage Instructions
|
|
405
435
|
|
|
406
436
|
### Interactive Menu (v2.0)
|
|
@@ -536,7 +566,7 @@ Enter your choice: _
|
|
|
536
566
|
| `zcf update` | `zcf u` | Update workflow-related md files with backup |
|
|
537
567
|
| `zcf ccu` | - | Run Claude Code usage analysis tool - [ccusage](https://github.com/ryoppippi/ccusage) |
|
|
538
568
|
| `zcf ccr` | - | Open CCR (Claude Code Router) management menu |
|
|
539
|
-
| `zcf config-switch` | `zcf cs` |
|
|
569
|
+
| `zcf config-switch` | `zcf cs` | API provider/config switching for Claude Code and Codex (`-T cc` / `-T cx`) |
|
|
540
570
|
| `zcf uninstall` | - | Interactive uninstall tool for Claude Code configurations and tools |
|
|
541
571
|
| `zcf check-updates` | - | Check and update Claude Code, CCR and CCometixLine versions |
|
|
542
572
|
|