zcf 3.0.1 → 3.0.3
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 +28 -46
- package/dist/chunks/codex-config-switch.mjs +4 -4
- package/dist/chunks/codex-uninstaller.mjs +1 -1
- package/dist/chunks/simple-config.mjs +328 -110
- package/dist/cli.mjs +79 -89
- package/dist/i18n/locales/en/api.json +12 -1
- package/dist/i18n/locales/en/configuration.json +1 -1
- package/dist/i18n/locales/en/errors.json +1 -1
- package/dist/i18n/locales/en/mcp.json +2 -1
- package/dist/i18n/locales/en/menu.json +1 -1
- package/dist/i18n/locales/zh-CN/api.json +12 -1
- package/dist/i18n/locales/zh-CN/configuration.json +1 -1
- package/dist/i18n/locales/zh-CN/errors.json +1 -1
- package/dist/i18n/locales/zh-CN/mcp.json +2 -1
- package/dist/i18n/locales/zh-CN/menu.json +1 -1
- package/dist/index.d.mts +25 -4
- package/dist/index.d.ts +25 -4
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/templates/claude-code/common/settings.json +0 -2
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Menu options include:
|
|
|
30
30
|
- `2` Import workflows (equivalent to `zcf u`)
|
|
31
31
|
- `3` Configure API or CCR - API configuration or CCR proxy setup
|
|
32
32
|
- `4` Configure MCP - MCP service configuration and management
|
|
33
|
-
- `5` Configure default model - Set default model (opus/sonnet/
|
|
33
|
+
- `5` Configure default model - Set default model (opus/sonnet/sonnet 1m/custom)
|
|
34
34
|
- `6` Configure AI memory - Configure AI output language and global output style
|
|
35
35
|
- `7` Configure environment permissions - Import environment variables and permissions
|
|
36
36
|
- `R` Claude Code Router management (enhanced in v2.8.1)
|
|
@@ -44,7 +44,7 @@ Menu options include:
|
|
|
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
46
|
- **Opus**: Use Claude-3.5-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
|
|
|
50
50
|
**AI Memory Configuration (Option 6)**: Personalize your AI assistant:
|
|
@@ -421,7 +421,7 @@ Select function:
|
|
|
421
421
|
2. Import workflow - Import/update workflow-related files only
|
|
422
422
|
3. Configure API - Configure API URL and authentication (supports CCR proxy)
|
|
423
423
|
4. Configure MCP - Configure MCP services (includes Windows fix)
|
|
424
|
-
5. Configure default model - Set default model (opus/sonnet/
|
|
424
|
+
5. Configure default model - Set default model (opus/sonnet/sonnet 1m/custom)
|
|
425
425
|
6. Configure Claude global memory - Configure AI output language and output styles
|
|
426
426
|
7. Import recommended environment variables and permissions - Import privacy protection environment variables and system permissions
|
|
427
427
|
|
|
@@ -443,15 +443,17 @@ Enter your choice: _
|
|
|
443
443
|
|
|
444
444
|
```bash
|
|
445
445
|
? Select Claude Code configuration language:
|
|
446
|
-
❯
|
|
447
|
-
|
|
446
|
+
❯ English (en) - English (recommended, lower token consumption)
|
|
447
|
+
简体中文 (zh-CN) - Chinese (easier for Chinese users to customize)
|
|
448
|
+
日本語 (ja) - Japanese (日本のユーザー向け)
|
|
448
449
|
|
|
449
450
|
? Select AI output language:
|
|
450
451
|
AI will respond to you in this language
|
|
451
|
-
❯
|
|
452
|
-
|
|
452
|
+
❯ English
|
|
453
|
+
简体中文
|
|
454
|
+
日本語
|
|
453
455
|
Custom
|
|
454
|
-
(Supports
|
|
456
|
+
(Supports French, German, and more)
|
|
455
457
|
|
|
456
458
|
? Claude Code not found. Install automatically? (Y/n)
|
|
457
459
|
|
|
@@ -464,12 +466,14 @@ Enter your choice: _
|
|
|
464
466
|
Skip - Skip configuration update
|
|
465
467
|
|
|
466
468
|
? Select API authentication method
|
|
467
|
-
❯ Use
|
|
469
|
+
❯ Use Official Login
|
|
470
|
+
Use official authentication system without API configuration
|
|
471
|
+
Use Auth Token (OAuth authentication)
|
|
468
472
|
For tokens obtained via OAuth or browser login
|
|
469
473
|
Use API Key (Key authentication)
|
|
470
474
|
For API keys from Anthropic Console
|
|
471
475
|
Configure CCR Proxy (Claude Code Router)
|
|
472
|
-
Use
|
|
476
|
+
Use multiple AI models via proxy routing to reduce costs and explore possibilities
|
|
473
477
|
Skip (configure manually later)
|
|
474
478
|
|
|
475
479
|
? Enter API URL: https://api.anthropic.com
|
|
@@ -483,30 +487,7 @@ Enter your choice: _
|
|
|
483
487
|
? Select global default output style:
|
|
484
488
|
❯ Engineer Professional
|
|
485
489
|
|
|
486
|
-
?
|
|
487
|
-
|
|
488
|
-
? Select MCP services to install:
|
|
489
|
-
❯ context7 - Get latest library and framework documentation
|
|
490
|
-
mcp-deepwiki - Access deepwiki.com knowledge base
|
|
491
|
-
Playwright - Browser automation and web testing
|
|
492
|
-
exa - Advanced search and enterprise research tools
|
|
493
|
-
|
|
494
|
-
? Select workflows to install:
|
|
495
|
-
❯ Common Tools Workflow - init-project and related agents
|
|
496
|
-
Six Steps Workflow - Complete six-stage development process
|
|
497
|
-
Feature Planning UX - Complete feature development lifecycle
|
|
498
|
-
Git Workflow - Git operations and branch management
|
|
499
|
-
BMad Workflow - AI-driven agile development methodology
|
|
500
|
-
|
|
501
|
-
? Install CCometixLine statusline tool? (Y/n)
|
|
502
|
-
|
|
503
|
-
✔ Setup complete! Claude Code environment is ready
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
✔ All config files backed up to ~/.claude/backup/xxx
|
|
507
|
-
✔ Config files copied to ~/.claude
|
|
508
|
-
|
|
509
|
-
? Select workflows to install (space to select, enter to confirm)
|
|
490
|
+
? Select workflows to install (space to select, enter to confirm):
|
|
510
491
|
❯ ◉ Common Tools (init-project + init-architect + get-current-datetime) - Essential project initialization and utility commands
|
|
511
492
|
◉ Six Steps Workflow (workflow) - Complete 6-phase development process
|
|
512
493
|
◉ Feature Planning and UX Design (feat + planner + ui-ux-designer) - Structured feature development
|
|
@@ -525,24 +506,24 @@ Enter your choice: _
|
|
|
525
506
|
✔ Installed command: zcf/bmad-init.md
|
|
526
507
|
✔ Workflow installation successful
|
|
527
508
|
|
|
528
|
-
✔ API configured
|
|
529
|
-
|
|
530
509
|
? Configure MCP services? (Y/n)
|
|
531
510
|
|
|
532
|
-
? Select MCP services to install (space to select, enter to confirm)
|
|
533
|
-
❯
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
◯
|
|
538
|
-
|
|
539
|
-
? Enter Exa API Key (get from https://dashboard.exa.ai/api-keys)
|
|
511
|
+
? Select MCP services to install (space to select, enter to confirm):
|
|
512
|
+
❯ ◉ Context7 Documentation Query - Query latest library docs and code examples
|
|
513
|
+
◉ DeepWiki - Query GitHub repository docs and examples
|
|
514
|
+
◉ Playwright Browser Control - Direct browser automation control
|
|
515
|
+
◉ Exa AI Search - Web search using Exa AI
|
|
516
|
+
◯ Install all services
|
|
540
517
|
|
|
541
518
|
✔ MCP services configured
|
|
542
519
|
|
|
520
|
+
? Install CCometixLine statusline tool? (Y/n)
|
|
521
|
+
|
|
522
|
+
✔ Setup complete! Claude Code environment is ready
|
|
523
|
+
|
|
543
524
|
🎉 Setup complete! Use 'claude' command to start.
|
|
544
525
|
|
|
545
|
-
|
|
526
|
+
```
|
|
546
527
|
|
|
547
528
|
### Command Line Options
|
|
548
529
|
|
|
@@ -581,7 +562,7 @@ npx zcf -h
|
|
|
581
562
|
# Show version
|
|
582
563
|
npx zcf --version
|
|
583
564
|
npx zcf -v
|
|
584
|
-
|
|
565
|
+
```
|
|
585
566
|
|
|
586
567
|
#### Usage Examples
|
|
587
568
|
|
|
@@ -802,6 +783,7 @@ A huge thank you to all our sponsors for their generous support!
|
|
|
802
783
|
- Argolinhas (first ko-fi sponsor ٩(•̤̀ᵕ•̤́๑))
|
|
803
784
|
- r\*r (first anonymous sponsor🤣)
|
|
804
785
|
- \*\*康 (first KFC sponsor🍗)
|
|
786
|
+
- \*东 (first coffee sponsor☕️)
|
|
805
787
|
- 16°C coffee (My best friend🤪, offered Claude Code max $200 package)
|
|
806
788
|
|
|
807
789
|
## 📄 License
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
import inquirer from 'inquirer';
|
|
3
|
-
import {
|
|
3
|
+
import { a1 as readCodexConfig, a2 as backupCodexComplete, a3 as writeCodexConfig, a4 as writeAuthFile, a5 as ensureI18nInitialized, a6 as detectConfigManagementMode, a0 as i18n, a7 as addNumbersToChoices } from './simple-config.mjs';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:process';
|
|
6
6
|
import 'node:child_process';
|
|
@@ -206,7 +206,7 @@ async function configureIncrementalManagement() {
|
|
|
206
206
|
{ name: i18n.t("codex:addProvider"), value: "add" },
|
|
207
207
|
{ name: i18n.t("codex:editProvider"), value: "edit" },
|
|
208
208
|
{ name: i18n.t("codex:deleteProvider"), value: "delete" },
|
|
209
|
-
{ name: i18n.t("common:
|
|
209
|
+
{ name: i18n.t("common:skip"), value: "skip" }
|
|
210
210
|
];
|
|
211
211
|
const { action } = await inquirer.prompt([{
|
|
212
212
|
type: "list",
|
|
@@ -214,8 +214,8 @@ async function configureIncrementalManagement() {
|
|
|
214
214
|
message: i18n.t("codex:selectAction"),
|
|
215
215
|
choices: addNumbersToChoices(choices)
|
|
216
216
|
}]);
|
|
217
|
-
if (!action || action === "
|
|
218
|
-
console.log(ansis.yellow(i18n.t("common:
|
|
217
|
+
if (!action || action === "skip") {
|
|
218
|
+
console.log(ansis.yellow(i18n.t("common:skip")));
|
|
219
219
|
return;
|
|
220
220
|
}
|
|
221
221
|
switch (action) {
|
|
@@ -2,7 +2,7 @@ import { homedir } from 'node:os';
|
|
|
2
2
|
import { pathExists } from 'fs-extra';
|
|
3
3
|
import { join } from 'pathe';
|
|
4
4
|
import { exec } from 'tinyexec';
|
|
5
|
-
import {
|
|
5
|
+
import { a0 as i18n } from './simple-config.mjs';
|
|
6
6
|
import { m as moveToTrash } from '../shared/zcf.DGjQxTq_.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:process';
|