ccjk 2.3.0 → 2.3.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/dist/chunks/menu.mjs +46 -40
- package/dist/chunks/package.mjs +1 -1
- package/package.json +1 -1
package/dist/chunks/menu.mjs
CHANGED
|
@@ -3031,47 +3031,38 @@ async function showMoreFeaturesMenu() {
|
|
|
3031
3031
|
console.log("");
|
|
3032
3032
|
console.log(` ${ansis.yellow(i18n.t("menu:moreMenu.config"))}`);
|
|
3033
3033
|
console.log(
|
|
3034
|
-
` ${ansis.cyan("7.")} ${i18n.t("menu:configCenter.
|
|
3034
|
+
` ${ansis.cyan("7.")} ${i18n.t("menu:configCenter.memory")} ${ansis.gray(`- ${i18n.t("menu:configCenter.memoryDesc")}`)}`
|
|
3035
3035
|
);
|
|
3036
3036
|
console.log(
|
|
3037
|
-
` ${ansis.cyan("8.")} ${i18n.t("menu:configCenter.
|
|
3037
|
+
` ${ansis.cyan("8.")} ${i18n.t("menu:configCenter.permission")} ${ansis.gray(`- ${i18n.t("menu:configCenter.permissionDesc")}`)}`
|
|
3038
3038
|
);
|
|
3039
3039
|
console.log(
|
|
3040
|
-
` ${ansis.cyan("9.")} ${i18n.t("menu:configCenter.
|
|
3040
|
+
` ${ansis.cyan("9.")} ${i18n.t("menu:configCenter.configSwitch")} ${ansis.gray(`- ${i18n.t("menu:configCenter.configSwitchDesc")}`)}`
|
|
3041
3041
|
);
|
|
3042
3042
|
console.log(
|
|
3043
|
-
` ${ansis.cyan("10.")} ${i18n.t("menu:configCenter.
|
|
3044
|
-
);
|
|
3045
|
-
console.log(
|
|
3046
|
-
` ${ansis.cyan("11.")} ${i18n.t("menu:configCenter.permission")} ${ansis.gray(`- ${i18n.t("menu:configCenter.permissionDesc")}`)}`
|
|
3047
|
-
);
|
|
3048
|
-
console.log(
|
|
3049
|
-
` ${ansis.cyan("12.")} ${i18n.t("menu:configCenter.configSwitch")} ${ansis.gray(`- ${i18n.t("menu:configCenter.configSwitchDesc")}`)}`
|
|
3050
|
-
);
|
|
3051
|
-
console.log(
|
|
3052
|
-
` ${ansis.cyan("13.")} ${i18n.t("menu:configCenter.context")} ${ansis.gray(`- ${i18n.t("menu:configCenter.contextDesc")}`)}`
|
|
3043
|
+
` ${ansis.cyan("10.")} ${i18n.t("menu:configCenter.context")} ${ansis.gray(`- ${i18n.t("menu:configCenter.contextDesc")}`)}`
|
|
3053
3044
|
);
|
|
3054
3045
|
console.log("");
|
|
3055
3046
|
console.log(` ${ansis.yellow(i18n.t("menu:moreMenu.system"))}`);
|
|
3056
3047
|
console.log(
|
|
3057
|
-
` ${ansis.cyan("
|
|
3048
|
+
` ${ansis.cyan("11.")} ${i18n.t("menu:menuOptions.changeLanguage").split(" / ")[0]} ${ansis.gray(`- ${i18n.t("menu:menuDescriptions.changeLanguage")}`)}`
|
|
3058
3049
|
);
|
|
3059
3050
|
console.log(
|
|
3060
|
-
` ${ansis.cyan("
|
|
3051
|
+
` ${ansis.cyan("12.")} ${i18n.t("menu:menuOptions.switchCodeTool")} ${ansis.gray(`- ${i18n.t("menu:menuDescriptions.switchCodeTool")}`)}`
|
|
3061
3052
|
);
|
|
3062
3053
|
console.log(
|
|
3063
|
-
` ${ansis.cyan("
|
|
3054
|
+
` ${ansis.cyan("13.")} ${i18n.t("menu:categorizedMenu.diagnostics")} ${ansis.gray(`- ${i18n.t("menu:categorizedMenu.diagnosticsDesc")}`)}`
|
|
3064
3055
|
);
|
|
3065
3056
|
console.log(
|
|
3066
|
-
` ${ansis.cyan("
|
|
3057
|
+
` ${ansis.cyan("14.")} ${i18n.t("menu:categorizedMenu.workspace")} ${ansis.gray(`- ${i18n.t("menu:categorizedMenu.workspaceDesc")}`)}`
|
|
3067
3058
|
);
|
|
3068
3059
|
console.log(
|
|
3069
|
-
` ${ansis.cyan("
|
|
3060
|
+
` ${ansis.cyan("15.")} ${i18n.t("menu:menuOptions.uninstall")} ${ansis.gray(`- ${i18n.t("menu:menuDescriptions.uninstall")}`)}`
|
|
3070
3061
|
);
|
|
3071
3062
|
console.log("");
|
|
3072
3063
|
console.log(` ${ansis.cyan("0.")} ${i18n.t("common:back")}`);
|
|
3073
3064
|
console.log("");
|
|
3074
|
-
const validChoices = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"
|
|
3065
|
+
const validChoices = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"];
|
|
3075
3066
|
const { choice } = await inquirer.prompt({
|
|
3076
3067
|
type: "input",
|
|
3077
3068
|
name: "choice",
|
|
@@ -3104,44 +3095,35 @@ async function showMoreFeaturesMenu() {
|
|
|
3104
3095
|
case "6":
|
|
3105
3096
|
await showMarketplaceMenu();
|
|
3106
3097
|
break;
|
|
3107
|
-
// Config
|
|
3098
|
+
// Config (API/MCP/Model removed - now on main menu)
|
|
3108
3099
|
case "7":
|
|
3109
|
-
await configureApiFeature();
|
|
3110
|
-
break;
|
|
3111
|
-
case "8":
|
|
3112
|
-
await configureMcpFeature();
|
|
3113
|
-
break;
|
|
3114
|
-
case "9":
|
|
3115
|
-
await configureDefaultModelFeature();
|
|
3116
|
-
break;
|
|
3117
|
-
case "10":
|
|
3118
3100
|
await configureAiMemoryFeature();
|
|
3119
3101
|
break;
|
|
3120
|
-
case "
|
|
3102
|
+
case "8":
|
|
3121
3103
|
await configureEnvPermissionFeature();
|
|
3122
3104
|
break;
|
|
3123
|
-
case "
|
|
3105
|
+
case "9":
|
|
3124
3106
|
await showConfigSwitchMenu();
|
|
3125
3107
|
break;
|
|
3126
|
-
case "
|
|
3108
|
+
case "10":
|
|
3127
3109
|
await showContextMenu();
|
|
3128
3110
|
break;
|
|
3129
3111
|
// System
|
|
3130
|
-
case "
|
|
3112
|
+
case "11": {
|
|
3131
3113
|
const currentLang = i18n.language;
|
|
3132
3114
|
await changeScriptLanguageFeature(currentLang);
|
|
3133
3115
|
break;
|
|
3134
3116
|
}
|
|
3135
|
-
case "
|
|
3117
|
+
case "12":
|
|
3136
3118
|
await handleCodeToolSwitch("claude-code");
|
|
3137
3119
|
break;
|
|
3138
|
-
case "
|
|
3120
|
+
case "13":
|
|
3139
3121
|
await doctor();
|
|
3140
3122
|
break;
|
|
3141
|
-
case "
|
|
3123
|
+
case "14":
|
|
3142
3124
|
await workspaceDiagnostics();
|
|
3143
3125
|
break;
|
|
3144
|
-
case "
|
|
3126
|
+
case "15":
|
|
3145
3127
|
await uninstall();
|
|
3146
3128
|
break;
|
|
3147
3129
|
}
|
|
@@ -3149,6 +3131,7 @@ async function showMoreFeaturesMenu() {
|
|
|
3149
3131
|
async function showCategorizedMenu() {
|
|
3150
3132
|
console.log(ansis.cyan(i18n.t("menu:oneClick.title")));
|
|
3151
3133
|
console.log("");
|
|
3134
|
+
console.log(` ${ansis.yellow(i18n.t("menu:menuSections.quickStart"))}`);
|
|
3152
3135
|
console.log(
|
|
3153
3136
|
` ${ansis.cyan("1.")} ${i18n.t("menu:oneClick.setup")} ${ansis.gray(`- ${i18n.t("menu:oneClick.setupDesc")}`)}`
|
|
3154
3137
|
);
|
|
@@ -3162,9 +3145,20 @@ async function showCategorizedMenu() {
|
|
|
3162
3145
|
` ${ansis.cyan("4.")} ${i18n.t("menu:oneClick.notify")} ${ansis.gray(`- ${i18n.t("menu:oneClick.notifyDesc")}`)}`
|
|
3163
3146
|
);
|
|
3164
3147
|
console.log("");
|
|
3148
|
+
console.log(` ${ansis.yellow(i18n.t("menu:menuSections.configCenter"))}`);
|
|
3149
|
+
console.log(
|
|
3150
|
+
` ${ansis.cyan("5.")} ${i18n.t("menu:configCenter.api")} ${ansis.gray(`- ${i18n.t("menu:configCenter.apiDesc")}`)}`
|
|
3151
|
+
);
|
|
3152
|
+
console.log(
|
|
3153
|
+
` ${ansis.cyan("6.")} ${i18n.t("menu:configCenter.mcp")} ${ansis.gray(`- ${i18n.t("menu:configCenter.mcpDesc")}`)}`
|
|
3154
|
+
);
|
|
3155
|
+
console.log(
|
|
3156
|
+
` ${ansis.cyan("7.")} ${i18n.t("menu:configCenter.model")} ${ansis.gray(`- ${i18n.t("menu:configCenter.modelDesc")}`)}`
|
|
3157
|
+
);
|
|
3158
|
+
console.log("");
|
|
3165
3159
|
console.log(` ${ansis.dim("\u2500".repeat(50))}`);
|
|
3166
3160
|
console.log(
|
|
3167
|
-
` ${ansis.cyan("
|
|
3161
|
+
` ${ansis.cyan("8.")} ${i18n.t("menu:oneClick.more")} \u2192 ${ansis.gray(i18n.t("menu:oneClick.moreDesc"))}`
|
|
3168
3162
|
);
|
|
3169
3163
|
console.log("");
|
|
3170
3164
|
console.log(
|
|
@@ -3176,7 +3170,7 @@ async function showCategorizedMenu() {
|
|
|
3176
3170
|
name: "choice",
|
|
3177
3171
|
message: i18n.t("common:enterChoice"),
|
|
3178
3172
|
validate: (value) => {
|
|
3179
|
-
const valid = ["1", "2", "3", "4", "5", "0", "q", "Q"];
|
|
3173
|
+
const valid = ["1", "2", "3", "4", "5", "6", "7", "8", "0", "q", "Q"];
|
|
3180
3174
|
return valid.includes(value) || i18n.t("common:invalidChoice");
|
|
3181
3175
|
}
|
|
3182
3176
|
});
|
|
@@ -3202,8 +3196,20 @@ async function showCategorizedMenu() {
|
|
|
3202
3196
|
case "4":
|
|
3203
3197
|
await notificationCommand();
|
|
3204
3198
|
break;
|
|
3205
|
-
//
|
|
3199
|
+
// API Config (Important Setting)
|
|
3206
3200
|
case "5":
|
|
3201
|
+
await configureApiFeature();
|
|
3202
|
+
break;
|
|
3203
|
+
// MCP Config (Important Setting)
|
|
3204
|
+
case "6":
|
|
3205
|
+
await configureMcpFeature();
|
|
3206
|
+
break;
|
|
3207
|
+
// Default Model (Important Setting)
|
|
3208
|
+
case "7":
|
|
3209
|
+
await configureDefaultModelFeature();
|
|
3210
|
+
break;
|
|
3211
|
+
// More features submenu
|
|
3212
|
+
case "8":
|
|
3207
3213
|
printSeparator();
|
|
3208
3214
|
await showMoreFeaturesMenu();
|
|
3209
3215
|
return void 0;
|
package/dist/chunks/package.mjs
CHANGED
package/package.json
CHANGED