ccjk 9.3.19 → 9.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.
@@ -373,17 +373,18 @@ function showHelpDocumentation(isZh) {
373
373
  async function showSimplifiedMenu() {
374
374
  const lang = i18n.language;
375
375
  const isZh = lang === "zh-CN";
376
+ const coreTitle = isZh ? "\u{1F511} \u6838\u5FC3\u529F\u80FD (Core)" : "\u{1F511} Core Features";
376
377
  const quickStartTitle = isZh ? "\u{1F680} \u5FEB\u901F\u5F00\u59CB (Quick Start)" : "\u{1F680} Quick Start";
377
378
  const advancedTitle = isZh ? "\u{1F4E6} \u9AD8\u7EA7\u529F\u80FD (Advanced)" : "\u{1F4E6} Advanced";
378
379
  const systemTitle = isZh ? "\u2699\uFE0F \u7CFB\u7EDF\u8BBE\u7F6E (System)" : "\u2699\uFE0F System";
379
- const quickSetupName = isZh ? "1. \u26A1 \u4E00\u952E\u914D\u7F6E" : "1. \u26A1 Quick Setup";
380
- const quickSetupDesc = isZh ? "\u81EA\u52A8\u5B8C\u6210\u6240\u6709\u914D\u7F6E" : "Auto-configure everything";
381
- const doctorName = isZh ? "2. \u{1F527} \u4E00\u952E\u4F53\u68C0" : "2. \u{1F527} Diagnostics";
380
+ const apiName = isZh ? "1. \u{1F511} API \u914D\u7F6E" : "1. \u{1F511} API Config";
381
+ const apiDesc = isZh ? "\u4E00\u952E\u914D\u7F6E API (\u6838\u5FC3\u529F\u80FD)" : "One-click API setup (core feature)";
382
+ const quickSetupName = isZh ? "2. \u26A1 \u4E00\u952E\u521D\u59CB\u5316" : "2. \u26A1 Quick Init";
383
+ const quickSetupDesc = isZh ? "\u521D\u59CB\u5316\u9879\u76EE\u914D\u7F6E" : "Initialize project config";
384
+ const doctorName = isZh ? "3. \u{1F527} \u4E00\u952E\u4F53\u68C0" : "3. \u{1F527} Diagnostics";
382
385
  const doctorDesc = isZh ? "\u8BCA\u65AD\u95EE\u9898\u5E76\u81EA\u52A8\u4FEE\u590D" : "Diagnose issues and auto-fix";
383
- const updateName = isZh ? "3. \u{1F504} \u4E00\u952E\u66F4\u65B0" : "3. \u{1F504} Update All";
386
+ const updateName = isZh ? "4. \u{1F504} \u4E00\u952E\u66F4\u65B0" : "4. \u{1F504} Update All";
384
387
  const updateDesc = isZh ? "\u66F4\u65B0\u6240\u6709\u7EC4\u4EF6\u5230\u6700\u65B0\u7248\u672C" : "Update all components to latest";
385
- const apiName = isZh ? "4. \u{1F511} API \u7BA1\u7406" : "4. \u{1F511} API Manager";
386
- const apiDesc = isZh ? "\u914D\u7F6E API URL\u3001\u8BA4\u8BC1\u4FE1\u606F\u6216 CCR \u4EE3\u7406" : "Configure API URL, auth or CCR proxy";
387
388
  const skillsName = isZh ? "5. \u{1F4DA} Skills \u7BA1\u7406" : "5. \u{1F4DA} Skills Manager";
388
389
  const skillsDesc = isZh ? "\u5B89\u88C5/\u66F4\u65B0/\u5220\u9664\u5DE5\u4F5C\u6D41\u6280\u80FD" : "Install/update/remove workflow skills";
389
390
  const mcpName = isZh ? "6. \u{1F50C} MCP \u7BA1\u7406" : "6. \u{1F50C} MCP Manager";
@@ -398,6 +399,10 @@ async function showSimplifiedMenu() {
398
399
  const helpDesc = isZh ? "\u67E5\u770B\u4F7F\u7528\u6307\u5357" : "View user guide";
399
400
  const exitText = isZh ? "0. \u{1F6AA} \u9000\u51FA" : "0. \u{1F6AA} Exit";
400
401
  console.log("");
402
+ console.log(ansis.bold.yellow(coreTitle));
403
+ console.log(ansis.dim("\u2500".repeat(50)));
404
+ console.log(` ${ansis.yellow.bold(apiName)} ${ansis.dim(`- ${apiDesc}`)}`);
405
+ console.log("");
401
406
  console.log(ansis.bold.green(quickStartTitle));
402
407
  console.log(ansis.dim("\u2500".repeat(50)));
403
408
  console.log(` ${ansis.green(quickSetupName)} ${ansis.dim(`- ${quickSetupDesc}`)}`);
@@ -406,7 +411,6 @@ async function showSimplifiedMenu() {
406
411
  console.log("");
407
412
  console.log(ansis.bold.green(advancedTitle));
408
413
  console.log(ansis.dim("\u2500".repeat(50)));
409
- console.log(` ${ansis.green(apiName)} ${ansis.dim(`- ${apiDesc}`)}`);
410
414
  console.log(` ${ansis.green(skillsName)} ${ansis.dim(`- ${skillsDesc}`)}`);
411
415
  console.log(` ${ansis.green(mcpName)} ${ansis.dim(`- ${mcpDesc}`)}`);
412
416
  console.log(` ${ansis.green(agentsName)} ${ansis.dim(`- ${agentsDesc}`)}`);
@@ -436,39 +440,42 @@ async function showSimplifiedMenu() {
436
440
  const normalized = normalizeMenuInput(choice);
437
441
  switch (normalized) {
438
442
  // ═══════════════════════════════════════════════════
439
- // 🚀 Quick Start (1-3)
443
+ // 🔑 Core (1) - API 配置是核心卖点
440
444
  // ═══════════════════════════════════════════════════
441
445
  case "1": {
442
446
  console.log("");
443
- console.log(ansis.green(isZh ? "\u26A1 \u4E00\u952E\u914D\u7F6E..." : "\u26A1 Quick Setup..."));
447
+ console.log(ansis.yellow.bold(isZh ? "\u{1F511} API \u914D\u7F6E..." : "\u{1F511} API Config..."));
444
448
  console.log("");
445
449
  await showApiConfigMenu();
446
450
  break;
447
451
  }
452
+ // ═══════════════════════════════════════════════════
453
+ // 🚀 Quick Start (2-4)
454
+ // ═══════════════════════════════════════════════════
448
455
  case "2": {
449
456
  console.log("");
450
- console.log(ansis.green(isZh ? "\u{1F527} \u4E00\u952E\u4F53\u68C0..." : "\u{1F527} Running Diagnostics..."));
457
+ console.log(ansis.green(isZh ? "\u26A1 \u4E00\u952E\u521D\u59CB\u5316..." : "\u26A1 Quick Init..."));
451
458
  console.log("");
452
- await doctor();
459
+ await simplifiedInit({ skipPrompt: false });
453
460
  break;
454
461
  }
455
462
  case "3": {
456
463
  console.log("");
457
- console.log(ansis.green(isZh ? "\u{1F504} \u4E00\u952E\u66F4\u65B0..." : "\u{1F504} Updating All..."));
464
+ console.log(ansis.green(isZh ? "\u{1F527} \u4E00\u952E\u4F53\u68C0..." : "\u{1F527} Running Diagnostics..."));
458
465
  console.log("");
459
- await update({ skipBanner: true });
466
+ await doctor();
460
467
  break;
461
468
  }
462
- // ═══════════════════════════════════════════════════
463
- // 📦 Advanced (4-8)
464
- // ═══════════════════════════════════════════════════
465
469
  case "4": {
466
470
  console.log("");
467
- console.log(ansis.green(isZh ? "\u{1F511} API \u7BA1\u7406..." : "\u{1F511} API Manager..."));
471
+ console.log(ansis.green(isZh ? "\u{1F504} \u4E00\u952E\u66F4\u65B0..." : "\u{1F504} Updating All..."));
468
472
  console.log("");
469
- await showApiConfigMenu();
473
+ await update({ skipBanner: true });
470
474
  break;
471
475
  }
476
+ // ═══════════════════════════════════════════════════
477
+ // 📦 Advanced (5-8)
478
+ // ═══════════════════════════════════════════════════
472
479
  case "5": {
473
480
  console.log("");
474
481
  console.log(ansis.green(isZh ? "\u{1F4DA} Skills \u7BA1\u7406..." : "\u{1F4DA} Skills Manager..."));
@@ -1,4 +1,4 @@
1
- const version = "9.3.19";
1
+ const version = "9.3.23";
2
2
  const homepage = "https://github.com/miounet11/ccjk";
3
3
 
4
4
  export { homepage, version };
@@ -1,6 +1,96 @@
1
1
  {
2
+ "oneClick": {
3
+ "title": "CCJK Quick Actions",
4
+ "setup": "Quick Setup",
5
+ "setupDesc": "Auto-configure everything (API Key required)",
6
+ "fix": "Diagnostics",
7
+ "fixDesc": "Diagnose issues and auto-fix",
8
+ "fixComplete": "Diagnostics complete! All issues fixed.",
9
+ "update": "Update All",
10
+ "updateDesc": "Update all components to latest version",
11
+ "updateComplete": "Update complete! All components are up to date.",
12
+ "notify": "Notifications",
13
+ "notifyDesc": "View system notifications and announcements",
14
+ "running": "Running..."
15
+ },
16
+ "moreMenu": {
17
+ "title": "More Features",
18
+ "extensions": "Extensions",
19
+ "config": "Configuration",
20
+ "system": "System Settings"
21
+ },
22
+ "categorizedMenu": {
23
+ "mcpMarket": "MCP Market",
24
+ "mcpMarketDesc": "Browse and install MCP services",
25
+ "marketplace": "Marketplace",
26
+ "marketplaceDesc": "Browse and install extension packages",
27
+ "diagnostics": "Diagnostics",
28
+ "diagnosticsDesc": "Run system diagnostics",
29
+ "workspace": "Workspace Diagnostics",
30
+ "workspaceDesc": "Check workspace configuration"
31
+ },
32
+ "pluginsMenu": {
33
+ "ccr": "CCR Router",
34
+ "ccrDesc": "Claude Code Router proxy",
35
+ "ccusage": "Usage Stats",
36
+ "ccusageDesc": "View API usage statistics",
37
+ "cometix": "Cometix",
38
+ "cometixDesc": "Cometix tool integration",
39
+ "superpowers": "Superpowers",
40
+ "superpowersDesc": "Enhanced skill packs"
41
+ },
42
+ "menuOptions": {
43
+ "changeLanguage": "Change Language / 切换语言",
44
+ "switchCodeTool": "Switch Code Tool",
45
+ "uninstall": "Uninstall CCJK",
46
+ "mcpMarket": "MCP Market",
47
+ "marketplace": "Marketplace",
48
+ "hooksSync": "Hooks Sync",
49
+ "quickActions": "Quick Actions",
50
+ "smartGuide": "Smart Guide",
51
+ "workflowsAndSkills": "Workflows & Skills",
52
+ "outputStyles": "Output Styles",
53
+ "doctor": "Health Check"
54
+ },
55
+ "menuDescriptions": {
56
+ "changeLanguage": "Switch interface language",
57
+ "switchCodeTool": "Switch between different code tools",
58
+ "uninstall": "Uninstall CCJK and related configurations",
59
+ "mcpMarket": "Browse and install MCP services",
60
+ "marketplace": "Browse and install extension packages",
61
+ "hooksSync": "Sync Git Hooks configuration",
62
+ "quickActions": "Quick access to common operations",
63
+ "smartGuide": "Smart configuration guide",
64
+ "workflowsAndSkills": "Manage workflows and skills",
65
+ "outputStyles": "Configure output styles",
66
+ "doctor": "Run environment health check"
67
+ },
2
68
  "menu": {
3
69
  "title": "CCJK Main Menu",
70
+ "menuSections": {
71
+ "quickStart": "🚀 Core Features",
72
+ "configCenter": "⚙️ Configuration Center",
73
+ "extensions": "🔌 Extensions",
74
+ "smartFeatures": "✨ Smart Features",
75
+ "cloudServices": "☁️ Cloud Services",
76
+ "systemSettings": "🛠️ System Settings"
77
+ },
78
+ "configCenter": {
79
+ "api": "API Configuration",
80
+ "apiDesc": "One-click API key setup (Anthropic/OpenRouter/Custom)",
81
+ "mcp": "MCP Configuration",
82
+ "mcpDesc": "Configure Model Context Protocol services",
83
+ "model": "Model Configuration",
84
+ "modelDesc": "Select and configure AI models",
85
+ "memory": "Memory Configuration",
86
+ "memoryDesc": "Configure conversation memory settings",
87
+ "permission": "Permission Configuration",
88
+ "permissionDesc": "Manage tool and file permissions",
89
+ "configSwitch": "Config Switch",
90
+ "configSwitchDesc": "Switch between configuration profiles",
91
+ "context": "Context Configuration",
92
+ "contextDesc": "Configure context window and limits"
93
+ },
4
94
  "quickStart": {
5
95
  "title": "🚀 Quick Start",
6
96
  "items": {
@@ -1,6 +1,96 @@
1
1
  {
2
+ "oneClick": {
3
+ "title": "CCJK 快速操作",
4
+ "setup": "一键配置",
5
+ "setupDesc": "自动完成所有配置(仅需 API Key)",
6
+ "fix": "一键体检",
7
+ "fixDesc": "诊断问题并自动修复",
8
+ "fixComplete": "体检完成!所有问题已修复。",
9
+ "update": "一键更新",
10
+ "updateDesc": "更新所有组件到最新版本",
11
+ "updateComplete": "更新完成!所有组件已是最新版本。",
12
+ "notify": "通知中心",
13
+ "notifyDesc": "查看系统通知和公告",
14
+ "running": "正在执行..."
15
+ },
16
+ "moreMenu": {
17
+ "title": "更多功能",
18
+ "extensions": "扩展工具",
19
+ "config": "配置选项",
20
+ "system": "系统设置"
21
+ },
22
+ "categorizedMenu": {
23
+ "mcpMarket": "MCP 市场",
24
+ "mcpMarketDesc": "浏览和安装 MCP 服务",
25
+ "marketplace": "扩展市场",
26
+ "marketplaceDesc": "浏览和安装扩展包",
27
+ "diagnostics": "诊断工具",
28
+ "diagnosticsDesc": "运行系统诊断",
29
+ "workspace": "工作区诊断",
30
+ "workspaceDesc": "检查工作区配置"
31
+ },
32
+ "pluginsMenu": {
33
+ "ccr": "CCR 路由",
34
+ "ccrDesc": "Claude Code Router 代理",
35
+ "ccusage": "用量统计",
36
+ "ccusageDesc": "查看 API 使用统计",
37
+ "cometix": "Cometix",
38
+ "cometixDesc": "Cometix 工具集成",
39
+ "superpowers": "Superpowers",
40
+ "superpowersDesc": "增强技能包"
41
+ },
42
+ "menuOptions": {
43
+ "changeLanguage": "切换语言 / Change Language",
44
+ "switchCodeTool": "切换代码工具",
45
+ "uninstall": "卸载 CCJK",
46
+ "mcpMarket": "MCP 市场",
47
+ "marketplace": "扩展市场",
48
+ "hooksSync": "Hooks 同步",
49
+ "quickActions": "快速操作",
50
+ "smartGuide": "智能引导",
51
+ "workflowsAndSkills": "工作流与技能",
52
+ "outputStyles": "输出样式",
53
+ "doctor": "健康检查"
54
+ },
55
+ "menuDescriptions": {
56
+ "changeLanguage": "切换界面语言",
57
+ "switchCodeTool": "在不同代码工具之间切换",
58
+ "uninstall": "卸载 CCJK 及相关配置",
59
+ "mcpMarket": "浏览和安装 MCP 服务",
60
+ "marketplace": "浏览和安装扩展包",
61
+ "hooksSync": "同步 Git Hooks 配置",
62
+ "quickActions": "常用操作快捷入口",
63
+ "smartGuide": "智能配置引导",
64
+ "workflowsAndSkills": "管理工作流和技能",
65
+ "outputStyles": "配置输出样式",
66
+ "doctor": "运行环境健康检查"
67
+ },
2
68
  "menu": {
3
69
  "title": "CCJK 主菜单",
70
+ "menuSections": {
71
+ "quickStart": "🚀 核心功能",
72
+ "configCenter": "⚙️ 配置中心",
73
+ "extensions": "🔌 扩展工具",
74
+ "smartFeatures": "✨ 智能功能",
75
+ "cloudServices": "☁️ 云服务",
76
+ "systemSettings": "🛠️ 系统设置"
77
+ },
78
+ "configCenter": {
79
+ "api": "API 配置",
80
+ "apiDesc": "一键配置 API 密钥(Anthropic/OpenRouter/自定义)",
81
+ "mcp": "MCP 配置",
82
+ "mcpDesc": "配置 Model Context Protocol 服务",
83
+ "model": "模型配置",
84
+ "modelDesc": "选择和配置 AI 模型",
85
+ "memory": "记忆配置",
86
+ "memoryDesc": "配置对话记忆设置",
87
+ "permission": "权限配置",
88
+ "permissionDesc": "管理工具和文件权限",
89
+ "configSwitch": "配置切换",
90
+ "configSwitchDesc": "在配置文件之间切换",
91
+ "context": "上下文配置",
92
+ "contextDesc": "配置上下文窗口和限制"
93
+ },
4
94
  "quickStart": {
5
95
  "title": "🚀 快速开始",
6
96
  "items": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ccjk",
3
3
  "type": "module",
4
- "version": "9.3.19",
4
+ "version": "9.3.23",
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": {