ccjk 9.5.6 → 9.7.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.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/chunks/boost.mjs +160 -0
- 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 +25 -30
- package/dist/chunks/ccu.mjs +1 -1
- package/dist/chunks/check-updates.mjs +3 -4
- 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 +4 -4
- package/dist/chunks/claude-wrapper.mjs +2 -2
- package/dist/chunks/codex-config-switch.mjs +4 -5
- package/dist/chunks/codex-provider-manager.mjs +2 -3
- package/dist/chunks/codex-uninstaller.mjs +2 -2
- package/dist/chunks/codex.mjs +207 -6
- package/dist/chunks/commands.mjs +391 -88
- package/dist/chunks/commands2.mjs +88 -391
- package/dist/chunks/completion.mjs +1 -1
- package/dist/chunks/config-consolidator.mjs +2 -2
- package/dist/chunks/config-switch.mjs +3 -4
- package/dist/chunks/config.mjs +78 -7
- package/dist/chunks/config2.mjs +400 -410
- package/dist/chunks/config3.mjs +410 -400
- package/dist/chunks/constants.mjs +1 -1
- package/dist/chunks/doctor.mjs +4 -4
- package/dist/chunks/features.mjs +24 -17
- package/dist/chunks/index.mjs +178 -7
- package/dist/chunks/index2.mjs +1162 -169
- package/dist/chunks/index3.mjs +910 -1076
- package/dist/chunks/index4.mjs +137 -947
- package/dist/chunks/index5.mjs +635 -167
- package/dist/chunks/init.mjs +141 -99
- package/dist/chunks/installer.mjs +147 -649
- package/dist/chunks/installer2.mjs +649 -147
- package/dist/chunks/interview.mjs +2 -2
- package/dist/chunks/marketplace.mjs +1 -1
- package/dist/chunks/mcp.mjs +1058 -17
- package/dist/chunks/menu.mjs +147 -56
- 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 +2 -210
- package/dist/chunks/permission-manager.mjs +2 -2
- package/dist/chunks/permissions.mjs +1 -1
- 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-setup.mjs +16 -20
- 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/startup.mjs +1 -1
- package/dist/chunks/stats.mjs +1 -1
- package/dist/chunks/status.mjs +159 -0
- package/dist/chunks/team.mjs +1 -1
- package/dist/chunks/thinking.mjs +2 -2
- package/dist/chunks/uninstall.mjs +6 -6
- package/dist/chunks/update.mjs +6 -9
- 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/chunks/workflows.mjs +616 -215
- package/dist/cli.mjs +70 -121
- package/dist/index.d.mts +17 -1482
- package/dist/index.d.ts +17 -1482
- package/dist/index.mjs +950 -4740
- package/dist/shared/{ccjk.zCqdxT2Y.mjs → ccjk.Br91zBIG.mjs} +2 -2
- package/dist/shared/ccjk.CSkyCZIM.mjs +638 -0
- package/dist/shared/{ccjk.BKoi8-Hy.mjs → ccjk.DE91nClQ.mjs} +1 -1
- package/dist/shared/{ccjk.f40us0yY.mjs → ccjk.DvIrK0wz.mjs} +2 -2
- package/dist/shared/ccjk.LsPZ2PYo.mjs +1048 -0
- package/dist/shared/{ccjk.DRweXU5F.mjs → ccjk.q1koQxEE.mjs} +2 -2
- package/package.json +1 -1
- package/templates/claude-code/common/settings.json +15 -111
- package/dist/chunks/api-adapter.mjs +0 -180
- package/dist/chunks/cli.mjs +0 -2227
- package/dist/chunks/context-menu.mjs +0 -913
- package/dist/chunks/hooks-sync.mjs +0 -1627
- package/dist/chunks/index6.mjs +0 -663
- package/dist/chunks/mcp-market.mjs +0 -1077
- package/dist/chunks/mcp-server.mjs +0 -776
- package/dist/chunks/project-detector.mjs +0 -131
- package/dist/chunks/provider-registry.mjs +0 -92
- package/dist/chunks/setup-wizard.mjs +0 -362
- package/dist/chunks/tools.mjs +0 -143
- package/dist/chunks/workflows2.mjs +0 -633
- package/dist/shared/ccjk.BM_HZogn.mjs +0 -347
- package/dist/shared/ccjk.BaEp4UHQ.mjs +0 -75
- package/dist/shared/ccjk.CS0ybJCf.mjs +0 -490
- package/dist/shared/ccjk.CZgIwikC.mjs +0 -209
- package/dist/shared/ccjk.tO8zeFh1.mjs +0 -397
package/dist/chunks/agent.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { CCJK_CONFIG_DIR } from './constants.mjs';
|
|
|
5
5
|
import { w as writeAgentFile } from '../shared/ccjk.Bvoex4TZ.mjs';
|
|
6
6
|
import { g as getPluginManager } from '../shared/ccjk.BsXQugfY.mjs';
|
|
7
7
|
import { homedir } from 'node:os';
|
|
8
|
-
import './
|
|
8
|
+
import './index.mjs';
|
|
9
9
|
import 'node:process';
|
|
10
10
|
import 'node:url';
|
|
11
11
|
import 'i18next';
|
package/dist/chunks/api.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
|
-
import { i18n, format } from './
|
|
3
|
-
import { S as STATUS, t as theme } from '../shared/ccjk.
|
|
2
|
+
import { i18n, format } from './index.mjs';
|
|
3
|
+
import { S as STATUS, t as theme } from '../shared/ccjk.Br91zBIG.mjs';
|
|
4
4
|
import inquirer from 'inquirer';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync } from 'node:fs';
|
|
6
6
|
import { homedir } from 'node:os';
|
|
@@ -720,7 +720,7 @@ async function runCcrSetup(lang) {
|
|
|
720
720
|
console.log(ansis.gray(lang === "zh-CN" ? " CCR \u63D0\u4F9B\u5B8C\u6574\u7684\u6A21\u578B\u8DEF\u7531\u3001\u8F6C\u6362\u548C\u591A\u63D0\u4F9B\u5546\u652F\u6301" : " CCR provides full model routing, transformation, and multi-provider support"));
|
|
721
721
|
console.log("");
|
|
722
722
|
try {
|
|
723
|
-
const { setupCcrConfiguration } = await import('./
|
|
723
|
+
const { setupCcrConfiguration } = await import('./config3.mjs');
|
|
724
724
|
const success = await setupCcrConfiguration();
|
|
725
725
|
return {
|
|
726
726
|
success,
|
|
@@ -4,7 +4,7 @@ import { release, platform, type, homedir, hostname } from 'node:os';
|
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import { join, dirname } from 'pathe';
|
|
6
6
|
import { CCJK_CONFIG_DIR } from './constants.mjs';
|
|
7
|
-
import './
|
|
7
|
+
import './index.mjs';
|
|
8
8
|
import 'node:process';
|
|
9
9
|
import 'i18next';
|
|
10
10
|
import 'i18next-fs-backend';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
import ora from 'ora';
|
|
3
3
|
import { exec } from 'tinyexec';
|
|
4
|
-
import { ensureI18nInitialized, i18n, format } from './
|
|
4
|
+
import { ensureI18nInitialized, i18n, format } from './index.mjs';
|
|
5
5
|
import { s as shouldUseSudoForGlobalInstall } from './platform.mjs';
|
|
6
6
|
import { p as promptBoolean } from '../shared/ccjk.DHbrGcgg.mjs';
|
|
7
7
|
import { checkClaudeCodeVersion, fixBrokenNpmSymlink, checkCcrVersion, handleDuplicateInstallations, checkCometixLineVersion } from './version-checker.mjs';
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import ansis from 'ansis';
|
|
2
|
+
import { r as runHealthCheck, a as analyzeProject, g as getRecommendations } from '../shared/ccjk.CSkyCZIM.mjs';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
import 'node:process';
|
|
5
|
+
import 'pathe';
|
|
6
|
+
import './constants.mjs';
|
|
7
|
+
import 'node:os';
|
|
8
|
+
import './index.mjs';
|
|
9
|
+
import 'node:url';
|
|
10
|
+
import 'i18next';
|
|
11
|
+
import 'i18next-fs-backend';
|
|
12
|
+
|
|
13
|
+
async function executeRecommendation(rec) {
|
|
14
|
+
if (!rec.command) {
|
|
15
|
+
return { success: false, message: "No command available" };
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
const parts = rec.command.split(" ");
|
|
19
|
+
const cmd = parts[0];
|
|
20
|
+
const args = parts.slice(1);
|
|
21
|
+
if (cmd === "ccjk") {
|
|
22
|
+
return await runCcjkCommand(args);
|
|
23
|
+
}
|
|
24
|
+
const { x } = await import('tinyexec');
|
|
25
|
+
const result = await x(cmd, args, { throwOnError: false });
|
|
26
|
+
return {
|
|
27
|
+
success: result.exitCode === 0,
|
|
28
|
+
message: result.exitCode === 0 ? "Applied" : `Failed: ${result.stderr}`
|
|
29
|
+
};
|
|
30
|
+
} catch (error) {
|
|
31
|
+
return { success: false, message: `Error: ${error instanceof Error ? error.message : String(error)}` };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async function runCcjkCommand(args) {
|
|
35
|
+
const sub = args[0];
|
|
36
|
+
try {
|
|
37
|
+
if (sub === "init") {
|
|
38
|
+
const { init } = await import('./init.mjs').then(function (n) { return n.c; });
|
|
39
|
+
await init({ skipBanner: true, skipPrompt: true });
|
|
40
|
+
return { success: true, message: "Initialization complete" };
|
|
41
|
+
}
|
|
42
|
+
if (sub === "ccjk:mcp" || sub === "ccjk-mcp") {
|
|
43
|
+
const { ccjkMcp } = await import('./ccjk-mcp.mjs');
|
|
44
|
+
await ccjkMcp({ interactive: false, dryRun: false, json: false });
|
|
45
|
+
return { success: true, message: "MCP services configured" };
|
|
46
|
+
}
|
|
47
|
+
if (sub === "ccjk:skills" || sub === "ccjk-skills") {
|
|
48
|
+
const { ccjkSkills } = await import('./ccjk-skills.mjs');
|
|
49
|
+
await ccjkSkills({ interactive: false, dryRun: false, json: false });
|
|
50
|
+
return { success: true, message: "Skills installed" };
|
|
51
|
+
}
|
|
52
|
+
if (sub === "ccjk:agents" || sub === "ccjk-agents") {
|
|
53
|
+
const { ccjkAgents } = await import('./ccjk-agents.mjs');
|
|
54
|
+
await ccjkAgents({ list: false, json: false });
|
|
55
|
+
return { success: true, message: "Agents configured" };
|
|
56
|
+
}
|
|
57
|
+
if (sub === "doctor") {
|
|
58
|
+
const { doctor } = await import('./doctor.mjs');
|
|
59
|
+
await doctor({});
|
|
60
|
+
return { success: true, message: "Doctor check complete" };
|
|
61
|
+
}
|
|
62
|
+
const { x } = await import('tinyexec');
|
|
63
|
+
const result = await x("ccjk", args, { throwOnError: false });
|
|
64
|
+
return { success: result.exitCode === 0, message: result.exitCode === 0 ? "Done" : "Failed" };
|
|
65
|
+
} catch (error) {
|
|
66
|
+
return { success: false, message: `Error: ${error instanceof Error ? error.message : String(error)}` };
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async function boost(options = {}) {
|
|
70
|
+
console.log(ansis.cyan.bold("\n\u{1F680} CCJK Boost - One-Click Optimization\n"));
|
|
71
|
+
const ora = (await import('ora')).default;
|
|
72
|
+
let spinner = ora("Analyzing your setup...").start();
|
|
73
|
+
const [report, profile] = await Promise.all([
|
|
74
|
+
runHealthCheck(),
|
|
75
|
+
Promise.resolve(analyzeProject())
|
|
76
|
+
]);
|
|
77
|
+
const { skills: recSkills } = getRecommendations(profile);
|
|
78
|
+
spinner.succeed(`Current score: ${ansis.bold(String(report.totalScore))}/100 (Grade ${report.grade})`);
|
|
79
|
+
const actions = [];
|
|
80
|
+
for (const rec of report.recommendations) {
|
|
81
|
+
if (rec.command) {
|
|
82
|
+
actions.push({ label: `${rec.title}: ${rec.description}`, rec });
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
if (recSkills.length > 0 && !report.results.find((r) => r.name === "Skills" && r.status === "pass")) {
|
|
86
|
+
actions.push({
|
|
87
|
+
label: `Install ${recSkills.length} recommended skills for ${profile.language}`,
|
|
88
|
+
rec: { priority: "medium", title: "Install Skills", description: `${recSkills.length} skills match your project`, command: "ccjk ccjk:skills", category: "skills" }
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
if (actions.length === 0) {
|
|
92
|
+
console.log(ansis.green("\n\u2728 Your setup is already optimized! Score: ") + ansis.green.bold(`${report.totalScore}/100`));
|
|
93
|
+
console.log(ansis.gray('Run "ccjk status" for detailed breakdown.\n'));
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
console.log(ansis.yellow(`
|
|
97
|
+
\u{1F4CB} ${actions.length} optimization${actions.length > 1 ? "s" : ""} available:
|
|
98
|
+
`));
|
|
99
|
+
for (const a of actions) {
|
|
100
|
+
const priority = a.rec.priority === "high" ? ansis.red("[HIGH]") : ansis.yellow("[MED]");
|
|
101
|
+
console.log(` ${priority} ${a.label}`);
|
|
102
|
+
if (a.rec.command)
|
|
103
|
+
console.log(` ${ansis.gray(a.rec.command)}`);
|
|
104
|
+
}
|
|
105
|
+
if (options.dryRun) {
|
|
106
|
+
console.log(ansis.gray("\n--dry-run: No changes applied.\n"));
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (!options.yes) {
|
|
110
|
+
const { default: inquirer } = await import('inquirer');
|
|
111
|
+
const { confirm } = await inquirer.prompt([{
|
|
112
|
+
type: "confirm",
|
|
113
|
+
name: "confirm",
|
|
114
|
+
message: `Apply ${actions.length} optimization${actions.length > 1 ? "s" : ""}?`,
|
|
115
|
+
default: true
|
|
116
|
+
}]);
|
|
117
|
+
if (!confirm) {
|
|
118
|
+
console.log(ansis.gray("\nCancelled.\n"));
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
console.log("");
|
|
123
|
+
let applied = 0;
|
|
124
|
+
let failed = 0;
|
|
125
|
+
for (const action of actions) {
|
|
126
|
+
spinner = ora(action.label).start();
|
|
127
|
+
try {
|
|
128
|
+
const result = await executeRecommendation(action.rec);
|
|
129
|
+
if (result.success) {
|
|
130
|
+
spinner.succeed(action.label);
|
|
131
|
+
applied++;
|
|
132
|
+
} else {
|
|
133
|
+
spinner.warn(`${action.label} ${ansis.gray(`(${result.message})`)}`);
|
|
134
|
+
failed++;
|
|
135
|
+
}
|
|
136
|
+
} catch {
|
|
137
|
+
spinner.fail(action.label);
|
|
138
|
+
failed++;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
console.log("");
|
|
142
|
+
spinner = ora("Recalculating score...").start();
|
|
143
|
+
const newReport = await runHealthCheck();
|
|
144
|
+
spinner.stop();
|
|
145
|
+
const delta = newReport.totalScore - report.totalScore;
|
|
146
|
+
const deltaStr = delta > 0 ? ansis.green(`+${delta}`) : delta < 0 ? ansis.red(String(delta)) : "\xB10";
|
|
147
|
+
console.log(ansis.cyan.bold("\n\u{1F4CA} Results"));
|
|
148
|
+
console.log(` Applied: ${ansis.green(String(applied))} Failed: ${failed > 0 ? ansis.red(String(failed)) : ansis.gray("0")}`);
|
|
149
|
+
console.log(` Score: ${ansis.bold(String(report.totalScore))} \u2192 ${ansis.bold(String(newReport.totalScore))} (${deltaStr})`);
|
|
150
|
+
console.log(` Grade: ${report.grade} \u2192 ${ansis.bold(newReport.grade)}`);
|
|
151
|
+
if (newReport.totalScore >= 80) {
|
|
152
|
+
console.log(ansis.green("\n \u2728 Excellent setup! Getting the most out of Claude Code.\n"));
|
|
153
|
+
} else {
|
|
154
|
+
console.log(ansis.yellow(`
|
|
155
|
+
Run ${ansis.cyan("ccjk status")} for remaining recommendations.
|
|
156
|
+
`));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export { boost };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process__default, { cwd } from 'node:process';
|
|
2
2
|
import consola from 'consola';
|
|
3
3
|
import { P as ProjectAnalyzer, g as getTemplatesClient } from '../shared/ccjk.BNwRnWYx.mjs';
|
|
4
|
-
import { i18n } from './
|
|
4
|
+
import { i18n } from './index.mjs';
|
|
5
5
|
import { existsSync, readFileSync, writeFileSync, readdirSync } from 'node:fs';
|
|
6
6
|
import { join, dirname } from 'pathe';
|
|
7
7
|
import { CLAUDE_AGENTS_DIR } from './constants.mjs';
|
package/dist/chunks/ccjk-all.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { hash } from 'ohash';
|
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
7
7
|
import { ofetch } from 'ofetch';
|
|
8
8
|
import { randomUUID, createHash } from 'node:crypto';
|
|
9
|
-
import { i18n, ensureI18nInitialized } from './
|
|
9
|
+
import { i18n, ensureI18nInitialized } from './index.mjs';
|
|
10
10
|
import { a as analyzeProject } from '../shared/ccjk.BNwRnWYx.mjs';
|
|
11
11
|
import { ccjkAgents } from './ccjk-agents.mjs';
|
|
12
12
|
import { ccjkHooks } from './ccjk-hooks.mjs';
|
|
@@ -5,7 +5,7 @@ import { DEFAULT_CODE_TOOL_TYPE, ZCF_CONFIG_FILE, LEGACY_ZCF_CONFIG_FILES, ZCF_C
|
|
|
5
5
|
import { exists, readFile, ensureDir, writeFileAtomic } from './fs-operations.mjs';
|
|
6
6
|
import { readJsonConfig } from './json-config.mjs';
|
|
7
7
|
import 'node:os';
|
|
8
|
-
import './
|
|
8
|
+
import './index.mjs';
|
|
9
9
|
import 'node:process';
|
|
10
10
|
import 'node:url';
|
|
11
11
|
import 'i18next';
|
|
@@ -7,7 +7,7 @@ import process__default from 'node:process';
|
|
|
7
7
|
import { join, dirname } from 'pathe';
|
|
8
8
|
import { exec } from 'node:child_process';
|
|
9
9
|
import { promisify } from 'node:util';
|
|
10
|
-
import { i18n } from './
|
|
10
|
+
import { i18n } from './index.mjs';
|
|
11
11
|
import 'tinyglobby';
|
|
12
12
|
import 'smol-toml';
|
|
13
13
|
import 'ofetch';
|
package/dist/chunks/ccjk-mcp.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import consola from 'consola';
|
|
|
5
5
|
import inquirer from 'inquirer';
|
|
6
6
|
import { a as analyzeProject, g as getTemplatesClient } from '../shared/ccjk.BNwRnWYx.mjs';
|
|
7
7
|
import { CLAUDE_DIR } from './constants.mjs';
|
|
8
|
-
import { ensureI18nInitialized, i18n } from './
|
|
8
|
+
import { ensureI18nInitialized, i18n } from './index.mjs';
|
|
9
9
|
import { b as backupMcpConfig, r as readMcpConfig, m as mergeMcpServers, w as writeMcpConfig } from './claude-config.mjs';
|
|
10
|
-
import {
|
|
10
|
+
import { c as commandExists } from './platform.mjs';
|
|
11
11
|
import 'node:fs';
|
|
12
12
|
import 'pathe';
|
|
13
13
|
import 'tinyglobby';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
import { consola } from 'consola';
|
|
3
3
|
import { P as ProjectAnalyzer } from '../shared/ccjk.BNwRnWYx.mjs';
|
|
4
|
-
import { i18n } from './
|
|
4
|
+
import { i18n } from './index.mjs';
|
|
5
5
|
import { promises } from 'node:fs';
|
|
6
6
|
import { performance } from 'node:perf_hooks';
|
|
7
7
|
import { join } from 'pathe';
|
|
@@ -6,7 +6,7 @@ import ansis from 'ansis';
|
|
|
6
6
|
import consola from 'consola';
|
|
7
7
|
import inquirer from 'inquirer';
|
|
8
8
|
import { a as analyzeProject, g as getTemplatesClient } from '../shared/ccjk.BNwRnWYx.mjs';
|
|
9
|
-
import { i18n } from './
|
|
9
|
+
import { i18n } from './index.mjs';
|
|
10
10
|
import { g as getSkillParser } from '../shared/ccjk.Bdhyg3X-.mjs';
|
|
11
11
|
import 'pathe';
|
|
12
12
|
import 'tinyglobby';
|
package/dist/chunks/ccr.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { s as showCcrMenu } from './
|
|
4
|
-
import { showMainMenu } from './menu.mjs';
|
|
1
|
+
import { d as displayBannerWithInfo } from '../shared/ccjk.Br91zBIG.mjs';
|
|
2
|
+
import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.DvIrK0wz.mjs';
|
|
3
|
+
import { s as showCcrMenu, a as showMainMenu } from './menu.mjs';
|
|
5
4
|
import 'ansis';
|
|
6
5
|
import './package.mjs';
|
|
7
|
-
import './
|
|
6
|
+
import './index.mjs';
|
|
8
7
|
import 'node:fs';
|
|
9
8
|
import 'node:process';
|
|
10
9
|
import 'node:url';
|
|
@@ -12,37 +11,40 @@ import 'i18next';
|
|
|
12
11
|
import 'i18next-fs-backend';
|
|
13
12
|
import 'pathe';
|
|
14
13
|
import 'inquirer';
|
|
15
|
-
import 'node:os';
|
|
16
|
-
import './commands.mjs';
|
|
17
|
-
import 'node:child_process';
|
|
18
|
-
import 'node:util';
|
|
19
|
-
import './config2.mjs';
|
|
20
|
-
import 'dayjs';
|
|
21
14
|
import './constants.mjs';
|
|
22
|
-
import '
|
|
23
|
-
import './
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import './ccjk-config.mjs';
|
|
17
|
+
import 'smol-toml';
|
|
24
18
|
import './fs-operations.mjs';
|
|
25
19
|
import 'node:crypto';
|
|
26
20
|
import 'node:fs/promises';
|
|
21
|
+
import './json-config.mjs';
|
|
22
|
+
import 'dayjs';
|
|
23
|
+
import '../shared/ccjk.q1koQxEE.mjs';
|
|
24
|
+
import 'node:child_process';
|
|
27
25
|
import './platform.mjs';
|
|
28
26
|
import 'tinyexec';
|
|
27
|
+
import './features.mjs';
|
|
28
|
+
import './codex.mjs';
|
|
29
|
+
import 'ora';
|
|
30
|
+
import 'semver';
|
|
29
31
|
import './config.mjs';
|
|
32
|
+
import './claude-config.mjs';
|
|
33
|
+
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
34
|
+
import './prompts.mjs';
|
|
30
35
|
import '../shared/ccjk.DHbrGcgg.mjs';
|
|
31
36
|
import 'inquirer-toggle';
|
|
32
|
-
import '
|
|
37
|
+
import './config3.mjs';
|
|
38
|
+
import 'node:util';
|
|
39
|
+
import './init.mjs';
|
|
40
|
+
import '../shared/ccjk.LsPZ2PYo.mjs';
|
|
33
41
|
import './auto-updater.mjs';
|
|
34
|
-
import 'ora';
|
|
35
42
|
import './version-checker.mjs';
|
|
36
43
|
import 'node:path';
|
|
37
|
-
import '
|
|
38
|
-
import '
|
|
39
|
-
import 'smol-toml';
|
|
40
|
-
import '../shared/ccjk.DRweXU5F.mjs';
|
|
41
|
-
import './features.mjs';
|
|
42
|
-
import '../shared/ccjk.CZgIwikC.mjs';
|
|
43
|
-
import '../shared/ccjk.CS0ybJCf.mjs';
|
|
44
|
-
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
44
|
+
import './installer2.mjs';
|
|
45
|
+
import '../shared/ccjk.DE91nClQ.mjs';
|
|
45
46
|
import './simple-config.mjs';
|
|
47
|
+
import './commands2.mjs';
|
|
46
48
|
import './ccjk-agents.mjs';
|
|
47
49
|
import 'consola';
|
|
48
50
|
import '../shared/ccjk.BNwRnWYx.mjs';
|
|
@@ -53,17 +55,10 @@ import '../shared/ccjk.AqnXPAzw.mjs';
|
|
|
53
55
|
import './ccjk-skills.mjs';
|
|
54
56
|
import '../shared/ccjk.Bdhyg3X-.mjs';
|
|
55
57
|
import './check-updates.mjs';
|
|
56
|
-
import './codex.mjs';
|
|
57
|
-
import './prompts.mjs';
|
|
58
58
|
import './doctor.mjs';
|
|
59
59
|
import './api-providers.mjs';
|
|
60
60
|
import '../shared/ccjk.h7_W-wTs.mjs';
|
|
61
61
|
import '../shared/ccjk.J8YiPsOw.mjs';
|
|
62
|
-
import './init.mjs';
|
|
63
|
-
import './workflows.mjs';
|
|
64
|
-
import '../shared/ccjk.BM_HZogn.mjs';
|
|
65
|
-
import './installer.mjs';
|
|
66
|
-
import '../shared/ccjk.BKoi8-Hy.mjs';
|
|
67
62
|
import './uninstall.mjs';
|
|
68
63
|
import '../shared/ccjk.DntgA8fQ.mjs';
|
|
69
64
|
import 'trash';
|
package/dist/chunks/ccu.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import process__default from 'node:process';
|
|
2
2
|
import ansis from 'ansis';
|
|
3
|
-
import { ensureI18nInitialized, i18n } from './
|
|
4
|
-
import { r as resolveCodeType } from '../shared/ccjk.
|
|
3
|
+
import { ensureI18nInitialized, i18n } from './index.mjs';
|
|
4
|
+
import { r as resolveCodeType } from '../shared/ccjk.q1koQxEE.mjs';
|
|
5
5
|
import { checkAndUpdateTools } from './auto-updater.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { d as runCodexUpdate } from './codex.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:url';
|
|
9
9
|
import 'i18next';
|
|
@@ -34,7 +34,6 @@ import './claude-config.mjs';
|
|
|
34
34
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
35
35
|
import './prompts.mjs';
|
|
36
36
|
import './package.mjs';
|
|
37
|
-
import '../shared/ccjk.CZgIwikC.mjs';
|
|
38
37
|
|
|
39
38
|
class ToolUpdateScheduler {
|
|
40
39
|
/**
|
|
@@ -2,11 +2,11 @@ import dayjs from 'dayjs';
|
|
|
2
2
|
import { join } from 'pathe';
|
|
3
3
|
import { ZCF_CONFIG_FILE, ZCF_CONFIG_DIR, SETTINGS_FILE } from './constants.mjs';
|
|
4
4
|
import { readDefaultTomlConfig, createDefaultTomlConfig, writeTomlConfig } from './ccjk-config.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { j as clearModelEnv } from './config.mjs';
|
|
6
6
|
import { ensureDir, exists, copyFile } from './fs-operations.mjs';
|
|
7
7
|
import { readJsonConfig } from './json-config.mjs';
|
|
8
8
|
import 'node:os';
|
|
9
|
-
import './
|
|
9
|
+
import './index.mjs';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import 'node:process';
|
|
12
12
|
import 'node:url';
|
|
@@ -186,11 +186,11 @@ class ClaudeCodeConfigManager {
|
|
|
186
186
|
* Apply profile settings to Claude Code runtime
|
|
187
187
|
*/
|
|
188
188
|
static async applyProfileSettings(profile) {
|
|
189
|
-
const { ensureI18nInitialized, i18n } = await import('./
|
|
189
|
+
const { ensureI18nInitialized, i18n } = await import('./index.mjs');
|
|
190
190
|
ensureI18nInitialized();
|
|
191
191
|
try {
|
|
192
192
|
if (!profile) {
|
|
193
|
-
const { switchToOfficialLogin } = await import('./config.mjs').then(function (n) { return n.
|
|
193
|
+
const { switchToOfficialLogin } = await import('./config.mjs').then(function (n) { return n.c; });
|
|
194
194
|
switchToOfficialLogin();
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
@@ -207,7 +207,7 @@ class ClaudeCodeConfigManager {
|
|
|
207
207
|
settings.env.ANTHROPIC_AUTH_TOKEN = profile.apiKey;
|
|
208
208
|
delete settings.env.ANTHROPIC_API_KEY;
|
|
209
209
|
} else if (profile.authType === "ccr_proxy") {
|
|
210
|
-
const { readCcrConfig } = await import('./
|
|
210
|
+
const { readCcrConfig } = await import('./config3.mjs');
|
|
211
211
|
const ccrConfig = readCcrConfig();
|
|
212
212
|
if (!ccrConfig) {
|
|
213
213
|
throw new Error(i18n.t("ccr:ccrNotConfigured") || "CCR proxy configuration not found");
|
|
@@ -246,7 +246,7 @@ class ClaudeCodeConfigManager {
|
|
|
246
246
|
setPrimaryApiKey();
|
|
247
247
|
addCompletedOnboarding();
|
|
248
248
|
if (shouldRestartCcr) {
|
|
249
|
-
const { runCcrRestart } = await import('./
|
|
249
|
+
const { runCcrRestart } = await import('./commands2.mjs');
|
|
250
250
|
await runCcrRestart();
|
|
251
251
|
}
|
|
252
252
|
} catch (error) {
|
|
@@ -603,7 +603,7 @@ class ClaudeCodeConfigManager {
|
|
|
603
603
|
*/
|
|
604
604
|
static async syncCcrProfile() {
|
|
605
605
|
try {
|
|
606
|
-
const { readCcrConfig } = await import('./
|
|
606
|
+
const { readCcrConfig } = await import('./config3.mjs');
|
|
607
607
|
const ccrConfig = readCcrConfig();
|
|
608
608
|
if (!ccrConfig) {
|
|
609
609
|
await this.ensureCcrProfileExists(ccrConfig);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
import inquirer from 'inquirer';
|
|
3
|
-
import { ensureI18nInitialized, i18n } from './
|
|
3
|
+
import { ensureI18nInitialized, i18n } from './index.mjs';
|
|
4
4
|
import { ClaudeCodeConfigManager } from './claude-code-config-manager.mjs';
|
|
5
5
|
import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
|
|
6
6
|
import { p as promptBoolean } from '../shared/ccjk.DHbrGcgg.mjs';
|
|
7
|
-
import { v as validateApiKey } from '../shared/ccjk.
|
|
7
|
+
import { v as validateApiKey } from '../shared/ccjk.LsPZ2PYo.mjs';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:process';
|
|
10
10
|
import 'node:url';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { existsSync, readFileSync
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { join } from 'pathe';
|
|
3
3
|
import { CLAUDE_VSC_CONFIG_FILE, CLAUDE_DIR, ClAUDE_CONFIG_FILE } from './constants.mjs';
|
|
4
|
-
import { ensureI18nInitialized, i18n } from './
|
|
4
|
+
import { ensureI18nInitialized, i18n } from './index.mjs';
|
|
5
5
|
import { readJsonConfig, writeJsonConfig, backupJsonConfig } from './json-config.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { i as isWindows, d as getMcpCommand } from './platform.mjs';
|
|
7
7
|
|
|
8
8
|
function mergeArraysUnique(arr1, arr2) {
|
|
9
9
|
const combined = [...arr1 || [], ...arr2 || []];
|
|
@@ -212,7 +212,7 @@ function syncMcpPermissions() {
|
|
|
212
212
|
);
|
|
213
213
|
const mcpPerms = mcpServerIds.map((id) => `mcp__${id}`);
|
|
214
214
|
settings.permissions.allow = [...nonMcpPerms, ...mcpPerms];
|
|
215
|
-
|
|
215
|
+
writeJsonConfig(settingsPath, settings);
|
|
216
216
|
} catch {
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process__default from 'node:process';
|
|
2
2
|
import { exec } from 'tinyexec';
|
|
3
|
-
import { i18n, initI18n } from './
|
|
4
|
-
import {
|
|
3
|
+
import { i18n, initI18n } from './index.mjs';
|
|
4
|
+
import { m as findRealCommandPath } from './platform.mjs';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'i18next';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
import inquirer from 'inquirer';
|
|
3
3
|
import { CODEX_AUTH_FILE } from './constants.mjs';
|
|
4
|
-
import { ensureI18nInitialized, i18n } from './
|
|
4
|
+
import { ensureI18nInitialized, i18n } from './index.mjs';
|
|
5
5
|
import { readJsonConfig } from './json-config.mjs';
|
|
6
6
|
import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
|
|
7
7
|
import { p as promptBoolean } from '../shared/ccjk.DHbrGcgg.mjs';
|
|
8
|
-
import {
|
|
8
|
+
import { k as detectConfigManagementMode } from './codex.mjs';
|
|
9
9
|
import { deleteProviders, addProviderToExisting, editExistingProvider } from './codex-provider-manager.mjs';
|
|
10
10
|
import 'node:os';
|
|
11
11
|
import 'pathe';
|
|
@@ -29,7 +29,6 @@ import './claude-config.mjs';
|
|
|
29
29
|
import './platform.mjs';
|
|
30
30
|
import './prompts.mjs';
|
|
31
31
|
import './package.mjs';
|
|
32
|
-
import '../shared/ccjk.CZgIwikC.mjs';
|
|
33
32
|
import 'node:child_process';
|
|
34
33
|
|
|
35
34
|
async function configureIncrementalManagement() {
|
|
@@ -179,7 +178,7 @@ async function handleAddProvider() {
|
|
|
179
178
|
defaultValue: true
|
|
180
179
|
});
|
|
181
180
|
if (setAsDefault) {
|
|
182
|
-
const { switchToProvider } = await import('./codex.mjs').then(function (n) { return n.
|
|
181
|
+
const { switchToProvider } = await import('./codex.mjs').then(function (n) { return n.m; });
|
|
183
182
|
const switched = await switchToProvider(provider.id);
|
|
184
183
|
if (switched) {
|
|
185
184
|
console.log(ansis.green(i18n.t("multi-config:profileSetAsDefault", { name: provider.name })));
|
|
@@ -374,7 +373,7 @@ ${i18n.t("codex:copyingProvider", { name: provider.name })}`));
|
|
|
374
373
|
defaultValue: false
|
|
375
374
|
});
|
|
376
375
|
if (setAsDefault) {
|
|
377
|
-
const { switchToProvider } = await import('./codex.mjs').then(function (n) { return n.
|
|
376
|
+
const { switchToProvider } = await import('./codex.mjs').then(function (n) { return n.m; });
|
|
378
377
|
const switched = await switchToProvider(copiedProvider.id);
|
|
379
378
|
if (switched) {
|
|
380
379
|
console.log(ansis.green(i18n.t("multi-config:profileSetAsDefault", { name: copiedProvider.name })));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ensureI18nInitialized, i18n } from './
|
|
2
|
-
import { r as readCodexConfig,
|
|
1
|
+
import { ensureI18nInitialized, i18n } from './index.mjs';
|
|
2
|
+
import { r as readCodexConfig, i as backupCodexComplete, w as writeCodexConfig, j as writeAuthFile } from './codex.mjs';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:process';
|
|
5
5
|
import 'node:url';
|
|
@@ -28,7 +28,6 @@ import './prompts.mjs';
|
|
|
28
28
|
import './package.mjs';
|
|
29
29
|
import '../shared/ccjk.DHbrGcgg.mjs';
|
|
30
30
|
import 'inquirer-toggle';
|
|
31
|
-
import '../shared/ccjk.CZgIwikC.mjs';
|
|
32
31
|
import 'node:child_process';
|
|
33
32
|
|
|
34
33
|
async function addProviderToExisting(provider, apiKey, allowOverwrite = false) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { promises } from 'node:fs';
|
|
2
2
|
import { join } from 'pathe';
|
|
3
3
|
import { CODEX_DIR, CODEX_CONFIG_FILE, CODEX_AUTH_FILE, CODEX_AGENTS_FILE, CODEX_PROMPTS_DIR } from './constants.mjs';
|
|
4
|
-
import { i18n } from './
|
|
4
|
+
import { i18n } from './index.mjs';
|
|
5
5
|
import { writeFileAtomic } from './fs-operations.mjs';
|
|
6
6
|
import { m as moveToTrash } from '../shared/ccjk.DntgA8fQ.mjs';
|
|
7
7
|
import 'node:os';
|
|
@@ -155,7 +155,7 @@ class CodexUninstaller {
|
|
|
155
155
|
warnings: []
|
|
156
156
|
};
|
|
157
157
|
try {
|
|
158
|
-
const { uninstallCodeTool } = await import('./
|
|
158
|
+
const { uninstallCodeTool } = await import('./installer2.mjs');
|
|
159
159
|
const success = await uninstallCodeTool("codex");
|
|
160
160
|
if (success) {
|
|
161
161
|
result.removed.push("@openai/codex");
|