ccjk 10.0.0 → 10.2.0
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 +1 -1
- package/dist/chunks/agent.mjs +1 -1
- package/dist/chunks/agents.mjs +1 -1
- package/dist/chunks/api-providers.mjs +1 -1
- package/dist/chunks/api.mjs +3 -3
- package/dist/chunks/auto-bootstrap.mjs +1 -1
- package/dist/chunks/auto-updater.mjs +1 -1
- package/dist/{shared/ccjk.Br91zBIG.mjs → chunks/banner.mjs} +52 -3
- package/dist/chunks/boost.mjs +2 -2
- package/dist/chunks/ccjk-agents.mjs +1 -1
- package/dist/chunks/ccjk-all.mjs +1 -1
- package/dist/chunks/ccjk-config.mjs +1 -1
- package/dist/chunks/ccjk-hooks.mjs +1 -1
- package/dist/chunks/ccjk-mcp.mjs +2 -2
- package/dist/chunks/ccjk-setup.mjs +1 -1
- package/dist/chunks/ccjk-skills.mjs +1 -1
- package/dist/chunks/ccr.mjs +10 -10
- package/dist/chunks/ccu.mjs +1 -1
- package/dist/chunks/check-updates.mjs +3 -3
- package/dist/chunks/claude-code-config-manager.mjs +7 -7
- package/dist/chunks/claude-code-incremental-manager.mjs +2 -2
- package/dist/chunks/claude-config.mjs +3 -3
- package/dist/chunks/claude-wrapper.mjs +2 -2
- package/dist/chunks/codex-config-switch.mjs +2 -2
- package/dist/chunks/codex-provider-manager.mjs +2 -2
- package/dist/chunks/codex-uninstaller.mjs +2 -2
- package/dist/chunks/codex.mjs +5 -5
- package/dist/chunks/commands.mjs +88 -391
- package/dist/chunks/commands2.mjs +391 -88
- package/dist/chunks/completion.mjs +1 -1
- package/dist/chunks/config-consolidator.mjs +2 -2
- package/dist/chunks/config-switch.mjs +3 -3
- package/dist/chunks/config.mjs +5 -5
- package/dist/chunks/config2.mjs +410 -400
- package/dist/chunks/config3.mjs +400 -410
- package/dist/chunks/constants.mjs +1 -1
- package/dist/chunks/context.mjs +283 -1
- package/dist/chunks/dashboard.mjs +365 -0
- package/dist/chunks/doctor.mjs +4 -4
- package/dist/chunks/features.mjs +11 -11
- package/dist/chunks/fs-operations.mjs +1 -1
- package/dist/chunks/health-alerts.mjs +304 -0
- package/dist/chunks/health-check.mjs +532 -0
- package/dist/chunks/index.mjs +10 -177
- package/dist/chunks/index2.mjs +168 -1162
- package/dist/chunks/index3.mjs +1076 -910
- package/dist/chunks/index4.mjs +947 -137
- package/dist/chunks/index5.mjs +167 -635
- package/dist/chunks/index6.mjs +663 -0
- package/dist/chunks/init.mjs +19 -19
- package/dist/chunks/installer.mjs +649 -147
- package/dist/chunks/installer2.mjs +147 -649
- package/dist/chunks/interview.mjs +2 -2
- package/dist/chunks/marketplace.mjs +1 -1
- package/dist/chunks/mcp.mjs +4 -4
- package/dist/chunks/menu.mjs +16 -9
- package/dist/chunks/metrics-display.mjs +152 -0
- package/dist/chunks/migrator.mjs +1 -1
- package/dist/chunks/monitor.mjs +2 -2
- package/dist/chunks/notification.mjs +1 -1
- package/dist/chunks/onboarding.mjs +2 -2
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/permission-manager.mjs +2 -2
- package/dist/chunks/permissions.mjs +1 -1
- package/dist/chunks/persistence-manager.mjs +781 -0
- package/dist/chunks/persistence.mjs +667 -0
- package/dist/chunks/platform.mjs +1 -1
- package/dist/chunks/plugin.mjs +1 -1
- package/dist/chunks/prompts.mjs +1 -1
- package/dist/chunks/providers.mjs +1 -1
- package/dist/chunks/quick-actions.mjs +321 -0
- package/dist/chunks/quick-setup.mjs +8 -8
- package/dist/chunks/sessions.mjs +1 -1
- package/dist/chunks/silent-updater.mjs +1 -1
- package/dist/chunks/simple-config.mjs +2 -2
- package/dist/chunks/skill.mjs +1 -1
- package/dist/chunks/skills-sync.mjs +1 -1
- package/dist/chunks/skills.mjs +1 -1
- package/dist/chunks/slash-commands.mjs +208 -0
- package/dist/chunks/smart-defaults.mjs +1 -1
- package/dist/chunks/startup.mjs +1 -1
- package/dist/chunks/stats.mjs +1 -1
- package/dist/chunks/status.mjs +31 -2
- package/dist/chunks/team.mjs +1 -1
- package/dist/chunks/thinking.mjs +2 -2
- package/dist/chunks/uninstall.mjs +5 -5
- package/dist/chunks/update.mjs +7 -7
- package/dist/chunks/upgrade-manager.mjs +2 -2
- package/dist/chunks/version-checker.mjs +3 -3
- package/dist/chunks/vim.mjs +1 -1
- package/dist/cli.mjs +191 -21
- package/dist/i18n/locales/en/cli.json +14 -1
- package/dist/i18n/locales/en/common.json +27 -0
- package/dist/i18n/locales/en/context.json +54 -1
- package/dist/i18n/locales/en/dashboard.json +78 -0
- package/dist/i18n/locales/en/persistence.json +127 -0
- package/dist/i18n/locales/en/quick-actions.json +78 -0
- package/dist/i18n/locales/zh-CN/cli.json +14 -1
- package/dist/i18n/locales/zh-CN/common.json +27 -0
- package/dist/i18n/locales/zh-CN/context.json +54 -1
- package/dist/i18n/locales/zh-CN/dashboard.json +78 -0
- package/dist/i18n/locales/zh-CN/persistence.json +127 -0
- package/dist/i18n/locales/zh-CN/quick-actions.json +78 -0
- package/dist/index.mjs +2 -2
- package/dist/shared/{ccjk.DE91nClQ.mjs → ccjk.BKoi8-Hy.mjs} +1 -1
- package/dist/shared/{ccjk.Dpw86UX0.mjs → ccjk.CxtuJxaS.mjs} +1 -1
- package/dist/shared/{ccjk.ClzTOz9n.mjs → ccjk.DB2UYcq0.mjs} +5 -5
- package/dist/shared/{ccjk.Bndhan7G.mjs → ccjk.DfwJOEok.mjs} +1 -1
- package/dist/shared/{ccjk.DvIrK0wz.mjs → ccjk.DrMygfCF.mjs} +1 -1
- package/dist/shared/ccjk.DtMBiwVG.mjs +599 -0
- package/dist/shared/{ccjk.CmsW23FN.mjs → ccjk.IbImMVWM.mjs} +3 -3
- package/package.json +19 -19
- package/dist/shared/ccjk.OYWY25_l.mjs +0 -239
package/dist/chunks/init.mjs
CHANGED
|
@@ -3,27 +3,27 @@ import process__default from 'node:process';
|
|
|
3
3
|
import ansis from 'ansis';
|
|
4
4
|
import inquirer from 'inquirer';
|
|
5
5
|
import { version } from './package.mjs';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { m as runCodexFullInit, d as selectMcpServices, g as getMcpServices, M as MCP_SERVICE_CONFIGS } from './codex.mjs';
|
|
7
|
+
import { a as modifyApiConfigPartially, b as configureApiCompletely, n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration, s as selectAndInstallWorkflows, c as configureOutputStyle, f as formatApiKeyDisplay, W as WORKFLOW_CONFIG_BASE } from '../shared/ccjk.IbImMVWM.mjs';
|
|
8
8
|
import { SETTINGS_FILE, DEFAULT_CODE_TOOL_TYPE, CODE_TOOL_BANNERS, API_DEFAULT_URL } from './constants.mjs';
|
|
9
|
-
import { ensureI18nInitialized, i18n } from './
|
|
10
|
-
import {
|
|
9
|
+
import { ensureI18nInitialized, i18n } from './index2.mjs';
|
|
10
|
+
import { displayBannerWithInfo, padToDisplayWidth } from './banner.mjs';
|
|
11
11
|
import { readZcfConfig, updateZcfConfig } from './ccjk-config.mjs';
|
|
12
|
-
import { readCcrConfig, backupCcrConfig, createDefaultCcrConfig, writeCcrConfig, configureCcrProxy, setupCcrConfiguration } from './
|
|
12
|
+
import { readCcrConfig, backupCcrConfig, createDefaultCcrConfig, writeCcrConfig, configureCcrProxy, setupCcrConfiguration } from './config2.mjs';
|
|
13
13
|
import { exec } from 'node:child_process';
|
|
14
14
|
import { promisify } from 'node:util';
|
|
15
15
|
import { updateCcr } from './auto-updater.mjs';
|
|
16
|
-
import { w as wrapCommandWithSudo, i as isWindows,
|
|
17
|
-
import {
|
|
18
|
-
import { r as resolveCodeType } from '../shared/ccjk.
|
|
16
|
+
import { w as wrapCommandWithSudo, i as isWindows, b as isTermux } from './platform.mjs';
|
|
17
|
+
import { c as addCompletedOnboarding, s as setPrimaryApiKey, b as backupMcpConfig, a as buildMcpServerConfig, r as readMcpConfig, e as replaceMcpServers, f as fixWindowsMcpConfig, w as writeMcpConfig, g as syncMcpPermissions } from './claude-config.mjs';
|
|
18
|
+
import { r as resolveCodeType } from '../shared/ccjk.CxtuJxaS.mjs';
|
|
19
19
|
import { exists } from './fs-operations.mjs';
|
|
20
20
|
import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
|
|
21
|
-
import { p as promptApiConfigurationAction,
|
|
22
|
-
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.
|
|
23
|
-
import { getInstallationStatus, installClaudeCode } from './
|
|
21
|
+
import { p as promptApiConfigurationAction, i as ensureClaudeDir, e as getExistingApiConfig, s as switchToOfficialLogin, b as backupExistingConfig, c as copyConfigFiles, a as applyAiLanguageDirective, f as configureApi } from './config.mjs';
|
|
22
|
+
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.DrMygfCF.mjs';
|
|
23
|
+
import { getInstallationStatus, installClaudeCode } from './installer.mjs';
|
|
24
24
|
import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
|
|
25
25
|
import { resolveAiOutputLanguage } from './prompts.mjs';
|
|
26
|
-
import { c as checkSuperpowersInstalled, i as installSuperpowers } from '../shared/ccjk.
|
|
26
|
+
import { c as checkSuperpowersInstalled, i as installSuperpowers } from '../shared/ccjk.BKoi8-Hy.mjs';
|
|
27
27
|
import { p as promptBoolean } from '../shared/ccjk.DHbrGcgg.mjs';
|
|
28
28
|
import { checkClaudeCodeVersionAndPrompt } from './version-checker.mjs';
|
|
29
29
|
|
|
@@ -642,7 +642,7 @@ async function init(options = {}) {
|
|
|
642
642
|
try {
|
|
643
643
|
setPrimaryApiKey();
|
|
644
644
|
} catch (error) {
|
|
645
|
-
const { ensureI18nInitialized, i18n: i18nModule } = await import('./
|
|
645
|
+
const { ensureI18nInitialized, i18n: i18nModule } = await import('./index2.mjs');
|
|
646
646
|
ensureI18nInitialized();
|
|
647
647
|
console.error(i18nModule.t("mcp:primaryApiKeySetFailed"), error);
|
|
648
648
|
}
|
|
@@ -748,7 +748,7 @@ async function init(options = {}) {
|
|
|
748
748
|
const aiOutputLang = await resolveAiOutputLanguage(i18n.language, options.aiOutputLang, zcfConfig, options.skipPrompt);
|
|
749
749
|
const installationStatus = await getInstallationStatus();
|
|
750
750
|
if (installationStatus.hasGlobal) {
|
|
751
|
-
const { verifyInstallation, displayVerificationResult } = await import('./
|
|
751
|
+
const { verifyInstallation, displayVerificationResult } = await import('./installer.mjs');
|
|
752
752
|
const verification = await verifyInstallation("claude-code");
|
|
753
753
|
if (verification.symlinkCreated) {
|
|
754
754
|
console.log(ansis.green(`\u2714 ${i18n.t("installation:alreadyInstalled")}`));
|
|
@@ -975,7 +975,7 @@ async function init(options = {}) {
|
|
|
975
975
|
const hasModelParams = options.apiModel || options.apiHaikuModel || options.apiSonnetModel || options.apiOpusModel;
|
|
976
976
|
if (hasModelParams && action !== "docs-only" && codeToolType === "claude-code") {
|
|
977
977
|
if (options.skipPrompt) {
|
|
978
|
-
const { updateCustomModel } = await import('./config.mjs').then(function (n) { return n.
|
|
978
|
+
const { updateCustomModel } = await import('./config.mjs').then(function (n) { return n.j; });
|
|
979
979
|
updateCustomModel(
|
|
980
980
|
options.apiModel || void 0,
|
|
981
981
|
options.apiHaikuModel || void 0,
|
|
@@ -1173,7 +1173,7 @@ async function init(options = {}) {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
1175
|
async function handleMultiConfigurations(options, codeToolType) {
|
|
1176
|
-
const { ensureI18nInitialized } = await import('./
|
|
1176
|
+
const { ensureI18nInitialized } = await import('./index2.mjs');
|
|
1177
1177
|
ensureI18nInitialized();
|
|
1178
1178
|
try {
|
|
1179
1179
|
let configs = [];
|
|
@@ -1412,7 +1412,7 @@ async function smartInit(options = {}) {
|
|
|
1412
1412
|
try {
|
|
1413
1413
|
console.log(ansis.bold.green("\n\u{1F9E0} Smart Initialization Mode\n"));
|
|
1414
1414
|
console.log(ansis.gray("Analyzing your project to generate optimal configuration...\n"));
|
|
1415
|
-
const { analyzeProject } = await import('./
|
|
1415
|
+
const { analyzeProject } = await import('./index6.mjs');
|
|
1416
1416
|
const analysis = await analyzeProject();
|
|
1417
1417
|
console.log(ansis.cyan("\u{1F4CA} Project Analysis:"));
|
|
1418
1418
|
console.log(ansis.gray(` \u2022 Type: ${analysis.projectType}`));
|
|
@@ -1431,7 +1431,7 @@ async function smartInit(options = {}) {
|
|
|
1431
1431
|
console.log(ansis.gray(` \u2022 CI/CD: ${analysis.cicd.join(", ")}`));
|
|
1432
1432
|
}
|
|
1433
1433
|
console.log("");
|
|
1434
|
-
const { selectTemplates } = await import('./
|
|
1434
|
+
const { selectTemplates } = await import('./index6.mjs');
|
|
1435
1435
|
const selection = await selectTemplates(analysis);
|
|
1436
1436
|
console.log(ansis.cyan("\u{1F3AF} Template Selection:"));
|
|
1437
1437
|
console.log(ansis.gray(` \u2022 Agents: ${selection.agents.length} selected`));
|
|
@@ -1457,7 +1457,7 @@ async function smartInit(options = {}) {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
console.log(ansis.gray("\n\u{1F527} Generating configurations...\n"));
|
|
1460
|
-
const { generateConfigs, writeConfigs } = await import('./
|
|
1460
|
+
const { generateConfigs, writeConfigs } = await import('./index6.mjs');
|
|
1461
1461
|
const config = await generateConfigs(selection);
|
|
1462
1462
|
await writeConfigs(config);
|
|
1463
1463
|
console.log(ansis.green("\u2714 Configurations generated successfully!"));
|