ccjk 12.0.1 → 12.0.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.
Files changed (160) hide show
  1. package/dist/chunks/agent-teams.mjs +17 -18
  2. package/dist/chunks/agent.mjs +105 -102
  3. package/dist/chunks/agents.mjs +87 -77
  4. package/dist/chunks/api-cli.mjs +41 -27
  5. package/dist/chunks/api-providers.mjs +2 -4
  6. package/dist/chunks/api.mjs +22 -11
  7. package/dist/chunks/auto-bootstrap.mjs +3 -5
  8. package/dist/chunks/auto-init.mjs +3 -4
  9. package/dist/chunks/auto-updater.mjs +103 -91
  10. package/dist/chunks/banner.mjs +41 -42
  11. package/dist/chunks/boost.mjs +30 -31
  12. package/dist/chunks/ccjk-agents.mjs +6 -9
  13. package/dist/chunks/ccjk-all.mjs +703 -85
  14. package/dist/chunks/ccjk-config.mjs +6 -6
  15. package/dist/chunks/ccjk-hooks.mjs +20 -9
  16. package/dist/chunks/ccjk-mcp.mjs +64 -52
  17. package/dist/chunks/ccjk-setup.mjs +35 -25
  18. package/dist/chunks/ccjk-skills.mjs +51 -41
  19. package/dist/chunks/ccr.mjs +42 -32
  20. package/dist/chunks/ccu.mjs +16 -12
  21. package/dist/chunks/check-updates.mjs +30 -19
  22. package/dist/chunks/claude-code-config-manager.mjs +25 -10
  23. package/dist/chunks/claude-code-incremental-manager.mjs +65 -51
  24. package/dist/chunks/claude-config.mjs +2 -2
  25. package/dist/chunks/claude-wrapper.mjs +9 -6
  26. package/dist/chunks/cleanup-migration.mjs +1 -1
  27. package/dist/chunks/cli-hook.mjs +10 -3
  28. package/dist/chunks/cloud-sync.mjs +1 -1
  29. package/dist/chunks/codex-config-switch.mjs +58 -45
  30. package/dist/chunks/codex-provider-manager.mjs +29 -16
  31. package/dist/chunks/codex-uninstaller.mjs +5 -6
  32. package/dist/chunks/codex.mjs +89 -89
  33. package/dist/chunks/commands.mjs +28 -29
  34. package/dist/chunks/commands2.mjs +4 -3
  35. package/dist/chunks/commit.mjs +42 -23
  36. package/dist/chunks/completion.mjs +46 -47
  37. package/dist/chunks/config-consolidator.mjs +12 -13
  38. package/dist/chunks/config-switch.mjs +66 -53
  39. package/dist/chunks/config.mjs +10 -10
  40. package/dist/chunks/config2.mjs +53 -42
  41. package/dist/chunks/config3.mjs +107 -93
  42. package/dist/chunks/constants.mjs +2 -4
  43. package/dist/chunks/context-loader.mjs +5 -4
  44. package/dist/chunks/context.mjs +77 -76
  45. package/dist/chunks/convoy-manager.mjs +4 -4
  46. package/dist/chunks/dashboard.mjs +28 -29
  47. package/dist/chunks/doctor.mjs +68 -54
  48. package/dist/chunks/evolution.mjs +37 -38
  49. package/dist/chunks/features.mjs +103 -92
  50. package/dist/chunks/fs-operations.mjs +1 -1
  51. package/dist/chunks/health-alerts.mjs +1 -1
  52. package/dist/chunks/health-check.mjs +1 -1
  53. package/dist/chunks/help.mjs +117 -116
  54. package/dist/chunks/hook-installer.mjs +3 -2
  55. package/dist/chunks/index.mjs +20 -6
  56. package/dist/chunks/index10.mjs +1171 -0
  57. package/dist/chunks/index11.mjs +1008 -0
  58. package/dist/chunks/index12.mjs +193 -0
  59. package/dist/chunks/index13.mjs +218 -0
  60. package/dist/chunks/index14.mjs +663 -0
  61. package/dist/chunks/index2.mjs +19 -10
  62. package/dist/chunks/index3.mjs +19079 -164
  63. package/dist/chunks/index4.mjs +8 -1171
  64. package/dist/chunks/index5.mjs +7479 -884
  65. package/dist/chunks/index6.mjs +160 -184
  66. package/dist/chunks/index7.mjs +3573 -653
  67. package/dist/chunks/index8.mjs +19 -0
  68. package/dist/chunks/index9.mjs +616 -0
  69. package/dist/chunks/init.mjs +173 -173
  70. package/dist/chunks/installer.mjs +92 -82
  71. package/dist/chunks/installer2.mjs +3 -2
  72. package/dist/chunks/interview.mjs +118 -107
  73. package/dist/chunks/json-config.mjs +3 -2
  74. package/dist/chunks/linux.mjs +3863 -0
  75. package/dist/chunks/macos.mjs +69 -0
  76. package/dist/chunks/main.mjs +635 -0
  77. package/dist/chunks/marketplace.mjs +69 -66
  78. package/dist/chunks/mcp-cli.mjs +61 -48
  79. package/dist/chunks/mcp.mjs +140 -127
  80. package/dist/chunks/menu.mjs +85 -85
  81. package/dist/chunks/metrics-display.mjs +41 -40
  82. package/dist/chunks/migrator.mjs +4 -5
  83. package/dist/chunks/monitor.mjs +95 -95
  84. package/dist/chunks/notification.mjs +151 -141
  85. package/dist/chunks/onboarding.mjs +26 -15
  86. package/dist/chunks/paradigm.mjs +24 -23
  87. package/dist/chunks/permission-manager.mjs +10 -11
  88. package/dist/chunks/permissions.mjs +72 -57
  89. package/dist/chunks/persistence-manager.mjs +97 -84
  90. package/dist/chunks/persistence.mjs +1 -1
  91. package/dist/chunks/platform.mjs +29 -29
  92. package/dist/chunks/plugin.mjs +104 -105
  93. package/dist/chunks/prompts.mjs +36 -25
  94. package/dist/chunks/providers.mjs +68 -69
  95. package/dist/chunks/quick-actions.mjs +71 -72
  96. package/dist/chunks/quick-provider.mjs +56 -40
  97. package/dist/chunks/quick-setup.mjs +71 -60
  98. package/dist/chunks/remote.mjs +21 -12
  99. package/dist/chunks/session.mjs +116 -103
  100. package/dist/chunks/sessions.mjs +29 -28
  101. package/dist/chunks/silent-updater.mjs +8 -10
  102. package/dist/chunks/simple-config.mjs +13 -10
  103. package/dist/chunks/skill.mjs +8560 -103
  104. package/dist/chunks/skills-sync.mjs +5212 -79
  105. package/dist/chunks/skills.mjs +105 -94
  106. package/dist/chunks/slash-commands.mjs +36 -37
  107. package/dist/chunks/smart-defaults.mjs +7 -3
  108. package/dist/chunks/smart-guide.mjs +1 -1
  109. package/dist/chunks/startup.mjs +2 -4
  110. package/dist/chunks/stats.mjs +41 -42
  111. package/dist/chunks/status.mjs +49 -50
  112. package/dist/chunks/team.mjs +24 -12
  113. package/dist/chunks/thinking.mjs +74 -63
  114. package/dist/chunks/trace.mjs +20 -19
  115. package/dist/chunks/uninstall.mjs +69 -56
  116. package/dist/chunks/update.mjs +39 -28
  117. package/dist/chunks/upgrade-manager.mjs +24 -18
  118. package/dist/chunks/version-checker.mjs +45 -41
  119. package/dist/chunks/vim.mjs +81 -69
  120. package/dist/chunks/windows.mjs +14 -0
  121. package/dist/chunks/workflows.mjs +15 -15
  122. package/dist/chunks/wsl.mjs +129 -0
  123. package/dist/chunks/zero-config.mjs +45 -34
  124. package/dist/cli.mjs +20 -20
  125. package/dist/index.mjs +41 -31
  126. package/dist/shared/ccjk.BAGoDD49.mjs +36 -0
  127. package/dist/shared/ccjk.BBtCGd_g.mjs +899 -0
  128. package/dist/shared/{ccjk.CGcy7cNM.mjs → ccjk.BDKUdmLk.mjs} +1 -1
  129. package/dist/shared/{ccjk.DtMBiwVG.mjs → ccjk.BFxsJM0k.mjs} +1 -1
  130. package/dist/shared/{ccjk.j4uut26D.mjs → ccjk.BIxuVL3_.mjs} +5 -5
  131. package/dist/shared/ccjk.BRZ9ww8S.mjs +142 -0
  132. package/dist/shared/{ccjk.CN0edl87.mjs → ccjk.BSYWk9ML.mjs} +1 -1
  133. package/dist/shared/{ccjk.Dk1HDseQ.mjs → ccjk.BnpWvs9V.mjs} +75 -75
  134. package/dist/shared/ccjk.BoApaI4j.mjs +28 -0
  135. package/dist/shared/{ccjk.DKojSRzw.mjs → ccjk.BrPUmTqm.mjs} +1 -1
  136. package/dist/shared/{ccjk.C10pepYx.mjs → ccjk.BxSmJ8B7.mjs} +1 -1
  137. package/dist/shared/ccjk.Bx_rmYfN.mjs +69 -0
  138. package/dist/shared/ccjk.COweQ1RR.mjs +5 -0
  139. package/dist/shared/{ccjk.BN90X6oc.mjs → ccjk.CePkJq2S.mjs} +17 -17
  140. package/dist/shared/{ccjk.Bvoex4TZ.mjs → ccjk.CfKKcvWy.mjs} +1 -1
  141. package/dist/shared/ccjk.Cjgrln_h.mjs +297 -0
  142. package/dist/shared/ccjk.CxpGa6MC.mjs +2724 -0
  143. package/dist/shared/{ccjk.DfwJOEok.mjs → ccjk.D5MFQT7w.mjs} +1 -1
  144. package/dist/shared/{ccjk.cChAaGgT.mjs → ccjk.DG_o24cZ.mjs} +6 -6
  145. package/dist/shared/{ccjk.bhFAMRyc.mjs → ccjk.DLLw-h4Y.mjs} +32 -32
  146. package/dist/shared/ccjk.DOwtZMk8.mjs +4019 -0
  147. package/dist/shared/{ccjk.BsXQugfY.mjs → ccjk.DTdjs-qK.mjs} +13 -13
  148. package/dist/shared/{ccjk.Bdhyg3X-.mjs → ccjk.DsYaCCx4.mjs} +1 -1
  149. package/dist/shared/ccjk.KfSWcGlE.mjs +38 -0
  150. package/dist/shared/ccjk.RyizuzOI.mjs +21 -0
  151. package/dist/shared/{ccjk.h7_W-wTs.mjs → ccjk.SPoXMvZD.mjs} +1 -1
  152. package/dist/shared/ccjk.T_cX87dY.mjs +15 -0
  153. package/dist/shared/{ccjk.CrB6OYHv.mjs → ccjk._dESH4Rk.mjs} +2 -2
  154. package/dist/shared/ccjk.bQ7Dh1g4.mjs +249 -0
  155. package/dist/shared/{ccjk.CBhIZiPz.mjs → ccjk.hoqrwWdN.mjs} +1 -1
  156. package/dist/shared/{ccjk.BNwRnWYx.mjs → ccjk.s7OCVzdd.mjs} +1230 -33
  157. package/dist/shared/{ccjk.BOIUTf5z.mjs → ccjk.waa2ikKJ.mjs} +8 -9
  158. package/package.json +31 -29
  159. package/dist/shared/ccjk.DHbrGcgg.mjs +0 -13
  160. package/dist/shared/ccjk.DntgA8fQ.mjs +0 -42
@@ -1,12 +1,11 @@
1
- import ansis from 'ansis';
2
- import inquirer from 'inquirer';
1
+ import a from '../chunks/index2.mjs';
2
+ import { i as inquirer } from '../chunks/index3.mjs';
3
3
  import { i as getMcpService, j as dynamicMcpRegistry, a as readCodexConfig, k as applyCodexPlatformCommand, w as writeCodexConfig, M as MCP_SERVICE_CONFIGS } from '../chunks/codex.mjs';
4
- import 'pathe';
5
4
  import { SETTINGS_FILE, CLAUDE_DIR, ClAUDE_CONFIG_FILE, CODEX_CONFIG_FILE } from '../chunks/constants.mjs';
6
5
  import { exists, ensureDir } from '../chunks/fs-operations.mjs';
7
6
  import { readJsonConfig, writeJsonConfig } from '../chunks/json-config.mjs';
8
7
  import { d as deepMerge, r as readMcpConfig, a as buildMcpServerConfig, w as writeMcpConfig } from '../chunks/claude-config.mjs';
9
- import { ensureI18nInitialized, i18n } from '../chunks/index3.mjs';
8
+ import { ensureI18nInitialized, i18n } from '../chunks/index5.mjs';
10
9
  import { i as isWindows, l as getSystemRoot } from '../chunks/platform.mjs';
11
10
 
12
11
  function readClaudeConfig(configPath = SETTINGS_FILE) {
@@ -300,19 +299,19 @@ async function displayInstalledMcpServices(tool) {
300
299
  const targetTool = tool || detectActiveTool();
301
300
  const services = await listInstalledMcpServices(targetTool);
302
301
  if (services.length === 0) {
303
- console.log(ansis.yellow(i18n.t("mcp:installer.noServicesInstalled")));
302
+ console.log(a.yellow(i18n.t("mcp:installer.noServicesInstalled")));
304
303
  return;
305
304
  }
306
- console.log(ansis.green.bold(`
305
+ console.log(a.green.bold(`
307
306
  ${i18n.t("mcp:installer.installedServices", { tool: targetTool })}
308
307
  `));
309
308
  services.forEach((service, idx) => {
310
- console.log(`${ansis.green(`${idx + 1}.`)} ${ansis.bold(service.name)} ${ansis.dim(`[${service.id}]`)}`);
309
+ console.log(`${a.green(`${idx + 1}.`)} ${a.bold(service.name)} ${a.dim(`[${service.id}]`)}`);
311
310
  if (service.command) {
312
- console.log(` ${ansis.dim(`Command: ${service.command}`)}`);
311
+ console.log(` ${a.dim(`Command: ${service.command}`)}`);
313
312
  }
314
313
  if (service.url) {
315
- console.log(` ${ansis.dim(`URL: ${service.url}`)}`);
314
+ console.log(` ${a.dim(`URL: ${service.url}`)}`);
316
315
  }
317
316
  console.log("");
318
317
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ccjk",
3
3
  "type": "module",
4
- "version": "12.0.1",
4
+ "version": "12.0.2",
5
5
  "packageManager": "pnpm@10.17.1",
6
6
  "description": "CLI toolkit for Claude Code and Codex setup. Simplifies MCP service installation, API configuration, workflow management, and multi-provider support with guided interactive setup.",
7
7
  "author": {
@@ -141,37 +141,13 @@
141
141
  "contract:check": "node scripts/check-remote-contract.mjs"
142
142
  },
143
143
  "dependencies": {
144
- "@anthropic-ai/sdk": "^0.52.0",
145
- "ansis": "^4.2.0",
146
- "cac": "^6.7.14",
147
- "chokidar": "^4.0.3",
148
- "consola": "^3.4.2",
149
- "dayjs": "^1.11.19",
150
144
  "fdir": "^6.5.0",
151
- "find-up-simple": "^1.0.1",
152
- "fs-extra": "^11.3.3",
153
- "gray-matter": "^4.0.3",
154
- "handlebars": "^4.7.8",
155
- "i18next": "^25.8.13",
156
- "i18next-fs-backend": "^2.6.1",
157
- "inquirer": "^12.9.6",
158
- "inquirer-toggle": "^1.0.1",
145
+ "globby": "^14.1.0",
159
146
  "ioredis": "^5.9.3",
160
- "lowdb": "^7.0.1",
161
- "nanoid": "^5.1.6",
162
- "ofetch": "^1.5.1",
163
- "ohash": "^1.1.4",
164
- "ora": "^9.3.0",
165
- "pathe": "^2.0.3",
166
- "semver": "^7.7.4",
167
- "smol-toml": "^1.6.0",
168
147
  "tar": "^7.5.9",
169
- "tinyexec": "^1.0.2",
170
148
  "tinyglobby": "^0.2.15",
171
- "trash": "^10.1.0",
172
- "tweetnacl": "^1.0.3",
173
- "uuid": "^11.1.0",
174
- "web-tree-sitter": "^0.26.5"
149
+ "web-tree-sitter": "^0.26.5",
150
+ "better-sqlite3": "^12.6.2"
175
151
  },
176
152
  "devDependencies": {
177
153
  "@antfu/eslint-config": "^5.4.1",
@@ -195,6 +171,32 @@
195
171
  "tsx": "^4.21.0",
196
172
  "typescript": "^5.9.3",
197
173
  "unbuild": "^3.6.1",
198
- "vitest": "^3.2.4"
174
+ "vitest": "^3.2.4",
175
+ "@anthropic-ai/sdk": "^0.52.0",
176
+ "ansis": "^4.2.0",
177
+ "cac": "^6.7.14",
178
+ "chokidar": "^4.0.3",
179
+ "consola": "^3.4.2",
180
+ "dayjs": "^1.11.19",
181
+ "find-up-simple": "^1.0.1",
182
+ "fs-extra": "^11.3.3",
183
+ "gray-matter": "^4.0.3",
184
+ "handlebars": "^4.7.8",
185
+ "i18next": "^25.8.13",
186
+ "i18next-fs-backend": "^2.6.1",
187
+ "inquirer": "^12.9.6",
188
+ "inquirer-toggle": "^1.0.1",
189
+ "lowdb": "^7.0.1",
190
+ "nanoid": "^5.1.6",
191
+ "ofetch": "^1.5.1",
192
+ "ohash": "^1.1.4",
193
+ "ora": "^9.3.0",
194
+ "pathe": "^2.0.3",
195
+ "semver": "^7.7.4",
196
+ "smol-toml": "^1.6.0",
197
+ "tinyexec": "^1.0.2",
198
+ "trash": "^10.1.0",
199
+ "tweetnacl": "^1.0.3",
200
+ "uuid": "^11.1.0"
199
201
  }
200
202
  }
@@ -1,13 +0,0 @@
1
- import toggleModule from 'inquirer-toggle';
2
-
3
- const togglePrompt = toggleModule?.default?.default || toggleModule?.default || toggleModule;
4
- async function promptBoolean(options) {
5
- const { message, defaultValue = false, theme } = options;
6
- return await togglePrompt({
7
- message,
8
- default: defaultValue,
9
- ...theme ? { theme } : {}
10
- });
11
- }
12
-
13
- export { promptBoolean as p };
@@ -1,42 +0,0 @@
1
- import { promises } from 'node:fs';
2
- import trash from 'trash';
3
-
4
- async function pathExists(p) {
5
- try {
6
- await promises.access(p);
7
- return true;
8
- } catch {
9
- return false;
10
- }
11
- }
12
- async function moveToTrash(paths) {
13
- const pathArray = Array.isArray(paths) ? paths : [paths];
14
- const results = [];
15
- for (const path of pathArray) {
16
- try {
17
- const exists = await pathExists(path);
18
- if (!exists) {
19
- results.push({
20
- success: false,
21
- path,
22
- error: "Path does not exist"
23
- });
24
- continue;
25
- }
26
- await trash(path);
27
- results.push({
28
- success: true,
29
- path
30
- });
31
- } catch (error) {
32
- results.push({
33
- success: false,
34
- path,
35
- error: error.message || "Unknown error occurred"
36
- });
37
- }
38
- }
39
- return results;
40
- }
41
-
42
- export { moveToTrash as m };