ccjk 2.2.2 → 2.2.5
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/auto-updater.mjs +37 -3
- package/dist/chunks/ccjk-config.mjs +77 -13
- package/dist/chunks/ccr.mjs +8 -11
- package/dist/chunks/ccu.mjs +4 -4
- package/dist/chunks/check-updates.mjs +5 -8
- package/dist/chunks/claude-code-config-manager.mjs +8 -11
- package/dist/chunks/claude-code-incremental-manager.mjs +4 -7
- package/dist/chunks/codex.mjs +496 -17
- package/dist/chunks/commands.mjs +392 -89
- package/dist/chunks/commands2.mjs +109 -0
- package/dist/chunks/config-consolidator.mjs +2 -2
- package/dist/chunks/config-switch.mjs +5 -8
- package/dist/chunks/doctor.mjs +6 -6
- package/dist/chunks/features.mjs +654 -35
- package/dist/chunks/help.mjs +339 -0
- package/dist/chunks/index.mjs +323 -10
- package/dist/chunks/index2.mjs +3 -3
- package/dist/chunks/index3.mjs +1171 -0
- package/dist/chunks/init.mjs +22 -25
- package/dist/chunks/installer.mjs +178 -0
- package/dist/chunks/interview.mjs +6 -6
- package/dist/chunks/mcp-performance.mjs +82 -2
- package/dist/chunks/mcp.mjs +500 -0
- package/dist/chunks/menu.mjs +10 -10
- package/dist/chunks/notification.mjs +5 -5
- package/dist/chunks/onboarding.mjs +6 -6
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/platform.mjs +10 -10
- package/dist/chunks/prompts.mjs +7 -8
- package/dist/chunks/session.mjs +2 -2
- package/dist/chunks/skills-sync.mjs +2 -2
- package/dist/chunks/uninstall.mjs +4 -5
- package/dist/chunks/update.mjs +5 -8
- package/dist/chunks/upgrade-manager.mjs +2 -2
- package/dist/{shared/ccjk.Cy-RH2qV.mjs → chunks/version-checker.mjs} +373 -30
- package/dist/cli.mjs +293 -53
- package/dist/i18n/locales/en/agentBrowser.json +79 -0
- package/dist/i18n/locales/en/mcp.json +2 -4
- package/dist/i18n/locales/en/updater.json +5 -2
- package/dist/i18n/locales/zh/agentBrowser.json +79 -0
- package/dist/i18n/locales/zh-CN/common.json +1 -1
- package/dist/i18n/locales/zh-CN/mcp.json +2 -4
- package/dist/i18n/locales/zh-CN/updater.json +5 -2
- package/dist/index.d.mts +8 -584
- package/dist/index.d.ts +8 -584
- package/dist/index.mjs +10 -14
- package/dist/shared/{ccjk.DJM5aVQJ.mjs → ccjk.ByTIGCUC.mjs} +3 -3
- package/dist/shared/{ccjk.qYAnUMuy.mjs → ccjk.CGTmRqsu.mjs} +2 -3
- package/dist/shared/{ccjk.CUdzQluX.mjs → ccjk.CURU8gbR.mjs} +1 -1
- package/dist/{chunks/mcp-market.mjs → shared/ccjk.D-RZS4E2.mjs} +6 -65
- package/dist/shared/{ccjk.B7169qud.mjs → ccjk.tB4-Y4Qb.mjs} +3 -3
- package/package.json +4 -1
- package/templates/common/skills/en/agent-browser.md +258 -0
- package/templates/common/skills/zh-CN/agent-browser.md +260 -0
- package/dist/chunks/claude-config.mjs +0 -228
- package/dist/chunks/features2.mjs +0 -661
- package/dist/chunks/json-config.mjs +0 -59
- package/dist/chunks/mcp-doctor.mjs +0 -160
- package/dist/chunks/mcp-profile.mjs +0 -220
- package/dist/chunks/mcp-release.mjs +0 -138
- package/dist/chunks/shencha.mjs +0 -320
- package/dist/chunks/tools.mjs +0 -169
- package/dist/shared/ccjk.COdsoe-Y.mjs +0 -64
- package/dist/shared/ccjk.DwDtZ5cK.mjs +0 -266
- package/dist/shared/ccjk.n_AtlHzB.mjs +0 -186
package/dist/chunks/doctor.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, statSync, writeFileSync, readFileSync, readdirSync } from 'node:fs';
|
|
2
|
-
import
|
|
2
|
+
import process__default from 'node:process';
|
|
3
3
|
import ansis from 'ansis';
|
|
4
4
|
import inquirer from 'inquirer';
|
|
5
5
|
import { resolve, join, dirname } from 'pathe';
|
|
@@ -143,7 +143,7 @@ async function checkDirectoryOwnership(cwd) {
|
|
|
143
143
|
}
|
|
144
144
|
try {
|
|
145
145
|
const stat = statSync(cwd);
|
|
146
|
-
const currentUid =
|
|
146
|
+
const currentUid = process__default.getuid?.() ?? -1;
|
|
147
147
|
if (currentUid === -1) {
|
|
148
148
|
return {
|
|
149
149
|
name: t("workspace:checks.ownership"),
|
|
@@ -161,7 +161,7 @@ async function checkDirectoryOwnership(cwd) {
|
|
|
161
161
|
fixDescription: t("workspace:fixes.changeOwner"),
|
|
162
162
|
fix: async () => {
|
|
163
163
|
try {
|
|
164
|
-
await exec("sudo", ["chown", "-R", `${currentUid}:${
|
|
164
|
+
await exec("sudo", ["chown", "-R", `${currentUid}:${process__default.getgid?.() ?? currentUid}`, cwd], { throwOnError: true });
|
|
165
165
|
return true;
|
|
166
166
|
} catch {
|
|
167
167
|
return false;
|
|
@@ -391,7 +391,7 @@ async function checkEnvironment() {
|
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
393
|
async function runWorkspaceCheck(targetDir) {
|
|
394
|
-
const cwd = targetDir ? resolve(targetDir) :
|
|
394
|
+
const cwd = targetDir ? resolve(targetDir) : process__default.cwd();
|
|
395
395
|
const spinner = ora(t("workspace:checking")).start();
|
|
396
396
|
const checks = [];
|
|
397
397
|
spinner.text = t("workspace:checkingCwd");
|
|
@@ -696,12 +696,12 @@ async function doctor() {
|
|
|
696
696
|
});
|
|
697
697
|
if (runWorkspace) {
|
|
698
698
|
console.log("");
|
|
699
|
-
const report = await runWorkspaceCheck(
|
|
699
|
+
const report = await runWorkspaceCheck(process__default.cwd());
|
|
700
700
|
displayWorkspaceReport(report);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
async function workspaceDiagnostics(targetDir) {
|
|
704
|
-
const dir = targetDir ? resolve(targetDir) :
|
|
704
|
+
const dir = targetDir ? resolve(targetDir) : process__default.cwd();
|
|
705
705
|
await runWorkspaceWizard(dir);
|
|
706
706
|
}
|
|
707
707
|
|