ccjk 12.0.5 → 12.0.6
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 +60 -8
- package/package.json +1 -1
package/dist/chunks/menu.mjs
CHANGED
|
@@ -11,6 +11,7 @@ import { r as readMcpConfig } from './claude-config.mjs';
|
|
|
11
11
|
import { r as resolveCodeType } from '../shared/ccjk.BSYWk9ML.mjs';
|
|
12
12
|
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
|
|
13
13
|
import { changeScriptLanguageFeature, mcpManagerFeature, configureMergedPermissionsFeature, configureAiMemoryFeature, configureDefaultModelFeature, configureMcpFeature, configureApiFeature } from './features.mjs';
|
|
14
|
+
import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
|
|
14
15
|
import { p as promptBoolean } from '../shared/ccjk.DOwtZMk8.mjs';
|
|
15
16
|
import { homedir } from 'node:os';
|
|
16
17
|
import { runCcrStop, runCcrStart, runCcrRestart, runCcrStatus, runCcrUi } from './commands.mjs';
|
|
@@ -359,10 +360,11 @@ async function showSimplifiedMenu() {
|
|
|
359
360
|
console.log(` ${a.green("1.")} ${isZh ? "\u5B8C\u6574\u521D\u59CB\u5316" : "Full Init"} ${a.dim(isZh ? "- \u5B89\u88C5 Claude Code + \u5BFC\u5165\u5DE5\u4F5C\u6D41 + \u914D\u7F6E API \u6216 CCR \u4EE3\u7406 + \u914D\u7F6E MCP \u670D\u52A1" : "- Install Claude Code + Import workflows + Configure API or CCR proxy + Configure MCP")}`);
|
|
360
361
|
console.log(` ${a.green("2.")} ${isZh ? "\u5BFC\u5165\u5DE5\u4F5C\u6D41" : "Import Workflows"} ${a.dim(isZh ? "- \u4EC5\u5BFC\u5165/\u66F4\u65B0\u5DE5\u4F5C\u6D41\u76F8\u5173\u6587\u4EF6" : "- Import/update workflow files only")}`);
|
|
361
362
|
console.log(` ${a.green("3.")} ${isZh ? "\u914D\u7F6E API \u6216 CCR \u4EE3\u7406" : "Configure API or CCR Proxy"} ${a.dim(isZh ? "- \u914D\u7F6E API URL\u3001\u8BA4\u8BC1\u4FE1\u606F\u6216 CCR \u4EE3\u7406" : "- Configure API URL, auth info or CCR proxy")}`);
|
|
362
|
-
console.log(` ${a.green("4.")} ${isZh ? "\
|
|
363
|
-
console.log(` ${a.green("5.")} ${isZh ? "\
|
|
364
|
-
console.log(` ${a.green("6.")} ${isZh ? "\u914D\u7F6E
|
|
365
|
-
console.log(` ${a.green("7.")} ${isZh ? "\
|
|
363
|
+
console.log(` ${a.green("4.")} ${isZh ? "\u8FDC\u7A0B\u63A7\u5236\uFF08Web/Telegram\uFF09" : "Remote Control (Web/Telegram)"} ${a.dim(isZh ? "- \u4E00\u952E\u521D\u59CB\u5316 + \u5FEB\u901F\u7ED1\u5B9A + \u4E8C\u7EF4\u7801\u914D\u5BF9\uFF08\u6838\u5FC3\u529F\u80FD\uFF09" : "- One-command setup + quick binding + QR pairing (core feature)")}`);
|
|
364
|
+
console.log(` ${a.green("5.")} ${isZh ? "\u5B89\u88C5/\u66F4\u65B0 MCP \u670D\u52A1" : "Install / Update MCP Services"} ${a.dim(isZh ? "- \u591A\u9009\u5B89\u88C5\u63A8\u8350\u670D\u52A1\uFF0C\u81EA\u52A8\u5408\u5E76/\u4FEE\u590D Windows \u914D\u7F6E" : "- Multi-select & install recommended services, auto-fix Windows config")}`);
|
|
365
|
+
console.log(` ${a.green("6.")} ${isZh ? "\u914D\u7F6E\u9ED8\u8BA4\u6A21\u578B" : "Configure Default Model"} ${a.dim(isZh ? "- \u8BBE\u7F6E\u9ED8\u8BA4\u6A21\u578B\uFF08opus/sonnet/sonnet 1m/\u81EA\u5B9A\u4E49\uFF09" : "- Set default model (opus/sonnet/sonnet 1m/custom)")}`);
|
|
366
|
+
console.log(` ${a.green("7.")} ${isZh ? "\u914D\u7F6E Claude \u5168\u5C40\u8BB0\u5FC6" : "Configure Claude Memory"} ${a.dim(isZh ? "- \u914D\u7F6E AI \u8F93\u51FA\u8BED\u8A00\u548C\u8F93\u51FA\u98CE\u683C" : "- Configure AI output language and style")}`);
|
|
367
|
+
console.log(` ${a.green("8.")} ${isZh ? "\u6743\u9650 & \u73AF\u5883\u914D\u7F6E" : "Permissions & Env Setup"} ${a.dim(isZh ? "- \u5BFC\u5165\u73AF\u5883\u53D8\u91CF / \u5BFC\u5165\u63A8\u8350\u6743\u9650 / \u4E00\u952E\u6743\u9650\u9884\u8BBE\uFF08\u6700\u5927/\u5F00\u53D1\u8005/\u5B89\u5168\uFF09" : "- Import env vars / import permissions / one-click presets (max/dev/safe)")}`);
|
|
366
368
|
console.log("");
|
|
367
369
|
console.log(a.dim(` --------- ${isZh ? "\u5176\u4ED6\u5DE5\u5177" : "Other Tools"} ----------`));
|
|
368
370
|
console.log(` ${a.green("K.")} ${isZh ? "Skills \u7BA1\u7406" : "Skills Manager"} ${a.dim(isZh ? "- \u5B89\u88C5/\u66F4\u65B0/\u5220\u9664\u5DE5\u4F5C\u6D41\u6280\u80FD" : "- Install/update/remove workflow skills")}`);
|
|
@@ -386,7 +388,7 @@ async function showSimplifiedMenu() {
|
|
|
386
388
|
message: isZh ? "\u8BF7\u8F93\u5165\u9009\u9879:" : "Enter option:",
|
|
387
389
|
validate: (value) => {
|
|
388
390
|
const normalized2 = normalizeMenuInput(value);
|
|
389
|
-
const valid = ["0", "1", "2", "3", "4", "5", "6", "7", "k", "m", "a", "p", "r", "s", "-", "+", "d", "h", "q"];
|
|
391
|
+
const valid = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "k", "m", "a", "p", "r", "s", "-", "+", "d", "h", "q"];
|
|
390
392
|
return valid.includes(normalized2) || (isZh ? "\u8BF7\u8F93\u5165\u6709\u6548\u9009\u9879" : "Please enter a valid option");
|
|
391
393
|
}
|
|
392
394
|
});
|
|
@@ -410,18 +412,68 @@ async function showSimplifiedMenu() {
|
|
|
410
412
|
break;
|
|
411
413
|
}
|
|
412
414
|
case "4": {
|
|
413
|
-
|
|
415
|
+
const {
|
|
416
|
+
setupRemote,
|
|
417
|
+
remoteStatus,
|
|
418
|
+
showQRCode,
|
|
419
|
+
doctorRemote
|
|
420
|
+
} = await import('./remote.mjs');
|
|
421
|
+
const { remoteAction } = await inquirer.prompt({
|
|
422
|
+
type: "list",
|
|
423
|
+
name: "remoteAction",
|
|
424
|
+
message: isZh ? "\u8FDC\u7A0B\u63A7\u5236\uFF1A\u8BF7\u9009\u62E9\u64CD\u4F5C" : "Remote Control: Select action",
|
|
425
|
+
choices: addNumbersToChoices([
|
|
426
|
+
{
|
|
427
|
+
name: isZh ? "\u4E00\u952E\u521D\u59CB\u5316\u5E76\u7ED1\u5B9A\uFF08\u63A8\u8350\uFF09" : "One-command setup & bind (recommended)",
|
|
428
|
+
value: "setup"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
name: isZh ? "\u663E\u793A\u914D\u5BF9\u4E8C\u7EF4\u7801\uFF08App/Web\uFF09" : "Show pairing QR code (App/Web)",
|
|
432
|
+
value: "qr"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
name: isZh ? "\u67E5\u770B\u8FDC\u7A0B\u72B6\u6001" : "Show remote status",
|
|
436
|
+
value: "status"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
name: isZh ? "\u8FDC\u7A0B\u8BCA\u65AD\uFF08Doctor\uFF09" : "Remote doctor",
|
|
440
|
+
value: "doctor"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: isZh ? "\u8FD4\u56DE" : "Back",
|
|
444
|
+
value: "back"
|
|
445
|
+
}
|
|
446
|
+
])
|
|
447
|
+
});
|
|
448
|
+
switch (remoteAction) {
|
|
449
|
+
case "setup":
|
|
450
|
+
await setupRemote();
|
|
451
|
+
break;
|
|
452
|
+
case "qr":
|
|
453
|
+
await showQRCode();
|
|
454
|
+
break;
|
|
455
|
+
case "status":
|
|
456
|
+
await remoteStatus();
|
|
457
|
+
break;
|
|
458
|
+
case "doctor":
|
|
459
|
+
await doctorRemote();
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
414
462
|
break;
|
|
415
463
|
}
|
|
416
464
|
case "5": {
|
|
417
|
-
await
|
|
465
|
+
await configureMcpFeature();
|
|
418
466
|
break;
|
|
419
467
|
}
|
|
420
468
|
case "6": {
|
|
421
|
-
await
|
|
469
|
+
await configureDefaultModelFeature();
|
|
422
470
|
break;
|
|
423
471
|
}
|
|
424
472
|
case "7": {
|
|
473
|
+
await configureAiMemoryFeature();
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
case "8": {
|
|
425
477
|
await configureMergedPermissionsFeature();
|
|
426
478
|
break;
|
|
427
479
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccjk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "12.0.
|
|
4
|
+
"version": "12.0.6",
|
|
5
5
|
"packageManager": "pnpm@10.17.1",
|
|
6
6
|
"description": "CLI toolkit for Claude Code and Codex setup. Simplifies MCP service installation, API configuration, workflow management, and multi-provider support with guided interactive setup.",
|
|
7
7
|
"author": {
|