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,18 +1,18 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, renameSync, copyFileSync, rmSync } from 'node:fs';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { p as parse } from '../shared/ccjk.BBtCGd_g.mjs';
|
|
3
|
+
import { stringify } from './index6.mjs';
|
|
4
4
|
import { DEFAULT_CODE_TOOL_TYPE, ZCF_CONFIG_FILE, LEGACY_ZCF_CONFIG_FILES, ZCF_CONFIG_DIR, isCodeToolType, SUPPORTED_LANGS } from './constants.mjs';
|
|
5
5
|
import { exists, readFile, ensureDir, writeFileAtomic } from './fs-operations.mjs';
|
|
6
6
|
import { readJsonConfig } from './json-config.mjs';
|
|
7
|
+
import { d as dirname } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
7
8
|
import 'node:os';
|
|
8
|
-
import './
|
|
9
|
+
import './index5.mjs';
|
|
9
10
|
import 'node:process';
|
|
10
11
|
import 'node:url';
|
|
11
|
-
import 'i18next';
|
|
12
|
-
import 'i18next-fs-backend';
|
|
13
12
|
import 'node:crypto';
|
|
14
13
|
import 'node:fs/promises';
|
|
15
|
-
import '
|
|
14
|
+
import '../shared/ccjk.RyizuzOI.mjs';
|
|
15
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
16
16
|
|
|
17
17
|
function isSupportedLang(value) {
|
|
18
18
|
return SUPPORTED_LANGS.includes(value);
|
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
import { performance } from 'node:perf_hooks';
|
|
2
|
-
import { consola } from '
|
|
3
|
-
import inquirer from '
|
|
4
|
-
import { P as ProjectAnalyzer, g as getTemplatesClient } from '../shared/ccjk.BNwRnWYx.mjs';
|
|
2
|
+
import { c as consola, P as ProjectAnalyzer, g as getTemplatesClient } from '../shared/ccjk.s7OCVzdd.mjs';
|
|
3
|
+
import { i as inquirer } from './index3.mjs';
|
|
5
4
|
import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'node:fs';
|
|
6
5
|
import process__default from 'node:process';
|
|
7
|
-
import { join, dirname } from 'pathe';
|
|
8
6
|
import { exec } from 'node:child_process';
|
|
9
7
|
import { promisify } from 'node:util';
|
|
10
|
-
import {
|
|
8
|
+
import { j as join, d as dirname } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
9
|
+
import { i18n } from './index5.mjs';
|
|
10
|
+
import './index8.mjs';
|
|
11
11
|
import 'tinyglobby';
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
12
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
13
|
+
import 'node:readline';
|
|
14
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
15
|
+
import 'stream';
|
|
16
|
+
import 'node:tty';
|
|
17
|
+
import 'node:async_hooks';
|
|
18
|
+
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
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 'node:url';
|
|
15
|
-
import 'i18next';
|
|
16
|
-
import 'i18next-fs-backend';
|
|
17
28
|
|
|
18
29
|
var HookType = /* @__PURE__ */ ((HookType2) => {
|
|
19
30
|
HookType2["PreRequest"] = "PreRequest";
|
package/dist/chunks/ccjk-mcp.mjs
CHANGED
|
@@ -1,28 +1,40 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
2
|
import { cwd } from 'node:process';
|
|
3
|
-
import
|
|
4
|
-
import consola from '
|
|
5
|
-
import inquirer from '
|
|
6
|
-
import { a as analyzeProject, g as getTemplatesClient } from '../shared/ccjk.BNwRnWYx.mjs';
|
|
3
|
+
import a from './index2.mjs';
|
|
4
|
+
import { c as consola, a as analyzeProject, g as getTemplatesClient } from '../shared/ccjk.s7OCVzdd.mjs';
|
|
5
|
+
import { i as inquirer } from './index3.mjs';
|
|
7
6
|
import { CLAUDE_DIR } from './constants.mjs';
|
|
8
|
-
import { ensureI18nInitialized, i18n } from './
|
|
7
|
+
import { ensureI18nInitialized, i18n } from './index5.mjs';
|
|
9
8
|
import { b as backupMcpConfig, r as readMcpConfig, m as mergeMcpServers, w as writeMcpConfig } from './claude-config.mjs';
|
|
10
9
|
import { h as commandExists } from './platform.mjs';
|
|
10
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
11
11
|
import 'node:fs';
|
|
12
|
-
import '
|
|
12
|
+
import './index8.mjs';
|
|
13
|
+
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
13
14
|
import 'tinyglobby';
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
15
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
16
|
+
import 'node:readline';
|
|
17
|
+
import 'stream';
|
|
18
|
+
import 'node:tty';
|
|
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';
|
|
16
25
|
import 'node:os';
|
|
26
|
+
import 'node:crypto';
|
|
27
|
+
import 'buffer';
|
|
28
|
+
import 'string_decoder';
|
|
17
29
|
import 'node:url';
|
|
18
|
-
import 'i18next';
|
|
19
|
-
import 'i18next-fs-backend';
|
|
20
30
|
import './json-config.mjs';
|
|
21
|
-
import '
|
|
31
|
+
import '../shared/ccjk.RyizuzOI.mjs';
|
|
22
32
|
import './fs-operations.mjs';
|
|
23
|
-
import 'node:crypto';
|
|
24
33
|
import 'node:fs/promises';
|
|
25
|
-
import '
|
|
34
|
+
import './main.mjs';
|
|
35
|
+
import 'module';
|
|
36
|
+
import 'node:child_process';
|
|
37
|
+
import 'node:stream';
|
|
26
38
|
|
|
27
39
|
const mcpServiceTemplates = {
|
|
28
40
|
// ============================================================================
|
|
@@ -354,10 +366,10 @@ async function ccjkMcp(options = {}) {
|
|
|
354
366
|
result.project.frameworks = analysis.frameworks.map((f) => f.name);
|
|
355
367
|
if (!options.json) {
|
|
356
368
|
console.log("");
|
|
357
|
-
console.log(
|
|
358
|
-
console.log(
|
|
369
|
+
console.log(a.green(` ${isZh ? "\u68C0\u6D4B\u5230" : "Detected"}: ${a.bold(analysis.projectType)}`));
|
|
370
|
+
console.log(a.dim(` ${isZh ? "\u8BED\u8A00" : "Languages"}: ${analysis.languages.map((l) => l.language).join(", ")}`));
|
|
359
371
|
if (analysis.frameworks.length > 0) {
|
|
360
|
-
console.log(
|
|
372
|
+
console.log(a.dim(` ${isZh ? "\u6846\u67B6" : "Frameworks"}: ${analysis.frameworks.map((f) => f.name).join(", ")}`));
|
|
361
373
|
}
|
|
362
374
|
console.log("");
|
|
363
375
|
}
|
|
@@ -365,41 +377,41 @@ async function ccjkMcp(options = {}) {
|
|
|
365
377
|
const availableServices = filterServicesByTier(recommendedServices, options.tier);
|
|
366
378
|
const selectedServices = filterServicesByExclusion(availableServices, options.exclude);
|
|
367
379
|
if (!options.json) {
|
|
368
|
-
console.log(
|
|
380
|
+
console.log(a.bold.cyan(`${isZh ? "\u{1F527} \u63A8\u8350\u7684 MCP \u670D\u52A1" : "\u{1F527} Recommended MCP Services"} (${selectedServices.length} ${isZh ? "\u4E2A" : "found"}):
|
|
369
381
|
`));
|
|
370
382
|
const coreServices = selectedServices.filter((s) => SERVICE_TIERS.core.includes(s.id));
|
|
371
383
|
const ondemandServices = selectedServices.filter((s) => SERVICE_TIERS.ondemand.includes(s.id));
|
|
372
384
|
const scenarioServices = selectedServices.filter((s) => SERVICE_TIERS.scenario.includes(s.id));
|
|
373
385
|
if (coreServices.length > 0) {
|
|
374
|
-
console.log(
|
|
386
|
+
console.log(a.bold(`${isZh ? "\u6838\u5FC3\u670D\u52A1" : "Core Services"}:`));
|
|
375
387
|
coreServices.forEach((service) => {
|
|
376
388
|
const installed = isServiceInstalled(service.id);
|
|
377
|
-
const status = installed ?
|
|
389
|
+
const status = installed ? a.green("\u2705") : a.yellow("\u2B55");
|
|
378
390
|
const _name = isZh ? service.name["zh-CN"] : service.name.en;
|
|
379
391
|
const desc = isZh ? service.description["zh-CN"] : service.description.en;
|
|
380
|
-
console.log(` ${status} ${
|
|
392
|
+
console.log(` ${status} ${a.bold(service.id.padEnd(30))} - ${desc}`);
|
|
381
393
|
});
|
|
382
394
|
console.log("");
|
|
383
395
|
}
|
|
384
396
|
if (ondemandServices.length > 0) {
|
|
385
|
-
console.log(
|
|
397
|
+
console.log(a.bold(`${isZh ? "\u6309\u9700\u670D\u52A1" : "On-Demand Services"}:`));
|
|
386
398
|
ondemandServices.forEach((service) => {
|
|
387
399
|
const installed = isServiceInstalled(service.id);
|
|
388
|
-
const status = installed ?
|
|
400
|
+
const status = installed ? a.green("\u2705") : a.yellow("\u2B55");
|
|
389
401
|
const _name = isZh ? service.name["zh-CN"] : service.name.en;
|
|
390
402
|
const desc = isZh ? service.description["zh-CN"] : service.description.en;
|
|
391
|
-
console.log(` ${status} ${
|
|
403
|
+
console.log(` ${status} ${a.bold(service.id.padEnd(30))} - ${desc}`);
|
|
392
404
|
});
|
|
393
405
|
console.log("");
|
|
394
406
|
}
|
|
395
407
|
if (scenarioServices.length > 0) {
|
|
396
|
-
console.log(
|
|
408
|
+
console.log(a.bold(`${isZh ? "\u573A\u666F\u670D\u52A1" : "Scenario Services"}:`));
|
|
397
409
|
scenarioServices.forEach((service) => {
|
|
398
410
|
const installed = isServiceInstalled(service.id);
|
|
399
|
-
const status = installed ?
|
|
411
|
+
const status = installed ? a.green("\u2705") : a.yellow("\u2B55");
|
|
400
412
|
const _name = isZh ? service.name["zh-CN"] : service.name.en;
|
|
401
413
|
const desc = isZh ? service.description["zh-CN"] : service.description.en;
|
|
402
|
-
console.log(` ${status} ${
|
|
414
|
+
console.log(` ${status} ${a.bold(service.id.padEnd(30))} - ${desc}`);
|
|
403
415
|
});
|
|
404
416
|
console.log("");
|
|
405
417
|
}
|
|
@@ -443,7 +455,7 @@ async function ccjkMcp(options = {}) {
|
|
|
443
455
|
result.skipped.push(...alreadyInstalled);
|
|
444
456
|
if (servicesToInstall.length === 0) {
|
|
445
457
|
if (!options.json) {
|
|
446
|
-
console.log(
|
|
458
|
+
console.log(a.green(isZh ? "\u2705 \u6240\u6709\u670D\u52A1\u5DF2\u5B89\u88C5" : "\u2705 All services already installed"));
|
|
447
459
|
}
|
|
448
460
|
result.success = true;
|
|
449
461
|
result.duration = Date.now() - startTime;
|
|
@@ -451,7 +463,7 @@ async function ccjkMcp(options = {}) {
|
|
|
451
463
|
}
|
|
452
464
|
if (options.dryRun) {
|
|
453
465
|
if (!options.json) {
|
|
454
|
-
console.log(
|
|
466
|
+
console.log(a.yellow(isZh ? "\n\u{1F50D} Dry run \u6A21\u5F0F - \u9884\u89C8\u5B89\u88C5\u8BA1\u5212" : "\n\u{1F50D} Dry run mode - Installation preview"));
|
|
455
467
|
console.log("");
|
|
456
468
|
servicesToInstall.forEach((service) => {
|
|
457
469
|
const name = isZh ? service.name["zh-CN"] : service.name.en;
|
|
@@ -464,7 +476,7 @@ async function ccjkMcp(options = {}) {
|
|
|
464
476
|
return result;
|
|
465
477
|
}
|
|
466
478
|
if (!options.json) {
|
|
467
|
-
console.log(
|
|
479
|
+
console.log(a.bold.cyan(`${isZh ? "\u{1F4E6} \u5B89\u88C5\u4F9D\u8D56\u4E2D..." : "\u{1F4E6} Installing dependencies..."}
|
|
468
480
|
`));
|
|
469
481
|
}
|
|
470
482
|
for (const service of servicesToInstall) {
|
|
@@ -478,18 +490,18 @@ async function ccjkMcp(options = {}) {
|
|
|
478
490
|
result.failed.push(service.id);
|
|
479
491
|
}
|
|
480
492
|
if (!options.json) {
|
|
481
|
-
const status = installResult.status === "installed" ?
|
|
493
|
+
const status = installResult.status === "installed" ? a.green("\u2713") : installResult.status === "skipped" ? a.yellow("\u25CB") : a.red("\u2717");
|
|
482
494
|
const name = isZh ? service.name["zh-CN"] : service.name.en;
|
|
483
495
|
console.log(` ${status} ${service.id} (${name})`);
|
|
484
496
|
if (installResult.error) {
|
|
485
|
-
console.log(
|
|
497
|
+
console.log(a.red(` ${installResult.error}`));
|
|
486
498
|
}
|
|
487
499
|
}
|
|
488
500
|
}
|
|
489
501
|
if (result.installed.length > 0) {
|
|
490
502
|
if (!options.json) {
|
|
491
503
|
console.log("");
|
|
492
|
-
console.log(
|
|
504
|
+
console.log(a.bold.cyan(`${isZh ? "\u2699\uFE0F \u914D\u7F6E MCP \u670D\u52A1\u4E2D..." : "\u2699\uFE0F Configuring MCP services..."}
|
|
493
505
|
`));
|
|
494
506
|
}
|
|
495
507
|
backupMcpConfig();
|
|
@@ -512,14 +524,14 @@ async function ccjkMcp(options = {}) {
|
|
|
512
524
|
result.installed.forEach((serviceId) => {
|
|
513
525
|
const service = mcpServiceTemplates[serviceId] || servicesToInstall.find((s) => s.id === serviceId);
|
|
514
526
|
const name = service ? isZh ? service.name["zh-CN"] : service.name.en : serviceId;
|
|
515
|
-
console.log(` ${
|
|
527
|
+
console.log(` ${a.green("\u2713")} ${serviceId} (${name})`);
|
|
516
528
|
});
|
|
517
529
|
}
|
|
518
530
|
}
|
|
519
531
|
if (!options.skipVerification && result.installed.length > 0) {
|
|
520
532
|
if (!options.json) {
|
|
521
533
|
console.log("");
|
|
522
|
-
console.log(
|
|
534
|
+
console.log(a.bold.cyan(`${isZh ? "\u{1F50D} \u9A8C\u8BC1\u670D\u52A1..." : "\u{1F50D} Verifying services..."}
|
|
523
535
|
`));
|
|
524
536
|
}
|
|
525
537
|
for (const serviceId of result.installed) {
|
|
@@ -527,7 +539,7 @@ async function ccjkMcp(options = {}) {
|
|
|
527
539
|
const verified = service ? await verifyService(service) : false;
|
|
528
540
|
if (!options.json) {
|
|
529
541
|
const name = service ? isZh ? service.name["zh-CN"] : service.name.en : serviceId;
|
|
530
|
-
const status = verified ?
|
|
542
|
+
const status = verified ? a.green("\u2713") : a.red("\u2717");
|
|
531
543
|
console.log(` ${status} ${serviceId} (${name})`);
|
|
532
544
|
}
|
|
533
545
|
}
|
|
@@ -536,12 +548,12 @@ async function ccjkMcp(options = {}) {
|
|
|
536
548
|
if (!options.json) {
|
|
537
549
|
console.log("");
|
|
538
550
|
if (result.success) {
|
|
539
|
-
console.log(
|
|
551
|
+
console.log(a.green.bold(`${isZh ? `\u2705 \u6210\u529F\u914D\u7F6E ${result.installed.length} \u4E2A MCP \u670D\u52A1\uFF01` : `\u2705 Successfully configured ${result.installed.length} MCP service(s)!`}`));
|
|
540
552
|
} else {
|
|
541
|
-
console.log(
|
|
553
|
+
console.log(a.yellow.bold(`${isZh ? `\u26A0\uFE0F \u90E8\u5206\u670D\u52A1\u914D\u7F6E\u5931\u8D25` : `\u26A0\uFE0F Some services failed to configure`}`));
|
|
542
554
|
}
|
|
543
555
|
console.log("");
|
|
544
|
-
console.log(
|
|
556
|
+
console.log(a.bold(isZh ? "\u4E0B\u4E00\u6B65:" : "Next steps:"));
|
|
545
557
|
console.log(` \u2022 ${isZh ? "\u4F7F\u7528 /ccjk:skills \u5B89\u88C5\u6280\u80FD" : "Use /ccjk:skills to install skills"}`);
|
|
546
558
|
console.log(` \u2022 ${isZh ? "\u4F7F\u7528 /ccjk:agents \u521B\u5EFA\u4EE3\u7406" : "Use /ccjk:agents to create agents"}`);
|
|
547
559
|
console.log(` \u2022 ${isZh ? "\u91CD\u542F Claude Code \u4EE5\u5E94\u7528\u66F4\u6539" : "Restart Claude Code to apply changes"}`);
|
|
@@ -674,7 +686,7 @@ async function installServiceDependencies(service, options) {
|
|
|
674
686
|
}
|
|
675
687
|
if (options.autoInstall) {
|
|
676
688
|
consola.info(`Installing ${service.id}...`);
|
|
677
|
-
const { exec } = await import('
|
|
689
|
+
const { exec } = await import('./main.mjs');
|
|
678
690
|
const [cmd, ...args] = service.installCommand.split(" ");
|
|
679
691
|
await exec(cmd, args);
|
|
680
692
|
result.dependenciesInstalled = true;
|
|
@@ -699,7 +711,7 @@ async function checkCommandExists(command) {
|
|
|
699
711
|
}
|
|
700
712
|
async function verifyService(service) {
|
|
701
713
|
try {
|
|
702
|
-
const { exec } = await import('
|
|
714
|
+
const { exec } = await import('./main.mjs');
|
|
703
715
|
const [cmd, ...args] = service.installCheck.split(" ");
|
|
704
716
|
const result = await exec(cmd, args, { timeout: 5e3 });
|
|
705
717
|
return result.exitCode === 0;
|
|
@@ -713,35 +725,35 @@ function formatResultAsJson(result) {
|
|
|
713
725
|
function formatResultForConsole(result) {
|
|
714
726
|
const isZh = i18n.language === "zh-CN";
|
|
715
727
|
const lines = [];
|
|
716
|
-
lines.push(
|
|
728
|
+
lines.push(a.bold.cyan(isZh ? "\u{1F4CA} MCP \u670D\u52A1\u914D\u7F6E\u6458\u8981" : "\u{1F4CA} MCP Service Configuration Summary"));
|
|
717
729
|
lines.push("");
|
|
718
|
-
lines.push(`${
|
|
719
|
-
lines.push(`${
|
|
730
|
+
lines.push(`${a.bold(isZh ? "\u9879\u76EE\u7C7B\u578B" : "Project Type")}: ${result.project.type}`);
|
|
731
|
+
lines.push(`${a.bold(isZh ? "\u8BED\u8A00" : "Languages")}: ${result.project.languages.join(", ")}`);
|
|
720
732
|
if (result.project.frameworks.length > 0) {
|
|
721
|
-
lines.push(`${
|
|
733
|
+
lines.push(`${a.bold(isZh ? "\u6846\u67B6" : "Frameworks")}: ${result.project.frameworks.join(", ")}`);
|
|
722
734
|
}
|
|
723
735
|
lines.push("");
|
|
724
|
-
lines.push(
|
|
736
|
+
lines.push(a.bold(isZh ? "\u5B89\u88C5\u7684\u670D\u52A1" : "Installed Services"));
|
|
725
737
|
result.installed.forEach((id) => {
|
|
726
|
-
lines.push(` ${
|
|
738
|
+
lines.push(` ${a.green("\u2713")} ${id}`);
|
|
727
739
|
});
|
|
728
740
|
lines.push("");
|
|
729
741
|
if (result.skipped.length > 0) {
|
|
730
|
-
lines.push(
|
|
742
|
+
lines.push(a.bold(isZh ? "\u8DF3\u8FC7\u7684\u670D\u52A1" : "Skipped Services"));
|
|
731
743
|
result.skipped.forEach((id) => {
|
|
732
|
-
lines.push(` ${
|
|
744
|
+
lines.push(` ${a.yellow("\u25CB")} ${id}`);
|
|
733
745
|
});
|
|
734
746
|
lines.push("");
|
|
735
747
|
}
|
|
736
748
|
if (result.failed.length > 0) {
|
|
737
|
-
lines.push(
|
|
749
|
+
lines.push(a.bold(isZh ? "\u5931\u8D25\u7684\u670D\u52A1" : "Failed Services"));
|
|
738
750
|
result.failed.forEach((id) => {
|
|
739
|
-
lines.push(` ${
|
|
751
|
+
lines.push(` ${a.red("\u2717")} ${id}`);
|
|
740
752
|
});
|
|
741
753
|
lines.push("");
|
|
742
754
|
}
|
|
743
|
-
lines.push(`${
|
|
744
|
-
lines.push(`${
|
|
755
|
+
lines.push(`${a.bold(isZh ? "\u8017\u65F6" : "Duration")}: ${result.duration}ms`);
|
|
756
|
+
lines.push(`${a.bold(isZh ? "\u914D\u7F6E\u6587\u4EF6" : "Config File")}: ${result.configPath}`);
|
|
745
757
|
return lines.join("\n");
|
|
746
758
|
}
|
|
747
759
|
|
|
@@ -1,38 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { consola } from '
|
|
3
|
-
import {
|
|
4
|
-
import { i18n } from './index3.mjs';
|
|
1
|
+
import a from './index2.mjs';
|
|
2
|
+
import { c as consola, P as ProjectAnalyzer } from '../shared/ccjk.s7OCVzdd.mjs';
|
|
3
|
+
import { i18n } from './index5.mjs';
|
|
5
4
|
import { promises } from 'node:fs';
|
|
6
5
|
import { performance } from 'node:perf_hooks';
|
|
7
|
-
import { join } from 'pathe';
|
|
8
6
|
import { ccjkAgents } from './ccjk-agents.mjs';
|
|
9
7
|
import { ccjkHooks } from './ccjk-hooks.mjs';
|
|
10
8
|
import { ccjkMcp } from './ccjk-mcp.mjs';
|
|
11
9
|
import { ccjkSkills } from './ccjk-skills.mjs';
|
|
12
|
-
import dayjs from '
|
|
10
|
+
import { d as dayjs } from '../shared/ccjk.RyizuzOI.mjs';
|
|
11
|
+
import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
12
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
13
|
+
import './index8.mjs';
|
|
13
14
|
import 'tinyglobby';
|
|
14
|
-
import '
|
|
15
|
-
import 'ofetch';
|
|
15
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
16
16
|
import 'node:process';
|
|
17
17
|
import 'node:url';
|
|
18
|
-
import 'i18next';
|
|
19
|
-
import 'i18next-fs-backend';
|
|
20
18
|
import './constants.mjs';
|
|
21
19
|
import 'node:os';
|
|
22
|
-
import '../shared/ccjk.
|
|
20
|
+
import '../shared/ccjk.CfKKcvWy.mjs';
|
|
23
21
|
import '../shared/ccjk.AqnXPAzw.mjs';
|
|
24
|
-
import '
|
|
25
|
-
import 'node:
|
|
22
|
+
import './index3.mjs';
|
|
23
|
+
import 'node:readline';
|
|
24
|
+
import 'stream';
|
|
25
|
+
import 'node:tty';
|
|
26
|
+
import 'node:async_hooks';
|
|
27
|
+
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
26
28
|
import 'node:util';
|
|
29
|
+
import 'tty';
|
|
30
|
+
import 'fs';
|
|
31
|
+
import 'child_process';
|
|
27
32
|
import 'node:path';
|
|
33
|
+
import 'node:crypto';
|
|
34
|
+
import 'buffer';
|
|
35
|
+
import 'string_decoder';
|
|
36
|
+
import 'node:child_process';
|
|
28
37
|
import './claude-config.mjs';
|
|
29
38
|
import './json-config.mjs';
|
|
30
39
|
import './fs-operations.mjs';
|
|
31
|
-
import 'node:crypto';
|
|
32
40
|
import 'node:fs/promises';
|
|
33
41
|
import './platform.mjs';
|
|
34
|
-
import '
|
|
35
|
-
import '
|
|
42
|
+
import './main.mjs';
|
|
43
|
+
import 'module';
|
|
44
|
+
import 'node:stream';
|
|
45
|
+
import '../shared/ccjk.DsYaCCx4.mjs';
|
|
36
46
|
|
|
37
47
|
async function createBackup(operation, options = {}) {
|
|
38
48
|
const timestamp = dayjs().format("YYYYMMDD-HHmmss");
|
|
@@ -689,8 +699,8 @@ async function ccjkSetup(options = {}) {
|
|
|
689
699
|
return result.success ? 0 : 1;
|
|
690
700
|
}
|
|
691
701
|
logger.log("");
|
|
692
|
-
logger.log(
|
|
693
|
-
logger.log(
|
|
702
|
+
logger.log(a.cyan(a.bold(`\u{1F680} ${isZh ? "CCJK \u5B8C\u6574\u672C\u5730\u8BBE\u7F6E" : "CCJK Complete Local Setup"}`)));
|
|
703
|
+
logger.log(a.gray(isZh ? "\u57FA\u4E8E\u9879\u76EE\u5206\u6790\u7684\u667A\u80FD\u914D\u7F6E" : "Project-based intelligent setup"));
|
|
694
704
|
logger.log("");
|
|
695
705
|
try {
|
|
696
706
|
const result = await orchestrator.execute({
|
|
@@ -711,7 +721,7 @@ async function showResults(result, options, logger) {
|
|
|
711
721
|
const isZh = i18n.language === "zh-CN";
|
|
712
722
|
logger.log("");
|
|
713
723
|
if (result.success) {
|
|
714
|
-
logger.log(
|
|
724
|
+
logger.log(a.green(a.bold(isZh ? "\u2705 \u8BBE\u7F6E\u5B8C\u6210\uFF01" : "\u2705 Setup Complete!")));
|
|
715
725
|
logger.log("");
|
|
716
726
|
const skillsPhase = result.phases.find((p) => p.phase === "skills");
|
|
717
727
|
const mcpPhase = result.phases.find((p) => p.phase === "mcp");
|
|
@@ -723,18 +733,18 @@ async function showResults(result, options, logger) {
|
|
|
723
733
|
`${isZh ? "\u4EE3\u7406" : "Agents"}: ${agentsPhase?.installed || 0} ${isZh ? "\u5DF2\u521B\u5EFA" : "created"}`,
|
|
724
734
|
`${isZh ? "\u94A9\u5B50" : "Hooks"}: ${hooksPhase?.installed || 0} ${isZh ? "\u5DF2\u914D\u7F6E" : "configured"}`
|
|
725
735
|
];
|
|
726
|
-
logger.log(
|
|
736
|
+
logger.log(a.bold(isZh ? "\u6458\u8981:" : "Summary:"));
|
|
727
737
|
summary.forEach((line) => logger.log(` ${line}`));
|
|
728
738
|
logger.log("");
|
|
729
|
-
logger.log(
|
|
739
|
+
logger.log(a.bold(isZh ? "\u4E0B\u4E00\u6B65:" : "Next steps:"));
|
|
730
740
|
logger.log(` \u2022 ${isZh ? "\u4F7F\u7528 /ccjk:all \u83B7\u53D6\u4E91AI\u63A8\u8350" : "Use /ccjk:all for cloud AI recommendations"}`);
|
|
731
741
|
logger.log(` \u2022 ${isZh ? "\u91CD\u542F Claude Code \u4EE5\u5E94\u7528\u66F4\u6539" : "Restart Claude Code to apply changes"}`);
|
|
732
742
|
logger.log("");
|
|
733
743
|
} else {
|
|
734
|
-
logger.log(
|
|
744
|
+
logger.log(a.yellow(a.bold(isZh ? "\u26A0\uFE0F \u8BBE\u7F6E\u90E8\u5206\u5931\u8D25" : "\u26A0\uFE0F Setup Partially Failed")));
|
|
735
745
|
logger.log("");
|
|
736
746
|
if (result.errors && result.errors.length > 0) {
|
|
737
|
-
logger.log(
|
|
747
|
+
logger.log(a.bold(isZh ? "\u9519\u8BEF:" : "Errors:"));
|
|
738
748
|
result.errors.forEach((err) => logger.log(` \u2022 ${err}`));
|
|
739
749
|
logger.log("");
|
|
740
750
|
}
|
|
@@ -743,9 +753,9 @@ async function showResults(result, options, logger) {
|
|
|
743
753
|
}
|
|
744
754
|
}
|
|
745
755
|
if (options.report && result.reportPath) {
|
|
746
|
-
logger.log(
|
|
756
|
+
logger.log(a.bold(isZh ? "\u{1F4CA} \u8BE6\u7EC6\u62A5\u544A:" : "\u{1F4CA} Detailed Report:"));
|
|
747
757
|
logger.log("");
|
|
748
|
-
logger.log(
|
|
758
|
+
logger.log(a.gray(`Report saved to: ${result.reportPath}`));
|
|
749
759
|
}
|
|
750
760
|
}
|
|
751
761
|
|