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.
Files changed (103) hide show
  1. package/dist/chunks/agent.mjs +1 -1
  2. package/dist/chunks/api-providers.mjs +1 -1
  3. package/dist/chunks/api.mjs +3 -3
  4. package/dist/chunks/auto-bootstrap.mjs +1 -1
  5. package/dist/chunks/auto-updater.mjs +1 -1
  6. package/dist/chunks/boost.mjs +160 -0
  7. package/dist/chunks/ccjk-agents.mjs +1 -1
  8. package/dist/chunks/ccjk-all.mjs +1 -1
  9. package/dist/chunks/ccjk-config.mjs +1 -1
  10. package/dist/chunks/ccjk-hooks.mjs +1 -1
  11. package/dist/chunks/ccjk-mcp.mjs +2 -2
  12. package/dist/chunks/ccjk-setup.mjs +1 -1
  13. package/dist/chunks/ccjk-skills.mjs +1 -1
  14. package/dist/chunks/ccr.mjs +25 -30
  15. package/dist/chunks/ccu.mjs +1 -1
  16. package/dist/chunks/check-updates.mjs +3 -4
  17. package/dist/chunks/claude-code-config-manager.mjs +7 -7
  18. package/dist/chunks/claude-code-incremental-manager.mjs +2 -2
  19. package/dist/chunks/claude-config.mjs +4 -4
  20. package/dist/chunks/claude-wrapper.mjs +2 -2
  21. package/dist/chunks/codex-config-switch.mjs +4 -5
  22. package/dist/chunks/codex-provider-manager.mjs +2 -3
  23. package/dist/chunks/codex-uninstaller.mjs +2 -2
  24. package/dist/chunks/codex.mjs +207 -6
  25. package/dist/chunks/commands.mjs +391 -88
  26. package/dist/chunks/commands2.mjs +88 -391
  27. package/dist/chunks/completion.mjs +1 -1
  28. package/dist/chunks/config-consolidator.mjs +2 -2
  29. package/dist/chunks/config-switch.mjs +3 -4
  30. package/dist/chunks/config.mjs +78 -7
  31. package/dist/chunks/config2.mjs +400 -410
  32. package/dist/chunks/config3.mjs +410 -400
  33. package/dist/chunks/constants.mjs +1 -1
  34. package/dist/chunks/doctor.mjs +4 -4
  35. package/dist/chunks/features.mjs +24 -17
  36. package/dist/chunks/index.mjs +178 -7
  37. package/dist/chunks/index2.mjs +1162 -169
  38. package/dist/chunks/index3.mjs +910 -1076
  39. package/dist/chunks/index4.mjs +137 -947
  40. package/dist/chunks/index5.mjs +635 -167
  41. package/dist/chunks/init.mjs +141 -99
  42. package/dist/chunks/installer.mjs +147 -649
  43. package/dist/chunks/installer2.mjs +649 -147
  44. package/dist/chunks/interview.mjs +2 -2
  45. package/dist/chunks/marketplace.mjs +1 -1
  46. package/dist/chunks/mcp.mjs +1058 -17
  47. package/dist/chunks/menu.mjs +147 -56
  48. package/dist/chunks/monitor.mjs +2 -2
  49. package/dist/chunks/notification.mjs +1 -1
  50. package/dist/chunks/onboarding.mjs +2 -2
  51. package/dist/chunks/package.mjs +2 -210
  52. package/dist/chunks/permission-manager.mjs +2 -2
  53. package/dist/chunks/permissions.mjs +1 -1
  54. package/dist/chunks/platform.mjs +1 -1
  55. package/dist/chunks/plugin.mjs +1 -1
  56. package/dist/chunks/prompts.mjs +1 -1
  57. package/dist/chunks/providers.mjs +1 -1
  58. package/dist/chunks/quick-setup.mjs +16 -20
  59. package/dist/chunks/silent-updater.mjs +1 -1
  60. package/dist/chunks/simple-config.mjs +2 -2
  61. package/dist/chunks/skill.mjs +1 -1
  62. package/dist/chunks/skills-sync.mjs +1 -1
  63. package/dist/chunks/skills.mjs +1 -1
  64. package/dist/chunks/startup.mjs +1 -1
  65. package/dist/chunks/stats.mjs +1 -1
  66. package/dist/chunks/status.mjs +159 -0
  67. package/dist/chunks/team.mjs +1 -1
  68. package/dist/chunks/thinking.mjs +2 -2
  69. package/dist/chunks/uninstall.mjs +6 -6
  70. package/dist/chunks/update.mjs +6 -9
  71. package/dist/chunks/upgrade-manager.mjs +2 -2
  72. package/dist/chunks/version-checker.mjs +3 -3
  73. package/dist/chunks/vim.mjs +1 -1
  74. package/dist/chunks/workflows.mjs +616 -215
  75. package/dist/cli.mjs +70 -121
  76. package/dist/index.d.mts +17 -1482
  77. package/dist/index.d.ts +17 -1482
  78. package/dist/index.mjs +950 -4740
  79. package/dist/shared/{ccjk.zCqdxT2Y.mjs → ccjk.Br91zBIG.mjs} +2 -2
  80. package/dist/shared/ccjk.CSkyCZIM.mjs +638 -0
  81. package/dist/shared/{ccjk.BKoi8-Hy.mjs → ccjk.DE91nClQ.mjs} +1 -1
  82. package/dist/shared/{ccjk.f40us0yY.mjs → ccjk.DvIrK0wz.mjs} +2 -2
  83. package/dist/shared/ccjk.LsPZ2PYo.mjs +1048 -0
  84. package/dist/shared/{ccjk.DRweXU5F.mjs → ccjk.q1koQxEE.mjs} +2 -2
  85. package/package.json +1 -1
  86. package/templates/claude-code/common/settings.json +15 -111
  87. package/dist/chunks/api-adapter.mjs +0 -180
  88. package/dist/chunks/cli.mjs +0 -2227
  89. package/dist/chunks/context-menu.mjs +0 -913
  90. package/dist/chunks/hooks-sync.mjs +0 -1627
  91. package/dist/chunks/index6.mjs +0 -663
  92. package/dist/chunks/mcp-market.mjs +0 -1077
  93. package/dist/chunks/mcp-server.mjs +0 -776
  94. package/dist/chunks/project-detector.mjs +0 -131
  95. package/dist/chunks/provider-registry.mjs +0 -92
  96. package/dist/chunks/setup-wizard.mjs +0 -362
  97. package/dist/chunks/tools.mjs +0 -143
  98. package/dist/chunks/workflows2.mjs +0 -633
  99. package/dist/shared/ccjk.BM_HZogn.mjs +0 -347
  100. package/dist/shared/ccjk.BaEp4UHQ.mjs +0 -75
  101. package/dist/shared/ccjk.CS0ybJCf.mjs +0 -490
  102. package/dist/shared/ccjk.CZgIwikC.mjs +0 -209
  103. package/dist/shared/ccjk.tO8zeFh1.mjs +0 -397
@@ -1,6 +1,6 @@
1
1
  import { homedir } from 'node:os';
2
2
  import { join } from 'pathe';
3
- import { i18n } from './index2.mjs';
3
+ import { i18n } from './index.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:process';
6
6
  import 'node:url';
@@ -5,14 +5,14 @@ import inquirer from 'inquirer';
5
5
  import { resolve, join, dirname } from 'pathe';
6
6
  import { getApiProviderPresets } from './api-providers.mjs';
7
7
  import { SETTINGS_FILE, CLAUDE_DIR } from './constants.mjs';
8
- import { i18n } from './index2.mjs';
8
+ import { i18n } from './index.mjs';
9
9
  import { g as getPermissionManager } from '../shared/ccjk.h7_W-wTs.mjs';
10
- import { e as commandExists } from './platform.mjs';
10
+ import { c as commandExists } from './platform.mjs';
11
11
  import { P as ProviderHealthMonitor } from '../shared/ccjk.J8YiPsOw.mjs';
12
12
  import { platform, userInfo, homedir } from 'node:os';
13
13
  import ora from 'ora';
14
14
  import { exec } from 'tinyexec';
15
- import { S as STATUS } from '../shared/ccjk.zCqdxT2Y.mjs';
15
+ import { S as STATUS } from '../shared/ccjk.Br91zBIG.mjs';
16
16
  import { writeFileAtomic } from './fs-operations.mjs';
17
17
  import 'node:url';
18
18
  import 'i18next';
@@ -799,7 +799,7 @@ async function checkPermissionRules() {
799
799
  }
800
800
  async function fixSettingsFile() {
801
801
  const isZh = i18n.language === "zh-CN";
802
- const { copyConfigFiles } = await import('./config.mjs').then(function (n) { return n.j; });
802
+ const { copyConfigFiles } = await import('./config.mjs').then(function (n) { return n.c; });
803
803
  console.log("");
804
804
  console.log(ansis.bold.cyan("\u{1F527} Fixing settings.json"));
805
805
  console.log(ansis.dim("\u2500".repeat(50)));
@@ -1,39 +1,46 @@
1
1
  import ansis from 'ansis';
2
2
  import inquirer from 'inquirer';
3
- import { s as selectMcpServices, g as getMcpServices } from '../shared/ccjk.CZgIwikC.mjs';
3
+ import { s as selectMcpServices, c as getMcpServices } from './codex.mjs';
4
4
  import { SUPPORTED_LANGS, LANG_LABELS } from './constants.mjs';
5
- import { ensureI18nInitialized, i18n, changeLanguage } from './index2.mjs';
5
+ import { ensureI18nInitialized, i18n, changeLanguage } from './index.mjs';
6
6
  import { updateZcfConfig, readZcfConfig } from './ccjk-config.mjs';
7
- import { setupCcrConfiguration } from './config2.mjs';
8
- import { i as isCcrInstalled, a as installCcr } from '../shared/ccjk.BaEp4UHQ.mjs';
7
+ import { setupCcrConfiguration } from './config3.mjs';
8
+ import { a as isCcrInstalled, b as installCcr } from './init.mjs';
9
9
  import { r as readMcpConfig, f as fixWindowsMcpConfig, w as writeMcpConfig, b as backupMcpConfig, a as buildMcpServerConfig, m as mergeMcpServers } from './claude-config.mjs';
10
- import { a as applyAiLanguageDirective, g as getExistingModelConfig, u as updateCustomModel, d as updateDefaultModel, e as getExistingApiConfig, p as promptApiConfigurationAction, f as configureApi, s as switchToOfficialLogin } from './config.mjs';
11
- import { c as configureOutputStyle, m as modifyApiConfigPartially, v as validateApiKey, f as formatApiKeyDisplay } from '../shared/ccjk.CS0ybJCf.mjs';
12
- import { j as isWindows } from './platform.mjs';
10
+ import { d as applyAiLanguageDirective, h as getExistingModelConfig, u as updateCustomModel, i as updateDefaultModel, g as getExistingApiConfig, p as promptApiConfigurationAction, f as configureApi, s as switchToOfficialLogin } from './config.mjs';
11
+ import { b as configureOutputStyle, m as modifyApiConfigPartially, v as validateApiKey, f as formatApiKeyDisplay } from '../shared/ccjk.LsPZ2PYo.mjs';
12
+ import { i as isWindows } from './platform.mjs';
13
13
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
14
14
  import { openSettingsJson, importRecommendedPermissions, importRecommendedEnv } from './simple-config.mjs';
15
15
  import { p as promptBoolean } from '../shared/ccjk.DHbrGcgg.mjs';
16
- import 'node:child_process';
17
- import 'node:os';
18
16
  import 'node:process';
19
- import 'pathe';
20
- import 'node:fs';
21
17
  import 'node:url';
22
- import 'i18next';
23
- import 'i18next-fs-backend';
18
+ import 'dayjs';
19
+ import 'ora';
20
+ import 'pathe';
21
+ import 'semver';
24
22
  import 'smol-toml';
23
+ import 'tinyexec';
25
24
  import './fs-operations.mjs';
26
25
  import 'node:crypto';
26
+ import 'node:fs';
27
27
  import 'node:fs/promises';
28
28
  import './json-config.mjs';
29
- import 'dayjs';
29
+ import './prompts.mjs';
30
+ import './package.mjs';
31
+ import 'node:child_process';
32
+ import 'node:os';
33
+ import 'i18next';
34
+ import 'i18next-fs-backend';
30
35
  import 'node:util';
36
+ import '../shared/ccjk.Br91zBIG.mjs';
31
37
  import './auto-updater.mjs';
32
- import 'ora';
33
- import 'tinyexec';
34
38
  import './version-checker.mjs';
35
39
  import 'node:path';
36
- import 'semver';
40
+ import '../shared/ccjk.q1koQxEE.mjs';
41
+ import '../shared/ccjk.DvIrK0wz.mjs';
42
+ import './installer2.mjs';
43
+ import '../shared/ccjk.DE91nClQ.mjs';
37
44
  import 'inquirer-toggle';
38
45
 
39
46
  async function handleCancellation() {
@@ -1,7 +1,178 @@
1
- export { b as generateCompactWelcome, c as generateRecommendations, d as generateWelcome, g as getCapabilitiesByType, a as getCapability, s as scanCapabilities } from '../shared/ccjk.tO8zeFh1.mjs';
2
- import 'node:child_process';
3
- import 'node:fs';
4
- import 'node:os';
5
- import 'pathe';
6
- import 'ansis';
7
- import './package.mjs';
1
+ import { existsSync } from 'node:fs';
2
+ import process__default from 'node:process';
3
+ import { fileURLToPath } from 'node:url';
4
+ import i18next from 'i18next';
5
+ import Backend from 'i18next-fs-backend';
6
+ import { dirname, join } from 'pathe';
7
+
8
+ const i18n = i18next.createInstance();
9
+ const NAMESPACES = [
10
+ "agentBrowser",
11
+ // Agent Browser - AI browser automation
12
+ "common",
13
+ "api",
14
+ "ccr",
15
+ "ccjk",
16
+ // CCJK-specific translations
17
+ "ccjk-skills",
18
+ // CCJK Skills installation command
19
+ "ccjk-agents",
20
+ // CCJK Agents management command
21
+ "ccjk-all",
22
+ // CCJK All-in-one setup command
23
+ "cli",
24
+ "cloud-setup",
25
+ // Cloud-based setup wizard
26
+ "cloudPlugins",
27
+ // Cloud-based plugin system
28
+ "cometix",
29
+ "codex",
30
+ "configuration",
31
+ "context",
32
+ // Context compression system
33
+ "errors",
34
+ "hooks",
35
+ // Git hooks management
36
+ "hooksSync",
37
+ // Hooks cloud synchronization
38
+ "installation",
39
+ "interview",
40
+ // Interview-Driven Development
41
+ "language",
42
+ "lsp",
43
+ // Language Server Protocol (v3.8+)
44
+ "marketplace",
45
+ // Marketplace system for plugins, skills, and workflows
46
+ "mcp",
47
+ "menu",
48
+ "multi-config",
49
+ "notification",
50
+ // Task completion notifications
51
+ "permissions",
52
+ // Permission system for API providers, models, and tools
53
+ "plugins",
54
+ // Cloud plugins management
55
+ "registry",
56
+ // Version checking, China detection, and multiple installations
57
+ "sandbox",
58
+ // Sandbox mode for secure request/response handling
59
+ "setup",
60
+ // Setup wizard
61
+ "shencha",
62
+ "skills",
63
+ // Skills management system
64
+ "skillsSync",
65
+ // Skills cloud synchronization
66
+ "smartGuide",
67
+ // Smart Guide for quick actions
68
+ "stats",
69
+ // Usage statistics
70
+ "superpowers",
71
+ // Superpowers plugin integration
72
+ "team",
73
+ "thinking",
74
+ // Thinking mode for Claude Code CLI 2.0.67+
75
+ "tools",
76
+ "uninstall",
77
+ "updater",
78
+ "vim",
79
+ // Vim mode enhancement for Claude Code CLI 2.1.0+
80
+ "workflow",
81
+ "cloud-sync",
82
+ "workspace"
83
+ // Workspace diagnostics and guide
84
+ ];
85
+ function ensureI18nInitialized() {
86
+ if (!i18n.isInitialized) {
87
+ throw new Error(
88
+ "i18n is not initialized. Please call initI18n() in CLI command before using utility functions."
89
+ );
90
+ }
91
+ }
92
+ async function initI18n(language = "zh-CN") {
93
+ if (i18n.isInitialized) {
94
+ if (i18n.language !== language) {
95
+ await i18n.changeLanguage(language);
96
+ }
97
+ return;
98
+ }
99
+ await i18n.use(Backend).init({
100
+ lng: language,
101
+ fallbackLng: "en",
102
+ // Load all translations as a single flat structure
103
+ ns: NAMESPACES,
104
+ defaultNS: "common",
105
+ preload: [language],
106
+ // Preload the selected language
107
+ // Backend configuration for loading JSON files
108
+ backend: {
109
+ loadPath: (() => {
110
+ const currentDir = dirname(fileURLToPath(import.meta.url));
111
+ const packageRoot = (() => {
112
+ let dir = currentDir;
113
+ while (dir !== dirname(dir)) {
114
+ if (existsSync(join(dir, "package.json"))) {
115
+ return dir;
116
+ }
117
+ dir = dirname(dir);
118
+ }
119
+ return currentDir;
120
+ })();
121
+ const possibleBasePaths = [
122
+ join(currentDir, "locales"),
123
+ // Development: src/i18n/locales
124
+ join(packageRoot, "dist/i18n/locales"),
125
+ // NPM package: /node_modules/ccjk/dist/i18n/locales
126
+ join(process__default.cwd(), "dist/i18n/locales"),
127
+ // Production build: ./dist/i18n/locales
128
+ join(currentDir, "../../../dist/i18n/locales"),
129
+ // Fallback for deep chunk paths
130
+ join(currentDir, "../../i18n/locales")
131
+ // Alternative chunk structure
132
+ ];
133
+ for (const basePath of possibleBasePaths) {
134
+ const testFile = join(basePath, "zh-CN/common.json");
135
+ if (existsSync(testFile)) {
136
+ return join(basePath, "{{lng}}/{{ns}}.json");
137
+ }
138
+ }
139
+ return join(process__default.cwd(), "dist/i18n/locales/{{lng}}/{{ns}}.json");
140
+ })()
141
+ },
142
+ // Interpolation settings
143
+ interpolation: {
144
+ escapeValue: false
145
+ // Not needed for server-side usage
146
+ },
147
+ // Enable key separator for nested keys, enable namespace separator
148
+ keySeparator: ".",
149
+ nsSeparator: ":",
150
+ // Debugging (disable for clean output)
151
+ debug: false
152
+ });
153
+ for (const ns of NAMESPACES) {
154
+ if (ns !== "common") {
155
+ await i18n.loadNamespaces(ns);
156
+ }
157
+ }
158
+ }
159
+ function format(template, values) {
160
+ if (!values)
161
+ return template;
162
+ return Object.keys(values).reduce((result, key) => {
163
+ return result.replace(new RegExp(`{${key}}`, "g"), values[key]);
164
+ }, template);
165
+ }
166
+ async function changeLanguage(lng) {
167
+ await i18n.changeLanguage(lng);
168
+ }
169
+ function getTranslation(_lang) {
170
+ return (key, options) => {
171
+ if (key.includes(":")) {
172
+ return i18n.t(key, options);
173
+ }
174
+ return i18n.t(`common:${key}`, options);
175
+ };
176
+ }
177
+
178
+ export { changeLanguage, ensureI18nInitialized, format, getTranslation, i18n, initI18n };