ccjk 13.3.22 → 13.3.23
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.
|
@@ -124,13 +124,11 @@ ${i18n.t("multi-config:addingNewProfile")}`));
|
|
|
124
124
|
}]);
|
|
125
125
|
let prefilledBaseUrl;
|
|
126
126
|
let prefilledAuthType;
|
|
127
|
-
let prefilledDefaultModels;
|
|
128
127
|
if (selectedProvider !== "custom") {
|
|
129
128
|
const provider = providers.find((p) => p.id === selectedProvider);
|
|
130
129
|
if (provider?.claudeCode) {
|
|
131
130
|
prefilledBaseUrl = provider.claudeCode.baseUrl;
|
|
132
131
|
prefilledAuthType = provider.claudeCode.authType;
|
|
133
|
-
prefilledDefaultModels = provider.claudeCode.defaultModels;
|
|
134
132
|
console.log(a.gray(i18n.t("api:providerSelected", { name: provider.name })));
|
|
135
133
|
}
|
|
136
134
|
}
|
|
@@ -230,15 +228,6 @@ ${i18n.t("multi-config:addingNewProfile")}`));
|
|
|
230
228
|
profile.defaultSonnetModel = modelConfig.sonnetModel.trim();
|
|
231
229
|
if (modelConfig.opusModel.trim())
|
|
232
230
|
profile.defaultOpusModel = modelConfig.opusModel.trim();
|
|
233
|
-
} else if (prefilledDefaultModels?.length) {
|
|
234
|
-
if (prefilledDefaultModels[0]?.trim())
|
|
235
|
-
profile.primaryModel = prefilledDefaultModels[0].trim();
|
|
236
|
-
if (prefilledDefaultModels[1]?.trim())
|
|
237
|
-
profile.defaultHaikuModel = prefilledDefaultModels[1].trim();
|
|
238
|
-
if (prefilledDefaultModels[2]?.trim())
|
|
239
|
-
profile.defaultSonnetModel = prefilledDefaultModels[2].trim();
|
|
240
|
-
if (prefilledDefaultModels[3]?.trim())
|
|
241
|
-
profile.defaultOpusModel = prefilledDefaultModels[3].trim();
|
|
242
231
|
}
|
|
243
232
|
const existingProfile = ClaudeCodeConfigManager.getProfileByName(profile.name);
|
|
244
233
|
if (existingProfile) {
|
package/dist/chunks/config3.mjs
CHANGED
|
@@ -222,12 +222,8 @@ async function setProvider(providerId, options = {}) {
|
|
|
222
222
|
}
|
|
223
223
|
if (codeType === "claude-code" && provider.claudeCode) {
|
|
224
224
|
config.baseUrl = provider.claudeCode.baseUrl;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
if (provider.claudeCode.defaultModels.length > 1) {
|
|
228
|
-
config.fastModel = provider.claudeCode.defaultModels[1];
|
|
229
|
-
}
|
|
230
|
-
}
|
|
225
|
+
delete config.model;
|
|
226
|
+
delete config.fastModel;
|
|
231
227
|
}
|
|
232
228
|
writeClaudeConfig(config);
|
|
233
229
|
console.log("");
|
package/dist/chunks/init.mjs
CHANGED
|
@@ -859,13 +859,6 @@ async function init(options = {}) {
|
|
|
859
859
|
key: options.apiKey,
|
|
860
860
|
url: preset?.claudeCode?.baseUrl || options.apiUrl || API_DEFAULT_URL
|
|
861
861
|
};
|
|
862
|
-
if (preset?.claudeCode?.defaultModels && preset.claudeCode.defaultModels.length > 0) {
|
|
863
|
-
const [primary, haiku, sonnet, opus] = preset.claudeCode.defaultModels;
|
|
864
|
-
options.apiModel = options.apiModel || primary;
|
|
865
|
-
options.apiHaikuModel = options.apiHaikuModel || haiku;
|
|
866
|
-
options.apiSonnetModel = options.apiSonnetModel || sonnet;
|
|
867
|
-
options.apiOpusModel = options.apiOpusModel || opus;
|
|
868
|
-
}
|
|
869
862
|
await saveSingleConfigToToml(apiConfig, options.provider, options);
|
|
870
863
|
} else if (options.apiType === "auth_token" && options.apiKey) {
|
|
871
864
|
apiConfig = {
|
|
@@ -1412,13 +1405,6 @@ async function buildClaudeCodeProfile(params) {
|
|
|
1412
1405
|
if (preset?.claudeCode) {
|
|
1413
1406
|
baseUrl = params.url || preset.claudeCode.baseUrl;
|
|
1414
1407
|
authType = preset.claudeCode.authType;
|
|
1415
|
-
if (preset.claudeCode.defaultModels && preset.claudeCode.defaultModels.length > 0) {
|
|
1416
|
-
const [p, h, s, o] = preset.claudeCode.defaultModels;
|
|
1417
|
-
primaryModel = primaryModel || p;
|
|
1418
|
-
defaultHaikuModel = defaultHaikuModel || h;
|
|
1419
|
-
defaultSonnetModel = defaultSonnetModel || s;
|
|
1420
|
-
defaultOpusModel = defaultOpusModel || o;
|
|
1421
|
-
}
|
|
1422
1408
|
}
|
|
1423
1409
|
}
|
|
1424
1410
|
return {
|
package/dist/chunks/package.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccjk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "13.3.
|
|
4
|
+
"version": "13.3.23",
|
|
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": {
|