zcf 3.1.3 → 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 +50 -21
- 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 +578 -193
- package/dist/cli.mjs +284 -142
- package/dist/i18n/locales/en/api.json +1 -2
- package/dist/i18n/locales/en/cli.json +2 -0
- package/dist/i18n/locales/en/codex.json +0 -1
- package/dist/i18n/locales/en/common.json +2 -2
- package/dist/i18n/locales/en/errors.json +1 -0
- 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/cli.json +2 -0
- 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/errors.json +1 -0
- package/dist/i18n/locales/zh-CN/multi-config.json +61 -0
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- 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-cleanBranches.md +102 -0
- package/templates/codex/en/workflow/git/prompts/git-commit.md +158 -0
- package/templates/codex/en/workflow/git/prompts/git-rollback.md +90 -0
- package/templates/codex/en/workflow/git/prompts/git-worktree.md +276 -0
- package/templates/codex/en/workflow/sixStep/prompts/workflow.md +140 -121
- package/templates/codex/zh-CN/workflow/git/prompts/git-cleanBranches.md +102 -0
- package/templates/codex/zh-CN/workflow/git/prompts/git-commit.md +158 -0
- package/templates/codex/zh-CN/workflow/git/prompts/git-rollback.md +90 -0
- package/templates/codex/zh-CN/workflow/git/prompts/git-worktree.md +276 -0
- package/templates/codex/zh-CN/workflow/sixStep/prompts/workflow.md +16 -33
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
|
|
|
@@ -43,7 +43,7 @@ Menu options include:
|
|
|
43
43
|
|
|
44
44
|
**Model Configuration (Option 5)**: Configure your default Claude model with flexible options:
|
|
45
45
|
- **Default**: Let Claude Code automatically choose the best model for each task
|
|
46
|
-
- **Opus**: Use Claude-
|
|
46
|
+
- **Opus**: Use Claude-4.1-Opus exclusively (high token consumption, use with caution)
|
|
47
47
|
- **Sonnet 1M**: Use Sonnet with 1M context window for larger context tasks
|
|
48
48
|
- **Custom**: Specify your own model names for both primary and fast tasks (supports any custom model)
|
|
49
49
|
|
|
@@ -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
|
|
|
@@ -351,8 +337,6 @@ After configuration:
|
|
|
351
337
|
- `/feat <task description>` - Start new feature development, divided into plan and UI phases
|
|
352
338
|
- `/workflow <task description>` - Execute complete development workflow, not automated, starts with multiple solution options, asks for user feedback at each step, allows plan modifications, maximum control
|
|
353
339
|
|
|
354
|
-
> **⚠️ Important Note for Codex Users**: Due to Codex functionality limitations, prompts cannot pass parameters directly. When using `/workflow`, you need to send the workflow command first, wait for AI response, then send your task description in a separate message.
|
|
355
|
-
|
|
356
340
|
> **PS**:
|
|
357
341
|
>
|
|
358
342
|
> - Both feat and workflow have their advantages, try both to compare
|
|
@@ -403,6 +387,50 @@ After configuration:
|
|
|
403
387
|
- AI memory management (v2.0 new)
|
|
404
388
|
- ZCF cache cleanup (v2.0 new)
|
|
405
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
|
+
|
|
406
434
|
## 📖 Usage Instructions
|
|
407
435
|
|
|
408
436
|
### Interactive Menu (v2.0)
|
|
@@ -538,7 +566,7 @@ Enter your choice: _
|
|
|
538
566
|
| `zcf update` | `zcf u` | Update workflow-related md files with backup |
|
|
539
567
|
| `zcf ccu` | - | Run Claude Code usage analysis tool - [ccusage](https://github.com/ryoppippi/ccusage) |
|
|
540
568
|
| `zcf ccr` | - | Open CCR (Claude Code Router) management menu |
|
|
541
|
-
| `zcf config-switch` | `zcf cs` |
|
|
569
|
+
| `zcf config-switch` | `zcf cs` | API provider/config switching for Claude Code and Codex (`-T cc` / `-T cx`) |
|
|
542
570
|
| `zcf uninstall` | - | Interactive uninstall tool for Claude Code configurations and tools |
|
|
543
571
|
| `zcf check-updates` | - | Check and update Claude Code, CCR and CCometixLine versions |
|
|
544
572
|
|
|
@@ -786,6 +814,7 @@ A huge thank you to all our sponsors for their generous support!
|
|
|
786
814
|
- r\*r (first anonymous sponsor🤣)
|
|
787
815
|
- \*\*康 (first KFC sponsor🍗)
|
|
788
816
|
- \*东 (first coffee sponsor☕️)
|
|
817
|
+
- 炼\*3 (first Termux user sponsor📱)
|
|
789
818
|
- 16°C coffee (My best friend🤪, offered Claude Code max $200 package)
|
|
790
819
|
|
|
791
820
|
## 📄 License
|