zcf 1.1.1 → 1.1.2
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 +9 -11
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{zcf.CUoxYhz9.mjs → zcf.3cK6W2AW.mjs} +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,16 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
> 零配置,一键搞定 Claude Code 环境设置 - 支持中英文双语配置和智能代理系统
|
|
6
6
|
|
|
7
|
+

|
|
8
|
+
|
|
7
9
|
## 🚀 快速开始
|
|
8
10
|
|
|
9
11
|
### 根据你的情况选择:
|
|
10
12
|
|
|
11
13
|
#### 🆕 首次使用 Claude Code
|
|
14
|
+
|
|
12
15
|
```bash
|
|
13
|
-
npx zcf # 完整初始化:安装 Claude Code + 配置 API + 设置 MCP 服务
|
|
16
|
+
npx zcf # 完整初始化:安装 Claude Code + 导入工作流 + 配置 API + 设置 MCP 服务
|
|
14
17
|
```
|
|
15
18
|
|
|
16
19
|
#### 🔄 已有 Claude Code 环境
|
|
20
|
+
|
|
17
21
|
```bash
|
|
18
22
|
npx zcf u # 仅导入工作流:快速添加 AI 工作流和命令系统
|
|
19
23
|
```
|
|
@@ -133,9 +137,9 @@ $ npx zcf
|
|
|
133
137
|
|
|
134
138
|
#### 命令速查表
|
|
135
139
|
|
|
136
|
-
| 命令 | 缩写 | 说明
|
|
137
|
-
| ------------ | ------- |
|
|
138
|
-
| `zcf` | - | 初始化配置(默认命令)
|
|
140
|
+
| 命令 | 缩写 | 说明 |
|
|
141
|
+
| ------------ | ------- | ---------------------------- |
|
|
142
|
+
| `zcf` | - | 初始化配置(默认命令) |
|
|
139
143
|
| `zcf update` | `zcf u` | 更新 Prompt 文档并备份旧配置 |
|
|
140
144
|
|
|
141
145
|
#### 常用选项
|
|
@@ -233,12 +237,6 @@ claude-code-config/
|
|
|
233
237
|
5. **[模式:优化]** - 提升质量
|
|
234
238
|
6. **[模式:评审]** - 最终评估
|
|
235
239
|
|
|
236
|
-
## ⚙️ 支持的模型
|
|
237
|
-
|
|
238
|
-
- **opus**:最强大,适合复杂任务
|
|
239
|
-
- **sonnet**:平衡性能和成本
|
|
240
|
-
- **haiku**:快速轻量级模型
|
|
241
|
-
|
|
242
240
|
## 🛠️ 开发
|
|
243
241
|
|
|
244
242
|
```bash
|
|
@@ -260,7 +258,7 @@ node bin/zcf.mjs
|
|
|
260
258
|
|
|
261
259
|
1. **任务分解**:保持任务独立可测试
|
|
262
260
|
2. **代码质量**:遵循 SOLID、KISS、DRY 和 YAGNI 原则
|
|
263
|
-
3.
|
|
261
|
+
3. **文档管理**:计划存储在项目根目录的`.claude/plan/` 目录下
|
|
264
262
|
|
|
265
263
|
## 🔧 故障排除
|
|
266
264
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import ansis from 'ansis';
|
|
4
|
-
import { s as displayBanner, t as readZcfConfig, b as SUPPORTED_LANGS, L as LANG_LABELS, u as updateZcfConfig, v as version, I as I18N, S as SETTINGS_FILE, x as updatePromptOnly, i as init } from './shared/zcf.
|
|
4
|
+
import { s as displayBanner, t as readZcfConfig, b as SUPPORTED_LANGS, L as LANG_LABELS, u as updateZcfConfig, v as version, I as I18N, S as SETTINGS_FILE, x as updatePromptOnly, i as init } from './shared/zcf.3cK6W2AW.mjs';
|
|
5
5
|
import prompts from '@posva/prompts';
|
|
6
6
|
import { existsSync } from 'node:fs';
|
|
7
7
|
import 'node:os';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CLAUDE_DIR, a as CLAUDE_MD_FILE, I as I18N, L as LANG_LABELS, M as MCP_CONFIG_FILE, d as MCP_SERVICES, S as SETTINGS_FILE, b as SUPPORTED_LANGS, Z as ZCF_CONFIG_FILE, j as backupExistingConfig, o as backupMcpConfig, q as buildMcpServerConfig, c as commandExists, l as configureApi, k as copyConfigFiles, h as ensureClaudeDir, n as getMcpConfigPath, g as getPlatform, i as init, f as installClaudeCode, e as isClaudeCodeInstalled, m as mergeConfigs, p as mergeMcpServers, r as readMcpConfig, w as writeMcpConfig } from './shared/zcf.
|
|
1
|
+
export { C as CLAUDE_DIR, a as CLAUDE_MD_FILE, I as I18N, L as LANG_LABELS, M as MCP_CONFIG_FILE, d as MCP_SERVICES, S as SETTINGS_FILE, b as SUPPORTED_LANGS, Z as ZCF_CONFIG_FILE, j as backupExistingConfig, o as backupMcpConfig, q as buildMcpServerConfig, c as commandExists, l as configureApi, k as copyConfigFiles, h as ensureClaudeDir, n as getMcpConfigPath, g as getPlatform, i as init, f as installClaudeCode, e as isClaudeCodeInstalled, m as mergeConfigs, p as mergeMcpServers, r as readMcpConfig, w as writeMcpConfig } from './shared/zcf.3cK6W2AW.mjs';
|
|
2
2
|
import '@posva/prompts';
|
|
3
3
|
import 'ansis';
|
|
4
4
|
import 'node:fs';
|
|
@@ -6,7 +6,7 @@ import { join, dirname } from 'pathe';
|
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
import { exec } from 'tinyexec';
|
|
8
8
|
|
|
9
|
-
const version = "1.1.
|
|
9
|
+
const version = "1.1.2";
|
|
10
10
|
|
|
11
11
|
const CLAUDE_DIR = join(homedir(), ".claude");
|
|
12
12
|
const SETTINGS_FILE = join(CLAUDE_DIR, "settings.json");
|
|
@@ -191,7 +191,7 @@ function displayBanner(subtitle) {
|
|
|
191
191
|
\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
|
|
192
192
|
\u2551 \u2551
|
|
193
193
|
\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2551
|
|
194
|
-
\u2551
|
|
194
|
+
\u2551 \u2588\u2588\u2554\u255D \u2588\u2588\u2554\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2550\u255D \u2551
|
|
195
195
|
\u2551 \u2588\u2588\u2554\u255D \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2557 \u2551
|
|
196
196
|
\u2551 \u2588\u2588\u2554\u255D \u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u255D \u2551
|
|
197
197
|
\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551 \u2551
|
package/package.json
CHANGED