zcf 3.0.0 → 3.0.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 CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
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)
14
14
 
15
- > Zero-config, one-click setup for Claude Code with bilingual support, intelligent agent system and personalized AI assistant
15
+ > Zero-config, one-click setup for Claude Code & Codex with bilingual support, intelligent agent system and personalized AI assistant
16
16
 
17
17
  ![Rendering](./src/assets/screenshot-en.webp)
18
18
 
@@ -174,6 +174,7 @@ npx zcf → Select 4 # Configure Codex MCP services
174
174
  3. **Workflow Integration**:
175
175
  - **Six-Step Workflow**: Structured development process from research to optimization
176
176
  - **Custom Workflows**: Import and configure task-specific development templates
177
+ - **⚠️ Important**: Due to Codex prompt limitations, `/workflow` commands cannot pass parameters directly. Use `/workflow` first, then provide task description in follow-up message
177
178
 
178
179
  4. **MCP Services**: Full compatibility with existing MCP services including:
179
180
  - Context7, Open WebSearch, Spec Workflow
@@ -349,6 +350,8 @@ After configuration:
349
350
  - `/feat <task description>` - Start new feature development, divided into plan and UI phases
350
351
  - `/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
351
352
 
353
+ > **⚠️ 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.
354
+
352
355
  > **PS**:
353
356
  >
354
357
  > - Both feat and workflow have their advantages, try both to compare
@@ -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.0.0";
19
+ const version = "3.0.1";
20
20
  const homepage = "https://github.com/UfoMiao/zcf";
21
21
 
22
22
  const i18n = i18next.createInstance();
@@ -3095,6 +3095,7 @@ function createApiConfigChoices(providers, currentProvider, isCommented) {
3095
3095
  async function configureCodexApi() {
3096
3096
  ensureI18nInitialized();
3097
3097
  const existingConfig = readCodexConfig();
3098
+ const existingAuth = readJsonConfig(CODEX_AUTH_FILE, { defaultValue: {} }) || {};
3098
3099
  const hasProviders = existingConfig?.providers && existingConfig.providers.length > 0;
3099
3100
  const modeChoices = [
3100
3101
  { name: i18n.t("codex:apiModeOfficial"), value: "official" },
@@ -3265,6 +3266,13 @@ async function configureCodexApi() {
3265
3266
  choices: addNumbersToChoices(toProvidersList(providers)),
3266
3267
  default: existingConfig?.modelProvider || providers[0].id
3267
3268
  }]);
3269
+ const selectedProvider = providers.find((provider) => provider.id === defaultProvider);
3270
+ if (selectedProvider) {
3271
+ const envKey = selectedProvider.envKey;
3272
+ const defaultApiKey = authEntries[envKey] ?? existingAuth[envKey] ?? null;
3273
+ if (defaultApiKey)
3274
+ authEntries.OPENAI_API_KEY = defaultApiKey;
3275
+ }
3268
3276
  writeCodexConfig({
3269
3277
  model: existingConfig?.model || null,
3270
3278
  modelProvider: defaultProvider,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zcf",
3
3
  "type": "module",
4
- "version": "3.0.0",
4
+ "version": "3.0.1",
5
5
  "description": "Zero-Config Code Flow - One-click configuration tool for Claude Code",
6
6
  "author": {
7
7
  "name": "Miao Da",