ccjk 9.3.29 → 9.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/agent.mjs +10 -5
- 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/ccjk-agents.mjs +5 -4
- package/dist/chunks/ccjk-all.mjs +2 -2
- 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 +2 -2
- package/dist/chunks/ccjk-skills.mjs +2 -2
- package/dist/chunks/ccr.mjs +13 -13
- 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/cli-hook.mjs +3042 -0
- 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 +4 -4
- package/dist/chunks/commands.mjs +88 -391
- package/dist/chunks/commands2.mjs +391 -88
- package/dist/chunks/completion.mjs +2 -3
- package/dist/chunks/config-consolidator.mjs +2 -2
- package/dist/chunks/config-switch.mjs +3 -3
- package/dist/chunks/config.mjs +3 -3
- package/dist/chunks/config2.mjs +410 -400
- package/dist/chunks/config3.mjs +400 -410
- package/dist/chunks/constants.mjs +5 -4
- package/dist/chunks/context-menu.mjs +1 -1
- package/dist/chunks/doctor.mjs +4 -4
- package/dist/chunks/features.mjs +3 -3
- package/dist/chunks/hooks-sync.mjs +3 -3
- package/dist/chunks/index.mjs +6 -178
- package/dist/chunks/index2.mjs +7849 -1139
- package/dist/chunks/index3.mjs +166 -992
- package/dist/chunks/index4.mjs +1139 -163
- package/dist/chunks/index5.mjs +981 -7858
- package/dist/chunks/index6.mjs +195 -0
- package/dist/chunks/init.mjs +20 -20
- 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-market.mjs +8 -8
- package/dist/chunks/mcp-server.mjs +1 -1
- package/dist/chunks/mcp.mjs +1 -1
- package/dist/chunks/menu.mjs +13 -13
- 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/platform.mjs +1 -1
- package/dist/chunks/plugin.mjs +1 -1
- package/dist/chunks/project-detector.mjs +1 -1
- package/dist/chunks/prompts.mjs +1 -1
- package/dist/chunks/providers.mjs +1 -1
- package/dist/chunks/quick-setup.mjs +11 -11
- package/dist/chunks/silent-updater.mjs +1 -1
- package/dist/chunks/simple-config.mjs +1 -1
- package/dist/chunks/skill.mjs +8 -1
- package/dist/chunks/skills-sync.mjs +1 -1
- package/dist/chunks/skills.mjs +1 -1
- 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/team.mjs +1 -1
- package/dist/chunks/thinking.mjs +2 -2
- package/dist/chunks/tools.mjs +5 -5
- package/dist/chunks/uninstall.mjs +4 -4
- package/dist/chunks/update.mjs +8 -8
- 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 +125 -618
- package/dist/chunks/workflows2.mjs +618 -125
- package/dist/cli.mjs +94 -30
- package/dist/index.d.mts +73 -2
- package/dist/index.d.ts +73 -2
- package/dist/index.mjs +4 -3
- package/dist/shared/ccjk.3Rl727PQ.mjs +401 -0
- package/dist/shared/{ccjk.Ddoi_GoX.mjs → ccjk.B45Qw6ip.mjs} +2 -2
- package/dist/shared/{ccjk.CTltm-Lp.mjs → ccjk.BgRf-biH.mjs} +2 -2
- package/dist/shared/{ccjk.zEYnsS6R.mjs → ccjk.C4nuYSEu.mjs} +8 -4
- package/dist/shared/{ccjk.DvIrK0wz.mjs → ccjk.CiPa6kZ5.mjs} +2 -2
- package/dist/shared/{ccjk.DE91nClQ.mjs → ccjk.CrB6OYHv.mjs} +1 -1
- package/dist/shared/{ccjk.SIo9I8q3.mjs → ccjk.D1zFzlNS.mjs} +1 -1
- package/dist/shared/{ccjk.Br91zBIG.mjs → ccjk.DKL7Ki99.mjs} +1 -1
- package/dist/shared/{ccjk.CGF4gfkp.mjs → ccjk.DnFuTYdi.mjs} +3 -3
- package/dist/shared/{ccjk.Bn0NjSvL.mjs → ccjk.DqALuTvR.mjs} +87 -16
- package/package.json +1 -1
package/dist/chunks/agent.mjs
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync } from 'node:fs';
|
|
3
|
-
import { homedir } from 'node:os';
|
|
4
3
|
import { join } from 'pathe';
|
|
5
|
-
import { g as getPluginManager } from '../shared/ccjk.
|
|
6
|
-
import {
|
|
4
|
+
import { g as getPluginManager } from '../shared/ccjk.DqALuTvR.mjs';
|
|
5
|
+
import { homedir } from 'node:os';
|
|
6
|
+
import { w as writeAgentFile } from '../shared/ccjk.C4nuYSEu.mjs';
|
|
7
|
+
import { CCJK_CONFIG_DIR } from './constants.mjs';
|
|
7
8
|
import 'tinyexec';
|
|
8
9
|
import 'node:child_process';
|
|
9
10
|
import '../shared/ccjk.Bdhyg3X-.mjs';
|
|
11
|
+
import './index3.mjs';
|
|
12
|
+
import 'node:process';
|
|
13
|
+
import 'node:url';
|
|
14
|
+
import 'i18next';
|
|
15
|
+
import 'i18next-fs-backend';
|
|
10
16
|
|
|
11
17
|
const CLAUDE_CONFIG_PATH = join(homedir(), ".claude.json");
|
|
12
18
|
const TOOL_CACHE_TTL = 5 * 60 * 1e3;
|
|
@@ -552,8 +558,7 @@ async function getMcpServerManager() {
|
|
|
552
558
|
return managerInstance;
|
|
553
559
|
}
|
|
554
560
|
|
|
555
|
-
join(
|
|
556
|
-
const AGENT_TEMPLATES_DIR = join(homedir(), ".ccjk", "agent-templates");
|
|
561
|
+
const AGENT_TEMPLATES_DIR = join(CCJK_CONFIG_DIR, "agent-templates");
|
|
557
562
|
class AgentBuilder {
|
|
558
563
|
definition = {
|
|
559
564
|
skills: [],
|
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 './index3.mjs';
|
|
3
|
+
import { S as STATUS, t as theme } from '../shared/ccjk.DKL7Ki99.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('./config2.mjs');
|
|
724
724
|
const success = await setupCcrConfiguration();
|
|
725
725
|
return {
|
|
726
726
|
success,
|
|
@@ -3,7 +3,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'node:fs';
|
|
|
3
3
|
import { release, platform, type, homedir, hostname } from 'node:os';
|
|
4
4
|
import { join } from 'pathe';
|
|
5
5
|
import { CCJK_CONFIG_DIR } from './constants.mjs';
|
|
6
|
-
import './
|
|
6
|
+
import './index3.mjs';
|
|
7
7
|
import 'node:process';
|
|
8
8
|
import 'node:url';
|
|
9
9
|
import 'i18next';
|
|
@@ -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 './index3.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';
|
|
@@ -4,9 +4,9 @@ import { P as ProjectAnalyzer, g as getTemplatesClient } from '../shared/ccjk.Cc
|
|
|
4
4
|
import { join, dirname } from 'pathe';
|
|
5
5
|
import { fileURLToPath } from 'node:url';
|
|
6
6
|
import { existsSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
7
|
-
import {
|
|
8
|
-
import { i18n } from './
|
|
9
|
-
import { w as writeAgentFile } from '../shared/ccjk.
|
|
7
|
+
import { CLAUDE_AGENTS_DIR } from './constants.mjs';
|
|
8
|
+
import { i18n } from './index3.mjs';
|
|
9
|
+
import { w as writeAgentFile } from '../shared/ccjk.C4nuYSEu.mjs';
|
|
10
10
|
import { e as extractDisplayName, a as extractString } from '../shared/ccjk.AqnXPAzw.mjs';
|
|
11
11
|
import 'fs-extra';
|
|
12
12
|
import 'fs';
|
|
@@ -15,6 +15,7 @@ import 'url';
|
|
|
15
15
|
import 'module';
|
|
16
16
|
import 'smol-toml';
|
|
17
17
|
import 'ofetch';
|
|
18
|
+
import 'node:os';
|
|
18
19
|
import 'i18next';
|
|
19
20
|
import 'i18next-fs-backend';
|
|
20
21
|
|
|
@@ -60,7 +61,7 @@ async function loadAgentTemplates() {
|
|
|
60
61
|
return templates;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
const AGENTS_DIR =
|
|
64
|
+
const AGENTS_DIR = CLAUDE_AGENTS_DIR;
|
|
64
65
|
async function registerAgent(agent) {
|
|
65
66
|
const agentId = "id" in agent ? agent.id : generateAgentId(agent);
|
|
66
67
|
join(AGENTS_DIR, `${agentId}.json`);
|
package/dist/chunks/ccjk-all.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
import consola from 'consola';
|
|
3
|
-
import { i18n, ensureI18nInitialized } from './
|
|
3
|
+
import { i18n, ensureI18nInitialized } from './index3.mjs';
|
|
4
4
|
import fs__default, { readFileSync, promises } from 'node:fs';
|
|
5
5
|
import path__default, { dirname, join } from 'node:path';
|
|
6
6
|
import { randomUUID, createHash } from 'node:crypto';
|
|
@@ -34,7 +34,7 @@ import './fs-operations.mjs';
|
|
|
34
34
|
import 'node:fs/promises';
|
|
35
35
|
import './platform.mjs';
|
|
36
36
|
import 'tinyexec';
|
|
37
|
-
import '../shared/ccjk.
|
|
37
|
+
import '../shared/ccjk.C4nuYSEu.mjs';
|
|
38
38
|
import 'node:child_process';
|
|
39
39
|
import 'node:util';
|
|
40
40
|
import 'node:perf_hooks';
|
|
@@ -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 './index3.mjs';
|
|
9
9
|
import 'node:process';
|
|
10
10
|
import 'node:url';
|
|
11
11
|
import 'i18next';
|
|
@@ -6,7 +6,7 @@ import { join, dirname } from 'pathe';
|
|
|
6
6
|
import { exec } from 'node:child_process';
|
|
7
7
|
import { promisify } from 'node:util';
|
|
8
8
|
import inquirer from 'inquirer';
|
|
9
|
-
import { i18n } from './
|
|
9
|
+
import { i18n } from './index3.mjs';
|
|
10
10
|
import { performance } from 'node:perf_hooks';
|
|
11
11
|
import 'fs-extra';
|
|
12
12
|
import 'fs';
|
package/dist/chunks/ccjk-mcp.mjs
CHANGED
|
@@ -3,10 +3,10 @@ import inquirer from 'inquirer';
|
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import { cwd } from 'node:process';
|
|
5
5
|
import ansis from 'ansis';
|
|
6
|
-
import { ensureI18nInitialized, i18n } from './
|
|
6
|
+
import { ensureI18nInitialized, i18n } from './index3.mjs';
|
|
7
7
|
import { a as analyzeProject, g as getTemplatesClient } from '../shared/ccjk.CcFAyU1D.mjs';
|
|
8
8
|
import { b as backupMcpConfig, r as readMcpConfig, m as mergeMcpServers, w as writeMcpConfig } from './claude-config.mjs';
|
|
9
|
-
import {
|
|
9
|
+
import { h as commandExists } from './platform.mjs';
|
|
10
10
|
import { CLAUDE_DIR } from './constants.mjs';
|
|
11
11
|
import 'node:fs';
|
|
12
12
|
import 'node:url';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i18n } from './
|
|
1
|
+
import { i18n } from './index3.mjs';
|
|
2
2
|
import { consola } from 'consola';
|
|
3
3
|
import ansis from 'ansis';
|
|
4
4
|
import { cwd } from 'node:process';
|
|
@@ -33,7 +33,7 @@ import 'node:crypto';
|
|
|
33
33
|
import 'node:fs/promises';
|
|
34
34
|
import './platform.mjs';
|
|
35
35
|
import 'tinyexec';
|
|
36
|
-
import '../shared/ccjk.
|
|
36
|
+
import '../shared/ccjk.C4nuYSEu.mjs';
|
|
37
37
|
import '../shared/ccjk.AqnXPAzw.mjs';
|
|
38
38
|
import 'node:child_process';
|
|
39
39
|
import 'node:util';
|
|
@@ -4,7 +4,7 @@ import { join } from 'node:path';
|
|
|
4
4
|
import ansis from 'ansis';
|
|
5
5
|
import consola from 'consola';
|
|
6
6
|
import inquirer from 'inquirer';
|
|
7
|
-
import { i18n } from './
|
|
7
|
+
import { i18n } from './index3.mjs';
|
|
8
8
|
import { a as analyzeProject, g as getTemplatesClient } from '../shared/ccjk.CcFAyU1D.mjs';
|
|
9
9
|
import { g as getSkillParser } from '../shared/ccjk.Bdhyg3X-.mjs';
|
|
10
10
|
import 'node:process';
|
|
@@ -344,7 +344,7 @@ async function selectSkills(recommendations, options) {
|
|
|
344
344
|
}
|
|
345
345
|
async function installSkills(skills, options) {
|
|
346
346
|
const results = [];
|
|
347
|
-
const skillsDir = join(process.env.HOME || homedir(), ".
|
|
347
|
+
const skillsDir = join(process.env.HOME || homedir(), ".claude", "skills");
|
|
348
348
|
const parser = getSkillParser();
|
|
349
349
|
if (!await fileExists(skillsDir)) {
|
|
350
350
|
await promises.mkdir(skillsDir, { recursive: true });
|
package/dist/chunks/ccr.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as displayBannerWithInfo } from '../shared/ccjk.
|
|
2
|
-
import {
|
|
1
|
+
import { d as displayBannerWithInfo } from '../shared/ccjk.DKL7Ki99.mjs';
|
|
2
|
+
import { a as handleExitPromptError, h as handleGeneralError } from '../shared/ccjk.CiPa6kZ5.mjs';
|
|
3
3
|
import { s as showCcrMenu } from './tools.mjs';
|
|
4
4
|
import { showMainMenu } from './menu.mjs';
|
|
5
5
|
import 'ansis';
|
|
6
6
|
import './package.mjs';
|
|
7
|
-
import './
|
|
7
|
+
import './index3.mjs';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:process';
|
|
10
10
|
import 'node:url';
|
|
@@ -18,7 +18,7 @@ import '../shared/ccjk.DHbrGcgg.mjs';
|
|
|
18
18
|
import 'inquirer-toggle';
|
|
19
19
|
import 'node:child_process';
|
|
20
20
|
import 'node:util';
|
|
21
|
-
import '../shared/ccjk.
|
|
21
|
+
import '../shared/ccjk.DnFuTYdi.mjs';
|
|
22
22
|
import './auto-updater.mjs';
|
|
23
23
|
import 'ora';
|
|
24
24
|
import './platform.mjs';
|
|
@@ -33,15 +33,15 @@ import 'node:fs/promises';
|
|
|
33
33
|
import './json-config.mjs';
|
|
34
34
|
import 'dayjs';
|
|
35
35
|
import '../shared/ccjk.BFQ7yr5S.mjs';
|
|
36
|
-
import './
|
|
37
|
-
import './
|
|
36
|
+
import './commands.mjs';
|
|
37
|
+
import './config2.mjs';
|
|
38
38
|
import './claude-config.mjs';
|
|
39
39
|
import './config.mjs';
|
|
40
40
|
import './ccjk-config.mjs';
|
|
41
41
|
import 'smol-toml';
|
|
42
|
-
import '../shared/ccjk.
|
|
42
|
+
import '../shared/ccjk.D1zFzlNS.mjs';
|
|
43
43
|
import './features.mjs';
|
|
44
|
-
import '../shared/ccjk.
|
|
44
|
+
import '../shared/ccjk.BgRf-biH.mjs';
|
|
45
45
|
import './claude-code-config-manager.mjs';
|
|
46
46
|
import './config-switch.mjs';
|
|
47
47
|
import './codex.mjs';
|
|
@@ -55,7 +55,7 @@ import 'path';
|
|
|
55
55
|
import 'url';
|
|
56
56
|
import 'module';
|
|
57
57
|
import 'ofetch';
|
|
58
|
-
import '../shared/ccjk.
|
|
58
|
+
import '../shared/ccjk.C4nuYSEu.mjs';
|
|
59
59
|
import '../shared/ccjk.AqnXPAzw.mjs';
|
|
60
60
|
import './ccjk-mcp.mjs';
|
|
61
61
|
import './ccjk-skills.mjs';
|
|
@@ -66,10 +66,10 @@ import './api-providers.mjs';
|
|
|
66
66
|
import '../shared/ccjk.pi0nsyn3.mjs';
|
|
67
67
|
import '../shared/ccjk.J8YiPsOw.mjs';
|
|
68
68
|
import './init.mjs';
|
|
69
|
-
import './
|
|
70
|
-
import '../shared/ccjk.
|
|
71
|
-
import './
|
|
72
|
-
import '../shared/ccjk.
|
|
69
|
+
import './workflows.mjs';
|
|
70
|
+
import '../shared/ccjk.B45Qw6ip.mjs';
|
|
71
|
+
import './installer.mjs';
|
|
72
|
+
import '../shared/ccjk.CrB6OYHv.mjs';
|
|
73
73
|
import './uninstall.mjs';
|
|
74
74
|
import '../shared/ccjk.DGjQxTq_.mjs';
|
|
75
75
|
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 './index3.mjs';
|
|
4
|
+
import { r as resolveCodeType } from '../shared/ccjk.D1zFzlNS.mjs';
|
|
5
5
|
import { checkAndUpdateTools } from './auto-updater.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { e as runCodexUpdate } from './codex.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:url';
|
|
9
9
|
import 'i18next';
|
|
@@ -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 { c 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 './index3.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('./index3.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.h; });
|
|
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('./config2.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('./commands.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('./config2.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 './index3.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.BgRf-biH.mjs';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:process';
|
|
10
10
|
import 'node:url';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { join } from 'pathe';
|
|
2
2
|
import { CLAUDE_VSC_CONFIG_FILE, CLAUDE_DIR, ClAUDE_CONFIG_FILE } from './constants.mjs';
|
|
3
|
-
import { ensureI18nInitialized, i18n } from './
|
|
3
|
+
import { ensureI18nInitialized, i18n } from './index3.mjs';
|
|
4
4
|
import { readJsonConfig, writeJsonConfig, backupJsonConfig } from './json-config.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { a as isWindows, l as getMcpCommand } from './platform.mjs';
|
|
6
6
|
|
|
7
7
|
function mergeArraysUnique(arr1, arr2) {
|
|
8
8
|
const combined = [...arr1 || [], ...arr2 || []];
|
|
@@ -206,4 +206,4 @@ const claudeConfig = {
|
|
|
206
206
|
writeMcpConfig: writeMcpConfig
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
-
export {
|
|
209
|
+
export { addCompletedOnboarding as a, backupMcpConfig as b, buildMcpServerConfig as c, deepMerge as d, claudeConfig as e, fixWindowsMcpConfig as f, mergeMcpServers as m, readMcpConfig as r, setPrimaryApiKey as s, writeMcpConfig as w };
|
|
@@ -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 './index3.mjs';
|
|
4
|
+
import { k as findRealCommandPath } from './platform.mjs';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'i18next';
|