zcf 3.1.4 → 3.2.1
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 +51 -19
- 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 +397 -160
- 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/mcp.json +2 -0
- package/dist/i18n/locales/en/multi-config.json +72 -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/mcp.json +2 -0
- package/dist/i18n/locales/zh-CN/multi-config.json +72 -0
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -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,12 +117,12 @@ 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` | - |
|
|
124
124
|
| `--api-url, -u` | Custom API URL | URL string | No | official API |
|
|
125
|
-
| `--mcp-services, -m` | MCP services to install (multi-select, comma-separated) | `context7`, `open-websearch`, `spec-workflow`, `mcp-deepwiki`, `Playwright`, `exa`, or `skip` for none | No | `all` |
|
|
125
|
+
| `--mcp-services, -m` | MCP services to install (multi-select, comma-separated) | `context7`, `open-websearch`, `spec-workflow`, `mcp-deepwiki`, `Playwright`, `exa`, `serena`, or `skip` for none | No | `all` |
|
|
126
126
|
| `--workflows, -w` | Workflows to install (multi-select, comma-separated) | `commonTools`, `sixStepsWorkflow`, `featPlanUx`, `gitWorkflow`, `bmadWorkflow`, or `skip` for none | No | `all` |
|
|
127
127
|
| `--output-styles, -o` | Output styles to install (multi-select, comma-separated) | `engineer-professional`, `nekomata-engineer`, `laowang-engineer`, `ojousama-engineer`, or `skip` for none | No | `all` |
|
|
128
128
|
| `--default-output-style, -d` | Default output style | Same as output styles plus built-in: `default`, `explanatory`, `learning` | No | `engineer-professional` |
|
|
@@ -179,6 +179,7 @@ npx zcf → Select 4 # Configure Codex MCP services
|
|
|
179
179
|
4. **MCP Services**: Full compatibility with existing MCP services including:
|
|
180
180
|
- Context7, Open WebSearch, Spec Workflow
|
|
181
181
|
- DeepWiki, Playwright, EXA search
|
|
182
|
+
- Serena Assistant for semantic code retrieval and editing
|
|
182
183
|
- Automatic service configuration with API key management
|
|
183
184
|
|
|
184
185
|
**File Locations:**
|
|
@@ -189,18 +190,6 @@ npx zcf → Select 4 # Configure Codex MCP services
|
|
|
189
190
|
- Workflows: `~/.codex/prompts/`
|
|
190
191
|
- Backups: `~/.codex/backup/`
|
|
191
192
|
|
|
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
193
|
**Migration Between Tools:**
|
|
205
194
|
|
|
206
195
|
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 +291,6 @@ CCR menu options:
|
|
|
302
291
|
|
|
303
292
|
After CCR setup, ZCF automatically configures Claude Code to use CCR as the API proxy.
|
|
304
293
|
|
|
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
294
|
|
|
308
295
|
#### 📊 CCometixLine Support (Status Bar Tool) (v2.9.9+ New)
|
|
309
296
|
|
|
@@ -401,6 +388,50 @@ After configuration:
|
|
|
401
388
|
- AI memory management (v2.0 new)
|
|
402
389
|
- ZCF cache cleanup (v2.0 new)
|
|
403
390
|
|
|
391
|
+
### 🧩 Multi-Configuration Management (v3.2.0 New)
|
|
392
|
+
|
|
393
|
+
Unified, incremental, interactive management for both Claude Code and Codex:
|
|
394
|
+
|
|
395
|
+
- Claude Code: Manage API profiles (add/edit/delete, default profile, duplicate detection)
|
|
396
|
+
- Codex: Manage model providers (list/switch, official login via interactive)
|
|
397
|
+
- Safe backups; prevents deleting the last profile (Claude Code)
|
|
398
|
+
- Applies environment to `~/.claude/settings.json` and restarts CCR when needed
|
|
399
|
+
- Config storage: `~/.ufomiao/zcf/config.toml` (backups `config.backup.YYYY-MM-DD_HH-mm-ss.toml`)
|
|
400
|
+
|
|
401
|
+
Choose tool type explicitly:
|
|
402
|
+
|
|
403
|
+
```bash
|
|
404
|
+
# -T accepts: claude-code|codex or short aliases cc|cx
|
|
405
|
+
npx zcf cs --list -T cc # List Claude Code profiles
|
|
406
|
+
npx zcf cs --list -T cx # List Codex providers
|
|
407
|
+
npx zcf cs -l -T cc # Short option for --list
|
|
408
|
+
npx zcf cs -l -T cx # Short option for --list
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
Claude Code usage:
|
|
412
|
+
|
|
413
|
+
```bash
|
|
414
|
+
# Quick switch
|
|
415
|
+
npx zcf cs official -T cc # Switch to official login
|
|
416
|
+
npx zcf cs ccr -T cc # Switch to CCR proxy
|
|
417
|
+
npx zcf cs my-profile -T cc
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
Codex usage:
|
|
421
|
+
|
|
422
|
+
```bash
|
|
423
|
+
# List and switch providers
|
|
424
|
+
npx zcf cs --list -T cx
|
|
425
|
+
npx zcf cs my-provider -T cx
|
|
426
|
+
|
|
427
|
+
# Switch to official login (interactive selection)
|
|
428
|
+
npx zcf config-switch -T cx
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
Notes:
|
|
432
|
+
- ENV mapping (Claude Code): API Key → `ANTHROPIC_API_KEY`, Auth Token → `ANTHROPIC_AUTH_TOKEN`, Base URL → `ANTHROPIC_BASE_URL`.
|
|
433
|
+
- Active code tool type is stored in ZCF config; use `-T cc/cx` only when targeting a different tool than the current one.
|
|
434
|
+
|
|
404
435
|
## 📖 Usage Instructions
|
|
405
436
|
|
|
406
437
|
### Interactive Menu (v2.0)
|
|
@@ -513,6 +544,7 @@ Enter your choice: _
|
|
|
513
544
|
◉ DeepWiki - Query GitHub repository docs and examples
|
|
514
545
|
◉ Playwright Browser Control - Direct browser automation control
|
|
515
546
|
◉ Exa AI Search - Web search using Exa AI
|
|
547
|
+
◉ Serena Assistant - Semantic code retrieval and editing akin to an IDE
|
|
516
548
|
◯ Install all services
|
|
517
549
|
|
|
518
550
|
✔ MCP services configured
|
|
@@ -536,7 +568,7 @@ Enter your choice: _
|
|
|
536
568
|
| `zcf update` | `zcf u` | Update workflow-related md files with backup |
|
|
537
569
|
| `zcf ccu` | - | Run Claude Code usage analysis tool - [ccusage](https://github.com/ryoppippi/ccusage) |
|
|
538
570
|
| `zcf ccr` | - | Open CCR (Claude Code Router) management menu |
|
|
539
|
-
| `zcf config-switch` | `zcf cs` |
|
|
571
|
+
| `zcf config-switch` | `zcf cs` | API provider/config switching for Claude Code and Codex (`-T cc` / `-T cx`) |
|
|
540
572
|
| `zcf uninstall` | - | Interactive uninstall tool for Claude Code configurations and tools |
|
|
541
573
|
| `zcf check-updates` | - | Check and update Claude Code, CCR and CCometixLine versions |
|
|
542
574
|
|