ccjk 13.3.5 → 13.3.7
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 +7 -5
- package/dist/chunks/agent.mjs +2 -2
- package/dist/chunks/agents.mjs +16 -16
- package/dist/chunks/api-cli.mjs +6 -6
- package/dist/chunks/api-providers.mjs +1 -1
- package/dist/chunks/api.mjs +4 -4
- package/dist/chunks/auto-bootstrap.mjs +1 -1
- package/dist/chunks/auto-fix.mjs +49 -4
- package/dist/chunks/auto-fixer.mjs +7 -5
- package/dist/chunks/auto-init.mjs +9 -7208
- package/dist/chunks/auto-memory-bridge.mjs +9 -3
- package/dist/chunks/auto-updater.mjs +9 -9
- package/dist/chunks/auto-upgrade.mjs +5 -3
- package/dist/chunks/banner.mjs +4 -3
- package/dist/chunks/boost.mjs +118 -62
- package/dist/chunks/ccjk-agents.mjs +3 -3
- package/dist/chunks/ccjk-all.mjs +7 -7
- package/dist/chunks/ccjk-config.mjs +2 -2
- package/dist/chunks/ccjk-hooks.mjs +4 -4
- package/dist/chunks/ccjk-mcp.mjs +5 -5
- package/dist/chunks/ccjk-setup.mjs +5 -5
- package/dist/chunks/ccjk-skills.mjs +5 -5
- package/dist/chunks/ccr.mjs +18 -16
- package/dist/chunks/ccu.mjs +2 -2
- package/dist/chunks/check-updates.mjs +8 -8
- package/dist/chunks/claude-code-config-manager.mjs +11 -8
- package/dist/chunks/claude-code-incremental-manager.mjs +7 -7
- package/dist/chunks/claude-config.mjs +1 -1
- package/dist/chunks/claude-wrapper.mjs +1 -1
- package/dist/chunks/cli-hook.mjs +15 -15
- package/dist/chunks/codex-config-switch.mjs +7 -7
- package/dist/chunks/codex-provider-manager.mjs +7 -7
- package/dist/chunks/codex-uninstaller.mjs +2 -2
- package/dist/chunks/codex.mjs +5 -5
- package/dist/chunks/commands.mjs +2 -2
- package/dist/chunks/commands2.mjs +3 -3
- package/dist/chunks/commit.mjs +2 -2
- package/dist/chunks/completion.mjs +2 -2
- package/dist/chunks/config-consolidator.mjs +2 -2
- package/dist/chunks/config-switch.mjs +8 -8
- package/dist/chunks/config.mjs +6 -5
- package/dist/chunks/config2.mjs +5 -5
- package/dist/chunks/config3.mjs +4 -4
- package/dist/chunks/constants.mjs +1 -1
- package/dist/chunks/context-opt.mjs +92 -90
- package/dist/chunks/context.mjs +659 -0
- package/dist/chunks/dashboard.mjs +14 -9
- package/dist/chunks/doctor.mjs +4 -4
- package/dist/chunks/eval.mjs +502 -0
- package/dist/chunks/evolution.mjs +46 -39
- package/dist/chunks/health-alerts.mjs +9 -9
- package/dist/chunks/help.mjs +1 -1
- package/dist/chunks/hook-installer.mjs +6 -3
- package/dist/chunks/index.mjs +23 -0
- package/dist/chunks/index10.mjs +634 -571
- package/dist/chunks/index11.mjs +1061 -569
- package/dist/chunks/index12.mjs +914 -1076
- package/dist/chunks/index13.mjs +136 -951
- package/dist/chunks/index14.mjs +209 -185
- package/dist/chunks/index2.mjs +19 -24
- package/dist/chunks/index3.mjs +19085 -12
- package/dist/chunks/index4.mjs +16 -19092
- package/dist/chunks/index5.mjs +7602 -16
- package/dist/chunks/index6.mjs +159 -7590
- package/dist/chunks/index7.mjs +1602 -171
- package/dist/chunks/index8.mjs +19 -1602
- package/dist/chunks/index9.mjs +612 -15
- package/dist/chunks/init.mjs +26 -19
- package/dist/chunks/installer.mjs +5 -5
- package/dist/chunks/installer2.mjs +2 -2
- package/dist/chunks/intent-engine.mjs +1 -1
- package/dist/chunks/interview.mjs +4 -4
- package/dist/chunks/manager.mjs +1 -1
- package/dist/chunks/marketplace.mjs +2 -2
- package/dist/chunks/mcp-cli.mjs +12 -12
- package/dist/chunks/mcp.mjs +8 -8
- package/dist/chunks/memory.mjs +8 -8
- package/dist/chunks/menu-hierarchical.mjs +24 -22
- package/dist/chunks/menu.mjs +27 -22
- package/dist/chunks/metrics-display.mjs +2 -2
- package/dist/chunks/migrator.mjs +1 -1
- package/dist/chunks/monitor.mjs +2 -2
- package/dist/chunks/notification.mjs +6 -6
- package/dist/chunks/onboarding-wizard.mjs +6 -5
- package/dist/chunks/onboarding.mjs +4 -4
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/paradigm.mjs +2 -2
- package/dist/chunks/permission-manager.mjs +2 -2
- package/dist/chunks/permissions.mjs +3 -3
- package/dist/chunks/persistence-manager.mjs +19 -12
- package/dist/chunks/persistence.mjs +5 -3
- package/dist/chunks/plugin.mjs +2 -2
- package/dist/chunks/prompts.mjs +5 -5
- package/dist/chunks/providers.mjs +2 -2
- package/dist/chunks/quick-actions.mjs +7 -6
- package/dist/chunks/quick-provider.mjs +5 -4
- package/dist/chunks/quick-setup.mjs +20 -15
- package/dist/chunks/remote.mjs +15 -16
- package/dist/chunks/{convoy-manager.mjs → session-manager.mjs} +1129 -1095
- package/dist/chunks/session.mjs +2 -2
- package/dist/chunks/sessions.mjs +3 -3
- package/dist/chunks/silent-updater.mjs +1 -1
- package/dist/chunks/simple-config.mjs +2 -2
- package/dist/chunks/skill2.mjs +3 -3
- package/dist/chunks/skills-sync.mjs +5 -5
- package/dist/chunks/skills.mjs +3 -3
- package/dist/chunks/slash-commands.mjs +9 -8
- package/dist/chunks/smart-defaults.mjs +9 -5
- package/dist/chunks/startup.mjs +1 -1
- package/dist/chunks/stats.mjs +2 -2
- package/dist/chunks/status.mjs +37 -22
- package/dist/chunks/team.mjs +3 -3
- package/dist/chunks/thinking.mjs +4 -4
- package/dist/chunks/trace.mjs +2 -2
- package/dist/chunks/uninstall.mjs +9 -9
- package/dist/chunks/update.mjs +14 -11
- package/dist/chunks/upgrade-manager.mjs +3 -3
- package/dist/chunks/upgrade.mjs +25 -9
- package/dist/chunks/version-checker.mjs +4 -4
- package/dist/chunks/vim.mjs +3 -3
- package/dist/chunks/workflows.mjs +1 -1
- package/dist/chunks/wsl.mjs +1 -1
- package/dist/chunks/zero-config.mjs +4 -4
- package/dist/cli.mjs +60 -26
- package/dist/index.d.mts +4392 -4392
- package/dist/index.d.ts +4392 -4392
- package/dist/index.mjs +4314 -4314
- package/dist/shared/{ccjk.DcKLglJQ.mjs → ccjk.BIxuVL3_.mjs} +2 -2
- package/dist/shared/{ccjk.DJdmgr2d.mjs → ccjk.BJMRY2Ra.mjs} +5 -3
- package/dist/shared/{ccjk.B1TwPltj.mjs → ccjk.BOu1yav7.mjs} +3 -2
- package/dist/shared/{ccjk.mJpVRDZ8.mjs → ccjk.BWFpnOr3.mjs} +1 -1
- package/dist/shared/{ccjk.BfIpomdz.mjs → ccjk.CHUEFqmw.mjs} +3 -2
- package/dist/shared/{ccjk.CqdbaXqU.mjs → ccjk.CLUL0pAV.mjs} +9 -5
- package/dist/shared/{ccjk.Cot9p9_n.mjs → ccjk.Cjj8SVrn.mjs} +1 -1
- package/dist/shared/{ccjk.CfrpIIKy.mjs → ccjk.Crd_nEfj.mjs} +38 -20
- package/dist/shared/{ccjk.DCw2WnZU.mjs → ccjk.CvChMYvB.mjs} +1 -1
- package/dist/shared/{ccjk.CXzjn01x.mjs → ccjk.D8ZLYSZZ.mjs} +1 -1
- package/dist/shared/{ccjk.BrPUmTqm.mjs → ccjk.DJuyfrlL.mjs} +164 -82
- package/dist/shared/{ccjk.DHXfsrwn.mjs → ccjk.DRfdq6yl.mjs} +4 -4
- package/dist/shared/{ccjk.DXRAZcix.mjs → ccjk.DScm_NnL.mjs} +8 -4
- package/dist/shared/{ccjk.XsJWJuQP.mjs → ccjk.DfZKjHvG.mjs} +6 -128
- package/dist/shared/{ccjk.BFxsJM0k.mjs → ccjk.DwSebGy0.mjs} +4 -3
- package/dist/shared/ccjk.DxWqH-EF.mjs +170 -0
- package/dist/shared/{ccjk.Cwa_FiTX.mjs → ccjk.I6IuYdc_.mjs} +2 -2
- package/dist/shared/{ccjk.DpstNaeR.mjs → ccjk.KpFl2RDA.mjs} +3 -3
- package/dist/shared/{ccjk.dYDLfmph.mjs → ccjk._dESH4Rk.mjs} +1 -1
- package/dist/shared/{ccjk.BxSmJ8B7.mjs → ccjk.wLJHO0Af.mjs} +2 -1
- package/package.json +65 -67
- package/dist/chunks/index15.mjs +0 -218
- package/dist/shared/{ccjk.c-ETfBZ_.mjs → ccjk.eIn-g1yI.mjs} +96 -96
package/dist/chunks/init.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import a from './index3.mjs';
|
|
2
|
-
import { i as inquirer } from './index4.mjs';
|
|
3
1
|
import { existsSync } from 'node:fs';
|
|
4
2
|
import process__default from 'node:process';
|
|
3
|
+
import a from './index2.mjs';
|
|
4
|
+
import { i as inquirer } from './index3.mjs';
|
|
5
5
|
import { m as runCodexFullInit, k as selectMcpServices, g as getMcpServices, M as MCP_SERVICE_CONFIGS } from './codex.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { m as modifyApiConfigPartially, a as configureApiCompletely, s as selectAndInstallWorkflows, c as configureOutputStyle, f as formatApiKeyDisplay, W as WORKFLOW_CONFIG_BASE } from '../shared/ccjk.DfZKjHvG.mjs';
|
|
7
7
|
import { SETTINGS_FILE, DEFAULT_CODE_TOOL_TYPE, CODE_TOOL_BANNERS, API_DEFAULT_URL } from './constants.mjs';
|
|
8
|
-
import { ensureI18nInitialized, i18n } from './
|
|
8
|
+
import { ensureI18nInitialized, i18n } from './index5.mjs';
|
|
9
9
|
import { displayBannerWithInfo, padToDisplayWidth } from './banner.mjs';
|
|
10
10
|
import { readZcfConfig, updateZcfConfig } from './ccjk-config.mjs';
|
|
11
11
|
import { readCcrConfig, backupCcrConfig, createDefaultCcrConfig, writeCcrConfig, configureCcrProxy, setupCcrConfiguration } from './config2.mjs';
|
|
@@ -14,18 +14,19 @@ import { promisify } from 'node:util';
|
|
|
14
14
|
import { updateCcr } from './auto-updater.mjs';
|
|
15
15
|
import { w as wrapCommandWithSudo, k as isWindows, i as isTermux } from './platform.mjs';
|
|
16
16
|
import { a as addCompletedOnboarding, s as setPrimaryApiKey, c as backupMcpConfig, b as buildMcpServerConfig, r as readMcpConfig, e as replaceMcpServers, f as fixWindowsMcpConfig, w as writeMcpConfig, g as syncMcpPermissions } from './claude-config.mjs';
|
|
17
|
-
import { r as resolveCodeType } from '../shared/ccjk.
|
|
17
|
+
import { r as resolveCodeType } from '../shared/ccjk.Cjj8SVrn.mjs';
|
|
18
18
|
import { exists } from './fs-operations.mjs';
|
|
19
19
|
import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
|
|
20
20
|
import { p as promptApiConfigurationAction, j as ensureClaudeDir, g as getExistingApiConfig, s as switchToOfficialLogin, b as backupExistingConfig, c as copyConfigFiles, e as applyAiLanguageDirective, d as configureApi } from './config.mjs';
|
|
21
|
-
import {
|
|
21
|
+
import { n as needsMigration, m as migrateSettingsForTokenRetrieval, d as displayMigrationResult, p as promptMigration } from '../shared/ccjk.DxWqH-EF.mjs';
|
|
22
|
+
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
|
|
22
23
|
import { getInstallationStatus, installClaudeCode } from './installer.mjs';
|
|
23
24
|
import { p as parseOrchestrationLevel, w as writeOrchestrationPolicy } from './smart-defaults.mjs';
|
|
24
25
|
import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
|
|
25
26
|
import { resolveAiOutputLanguage } from './prompts.mjs';
|
|
26
27
|
import { g as getRuntimeVersion } from '../shared/ccjk.gDEDGD_t.mjs';
|
|
27
|
-
import { c as checkSuperpowersInstalled, i as installSuperpowers } from '../shared/ccjk.
|
|
28
|
-
import { p as promptBoolean } from '../shared/ccjk.
|
|
28
|
+
import { c as checkSuperpowersInstalled, i as installSuperpowers } from '../shared/ccjk._dESH4Rk.mjs';
|
|
29
|
+
import { p as promptBoolean } from '../shared/ccjk.BWFpnOr3.mjs';
|
|
29
30
|
import { checkClaudeCodeVersionAndPrompt } from './version-checker.mjs';
|
|
30
31
|
|
|
31
32
|
const execAsync$1 = promisify(exec);
|
|
@@ -601,9 +602,11 @@ async function init(options = {}) {
|
|
|
601
602
|
if (!options.skipPrompt && !options.skipBanner) {
|
|
602
603
|
tracker.start();
|
|
603
604
|
}
|
|
604
|
-
if (!options.skipPrompt && !options.skipBanner)
|
|
605
|
+
if (!options.skipPrompt && !options.skipBanner)
|
|
606
|
+
tracker.nextStep();
|
|
605
607
|
const zcfConfig = readZcfConfig();
|
|
606
|
-
if (!options.skipPrompt && !options.skipBanner)
|
|
608
|
+
if (!options.skipPrompt && !options.skipBanner)
|
|
609
|
+
tracker.nextStep();
|
|
607
610
|
let codeToolType;
|
|
608
611
|
try {
|
|
609
612
|
codeToolType = await resolveCodeType(options.codeType);
|
|
@@ -661,7 +664,7 @@ async function init(options = {}) {
|
|
|
661
664
|
try {
|
|
662
665
|
setPrimaryApiKey();
|
|
663
666
|
} catch (error) {
|
|
664
|
-
const { ensureI18nInitialized, i18n: i18nModule } = await import('./
|
|
667
|
+
const { ensureI18nInitialized, i18n: i18nModule } = await import('./index5.mjs');
|
|
665
668
|
ensureI18nInitialized();
|
|
666
669
|
console.error(i18nModule.t("mcp:primaryApiKeySetFailed"), error);
|
|
667
670
|
}
|
|
@@ -876,7 +879,8 @@ async function init(options = {}) {
|
|
|
876
879
|
options.orchestration = orchestrationChoice;
|
|
877
880
|
console.log(a.green(`\u2714 ${isZh ? "\u5DF2\u8BBE\u4E3A\u9ED8\u8BA4\u9996\u9009" : "Set as default first choice"}: ${orchestrationChoice}`));
|
|
878
881
|
}
|
|
879
|
-
if (!options.skipPrompt && !options.skipBanner)
|
|
882
|
+
if (!options.skipPrompt && !options.skipBanner)
|
|
883
|
+
tracker.nextStep("Configuring API");
|
|
880
884
|
let apiConfig = null;
|
|
881
885
|
if (action !== "docs-only" && (isNewInstall || ["backup", "merge", "new"].includes(action))) {
|
|
882
886
|
if (options.skipPrompt) {
|
|
@@ -1045,7 +1049,8 @@ async function init(options = {}) {
|
|
|
1045
1049
|
console.log(a.gray(` Opus: ${options.apiOpusModel}`));
|
|
1046
1050
|
}
|
|
1047
1051
|
}
|
|
1048
|
-
if (!options.skipPrompt && !options.skipBanner)
|
|
1052
|
+
if (!options.skipPrompt && !options.skipBanner)
|
|
1053
|
+
tracker.nextStep("Installing MCP services");
|
|
1049
1054
|
if (action !== "docs-only") {
|
|
1050
1055
|
let shouldConfigureMcp = false;
|
|
1051
1056
|
if (options.skipPrompt) {
|
|
@@ -1207,7 +1212,8 @@ async function init(options = {}) {
|
|
|
1207
1212
|
const msg = error instanceof Error ? error.message : String(error);
|
|
1208
1213
|
console.log(a.gray(`\u2139 Workflow orchestration skipped: ${msg}`));
|
|
1209
1214
|
}
|
|
1210
|
-
if (!options.skipPrompt && !options.skipBanner)
|
|
1215
|
+
if (!options.skipPrompt && !options.skipBanner)
|
|
1216
|
+
tracker.nextStep("Finalizing setup");
|
|
1211
1217
|
updateZcfConfig({
|
|
1212
1218
|
version: ccjkVersion,
|
|
1213
1219
|
preferredLang: i18n.language,
|
|
@@ -1239,7 +1245,8 @@ async function init(options = {}) {
|
|
|
1239
1245
|
console.log();
|
|
1240
1246
|
}
|
|
1241
1247
|
}
|
|
1242
|
-
if (!options.skipPrompt && !options.skipBanner)
|
|
1248
|
+
if (!options.skipPrompt && !options.skipBanner)
|
|
1249
|
+
tracker.complete();
|
|
1243
1250
|
console.log("");
|
|
1244
1251
|
console.log(a.bold.green("\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557"));
|
|
1245
1252
|
console.log(a.bold.green("\u2551") + a.bold.white(padToDisplayWidth(` ${i18n.t("configuration:setupCompleteTitle")}`, 62)) + a.bold.green("\u2551"));
|
|
@@ -1278,7 +1285,7 @@ async function init(options = {}) {
|
|
|
1278
1285
|
}
|
|
1279
1286
|
}
|
|
1280
1287
|
async function handleMultiConfigurations(options, codeToolType) {
|
|
1281
|
-
const { ensureI18nInitialized } = await import('./
|
|
1288
|
+
const { ensureI18nInitialized } = await import('./index5.mjs');
|
|
1282
1289
|
ensureI18nInitialized();
|
|
1283
1290
|
try {
|
|
1284
1291
|
let configs = [];
|
|
@@ -1517,7 +1524,7 @@ async function smartInit(options = {}) {
|
|
|
1517
1524
|
try {
|
|
1518
1525
|
console.log(a.bold.green("\n\u{1F9E0} Smart Initialization Mode\n"));
|
|
1519
1526
|
console.log(a.gray("Analyzing your project to generate optimal configuration...\n"));
|
|
1520
|
-
const { analyzeProject } = await import('./
|
|
1527
|
+
const { analyzeProject } = await import('./index10.mjs');
|
|
1521
1528
|
const analysis = await analyzeProject();
|
|
1522
1529
|
console.log(a.cyan("\u{1F4CA} Project Analysis:"));
|
|
1523
1530
|
console.log(a.gray(` \u2022 Type: ${analysis.projectType}`));
|
|
@@ -1536,7 +1543,7 @@ async function smartInit(options = {}) {
|
|
|
1536
1543
|
console.log(a.gray(` \u2022 CI/CD: ${analysis.cicd.join(", ")}`));
|
|
1537
1544
|
}
|
|
1538
1545
|
console.log("");
|
|
1539
|
-
const { selectTemplates } = await import('./
|
|
1546
|
+
const { selectTemplates } = await import('./index10.mjs');
|
|
1540
1547
|
const selection = await selectTemplates(analysis);
|
|
1541
1548
|
console.log(a.cyan("\u{1F3AF} Template Selection:"));
|
|
1542
1549
|
console.log(a.gray(` \u2022 Agents: ${selection.agents.length} selected`));
|
|
@@ -1562,7 +1569,7 @@ async function smartInit(options = {}) {
|
|
|
1562
1569
|
}
|
|
1563
1570
|
}
|
|
1564
1571
|
console.log(a.gray("\n\u{1F527} Generating configurations...\n"));
|
|
1565
|
-
const { generateConfigs, writeConfigs } = await import('./
|
|
1572
|
+
const { generateConfigs, writeConfigs } = await import('./index10.mjs');
|
|
1566
1573
|
const config = await generateConfigs(selection);
|
|
1567
1574
|
await writeConfigs(config);
|
|
1568
1575
|
console.log(a.green("\u2714 Configurations generated successfully!"));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as fs from 'node:fs';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
3
|
import process__default from 'node:process';
|
|
4
|
-
import a from './
|
|
5
|
-
import { i as inquirer } from './
|
|
6
|
-
import ora from './
|
|
4
|
+
import a from './index2.mjs';
|
|
5
|
+
import { i as inquirer } from './index3.mjs';
|
|
6
|
+
import ora from './index7.mjs';
|
|
7
7
|
import { exec as q } from './main.mjs';
|
|
8
|
-
import { ensureI18nInitialized, i18n } from './
|
|
8
|
+
import { ensureI18nInitialized, i18n } from './index5.mjs';
|
|
9
9
|
import { updateClaudeCode } from './auto-updater.mjs';
|
|
10
10
|
import { exists } from './fs-operations.mjs';
|
|
11
11
|
import { f as findCommandPath, g as getPlatform, a as getHomebrewCommandPaths, i as isTermux, b as getTermuxPrefix, c as isWSL, d as getWSLInfo, w as wrapCommandWithSudo, e as commandExists, h as getRecommendedInstallMethods } from './platform.mjs';
|
|
@@ -29,7 +29,7 @@ import 'module';
|
|
|
29
29
|
import 'node:child_process';
|
|
30
30
|
import 'node:stream';
|
|
31
31
|
import 'node:url';
|
|
32
|
-
import '../shared/ccjk.
|
|
32
|
+
import '../shared/ccjk.BWFpnOr3.mjs';
|
|
33
33
|
import './version-checker.mjs';
|
|
34
34
|
import '../shared/ccjk.CxpGa6MC.mjs';
|
|
35
35
|
import 'node:fs/promises';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { exec } from 'node:child_process';
|
|
2
2
|
import { promisify } from 'node:util';
|
|
3
|
-
import a from './
|
|
4
|
-
import { ensureI18nInitialized, i18n } from './
|
|
3
|
+
import a from './index2.mjs';
|
|
4
|
+
import { ensureI18nInitialized, i18n } from './index5.mjs';
|
|
5
5
|
import { w as wrapCommandWithSudo } from './platform.mjs';
|
|
6
6
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
7
7
|
import 'node:fs';
|
|
@@ -106,7 +106,7 @@ function shouldTriggerSkill(args) {
|
|
|
106
106
|
const input = args.join(" ");
|
|
107
107
|
return recognizeIntent(input);
|
|
108
108
|
}
|
|
109
|
-
async function executeSkill(skillName,
|
|
109
|
+
async function executeSkill(skillName, _originalArgs) {
|
|
110
110
|
try {
|
|
111
111
|
const { executeSlashCommand } = await import('./slash-commands.mjs');
|
|
112
112
|
const skillCommand = `/${skillName}`;
|
|
@@ -2,10 +2,10 @@ import { existsSync } from 'node:fs';
|
|
|
2
2
|
import { writeFile, mkdir, readFile } from 'node:fs/promises';
|
|
3
3
|
import { resolve, dirname, join } from 'node:path';
|
|
4
4
|
import process__default from 'node:process';
|
|
5
|
-
import a from './
|
|
6
|
-
import { i as inquirer } from './
|
|
7
|
-
import { i18n } from './
|
|
8
|
-
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.
|
|
5
|
+
import a from './index2.mjs';
|
|
6
|
+
import { i as inquirer } from './index3.mjs';
|
|
7
|
+
import { i18n } from './index5.mjs';
|
|
8
|
+
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
|
|
9
9
|
import { randomUUID } from 'node:crypto';
|
|
10
10
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
11
11
|
import 'node:readline';
|
package/dist/chunks/manager.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { CCJK_SKILLS_DIR } from './constants.mjs';
|
|
|
4
4
|
import { browserSkill } from './skill.mjs';
|
|
5
5
|
import { writeFileAtomic } from './fs-operations.mjs';
|
|
6
6
|
import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
7
|
-
import './
|
|
7
|
+
import './index5.mjs';
|
|
8
8
|
import 'node:process';
|
|
9
9
|
import 'node:url';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import a from './
|
|
2
|
-
import { i18n } from './
|
|
1
|
+
import a from './index2.mjs';
|
|
2
|
+
import { i18n } from './index5.mjs';
|
|
3
3
|
import { createHash } from 'node:crypto';
|
|
4
4
|
import { existsSync, createWriteStream } from 'node:fs';
|
|
5
5
|
import { readFile, mkdir, rm } from 'node:fs/promises';
|
package/dist/chunks/mcp-cli.mjs
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import a from './
|
|
2
|
-
import { i18n } from './index6.mjs';
|
|
1
|
+
import a from './index2.mjs';
|
|
3
2
|
import { g as getMcpServices } from './codex.mjs';
|
|
3
|
+
import { i18n } from './index5.mjs';
|
|
4
4
|
import { r as readMcpConfig } from './claude-config.mjs';
|
|
5
|
-
import { i as installMcpService, u as uninstallMcpService } from '../shared/ccjk.
|
|
5
|
+
import { i as installMcpService, u as uninstallMcpService } from '../shared/ccjk.KpFl2RDA.mjs';
|
|
6
6
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
7
|
-
import 'node:fs';
|
|
8
7
|
import 'node:process';
|
|
9
8
|
import 'node:url';
|
|
10
|
-
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
11
9
|
import '../shared/ccjk.RyizuzOI.mjs';
|
|
12
|
-
import './
|
|
10
|
+
import './index3.mjs';
|
|
13
11
|
import 'node:readline';
|
|
14
12
|
import 'stream';
|
|
15
13
|
import 'node:tty';
|
|
@@ -24,7 +22,7 @@ import 'node:os';
|
|
|
24
22
|
import 'node:crypto';
|
|
25
23
|
import 'buffer';
|
|
26
24
|
import 'string_decoder';
|
|
27
|
-
import './
|
|
25
|
+
import './index7.mjs';
|
|
28
26
|
import '../shared/ccjk.DeWpAShp.mjs';
|
|
29
27
|
import '../shared/ccjk.CxpGa6MC.mjs';
|
|
30
28
|
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
@@ -33,18 +31,20 @@ import 'module';
|
|
|
33
31
|
import 'node:child_process';
|
|
34
32
|
import 'node:stream';
|
|
35
33
|
import './constants.mjs';
|
|
34
|
+
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
36
35
|
import './ccjk-config.mjs';
|
|
37
|
-
import '
|
|
36
|
+
import 'node:fs';
|
|
37
|
+
import './index6.mjs';
|
|
38
38
|
import './fs-operations.mjs';
|
|
39
39
|
import 'node:fs/promises';
|
|
40
40
|
import './json-config.mjs';
|
|
41
41
|
import './config.mjs';
|
|
42
|
-
import '../shared/ccjk.
|
|
42
|
+
import '../shared/ccjk.DScm_NnL.mjs';
|
|
43
43
|
import './platform.mjs';
|
|
44
44
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
45
45
|
import './prompts.mjs';
|
|
46
46
|
import '../shared/ccjk.gDEDGD_t.mjs';
|
|
47
|
-
import '../shared/ccjk.
|
|
47
|
+
import '../shared/ccjk.BWFpnOr3.mjs';
|
|
48
48
|
|
|
49
49
|
async function mcpInstallCli(options) {
|
|
50
50
|
const lang = options.lang || i18n.language || "en";
|
|
@@ -64,7 +64,7 @@ async function mcpInstallCli(options) {
|
|
|
64
64
|
process.exit(1);
|
|
65
65
|
}
|
|
66
66
|
if (!options.yes) {
|
|
67
|
-
const inquirer = await import('./
|
|
67
|
+
const inquirer = await import('./index3.mjs').then(function (n) { return n.c; });
|
|
68
68
|
const { confirm } = await inquirer.default.prompt([{
|
|
69
69
|
type: "confirm",
|
|
70
70
|
name: "confirm",
|
|
@@ -120,7 +120,7 @@ async function mcpUninstallCli(options) {
|
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
122
|
if (!options.yes) {
|
|
123
|
-
const inquirer = await import('./
|
|
123
|
+
const inquirer = await import('./index3.mjs').then(function (n) { return n.c; });
|
|
124
124
|
const { confirm } = await inquirer.default.prompt([{
|
|
125
125
|
type: "confirm",
|
|
126
126
|
name: "confirm",
|
package/dist/chunks/mcp.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import a from './
|
|
2
|
-
import { i18n } from './
|
|
1
|
+
import a from './index2.mjs';
|
|
2
|
+
import { i18n } from './index5.mjs';
|
|
3
3
|
import 'node:child_process';
|
|
4
4
|
import 'node:process';
|
|
5
5
|
import { M as MCP_SERVICE_TIERS, i as isCoreService, g as getServicesByTier, c as checkMcpPerformance, f as formatPerformanceWarning, a as calculateResourceUsage, b as getOptimizationSuggestions, d as getMcpTierConfig } from './mcp-performance.mjs';
|
|
6
6
|
import { r as readMcpConfig, c as backupMcpConfig, w as writeMcpConfig } from './claude-config.mjs';
|
|
7
|
-
import { i as inquirer } from './
|
|
7
|
+
import { i as inquirer } from './index3.mjs';
|
|
8
8
|
import { M as MCP_SERVICE_CONFIGS } from './codex.mjs';
|
|
9
|
-
import { d as displayInstalledMcpServices, b as isMcpServiceInstalled, i as installMcpService, u as uninstallMcpService } from '../shared/ccjk.
|
|
9
|
+
import { d as displayInstalledMcpServices, b as isMcpServiceInstalled, i as installMcpService, u as uninstallMcpService } from '../shared/ccjk.KpFl2RDA.mjs';
|
|
10
10
|
import { existsSync, unlinkSync, statSync, mkdirSync, readFileSync } from 'node:fs';
|
|
11
11
|
import { homedir } from 'node:os';
|
|
12
12
|
import { writeFileAtomic } from './fs-operations.mjs';
|
|
@@ -34,18 +34,18 @@ import 'fs';
|
|
|
34
34
|
import 'child_process';
|
|
35
35
|
import 'buffer';
|
|
36
36
|
import 'string_decoder';
|
|
37
|
-
import './
|
|
37
|
+
import './index7.mjs';
|
|
38
38
|
import '../shared/ccjk.DeWpAShp.mjs';
|
|
39
39
|
import '../shared/ccjk.CxpGa6MC.mjs';
|
|
40
40
|
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
41
41
|
import './ccjk-config.mjs';
|
|
42
|
-
import './
|
|
42
|
+
import './index6.mjs';
|
|
43
43
|
import './config.mjs';
|
|
44
|
-
import '../shared/ccjk.
|
|
44
|
+
import '../shared/ccjk.DScm_NnL.mjs';
|
|
45
45
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
46
46
|
import './prompts.mjs';
|
|
47
47
|
import '../shared/ccjk.gDEDGD_t.mjs';
|
|
48
|
-
import '../shared/ccjk.
|
|
48
|
+
import '../shared/ccjk.BWFpnOr3.mjs';
|
|
49
49
|
|
|
50
50
|
function getReleasableServices(configuredServices, tier) {
|
|
51
51
|
return configuredServices.filter((serviceId) => {
|
package/dist/chunks/memory.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import a from './index3.mjs';
|
|
2
|
-
import { i as inquirer } from './index4.mjs';
|
|
3
1
|
import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'node:fs';
|
|
4
2
|
import { homedir } from 'node:os';
|
|
3
|
+
import a from './index2.mjs';
|
|
4
|
+
import { i as inquirer } from './index3.mjs';
|
|
5
|
+
import { x as K } from './main.mjs';
|
|
5
6
|
import { AutoMemoryBridge } from './auto-memory-bridge.mjs';
|
|
6
7
|
import { CLAUDE_DIR } from './constants.mjs';
|
|
7
|
-
import { x as K } from './main.mjs';
|
|
8
8
|
import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
9
9
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
10
10
|
import 'node:readline';
|
|
@@ -21,12 +21,12 @@ import 'node:path';
|
|
|
21
21
|
import 'node:crypto';
|
|
22
22
|
import 'buffer';
|
|
23
23
|
import 'string_decoder';
|
|
24
|
-
import 'node:fs/promises';
|
|
25
|
-
import './index6.mjs';
|
|
26
|
-
import 'node:url';
|
|
27
24
|
import 'module';
|
|
28
25
|
import 'node:child_process';
|
|
29
26
|
import 'node:stream';
|
|
27
|
+
import 'node:fs/promises';
|
|
28
|
+
import './index5.mjs';
|
|
29
|
+
import 'node:url';
|
|
30
30
|
|
|
31
31
|
function getClaudeDir() {
|
|
32
32
|
return join(homedir(), CLAUDE_DIR);
|
|
@@ -151,10 +151,10 @@ ${formattedContent}` : formattedContent;
|
|
|
151
151
|
console.log(a.green("\u2713 Memory replaced"));
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
async function syncMemory(
|
|
154
|
+
async function syncMemory(_projectPath) {
|
|
155
155
|
console.log(a.cyan("\nSyncing memory with AutoMemoryBridge..."));
|
|
156
156
|
try {
|
|
157
|
-
const
|
|
157
|
+
const _bridge = new AutoMemoryBridge({});
|
|
158
158
|
console.log(a.yellow("\u26A0 AutoMemoryBridge sync not yet implemented"));
|
|
159
159
|
console.log(a.green("\u2713 Memory sync placeholder executed"));
|
|
160
160
|
} catch (error) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import a from './
|
|
2
|
-
import { i as inquirer } from './
|
|
3
|
-
import { i18n } from './
|
|
1
|
+
import a from './index2.mjs';
|
|
2
|
+
import { i as inquirer } from './index3.mjs';
|
|
3
|
+
import { i18n } from './index5.mjs';
|
|
4
4
|
import { n as normalizeMenuInput } from './menu.mjs';
|
|
5
5
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
6
6
|
import 'node:readline';
|
|
@@ -23,7 +23,7 @@ import 'node:url';
|
|
|
23
23
|
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
24
24
|
import './codex.mjs';
|
|
25
25
|
import '../shared/ccjk.RyizuzOI.mjs';
|
|
26
|
-
import './
|
|
26
|
+
import './index7.mjs';
|
|
27
27
|
import '../shared/ccjk.DeWpAShp.mjs';
|
|
28
28
|
import '../shared/ccjk.CxpGa6MC.mjs';
|
|
29
29
|
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
@@ -33,35 +33,37 @@ import 'node:child_process';
|
|
|
33
33
|
import 'node:stream';
|
|
34
34
|
import './constants.mjs';
|
|
35
35
|
import './ccjk-config.mjs';
|
|
36
|
-
import './
|
|
36
|
+
import './index6.mjs';
|
|
37
37
|
import './fs-operations.mjs';
|
|
38
38
|
import 'node:fs/promises';
|
|
39
39
|
import './json-config.mjs';
|
|
40
40
|
import './config.mjs';
|
|
41
41
|
import './claude-config.mjs';
|
|
42
42
|
import './platform.mjs';
|
|
43
|
-
import '../shared/ccjk.
|
|
43
|
+
import '../shared/ccjk.DScm_NnL.mjs';
|
|
44
44
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
45
45
|
import './prompts.mjs';
|
|
46
46
|
import '../shared/ccjk.gDEDGD_t.mjs';
|
|
47
|
-
import '../shared/ccjk.
|
|
47
|
+
import '../shared/ccjk.BWFpnOr3.mjs';
|
|
48
48
|
import './banner.mjs';
|
|
49
|
-
import '../shared/ccjk.
|
|
49
|
+
import '../shared/ccjk.Cjj8SVrn.mjs';
|
|
50
50
|
import './smart-defaults.mjs';
|
|
51
|
-
import '../shared/ccjk.
|
|
52
|
-
import '../shared/ccjk.
|
|
51
|
+
import '../shared/ccjk.DJuyfrlL.mjs';
|
|
52
|
+
import '../shared/ccjk.BIxuVL3_.mjs';
|
|
53
53
|
import './config2.mjs';
|
|
54
54
|
import './init.mjs';
|
|
55
|
-
import '../shared/ccjk.
|
|
55
|
+
import '../shared/ccjk.DfZKjHvG.mjs';
|
|
56
56
|
import './auto-updater.mjs';
|
|
57
57
|
import './version-checker.mjs';
|
|
58
|
+
import '../shared/ccjk.DxWqH-EF.mjs';
|
|
59
|
+
import './claude-code-config-manager.mjs';
|
|
58
60
|
import './installer.mjs';
|
|
59
|
-
import '../shared/ccjk.
|
|
61
|
+
import '../shared/ccjk._dESH4Rk.mjs';
|
|
60
62
|
import './simple-config.mjs';
|
|
61
63
|
import './commands.mjs';
|
|
62
64
|
import './ccjk-agents.mjs';
|
|
63
|
-
import '../shared/ccjk.
|
|
64
|
-
import './
|
|
65
|
+
import '../shared/ccjk.DRfdq6yl.mjs';
|
|
66
|
+
import './index8.mjs';
|
|
65
67
|
import 'tinyglobby';
|
|
66
68
|
import '../shared/ccjk.CfKKcvWy.mjs';
|
|
67
69
|
import '../shared/ccjk.C2jHOZVP.mjs';
|
|
@@ -73,29 +75,29 @@ import './api-providers.mjs';
|
|
|
73
75
|
import '../shared/ccjk.SPoXMvZD.mjs';
|
|
74
76
|
import '../shared/ccjk.J8YiPsOw.mjs';
|
|
75
77
|
import './uninstall.mjs';
|
|
76
|
-
import '../shared/ccjk.
|
|
78
|
+
import '../shared/ccjk.CvChMYvB.mjs';
|
|
77
79
|
import 'globby';
|
|
78
80
|
import './update.mjs';
|
|
79
|
-
import '../shared/ccjk.
|
|
81
|
+
import '../shared/ccjk.KpFl2RDA.mjs';
|
|
80
82
|
|
|
81
|
-
function renderMenuHeader(context,
|
|
83
|
+
function renderMenuHeader(context, _isZh) {
|
|
82
84
|
const title = context.breadcrumb.join(i18n.t("menu:menu.breadcrumb.separator"));
|
|
83
85
|
const width = 63;
|
|
84
86
|
const padding = Math.max(0, Math.floor((width - title.length) / 2));
|
|
85
87
|
console.log("");
|
|
86
|
-
console.log(a.green(
|
|
88
|
+
console.log(a.green(`\u2554${"\u2550".repeat(width)}\u2557`));
|
|
87
89
|
console.log(a.green("\u2551") + " ".repeat(padding) + a.bold(title) + " ".repeat(width - padding - title.length) + a.green("\u2551"));
|
|
88
|
-
console.log(a.green(
|
|
90
|
+
console.log(a.green(`\u255A${"\u2550".repeat(width)}\u255D`));
|
|
89
91
|
console.log("");
|
|
90
92
|
}
|
|
91
93
|
function renderSection(title, items) {
|
|
92
94
|
console.log(a.bold(title));
|
|
93
95
|
for (const item of items) {
|
|
94
|
-
console.log(` ${a.green(item.key
|
|
96
|
+
console.log(` ${a.green(`${item.key}.`)} ${item.name} ${a.dim(`- ${item.desc}`)}`);
|
|
95
97
|
}
|
|
96
98
|
console.log("");
|
|
97
99
|
}
|
|
98
|
-
function renderFooter(showBack,
|
|
100
|
+
function renderFooter(showBack, _isZh) {
|
|
99
101
|
console.log(a.dim("\u2500".repeat(63)));
|
|
100
102
|
const actions = [];
|
|
101
103
|
actions.push(`${a.green("L")}. ${i18n.t("menu:menu.globalActions.language.name")}`);
|
|
@@ -137,7 +139,7 @@ async function showHierarchicalMainMenu() {
|
|
|
137
139
|
const { choice } = await inquirer.prompt({
|
|
138
140
|
type: "input",
|
|
139
141
|
name: "choice",
|
|
140
|
-
message: i18n.t("menu:menu.prompt.main")
|
|
142
|
+
message: `${i18n.t("menu:menu.prompt.main")} (1-8, L, H, Q):`,
|
|
141
143
|
validate: (value) => {
|
|
142
144
|
const normalized = normalizeMenuInput(value);
|
|
143
145
|
const valid = ["1", "2", "3", "4", "5", "6", "7", "8", "l", "h", "q"];
|
package/dist/chunks/menu.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import a from './index3.mjs';
|
|
2
|
-
import { i as inquirer } from './index4.mjs';
|
|
3
1
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'node:fs';
|
|
4
2
|
import process__default from 'node:process';
|
|
3
|
+
import a from './index2.mjs';
|
|
4
|
+
import { i as inquirer } from './index3.mjs';
|
|
5
5
|
import { k as selectMcpServices, g as getMcpServices, M as MCP_SERVICE_CONFIGS } from './codex.mjs';
|
|
6
6
|
import { SUPPORTED_LANGS, LANG_LABELS, CODE_TOOL_BANNERS, CLAUDE_DIR, isCodeToolType, DEFAULT_CODE_TOOL_TYPE } from './constants.mjs';
|
|
7
|
-
import { ensureI18nInitialized, i18n, changeLanguage } from './
|
|
7
|
+
import { ensureI18nInitialized, i18n, changeLanguage } from './index5.mjs';
|
|
8
8
|
import { displayBannerWithInfo } from './banner.mjs';
|
|
9
9
|
import { updateZcfConfig, readZcfConfig } from './ccjk-config.mjs';
|
|
10
10
|
import { r as readMcpConfig, f as fixWindowsMcpConfig, w as writeMcpConfig, c as backupMcpConfig, b as buildMcpServerConfig, m as mergeMcpServers } from './claude-config.mjs';
|
|
11
|
-
import { r as resolveCodeType } from '../shared/ccjk.
|
|
12
|
-
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.
|
|
11
|
+
import { r as resolveCodeType } from '../shared/ccjk.Cjj8SVrn.mjs';
|
|
12
|
+
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
|
|
13
13
|
import { homedir } from 'node:os';
|
|
14
14
|
import { setupCcrConfiguration, readCcrConfig, configureCcrFeature } from './config2.mjs';
|
|
15
15
|
import { a as isCcrInstalled, b as installCcr, i as init } from './init.mjs';
|
|
16
16
|
import { e as applyAiLanguageDirective, f as getExistingModelConfig, h as getExistingCustomModelConfig, u as updateCustomModel, i as updateDefaultModel, g as getExistingApiConfig, p as promptApiConfigurationAction, d as configureApi, s as switchToOfficialLogin } from './config.mjs';
|
|
17
|
-
import { c as configureOutputStyle,
|
|
17
|
+
import { c as configureOutputStyle, m as modifyApiConfigPartially, v as validateApiKey, f as formatApiKeyDisplay } from '../shared/ccjk.DfZKjHvG.mjs';
|
|
18
18
|
import { k as isWindows } from './platform.mjs';
|
|
19
19
|
import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
|
|
20
20
|
import { openSettingsJson, importRecommendedPermissions, importRecommendedEnv } from './simple-config.mjs';
|
|
21
|
-
import { p as promptBoolean } from '../shared/ccjk.
|
|
21
|
+
import { p as promptBoolean } from '../shared/ccjk.BWFpnOr3.mjs';
|
|
22
22
|
import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
23
23
|
import { runCcrStop, runCcrStart, runCcrRestart, runCcrStatus, runCcrUi } from './commands.mjs';
|
|
24
24
|
import { ccjkAgents } from './ccjk-agents.mjs';
|
|
@@ -36,7 +36,8 @@ async function ensureModelConfigPriority() {
|
|
|
36
36
|
const { readJsonConfig, writeJsonConfig } = await import('./json-config.mjs');
|
|
37
37
|
const { SETTINGS_FILE } = await import('./constants.mjs');
|
|
38
38
|
const settings = readJsonConfig(SETTINGS_FILE);
|
|
39
|
-
if (!settings)
|
|
39
|
+
if (!settings)
|
|
40
|
+
return;
|
|
40
41
|
const hasCustomModels = Boolean(
|
|
41
42
|
settings.env?.ANTHROPIC_MODEL || settings.env?.ANTHROPIC_DEFAULT_HAIKU_MODEL || settings.env?.ANTHROPIC_DEFAULT_SONNET_MODEL || settings.env?.ANTHROPIC_DEFAULT_OPUS_MODEL
|
|
42
43
|
);
|
|
@@ -688,13 +689,14 @@ async function configureMergedPermissionsFeature() {
|
|
|
688
689
|
}
|
|
689
690
|
async function configureMemoryFeature() {
|
|
690
691
|
const { AutoMemoryBridge } = await import('./auto-memory-bridge.mjs');
|
|
691
|
-
const inquirer2 = (await import('./
|
|
692
|
-
const ansis2 = (await import('./
|
|
693
|
-
const { execSync } = await import('child_process');
|
|
694
|
-
const fs = await import('fs/promises');
|
|
695
|
-
const path = await import('path');
|
|
696
|
-
const os = await import('os');
|
|
697
|
-
console.log(ansis2.cyan(
|
|
692
|
+
const inquirer2 = (await import('./index3.mjs').then(function (n) { return n.c; })).default;
|
|
693
|
+
const ansis2 = (await import('./index2.mjs')).default;
|
|
694
|
+
const { execSync } = await import('node:child_process');
|
|
695
|
+
const fs = await import('node:fs/promises');
|
|
696
|
+
const path = await import('node:path');
|
|
697
|
+
const os = await import('node:os');
|
|
698
|
+
console.log(ansis2.cyan(`
|
|
699
|
+
${i18n.t("memory:title")}`));
|
|
698
700
|
const bridge = new AutoMemoryBridge();
|
|
699
701
|
const claudeMemoryPath = path.join(os.homedir(), ".claude", "projects", "-Users-lu-ccjk-public", "memory", "MEMORY.md");
|
|
700
702
|
const ccjkMemoryPath = path.join(os.homedir(), ".ccjk", "memory", "MEMORY.md");
|
|
@@ -710,7 +712,8 @@ async function configureMemoryFeature() {
|
|
|
710
712
|
ccjkMemoryExists = true;
|
|
711
713
|
} catch {
|
|
712
714
|
}
|
|
713
|
-
console.log(
|
|
715
|
+
console.log(`
|
|
716
|
+
${ansis2.bold(i18n.t("memory:currentStatus"))}`);
|
|
714
717
|
console.log(ansis2.gray("\u2500".repeat(50)));
|
|
715
718
|
console.log(`${ansis2.yellow(i18n.t("memory:claudeMemory"))}: ${claudeMemoryExists ? ansis2.green("\u2713") : ansis2.red("\u2717")}`);
|
|
716
719
|
console.log(`${ansis2.yellow(i18n.t("memory:ccjkMemory"))}: ${ccjkMemoryExists ? ansis2.green("\u2713") : ansis2.red("\u2717")}`);
|
|
@@ -734,7 +737,8 @@ async function configureMemoryFeature() {
|
|
|
734
737
|
const memoryPath = path.join(os.homedir(), ".claude", "projects", "-Users-lu-ccjk-public", "memory", "MEMORY.md");
|
|
735
738
|
try {
|
|
736
739
|
const content = await fs.readFile(memoryPath, "utf-8");
|
|
737
|
-
console.log(
|
|
740
|
+
console.log(`
|
|
741
|
+
${ansis2.bold(i18n.t("memory:memoryContent"))}`);
|
|
738
742
|
console.log(ansis2.gray("\u2500".repeat(50)));
|
|
739
743
|
console.log(content);
|
|
740
744
|
console.log(ansis2.gray("\u2500".repeat(50)));
|
|
@@ -1141,7 +1145,7 @@ async function handleHierarchicalMenu() {
|
|
|
1141
1145
|
const isZh = i18n.language === "zh-CN";
|
|
1142
1146
|
switch (choice) {
|
|
1143
1147
|
case "l":
|
|
1144
|
-
await changeScriptLanguageFeature();
|
|
1148
|
+
await changeScriptLanguageFeature(i18n.language);
|
|
1145
1149
|
return "switch";
|
|
1146
1150
|
case "h":
|
|
1147
1151
|
showHelpDocumentation(isZh);
|
|
@@ -1158,7 +1162,7 @@ async function handleHierarchicalMenu() {
|
|
|
1158
1162
|
defaultValue: true
|
|
1159
1163
|
});
|
|
1160
1164
|
if (offerGen) {
|
|
1161
|
-
const { smartGenerateAndInstall } = await import('./
|
|
1165
|
+
const { smartGenerateAndInstall } = await import('./index10.mjs');
|
|
1162
1166
|
await smartGenerateAndInstall();
|
|
1163
1167
|
}
|
|
1164
1168
|
break;
|
|
@@ -1262,7 +1266,7 @@ async function showSimplifiedMenu() {
|
|
|
1262
1266
|
defaultValue: true
|
|
1263
1267
|
});
|
|
1264
1268
|
if (offerGen) {
|
|
1265
|
-
const { smartGenerateAndInstall } = await import('./
|
|
1269
|
+
const { smartGenerateAndInstall } = await import('./index10.mjs');
|
|
1266
1270
|
await smartGenerateAndInstall();
|
|
1267
1271
|
}
|
|
1268
1272
|
break;
|
|
@@ -1366,7 +1370,7 @@ async function showSimplifiedMenu() {
|
|
|
1366
1370
|
return void 0;
|
|
1367
1371
|
}
|
|
1368
1372
|
case "g": {
|
|
1369
|
-
const { smartGenerateAndInstall } = await import('./
|
|
1373
|
+
const { smartGenerateAndInstall } = await import('./index10.mjs');
|
|
1370
1374
|
await smartGenerateAndInstall();
|
|
1371
1375
|
printSeparator();
|
|
1372
1376
|
return void 0;
|
|
@@ -1443,7 +1447,8 @@ async function showSimplifiedMenu() {
|
|
|
1443
1447
|
}
|
|
1444
1448
|
async function isFirstTimeUser() {
|
|
1445
1449
|
const { isOnboardingCompleted } = await import('./onboarding-wizard.mjs');
|
|
1446
|
-
if (isOnboardingCompleted())
|
|
1450
|
+
if (isOnboardingCompleted())
|
|
1451
|
+
return false;
|
|
1447
1452
|
const config = readZcfConfig();
|
|
1448
1453
|
if (!config || !config.version) {
|
|
1449
1454
|
return true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import a from './
|
|
1
|
+
import a from './index2.mjs';
|
|
2
2
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
3
3
|
|
|
4
4
|
function formatTokenCount(tokens) {
|
|
@@ -33,7 +33,7 @@ function displayCompressionResult(originalTokens, compressedTokens, compressionR
|
|
|
33
33
|
const originalFormatted = formatTokenCount(originalTokens);
|
|
34
34
|
const compressedFormatted = formatTokenCount(compressedTokens);
|
|
35
35
|
console.log(
|
|
36
|
-
a.green("\u2705")
|
|
36
|
+
`${a.green("\u2705")} Compressed ${a.cyan(originalFormatted)} tokens \u2192 ${a.cyan(compressedFormatted)} ${a.yellow(`(${reductionPercent}% reduction)`)} ${a.gray(`[${formatTime(timeTakenMs)}]`)}`
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
function displayCompressionStats(stats) {
|
package/dist/chunks/migrator.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { SETTINGS_FILE } from './constants.mjs';
|
|
|
2
2
|
import { exists } from './fs-operations.mjs';
|
|
3
3
|
import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
|
|
4
4
|
import 'node:os';
|
|
5
|
-
import './
|
|
5
|
+
import './index5.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:process';
|
|
8
8
|
import 'node:url';
|