ccjk 12.0.0 → 12.0.2

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.
Files changed (161) hide show
  1. package/dist/chunks/agent-teams.mjs +17 -18
  2. package/dist/chunks/agent.mjs +105 -102
  3. package/dist/chunks/agents.mjs +87 -77
  4. package/dist/chunks/api-cli.mjs +41 -27
  5. package/dist/chunks/api-providers.mjs +2 -4
  6. package/dist/chunks/api.mjs +22 -11
  7. package/dist/chunks/auto-bootstrap.mjs +3 -5
  8. package/dist/chunks/auto-init.mjs +3 -4
  9. package/dist/chunks/auto-updater.mjs +103 -91
  10. package/dist/chunks/banner.mjs +41 -42
  11. package/dist/chunks/boost.mjs +30 -31
  12. package/dist/chunks/ccjk-agents.mjs +6 -9
  13. package/dist/chunks/ccjk-all.mjs +703 -85
  14. package/dist/chunks/ccjk-config.mjs +6 -6
  15. package/dist/chunks/ccjk-hooks.mjs +20 -9
  16. package/dist/chunks/ccjk-mcp.mjs +64 -52
  17. package/dist/chunks/ccjk-setup.mjs +35 -25
  18. package/dist/chunks/ccjk-skills.mjs +51 -41
  19. package/dist/chunks/ccr.mjs +42 -32
  20. package/dist/chunks/ccu.mjs +16 -12
  21. package/dist/chunks/check-updates.mjs +30 -19
  22. package/dist/chunks/claude-code-config-manager.mjs +25 -10
  23. package/dist/chunks/claude-code-incremental-manager.mjs +65 -51
  24. package/dist/chunks/claude-config.mjs +2 -2
  25. package/dist/chunks/claude-wrapper.mjs +9 -6
  26. package/dist/chunks/cleanup-migration.mjs +1 -1
  27. package/dist/chunks/cli-hook.mjs +10 -3
  28. package/dist/chunks/cloud-sync.mjs +1 -1
  29. package/dist/chunks/codex-config-switch.mjs +58 -45
  30. package/dist/chunks/codex-provider-manager.mjs +29 -16
  31. package/dist/chunks/codex-uninstaller.mjs +5 -6
  32. package/dist/chunks/codex.mjs +89 -89
  33. package/dist/chunks/commands.mjs +28 -29
  34. package/dist/chunks/commands2.mjs +4 -3
  35. package/dist/chunks/commit.mjs +42 -23
  36. package/dist/chunks/completion.mjs +46 -47
  37. package/dist/chunks/config-consolidator.mjs +12 -13
  38. package/dist/chunks/config-switch.mjs +66 -53
  39. package/dist/chunks/config.mjs +10 -10
  40. package/dist/chunks/config2.mjs +53 -42
  41. package/dist/chunks/config3.mjs +107 -93
  42. package/dist/chunks/constants.mjs +2 -4
  43. package/dist/chunks/context-loader.mjs +5 -4
  44. package/dist/chunks/context.mjs +77 -76
  45. package/dist/chunks/convoy-manager.mjs +4 -4
  46. package/dist/chunks/dashboard.mjs +28 -29
  47. package/dist/chunks/doctor.mjs +68 -54
  48. package/dist/chunks/evolution.mjs +37 -38
  49. package/dist/chunks/features.mjs +103 -92
  50. package/dist/chunks/fs-operations.mjs +1 -1
  51. package/dist/chunks/health-alerts.mjs +1 -1
  52. package/dist/chunks/health-check.mjs +1 -1
  53. package/dist/chunks/help.mjs +117 -116
  54. package/dist/chunks/hook-installer.mjs +3 -2
  55. package/dist/chunks/index.mjs +20 -6
  56. package/dist/chunks/index10.mjs +1171 -0
  57. package/dist/chunks/index11.mjs +1008 -0
  58. package/dist/chunks/index12.mjs +193 -0
  59. package/dist/chunks/index13.mjs +218 -0
  60. package/dist/chunks/index14.mjs +663 -0
  61. package/dist/chunks/index2.mjs +19 -10
  62. package/dist/chunks/index3.mjs +19079 -164
  63. package/dist/chunks/index4.mjs +8 -1171
  64. package/dist/chunks/index5.mjs +7479 -884
  65. package/dist/chunks/index6.mjs +160 -184
  66. package/dist/chunks/index7.mjs +3573 -653
  67. package/dist/chunks/index8.mjs +19 -0
  68. package/dist/chunks/index9.mjs +616 -0
  69. package/dist/chunks/init.mjs +173 -173
  70. package/dist/chunks/installer.mjs +92 -82
  71. package/dist/chunks/installer2.mjs +3 -2
  72. package/dist/chunks/interview.mjs +118 -107
  73. package/dist/chunks/json-config.mjs +3 -2
  74. package/dist/chunks/linux.mjs +3863 -0
  75. package/dist/chunks/macos.mjs +69 -0
  76. package/dist/chunks/main.mjs +635 -0
  77. package/dist/chunks/marketplace.mjs +69 -66
  78. package/dist/chunks/mcp-cli.mjs +61 -48
  79. package/dist/chunks/mcp.mjs +140 -127
  80. package/dist/chunks/menu.mjs +85 -85
  81. package/dist/chunks/metrics-display.mjs +41 -40
  82. package/dist/chunks/migrator.mjs +4 -5
  83. package/dist/chunks/monitor.mjs +95 -95
  84. package/dist/chunks/notification.mjs +151 -141
  85. package/dist/chunks/onboarding.mjs +26 -15
  86. package/dist/chunks/package.mjs +1 -1
  87. package/dist/chunks/paradigm.mjs +24 -23
  88. package/dist/chunks/permission-manager.mjs +10 -11
  89. package/dist/chunks/permissions.mjs +72 -57
  90. package/dist/chunks/persistence-manager.mjs +97 -84
  91. package/dist/chunks/persistence.mjs +1 -1
  92. package/dist/chunks/platform.mjs +29 -29
  93. package/dist/chunks/plugin.mjs +104 -105
  94. package/dist/chunks/prompts.mjs +36 -25
  95. package/dist/chunks/providers.mjs +68 -69
  96. package/dist/chunks/quick-actions.mjs +71 -72
  97. package/dist/chunks/quick-provider.mjs +56 -40
  98. package/dist/chunks/quick-setup.mjs +71 -60
  99. package/dist/chunks/remote.mjs +21 -12
  100. package/dist/chunks/session.mjs +116 -103
  101. package/dist/chunks/sessions.mjs +29 -28
  102. package/dist/chunks/silent-updater.mjs +8 -10
  103. package/dist/chunks/simple-config.mjs +13 -10
  104. package/dist/chunks/skill.mjs +8560 -103
  105. package/dist/chunks/skills-sync.mjs +5212 -79
  106. package/dist/chunks/skills.mjs +105 -94
  107. package/dist/chunks/slash-commands.mjs +36 -37
  108. package/dist/chunks/smart-defaults.mjs +7 -3
  109. package/dist/chunks/smart-guide.mjs +1 -1
  110. package/dist/chunks/startup.mjs +2 -4
  111. package/dist/chunks/stats.mjs +41 -42
  112. package/dist/chunks/status.mjs +49 -50
  113. package/dist/chunks/team.mjs +24 -12
  114. package/dist/chunks/thinking.mjs +74 -63
  115. package/dist/chunks/trace.mjs +20 -19
  116. package/dist/chunks/uninstall.mjs +69 -56
  117. package/dist/chunks/update.mjs +39 -28
  118. package/dist/chunks/upgrade-manager.mjs +24 -18
  119. package/dist/chunks/version-checker.mjs +45 -41
  120. package/dist/chunks/vim.mjs +81 -69
  121. package/dist/chunks/windows.mjs +14 -0
  122. package/dist/chunks/workflows.mjs +15 -15
  123. package/dist/chunks/wsl.mjs +129 -0
  124. package/dist/chunks/zero-config.mjs +45 -34
  125. package/dist/cli.mjs +20 -20
  126. package/dist/index.mjs +41 -31
  127. package/dist/shared/ccjk.BAGoDD49.mjs +36 -0
  128. package/dist/shared/ccjk.BBtCGd_g.mjs +899 -0
  129. package/dist/shared/{ccjk.CGcy7cNM.mjs → ccjk.BDKUdmLk.mjs} +1 -1
  130. package/dist/shared/{ccjk.DtMBiwVG.mjs → ccjk.BFxsJM0k.mjs} +1 -1
  131. package/dist/shared/{ccjk.j4uut26D.mjs → ccjk.BIxuVL3_.mjs} +5 -5
  132. package/dist/shared/ccjk.BRZ9ww8S.mjs +142 -0
  133. package/dist/shared/{ccjk.CN0edl87.mjs → ccjk.BSYWk9ML.mjs} +1 -1
  134. package/dist/shared/{ccjk.Dk1HDseQ.mjs → ccjk.BnpWvs9V.mjs} +75 -75
  135. package/dist/shared/ccjk.BoApaI4j.mjs +28 -0
  136. package/dist/shared/{ccjk.DKojSRzw.mjs → ccjk.BrPUmTqm.mjs} +1 -1
  137. package/dist/shared/{ccjk.C10pepYx.mjs → ccjk.BxSmJ8B7.mjs} +1 -1
  138. package/dist/shared/ccjk.Bx_rmYfN.mjs +69 -0
  139. package/dist/shared/ccjk.COweQ1RR.mjs +5 -0
  140. package/dist/shared/{ccjk.BN90X6oc.mjs → ccjk.CePkJq2S.mjs} +17 -17
  141. package/dist/shared/{ccjk.Bvoex4TZ.mjs → ccjk.CfKKcvWy.mjs} +1 -1
  142. package/dist/shared/ccjk.Cjgrln_h.mjs +297 -0
  143. package/dist/shared/ccjk.CxpGa6MC.mjs +2724 -0
  144. package/dist/shared/{ccjk.DfwJOEok.mjs → ccjk.D5MFQT7w.mjs} +1 -1
  145. package/dist/shared/{ccjk.cChAaGgT.mjs → ccjk.DG_o24cZ.mjs} +6 -6
  146. package/dist/shared/{ccjk.bhFAMRyc.mjs → ccjk.DLLw-h4Y.mjs} +32 -32
  147. package/dist/shared/ccjk.DOwtZMk8.mjs +4019 -0
  148. package/dist/shared/{ccjk.BsXQugfY.mjs → ccjk.DTdjs-qK.mjs} +13 -13
  149. package/dist/shared/{ccjk.Bdhyg3X-.mjs → ccjk.DsYaCCx4.mjs} +1 -1
  150. package/dist/shared/ccjk.KfSWcGlE.mjs +38 -0
  151. package/dist/shared/ccjk.RyizuzOI.mjs +21 -0
  152. package/dist/shared/{ccjk.h7_W-wTs.mjs → ccjk.SPoXMvZD.mjs} +1 -1
  153. package/dist/shared/ccjk.T_cX87dY.mjs +15 -0
  154. package/dist/shared/{ccjk.CrB6OYHv.mjs → ccjk._dESH4Rk.mjs} +2 -2
  155. package/dist/shared/ccjk.bQ7Dh1g4.mjs +249 -0
  156. package/dist/shared/{ccjk.CBhIZiPz.mjs → ccjk.hoqrwWdN.mjs} +1 -1
  157. package/dist/shared/{ccjk.BNwRnWYx.mjs → ccjk.s7OCVzdd.mjs} +1230 -33
  158. package/dist/shared/{ccjk.BOIUTf5z.mjs → ccjk.waa2ikKJ.mjs} +8 -9
  159. package/package.json +31 -30
  160. package/dist/shared/ccjk.DHbrGcgg.mjs +0 -13
  161. package/dist/shared/ccjk.DntgA8fQ.mjs +0 -42
@@ -1,33 +1,46 @@
1
- import ansis from 'ansis';
2
- import inquirer from 'inquirer';
1
+ import a from './index2.mjs';
2
+ import { i as inquirer } from './index3.mjs';
3
3
  import { ZCF_CONFIG_FILE, DEFAULT_CODE_TOOL_TYPE, isCodeToolType } from './constants.mjs';
4
- import { i18n, ensureI18nInitialized } from './index3.mjs';
4
+ import { i18n, ensureI18nInitialized } from './index5.mjs';
5
5
  import { readZcfConfig } from './ccjk-config.mjs';
6
- import { r as resolveCodeType } from '../shared/ccjk.CN0edl87.mjs';
7
- import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.j4uut26D.mjs';
6
+ import { r as resolveCodeType } from '../shared/ccjk.BSYWk9ML.mjs';
7
+ import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
8
8
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
9
- import { p as promptBoolean } from '../shared/ccjk.DHbrGcgg.mjs';
9
+ import { p as promptBoolean } from '../shared/ccjk.DOwtZMk8.mjs';
10
10
  import { promises } from 'node:fs';
11
11
  import { homedir } from 'node:os';
12
- import { join } from 'pathe';
13
- import { exec } from 'tinyexec';
12
+ import { exec as q } from './main.mjs';
14
13
  import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
15
- import { m as moveToTrash } from '../shared/ccjk.DntgA8fQ.mjs';
14
+ import { m as moveToTrash } from '../shared/ccjk.BRZ9ww8S.mjs';
15
+ import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
16
+ import '../shared/ccjk.BAGoDD49.mjs';
17
+ import 'node:readline';
18
+ import 'stream';
19
+ import 'node:tty';
16
20
  import 'node:process';
21
+ import 'node:async_hooks';
22
+ import '../shared/ccjk.Cjgrln_h.mjs';
23
+ import 'node:util';
24
+ import 'tty';
25
+ import 'fs';
26
+ import 'child_process';
27
+ import 'node:path';
28
+ import 'node:crypto';
29
+ import 'buffer';
30
+ import 'string_decoder';
17
31
  import 'node:url';
18
- import 'i18next';
19
- import 'i18next-fs-backend';
20
- import 'smol-toml';
32
+ import '../shared/ccjk.BBtCGd_g.mjs';
33
+ import './index6.mjs';
21
34
  import './fs-operations.mjs';
22
- import 'node:crypto';
23
35
  import 'node:fs/promises';
24
- import 'dayjs';
36
+ import '../shared/ccjk.RyizuzOI.mjs';
25
37
  import './smart-defaults.mjs';
26
38
  import 'node:child_process';
27
39
  import './platform.mjs';
28
- import '../shared/ccjk.DKojSRzw.mjs';
29
- import 'inquirer-toggle';
30
- import 'trash';
40
+ import '../shared/ccjk.BrPUmTqm.mjs';
41
+ import 'module';
42
+ import 'node:stream';
43
+ import 'globby';
31
44
 
32
45
  async function pathExists(p) {
33
46
  try {
@@ -262,7 +275,7 @@ class ZcfUninstaller {
262
275
  result.removed.push(".claude-code-router/");
263
276
  }
264
277
  try {
265
- await exec("npm", ["uninstall", "-g", "@musistudio/claude-code-router"]);
278
+ await q("npm", ["uninstall", "-g", "@musistudio/claude-code-router"]);
266
279
  result.removed.push("@musistudio/claude-code-router package");
267
280
  result.success = true;
268
281
  } catch (npmError) {
@@ -290,7 +303,7 @@ class ZcfUninstaller {
290
303
  warnings: []
291
304
  };
292
305
  try {
293
- await exec("npm", ["uninstall", "-g", "@cometix/ccline"]);
306
+ await q("npm", ["uninstall", "-g", "@cometix/ccline"]);
294
307
  result.removed.push("@cometix/ccline package");
295
308
  result.success = true;
296
309
  } catch (error) {
@@ -418,10 +431,10 @@ class ZcfUninstaller {
418
431
  try {
419
432
  const backupPath = await this.createBackupBeforeUninstall();
420
433
  if (backupPath) {
421
- console.log(ansis.green(`
434
+ console.log(a.green(`
422
435
  \u2714 ${i18n.t("uninstall:backupCreated", { path: backupPath })}`));
423
- console.log(ansis.cyan(` ${i18n.t("uninstall:backupLocation")}: ${backupPath}`));
424
- console.log(ansis.gray(` ${i18n.t("uninstall:backupRestoreHint")}`));
436
+ console.log(a.cyan(` ${i18n.t("uninstall:backupLocation")}: ${backupPath}`));
437
+ console.log(a.gray(` ${i18n.t("uninstall:backupRestoreHint")}`));
425
438
  console.log();
426
439
  }
427
440
  const directoriesToRemove = [
@@ -449,7 +462,7 @@ class ZcfUninstaller {
449
462
  ];
450
463
  for (const pkg of packagesToUninstall) {
451
464
  try {
452
- await exec("npm", ["uninstall", "-g", pkg]);
465
+ await q("npm", ["uninstall", "-g", pkg]);
453
466
  result.removed.push(`${pkg} package`);
454
467
  } catch (error) {
455
468
  if (error.message.includes("not found") || error.message.includes("not installed")) {
@@ -590,7 +603,7 @@ async function uninstall(options = {}) {
590
603
  codeType = await resolveCodeType(options.codeType);
591
604
  } catch (error) {
592
605
  const errorMessage = error instanceof Error ? error.message : String(error);
593
- console.error(ansis.red(`${i18n.t("errors:generalError")} ${errorMessage}`));
606
+ console.error(a.red(`${i18n.t("errors:generalError")} ${errorMessage}`));
594
607
  const config = readZcfConfig();
595
608
  codeType = config?.codeToolType && isCodeToolType(config.codeToolType) ? config.codeToolType : DEFAULT_CODE_TOOL_TYPE;
596
609
  }
@@ -627,7 +640,7 @@ async function uninstall(options = {}) {
627
640
  }
628
641
  }
629
642
  async function showInteractiveUninstall(uninstaller) {
630
- console.log(ansis.green.bold(i18n.t("uninstall:title")));
643
+ console.log(a.green.bold(i18n.t("uninstall:title")));
631
644
  console.log("");
632
645
  const { mainChoice } = await inquirer.prompt({
633
646
  type: "list",
@@ -635,19 +648,19 @@ async function showInteractiveUninstall(uninstaller) {
635
648
  message: i18n.t("uninstall:selectMainOption"),
636
649
  choices: addNumbersToChoices([
637
650
  {
638
- name: `${i18n.t("uninstall:completeUninstall")} - ${ansis.gray(i18n.t("uninstall:completeUninstallDesc"))}`,
651
+ name: `${i18n.t("uninstall:completeUninstall")} - ${a.gray(i18n.t("uninstall:completeUninstallDesc"))}`,
639
652
  value: "complete",
640
653
  short: i18n.t("uninstall:completeUninstall")
641
654
  },
642
655
  {
643
- name: `${i18n.t("uninstall:customUninstall")} - ${ansis.gray(i18n.t("uninstall:customUninstallDesc"))}`,
656
+ name: `${i18n.t("uninstall:customUninstall")} - ${a.gray(i18n.t("uninstall:customUninstallDesc"))}`,
644
657
  value: "custom",
645
658
  short: i18n.t("uninstall:customUninstall")
646
659
  }
647
660
  ])
648
661
  });
649
662
  if (!mainChoice) {
650
- console.log(ansis.yellow(i18n.t("common:cancelled")));
663
+ console.log(a.yellow(i18n.t("common:cancelled")));
651
664
  return;
652
665
  }
653
666
  if (mainChoice === "complete") {
@@ -658,7 +671,7 @@ async function showInteractiveUninstall(uninstaller) {
658
671
  }
659
672
  async function showCustomUninstallMenu(uninstaller) {
660
673
  console.log("");
661
- console.log(ansis.green(i18n.t("uninstall:selectCustomItems")));
674
+ console.log(a.green(i18n.t("uninstall:selectCustomItems")));
662
675
  const { customItems } = await inquirer.prompt({
663
676
  type: "checkbox",
664
677
  name: "customItems",
@@ -717,32 +730,32 @@ async function showCustomUninstallMenu(uninstaller) {
717
730
  }
718
731
  });
719
732
  if (!customItems || customItems.length === 0) {
720
- console.log(ansis.yellow(i18n.t("common:cancelled")));
733
+ console.log(a.yellow(i18n.t("common:cancelled")));
721
734
  return;
722
735
  }
723
736
  await executeCustomUninstall(uninstaller, customItems);
724
737
  }
725
738
  async function executeCompleteUninstall(uninstaller) {
726
739
  console.log("");
727
- console.log(ansis.red.bold(i18n.t("uninstall:executingComplete")));
728
- console.log(ansis.yellow(i18n.t("uninstall:completeWarning")));
740
+ console.log(a.red.bold(i18n.t("uninstall:executingComplete")));
741
+ console.log(a.yellow(i18n.t("uninstall:completeWarning")));
729
742
  const confirm = await promptBoolean({
730
743
  message: i18n.t("uninstall:confirmComplete"),
731
744
  defaultValue: false
732
745
  });
733
746
  if (!confirm) {
734
- console.log(ansis.yellow(i18n.t("common:cancelled")));
747
+ console.log(a.yellow(i18n.t("common:cancelled")));
735
748
  return;
736
749
  }
737
750
  console.log("");
738
- console.log(ansis.green(i18n.t("uninstall:processingComplete")));
751
+ console.log(a.green(i18n.t("uninstall:processingComplete")));
739
752
  const result = await uninstaller.completeUninstall();
740
753
  displayUninstallResult("complete", [result]);
741
754
  }
742
755
  async function executeCustomUninstall(uninstaller, items) {
743
756
  console.log("");
744
- console.log(ansis.green(i18n.t("uninstall:executingCustom")));
745
- console.log(ansis.gray(i18n.t("uninstall:selectedItems")));
757
+ console.log(a.green(i18n.t("uninstall:executingCustom")));
758
+ console.log(a.gray(i18n.t("uninstall:selectedItems")));
746
759
  items.forEach((item) => {
747
760
  console.log(` \u2022 ${i18n.t(`uninstall:${item}`)}`);
748
761
  });
@@ -751,17 +764,17 @@ async function executeCustomUninstall(uninstaller, items) {
751
764
  defaultValue: false
752
765
  });
753
766
  if (!confirm) {
754
- console.log(ansis.yellow(i18n.t("common:cancelled")));
767
+ console.log(a.yellow(i18n.t("common:cancelled")));
755
768
  return;
756
769
  }
757
770
  console.log("");
758
- console.log(ansis.green(i18n.t("uninstall:processingCustom")));
771
+ console.log(a.green(i18n.t("uninstall:processingCustom")));
759
772
  const results = await uninstaller.customUninstall(items);
760
773
  displayUninstallResult("custom", results);
761
774
  }
762
775
  function displayUninstallResult(mode, results) {
763
776
  console.log("");
764
- console.log(ansis.green("\u2500".repeat(50)));
777
+ console.log(a.green("\u2500".repeat(50)));
765
778
  let totalSuccess = 0;
766
779
  let totalErrors = 0;
767
780
  let totalWarnings = 0;
@@ -770,64 +783,64 @@ function displayUninstallResult(mode, results) {
770
783
  totalSuccess++;
771
784
  }
772
785
  if (result.removed && result.removed.length > 0) {
773
- console.log(ansis.green(`\u{1F5D1}\uFE0F ${i18n.t("uninstall:movedToTrash")}:`));
786
+ console.log(a.green(`\u{1F5D1}\uFE0F ${i18n.t("uninstall:movedToTrash")}:`));
774
787
  result.removed.forEach((item) => {
775
- console.log(ansis.gray(` \u2022 ${item}`));
788
+ console.log(a.gray(` \u2022 ${item}`));
776
789
  });
777
790
  }
778
791
  if (result.removedConfigs && result.removedConfigs.length > 0) {
779
- console.log(ansis.green(`\u2714 ${i18n.t("uninstall:removedConfigs")}:`));
792
+ console.log(a.green(`\u2714 ${i18n.t("uninstall:removedConfigs")}:`));
780
793
  result.removedConfigs.forEach((item) => {
781
- console.log(ansis.gray(` \u2022 ${item}`));
794
+ console.log(a.gray(` \u2022 ${item}`));
782
795
  });
783
796
  }
784
797
  if (result.errors && result.errors.length > 0) {
785
798
  totalErrors += result.errors.length;
786
- console.log(ansis.red(`\u2716 ${i18n.t("uninstall:errors")}:`));
799
+ console.log(a.red(`\u2716 ${i18n.t("uninstall:errors")}:`));
787
800
  result.errors.forEach((error) => {
788
- console.log(ansis.red(` \u2022 ${error}`));
801
+ console.log(a.red(` \u2022 ${error}`));
789
802
  });
790
803
  }
791
804
  if (result.warnings && result.warnings.length > 0) {
792
805
  totalWarnings += result.warnings.length;
793
- console.log(ansis.yellow(`\u26A0 ${i18n.t("uninstall:warnings")}:`));
806
+ console.log(a.yellow(`\u26A0 ${i18n.t("uninstall:warnings")}:`));
794
807
  result.warnings.forEach((warning) => {
795
- console.log(ansis.yellow(` \u2022 ${warning}`));
808
+ console.log(a.yellow(` \u2022 ${warning}`));
796
809
  });
797
810
  }
798
811
  });
799
812
  const totalRemovedFiles = results.reduce((count, result) => count + (result.removed?.length || 0), 0);
800
813
  const totalRemovedConfigs = results.reduce((count, result) => count + (result.removedConfigs?.length || 0), 0);
801
814
  console.log("");
802
- console.log(ansis.green("\u2500".repeat(50)));
815
+ console.log(a.green("\u2500".repeat(50)));
803
816
  if (mode === "complete") {
804
817
  if (totalErrors === 0) {
805
- console.log(ansis.green.bold(`\u2714 ${i18n.t("uninstall:completeSuccess")}`));
818
+ console.log(a.green.bold(`\u2714 ${i18n.t("uninstall:completeSuccess")}`));
806
819
  } else {
807
- console.log(ansis.yellow.bold(`\u26A0 ${i18n.t("uninstall:completePartialSuccess")}`));
820
+ console.log(a.yellow.bold(`\u26A0 ${i18n.t("uninstall:completePartialSuccess")}`));
808
821
  }
809
822
  } else {
810
823
  if (totalRemovedFiles > 0 && totalRemovedConfigs > 0) {
811
- console.log(ansis.green.bold(`\u2714 ${i18n.t("uninstall:customSuccessBoth", {
824
+ console.log(a.green.bold(`\u2714 ${i18n.t("uninstall:customSuccessBoth", {
812
825
  fileCount: totalRemovedFiles,
813
826
  configCount: totalRemovedConfigs
814
827
  })}`));
815
828
  } else if (totalRemovedFiles > 0) {
816
- console.log(ansis.green.bold(`\u2714 ${i18n.t("uninstall:customSuccessFiles", {
829
+ console.log(a.green.bold(`\u2714 ${i18n.t("uninstall:customSuccessFiles", {
817
830
  count: totalRemovedFiles
818
831
  })}`));
819
832
  } else if (totalRemovedConfigs > 0) {
820
- console.log(ansis.green.bold(`\u2714 ${i18n.t("uninstall:customSuccessConfigs", {
833
+ console.log(a.green.bold(`\u2714 ${i18n.t("uninstall:customSuccessConfigs", {
821
834
  count: totalRemovedConfigs
822
835
  })}`));
823
836
  } else {
824
- console.log(ansis.green.bold(`\u2714 ${i18n.t("uninstall:customSuccess", { count: totalSuccess })}`));
837
+ console.log(a.green.bold(`\u2714 ${i18n.t("uninstall:customSuccess", { count: totalSuccess })}`));
825
838
  }
826
839
  if (totalErrors > 0) {
827
- console.log(ansis.red(`\u2716 ${i18n.t("uninstall:errorsCount", { count: totalErrors })}`));
840
+ console.log(a.red(`\u2716 ${i18n.t("uninstall:errorsCount", { count: totalErrors })}`));
828
841
  }
829
842
  if (totalWarnings > 0) {
830
- console.log(ansis.yellow(`\u26A0 ${i18n.t("uninstall:warningsCount", { count: totalWarnings })}`));
843
+ console.log(a.yellow(`\u26A0 ${i18n.t("uninstall:warningsCount", { count: totalWarnings })}`));
831
844
  }
832
845
  }
833
846
  console.log("");
@@ -1,42 +1,53 @@
1
1
  import { existsSync } from 'node:fs';
2
- import ansis from 'ansis';
3
- import inquirer from 'inquirer';
2
+ import a from './index2.mjs';
3
+ import { i as inquirer } from './index3.mjs';
4
4
  import { version } from './package.mjs';
5
5
  import { SETTINGS_FILE, DEFAULT_CODE_TOOL_TYPE, resolveCodeToolType as resolveCodeToolType$1, isCodeToolType } from './constants.mjs';
6
6
  import { r as runCodexUpdate, M as MCP_SERVICE_CONFIGS, g as getMcpServices } from './codex.mjs';
7
- import { i18n } from './index3.mjs';
7
+ import { i18n } from './index5.mjs';
8
8
  import { displayBanner } from './banner.mjs';
9
9
  import { readZcfConfig, updateZcfConfig } from './ccjk-config.mjs';
10
10
  import { r as readMcpConfig } from './claude-config.mjs';
11
11
  import { c as copyConfigFiles } from './config.mjs';
12
- import { n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration, u as updatePromptOnly, s as selectAndInstallWorkflows } from '../shared/ccjk.Dk1HDseQ.mjs';
13
- import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.j4uut26D.mjs';
14
- import { a as installMcpServices } from '../shared/ccjk.BOIUTf5z.mjs';
12
+ import { n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration, u as updatePromptOnly, s as selectAndInstallWorkflows } from '../shared/ccjk.BnpWvs9V.mjs';
13
+ import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
14
+ import { a as installMcpServices } from '../shared/ccjk.waa2ikKJ.mjs';
15
15
  import { resolveAiOutputLanguage } from './prompts.mjs';
16
16
  import { checkClaudeCodeVersionAndPrompt } from './version-checker.mjs';
17
- import 'node:os';
18
- import 'pathe';
17
+ import '../shared/ccjk.BAGoDD49.mjs';
18
+ import 'node:readline';
19
+ import 'stream';
20
+ import 'node:tty';
19
21
  import 'node:process';
22
+ import 'node:async_hooks';
23
+ import '../shared/ccjk.Cjgrln_h.mjs';
24
+ import 'node:util';
25
+ import 'tty';
26
+ import 'fs';
27
+ import 'child_process';
28
+ import 'node:path';
29
+ import 'node:os';
30
+ import 'node:crypto';
31
+ import 'buffer';
32
+ import 'string_decoder';
33
+ import '../shared/ccjk.bQ7Dh1g4.mjs';
20
34
  import 'node:url';
21
- import 'dayjs';
22
- import 'ora';
23
- import 'semver';
24
- import 'smol-toml';
25
- import 'tinyexec';
35
+ import '../shared/ccjk.RyizuzOI.mjs';
36
+ import './index7.mjs';
37
+ import '../shared/ccjk.CxpGa6MC.mjs';
38
+ import '../shared/ccjk.BBtCGd_g.mjs';
39
+ import './main.mjs';
40
+ import 'module';
41
+ import 'node:child_process';
42
+ import 'node:stream';
26
43
  import './fs-operations.mjs';
27
- import 'node:crypto';
28
44
  import 'node:fs/promises';
29
45
  import './json-config.mjs';
30
46
  import './platform.mjs';
31
47
  import '../shared/ccjk.BFQ7yr5S.mjs';
32
- import '../shared/ccjk.DHbrGcgg.mjs';
33
- import 'inquirer-toggle';
34
- import 'node:child_process';
35
- import 'i18next';
36
- import 'i18next-fs-backend';
48
+ import '../shared/ccjk.DOwtZMk8.mjs';
49
+ import './index6.mjs';
37
50
  import '../shared/ccjk.BiCrMV5O.mjs';
38
- import 'node:path';
39
- import 'node:util';
40
51
 
41
52
  function resolveCodeToolType(optionValue, savedValue) {
42
53
  if (optionValue !== void 0) {
@@ -60,11 +71,11 @@ async function checkAndPromptNewMcpServices(skipPrompt) {
60
71
  if (newServices.length === 0) return;
61
72
  const allServices = await getMcpServices();
62
73
  const newServiceNames = newServices.map((c) => allServices.find((s) => s.id === c.id)?.name || c.id).join(", ");
63
- console.log(ansis.cyan(`
64
- \u2728 New recommended services available: ${ansis.bold(newServiceNames)}`));
74
+ console.log(a.cyan(`
75
+ \u2728 New recommended services available: ${a.bold(newServiceNames)}`));
65
76
  if (skipPrompt) {
66
77
  await installMcpServices(newServices.map((s) => s.id));
67
- console.log(ansis.green("\u2713 New services installed automatically"));
78
+ console.log(a.green("\u2713 New services installed automatically"));
68
79
  return;
69
80
  }
70
81
  const { install } = await inquirer.prompt([
@@ -77,7 +88,7 @@ async function checkAndPromptNewMcpServices(skipPrompt) {
77
88
  ]);
78
89
  if (install) {
79
90
  await installMcpServices(newServices.map((s) => s.id));
80
- console.log(ansis.green("\u2713 New services installed"));
91
+ console.log(a.green("\u2713 New services installed"));
81
92
  }
82
93
  } catch {
83
94
  }
@@ -118,7 +129,7 @@ async function update(options = {}) {
118
129
  const aiOutputLang = await resolveAiOutputLanguage(i18n.language, options.aiOutputLang, zcfConfig, options.skipPrompt);
119
130
  if (existsSync(SETTINGS_FILE) && needsMigration()) {
120
131
  if (options.skipPrompt) {
121
- console.log(ansis.yellow("\n\u26A0\uFE0F Problematic configuration detected. Auto-fixing...\n"));
132
+ console.log(a.yellow("\n\u26A0\uFE0F Problematic configuration detected. Auto-fixing...\n"));
122
133
  const result = migrateSettingsForTokenRetrieval();
123
134
  displayMigrationResult(result);
124
135
  } else {
@@ -129,10 +140,10 @@ async function update(options = {}) {
129
140
  }
130
141
  }
131
142
  }
132
- console.log(ansis.green(`
143
+ console.log(a.green(`
133
144
  ${i18n.t("configuration:updatingPrompts")}
134
145
  `));
135
- console.log(ansis.dim("\u2714 Checking and fixing configuration format...\n"));
146
+ console.log(a.dim("\u2714 Checking and fixing configuration format...\n"));
136
147
  copyConfigFiles(false);
137
148
  await updatePromptOnly(aiOutputLang);
138
149
  await selectAndInstallWorkflows(configLang);
@@ -1,28 +1,34 @@
1
1
  import process__default from 'node:process';
2
- import ansis from 'ansis';
3
- import ora from 'ora';
4
- import * as semver from 'semver';
5
- import { exec } from 'tinyexec';
2
+ import a from './index2.mjs';
3
+ import ora from './index7.mjs';
4
+ import { s as semverExports } from '../shared/ccjk.CxpGa6MC.mjs';
5
+ import { exec as q } from './main.mjs';
6
6
  import { version } from './package.mjs';
7
7
  import { STATUS } from './banner.mjs';
8
- import './index3.mjs';
8
+ import '../shared/ccjk.BAGoDD49.mjs';
9
+ import 'node:util';
10
+ import '../shared/ccjk.Cjgrln_h.mjs';
11
+ import 'module';
12
+ import 'node:child_process';
13
+ import 'node:path';
14
+ import 'node:stream';
15
+ import 'node:readline';
16
+ import './index5.mjs';
9
17
  import 'node:fs';
10
18
  import 'node:url';
11
- import 'i18next';
12
- import 'i18next-fs-backend';
13
- import 'pathe';
19
+ import '../shared/ccjk.bQ7Dh1g4.mjs';
14
20
 
15
21
  async function checkClaudeCodeVersion() {
16
22
  try {
17
- const result = await exec("claude", ["--version"], { throwOnError: false });
23
+ const result = await q("claude", ["--version"], { throwOnError: false });
18
24
  const currentMatch = result.stdout.match(/(\d+\.\d+\.\d+)/);
19
25
  const current = currentMatch ? currentMatch[1] : "unknown";
20
- const npmResult = await exec("npm", ["view", "@anthropic-ai/claude-code", "version"], { throwOnError: false });
26
+ const npmResult = await q("npm", ["view", "@anthropic-ai/claude-code", "version"], { throwOnError: false });
21
27
  const latest = npmResult.stdout.trim() || current;
22
28
  return {
23
29
  current,
24
30
  latest,
25
- updateAvailable: current !== "unknown" && semver.lt(current, latest),
31
+ updateAvailable: current !== "unknown" && semverExports.lt(current, latest),
26
32
  releaseUrl: "https://github.com/anthropics/claude-code/releases"
27
33
  };
28
34
  } catch {
@@ -35,12 +41,12 @@ async function checkClaudeCodeVersion() {
35
41
  }
36
42
  async function checkCcjkVersion() {
37
43
  try {
38
- const npmResult = await exec("npm", ["view", "ccjk", "version"], { throwOnError: false });
44
+ const npmResult = await q("npm", ["view", "ccjk", "version"], { throwOnError: false });
39
45
  const latest = npmResult.stdout.trim() || version;
40
46
  return {
41
47
  current: version,
42
48
  latest,
43
- updateAvailable: semver.lt(version, latest),
49
+ updateAvailable: semverExports.lt(version, latest),
44
50
  releaseUrl: "https://github.com/ccjk/ccjk/releases"
45
51
  };
46
52
  } catch {
@@ -67,7 +73,7 @@ async function upgradeClaudeCode() {
67
73
  };
68
74
  }
69
75
  spinner.text = `Upgrading Claude Code from v${versionInfo.current} to v${versionInfo.latest}...`;
70
- const result = await exec("npm", ["install", "-g", "@anthropic-ai/claude-code@latest"], { throwOnError: false });
76
+ const result = await q("npm", ["install", "-g", "@anthropic-ai/claude-code@latest"], { throwOnError: false });
71
77
  if (result.exitCode === 0) {
72
78
  spinner.succeed(`Claude Code upgraded to v${versionInfo.latest}`);
73
79
  return {
@@ -78,7 +84,7 @@ async function upgradeClaudeCode() {
78
84
  }
79
85
  if (process__default.platform !== "win32") {
80
86
  spinner.text = "Retrying with elevated permissions...";
81
- const sudoResult = await exec("sudo", ["npm", "install", "-g", "@anthropic-ai/claude-code@latest"], { throwOnError: false });
87
+ const sudoResult = await q("sudo", ["npm", "install", "-g", "@anthropic-ai/claude-code@latest"], { throwOnError: false });
82
88
  if (sudoResult.exitCode === 0) {
83
89
  spinner.succeed(`Claude Code upgraded to v${versionInfo.latest}`);
84
90
  return {
@@ -115,7 +121,7 @@ async function upgradeCcjk() {
115
121
  };
116
122
  }
117
123
  spinner.text = `Upgrading CCJK from v${versionInfo.current} to v${versionInfo.latest}...`;
118
- const result = await exec("npm", ["install", "-g", "ccjk@latest"], { throwOnError: false });
124
+ const result = await q("npm", ["install", "-g", "ccjk@latest"], { throwOnError: false });
119
125
  if (result.exitCode === 0) {
120
126
  spinner.succeed(`CCJK upgraded to v${versionInfo.latest}`);
121
127
  return {
@@ -156,7 +162,7 @@ async function upgradeAllPlugins() {
156
162
  return results;
157
163
  }
158
164
  async function checkAllVersions() {
159
- console.log(ansis.green("\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 Version Check \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n"));
165
+ console.log(a.green("\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 Version Check \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n"));
160
166
  const claudeCode = await checkClaudeCodeVersion();
161
167
  if (claudeCode.updateAvailable) {
162
168
  console.log(STATUS.warning(`Claude Code: v${claudeCode.current} \u2192 v${claudeCode.latest} (update available)`));
@@ -183,7 +189,7 @@ async function checkAllVersions() {
183
189
  console.log("");
184
190
  }
185
191
  async function upgradeAll() {
186
- console.log(ansis.green("\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 Upgrading All \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n"));
192
+ console.log(a.green("\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 Upgrading All \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n"));
187
193
  await upgradeClaudeCode();
188
194
  await upgradeCcjk();
189
195
  const pluginResults = await upgradeAllPlugins();