zcf 2.9.10 → 2.9.11

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.
@@ -15,7 +15,7 @@ import { promisify as promisify$1 } from 'node:util';
15
15
  import { homedir, platform } from 'node:os';
16
16
  import { join as join$1 } from 'node:path';
17
17
 
18
- const version = "2.9.10";
18
+ const version = "2.9.11";
19
19
  const homepage = "https://github.com/UfoMiao/zcf";
20
20
 
21
21
  const common$1 = {
@@ -131,7 +131,9 @@ const configuration$1 = {
131
131
  currentModel: "\u5F53\u524D\u6A21\u578B",
132
132
  modifyModel: "\u662F\u5426\u4FEE\u6539\u6A21\u578B\u914D\u7F6E\uFF1F",
133
133
  keepModel: "\u4FDD\u6301\u5F53\u524D\u6A21\u578B\u914D\u7F6E",
134
- defaultModelOption: "\u9ED8\u8BA4\uFF08\u8BA9 Claude Code \u81EA\u52A8\u9009\u62E9\uFF09",
134
+ defaultModelOption: "\u9ED8\u8BA4 - \u8BA9 Claude Code \u81EA\u52A8\u9009\u62E9",
135
+ opusModelOption: "Opus - \u53EA\u7528opus\uFF0Ctoken\u6D88\u8017\u9AD8\uFF0C\u614E\u7528",
136
+ opusPlanModelOption: "OpusPlan - Opus\u505A\u8BA1\u5212\uFF0Csonnet\u7F16\u5199\u4EE3\u7801\uFF0C\u63A8\u8350",
135
137
  modelConfigured: "\u9ED8\u8BA4\u6A21\u578B\u5DF2\u914D\u7F6E",
136
138
  // AI memory configuration
137
139
  selectMemoryOption: "\u9009\u62E9\u914D\u7F6E\u9009\u9879",
@@ -637,7 +639,9 @@ const configuration = {
637
639
  currentModel: "Current model",
638
640
  modifyModel: "Modify model configuration?",
639
641
  keepModel: "Keeping existing model configuration",
640
- defaultModelOption: "Default (Let Claude Code choose)",
642
+ defaultModelOption: "Default - Let Claude Code choose",
643
+ opusModelOption: "Opus - Only use opus, high token consumption, use with caution",
644
+ opusPlanModelOption: "OpusPlan - Use Opus for planning, write code with sonnet, recommended",
641
645
  modelConfigured: "Default model configured",
642
646
  // AI memory configuration
643
647
  selectMemoryOption: "Select configuration option",
@@ -2952,14 +2956,14 @@ async function selectCcrPreset(scriptLang) {
2952
2956
  }
2953
2957
  try {
2954
2958
  const choices = [
2955
- ...presets.map((p, index) => ({
2956
- name: `${index + 1}. ${p.name}`,
2957
- value: p
2958
- })),
2959
2959
  {
2960
- name: `${presets.length + 1}. ${i18n.ccr.skipOption}`,
2960
+ name: `1. ${i18n.ccr.skipOption}`,
2961
2961
  value: "skip"
2962
- }
2962
+ },
2963
+ ...presets.map((p, index) => ({
2964
+ name: `${index + 2}. ${p.name}`,
2965
+ value: p
2966
+ }))
2963
2967
  ];
2964
2968
  const { preset } = await inquirer.prompt({
2965
2969
  type: "list",
package/dist/cli.mjs CHANGED
@@ -239,13 +239,19 @@ async function configureDefaultModelFeature(scriptLang) {
239
239
  message: i18n.configuration.selectDefaultModel || "Select default model",
240
240
  choices: addNumbersToChoices([
241
241
  {
242
- name: i18n.configuration.defaultModelOption || "Default (Let Claude Code choose)",
242
+ name: i18n.configuration.defaultModelOption || "Default - Let Claude Code choose",
243
243
  value: "default"
244
244
  },
245
- { name: "Opus", value: "opus" },
246
- { name: "Sonnet", value: "sonnet" }
245
+ {
246
+ name: i18n.configuration.opusModelOption || "Opus - Only use opus, high token consumption, use with caution",
247
+ value: "opus"
248
+ },
249
+ {
250
+ name: i18n.configuration.opusPlanModelOption || "OpusPlan - Use Opus for planning, write code with sonnet, recommended",
251
+ value: "opusplan"
252
+ }
247
253
  ]),
248
- default: existingModel ? ["opus", "sonnet", "default"].indexOf(existingModel) : 2
254
+ default: existingModel ? ["default", "opus", "opusplan"].indexOf(existingModel) : 0
249
255
  });
250
256
  if (!model) {
251
257
  handleCancellation(scriptLang);
@@ -259,7 +265,7 @@ async function configureAiMemoryFeature(scriptLang) {
259
265
  const { option } = await inquirer.prompt({
260
266
  type: "list",
261
267
  name: "option",
262
- message: "Select configuration option",
268
+ message: i18n.configuration.selectMemoryOption || "Select configuration option",
263
269
  choices: addNumbersToChoices([
264
270
  {
265
271
  name: i18n.configuration.configureAiLanguage || "Configure AI output language",
package/dist/index.d.mts CHANGED
@@ -107,7 +107,7 @@ declare function backupExistingConfig(): string | null;
107
107
  declare function copyConfigFiles(lang: SupportedLang, onlyMd?: boolean): void;
108
108
  declare function configureApi(apiConfig: ApiConfig | null): ApiConfig | null;
109
109
  declare function mergeConfigs(sourceFile: string, targetFile: string): void;
110
- declare function updateDefaultModel(model: 'opus' | 'sonnet' | 'default'): void;
110
+ declare function updateDefaultModel(model: 'opus' | 'sonnet' | 'opusplan' | 'default'): void;
111
111
  /**
112
112
  * Merge settings.json intelligently
113
113
  * Preserves user's environment variables and custom configurations
@@ -116,7 +116,7 @@ declare function mergeSettingsFile(templatePath: string, targetPath: string): vo
116
116
  /**
117
117
  * Get existing model configuration from settings.json
118
118
  */
119
- declare function getExistingModelConfig(): 'opus' | 'sonnet' | 'default' | null;
119
+ declare function getExistingModelConfig(): 'opus' | 'sonnet' | 'opusplan' | 'default' | null;
120
120
  /**
121
121
  * Get existing API configuration from settings.json
122
122
  */
package/dist/index.d.ts CHANGED
@@ -107,7 +107,7 @@ declare function backupExistingConfig(): string | null;
107
107
  declare function copyConfigFiles(lang: SupportedLang, onlyMd?: boolean): void;
108
108
  declare function configureApi(apiConfig: ApiConfig | null): ApiConfig | null;
109
109
  declare function mergeConfigs(sourceFile: string, targetFile: string): void;
110
- declare function updateDefaultModel(model: 'opus' | 'sonnet' | 'default'): void;
110
+ declare function updateDefaultModel(model: 'opus' | 'sonnet' | 'opusplan' | 'default'): void;
111
111
  /**
112
112
  * Merge settings.json intelligently
113
113
  * Preserves user's environment variables and custom configurations
@@ -116,7 +116,7 @@ declare function mergeSettingsFile(templatePath: string, targetPath: string): vo
116
116
  /**
117
117
  * Get existing model configuration from settings.json
118
118
  */
119
- declare function getExistingModelConfig(): 'opus' | 'sonnet' | 'default' | null;
119
+ declare function getExistingModelConfig(): 'opus' | 'sonnet' | 'opusplan' | 'default' | null;
120
120
  /**
121
121
  * Get existing API configuration from settings.json
122
122
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zcf",
3
3
  "type": "module",
4
- "version": "2.9.10",
4
+ "version": "2.9.11",
5
5
  "description": "Zero-Config Claude-Code Flow - One-click configuration tool for Claude Code",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/UfoMiao/zcf",