zcf 3.3.1 β 3.3.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
CHANGED
|
@@ -27,6 +27,15 @@
|
|
|
27
27
|
[](https://share.302.ai/gAT9VG)
|
|
28
28
|
[302.AI](https://share.302.ai/gAT9VG) is a pay-as-you-go enterprise AI resource hub that offers the latest and most comprehensive AI models and APIs on the market, along with a variety of ready-to-use online AI applications.
|
|
29
29
|
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
<table>
|
|
33
|
+
<tr>
|
|
34
|
+
<td width="180"><a href="https://www.packyapi.com/register?aff=zcf"><img src="./src/assets/packycode.png" alt="PackyCode" width="150"></a></td>
|
|
35
|
+
<td>Thanks to PackyCode for sponsoring this project! PackyCode is a reliable and efficient API relay service provider, offering relay services for Claude Code, Codex, Gemini, and more. PackyCode provides special discounts for our software users: register using <a href="https://www.packyapi.com/register?aff=zcf">this link</a> and enter the "zcf" promo code during recharge to get 10% off.</td>
|
|
36
|
+
</tr>
|
|
37
|
+
</table>
|
|
38
|
+
|
|
30
39
|
## π Quick Start
|
|
31
40
|
|
|
32
41
|
### π― Recommended: Use Interactive Menu (v2.0 New)
|
|
@@ -154,6 +163,7 @@ ZCF now supports API provider presets that automatically configure baseUrl and m
|
|
|
154
163
|
|
|
155
164
|
**Supported Providers:**
|
|
156
165
|
- `302ai` - [302.AI](https://share.302.ai/gAT9VG) API Service
|
|
166
|
+
- `packycode` - [PackyCode](https://www.packyapi.com/register?aff=zcf) API Service
|
|
157
167
|
- `glm` - GLM (z.ai)
|
|
158
168
|
- `minimax` - MiniMax API Service
|
|
159
169
|
- `kimi` - Kimi (Moonshot AI)
|
|
@@ -167,6 +177,9 @@ npx zcf i --skip-prompt --provider 302ai --api-key "sk-xxx"
|
|
|
167
177
|
# or shorthand
|
|
168
178
|
npx zcf i -s -p 302ai -k "sk-xxx"
|
|
169
179
|
|
|
180
|
+
# Using PackyCode provider
|
|
181
|
+
npx zcf i -s -p packycode -k "sk-xxx"
|
|
182
|
+
|
|
170
183
|
# Using GLM provider
|
|
171
184
|
npx zcf i -s -p glm -k "sk-xxx"
|
|
172
185
|
|
|
@@ -197,7 +210,7 @@ When using `--skip-prompt`, the following parameters are available:
|
|
|
197
210
|
| Parameter | Description | Values | Required | Default |
|
|
198
211
|
| ---------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
199
212
|
| `--skip-prompt, -s` | Skip all interactive prompts | - | Yes (for non-interactive mode) | - |
|
|
200
|
-
| `--provider, -p` | API provider preset (v3.3.0+ New) | `302ai`, `glm`, `minimax`, `kimi`, `custom`
|
|
213
|
+
| `--provider, -p` | API provider preset (v3.3.0+ New) | `302ai`, `packycode`, `glm`, `minimax`, `kimi`, `custom` | No | - (Simplifies configuration by auto-filling baseUrl and models) |
|
|
201
214
|
| `--lang, -l` | ZCF display language (applies to all commands) | `zh-CN`, `en` | No | `en` or user's saved preference |
|
|
202
215
|
| `--config-lang, -c` | Configuration language (template files language) | `zh-CN`, `en` | No | `en` |
|
|
203
216
|
| `--ai-output-lang, -a` | AI output language | `zh-CN`, `en`, custom string | No | `en` |
|
|
@@ -289,7 +302,7 @@ ZCF now supports customizable AI output styles to personalize your Claude Code e
|
|
|
289
302
|
|
|
290
303
|
<p align="center">
|
|
291
304
|
<a href="https://github.com/Haleclipse">
|
|
292
|
-
<img src="./src/assets/Haleclipse.
|
|
305
|
+
<img src="./src/assets/Haleclipse.webp" alt="Halley-chan" width="200"/>
|
|
293
306
|
</a>
|
|
294
307
|
<div align="center">Tsundere <a href="https://github.com/Haleclipse">Halley-chan</a> Ojou-sama (οΏ£β½οΏ£)γ</div>
|
|
295
308
|
</p>
|
|
@@ -473,6 +486,7 @@ ZCF provides flexible API configuration options for both Claude Code and Codex:
|
|
|
473
486
|
|
|
474
487
|
Choose from popular API providers with pre-configured settings:
|
|
475
488
|
- **302.AI** - Pay-as-you-go AI service with comprehensive model support
|
|
489
|
+
- **PackyCode** - PackyCode API Service
|
|
476
490
|
- **GLM (ζΊθ°±AI)** - Zhipu AI's GLM models
|
|
477
491
|
- **MiniMax** - MiniMax AI service
|
|
478
492
|
- **Kimi (Moonshot AI)** - Moonshot's Kimi models
|
|
@@ -930,6 +944,7 @@ If you find this project helpful, please consider sponsoring its development. Yo
|
|
|
930
944
|
|
|
931
945
|
A huge thank you to all our sponsors for their generous support!
|
|
932
946
|
- [302.AI](https://share.302.ai/gAT9VG) (first corporate sponsorship π€ )
|
|
947
|
+
- [PackyCode](https://www.packyapi.com/register?aff=zcf) (first API proxy service sponsor π§π»ββοΈ)
|
|
933
948
|
- Tc (first sponsor)
|
|
934
949
|
- Argolinhas (first ko-fi sponsor Ω©(β’Μ€Μα΅β’Μ€ΜΰΉ))
|
|
935
950
|
- r\*r (first anonymous sponsor π€£)
|
|
@@ -939,6 +954,7 @@ A huge thank you to all our sponsors for their generous support!
|
|
|
939
954
|
- [chamo101](https://github.com/chamo101) (first GitHub issue sponsor π)
|
|
940
955
|
- εε±Ώθ΄€ (first Codex user sponsor π
π»ββοΈ)
|
|
941
956
|
- Protein (first 1688 sponsor π)
|
|
957
|
+
- [musistudio](https://github.com/musistudio) (first open source project author sponsor, the author of [CCR](https://github.com/musistudio/claude-code-router) π€©)
|
|
942
958
|
- [BeatSeat](https://github.com/BeatSeat) (community expert π, provided $1000 Claude credits)
|
|
943
959
|
- [wenwen](https://github.com/wenwen12345) (community expert π€, provided daily $100 Claude&GPT credits)
|
|
944
960
|
- 16Β°C coffee (My best friend π€ͺ, offered ChatGPT Pro $200 package)
|
|
@@ -13,6 +13,20 @@ const API_PROVIDER_PRESETS = [
|
|
|
13
13
|
},
|
|
14
14
|
description: "302.AI API Service"
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
id: "packycode",
|
|
18
|
+
name: "PackyCode",
|
|
19
|
+
supportedCodeTools: ["claude-code", "codex"],
|
|
20
|
+
claudeCode: {
|
|
21
|
+
baseUrl: "https://www.packyapi.com",
|
|
22
|
+
authType: "auth_token"
|
|
23
|
+
},
|
|
24
|
+
codex: {
|
|
25
|
+
baseUrl: "https://www.packyapi.com/v1",
|
|
26
|
+
wireApi: "responses"
|
|
27
|
+
},
|
|
28
|
+
description: "PackyCode API Service"
|
|
29
|
+
},
|
|
16
30
|
{
|
|
17
31
|
id: "glm",
|
|
18
32
|
name: "GLM",
|
|
@@ -49,14 +63,13 @@ const API_PROVIDER_PRESETS = [
|
|
|
49
63
|
name: "Kimi",
|
|
50
64
|
supportedCodeTools: ["claude-code", "codex"],
|
|
51
65
|
claudeCode: {
|
|
52
|
-
baseUrl: "https://api.
|
|
53
|
-
authType: "auth_token"
|
|
54
|
-
defaultModels: ["kimi-k2-0905-preview", "kimi-k2-turbo-preview"]
|
|
66
|
+
baseUrl: "https://api.kimi.com/coding/",
|
|
67
|
+
authType: "auth_token"
|
|
55
68
|
},
|
|
56
69
|
codex: {
|
|
57
|
-
baseUrl: "https://api.
|
|
70
|
+
baseUrl: "https://api.kimi.com/coding/v1",
|
|
58
71
|
wireApi: "chat",
|
|
59
|
-
defaultModel: "kimi-
|
|
72
|
+
defaultModel: "kimi-for-coding"
|
|
60
73
|
},
|
|
61
74
|
description: "Kimi (Moonshot AI)"
|
|
62
75
|
}
|
|
@@ -103,11 +103,13 @@ ${i18n.t("multi-config:addingNewProfile")}`));
|
|
|
103
103
|
}]);
|
|
104
104
|
let prefilledBaseUrl;
|
|
105
105
|
let prefilledAuthType;
|
|
106
|
+
let prefilledDefaultModels;
|
|
106
107
|
if (selectedProvider !== "custom") {
|
|
107
108
|
const provider = providers.find((p) => p.id === selectedProvider);
|
|
108
109
|
if (provider?.claudeCode) {
|
|
109
110
|
prefilledBaseUrl = provider.claudeCode.baseUrl;
|
|
110
111
|
prefilledAuthType = provider.claudeCode.authType;
|
|
112
|
+
prefilledDefaultModels = provider.claudeCode.defaultModels;
|
|
111
113
|
console.log(ansis.gray(i18n.t("api:providerSelected", { name: provider.name })));
|
|
112
114
|
}
|
|
113
115
|
}
|
|
@@ -208,6 +210,13 @@ ${i18n.t("multi-config:addingNewProfile")}`));
|
|
|
208
210
|
if (modelConfig.fastModel.trim()) {
|
|
209
211
|
profile.fastModel = modelConfig.fastModel.trim();
|
|
210
212
|
}
|
|
213
|
+
} else if (prefilledDefaultModels?.length) {
|
|
214
|
+
if (prefilledDefaultModels[0]?.trim()) {
|
|
215
|
+
profile.primaryModel = prefilledDefaultModels[0].trim();
|
|
216
|
+
}
|
|
217
|
+
if (prefilledDefaultModels[1]?.trim()) {
|
|
218
|
+
profile.fastModel = prefilledDefaultModels[1].trim();
|
|
219
|
+
}
|
|
211
220
|
}
|
|
212
221
|
const existingProfile = ClaudeCodeConfigManager.getProfileByName(profile.name);
|
|
213
222
|
if (existingProfile) {
|
|
@@ -16,7 +16,7 @@ import { rm, mkdir, copyFile as copyFile$1 } from 'node:fs/promises';
|
|
|
16
16
|
import i18next from 'i18next';
|
|
17
17
|
import Backend from 'i18next-fs-backend';
|
|
18
18
|
|
|
19
|
-
const version = "3.3.
|
|
19
|
+
const version = "3.3.2";
|
|
20
20
|
const homepage = "https://github.com/UfoMiao/zcf";
|
|
21
21
|
|
|
22
22
|
const i18n = i18next.createInstance();
|
|
@@ -1360,11 +1360,6 @@ function switchToOfficialLogin$1() {
|
|
|
1360
1360
|
delete vscConfig.primaryApiKey;
|
|
1361
1361
|
writeJsonConfig(CLAUDE_VSC_CONFIG_FILE, vscConfig);
|
|
1362
1362
|
}
|
|
1363
|
-
const mcpConfig = readMcpConfig();
|
|
1364
|
-
if (mcpConfig) {
|
|
1365
|
-
delete mcpConfig.hasCompletedOnboarding;
|
|
1366
|
-
writeMcpConfig(mcpConfig);
|
|
1367
|
-
}
|
|
1368
1363
|
console.log(i18n.t("api:officialLoginConfigured"));
|
|
1369
1364
|
return true;
|
|
1370
1365
|
} catch (error) {
|
package/dist/index.d.mts
CHANGED
|
@@ -173,7 +173,6 @@ declare function applyAiLanguageDirective(aiOutputLang: AiOutputLanguage | strin
|
|
|
173
173
|
* Switch to official login mode - remove all third-party API configurations
|
|
174
174
|
* Removes: ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_API_KEY from settings.json
|
|
175
175
|
* Removes: primaryApiKey from ~/.claude/config.json
|
|
176
|
-
* Removes: hasCompletedOnboarding from ~/.claude.json
|
|
177
176
|
*/
|
|
178
177
|
declare function switchToOfficialLogin(): boolean;
|
|
179
178
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -173,7 +173,6 @@ declare function applyAiLanguageDirective(aiOutputLang: AiOutputLanguage | strin
|
|
|
173
173
|
* Switch to official login mode - remove all third-party API configurations
|
|
174
174
|
* Removes: ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_API_KEY from settings.json
|
|
175
175
|
* Removes: primaryApiKey from ~/.claude/config.json
|
|
176
|
-
* Removes: hasCompletedOnboarding from ~/.claude.json
|
|
177
176
|
*/
|
|
178
177
|
declare function switchToOfficialLogin(): boolean;
|
|
179
178
|
/**
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcf",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.3.
|
|
5
|
-
"description": "Zero-Config Code Flow - One-click configuration tool for
|
|
4
|
+
"version": "3.3.2",
|
|
5
|
+
"description": "Zero-Config Code Flow - One-click configuration tool for Code Cli",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Miao Da",
|
|
8
8
|
"email": "ufo025174@gmail.com",
|
|
@@ -18,12 +18,15 @@
|
|
|
18
18
|
"keywords": [
|
|
19
19
|
"claude",
|
|
20
20
|
"claude-code",
|
|
21
|
+
"codex",
|
|
21
22
|
"config",
|
|
22
23
|
"cli",
|
|
23
24
|
"setup",
|
|
24
25
|
"zero-config",
|
|
25
26
|
"zcf",
|
|
26
27
|
"anthropic",
|
|
28
|
+
"openai",
|
|
29
|
+
"ChatGPT",
|
|
27
30
|
"ai",
|
|
28
31
|
"automation",
|
|
29
32
|
"mcp"
|
|
@@ -99,6 +102,9 @@
|
|
|
99
102
|
"update:deps": "pnpx taze major -r -w",
|
|
100
103
|
"release": "pnpm build && changeset publish",
|
|
101
104
|
"commitlint": "commitlint",
|
|
102
|
-
"commitlint:check": "commitlint --from HEAD~1 --to HEAD --verbose"
|
|
105
|
+
"commitlint:check": "commitlint --from HEAD~1 --to HEAD --verbose",
|
|
106
|
+
"docs:dev": "pnpm -F @zcf/docs dev",
|
|
107
|
+
"docs:build": "pnpm -F @zcf/docs build",
|
|
108
|
+
"docs:preview": "pnpm -F @zcf/docs preview"
|
|
103
109
|
}
|
|
104
110
|
}
|