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
|
@@ -2,19 +2,29 @@ import { promises } from 'node:fs';
|
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
3
|
import { join, dirname } from 'node:path';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
|
-
import
|
|
6
|
-
import consola from '
|
|
7
|
-
import inquirer from '
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import '
|
|
5
|
+
import a from './index2.mjs';
|
|
6
|
+
import { c as consola, a as analyzeProject, g as getTemplatesClient } from '../shared/ccjk.s7OCVzdd.mjs';
|
|
7
|
+
import { i as inquirer } from './index3.mjs';
|
|
8
|
+
import { i18n } from './index5.mjs';
|
|
9
|
+
import { g as getSkillParser } from '../shared/ccjk.DsYaCCx4.mjs';
|
|
10
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
11
|
+
import './index8.mjs';
|
|
12
|
+
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
12
13
|
import 'tinyglobby';
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
14
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
15
|
+
import 'node:readline';
|
|
16
|
+
import 'stream';
|
|
17
|
+
import 'node:tty';
|
|
15
18
|
import 'node:process';
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
19
|
+
import 'node:async_hooks';
|
|
20
|
+
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
21
|
+
import 'node:util';
|
|
22
|
+
import 'tty';
|
|
23
|
+
import 'fs';
|
|
24
|
+
import 'child_process';
|
|
25
|
+
import 'node:crypto';
|
|
26
|
+
import 'buffer';
|
|
27
|
+
import 'string_decoder';
|
|
18
28
|
|
|
19
29
|
const __filename = fileURLToPath(import.meta.url);
|
|
20
30
|
const __dirname = dirname(__filename);
|
|
@@ -38,13 +48,13 @@ async function ccjkSkills(options = {}) {
|
|
|
38
48
|
}
|
|
39
49
|
if (!opts.json) {
|
|
40
50
|
console.log("");
|
|
41
|
-
console.log(
|
|
42
|
-
console.log(
|
|
43
|
-
console.log(
|
|
51
|
+
console.log(a.bold.cyan("\u2501".repeat(60)));
|
|
52
|
+
console.log(a.bold.cyan(` ${i18n.t("ccjk-skills:title")}`));
|
|
53
|
+
console.log(a.bold.cyan("\u2501".repeat(60)));
|
|
44
54
|
console.log("");
|
|
45
55
|
}
|
|
46
56
|
if (!opts.json) {
|
|
47
|
-
console.log(
|
|
57
|
+
console.log(a.bold(` ${i18n.t("ccjk-skills:analyzing")}`));
|
|
48
58
|
}
|
|
49
59
|
const analysis = await analyzeProject(opts.targetDir, {
|
|
50
60
|
analyzeTransitiveDeps: true
|
|
@@ -55,14 +65,14 @@ async function ccjkSkills(options = {}) {
|
|
|
55
65
|
}
|
|
56
66
|
if (!opts.json) {
|
|
57
67
|
console.log("");
|
|
58
|
-
console.log(
|
|
68
|
+
console.log(a.bold(` ${i18n.t("ccjk-skills:recommending")}`));
|
|
59
69
|
}
|
|
60
70
|
const recommendedSkills = await getRecommendedSkills(analysis, opts);
|
|
61
71
|
if (recommendedSkills.length === 0) {
|
|
62
72
|
if (!opts.json) {
|
|
63
|
-
console.log(
|
|
73
|
+
console.log(a.yellow(` ${i18n.t("ccjk-skills:noSkillsFound")}`));
|
|
64
74
|
console.log("");
|
|
65
|
-
console.log(
|
|
75
|
+
console.log(a.dim(` ${i18n.t("ccjk-skills:tryDifferentProject")}`));
|
|
66
76
|
} else {
|
|
67
77
|
console.log(JSON.stringify({
|
|
68
78
|
status: "completed",
|
|
@@ -76,7 +86,7 @@ async function ccjkSkills(options = {}) {
|
|
|
76
86
|
const selectedSkills = await selectSkills(recommendedSkills, opts);
|
|
77
87
|
if (selectedSkills.length === 0) {
|
|
78
88
|
if (!opts.json) {
|
|
79
|
-
console.log(
|
|
89
|
+
console.log(a.yellow(` ${i18n.t("ccjk-skills:noSkillsSelected")}`));
|
|
80
90
|
} else {
|
|
81
91
|
console.log(JSON.stringify({
|
|
82
92
|
status: "completed",
|
|
@@ -89,7 +99,7 @@ async function ccjkSkills(options = {}) {
|
|
|
89
99
|
}
|
|
90
100
|
if (!opts.json) {
|
|
91
101
|
console.log("");
|
|
92
|
-
console.log(
|
|
102
|
+
console.log(a.bold(` ${i18n.t("ccjk-skills:installing")}`));
|
|
93
103
|
}
|
|
94
104
|
const results = await installSkills(selectedSkills, opts);
|
|
95
105
|
const successful = results.filter((r) => r.success);
|
|
@@ -98,12 +108,12 @@ async function ccjkSkills(options = {}) {
|
|
|
98
108
|
displayInstallationResults(results, opts.lang);
|
|
99
109
|
if (successful.length > 0) {
|
|
100
110
|
console.log("");
|
|
101
|
-
console.log(
|
|
111
|
+
console.log(a.bold(a.green(` \u2713 ${i18n.t("ccjk-skills:installedCount", { count: successful.length })}`)));
|
|
102
112
|
console.log("");
|
|
103
|
-
console.log(
|
|
104
|
-
console.log(
|
|
105
|
-
console.log(
|
|
106
|
-
console.log(
|
|
113
|
+
console.log(a.bold(` ${i18n.t("ccjk-skills:nextSteps")}:`));
|
|
114
|
+
console.log(a.dim(` \u2022 ${i18n.t("ccjk-skills:useMcpCommand")}`));
|
|
115
|
+
console.log(a.dim(` \u2022 ${i18n.t("ccjk-skills:useAgentsCommand")}`));
|
|
116
|
+
console.log(a.dim(` \u2022 ${i18n.t("ccjk-skills:useSetupCommand")}`));
|
|
107
117
|
}
|
|
108
118
|
} else {
|
|
109
119
|
console.log(JSON.stringify({
|
|
@@ -125,7 +135,7 @@ async function ccjkSkills(options = {}) {
|
|
|
125
135
|
error: error instanceof Error ? error.message : String(error)
|
|
126
136
|
}));
|
|
127
137
|
} else {
|
|
128
|
-
console.error(
|
|
138
|
+
console.error(a.red(`
|
|
129
139
|
${i18n.t("ccjk-skills:error")}: ${error instanceof Error ? error.message : String(error)}`));
|
|
130
140
|
}
|
|
131
141
|
throw error;
|
|
@@ -135,13 +145,13 @@ function displayProjectInfo(analysis, _lang) {
|
|
|
135
145
|
const pm = analysis.packageManager || "unknown";
|
|
136
146
|
const frameworks = analysis.frameworks.map((f) => f.name).join(", ");
|
|
137
147
|
const languages = analysis.languages.filter((l) => l.confidence > 0.5).map((l) => l.language).join(", ");
|
|
138
|
-
console.log(
|
|
148
|
+
console.log(a.dim(` ${i18n.t("ccjk-skills:detected")}: ${languages}`));
|
|
139
149
|
if (frameworks) {
|
|
140
|
-
console.log(
|
|
150
|
+
console.log(a.dim(` ${i18n.t("ccjk-skills:frameworks")}: ${frameworks}`));
|
|
141
151
|
}
|
|
142
|
-
console.log(
|
|
152
|
+
console.log(a.dim(` ${i18n.t("ccjk-skills:packageManager")}: ${pm}`));
|
|
143
153
|
if (analysis.buildSystem) {
|
|
144
|
-
console.log(
|
|
154
|
+
console.log(a.dim(` ${i18n.t("ccjk-skills:buildSystem")}: ${analysis.buildSystem}`));
|
|
145
155
|
}
|
|
146
156
|
}
|
|
147
157
|
async function getRecommendedSkills(analysis, options) {
|
|
@@ -329,10 +339,10 @@ async function selectSkills(recommendations, options) {
|
|
|
329
339
|
return recommendations.filter((s) => s.priority >= 5);
|
|
330
340
|
}
|
|
331
341
|
console.log("");
|
|
332
|
-
console.log(
|
|
342
|
+
console.log(a.bold(a.cyan(` ${i18n.t("ccjk-skills:recommendedSkills", { count: recommendations.length })}`)));
|
|
333
343
|
console.log("");
|
|
334
344
|
const choices = recommendations.map((skill) => ({
|
|
335
|
-
name: `${getCategoryIcon(skill.category)} ${skill.name[options.lang]} ${
|
|
345
|
+
name: `${getCategoryIcon(skill.category)} ${skill.name[options.lang]} ${a.dim(`(${skill.category})`)}`,
|
|
336
346
|
value: skill,
|
|
337
347
|
checked: skill.priority >= 7
|
|
338
348
|
// Auto-check high priority skills
|
|
@@ -358,11 +368,11 @@ async function installSkills(skills, options) {
|
|
|
358
368
|
for (const skill of skills) {
|
|
359
369
|
try {
|
|
360
370
|
if (!options.json) {
|
|
361
|
-
process.stdout.write(` ${
|
|
371
|
+
process.stdout.write(` ${a.dim("\u2192")} ${skill.name[options.lang]}... `);
|
|
362
372
|
}
|
|
363
373
|
if (options.dryRun) {
|
|
364
374
|
if (!options.json) {
|
|
365
|
-
console.log(
|
|
375
|
+
console.log(a.yellow("DRY RUN"));
|
|
366
376
|
}
|
|
367
377
|
results.push({
|
|
368
378
|
skillId: skill.id,
|
|
@@ -391,7 +401,7 @@ async function installSkills(skills, options) {
|
|
|
391
401
|
throw new Error(`Generated SKILL.md is invalid: ${error instanceof Error ? error.message : String(error)}`);
|
|
392
402
|
}
|
|
393
403
|
if (!options.json) {
|
|
394
|
-
console.log(
|
|
404
|
+
console.log(a.green("\u2713"));
|
|
395
405
|
}
|
|
396
406
|
results.push({
|
|
397
407
|
skillId: skill.id,
|
|
@@ -400,9 +410,9 @@ async function installSkills(skills, options) {
|
|
|
400
410
|
});
|
|
401
411
|
} catch (error) {
|
|
402
412
|
if (!options.json) {
|
|
403
|
-
console.log(
|
|
413
|
+
console.log(a.red("\u2717"));
|
|
404
414
|
if (!(error instanceof Error && error.message.includes("DRY RUN"))) {
|
|
405
|
-
console.log(
|
|
415
|
+
console.log(a.red(` ${error instanceof Error ? error.message : String(error)}`));
|
|
406
416
|
}
|
|
407
417
|
}
|
|
408
418
|
results.push({
|
|
@@ -461,18 +471,18 @@ function displayInstallationResults(results, _lang) {
|
|
|
461
471
|
const successful = results.filter((r) => r.success);
|
|
462
472
|
const failed = results.filter((r) => !r.success);
|
|
463
473
|
if (successful.length > 0) {
|
|
464
|
-
console.log(
|
|
474
|
+
console.log(a.bold(a.green(` \u2713 ${i18n.t("ccjk-skills:installedCount", { count: successful.length })}`)));
|
|
465
475
|
for (const result of successful) {
|
|
466
476
|
if (result.path) {
|
|
467
|
-
console.log(
|
|
477
|
+
console.log(a.dim(` ${result.path}`));
|
|
468
478
|
}
|
|
469
479
|
}
|
|
470
480
|
}
|
|
471
481
|
if (failed.length > 0) {
|
|
472
482
|
console.log("");
|
|
473
|
-
console.log(
|
|
483
|
+
console.log(a.bold(a.red(` \u2717 ${i18n.t("ccjk-skills:failedCount", { count: failed.length })}`)));
|
|
474
484
|
for (const result of failed) {
|
|
475
|
-
console.log(
|
|
485
|
+
console.log(a.red(` ${result.skillId}: ${result.error}`));
|
|
476
486
|
}
|
|
477
487
|
}
|
|
478
488
|
}
|
package/dist/chunks/ccr.mjs
CHANGED
|
@@ -1,27 +1,42 @@
|
|
|
1
1
|
import { displayBannerWithInfo } from './banner.mjs';
|
|
2
|
-
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.
|
|
2
|
+
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
|
|
3
3
|
import { s as showCcrMenu, a as showMainMenu } from './menu.mjs';
|
|
4
|
-
import '
|
|
4
|
+
import './index2.mjs';
|
|
5
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
5
6
|
import './package.mjs';
|
|
6
|
-
import './
|
|
7
|
+
import './index5.mjs';
|
|
7
8
|
import 'node:fs';
|
|
8
9
|
import 'node:process';
|
|
9
10
|
import 'node:url';
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
11
|
+
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
12
|
+
import './index3.mjs';
|
|
13
|
+
import 'node:readline';
|
|
14
|
+
import 'stream';
|
|
15
|
+
import 'node:tty';
|
|
16
|
+
import 'node:async_hooks';
|
|
17
|
+
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
18
|
+
import 'node:util';
|
|
19
|
+
import 'tty';
|
|
20
|
+
import 'fs';
|
|
21
|
+
import 'child_process';
|
|
22
|
+
import 'node:path';
|
|
23
|
+
import 'node:os';
|
|
24
|
+
import 'node:crypto';
|
|
25
|
+
import 'buffer';
|
|
26
|
+
import 'string_decoder';
|
|
14
27
|
import './codex.mjs';
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
18
|
-
import '
|
|
19
|
-
import '
|
|
28
|
+
import '../shared/ccjk.RyizuzOI.mjs';
|
|
29
|
+
import './index7.mjs';
|
|
30
|
+
import '../shared/ccjk.CxpGa6MC.mjs';
|
|
31
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
32
|
+
import './main.mjs';
|
|
33
|
+
import 'module';
|
|
34
|
+
import 'node:child_process';
|
|
35
|
+
import 'node:stream';
|
|
20
36
|
import './constants.mjs';
|
|
21
|
-
import 'node:os';
|
|
22
37
|
import './ccjk-config.mjs';
|
|
38
|
+
import './index6.mjs';
|
|
23
39
|
import './fs-operations.mjs';
|
|
24
|
-
import 'node:crypto';
|
|
25
40
|
import 'node:fs/promises';
|
|
26
41
|
import './json-config.mjs';
|
|
27
42
|
import './config.mjs';
|
|
@@ -30,43 +45,38 @@ import './platform.mjs';
|
|
|
30
45
|
import '../shared/ccjk.BiCrMV5O.mjs';
|
|
31
46
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
32
47
|
import './prompts.mjs';
|
|
33
|
-
import '../shared/ccjk.
|
|
34
|
-
import '
|
|
35
|
-
import 'node:child_process';
|
|
36
|
-
import '../shared/ccjk.CN0edl87.mjs';
|
|
48
|
+
import '../shared/ccjk.DOwtZMk8.mjs';
|
|
49
|
+
import '../shared/ccjk.BSYWk9ML.mjs';
|
|
37
50
|
import './smart-defaults.mjs';
|
|
38
|
-
import '../shared/ccjk.
|
|
51
|
+
import '../shared/ccjk.BrPUmTqm.mjs';
|
|
39
52
|
import './features.mjs';
|
|
40
53
|
import './config2.mjs';
|
|
41
|
-
import 'node:util';
|
|
42
54
|
import './init.mjs';
|
|
43
|
-
import '../shared/ccjk.
|
|
55
|
+
import '../shared/ccjk.BnpWvs9V.mjs';
|
|
44
56
|
import './auto-updater.mjs';
|
|
45
57
|
import './version-checker.mjs';
|
|
46
|
-
import 'node:path';
|
|
47
58
|
import './installer.mjs';
|
|
48
|
-
import '../shared/ccjk.
|
|
59
|
+
import '../shared/ccjk._dESH4Rk.mjs';
|
|
49
60
|
import './simple-config.mjs';
|
|
50
61
|
import './commands.mjs';
|
|
51
62
|
import './ccjk-agents.mjs';
|
|
52
|
-
import '
|
|
53
|
-
import '
|
|
63
|
+
import '../shared/ccjk.s7OCVzdd.mjs';
|
|
64
|
+
import './index8.mjs';
|
|
54
65
|
import 'tinyglobby';
|
|
55
|
-
import '
|
|
56
|
-
import '../shared/ccjk.Bvoex4TZ.mjs';
|
|
66
|
+
import '../shared/ccjk.CfKKcvWy.mjs';
|
|
57
67
|
import '../shared/ccjk.AqnXPAzw.mjs';
|
|
58
68
|
import './ccjk-skills.mjs';
|
|
59
|
-
import '../shared/ccjk.
|
|
69
|
+
import '../shared/ccjk.DsYaCCx4.mjs';
|
|
60
70
|
import './check-updates.mjs';
|
|
61
71
|
import './doctor.mjs';
|
|
62
72
|
import './api-providers.mjs';
|
|
63
|
-
import '../shared/ccjk.
|
|
73
|
+
import '../shared/ccjk.SPoXMvZD.mjs';
|
|
64
74
|
import '../shared/ccjk.J8YiPsOw.mjs';
|
|
65
75
|
import './uninstall.mjs';
|
|
66
|
-
import '../shared/ccjk.
|
|
67
|
-
import '
|
|
76
|
+
import '../shared/ccjk.BRZ9ww8S.mjs';
|
|
77
|
+
import 'globby';
|
|
68
78
|
import './update.mjs';
|
|
69
|
-
import '../shared/ccjk.
|
|
79
|
+
import '../shared/ccjk.waa2ikKJ.mjs';
|
|
70
80
|
|
|
71
81
|
async function ccr(options = {}) {
|
|
72
82
|
try {
|
package/dist/chunks/ccu.mjs
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
import process__default from 'node:process';
|
|
2
|
-
import
|
|
3
|
-
import { x } from '
|
|
4
|
-
import { i18n } from './
|
|
2
|
+
import a from './index2.mjs';
|
|
3
|
+
import { x as K } from './main.mjs';
|
|
4
|
+
import { i18n } from './index5.mjs';
|
|
5
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
6
|
+
import 'module';
|
|
7
|
+
import 'node:child_process';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:stream';
|
|
10
|
+
import 'node:readline';
|
|
5
11
|
import 'node:fs';
|
|
6
12
|
import 'node:url';
|
|
7
|
-
import '
|
|
8
|
-
import 'i18next-fs-backend';
|
|
9
|
-
import 'pathe';
|
|
13
|
+
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
10
14
|
|
|
11
15
|
async function executeCcusage(args = []) {
|
|
12
16
|
try {
|
|
13
17
|
const command = "npx";
|
|
14
18
|
const commandArgs = ["ccusage@latest", ...args || []];
|
|
15
|
-
console.log(
|
|
16
|
-
console.log(
|
|
19
|
+
console.log(a.green(i18n.t("tools:runningCcusage")));
|
|
20
|
+
console.log(a.gray(`$ npx ccusage@latest ${(args || []).join(" ")}`));
|
|
17
21
|
console.log("");
|
|
18
|
-
await
|
|
22
|
+
await K(command, commandArgs, {
|
|
19
23
|
nodeOptions: {
|
|
20
24
|
stdio: "inherit"
|
|
21
25
|
}
|
|
22
26
|
});
|
|
23
27
|
} catch (error) {
|
|
24
|
-
console.error(
|
|
25
|
-
console.error(
|
|
28
|
+
console.error(a.red(i18n.t("tools:ccusageFailed")));
|
|
29
|
+
console.error(a.yellow(i18n.t("tools:checkNetworkConnection")));
|
|
26
30
|
if (process__default.env.DEBUG) {
|
|
27
|
-
console.error(
|
|
31
|
+
console.error(a.gray(i18n.t("tools:errorDetails")), error);
|
|
28
32
|
}
|
|
29
33
|
if (process__default.env.NODE_ENV !== "test") {
|
|
30
34
|
process__default.exit(1);
|
|
@@ -1,36 +1,47 @@
|
|
|
1
1
|
import process__default from 'node:process';
|
|
2
|
-
import
|
|
3
|
-
import { ensureI18nInitialized, i18n } from './
|
|
4
|
-
import { r as resolveCodeType } from '../shared/ccjk.
|
|
2
|
+
import a from './index2.mjs';
|
|
3
|
+
import { ensureI18nInitialized, i18n } from './index5.mjs';
|
|
4
|
+
import { r as resolveCodeType } from '../shared/ccjk.BSYWk9ML.mjs';
|
|
5
5
|
import { checkAndUpdateTools } from './auto-updater.mjs';
|
|
6
6
|
import { r as runCodexUpdate } from './codex.mjs';
|
|
7
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
7
8
|
import 'node:fs';
|
|
8
9
|
import 'node:url';
|
|
9
|
-
import '
|
|
10
|
-
import 'i18next-fs-backend';
|
|
11
|
-
import 'pathe';
|
|
10
|
+
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
12
11
|
import './smart-defaults.mjs';
|
|
13
12
|
import 'node:child_process';
|
|
14
13
|
import 'node:os';
|
|
15
14
|
import './platform.mjs';
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
15
|
+
import './main.mjs';
|
|
16
|
+
import 'module';
|
|
17
|
+
import 'node:path';
|
|
18
|
+
import 'node:stream';
|
|
19
|
+
import 'node:readline';
|
|
20
|
+
import '../shared/ccjk.BrPUmTqm.mjs';
|
|
18
21
|
import './constants.mjs';
|
|
19
22
|
import './ccjk-config.mjs';
|
|
20
|
-
import '
|
|
23
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
24
|
+
import './index6.mjs';
|
|
21
25
|
import './fs-operations.mjs';
|
|
22
26
|
import 'node:crypto';
|
|
23
27
|
import 'node:fs/promises';
|
|
24
28
|
import './json-config.mjs';
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
27
|
-
import '../shared/ccjk.DHbrGcgg.mjs';
|
|
28
|
-
import 'inquirer-toggle';
|
|
29
|
-
import './version-checker.mjs';
|
|
30
|
-
import 'node:path';
|
|
29
|
+
import '../shared/ccjk.RyizuzOI.mjs';
|
|
30
|
+
import './index7.mjs';
|
|
31
31
|
import 'node:util';
|
|
32
|
-
import '
|
|
33
|
-
import '
|
|
32
|
+
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
33
|
+
import '../shared/ccjk.DOwtZMk8.mjs';
|
|
34
|
+
import 'node:async_hooks';
|
|
35
|
+
import './index3.mjs';
|
|
36
|
+
import 'stream';
|
|
37
|
+
import 'node:tty';
|
|
38
|
+
import 'tty';
|
|
39
|
+
import 'fs';
|
|
40
|
+
import 'child_process';
|
|
41
|
+
import 'buffer';
|
|
42
|
+
import 'string_decoder';
|
|
43
|
+
import './version-checker.mjs';
|
|
44
|
+
import '../shared/ccjk.CxpGa6MC.mjs';
|
|
34
45
|
import './config.mjs';
|
|
35
46
|
import './claude-config.mjs';
|
|
36
47
|
import '../shared/ccjk.BiCrMV5O.mjs';
|
|
@@ -81,7 +92,7 @@ async function checkUpdates(options = {}) {
|
|
|
81
92
|
codeType = await resolveCodeType(options.codeType);
|
|
82
93
|
} catch (err) {
|
|
83
94
|
const errorMessage = err instanceof Error ? err.message : String(err);
|
|
84
|
-
console.error(
|
|
95
|
+
console.error(a.red(`${errorMessage}
|
|
85
96
|
Defaulting to "claude-code".`));
|
|
86
97
|
codeType = "claude-code";
|
|
87
98
|
}
|
|
@@ -89,7 +100,7 @@ Defaulting to "claude-code".`));
|
|
|
89
100
|
await scheduler.updateByCodeType(codeType, skipPrompt);
|
|
90
101
|
} catch (error) {
|
|
91
102
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
92
|
-
console.error(
|
|
103
|
+
console.error(a.red(`${i18n.t("updater:errorCheckingUpdates")} ${errorMessage}`));
|
|
93
104
|
process__default.exit(1);
|
|
94
105
|
}
|
|
95
106
|
}
|
|
@@ -1,25 +1,40 @@
|
|
|
1
|
-
import dayjs from '
|
|
2
|
-
import { join } from 'pathe';
|
|
1
|
+
import { d as dayjs } from '../shared/ccjk.RyizuzOI.mjs';
|
|
3
2
|
import { ZCF_CONFIG_FILE, ZCF_CONFIG_DIR, SETTINGS_FILE } from './constants.mjs';
|
|
4
3
|
import { readDefaultTomlConfig, createDefaultTomlConfig, writeTomlConfig } from './ccjk-config.mjs';
|
|
5
4
|
import { h as clearModelEnv } from './config.mjs';
|
|
6
5
|
import { ensureDir, exists, copyFile } from './fs-operations.mjs';
|
|
7
6
|
import { readJsonConfig } from './json-config.mjs';
|
|
7
|
+
import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
8
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
8
9
|
import 'node:os';
|
|
9
|
-
import './
|
|
10
|
+
import './index5.mjs';
|
|
10
11
|
import 'node:fs';
|
|
11
12
|
import 'node:process';
|
|
12
13
|
import 'node:url';
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import 'smol-toml';
|
|
14
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
15
|
+
import './index6.mjs';
|
|
16
16
|
import 'node:crypto';
|
|
17
17
|
import 'node:fs/promises';
|
|
18
|
-
import '
|
|
19
|
-
import '
|
|
18
|
+
import './index2.mjs';
|
|
19
|
+
import './index3.mjs';
|
|
20
|
+
import 'node:readline';
|
|
21
|
+
import 'stream';
|
|
22
|
+
import 'node:tty';
|
|
23
|
+
import 'node:async_hooks';
|
|
24
|
+
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
25
|
+
import 'node:util';
|
|
26
|
+
import 'tty';
|
|
27
|
+
import 'fs';
|
|
28
|
+
import 'child_process';
|
|
29
|
+
import 'node:path';
|
|
30
|
+
import 'buffer';
|
|
31
|
+
import 'string_decoder';
|
|
20
32
|
import './claude-config.mjs';
|
|
21
33
|
import './platform.mjs';
|
|
22
|
-
import '
|
|
34
|
+
import './main.mjs';
|
|
35
|
+
import 'module';
|
|
36
|
+
import 'node:child_process';
|
|
37
|
+
import 'node:stream';
|
|
23
38
|
import '../shared/ccjk.BiCrMV5O.mjs';
|
|
24
39
|
|
|
25
40
|
class ClaudeCodeConfigManager {
|
|
@@ -187,7 +202,7 @@ class ClaudeCodeConfigManager {
|
|
|
187
202
|
* Apply profile settings to Claude Code runtime
|
|
188
203
|
*/
|
|
189
204
|
static async applyProfileSettings(profile) {
|
|
190
|
-
const { ensureI18nInitialized, i18n } = await import('./
|
|
205
|
+
const { ensureI18nInitialized, i18n } = await import('./index5.mjs');
|
|
191
206
|
ensureI18nInitialized();
|
|
192
207
|
try {
|
|
193
208
|
if (!profile) {
|