ccjk 13.3.13 → 13.3.14

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.
@@ -28,6 +28,33 @@ import { doctor } from './doctor.mjs';
28
28
  import { uninstall } from './uninstall.mjs';
29
29
  import { update } from './update.mjs';
30
30
 
31
+ const DEFAULT_MODEL_CHOICES = [
32
+ {
33
+ nameKey: "configuration:defaultModelOption",
34
+ fallback: "Default - Let Claude Code choose",
35
+ value: "default"
36
+ },
37
+ {
38
+ nameKey: "configuration:opusModelOption",
39
+ fallback: "Opus - Only use opus, high token consumption, use with caution",
40
+ value: "opus"
41
+ },
42
+ {
43
+ nameKey: "configuration:sonnetModelOption",
44
+ fallback: "Sonnet - Recommended balanced model for daily coding",
45
+ value: "sonnet"
46
+ },
47
+ {
48
+ nameKey: "configuration:sonnet1mModelOption",
49
+ fallback: "Sonnet 1M - 1M context version",
50
+ value: "sonnet[1m]"
51
+ },
52
+ {
53
+ nameKey: "configuration:customModelOption",
54
+ fallback: "Custom - Specify custom model names",
55
+ value: "custom"
56
+ }
57
+ ];
31
58
  async function handleCancellation() {
32
59
  ensureI18nInitialized();
33
60
  console.log(a.yellow(i18n.t("common:cancelled")));
@@ -271,25 +298,13 @@ ${a.green(`\u2139 ${i18n.t("configuration:existingModelConfig") || "Existing mod
271
298
  type: "list",
272
299
  name: "model",
273
300
  message: i18n.t("configuration:selectDefaultModel") || "Select default model",
274
- choices: addNumbersToChoices([
275
- {
276
- name: i18n.t("configuration:defaultModelOption") || "Default - Let Claude Code choose",
277
- value: "default"
278
- },
279
- {
280
- name: i18n.t("configuration:opusModelOption") || "Opus - Only use opus, high token consumption, use with caution",
281
- value: "opus"
282
- },
283
- {
284
- name: i18n.t("configuration:sonnet1mModelOption") || "Sonnet 1M - 1M context version",
285
- value: "sonnet[1m]"
286
- },
287
- {
288
- name: i18n.t("configuration:customModelOption") || "Custom - Specify custom model names",
289
- value: "custom"
290
- }
291
- ]),
292
- default: existingModel ? ["default", "opus", "sonnet[1m]", "custom"].indexOf(existingModel) : 0
301
+ choices: addNumbersToChoices(
302
+ DEFAULT_MODEL_CHOICES.map((choice) => ({
303
+ name: i18n.t(choice.nameKey) || choice.fallback,
304
+ value: choice.value
305
+ }))
306
+ ),
307
+ default: existingModel ? DEFAULT_MODEL_CHOICES.findIndex((choice) => choice.value === existingModel) : 0
293
308
  });
294
309
  if (!model) {
295
310
  await handleCancellation();
@@ -775,6 +790,7 @@ ${ansis2.bold(i18n.t("memory:memoryContent"))}`);
775
790
 
776
791
  const features = {
777
792
  __proto__: null,
793
+ DEFAULT_MODEL_CHOICES: DEFAULT_MODEL_CHOICES,
778
794
  changeScriptLanguageFeature: changeScriptLanguageFeature,
779
795
  configureAiMemoryFeature: configureAiMemoryFeature,
780
796
  configureApiFeature: configureApiFeature,
@@ -1,3 +1,3 @@
1
- const version = "13.3.13";
1
+ const version = "13.3.14";
2
2
 
3
3
  export { version };
@@ -41,6 +41,7 @@
41
41
  "openSettingsJsonDesc": "Advanced user customization",
42
42
  "openingSettingsJson": "Opening settings.json...",
43
43
  "opusModelOption": "Opus - Only use opus, high token consumption, use with caution",
44
+ "sonnetModelOption": "Sonnet - Recommended balanced model for daily coding",
44
45
  "sonnet1mModelOption": "Sonnet 1M - 1M context version",
45
46
  "outputStyleInstalled": "Output styles installed successfully",
46
47
  "outputStyles.default.description": "Claude completes coding tasks efficiently and provides concise responses (Claude Code built-in)",
@@ -41,6 +41,7 @@
41
41
  "openSettingsJsonDesc": "高级用户自定义",
42
42
  "openingSettingsJson": "正在打开 settings.json...",
43
43
  "opusModelOption": "Opus - 只用opus,token消耗高,慎用",
44
+ "sonnetModelOption": "Sonnet - 日常编码推荐的平衡模型",
44
45
  "sonnet1mModelOption": "Sonnet 1M - 1M上下文版本",
45
46
  "outputStyleInstalled": "输出风格安装成功",
46
47
  "outputStyles.default.description": "完成编码任务时高效且提供简洁响应 (Claude Code自带)",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ccjk",
3
3
  "type": "module",
4
- "version": "13.3.13",
4
+ "version": "13.3.14",
5
5
  "packageManager": "pnpm@10.17.1",
6
6
  "description": "Turn Claude Code into a production-ready AI dev environment with one-command setup, persistent memory, MCP automation, cloud sync, and zero-config browser workflows.",
7
7
  "author": {