ccjk 9.5.0 → 9.5.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.
|
@@ -105,7 +105,13 @@ async function handleOfficialLogin(codeTool, isZh) {
|
|
|
105
105
|
}
|
|
106
106
|
async function handleCustomConfig(_isZh) {
|
|
107
107
|
try {
|
|
108
|
-
|
|
108
|
+
const codeTool = getCurrentCodeTool();
|
|
109
|
+
if (codeTool === "claude-code") {
|
|
110
|
+
const { addProfileDirect } = await import('./claude-code-incremental-manager.mjs');
|
|
111
|
+
await addProfileDirect();
|
|
112
|
+
} else {
|
|
113
|
+
await handleCustomApiMode();
|
|
114
|
+
}
|
|
109
115
|
return { mode: "custom", success: true, cancelled: false };
|
|
110
116
|
} catch {
|
|
111
117
|
return { mode: "custom", success: false, cancelled: false };
|
|
@@ -91,6 +91,10 @@ async function promptContinueAdding() {
|
|
|
91
91
|
defaultValue: false
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
+
async function addProfileDirect() {
|
|
95
|
+
ensureI18nInitialized();
|
|
96
|
+
return handleAddProfile();
|
|
97
|
+
}
|
|
94
98
|
async function handleAddProfile() {
|
|
95
99
|
console.log(ansis.green(`
|
|
96
100
|
${i18n.t("multi-config:addingNewProfile")}`));
|
|
@@ -605,4 +609,4 @@ async function handleDeleteProfile(profiles) {
|
|
|
605
609
|
}
|
|
606
610
|
}
|
|
607
611
|
|
|
608
|
-
export { configureIncrementalManagement, getAuthTypeLabel };
|
|
612
|
+
export { addProfileDirect, configureIncrementalManagement, getAuthTypeLabel };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccjk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.5.
|
|
4
|
+
"version": "9.5.1",
|
|
5
5
|
"packageManager": "pnpm@10.17.1",
|
|
6
6
|
"description": "CCJK v9.0.0 - Revolutionary AI Development Platform with Enterprise Security, Streaming Cloud Sync, CRDT Conflict Resolution, and Unified V3 Architecture",
|
|
7
7
|
"author": {
|