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.
- package/dist/chunks/agent-teams.mjs +17 -18
- package/dist/chunks/agent.mjs +105 -102
- package/dist/chunks/agents.mjs +87 -77
- package/dist/chunks/api-cli.mjs +41 -27
- package/dist/chunks/api-providers.mjs +2 -4
- package/dist/chunks/api.mjs +22 -11
- package/dist/chunks/auto-bootstrap.mjs +3 -5
- package/dist/chunks/auto-init.mjs +3 -4
- package/dist/chunks/auto-updater.mjs +103 -91
- package/dist/chunks/banner.mjs +41 -42
- package/dist/chunks/boost.mjs +30 -31
- package/dist/chunks/ccjk-agents.mjs +6 -9
- package/dist/chunks/ccjk-all.mjs +703 -85
- package/dist/chunks/ccjk-config.mjs +6 -6
- package/dist/chunks/ccjk-hooks.mjs +20 -9
- package/dist/chunks/ccjk-mcp.mjs +64 -52
- package/dist/chunks/ccjk-setup.mjs +35 -25
- package/dist/chunks/ccjk-skills.mjs +51 -41
- package/dist/chunks/ccr.mjs +42 -32
- package/dist/chunks/ccu.mjs +16 -12
- package/dist/chunks/check-updates.mjs +30 -19
- package/dist/chunks/claude-code-config-manager.mjs +25 -10
- package/dist/chunks/claude-code-incremental-manager.mjs +65 -51
- package/dist/chunks/claude-config.mjs +2 -2
- package/dist/chunks/claude-wrapper.mjs +9 -6
- package/dist/chunks/cleanup-migration.mjs +1 -1
- package/dist/chunks/cli-hook.mjs +10 -3
- package/dist/chunks/cloud-sync.mjs +1 -1
- package/dist/chunks/codex-config-switch.mjs +58 -45
- package/dist/chunks/codex-provider-manager.mjs +29 -16
- package/dist/chunks/codex-uninstaller.mjs +5 -6
- package/dist/chunks/codex.mjs +89 -89
- package/dist/chunks/commands.mjs +28 -29
- package/dist/chunks/commands2.mjs +4 -3
- package/dist/chunks/commit.mjs +42 -23
- package/dist/chunks/completion.mjs +46 -47
- package/dist/chunks/config-consolidator.mjs +12 -13
- package/dist/chunks/config-switch.mjs +66 -53
- package/dist/chunks/config.mjs +10 -10
- package/dist/chunks/config2.mjs +53 -42
- package/dist/chunks/config3.mjs +107 -93
- package/dist/chunks/constants.mjs +2 -4
- package/dist/chunks/context-loader.mjs +5 -4
- package/dist/chunks/context.mjs +77 -76
- package/dist/chunks/convoy-manager.mjs +4 -4
- package/dist/chunks/dashboard.mjs +28 -29
- package/dist/chunks/doctor.mjs +68 -54
- package/dist/chunks/evolution.mjs +37 -38
- package/dist/chunks/features.mjs +103 -92
- package/dist/chunks/fs-operations.mjs +1 -1
- package/dist/chunks/health-alerts.mjs +1 -1
- package/dist/chunks/health-check.mjs +1 -1
- package/dist/chunks/help.mjs +117 -116
- package/dist/chunks/hook-installer.mjs +3 -2
- package/dist/chunks/index.mjs +20 -6
- package/dist/chunks/index10.mjs +1171 -0
- package/dist/chunks/index11.mjs +1008 -0
- package/dist/chunks/index12.mjs +193 -0
- package/dist/chunks/index13.mjs +218 -0
- package/dist/chunks/index14.mjs +663 -0
- package/dist/chunks/index2.mjs +19 -10
- package/dist/chunks/index3.mjs +19079 -164
- package/dist/chunks/index4.mjs +8 -1171
- package/dist/chunks/index5.mjs +7479 -884
- package/dist/chunks/index6.mjs +160 -184
- package/dist/chunks/index7.mjs +3573 -653
- package/dist/chunks/index8.mjs +19 -0
- package/dist/chunks/index9.mjs +616 -0
- package/dist/chunks/init.mjs +173 -173
- package/dist/chunks/installer.mjs +92 -82
- package/dist/chunks/installer2.mjs +3 -2
- package/dist/chunks/interview.mjs +118 -107
- package/dist/chunks/json-config.mjs +3 -2
- package/dist/chunks/linux.mjs +3863 -0
- package/dist/chunks/macos.mjs +69 -0
- package/dist/chunks/main.mjs +635 -0
- package/dist/chunks/marketplace.mjs +69 -66
- package/dist/chunks/mcp-cli.mjs +61 -48
- package/dist/chunks/mcp.mjs +140 -127
- package/dist/chunks/menu.mjs +85 -85
- package/dist/chunks/metrics-display.mjs +41 -40
- package/dist/chunks/migrator.mjs +4 -5
- package/dist/chunks/monitor.mjs +95 -95
- package/dist/chunks/notification.mjs +151 -141
- package/dist/chunks/onboarding.mjs +26 -15
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/paradigm.mjs +24 -23
- package/dist/chunks/permission-manager.mjs +10 -11
- package/dist/chunks/permissions.mjs +72 -57
- package/dist/chunks/persistence-manager.mjs +97 -84
- package/dist/chunks/persistence.mjs +1 -1
- package/dist/chunks/platform.mjs +29 -29
- package/dist/chunks/plugin.mjs +104 -105
- package/dist/chunks/prompts.mjs +36 -25
- package/dist/chunks/providers.mjs +68 -69
- package/dist/chunks/quick-actions.mjs +71 -72
- package/dist/chunks/quick-provider.mjs +56 -40
- package/dist/chunks/quick-setup.mjs +71 -60
- package/dist/chunks/remote.mjs +21 -12
- package/dist/chunks/session.mjs +116 -103
- package/dist/chunks/sessions.mjs +29 -28
- package/dist/chunks/silent-updater.mjs +8 -10
- package/dist/chunks/simple-config.mjs +13 -10
- package/dist/chunks/skill.mjs +8560 -103
- package/dist/chunks/skills-sync.mjs +5212 -79
- package/dist/chunks/skills.mjs +105 -94
- package/dist/chunks/slash-commands.mjs +36 -37
- package/dist/chunks/smart-defaults.mjs +7 -3
- package/dist/chunks/smart-guide.mjs +1 -1
- package/dist/chunks/startup.mjs +2 -4
- package/dist/chunks/stats.mjs +41 -42
- package/dist/chunks/status.mjs +49 -50
- package/dist/chunks/team.mjs +24 -12
- package/dist/chunks/thinking.mjs +74 -63
- package/dist/chunks/trace.mjs +20 -19
- package/dist/chunks/uninstall.mjs +69 -56
- package/dist/chunks/update.mjs +39 -28
- package/dist/chunks/upgrade-manager.mjs +24 -18
- package/dist/chunks/version-checker.mjs +45 -41
- package/dist/chunks/vim.mjs +81 -69
- package/dist/chunks/windows.mjs +14 -0
- package/dist/chunks/workflows.mjs +15 -15
- package/dist/chunks/wsl.mjs +129 -0
- package/dist/chunks/zero-config.mjs +45 -34
- package/dist/cli.mjs +20 -20
- package/dist/index.mjs +41 -31
- package/dist/shared/ccjk.BAGoDD49.mjs +36 -0
- package/dist/shared/ccjk.BBtCGd_g.mjs +899 -0
- package/dist/shared/{ccjk.CGcy7cNM.mjs → ccjk.BDKUdmLk.mjs} +1 -1
- package/dist/shared/{ccjk.DtMBiwVG.mjs → ccjk.BFxsJM0k.mjs} +1 -1
- package/dist/shared/{ccjk.j4uut26D.mjs → ccjk.BIxuVL3_.mjs} +5 -5
- package/dist/shared/ccjk.BRZ9ww8S.mjs +142 -0
- package/dist/shared/{ccjk.CN0edl87.mjs → ccjk.BSYWk9ML.mjs} +1 -1
- package/dist/shared/{ccjk.Dk1HDseQ.mjs → ccjk.BnpWvs9V.mjs} +75 -75
- package/dist/shared/ccjk.BoApaI4j.mjs +28 -0
- package/dist/shared/{ccjk.DKojSRzw.mjs → ccjk.BrPUmTqm.mjs} +1 -1
- package/dist/shared/{ccjk.C10pepYx.mjs → ccjk.BxSmJ8B7.mjs} +1 -1
- package/dist/shared/ccjk.Bx_rmYfN.mjs +69 -0
- package/dist/shared/ccjk.COweQ1RR.mjs +5 -0
- package/dist/shared/{ccjk.BN90X6oc.mjs → ccjk.CePkJq2S.mjs} +17 -17
- package/dist/shared/{ccjk.Bvoex4TZ.mjs → ccjk.CfKKcvWy.mjs} +1 -1
- package/dist/shared/ccjk.Cjgrln_h.mjs +297 -0
- package/dist/shared/ccjk.CxpGa6MC.mjs +2724 -0
- package/dist/shared/{ccjk.DfwJOEok.mjs → ccjk.D5MFQT7w.mjs} +1 -1
- package/dist/shared/{ccjk.cChAaGgT.mjs → ccjk.DG_o24cZ.mjs} +6 -6
- package/dist/shared/{ccjk.bhFAMRyc.mjs → ccjk.DLLw-h4Y.mjs} +32 -32
- package/dist/shared/ccjk.DOwtZMk8.mjs +4019 -0
- package/dist/shared/{ccjk.BsXQugfY.mjs → ccjk.DTdjs-qK.mjs} +13 -13
- package/dist/shared/{ccjk.Bdhyg3X-.mjs → ccjk.DsYaCCx4.mjs} +1 -1
- package/dist/shared/ccjk.KfSWcGlE.mjs +38 -0
- package/dist/shared/ccjk.RyizuzOI.mjs +21 -0
- package/dist/shared/{ccjk.h7_W-wTs.mjs → ccjk.SPoXMvZD.mjs} +1 -1
- package/dist/shared/ccjk.T_cX87dY.mjs +15 -0
- package/dist/shared/{ccjk.CrB6OYHv.mjs → ccjk._dESH4Rk.mjs} +2 -2
- package/dist/shared/ccjk.bQ7Dh1g4.mjs +249 -0
- package/dist/shared/{ccjk.CBhIZiPz.mjs → ccjk.hoqrwWdN.mjs} +1 -1
- package/dist/shared/{ccjk.BNwRnWYx.mjs → ccjk.s7OCVzdd.mjs} +1230 -33
- package/dist/shared/{ccjk.BOIUTf5z.mjs → ccjk.waa2ikKJ.mjs} +8 -9
- package/package.json +31 -30
- package/dist/shared/ccjk.DHbrGcgg.mjs +0 -13
- package/dist/shared/ccjk.DntgA8fQ.mjs +0 -42
|
@@ -1,33 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import inquirer from '
|
|
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 './
|
|
4
|
+
import { i18n, ensureI18nInitialized } from './index5.mjs';
|
|
5
5
|
import { readZcfConfig } from './ccjk-config.mjs';
|
|
6
|
-
import { r as resolveCodeType } from '../shared/ccjk.
|
|
7
|
-
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.
|
|
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.
|
|
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 {
|
|
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.
|
|
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 '
|
|
19
|
-
import '
|
|
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 '
|
|
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.
|
|
29
|
-
import '
|
|
30
|
-
import '
|
|
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
|
|
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
|
|
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(
|
|
434
|
+
console.log(a.green(`
|
|
422
435
|
\u2714 ${i18n.t("uninstall:backupCreated", { path: backupPath })}`));
|
|
423
|
-
console.log(
|
|
424
|
-
console.log(
|
|
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
|
|
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(
|
|
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(
|
|
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")} - ${
|
|
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")} - ${
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
728
|
-
console.log(
|
|
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(
|
|
747
|
+
console.log(a.yellow(i18n.t("common:cancelled")));
|
|
735
748
|
return;
|
|
736
749
|
}
|
|
737
750
|
console.log("");
|
|
738
|
-
console.log(
|
|
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(
|
|
745
|
-
console.log(
|
|
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(
|
|
767
|
+
console.log(a.yellow(i18n.t("common:cancelled")));
|
|
755
768
|
return;
|
|
756
769
|
}
|
|
757
770
|
console.log("");
|
|
758
|
-
console.log(
|
|
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(
|
|
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(
|
|
786
|
+
console.log(a.green(`\u{1F5D1}\uFE0F ${i18n.t("uninstall:movedToTrash")}:`));
|
|
774
787
|
result.removed.forEach((item) => {
|
|
775
|
-
console.log(
|
|
788
|
+
console.log(a.gray(` \u2022 ${item}`));
|
|
776
789
|
});
|
|
777
790
|
}
|
|
778
791
|
if (result.removedConfigs && result.removedConfigs.length > 0) {
|
|
779
|
-
console.log(
|
|
792
|
+
console.log(a.green(`\u2714 ${i18n.t("uninstall:removedConfigs")}:`));
|
|
780
793
|
result.removedConfigs.forEach((item) => {
|
|
781
|
-
console.log(
|
|
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(
|
|
799
|
+
console.log(a.red(`\u2716 ${i18n.t("uninstall:errors")}:`));
|
|
787
800
|
result.errors.forEach((error) => {
|
|
788
|
-
console.log(
|
|
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(
|
|
806
|
+
console.log(a.yellow(`\u26A0 ${i18n.t("uninstall:warnings")}:`));
|
|
794
807
|
result.warnings.forEach((warning) => {
|
|
795
|
-
console.log(
|
|
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(
|
|
815
|
+
console.log(a.green("\u2500".repeat(50)));
|
|
803
816
|
if (mode === "complete") {
|
|
804
817
|
if (totalErrors === 0) {
|
|
805
|
-
console.log(
|
|
818
|
+
console.log(a.green.bold(`\u2714 ${i18n.t("uninstall:completeSuccess")}`));
|
|
806
819
|
} else {
|
|
807
|
-
console.log(
|
|
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(
|
|
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(
|
|
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(
|
|
833
|
+
console.log(a.green.bold(`\u2714 ${i18n.t("uninstall:customSuccessConfigs", {
|
|
821
834
|
count: totalRemovedConfigs
|
|
822
835
|
})}`));
|
|
823
836
|
} else {
|
|
824
|
-
console.log(
|
|
837
|
+
console.log(a.green.bold(`\u2714 ${i18n.t("uninstall:customSuccess", { count: totalSuccess })}`));
|
|
825
838
|
}
|
|
826
839
|
if (totalErrors > 0) {
|
|
827
|
-
console.log(
|
|
840
|
+
console.log(a.red(`\u2716 ${i18n.t("uninstall:errorsCount", { count: totalErrors })}`));
|
|
828
841
|
}
|
|
829
842
|
if (totalWarnings > 0) {
|
|
830
|
-
console.log(
|
|
843
|
+
console.log(a.yellow(`\u26A0 ${i18n.t("uninstall:warningsCount", { count: totalWarnings })}`));
|
|
831
844
|
}
|
|
832
845
|
}
|
|
833
846
|
console.log("");
|
package/dist/chunks/update.mjs
CHANGED
|
@@ -1,42 +1,53 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
|
-
import
|
|
3
|
-
import inquirer from '
|
|
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 './
|
|
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.
|
|
13
|
-
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.
|
|
14
|
-
import { a as installMcpServices } from '../shared/ccjk.
|
|
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 '
|
|
18
|
-
import '
|
|
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 '
|
|
22
|
-
import '
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import '
|
|
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.
|
|
33
|
-
import '
|
|
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(
|
|
64
|
-
\u2728 New recommended services available: ${
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
143
|
+
console.log(a.green(`
|
|
133
144
|
${i18n.t("configuration:updatingPrompts")}
|
|
134
145
|
`));
|
|
135
|
-
console.log(
|
|
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
|
|
3
|
-
import ora from '
|
|
4
|
-
import
|
|
5
|
-
import { exec } from '
|
|
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 '
|
|
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 '
|
|
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
|
|
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
|
|
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" &&
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
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();
|