ccjk 13.6.3 → 13.6.5
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/agents.mjs +1 -1
- package/dist/chunks/api-config-selector.mjs +0 -27
- package/dist/chunks/ccr.mjs +1 -1
- package/dist/chunks/check-updates.mjs +16 -16
- package/dist/chunks/claude-code-config-manager.mjs +1 -1
- package/dist/chunks/claude-config.mjs +18 -1
- package/dist/chunks/cli-hook.mjs +21 -78
- package/dist/chunks/config2.mjs +2 -2
- package/dist/chunks/constants.mjs +178 -2
- package/dist/chunks/index10.mjs +40 -21
- package/dist/chunks/init.mjs +108 -33
- package/dist/chunks/installer.mjs +80 -19
- package/dist/chunks/mcp.mjs +1 -1
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/platform.mjs +4 -0
- package/dist/chunks/quick-setup.mjs +1 -1
- package/dist/chunks/research.mjs +979 -0
- package/dist/chunks/sessions.mjs +1 -1
- package/dist/chunks/smart-defaults.mjs +41 -13
- package/dist/chunks/uninstall.mjs +1 -1
- package/dist/cli.mjs +28 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +8 -174
- package/dist/shared/{ccjk.DwSebGy0.mjs → ccjk.BOO14f66.mjs} +1 -1
- package/dist/shared/ccjk.BnsY5WxD.mjs +171 -0
- package/dist/shared/ccjk.yYQMbHH3.mjs +115 -0
- package/package.json +68 -65
- package/dist/shared/ccjk.CiKtBUW_.mjs +0 -54
package/dist/chunks/agents.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { c as contextLoader, S as SessionIntelligence, g as getGlobalConvoyManag
|
|
|
5
5
|
import { EventEmitter } from 'node:events';
|
|
6
6
|
import { c as resolve } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
7
7
|
import { e as executionTracer } from '../shared/ccjk.DlTXS9rP.mjs';
|
|
8
|
-
import { t as taskPersistence } from '../shared/ccjk.
|
|
8
|
+
import { t as taskPersistence } from '../shared/ccjk.BOO14f66.mjs';
|
|
9
9
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
10
10
|
import 'node:crypto';
|
|
11
11
|
import 'node:process';
|
|
@@ -5,7 +5,6 @@ import { i18n } from './index2.mjs';
|
|
|
5
5
|
import { readZcfConfig } from './ccjk-config.mjs';
|
|
6
6
|
import { ClaudeCodeConfigManager } from './claude-code-config-manager.mjs';
|
|
7
7
|
import { handleCustomApiMode } from './features.mjs';
|
|
8
|
-
import { configSwitchCommand } from './config-switch.mjs';
|
|
9
8
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
10
9
|
import 'node:readline';
|
|
11
10
|
import 'stream';
|
|
@@ -43,12 +42,6 @@ import '../shared/ccjk.BP5hsTZQ.mjs';
|
|
|
43
42
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
44
43
|
import '../shared/ccjk.DZ2LLOa-.mjs';
|
|
45
44
|
import '../shared/ccjk.DeWpAShp.mjs';
|
|
46
|
-
import './codex.mjs';
|
|
47
|
-
import './index8.mjs';
|
|
48
|
-
import '../shared/ccjk.CxpGa6MC.mjs';
|
|
49
|
-
import './prompts.mjs';
|
|
50
|
-
import '../shared/ccjk.gDEDGD_t.mjs';
|
|
51
|
-
import '../shared/ccjk.DGllfVCZ.mjs';
|
|
52
45
|
|
|
53
46
|
function getCurrentCodeTool() {
|
|
54
47
|
const config = readZcfConfig();
|
|
@@ -85,10 +78,6 @@ async function showApiConfigMenu(title, options) {
|
|
|
85
78
|
return await handleCustomConfig(isZh, options?.context);
|
|
86
79
|
case "ccr":
|
|
87
80
|
return await handleCcrProxy(codeTool, isZh);
|
|
88
|
-
case "switch":
|
|
89
|
-
return await handleConfigSwitch(codeTool);
|
|
90
|
-
case "view":
|
|
91
|
-
return await handleViewConfig(codeTool);
|
|
92
81
|
case "skip":
|
|
93
82
|
return { mode: "skip", success: true, cancelled: false };
|
|
94
83
|
default:
|
|
@@ -151,21 +140,5 @@ async function handleCcrProxy(codeTool, isZh) {
|
|
|
151
140
|
return { mode: "ccr", success: false, cancelled: false };
|
|
152
141
|
}
|
|
153
142
|
}
|
|
154
|
-
async function handleConfigSwitch(codeTool) {
|
|
155
|
-
try {
|
|
156
|
-
await configSwitchCommand({ codeType: codeTool });
|
|
157
|
-
return { mode: "switch", success: true, cancelled: false };
|
|
158
|
-
} catch {
|
|
159
|
-
return { mode: "switch", success: false, cancelled: false };
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
async function handleViewConfig(codeTool) {
|
|
163
|
-
try {
|
|
164
|
-
await configSwitchCommand({ codeType: codeTool, list: true });
|
|
165
|
-
return { mode: "view", success: true, cancelled: false };
|
|
166
|
-
} catch {
|
|
167
|
-
return { mode: "view", success: false, cancelled: false };
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
143
|
|
|
171
144
|
export { showApiConfigMenu };
|
package/dist/chunks/ccr.mjs
CHANGED
|
@@ -47,7 +47,7 @@ import '../shared/ccjk.DScm_NnL.mjs';
|
|
|
47
47
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
48
48
|
import './prompts.mjs';
|
|
49
49
|
import '../shared/ccjk.DZ2LLOa-.mjs';
|
|
50
|
-
import '../shared/ccjk.
|
|
50
|
+
import '../shared/ccjk.yYQMbHH3.mjs';
|
|
51
51
|
import './smart-defaults.mjs';
|
|
52
52
|
import '../shared/ccjk.DJuyfrlL.mjs';
|
|
53
53
|
import './features.mjs';
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import process__default from 'node:process';
|
|
2
2
|
import a from './index5.mjs';
|
|
3
3
|
import { ensureI18nInitialized, i18n } from './index2.mjs';
|
|
4
|
-
import { r as resolveCodeType } from '../shared/ccjk.
|
|
4
|
+
import { r as resolveCodeType } from '../shared/ccjk.yYQMbHH3.mjs';
|
|
5
5
|
import { checkAndUpdateTools } from './auto-updater.mjs';
|
|
6
6
|
import { c as runCodexUpdate } from './codex.mjs';
|
|
7
7
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:url';
|
|
10
10
|
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
11
|
+
import './index6.mjs';
|
|
12
|
+
import 'node:readline';
|
|
13
|
+
import 'stream';
|
|
14
|
+
import 'node:tty';
|
|
15
|
+
import 'node:async_hooks';
|
|
16
|
+
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
17
|
+
import 'node:util';
|
|
18
|
+
import 'tty';
|
|
19
|
+
import 'fs';
|
|
20
|
+
import 'child_process';
|
|
21
|
+
import 'node:path';
|
|
22
|
+
import 'node:os';
|
|
23
|
+
import 'node:crypto';
|
|
24
|
+
import 'buffer';
|
|
25
|
+
import 'string_decoder';
|
|
11
26
|
import './smart-defaults.mjs';
|
|
12
27
|
import 'node:child_process';
|
|
13
|
-
import 'node:os';
|
|
14
28
|
import './constants.mjs';
|
|
15
29
|
import './json-config.mjs';
|
|
16
30
|
import '../shared/ccjk.RyizuzOI.mjs';
|
|
17
31
|
import './fs-operations.mjs';
|
|
18
|
-
import 'node:crypto';
|
|
19
32
|
import 'node:fs/promises';
|
|
20
33
|
import './platform.mjs';
|
|
21
34
|
import './main.mjs';
|
|
22
35
|
import 'module';
|
|
23
|
-
import 'node:path';
|
|
24
36
|
import 'node:stream';
|
|
25
|
-
import 'node:readline';
|
|
26
37
|
import '../shared/ccjk.DJuyfrlL.mjs';
|
|
27
38
|
import './ccjk-config.mjs';
|
|
28
39
|
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
29
40
|
import './index3.mjs';
|
|
30
41
|
import './index8.mjs';
|
|
31
|
-
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
32
42
|
import '../shared/ccjk.DeWpAShp.mjs';
|
|
33
43
|
import '../shared/ccjk.DZ2LLOa-.mjs';
|
|
34
|
-
import 'node:async_hooks';
|
|
35
|
-
import './index6.mjs';
|
|
36
|
-
import 'stream';
|
|
37
|
-
import 'node:tty';
|
|
38
|
-
import 'node:util';
|
|
39
|
-
import 'tty';
|
|
40
|
-
import 'fs';
|
|
41
|
-
import 'child_process';
|
|
42
|
-
import 'buffer';
|
|
43
|
-
import 'string_decoder';
|
|
44
44
|
import './version-checker.mjs';
|
|
45
45
|
import '../shared/ccjk.CxpGa6MC.mjs';
|
|
46
46
|
import './config.mjs';
|
|
@@ -275,7 +275,7 @@ class ClaudeCodeConfigManager {
|
|
|
275
275
|
opusModel: profile.defaultOpusModel
|
|
276
276
|
}, modelMode);
|
|
277
277
|
writeJsonConfig(SETTINGS_FILE, settings);
|
|
278
|
-
const { setPrimaryApiKey, addCompletedOnboarding } = await import('./claude-config.mjs').then(function (n) { return n.
|
|
278
|
+
const { setPrimaryApiKey, addCompletedOnboarding } = await import('./claude-config.mjs').then(function (n) { return n.j; });
|
|
279
279
|
setPrimaryApiKey();
|
|
280
280
|
addCompletedOnboarding();
|
|
281
281
|
let verifiedSettings = readJsonConfig2(SETTINGS_FILE) || {};
|
|
@@ -197,6 +197,21 @@ function setPrimaryApiKey() {
|
|
|
197
197
|
console.error(i18n.t("mcp:primaryApiKeySetFailed"), error);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
+
function setMyclaudeProviderProfiles(profiles, activeProfileId) {
|
|
201
|
+
const config = readMcpConfig() || { mcpServers: {} };
|
|
202
|
+
config.myclaudeProviderProfiles = profiles;
|
|
203
|
+
config.myclaudeActiveProviderProfileId = activeProfileId || profiles[0]?.id;
|
|
204
|
+
writeMcpConfig(config);
|
|
205
|
+
}
|
|
206
|
+
function clearMyclaudeProviderProfiles() {
|
|
207
|
+
const config = readMcpConfig();
|
|
208
|
+
if (!config) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
delete config.myclaudeProviderProfiles;
|
|
212
|
+
delete config.myclaudeActiveProviderProfileId;
|
|
213
|
+
writeMcpConfig(config);
|
|
214
|
+
}
|
|
200
215
|
function syncMcpPermissions() {
|
|
201
216
|
const mcpConfig = readMcpConfig();
|
|
202
217
|
const mcpServerIds = Object.keys(mcpConfig?.mcpServers || {});
|
|
@@ -222,15 +237,17 @@ const claudeConfig = {
|
|
|
222
237
|
addCompletedOnboarding: addCompletedOnboarding,
|
|
223
238
|
backupMcpConfig: backupMcpConfig,
|
|
224
239
|
buildMcpServerConfig: buildMcpServerConfig,
|
|
240
|
+
clearMyclaudeProviderProfiles: clearMyclaudeProviderProfiles,
|
|
225
241
|
ensureApiKeyApproved: ensureApiKeyApproved,
|
|
226
242
|
fixWindowsMcpConfig: fixWindowsMcpConfig,
|
|
227
243
|
manageApiKeyApproval: manageApiKeyApproval,
|
|
228
244
|
mergeMcpServers: mergeMcpServers,
|
|
229
245
|
readMcpConfig: readMcpConfig,
|
|
230
246
|
replaceMcpServers: replaceMcpServers,
|
|
247
|
+
setMyclaudeProviderProfiles: setMyclaudeProviderProfiles,
|
|
231
248
|
setPrimaryApiKey: setPrimaryApiKey,
|
|
232
249
|
syncMcpPermissions: syncMcpPermissions,
|
|
233
250
|
writeMcpConfig: writeMcpConfig
|
|
234
251
|
};
|
|
235
252
|
|
|
236
|
-
export { addCompletedOnboarding as a, buildMcpServerConfig as b, backupMcpConfig as c, deepMerge as d,
|
|
253
|
+
export { addCompletedOnboarding as a, buildMcpServerConfig as b, backupMcpConfig as c, deepMerge as d, setMyclaudeProviderProfiles as e, clearMyclaudeProviderProfiles as f, replaceMcpServers as g, fixWindowsMcpConfig as h, syncMcpPermissions as i, claudeConfig as j, mergeMcpServers as m, readMcpConfig as r, setPrimaryApiKey as s, writeMcpConfig as w };
|
package/dist/chunks/cli-hook.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
|
+
import { DEFAULT_CODE_TOOL_TYPE, isCodeToolType, getCodeToolNativeSlashCommands } from './constants.mjs';
|
|
3
|
+
import { readZcfConfig } from './ccjk-config.mjs';
|
|
2
4
|
import { a as getGlobalStateManager, g as getGlobalConvoyManager, c as contextLoader, S as SessionIntelligence } from './session-manager.mjs';
|
|
3
5
|
import { l as logger } from '../shared/ccjk.8oaxX4iR.mjs';
|
|
4
6
|
import { h as hookRegistry } from '../shared/ccjk.KPLeMP-o.mjs';
|
|
@@ -9,6 +11,15 @@ import { d as dirname, j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
|
9
11
|
import { n as nanoid } from '../shared/ccjk.BoApaI4j.mjs';
|
|
10
12
|
import process__default from 'node:process';
|
|
11
13
|
import 'node:os';
|
|
14
|
+
import './index2.mjs';
|
|
15
|
+
import 'node:url';
|
|
16
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
17
|
+
import './index3.mjs';
|
|
18
|
+
import './fs-operations.mjs';
|
|
19
|
+
import 'node:fs/promises';
|
|
20
|
+
import './json-config.mjs';
|
|
21
|
+
import '../shared/ccjk.RyizuzOI.mjs';
|
|
22
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
12
23
|
import './main.mjs';
|
|
13
24
|
import 'module';
|
|
14
25
|
import 'node:child_process';
|
|
@@ -18,9 +29,7 @@ import 'node:readline';
|
|
|
18
29
|
import 'tinyglobby';
|
|
19
30
|
import '../shared/ccjk.DlTXS9rP.mjs';
|
|
20
31
|
import './index5.mjs';
|
|
21
|
-
import '../shared/ccjk.BAGoDD49.mjs';
|
|
22
32
|
import '../shared/ccjk.wLJHO0Af.mjs';
|
|
23
|
-
import 'node:fs/promises';
|
|
24
33
|
|
|
25
34
|
async function emitCommandHookEvent(event, data, sessionId) {
|
|
26
35
|
try {
|
|
@@ -3540,80 +3549,13 @@ class CliInterceptor extends EventEmitter {
|
|
|
3540
3549
|
autoSelectMcp: true,
|
|
3541
3550
|
verbose: false
|
|
3542
3551
|
});
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
"/quit",
|
|
3551
|
-
"/resume",
|
|
3552
|
-
// Context Management
|
|
3553
|
-
"/compact",
|
|
3554
|
-
"/context",
|
|
3555
|
-
"/status",
|
|
3556
|
-
// Mode Control
|
|
3557
|
-
"/plan",
|
|
3558
|
-
"/execute",
|
|
3559
|
-
// History
|
|
3560
|
-
"/rewind",
|
|
3561
|
-
// Diagnostic
|
|
3562
|
-
"/mcp",
|
|
3563
|
-
"/doctor",
|
|
3564
|
-
// Configuration
|
|
3565
|
-
"/settings",
|
|
3566
|
-
"/config",
|
|
3567
|
-
"/version",
|
|
3568
|
-
// Extension System
|
|
3569
|
-
"/agents",
|
|
3570
|
-
"/skills",
|
|
3571
|
-
"/commands",
|
|
3572
|
-
// Plugin/Marketplace - CCJK 接管,不在此列表
|
|
3573
|
-
// '/plugin',
|
|
3574
|
-
// '/plugins',
|
|
3575
|
-
// Tasks
|
|
3576
|
-
"/tasks",
|
|
3577
|
-
// Memory
|
|
3578
|
-
"/memory",
|
|
3579
|
-
"/memories",
|
|
3580
|
-
// Model
|
|
3581
|
-
"/model",
|
|
3582
|
-
// Cost
|
|
3583
|
-
"/cost",
|
|
3584
|
-
// Permissions
|
|
3585
|
-
"/permissions",
|
|
3586
|
-
// Hooks
|
|
3587
|
-
"/hooks",
|
|
3588
|
-
// Init
|
|
3589
|
-
"/init",
|
|
3590
|
-
// Login/Logout
|
|
3591
|
-
"/login",
|
|
3592
|
-
"/logout",
|
|
3593
|
-
// Bug report
|
|
3594
|
-
"/bug",
|
|
3595
|
-
// Terminal
|
|
3596
|
-
"/terminal",
|
|
3597
|
-
// IDE
|
|
3598
|
-
"/ide",
|
|
3599
|
-
// Review
|
|
3600
|
-
"/review",
|
|
3601
|
-
// PR
|
|
3602
|
-
"/pr",
|
|
3603
|
-
// Vim mode
|
|
3604
|
-
"/vim",
|
|
3605
|
-
// Listen mode
|
|
3606
|
-
"/listen",
|
|
3607
|
-
// Add files
|
|
3608
|
-
"/add",
|
|
3609
|
-
// Install
|
|
3610
|
-
"/install",
|
|
3611
|
-
// Allowed tools
|
|
3612
|
-
"/allowed-tools",
|
|
3613
|
-
// Thinking
|
|
3614
|
-
"/think",
|
|
3615
|
-
"/thinking"
|
|
3616
|
-
];
|
|
3552
|
+
getActiveCodeTool() {
|
|
3553
|
+
const codeToolType = readZcfConfig()?.codeToolType;
|
|
3554
|
+
return isCodeToolType(codeToolType) ? codeToolType : DEFAULT_CODE_TOOL_TYPE;
|
|
3555
|
+
}
|
|
3556
|
+
getSystemCommands() {
|
|
3557
|
+
return getCodeToolNativeSlashCommands(this.getActiveCodeTool());
|
|
3558
|
+
}
|
|
3617
3559
|
// Simple queries that don't need interception
|
|
3618
3560
|
simpleQueryPatterns = [
|
|
3619
3561
|
/^what is/i,
|
|
@@ -3679,13 +3621,14 @@ class CliInterceptor extends EventEmitter {
|
|
|
3679
3621
|
*/
|
|
3680
3622
|
shouldBypass(input) {
|
|
3681
3623
|
const normalized = input.trim().toLowerCase();
|
|
3624
|
+
const systemCommands = this.getSystemCommands();
|
|
3682
3625
|
if (normalized.startsWith("/")) {
|
|
3683
3626
|
const isCcjkOwned = this.config.ccjkOwnedSlashPrefixes.some((prefix) => normalized.startsWith(prefix));
|
|
3684
|
-
if (!isCcjkOwned) {
|
|
3627
|
+
if (!isCcjkOwned && systemCommands.some((cmd) => normalized.startsWith(cmd))) {
|
|
3685
3628
|
return { bypass: true, reason: "Native slash command passthrough" };
|
|
3686
3629
|
}
|
|
3687
3630
|
}
|
|
3688
|
-
if (
|
|
3631
|
+
if (systemCommands.some((cmd) => normalized.startsWith(cmd))) {
|
|
3689
3632
|
return { bypass: true, reason: "System command" };
|
|
3690
3633
|
}
|
|
3691
3634
|
if (this.config.bypassKeywords.some((kw) => normalized.includes(kw.toLowerCase()))) {
|
package/dist/chunks/config2.mjs
CHANGED
|
@@ -415,7 +415,7 @@ async function setupCcrConfiguration() {
|
|
|
415
415
|
console.log(a.yellow(`${i18n.t("ccr:keepingExistingConfig")}`));
|
|
416
416
|
await configureCcrProxy(existingConfig);
|
|
417
417
|
try {
|
|
418
|
-
const { manageApiKeyApproval } = await import('./claude-config.mjs').then(function (n) { return n.
|
|
418
|
+
const { manageApiKeyApproval } = await import('./claude-config.mjs').then(function (n) { return n.j; });
|
|
419
419
|
const apiKey = existingConfig.APIKEY || "sk-ccjk-x-ccr";
|
|
420
420
|
manageApiKeyApproval(apiKey);
|
|
421
421
|
console.log(a.green(`\u2714 ${i18n.t("ccr:apiKeyApprovalSuccess")}`));
|
|
@@ -449,7 +449,7 @@ async function setupCcrConfiguration() {
|
|
|
449
449
|
console.error(a.red(i18n.t("errors:failedToSetOnboarding")), error);
|
|
450
450
|
}
|
|
451
451
|
try {
|
|
452
|
-
const { manageApiKeyApproval } = await import('./claude-config.mjs').then(function (n) { return n.
|
|
452
|
+
const { manageApiKeyApproval } = await import('./claude-config.mjs').then(function (n) { return n.j; });
|
|
453
453
|
const apiKey = config.APIKEY || "sk-ccjk-x-ccr";
|
|
454
454
|
manageApiKeyApproval(apiKey);
|
|
455
455
|
console.log(a.green(`\u2714 ${i18n.t("ccr:apiKeyApprovalSuccess")}`));
|
|
@@ -79,10 +79,12 @@ const LEGACY_ZCF_CONFIG_FILES = [
|
|
|
79
79
|
];
|
|
80
80
|
const ZCF_CONFIG_DIR = CCJK_CONFIG_DIR;
|
|
81
81
|
const ZCF_CONFIG_FILE = CCJK_CONFIG_FILE;
|
|
82
|
-
const CODE_TOOL_TYPES = ["claude-code", "codex", "aider", "continue", "cline", "cursor"];
|
|
82
|
+
const CODE_TOOL_TYPES = ["claude-code", "myclaude", "codex", "aider", "continue", "cline", "cursor"];
|
|
83
83
|
const DEFAULT_CODE_TOOL_TYPE = "claude-code";
|
|
84
|
+
const CLAUDE_FAMILY_CODE_TOOL_TYPES = ["claude-code", "myclaude"];
|
|
84
85
|
const CODE_TOOL_BANNERS = {
|
|
85
86
|
"claude-code": "for Claude Code",
|
|
87
|
+
"myclaude": "for myclaude",
|
|
86
88
|
"codex": "for Codex",
|
|
87
89
|
"aider": "for Aider",
|
|
88
90
|
"continue": "for Continue",
|
|
@@ -91,15 +93,189 @@ const CODE_TOOL_BANNERS = {
|
|
|
91
93
|
};
|
|
92
94
|
const CODE_TOOL_ALIASES = {
|
|
93
95
|
cc: "claude-code",
|
|
96
|
+
mc: "myclaude",
|
|
97
|
+
mycode: "myclaude",
|
|
94
98
|
cx: "codex",
|
|
95
99
|
ad: "aider",
|
|
96
100
|
ct: "continue",
|
|
97
101
|
cl: "cline",
|
|
98
102
|
cu: "cursor"
|
|
99
103
|
};
|
|
104
|
+
const CODE_TOOL_INFO = {
|
|
105
|
+
"claude-code": {
|
|
106
|
+
name: "Claude Code",
|
|
107
|
+
description: "Anthropic official CLI for Claude",
|
|
108
|
+
website: "https://claude.ai/code",
|
|
109
|
+
installCmd: "npm install -g @anthropic-ai/claude-code",
|
|
110
|
+
configFormat: "json",
|
|
111
|
+
category: "cli",
|
|
112
|
+
runtimeCommand: "claude",
|
|
113
|
+
configBackend: "claude-family",
|
|
114
|
+
nativeSlashCommands: [
|
|
115
|
+
"/help",
|
|
116
|
+
"/clear",
|
|
117
|
+
"/exit",
|
|
118
|
+
"/quit",
|
|
119
|
+
"/resume",
|
|
120
|
+
"/compact",
|
|
121
|
+
"/context",
|
|
122
|
+
"/status",
|
|
123
|
+
"/plan",
|
|
124
|
+
"/execute",
|
|
125
|
+
"/rewind",
|
|
126
|
+
"/mcp",
|
|
127
|
+
"/doctor",
|
|
128
|
+
"/settings",
|
|
129
|
+
"/config",
|
|
130
|
+
"/version",
|
|
131
|
+
"/agents",
|
|
132
|
+
"/skills",
|
|
133
|
+
"/commands",
|
|
134
|
+
"/tasks",
|
|
135
|
+
"/memory",
|
|
136
|
+
"/memories",
|
|
137
|
+
"/model",
|
|
138
|
+
"/cost",
|
|
139
|
+
"/permissions",
|
|
140
|
+
"/hooks",
|
|
141
|
+
"/init",
|
|
142
|
+
"/login",
|
|
143
|
+
"/logout",
|
|
144
|
+
"/bug",
|
|
145
|
+
"/terminal",
|
|
146
|
+
"/ide",
|
|
147
|
+
"/review",
|
|
148
|
+
"/pr",
|
|
149
|
+
"/vim",
|
|
150
|
+
"/listen",
|
|
151
|
+
"/add",
|
|
152
|
+
"/install",
|
|
153
|
+
"/allowed-tools",
|
|
154
|
+
"/think",
|
|
155
|
+
"/thinking"
|
|
156
|
+
],
|
|
157
|
+
managesProviderProfiles: false
|
|
158
|
+
},
|
|
159
|
+
"myclaude": {
|
|
160
|
+
name: "myclaude",
|
|
161
|
+
description: "Provider-first Claude-family coding CLI",
|
|
162
|
+
website: "https://github.com/mycode699/myclaude-code",
|
|
163
|
+
installCmd: "npm install -g myclaude-code && myclaude install --force",
|
|
164
|
+
configFormat: "json",
|
|
165
|
+
category: "cli",
|
|
166
|
+
runtimeCommand: "myclaude",
|
|
167
|
+
configBackend: "claude-family",
|
|
168
|
+
nativeSlashCommands: [
|
|
169
|
+
"/help",
|
|
170
|
+
"/clear",
|
|
171
|
+
"/exit",
|
|
172
|
+
"/quit",
|
|
173
|
+
"/resume",
|
|
174
|
+
"/compact",
|
|
175
|
+
"/context",
|
|
176
|
+
"/status",
|
|
177
|
+
"/plan",
|
|
178
|
+
"/execute",
|
|
179
|
+
"/rewind",
|
|
180
|
+
"/mcp",
|
|
181
|
+
"/doctor",
|
|
182
|
+
"/settings",
|
|
183
|
+
"/config",
|
|
184
|
+
"/version",
|
|
185
|
+
"/agents",
|
|
186
|
+
"/skills",
|
|
187
|
+
"/commands",
|
|
188
|
+
"/tasks",
|
|
189
|
+
"/memory",
|
|
190
|
+
"/memories",
|
|
191
|
+
"/model",
|
|
192
|
+
"/cost",
|
|
193
|
+
"/permissions",
|
|
194
|
+
"/hooks",
|
|
195
|
+
"/init",
|
|
196
|
+
"/login",
|
|
197
|
+
"/logout",
|
|
198
|
+
"/bug",
|
|
199
|
+
"/terminal",
|
|
200
|
+
"/ide",
|
|
201
|
+
"/review",
|
|
202
|
+
"/pr",
|
|
203
|
+
"/vim",
|
|
204
|
+
"/listen",
|
|
205
|
+
"/add",
|
|
206
|
+
"/install",
|
|
207
|
+
"/allowed-tools",
|
|
208
|
+
"/think",
|
|
209
|
+
"/thinking",
|
|
210
|
+
"/provider",
|
|
211
|
+
"/team",
|
|
212
|
+
"/mao"
|
|
213
|
+
],
|
|
214
|
+
managesProviderProfiles: true
|
|
215
|
+
},
|
|
216
|
+
"codex": {
|
|
217
|
+
name: "Codex",
|
|
218
|
+
description: "OpenAI Codex CLI",
|
|
219
|
+
website: "https://openai.com/codex",
|
|
220
|
+
installCmd: "npm install -g @openai/codex",
|
|
221
|
+
configFormat: "toml",
|
|
222
|
+
category: "cli",
|
|
223
|
+
runtimeCommand: "codex",
|
|
224
|
+
configBackend: "tool-specific"
|
|
225
|
+
},
|
|
226
|
+
"aider": {
|
|
227
|
+
name: "Aider",
|
|
228
|
+
description: "AI pair programming in terminal",
|
|
229
|
+
website: "https://aider.chat",
|
|
230
|
+
installCmd: "pip install aider-chat",
|
|
231
|
+
configFormat: "yaml",
|
|
232
|
+
category: "cli",
|
|
233
|
+
runtimeCommand: "aider",
|
|
234
|
+
configBackend: "tool-specific"
|
|
235
|
+
},
|
|
236
|
+
"continue": {
|
|
237
|
+
name: "Continue",
|
|
238
|
+
description: "Open-source AI code assistant",
|
|
239
|
+
website: "https://continue.dev",
|
|
240
|
+
installCmd: "pip install continuedev",
|
|
241
|
+
configFormat: "json",
|
|
242
|
+
category: "extension",
|
|
243
|
+
runtimeCommand: "continue",
|
|
244
|
+
configBackend: "tool-specific"
|
|
245
|
+
},
|
|
246
|
+
"cline": {
|
|
247
|
+
name: "Cline",
|
|
248
|
+
description: "Autonomous coding agent for VS Code",
|
|
249
|
+
website: "https://cline.bot",
|
|
250
|
+
installCmd: "code --install-extension saoudrizwan.claude-dev",
|
|
251
|
+
configFormat: "json",
|
|
252
|
+
category: "extension",
|
|
253
|
+
runtimeCommand: "cline",
|
|
254
|
+
configBackend: "tool-specific"
|
|
255
|
+
},
|
|
256
|
+
"cursor": {
|
|
257
|
+
name: "Cursor CLI",
|
|
258
|
+
description: "AI-first code editor CLI",
|
|
259
|
+
website: "https://cursor.com/cli",
|
|
260
|
+
installCmd: "curl https://cursor.com/install -fsSL | bash",
|
|
261
|
+
configFormat: "json",
|
|
262
|
+
category: "editor",
|
|
263
|
+
runtimeCommand: "cursor",
|
|
264
|
+
configBackend: "tool-specific"
|
|
265
|
+
}
|
|
266
|
+
};
|
|
100
267
|
function isCodeToolType(value) {
|
|
101
268
|
return CODE_TOOL_TYPES.includes(value);
|
|
102
269
|
}
|
|
270
|
+
function isClaudeFamilyCodeTool(value) {
|
|
271
|
+
return CLAUDE_FAMILY_CODE_TOOL_TYPES.includes(value);
|
|
272
|
+
}
|
|
273
|
+
function getCodeToolRuntimeCommand(codeTool) {
|
|
274
|
+
return CODE_TOOL_INFO[codeTool].runtimeCommand;
|
|
275
|
+
}
|
|
276
|
+
function getCodeToolNativeSlashCommands(codeTool) {
|
|
277
|
+
return CODE_TOOL_INFO[codeTool].nativeSlashCommands || [];
|
|
278
|
+
}
|
|
103
279
|
const API_DEFAULT_URL = "https://api.anthropic.com";
|
|
104
280
|
function resolveCodeToolType(value) {
|
|
105
281
|
if (isCodeToolType(value)) {
|
|
@@ -133,4 +309,4 @@ function getAiOutputLanguageLabel(lang) {
|
|
|
133
309
|
return lang;
|
|
134
310
|
}
|
|
135
311
|
|
|
136
|
-
export { AIDER_DIR, AI_OUTPUT_LANGUAGES, API_DEFAULT_URL, CCJK_CLOUD_API_URL, CCJK_CLOUD_PLUGINS_CACHE_DIR, CCJK_CLOUD_PLUGINS_DIR, CCJK_CLOUD_PLUGINS_INSTALLED_DIR, CCJK_CONFIG_DIR, CCJK_CONFIG_FILE, CCJK_PLUGINS_DIR, CCJK_SKILLS_DIR, CLAUDE_AGENTS_DIR, CLAUDE_DIR, CLAUDE_VSC_CONFIG_FILE, CLINE_DIR, CLOUD_ENDPOINTS, CODEX_AGENTS_FILE, CODEX_AUTH_FILE, CODEX_CONFIG_FILE, CODEX_DIR, CODEX_PROMPTS_DIR, CODE_TOOL_ALIASES, CODE_TOOL_BANNERS, CODE_TOOL_TYPES, CONTINUE_DIR, CURSOR_DIR, ClAUDE_CONFIG_FILE, DEFAULT_CODE_TOOL_TYPE, LANG_LABELS, LEGACY_ZCF_CONFIG_DIR, LEGACY_ZCF_CONFIG_FILE, LEGACY_ZCF_CONFIG_FILES, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_DIR, ZCF_CONFIG_FILE, getAiOutputLanguageLabel, getCloudApiUrl, getCloudBaseUrl, isCodeToolType, resolveCodeToolType };
|
|
312
|
+
export { AIDER_DIR, AI_OUTPUT_LANGUAGES, API_DEFAULT_URL, CCJK_CLOUD_API_URL, CCJK_CLOUD_PLUGINS_CACHE_DIR, CCJK_CLOUD_PLUGINS_DIR, CCJK_CLOUD_PLUGINS_INSTALLED_DIR, CCJK_CONFIG_DIR, CCJK_CONFIG_FILE, CCJK_PLUGINS_DIR, CCJK_SKILLS_DIR, CLAUDE_AGENTS_DIR, CLAUDE_DIR, CLAUDE_FAMILY_CODE_TOOL_TYPES, CLAUDE_VSC_CONFIG_FILE, CLINE_DIR, CLOUD_ENDPOINTS, CODEX_AGENTS_FILE, CODEX_AUTH_FILE, CODEX_CONFIG_FILE, CODEX_DIR, CODEX_PROMPTS_DIR, CODE_TOOL_ALIASES, CODE_TOOL_BANNERS, CODE_TOOL_INFO, CODE_TOOL_TYPES, CONTINUE_DIR, CURSOR_DIR, ClAUDE_CONFIG_FILE, DEFAULT_CODE_TOOL_TYPE, LANG_LABELS, LEGACY_ZCF_CONFIG_DIR, LEGACY_ZCF_CONFIG_FILE, LEGACY_ZCF_CONFIG_FILES, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_DIR, ZCF_CONFIG_FILE, getAiOutputLanguageLabel, getCloudApiUrl, getCloudBaseUrl, getCodeToolNativeSlashCommands, getCodeToolRuntimeCommand, isClaudeFamilyCodeTool, isCodeToolType, resolveCodeToolType };
|