ccjk 9.6.1 → 9.8.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.
Files changed (56) hide show
  1. package/dist/chunks/boost.mjs +246 -7
  2. package/dist/chunks/ccjk-mcp.mjs +1 -1
  3. package/dist/chunks/ccr.mjs +25 -28
  4. package/dist/chunks/check-updates.mjs +4 -3
  5. package/dist/chunks/claude-code-config-manager.mjs +1 -1
  6. package/dist/chunks/claude-code-incremental-manager.mjs +1 -1
  7. package/dist/chunks/claude-config.mjs +1 -1
  8. package/dist/chunks/codex-config-switch.mjs +3 -4
  9. package/dist/chunks/codex-provider-manager.mjs +1 -2
  10. package/dist/chunks/codex.mjs +204 -3
  11. package/dist/chunks/config-switch.mjs +2 -3
  12. package/dist/chunks/config.mjs +1 -1
  13. package/dist/chunks/doctor.mjs +1 -1
  14. package/dist/chunks/features.mjs +24 -15
  15. package/dist/chunks/hook-installer.mjs +44 -0
  16. package/dist/chunks/index3.mjs +32 -32
  17. package/dist/chunks/init.mjs +129 -87
  18. package/dist/chunks/installer2.mjs +1 -1
  19. package/dist/chunks/interview.mjs +1 -1
  20. package/dist/chunks/mcp.mjs +1058 -17
  21. package/dist/chunks/menu.mjs +140 -56
  22. package/dist/chunks/package.mjs +2 -210
  23. package/dist/chunks/platform.mjs +1 -1
  24. package/dist/chunks/quick-setup.mjs +35 -18
  25. package/dist/chunks/simple-config.mjs +1 -1
  26. package/dist/{shared/ccjk.q1koQxEE.mjs → chunks/smart-defaults.mjs} +77 -79
  27. package/dist/chunks/status.mjs +208 -101
  28. package/dist/chunks/thinking.mjs +1 -1
  29. package/dist/chunks/uninstall.mjs +6 -4
  30. package/dist/chunks/update.mjs +4 -7
  31. package/dist/chunks/version-checker.mjs +1 -1
  32. package/dist/cli.mjs +4 -80
  33. package/dist/index.d.mts +17 -1482
  34. package/dist/index.d.ts +17 -1482
  35. package/dist/index.mjs +12 -4191
  36. package/dist/shared/{ccjk.CSkyCZIM.mjs → ccjk.Bndhan7G.mjs} +4 -242
  37. package/dist/shared/ccjk.CeE8RLG2.mjs +62 -0
  38. package/dist/shared/ccjk.DKojSRzw.mjs +266 -0
  39. package/dist/shared/{ccjk.CItD1fpl.mjs → ccjk.DvIrK0wz.mjs} +1 -1
  40. package/dist/shared/ccjk.LsPZ2PYo.mjs +1048 -0
  41. package/package.json +1 -1
  42. package/dist/chunks/api-adapter.mjs +0 -180
  43. package/dist/chunks/cli.mjs +0 -2227
  44. package/dist/chunks/context-menu.mjs +0 -913
  45. package/dist/chunks/hooks-sync.mjs +0 -1627
  46. package/dist/chunks/mcp-market.mjs +0 -1077
  47. package/dist/chunks/mcp-server.mjs +0 -776
  48. package/dist/chunks/project-detector.mjs +0 -131
  49. package/dist/chunks/provider-registry.mjs +0 -92
  50. package/dist/chunks/setup-wizard.mjs +0 -362
  51. package/dist/chunks/tools.mjs +0 -143
  52. package/dist/chunks/workflows2.mjs +0 -232
  53. package/dist/shared/ccjk.C0pb50xH.mjs +0 -347
  54. package/dist/shared/ccjk.ChMkBmdL.mjs +0 -490
  55. package/dist/shared/ccjk.CtSfXUSh.mjs +0 -209
  56. package/dist/shared/ccjk.xfAjmbJp.mjs +0 -75
@@ -1,15 +1,253 @@
1
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';
2
+ import { existsSync, readFileSync } from 'node:fs';
3
+ import process__default from 'node:process';
4
+ import { join } from 'pathe';
5
+ import { SETTINGS_FILE } from './constants.mjs';
6
+ import { r as runHealthCheck } from '../shared/ccjk.Bndhan7G.mjs';
7
7
  import 'node:os';
8
8
  import './index.mjs';
9
9
  import 'node:url';
10
10
  import 'i18next';
11
11
  import 'i18next-fs-backend';
12
12
 
13
+ function analyzeProject(root) {
14
+ const cwd = process__default.cwd();
15
+ const profile = {
16
+ language: "unknown",
17
+ frameworks: [],
18
+ packageManager: "unknown",
19
+ hasCI: false,
20
+ hasDocker: false,
21
+ hasMCP: false,
22
+ hasClaudeMd: false,
23
+ isMonorepo: false,
24
+ tags: []
25
+ };
26
+ const pkgPath = join(cwd, "package.json");
27
+ let pkg = null;
28
+ if (existsSync(pkgPath)) {
29
+ try {
30
+ pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
31
+ profile.projectName = pkg?.name;
32
+ } catch {
33
+ }
34
+ }
35
+ profile.language = detectLanguage(cwd, pkg);
36
+ profile.packageManager = detectPackageManager(cwd);
37
+ profile.frameworks = detectFrameworks(cwd, pkg);
38
+ profile.testFramework = detectTestFramework(cwd, pkg);
39
+ profile.buildTool = detectBuildTool(cwd, pkg);
40
+ profile.hasCI = existsSync(join(cwd, ".github/workflows")) || existsSync(join(cwd, ".gitlab-ci.yml")) || existsSync(join(cwd, ".circleci")) || existsSync(join(cwd, "Jenkinsfile"));
41
+ profile.hasDocker = existsSync(join(cwd, "Dockerfile")) || existsSync(join(cwd, "docker-compose.yml")) || existsSync(join(cwd, "docker-compose.yaml"));
42
+ profile.hasMCP = checkMcpConfigured();
43
+ profile.hasClaudeMd = existsSync(join(cwd, "CLAUDE.md"));
44
+ profile.isMonorepo = existsSync(join(cwd, "pnpm-workspace.yaml")) || existsSync(join(cwd, "lerna.json")) || pkg?.workspaces != null;
45
+ profile.tags = generateTags(profile);
46
+ return profile;
47
+ }
48
+ function detectLanguage(cwd, pkg) {
49
+ if (existsSync(join(cwd, "tsconfig.json")) || pkg?.devDependencies?.typescript) return "typescript";
50
+ if (existsSync(join(cwd, "pyproject.toml")) || existsSync(join(cwd, "setup.py"))) return "python";
51
+ if (existsSync(join(cwd, "go.mod"))) return "go";
52
+ if (existsSync(join(cwd, "Cargo.toml"))) return "rust";
53
+ if (existsSync(join(cwd, "Gemfile"))) return "ruby";
54
+ if (existsSync(join(cwd, "pom.xml")) || existsSync(join(cwd, "build.gradle"))) return "java";
55
+ if (existsSync(join(cwd, "Package.swift"))) return "swift";
56
+ if (pkg) return "javascript";
57
+ return "unknown";
58
+ }
59
+ function detectPackageManager(cwd) {
60
+ if (existsSync(join(cwd, "pnpm-lock.yaml")) || existsSync(join(cwd, "pnpm-workspace.yaml"))) return "pnpm";
61
+ if (existsSync(join(cwd, "yarn.lock"))) return "yarn";
62
+ if (existsSync(join(cwd, "bun.lockb")) || existsSync(join(cwd, "bun.lock"))) return "bun";
63
+ if (existsSync(join(cwd, "package-lock.json"))) return "npm";
64
+ return "unknown";
65
+ }
66
+ function detectFrameworks(_cwd, pkg) {
67
+ const frameworks = [];
68
+ const allDeps = { ...pkg?.dependencies, ...pkg?.devDependencies };
69
+ if (allDeps?.react || allDeps?.["react-dom"]) frameworks.push("react");
70
+ if (allDeps?.vue) frameworks.push("vue");
71
+ if (allDeps?.svelte) frameworks.push("svelte");
72
+ if (allDeps?.angular || allDeps?.["@angular/core"]) frameworks.push("angular");
73
+ if (allDeps?.next) frameworks.push("nextjs");
74
+ if (allDeps?.nuxt) frameworks.push("nuxt");
75
+ if (allDeps?.astro) frameworks.push("astro");
76
+ if (allDeps?.express) frameworks.push("express");
77
+ if (allDeps?.fastify) frameworks.push("fastify");
78
+ if (allDeps?.koa) frameworks.push("koa");
79
+ if (allDeps?.hono) frameworks.push("hono");
80
+ if (allDeps?.["@nestjs/core"]) frameworks.push("nestjs");
81
+ if (allDeps?.electron) frameworks.push("electron");
82
+ if (allDeps?.["@tauri-apps/api"]) frameworks.push("tauri");
83
+ if (allDeps?.["react-native"]) frameworks.push("react-native");
84
+ if (allDeps?.cac || allDeps?.commander || allDeps?.yargs) frameworks.push("cli");
85
+ return frameworks;
86
+ }
87
+ function detectTestFramework(cwd, pkg) {
88
+ const allDeps = { ...pkg?.dependencies, ...pkg?.devDependencies };
89
+ if (allDeps?.vitest || existsSync(join(cwd, "vitest.config.ts"))) return "vitest";
90
+ if (allDeps?.jest || existsSync(join(cwd, "jest.config.js"))) return "jest";
91
+ if (allDeps?.mocha) return "mocha";
92
+ if (allDeps?.playwright || allDeps?.["@playwright/test"]) return "playwright";
93
+ if (allDeps?.cypress) return "cypress";
94
+ if (existsSync(join(cwd, "pytest.ini")) || existsSync(join(cwd, "conftest.py"))) return "pytest";
95
+ return void 0;
96
+ }
97
+ function detectBuildTool(cwd, pkg) {
98
+ const allDeps = { ...pkg?.dependencies, ...pkg?.devDependencies };
99
+ if (allDeps?.vite || existsSync(join(cwd, "vite.config.ts"))) return "vite";
100
+ if (allDeps?.webpack) return "webpack";
101
+ if (allDeps?.esbuild) return "esbuild";
102
+ if (allDeps?.unbuild) return "unbuild";
103
+ if (allDeps?.rollup) return "rollup";
104
+ if (allDeps?.turbo || existsSync(join(cwd, "turbo.json"))) return "turbo";
105
+ return void 0;
106
+ }
107
+ function checkMcpConfigured() {
108
+ try {
109
+ if (!existsSync(SETTINGS_FILE)) return false;
110
+ const settings = JSON.parse(readFileSync(SETTINGS_FILE, "utf-8"));
111
+ return Object.keys(settings.mcpServers || {}).length > 0;
112
+ } catch {
113
+ return false;
114
+ }
115
+ }
116
+ function generateTags(profile) {
117
+ const tags = [];
118
+ tags.push(profile.language);
119
+ tags.push(...profile.frameworks);
120
+ if (profile.testFramework) tags.push(profile.testFramework);
121
+ if (profile.buildTool) tags.push(profile.buildTool);
122
+ if (profile.packageManager !== "unknown") tags.push(profile.packageManager);
123
+ if (profile.hasCI) tags.push("ci");
124
+ if (profile.hasDocker) tags.push("docker");
125
+ if (profile.isMonorepo) tags.push("monorepo");
126
+ if (profile.frameworks.some((f) => ["react", "vue", "svelte", "angular"].includes(f))) tags.push("frontend");
127
+ if (profile.frameworks.some((f) => ["express", "fastify", "koa", "nestjs", "hono"].includes(f))) tags.push("backend");
128
+ if (profile.frameworks.some((f) => ["nextjs", "nuxt", "astro"].includes(f))) tags.push("fullstack");
129
+ if (profile.frameworks.includes("cli")) tags.push("cli-tool");
130
+ return [...new Set(tags)];
131
+ }
132
+
133
+ const SKILL_RULES = [
134
+ {
135
+ tags: ["typescript", "javascript", "python", "go", "rust", "ruby", "java"],
136
+ skill: { id: "git-commit", name: "Smart Git Commit", description: "AI-powered conventional commit messages", reason: "Every project needs good commits", category: "git" }
137
+ },
138
+ {
139
+ tags: ["typescript", "javascript", "python", "go", "rust"],
140
+ skill: { id: "code-review", name: "Code Review", description: "Two-phase deep code review", reason: "Catch bugs before they ship", category: "review" }
141
+ },
142
+ {
143
+ tags: ["react", "vue", "svelte", "angular", "frontend"],
144
+ skill: { id: "component-gen", name: "Component Generator", description: "Generate UI components with tests", reason: "Frontend framework detected", category: "dev" }
145
+ },
146
+ {
147
+ tags: ["express", "fastify", "koa", "nestjs", "hono", "backend"],
148
+ skill: { id: "api-design", name: "API Design", description: "Design RESTful/GraphQL APIs", reason: "Backend framework detected", category: "dev" }
149
+ },
150
+ {
151
+ tags: ["backend", "fullstack"],
152
+ skill: { id: "security-audit", name: "Security Audit", description: "Check for common vulnerabilities", reason: "Server-side code needs security review", category: "review" }
153
+ },
154
+ {
155
+ tags: ["vitest", "jest", "pytest", "mocha"],
156
+ skill: { id: "tdd-workflow", name: "TDD Workflow", description: "Test-driven development cycle", reason: "Test framework detected", category: "testing" }
157
+ },
158
+ {
159
+ tags: ["playwright", "cypress"],
160
+ skill: { id: "e2e-helper", name: "E2E Test Helper", description: "Generate end-to-end tests", reason: "E2E framework detected", category: "testing" }
161
+ },
162
+ {
163
+ tags: ["docker"],
164
+ skill: { id: "docker-optimize", name: "Docker Optimizer", description: "Optimize Dockerfile", reason: "Docker detected", category: "devops" }
165
+ },
166
+ {
167
+ tags: ["ci"],
168
+ skill: { id: "ci-pipeline", name: "CI Pipeline", description: "Optimize CI/CD pipeline", reason: "CI configuration detected", category: "devops" }
169
+ },
170
+ {
171
+ tags: ["cli-tool", "cli"],
172
+ skill: { id: "cli-ux", name: "CLI UX Design", description: "Better CLI interfaces", reason: "CLI tool detected", category: "dev" }
173
+ },
174
+ {
175
+ tags: ["monorepo"],
176
+ skill: { id: "monorepo-manage", name: "Monorepo Manager", description: "Manage packages and releases", reason: "Monorepo detected", category: "dev" }
177
+ },
178
+ {
179
+ tags: ["typescript", "javascript", "python"],
180
+ skill: { id: "doc-gen", name: "Documentation Generator", description: "Generate API docs and README", reason: "Good docs improve maintainability", category: "docs" }
181
+ },
182
+ {
183
+ tags: ["react", "vue", "nextjs", "nuxt", "frontend"],
184
+ skill: { id: "perf-audit", name: "Performance Audit", description: "Bundle size and Core Web Vitals", reason: "Frontend performance matters", category: "review" }
185
+ },
186
+ {
187
+ tags: ["nextjs", "nuxt", "astro", "fullstack"],
188
+ skill: { id: "fullstack-debug", name: "Fullstack Debugger", description: "Debug across client/server boundary", reason: "Fullstack framework detected", category: "debug" }
189
+ }
190
+ ];
191
+ const MCP_RULES = [
192
+ {
193
+ tags: ["typescript", "javascript", "python", "go", "rust", "ruby", "java"],
194
+ mcp: { id: "context7", name: "Context7", description: "Up-to-date library docs", reason: "Essential for accurate API usage" }
195
+ },
196
+ {
197
+ tags: ["playwright", "frontend", "fullstack"],
198
+ mcp: { id: "playwright", name: "Playwright MCP", description: "Browser automation", reason: "Frontend/E2E project detected" }
199
+ },
200
+ {
201
+ tags: ["backend", "fullstack", "express", "fastify", "nestjs"],
202
+ mcp: { id: "sqlite", name: "SQLite MCP", description: "Local database", reason: "Backend project detected" }
203
+ },
204
+ {
205
+ tags: ["typescript", "javascript", "python", "go", "rust"],
206
+ mcp: { id: "mcp-search", name: "Web Search", description: "Search for docs and solutions", reason: "Quick access to online resources" }
207
+ }
208
+ ];
209
+ function matchSkills(profile) {
210
+ const results = [];
211
+ const seen = /* @__PURE__ */ new Set();
212
+ for (const rule of SKILL_RULES) {
213
+ if (seen.has(rule.skill.id)) continue;
214
+ const matchingTags = rule.tags.filter((t) => profile.tags.includes(t));
215
+ if (matchingTags.length === 0) continue;
216
+ const matchScore = Math.min(100, Math.round(matchingTags.length / rule.tags.length * 100) + 20);
217
+ results.push({ ...rule.skill, matchScore });
218
+ seen.add(rule.skill.id);
219
+ }
220
+ results.sort((a, b) => b.matchScore - a.matchScore);
221
+ return results;
222
+ }
223
+ function matchMcpServices(profile) {
224
+ const results = [];
225
+ const seen = /* @__PURE__ */ new Set();
226
+ for (const rule of MCP_RULES) {
227
+ if (seen.has(rule.mcp.id)) continue;
228
+ const matchingTags = rule.tags.filter((t) => profile.tags.includes(t));
229
+ if (matchingTags.length === 0) continue;
230
+ const matchScore = Math.min(100, Math.round(matchingTags.length / rule.tags.length * 100) + 20);
231
+ results.push({ ...rule.mcp, matchScore });
232
+ seen.add(rule.mcp.id);
233
+ }
234
+ results.sort((a, b) => b.matchScore - a.matchScore);
235
+ return results;
236
+ }
237
+ function getRecommendations(profile) {
238
+ const skills = matchSkills(profile);
239
+ const mcpServices = matchMcpServices(profile);
240
+ const parts = [];
241
+ if (profile.language !== "unknown") parts.push(profile.language);
242
+ parts.push(...profile.frameworks.slice(0, 3));
243
+ const stackDesc = parts.join(" + ") || "your project";
244
+ return {
245
+ skills,
246
+ mcpServices,
247
+ summary: `Found ${skills.length} skills and ${mcpServices.length} MCP services for ${stackDesc}`
248
+ };
249
+ }
250
+
13
251
  async function executeRecommendation(rec) {
14
252
  if (!rec.command) {
15
253
  return { success: false, message: "No command available" };
@@ -35,7 +273,7 @@ async function runCcjkCommand(args) {
35
273
  const sub = args[0];
36
274
  try {
37
275
  if (sub === "init") {
38
- const { init } = await import('./init.mjs');
276
+ const { init } = await import('./init.mjs').then(function (n) { return n.c; });
39
277
  await init({ skipBanner: true, skipPrompt: true });
40
278
  return { success: true, message: "Initialization complete" };
41
279
  }
@@ -99,7 +337,8 @@ async function boost(options = {}) {
99
337
  for (const a of actions) {
100
338
  const priority = a.rec.priority === "high" ? ansis.red("[HIGH]") : ansis.yellow("[MED]");
101
339
  console.log(` ${priority} ${a.label}`);
102
- if (a.rec.command) console.log(` ${ansis.gray(a.rec.command)}`);
340
+ if (a.rec.command)
341
+ console.log(` ${ansis.gray(a.rec.command)}`);
103
342
  }
104
343
  if (options.dryRun) {
105
344
  console.log(ansis.gray("\n--dry-run: No changes applied.\n"));
@@ -7,7 +7,7 @@ import { a as analyzeProject, g as getTemplatesClient } from '../shared/ccjk.BNw
7
7
  import { CLAUDE_DIR } from './constants.mjs';
8
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 { k as commandExists } from './platform.mjs';
10
+ import { c as commandExists } from './platform.mjs';
11
11
  import 'node:fs';
12
12
  import 'pathe';
13
13
  import 'tinyglobby';
@@ -1,7 +1,6 @@
1
1
  import { d as displayBannerWithInfo } from '../shared/ccjk.Br91zBIG.mjs';
2
- import { a as handleExitPromptError, h as handleGeneralError } from '../shared/ccjk.CItD1fpl.mjs';
3
- import { s as showCcrMenu } from './tools.mjs';
4
- import { showMainMenu } from './menu.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
6
  import './index.mjs';
@@ -12,37 +11,42 @@ import 'i18next';
12
11
  import 'i18next-fs-backend';
13
12
  import 'pathe';
14
13
  import 'inquirer';
15
- import 'node:os';
16
- import './commands2.mjs';
17
- import 'node:child_process';
18
- import 'node:util';
19
- import './config3.mjs';
20
- import 'dayjs';
21
14
  import './constants.mjs';
22
- import './claude-config.mjs';
23
- import './json-config.mjs';
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.CeE8RLG2.mjs';
24
+ import './smart-defaults.mjs';
25
+ import 'node:child_process';
27
26
  import './platform.mjs';
28
27
  import 'tinyexec';
28
+ import '../shared/ccjk.DKojSRzw.mjs';
29
+ import './features.mjs';
30
+ import './codex.mjs';
31
+ import 'ora';
32
+ import 'semver';
29
33
  import './config.mjs';
34
+ import './claude-config.mjs';
35
+ import '../shared/ccjk.BFQ7yr5S.mjs';
36
+ import './prompts.mjs';
30
37
  import '../shared/ccjk.DHbrGcgg.mjs';
31
38
  import 'inquirer-toggle';
32
- import '../shared/ccjk.xfAjmbJp.mjs';
39
+ import './config3.mjs';
40
+ import 'node:util';
41
+ import './init.mjs';
42
+ import '../shared/ccjk.LsPZ2PYo.mjs';
33
43
  import './auto-updater.mjs';
34
- import 'ora';
35
44
  import './version-checker.mjs';
36
45
  import 'node:path';
37
- import 'semver';
38
- import './ccjk-config.mjs';
39
- import 'smol-toml';
40
- import '../shared/ccjk.q1koQxEE.mjs';
41
- import './features.mjs';
42
- import '../shared/ccjk.CtSfXUSh.mjs';
43
- import '../shared/ccjk.ChMkBmdL.mjs';
44
- import '../shared/ccjk.BFQ7yr5S.mjs';
46
+ import './installer2.mjs';
47
+ import '../shared/ccjk.DE91nClQ.mjs';
45
48
  import './simple-config.mjs';
49
+ import './commands2.mjs';
46
50
  import './ccjk-agents.mjs';
47
51
  import 'consola';
48
52
  import '../shared/ccjk.BNwRnWYx.mjs';
@@ -53,17 +57,10 @@ import '../shared/ccjk.AqnXPAzw.mjs';
53
57
  import './ccjk-skills.mjs';
54
58
  import '../shared/ccjk.Bdhyg3X-.mjs';
55
59
  import './check-updates.mjs';
56
- import './codex.mjs';
57
- import './prompts.mjs';
58
60
  import './doctor.mjs';
59
61
  import './api-providers.mjs';
60
62
  import '../shared/ccjk.h7_W-wTs.mjs';
61
63
  import '../shared/ccjk.J8YiPsOw.mjs';
62
- import './init.mjs';
63
- import './workflows2.mjs';
64
- import '../shared/ccjk.C0pb50xH.mjs';
65
- import './installer2.mjs';
66
- import '../shared/ccjk.DE91nClQ.mjs';
67
64
  import './uninstall.mjs';
68
65
  import '../shared/ccjk.DntgA8fQ.mjs';
69
66
  import 'trash';
@@ -1,18 +1,20 @@
1
1
  import process__default from 'node:process';
2
2
  import ansis from 'ansis';
3
3
  import { ensureI18nInitialized, i18n } from './index.mjs';
4
- import { r as resolveCodeType } from '../shared/ccjk.q1koQxEE.mjs';
4
+ import { r as resolveCodeType } from '../shared/ccjk.CeE8RLG2.mjs';
5
5
  import { checkAndUpdateTools } from './auto-updater.mjs';
6
- import { e as runCodexUpdate } from './codex.mjs';
6
+ import { d as runCodexUpdate } from './codex.mjs';
7
7
  import 'node:fs';
8
8
  import 'node:url';
9
9
  import 'i18next';
10
10
  import 'i18next-fs-backend';
11
11
  import 'pathe';
12
+ import './smart-defaults.mjs';
12
13
  import 'node:child_process';
13
14
  import 'node:os';
14
15
  import './platform.mjs';
15
16
  import 'tinyexec';
17
+ import '../shared/ccjk.DKojSRzw.mjs';
16
18
  import './constants.mjs';
17
19
  import './ccjk-config.mjs';
18
20
  import 'smol-toml';
@@ -34,7 +36,6 @@ import './claude-config.mjs';
34
36
  import '../shared/ccjk.BFQ7yr5S.mjs';
35
37
  import './prompts.mjs';
36
38
  import './package.mjs';
37
- import '../shared/ccjk.CtSfXUSh.mjs';
38
39
 
39
40
  class ToolUpdateScheduler {
40
41
  /**
@@ -2,7 +2,7 @@ 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 { a as clearModelEnv } from './config.mjs';
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';
@@ -4,7 +4,7 @@ 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.ChMkBmdL.mjs';
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';
@@ -3,7 +3,7 @@ import { join } from 'pathe';
3
3
  import { CLAUDE_VSC_CONFIG_FILE, CLAUDE_DIR, ClAUDE_CONFIG_FILE } from './constants.mjs';
4
4
  import { ensureI18nInitialized, i18n } from './index.mjs';
5
5
  import { readJsonConfig, writeJsonConfig, backupJsonConfig } from './json-config.mjs';
6
- import { i as isWindows, a as getMcpCommand } from './platform.mjs';
6
+ import { i as isWindows, b as getMcpCommand } from './platform.mjs';
7
7
 
8
8
  function mergeArraysUnique(arr1, arr2) {
9
9
  const combined = [...arr1 || [], ...arr2 || []];
@@ -5,7 +5,7 @@ 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 { f as detectConfigManagementMode } from './codex.mjs';
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.CtSfXUSh.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.i; });
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.i; });
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
1
  import { ensureI18nInitialized, i18n } from './index.mjs';
2
- import { r as readCodexConfig, g as backupCodexComplete, w as writeCodexConfig, h as writeAuthFile } from './codex.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.CtSfXUSh.mjs';
32
31
  import 'node:child_process';
33
32
 
34
33
  async function addProviderToExisting(provider, apiKey, allowOverwrite = false) {