ccjk 14.2.1 → 15.0.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 (526) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +58 -341
  3. package/dist/cli.js +59 -0
  4. package/dist/cli.js.map +1 -0
  5. package/dist/commands/detect.js +15 -0
  6. package/dist/commands/detect.js.map +1 -0
  7. package/dist/commands/doctor.js +68 -0
  8. package/dist/commands/doctor.js.map +1 -0
  9. package/dist/commands/git-install.js +50 -0
  10. package/dist/commands/git-install.js.map +1 -0
  11. package/dist/commands/init.js +102 -0
  12. package/dist/commands/init.js.map +1 -0
  13. package/dist/commands/mcp.js +66 -0
  14. package/dist/commands/mcp.js.map +1 -0
  15. package/dist/commands/menu.js +33 -0
  16. package/dist/commands/menu.js.map +1 -0
  17. package/dist/core/detect.js +24 -0
  18. package/dist/core/detect.js.map +1 -0
  19. package/dist/core/lint.js +49 -0
  20. package/dist/core/lint.js.map +1 -0
  21. package/dist/core/mcp.js +41 -0
  22. package/dist/core/mcp.js.map +1 -0
  23. package/dist/core/paths.js +9 -0
  24. package/dist/core/paths.js.map +1 -0
  25. package/dist/core/providers.js +53 -0
  26. package/dist/core/providers.js.map +1 -0
  27. package/dist/core/settings.js +31 -0
  28. package/dist/core/settings.js.map +1 -0
  29. package/dist/core/slash-templates.js +56 -0
  30. package/dist/core/slash-templates.js.map +1 -0
  31. package/dist/core/tools.js +27 -0
  32. package/dist/core/tools.js.map +1 -0
  33. package/package.json +43 -164
  34. package/README.HONEST.md +0 -176
  35. package/README.en.md +0 -67
  36. package/README.ja.md +0 -67
  37. package/README.ko.md +0 -67
  38. package/README.zh-CN.md +0 -86
  39. package/bin/ccjk.mjs +0 -5
  40. package/bin/ccjk.ts +0 -222
  41. package/dist/chunks/agent-teams.mjs +0 -145
  42. package/dist/chunks/agent.mjs +0 -1439
  43. package/dist/chunks/agents.mjs +0 -3783
  44. package/dist/chunks/api-cli.mjs +0 -135
  45. package/dist/chunks/api-config-selector.mjs +0 -159
  46. package/dist/chunks/api-providers.mjs +0 -144
  47. package/dist/chunks/api.mjs +0 -115
  48. package/dist/chunks/auto-bootstrap.mjs +0 -358
  49. package/dist/chunks/auto-fixer.mjs +0 -95
  50. package/dist/chunks/auto-updater.mjs +0 -507
  51. package/dist/chunks/banner.mjs +0 -173
  52. package/dist/chunks/bash.mjs +0 -187
  53. package/dist/chunks/boost.mjs +0 -474
  54. package/dist/chunks/brain-config.mjs +0 -75
  55. package/dist/chunks/brain-status.mjs +0 -89
  56. package/dist/chunks/ccjk-agents.mjs +0 -416
  57. package/dist/chunks/ccjk-all.mjs +0 -1046
  58. package/dist/chunks/ccjk-config.mjs +0 -445
  59. package/dist/chunks/ccjk-hooks.mjs +0 -1074
  60. package/dist/chunks/ccjk-mcp.mjs +0 -763
  61. package/dist/chunks/ccjk-setup.mjs +0 -765
  62. package/dist/chunks/ccjk-skills.mjs +0 -518
  63. package/dist/chunks/ccr.mjs +0 -109
  64. package/dist/chunks/ccu.mjs +0 -40
  65. package/dist/chunks/check-updates.mjs +0 -117
  66. package/dist/chunks/claude-code-incremental-manager.mjs +0 -761
  67. package/dist/chunks/claude-config.mjs +0 -606
  68. package/dist/chunks/claude-config2.mjs +0 -62
  69. package/dist/chunks/claude-wrapper.mjs +0 -85
  70. package/dist/chunks/clavue-config.mjs +0 -1390
  71. package/dist/chunks/cleanup-migration.mjs +0 -20
  72. package/dist/chunks/cli-hook.mjs +0 -4096
  73. package/dist/chunks/cloud-sync.mjs +0 -29
  74. package/dist/chunks/code-type-resolver.mjs +0 -880
  75. package/dist/chunks/codex-config-switch.mjs +0 -452
  76. package/dist/chunks/codex-provider-manager.mjs +0 -238
  77. package/dist/chunks/codex-uninstaller.mjs +0 -404
  78. package/dist/chunks/codex.mjs +0 -2141
  79. package/dist/chunks/commands.mjs +0 -108
  80. package/dist/chunks/commands2.mjs +0 -421
  81. package/dist/chunks/commit.mjs +0 -140
  82. package/dist/chunks/completion.mjs +0 -517
  83. package/dist/chunks/config-consolidator.mjs +0 -172
  84. package/dist/chunks/config-switch.mjs +0 -334
  85. package/dist/chunks/config.mjs +0 -558
  86. package/dist/chunks/config2.mjs +0 -484
  87. package/dist/chunks/config3.mjs +0 -486
  88. package/dist/chunks/constants.mjs +0 -323
  89. package/dist/chunks/context-opt.mjs +0 -444
  90. package/dist/chunks/context.mjs +0 -974
  91. package/dist/chunks/dashboard.mjs +0 -481
  92. package/dist/chunks/doctor.mjs +0 -1301
  93. package/dist/chunks/eval.mjs +0 -502
  94. package/dist/chunks/evolution.mjs +0 -322
  95. package/dist/chunks/features.mjs +0 -715
  96. package/dist/chunks/fish.mjs +0 -181
  97. package/dist/chunks/fs-operations.mjs +0 -180
  98. package/dist/chunks/health-alerts.mjs +0 -830
  99. package/dist/chunks/help.mjs +0 -341
  100. package/dist/chunks/hook-installer.mjs +0 -48
  101. package/dist/chunks/impact.mjs +0 -651
  102. package/dist/chunks/index.mjs +0 -23
  103. package/dist/chunks/index10.mjs +0 -19
  104. package/dist/chunks/index11.mjs +0 -1171
  105. package/dist/chunks/index12.mjs +0 -218
  106. package/dist/chunks/index13.mjs +0 -679
  107. package/dist/chunks/index14.mjs +0 -1009
  108. package/dist/chunks/index15.mjs +0 -194
  109. package/dist/chunks/index2.mjs +0 -7637
  110. package/dist/chunks/index3.mjs +0 -171
  111. package/dist/chunks/index4.mjs +0 -26
  112. package/dist/chunks/index5.mjs +0 -19
  113. package/dist/chunks/index6.mjs +0 -19092
  114. package/dist/chunks/index7.mjs +0 -616
  115. package/dist/chunks/index8.mjs +0 -1602
  116. package/dist/chunks/index9.mjs +0 -5384
  117. package/dist/chunks/init.mjs +0 -1911
  118. package/dist/chunks/installer.mjs +0 -757
  119. package/dist/chunks/installer2.mjs +0 -103
  120. package/dist/chunks/interview.mjs +0 -2927
  121. package/dist/chunks/json-config.mjs +0 -60
  122. package/dist/chunks/linux.mjs +0 -3863
  123. package/dist/chunks/macos.mjs +0 -69
  124. package/dist/chunks/main.mjs +0 -635
  125. package/dist/chunks/manager.mjs +0 -1048
  126. package/dist/chunks/marketplace.mjs +0 -265
  127. package/dist/chunks/mcp-cli.mjs +0 -205
  128. package/dist/chunks/mcp-performance.mjs +0 -187
  129. package/dist/chunks/mcp.mjs +0 -667
  130. package/dist/chunks/memory-check.mjs +0 -2973
  131. package/dist/chunks/memory-paths.mjs +0 -259
  132. package/dist/chunks/memory-sync.mjs +0 -209
  133. package/dist/chunks/memory.mjs +0 -354
  134. package/dist/chunks/metrics-display.mjs +0 -153
  135. package/dist/chunks/monitor.mjs +0 -1856
  136. package/dist/chunks/notification.mjs +0 -1864
  137. package/dist/chunks/onboarding.mjs +0 -386
  138. package/dist/chunks/package.mjs +0 -3
  139. package/dist/chunks/paradigm.mjs +0 -74
  140. package/dist/chunks/permission-manager.mjs +0 -250
  141. package/dist/chunks/permissions.mjs +0 -265
  142. package/dist/chunks/persistence-manager.mjs +0 -801
  143. package/dist/chunks/persistence.mjs +0 -707
  144. package/dist/chunks/platform.mjs +0 -395
  145. package/dist/chunks/plugin.mjs +0 -1936
  146. package/dist/chunks/powershell.mjs +0 -213
  147. package/dist/chunks/prompts.mjs +0 -244
  148. package/dist/chunks/providers.mjs +0 -263
  149. package/dist/chunks/quick-actions.mjs +0 -335
  150. package/dist/chunks/quick-provider.mjs +0 -755
  151. package/dist/chunks/quick-setup.mjs +0 -421
  152. package/dist/chunks/remote.mjs +0 -497
  153. package/dist/chunks/research.mjs +0 -1904
  154. package/dist/chunks/rollback.mjs +0 -38
  155. package/dist/chunks/session-manager.mjs +0 -1371
  156. package/dist/chunks/session.mjs +0 -878
  157. package/dist/chunks/sessions.mjs +0 -106
  158. package/dist/chunks/silent-updater.mjs +0 -396
  159. package/dist/chunks/simple-config.mjs +0 -122
  160. package/dist/chunks/skill.mjs +0 -117
  161. package/dist/chunks/skill2.mjs +0 -9052
  162. package/dist/chunks/skills-sync.mjs +0 -1343
  163. package/dist/chunks/skills.mjs +0 -577
  164. package/dist/chunks/slash-commands.mjs +0 -208
  165. package/dist/chunks/smart-guide.mjs +0 -247
  166. package/dist/chunks/snapshot.mjs +0 -58
  167. package/dist/chunks/startup.mjs +0 -487
  168. package/dist/chunks/stats.mjs +0 -191
  169. package/dist/chunks/status.mjs +0 -471
  170. package/dist/chunks/team.mjs +0 -63
  171. package/dist/chunks/thinking.mjs +0 -626
  172. package/dist/chunks/trace.mjs +0 -57
  173. package/dist/chunks/uninstall.mjs +0 -852
  174. package/dist/chunks/update.mjs +0 -174
  175. package/dist/chunks/upgrade-manager.mjs +0 -204
  176. package/dist/chunks/upgrade.mjs +0 -133
  177. package/dist/chunks/version-checker.mjs +0 -891
  178. package/dist/chunks/vim.mjs +0 -903
  179. package/dist/chunks/windows.mjs +0 -14
  180. package/dist/chunks/workflows.mjs +0 -633
  181. package/dist/chunks/wsl.mjs +0 -129
  182. package/dist/chunks/zero-config.mjs +0 -871
  183. package/dist/chunks/zsh.mjs +0 -182
  184. package/dist/cli.d.mts +0 -1
  185. package/dist/cli.d.ts +0 -1
  186. package/dist/cli.mjs +0 -2684
  187. package/dist/i18n/locales/en/agent-teams.json +0 -18
  188. package/dist/i18n/locales/en/agentBrowser.json +0 -80
  189. package/dist/i18n/locales/en/agents.json +0 -135
  190. package/dist/i18n/locales/en/api.json +0 -63
  191. package/dist/i18n/locales/en/ccjk-agents.json +0 -33
  192. package/dist/i18n/locales/en/ccjk-all.json +0 -23
  193. package/dist/i18n/locales/en/ccjk-skills.json +0 -22
  194. package/dist/i18n/locales/en/ccjk.json +0 -276
  195. package/dist/i18n/locales/en/ccr.json +0 -65
  196. package/dist/i18n/locales/en/claude-md.json +0 -73
  197. package/dist/i18n/locales/en/cli.json +0 -148
  198. package/dist/i18n/locales/en/cloud-setup.json +0 -31
  199. package/dist/i18n/locales/en/cloud-sync.json +0 -147
  200. package/dist/i18n/locales/en/cloud.json +0 -40
  201. package/dist/i18n/locales/en/cloudPlugins.json +0 -118
  202. package/dist/i18n/locales/en/codex.json +0 -184
  203. package/dist/i18n/locales/en/cometix.json +0 -29
  204. package/dist/i18n/locales/en/common.json +0 -68
  205. package/dist/i18n/locales/en/config.json +0 -108
  206. package/dist/i18n/locales/en/configuration.json +0 -234
  207. package/dist/i18n/locales/en/context.json +0 -85
  208. package/dist/i18n/locales/en/dashboard.json +0 -78
  209. package/dist/i18n/locales/en/errors.json +0 -26
  210. package/dist/i18n/locales/en/evolution.json +0 -54
  211. package/dist/i18n/locales/en/hooks.json +0 -74
  212. package/dist/i18n/locales/en/hooksSync.json +0 -133
  213. package/dist/i18n/locales/en/installation.json +0 -83
  214. package/dist/i18n/locales/en/interview.json +0 -104
  215. package/dist/i18n/locales/en/language.json +0 -19
  216. package/dist/i18n/locales/en/lsp.json +0 -78
  217. package/dist/i18n/locales/en/marketplace.json +0 -116
  218. package/dist/i18n/locales/en/mcp.json +0 -180
  219. package/dist/i18n/locales/en/memory.json +0 -23
  220. package/dist/i18n/locales/en/menu.json +0 -299
  221. package/dist/i18n/locales/en/multi-config.json +0 -79
  222. package/dist/i18n/locales/en/notification.json +0 -307
  223. package/dist/i18n/locales/en/permissions.json +0 -95
  224. package/dist/i18n/locales/en/persistence.json +0 -127
  225. package/dist/i18n/locales/en/plugins.json +0 -146
  226. package/dist/i18n/locales/en/quick-actions.json +0 -78
  227. package/dist/i18n/locales/en/registry.json +0 -54
  228. package/dist/i18n/locales/en/remote.json +0 -93
  229. package/dist/i18n/locales/en/sandbox.json +0 -44
  230. package/dist/i18n/locales/en/setup.json +0 -44
  231. package/dist/i18n/locales/en/shencha.json +0 -14
  232. package/dist/i18n/locales/en/skills.json +0 -100
  233. package/dist/i18n/locales/en/skillsSync.json +0 -74
  234. package/dist/i18n/locales/en/smartGuide.json +0 -49
  235. package/dist/i18n/locales/en/stats.json +0 -20
  236. package/dist/i18n/locales/en/subagent.json +0 -69
  237. package/dist/i18n/locales/en/superpowers.json +0 -117
  238. package/dist/i18n/locales/en/team.json +0 -7
  239. package/dist/i18n/locales/en/thinking.json +0 -65
  240. package/dist/i18n/locales/en/tools.json +0 -42
  241. package/dist/i18n/locales/en/uninstall.json +0 -56
  242. package/dist/i18n/locales/en/updater.json +0 -29
  243. package/dist/i18n/locales/en/vim.json +0 -169
  244. package/dist/i18n/locales/en/workflow.json +0 -55
  245. package/dist/i18n/locales/en/workspace.json +0 -108
  246. package/dist/i18n/locales/zh-CN/agent-teams.json +0 -18
  247. package/dist/i18n/locales/zh-CN/agentBrowser.json +0 -80
  248. package/dist/i18n/locales/zh-CN/agents.json +0 -135
  249. package/dist/i18n/locales/zh-CN/api.json +0 -63
  250. package/dist/i18n/locales/zh-CN/ccjk-agents.json +0 -33
  251. package/dist/i18n/locales/zh-CN/ccjk-all.json +0 -23
  252. package/dist/i18n/locales/zh-CN/ccjk-skills.json +0 -22
  253. package/dist/i18n/locales/zh-CN/ccjk.json +0 -276
  254. package/dist/i18n/locales/zh-CN/ccr.json +0 -65
  255. package/dist/i18n/locales/zh-CN/claude-md.json +0 -73
  256. package/dist/i18n/locales/zh-CN/cli.json +0 -148
  257. package/dist/i18n/locales/zh-CN/cloud-setup.json +0 -31
  258. package/dist/i18n/locales/zh-CN/cloud-sync.json +0 -147
  259. package/dist/i18n/locales/zh-CN/cloud.json +0 -40
  260. package/dist/i18n/locales/zh-CN/cloudPlugins.json +0 -118
  261. package/dist/i18n/locales/zh-CN/codex.json +0 -184
  262. package/dist/i18n/locales/zh-CN/cometix.json +0 -29
  263. package/dist/i18n/locales/zh-CN/common.json +0 -68
  264. package/dist/i18n/locales/zh-CN/config.json +0 -108
  265. package/dist/i18n/locales/zh-CN/configuration.json +0 -232
  266. package/dist/i18n/locales/zh-CN/context.json +0 -85
  267. package/dist/i18n/locales/zh-CN/dashboard.json +0 -78
  268. package/dist/i18n/locales/zh-CN/errors.json +0 -26
  269. package/dist/i18n/locales/zh-CN/evolution.json +0 -54
  270. package/dist/i18n/locales/zh-CN/hooks.json +0 -74
  271. package/dist/i18n/locales/zh-CN/hooksSync.json +0 -133
  272. package/dist/i18n/locales/zh-CN/installation.json +0 -83
  273. package/dist/i18n/locales/zh-CN/interview.json +0 -104
  274. package/dist/i18n/locales/zh-CN/language.json +0 -19
  275. package/dist/i18n/locales/zh-CN/lsp.json +0 -78
  276. package/dist/i18n/locales/zh-CN/marketplace.json +0 -116
  277. package/dist/i18n/locales/zh-CN/mcp.json +0 -180
  278. package/dist/i18n/locales/zh-CN/memory.json +0 -23
  279. package/dist/i18n/locales/zh-CN/menu.json +0 -299
  280. package/dist/i18n/locales/zh-CN/multi-config.json +0 -79
  281. package/dist/i18n/locales/zh-CN/notification.json +0 -307
  282. package/dist/i18n/locales/zh-CN/permissions.json +0 -95
  283. package/dist/i18n/locales/zh-CN/persistence.json +0 -127
  284. package/dist/i18n/locales/zh-CN/plugins.json +0 -146
  285. package/dist/i18n/locales/zh-CN/quick-actions.json +0 -78
  286. package/dist/i18n/locales/zh-CN/registry.json +0 -54
  287. package/dist/i18n/locales/zh-CN/remote.json +0 -93
  288. package/dist/i18n/locales/zh-CN/sandbox.json +0 -44
  289. package/dist/i18n/locales/zh-CN/setup.json +0 -44
  290. package/dist/i18n/locales/zh-CN/shencha.json +0 -14
  291. package/dist/i18n/locales/zh-CN/skills.json +0 -100
  292. package/dist/i18n/locales/zh-CN/skillsSync.json +0 -74
  293. package/dist/i18n/locales/zh-CN/smartGuide.json +0 -49
  294. package/dist/i18n/locales/zh-CN/stats.json +0 -20
  295. package/dist/i18n/locales/zh-CN/subagent.json +0 -69
  296. package/dist/i18n/locales/zh-CN/superpowers.json +0 -117
  297. package/dist/i18n/locales/zh-CN/team.json +0 -7
  298. package/dist/i18n/locales/zh-CN/thinking.json +0 -65
  299. package/dist/i18n/locales/zh-CN/tools.json +0 -42
  300. package/dist/i18n/locales/zh-CN/uninstall.json +0 -56
  301. package/dist/i18n/locales/zh-CN/updater.json +0 -29
  302. package/dist/i18n/locales/zh-CN/vim.json +0 -169
  303. package/dist/i18n/locales/zh-CN/workflow.json +0 -55
  304. package/dist/i18n/locales/zh-CN/workspace.json +0 -108
  305. package/dist/index.d.mts +0 -5658
  306. package/dist/index.d.ts +0 -5658
  307. package/dist/index.mjs +0 -3732
  308. package/dist/shared/ccjk.8oaxX4iR.mjs +0 -90
  309. package/dist/shared/ccjk.B2U7DsPy.mjs +0 -31
  310. package/dist/shared/ccjk.B2f-cwUP.mjs +0 -468
  311. package/dist/shared/ccjk.BAGoDD49.mjs +0 -36
  312. package/dist/shared/ccjk.BBtCGd_g.mjs +0 -899
  313. package/dist/shared/ccjk.BFQ7yr5S.mjs +0 -16
  314. package/dist/shared/ccjk.BLsIiTqO.mjs +0 -449
  315. package/dist/shared/ccjk.BXv8aYs1.mjs +0 -170
  316. package/dist/shared/ccjk.BnsY5WxD.mjs +0 -171
  317. package/dist/shared/ccjk.BoApaI4j.mjs +0 -28
  318. package/dist/shared/ccjk.Bq8TqZG_.mjs +0 -189
  319. package/dist/shared/ccjk.BtrioX1Z.mjs +0 -25
  320. package/dist/shared/ccjk.Bx_rmYfN.mjs +0 -69
  321. package/dist/shared/ccjk.BzPbSEP2.mjs +0 -115
  322. package/dist/shared/ccjk.C1Be3aJN.mjs +0 -254
  323. package/dist/shared/ccjk.C1hANZTu.mjs +0 -19
  324. package/dist/shared/ccjk.C2jHOZVP.mjs +0 -52
  325. package/dist/shared/ccjk.C94P8gCY.mjs +0 -283
  326. package/dist/shared/ccjk.CNhnT6uQ.mjs +0 -636
  327. package/dist/shared/ccjk.COweQ1RR.mjs +0 -5
  328. package/dist/shared/ccjk.CTr4yCZ1.mjs +0 -225
  329. package/dist/shared/ccjk.CfKKcvWy.mjs +0 -126
  330. package/dist/shared/ccjk.Cjgrln_h.mjs +0 -297
  331. package/dist/shared/ccjk.CoCHVXl3.mjs +0 -3951
  332. package/dist/shared/ccjk.CwGZSTAK.mjs +0 -319
  333. package/dist/shared/ccjk.CxpGa6MC.mjs +0 -2724
  334. package/dist/shared/ccjk.D-magaEx.mjs +0 -763
  335. package/dist/shared/ccjk.D0g2ABGg.mjs +0 -171
  336. package/dist/shared/ccjk.D6ycHbak.mjs +0 -270
  337. package/dist/shared/ccjk.D75wivnp.mjs +0 -142
  338. package/dist/shared/ccjk.DDL-4C-k.mjs +0 -100
  339. package/dist/shared/ccjk.DFRPtmK_.mjs +0 -75
  340. package/dist/shared/ccjk.DMV3x5Sd.mjs +0 -299
  341. package/dist/shared/ccjk.DZ2LLOa-.mjs +0 -2195
  342. package/dist/shared/ccjk.DbigonEQ.mjs +0 -698
  343. package/dist/shared/ccjk.DcMvE7lf.mjs +0 -618
  344. package/dist/shared/ccjk.DeWpAShp.mjs +0 -1828
  345. package/dist/shared/ccjk.DhJ1kyDR.mjs +0 -30
  346. package/dist/shared/ccjk.DlTXS9rP.mjs +0 -224
  347. package/dist/shared/ccjk.DopKzo3z.mjs +0 -305
  348. package/dist/shared/ccjk.DsZsc4LR.mjs +0 -1280
  349. package/dist/shared/ccjk.DuzJZlgj.mjs +0 -418
  350. package/dist/shared/ccjk.Dxgd2vjc.mjs +0 -444
  351. package/dist/shared/ccjk.J8YiPsOw.mjs +0 -259
  352. package/dist/shared/ccjk.KfSWcGlE.mjs +0 -38
  353. package/dist/shared/ccjk.MwtjAULc.mjs +0 -1447
  354. package/dist/shared/ccjk.OJKHVSOb.mjs +0 -2005
  355. package/dist/shared/ccjk.OTnevPNE.mjs +0 -225
  356. package/dist/shared/ccjk.RyizuzOI.mjs +0 -21
  357. package/dist/shared/ccjk.T_cX87dY.mjs +0 -15
  358. package/dist/shared/ccjk.bQ7Dh1g4.mjs +0 -249
  359. package/dist/shared/ccjk.gDEDGD_t.mjs +0 -38
  360. package/dist/shared/ccjk.hoqrwWdN.mjs +0 -333
  361. package/dist/shared/ccjk.i_vn-9C3.mjs +0 -317
  362. package/dist/shared/ccjk.lG3ccFjm.mjs +0 -885
  363. package/dist/shared/ccjk.wLJHO0Af.mjs +0 -244
  364. package/dist/shared/ccjk.y-a_1vK4.mjs +0 -5127
  365. package/dist/templates/agents/README.md +0 -78
  366. package/dist/templates/agents/fullstack-developer.json +0 -70
  367. package/dist/templates/agents/go-expert.json +0 -69
  368. package/dist/templates/agents/index.json +0 -64
  369. package/dist/templates/agents/python-expert.json +0 -69
  370. package/dist/templates/agents/react-specialist.json +0 -69
  371. package/dist/templates/agents/testing-automation-expert.json +0 -70
  372. package/dist/templates/agents/typescript-architect.json +0 -69
  373. package/dist/templates/claude-code/common/settings.json +0 -109
  374. package/dist/templates/common/error-prevention.md +0 -267
  375. package/dist/templates/common/karpathy-baseline.md +0 -83
  376. package/dist/templates/common/output-styles/zh-CN/carmack-mode.md +0 -381
  377. package/dist/templates/common/output-styles/zh-CN/dhh-mode.md +0 -265
  378. package/dist/templates/common/output-styles/zh-CN/evan-you-mode.md +0 -539
  379. package/dist/templates/common/output-styles/zh-CN/jobs-mode.md +0 -369
  380. package/dist/templates/common/output-styles/zh-CN/linus-mode.md +0 -135
  381. package/dist/templates/common/output-styles/zh-CN/uncle-bob-mode.md +0 -221
  382. package/dist/templates/common/workflow/continuousDelivery/en/continuous-delivery.md +0 -628
  383. package/dist/templates/common/workflow/continuousDelivery/zh-CN/continuous-delivery.md +0 -628
  384. package/dist/templates/common/workflow/essential/en/agents/ccjk-config-agent.md +0 -187
  385. package/dist/templates/common/workflow/essential/en/agents/ccjk-mcp-agent.md +0 -191
  386. package/dist/templates/common/workflow/essential/en/agents/ccjk-skill-agent.md +0 -249
  387. package/dist/templates/common/workflow/essential/en/agents/ccjk-workflow-agent.md +0 -277
  388. package/dist/templates/common/workflow/essential/en/agents/get-current-datetime.md +0 -29
  389. package/dist/templates/common/workflow/essential/en/agents/init-architect.md +0 -115
  390. package/dist/templates/common/workflow/essential/en/agents/ui-ux-designer.md +0 -91
  391. package/dist/templates/common/workflow/essential/en/feat.md +0 -92
  392. package/dist/templates/common/workflow/essential/en/goal.md +0 -147
  393. package/dist/templates/common/workflow/essential/en/init-project.md +0 -53
  394. package/dist/templates/common/workflow/essential/zh-CN/agents/get-current-datetime.md +0 -29
  395. package/dist/templates/common/workflow/essential/zh-CN/agents/init-architect.md +0 -115
  396. package/dist/templates/common/workflow/essential/zh-CN/agents/ui-ux-designer.md +0 -91
  397. package/dist/templates/common/workflow/essential/zh-CN/feat.md +0 -315
  398. package/dist/templates/common/workflow/essential/zh-CN/goal.md +0 -146
  399. package/dist/templates/common/workflow/essential/zh-CN/init-project.md +0 -53
  400. package/dist/templates/common/workflow/git/en/git-cleanBranches.md +0 -102
  401. package/dist/templates/common/workflow/git/en/git-commit.md +0 -205
  402. package/dist/templates/common/workflow/git/en/git-rollback.md +0 -90
  403. package/dist/templates/common/workflow/git/en/git-worktree.md +0 -276
  404. package/dist/templates/common/workflow/git/zh-CN/git-cleanBranches.md +0 -102
  405. package/dist/templates/common/workflow/git/zh-CN/git-commit.md +0 -205
  406. package/dist/templates/common/workflow/git/zh-CN/git-rollback.md +0 -90
  407. package/dist/templates/common/workflow/git/zh-CN/git-worktree.md +0 -276
  408. package/dist/templates/common/workflow/interview/en/interview.md +0 -67
  409. package/dist/templates/common/workflow/interview/zh-CN/interview.md +0 -67
  410. package/dist/templates/common/workflow/linearMethod/en/linear-method.md +0 -651
  411. package/dist/templates/common/workflow/linearMethod/zh-CN/linear-method.md +0 -752
  412. package/dist/templates/common/workflow/refactoringMaster/en/refactoring-master.md +0 -516
  413. package/dist/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +0 -812
  414. package/dist/templates/common/workflow/sixStep/en/workflow.md +0 -83
  415. package/dist/templates/common/workflow/sixStep/zh-CN/workflow.md +0 -359
  416. package/dist/templates/common/workflow/specFirstTDD/en/spec-first-tdd.md +0 -364
  417. package/dist/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +0 -366
  418. package/dist/templates/hooks/README.md +0 -212
  419. package/dist/templates/hooks/git-workflow-hooks.md +0 -551
  420. package/dist/templates/hooks/post-test/coverage.json +0 -21
  421. package/dist/templates/hooks/post-test/summary.json +0 -21
  422. package/dist/templates/hooks/post-test-coverage.md +0 -434
  423. package/dist/templates/hooks/pre-commit/eslint.json +0 -22
  424. package/dist/templates/hooks/pre-commit/prettier.json +0 -22
  425. package/dist/templates/hooks/pre-commit-black.md +0 -274
  426. package/dist/templates/hooks/pre-commit-eslint.md +0 -153
  427. package/dist/templates/hooks/pre-commit-gofmt.md +0 -284
  428. package/dist/templates/hooks/pre-commit-prettier.md +0 -212
  429. package/dist/templates/hooks/pre-commit-type-check.md +0 -377
  430. package/dist/templates/skills/ccjk-init.md +0 -154
  431. package/dist/templates/skills/ccjk-mcp-setup.md +0 -205
  432. package/dist/templates/skills/ccjk-troubleshoot.md +0 -228
  433. package/dist/templates/skills/django-patterns.md +0 -1016
  434. package/dist/templates/skills/git-workflow.md +0 -748
  435. package/dist/templates/skills/go-idioms.md +0 -963
  436. package/dist/templates/skills/index.json +0 -132
  437. package/dist/templates/skills/nextjs-optimization.md +0 -694
  438. package/dist/templates/skills/python-pep8.md +0 -852
  439. package/dist/templates/skills/react-patterns.md +0 -686
  440. package/dist/templates/skills/rust-patterns.md +0 -1057
  441. package/dist/templates/skills/security-best-practices.md +0 -1413
  442. package/dist/templates/skills/testing-best-practices.md +0 -1315
  443. package/dist/templates/skills/ts-best-practices.md +0 -354
  444. package/templates/agents/README.md +0 -78
  445. package/templates/agents/fullstack-developer.json +0 -70
  446. package/templates/agents/go-expert.json +0 -69
  447. package/templates/agents/index.json +0 -64
  448. package/templates/agents/python-expert.json +0 -69
  449. package/templates/agents/react-specialist.json +0 -69
  450. package/templates/agents/testing-automation-expert.json +0 -70
  451. package/templates/agents/typescript-architect.json +0 -69
  452. package/templates/claude-code/common/settings.json +0 -109
  453. package/templates/common/error-prevention.md +0 -267
  454. package/templates/common/karpathy-baseline.md +0 -83
  455. package/templates/common/output-styles/zh-CN/carmack-mode.md +0 -381
  456. package/templates/common/output-styles/zh-CN/dhh-mode.md +0 -265
  457. package/templates/common/output-styles/zh-CN/evan-you-mode.md +0 -539
  458. package/templates/common/output-styles/zh-CN/jobs-mode.md +0 -369
  459. package/templates/common/output-styles/zh-CN/linus-mode.md +0 -135
  460. package/templates/common/output-styles/zh-CN/uncle-bob-mode.md +0 -221
  461. package/templates/common/workflow/continuousDelivery/en/continuous-delivery.md +0 -628
  462. package/templates/common/workflow/continuousDelivery/zh-CN/continuous-delivery.md +0 -628
  463. package/templates/common/workflow/essential/en/agents/ccjk-config-agent.md +0 -187
  464. package/templates/common/workflow/essential/en/agents/ccjk-mcp-agent.md +0 -191
  465. package/templates/common/workflow/essential/en/agents/ccjk-skill-agent.md +0 -249
  466. package/templates/common/workflow/essential/en/agents/ccjk-workflow-agent.md +0 -277
  467. package/templates/common/workflow/essential/en/agents/get-current-datetime.md +0 -29
  468. package/templates/common/workflow/essential/en/agents/init-architect.md +0 -115
  469. package/templates/common/workflow/essential/en/agents/ui-ux-designer.md +0 -91
  470. package/templates/common/workflow/essential/en/feat.md +0 -92
  471. package/templates/common/workflow/essential/en/goal.md +0 -147
  472. package/templates/common/workflow/essential/en/init-project.md +0 -53
  473. package/templates/common/workflow/essential/zh-CN/agents/get-current-datetime.md +0 -29
  474. package/templates/common/workflow/essential/zh-CN/agents/init-architect.md +0 -115
  475. package/templates/common/workflow/essential/zh-CN/agents/ui-ux-designer.md +0 -91
  476. package/templates/common/workflow/essential/zh-CN/feat.md +0 -315
  477. package/templates/common/workflow/essential/zh-CN/goal.md +0 -146
  478. package/templates/common/workflow/essential/zh-CN/init-project.md +0 -53
  479. package/templates/common/workflow/git/en/git-cleanBranches.md +0 -102
  480. package/templates/common/workflow/git/en/git-commit.md +0 -205
  481. package/templates/common/workflow/git/en/git-rollback.md +0 -90
  482. package/templates/common/workflow/git/en/git-worktree.md +0 -276
  483. package/templates/common/workflow/git/zh-CN/git-cleanBranches.md +0 -102
  484. package/templates/common/workflow/git/zh-CN/git-commit.md +0 -205
  485. package/templates/common/workflow/git/zh-CN/git-rollback.md +0 -90
  486. package/templates/common/workflow/git/zh-CN/git-worktree.md +0 -276
  487. package/templates/common/workflow/interview/en/interview.md +0 -67
  488. package/templates/common/workflow/interview/zh-CN/interview.md +0 -67
  489. package/templates/common/workflow/linearMethod/en/linear-method.md +0 -651
  490. package/templates/common/workflow/linearMethod/zh-CN/linear-method.md +0 -752
  491. package/templates/common/workflow/refactoringMaster/en/refactoring-master.md +0 -516
  492. package/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +0 -812
  493. package/templates/common/workflow/sixStep/en/workflow.md +0 -83
  494. package/templates/common/workflow/sixStep/zh-CN/workflow.md +0 -359
  495. package/templates/common/workflow/specFirstTDD/en/spec-first-tdd.md +0 -364
  496. package/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +0 -366
  497. package/templates/hooks/README.md +0 -212
  498. package/templates/hooks/git-workflow-hooks.md +0 -551
  499. package/templates/hooks/post-test/coverage.json +0 -21
  500. package/templates/hooks/post-test/summary.json +0 -21
  501. package/templates/hooks/post-test-coverage.md +0 -434
  502. package/templates/hooks/pre-commit/eslint.json +0 -22
  503. package/templates/hooks/pre-commit/prettier.json +0 -22
  504. package/templates/hooks/pre-commit-black.md +0 -274
  505. package/templates/hooks/pre-commit-eslint.md +0 -153
  506. package/templates/hooks/pre-commit-gofmt.md +0 -284
  507. package/templates/hooks/pre-commit-prettier.md +0 -212
  508. package/templates/hooks/pre-commit-type-check.md +0 -377
  509. package/templates/skills/basic.hbs +0 -72
  510. package/templates/skills/ccjk-init.md +0 -154
  511. package/templates/skills/ccjk-mcp-setup.md +0 -205
  512. package/templates/skills/ccjk-troubleshoot.md +0 -228
  513. package/templates/skills/code-refactor.hbs +0 -133
  514. package/templates/skills/code-review.hbs +0 -141
  515. package/templates/skills/django-patterns.md +0 -1016
  516. package/templates/skills/git-workflow.md +0 -748
  517. package/templates/skills/go-idioms.md +0 -963
  518. package/templates/skills/index.json +0 -132
  519. package/templates/skills/nextjs-optimization.md +0 -694
  520. package/templates/skills/python-pep8.md +0 -852
  521. package/templates/skills/react-patterns.md +0 -686
  522. package/templates/skills/rust-patterns.md +0 -1057
  523. package/templates/skills/security-best-practices.md +0 -1413
  524. package/templates/skills/testing-best-practices.md +0 -1315
  525. package/templates/skills/ts-best-practices.md +0 -354
  526. package/templates/skills/type-fix.hbs +0 -132
@@ -1,1009 +0,0 @@
1
- import a from './index5.mjs';
2
- import ora from './index8.mjs';
3
- import fs from 'node:fs/promises';
4
- import os__default from 'node:os';
5
- import path__default from 'node:path';
6
- import { exec } from 'node:child_process';
7
- import { promisify } from 'node:util';
8
- import '../shared/ccjk.BAGoDD49.mjs';
9
- import 'node:process';
10
- import '../shared/ccjk.Cjgrln_h.mjs';
11
- import '../shared/ccjk.DeWpAShp.mjs';
12
-
13
- function getCcjkConfigDir() {
14
- if (process.env.CCJK_CONFIG_DIR) {
15
- return process.env.CCJK_CONFIG_DIR;
16
- }
17
- return path__default.join(os__default.homedir(), ".ccjk");
18
- }
19
- function getInstallPath(pluginType, name) {
20
- const configDir = getCcjkConfigDir();
21
- const typeDir = {
22
- skill: "skills",
23
- mcp: "mcp-servers",
24
- agent: "agents",
25
- hook: "hooks"
26
- }[pluginType];
27
- return path__default.join(configDir, typeDir, name);
28
- }
29
- async function copyDirectory(src, dest) {
30
- await fs.mkdir(dest, { recursive: true });
31
- const entries = await fs.readdir(src, { withFileTypes: true });
32
- for (const entry of entries) {
33
- const srcPath = path__default.join(src, entry.name);
34
- const destPath = path__default.join(dest, entry.name);
35
- if (entry.isDirectory()) {
36
- await copyDirectory(srcPath, destPath);
37
- } else {
38
- await fs.copyFile(srcPath, destPath);
39
- }
40
- }
41
- }
42
- async function downloadFile(url, destPath) {
43
- const response = await fetch(url, {
44
- headers: {
45
- "User-Agent": "ccjk-cli"
46
- },
47
- redirect: "follow"
48
- });
49
- if (!response.ok) {
50
- throw new Error(`Failed to download: ${response.statusText}`);
51
- }
52
- const buffer = Buffer.from(await response.arrayBuffer());
53
- await fs.writeFile(destPath, buffer);
54
- }
55
-
56
- async function installFromGitHub(sourceInfo, pluginType, options = {}) {
57
- const { force = false, dryRun = false } = options;
58
- const { owner, repo, ref = "main", subpath } = sourceInfo;
59
- try {
60
- const repoInfo = await fetchRepoInfo(owner, repo);
61
- const defaultBranch = repoInfo.default_branch || "main";
62
- const actualRef = ref || defaultBranch;
63
- const installPath = getInstallPath(pluginType, repo);
64
- if (!force) {
65
- try {
66
- await fs.access(installPath);
67
- return {
68
- success: false,
69
- source: sourceInfo.originalUrl,
70
- sourceType: "github",
71
- pluginType,
72
- error: `Plugin already exists at ${installPath}. Use --force to overwrite.`
73
- };
74
- } catch {
75
- }
76
- }
77
- if (dryRun) {
78
- const files = await listRepoFiles(owner, repo, actualRef, subpath);
79
- return {
80
- success: true,
81
- source: sourceInfo.originalUrl,
82
- sourceType: "github",
83
- pluginType,
84
- installedPath: installPath,
85
- details: {
86
- name: repo,
87
- version: actualRef,
88
- description: repoInfo.description || void 0,
89
- files: files.slice(0, 20)
90
- }
91
- };
92
- }
93
- const tempDir = await downloadRepo(owner, repo, actualRef);
94
- const sourcePath = subpath ? path__default.join(tempDir, subpath) : tempDir;
95
- await fs.mkdir(path__default.dirname(installPath), { recursive: true });
96
- await copyDirectory(sourcePath, installPath);
97
- await fs.rm(tempDir, { recursive: true, force: true });
98
- const installedFiles = await listInstalledFiles$1(installPath);
99
- return {
100
- success: true,
101
- source: sourceInfo.originalUrl,
102
- sourceType: "github",
103
- pluginType,
104
- installedPath: installPath,
105
- details: {
106
- name: repo,
107
- version: actualRef,
108
- description: repoInfo.description || void 0,
109
- files: installedFiles
110
- }
111
- };
112
- } catch (error) {
113
- return {
114
- success: false,
115
- source: sourceInfo.originalUrl,
116
- sourceType: "github",
117
- pluginType,
118
- error: error instanceof Error ? error.message : String(error)
119
- };
120
- }
121
- }
122
- async function fetchRepoInfo(owner, repo) {
123
- const url = `https://api.github.com/repos/${owner}/${repo}`;
124
- const response = await fetch(url, {
125
- headers: {
126
- "Accept": "application/vnd.github.v3+json",
127
- "User-Agent": "ccjk-cli"
128
- }
129
- });
130
- if (!response.ok) {
131
- if (response.status === 404) {
132
- throw new Error(`Repository not found: ${owner}/${repo}`);
133
- }
134
- throw new Error(`Failed to fetch repository info: ${response.statusText}`);
135
- }
136
- return response.json();
137
- }
138
- async function listRepoFiles(owner, repo, ref, subpath) {
139
- const treePath = subpath || "";
140
- const url = `https://api.github.com/repos/${owner}/${repo}/git/trees/${ref}?recursive=1`;
141
- const response = await fetch(url, {
142
- headers: {
143
- "Accept": "application/vnd.github.v3+json",
144
- "User-Agent": "ccjk-cli"
145
- }
146
- });
147
- if (!response.ok) {
148
- return [];
149
- }
150
- const data = await response.json();
151
- const files = (data.tree || []).filter((item) => item.type === "blob").map((item) => item.path).filter((filePath) => !treePath || filePath.startsWith(treePath));
152
- return files;
153
- }
154
- async function downloadRepo(owner, repo, ref) {
155
- const zipUrl = `https://github.com/${owner}/${repo}/archive/${ref}.zip`;
156
- const tempDir = path__default.join(os__default.tmpdir(), `ccjk-${repo}-${Date.now()}`);
157
- const zipPath = path__default.join(tempDir, "repo.zip");
158
- await fs.mkdir(tempDir, { recursive: true });
159
- await downloadFile(zipUrl, zipPath);
160
- const extractedDir = await extractZip(zipPath, tempDir);
161
- await fs.unlink(zipPath);
162
- return extractedDir;
163
- }
164
- async function extractZip(zipPath, destDir) {
165
- const { exec } = await import('node:child_process');
166
- const { promisify } = await import('node:util');
167
- const execAsync = promisify(exec);
168
- try {
169
- await execAsync(`unzip -q "${zipPath}" -d "${destDir}"`);
170
- } catch {
171
- try {
172
- await execAsync(`tar -xf "${zipPath}" -C "${destDir}"`);
173
- } catch {
174
- throw new Error("Failed to extract archive. Please ensure unzip or tar is installed.");
175
- }
176
- }
177
- const entries = await fs.readdir(destDir);
178
- const extractedDir = entries.find((entry) => !entry.endsWith(".zip"));
179
- if (!extractedDir) {
180
- throw new Error("Failed to find extracted directory");
181
- }
182
- return path__default.join(destDir, extractedDir);
183
- }
184
- async function listInstalledFiles$1(dir) {
185
- const files = [];
186
- async function walk(currentDir, prefix = "") {
187
- const entries = await fs.readdir(currentDir, { withFileTypes: true });
188
- for (const entry of entries) {
189
- const relativePath = prefix ? `${prefix}/${entry.name}` : entry.name;
190
- if (entry.isDirectory()) {
191
- await walk(path__default.join(currentDir, entry.name), relativePath);
192
- } else {
193
- files.push(relativePath);
194
- }
195
- }
196
- }
197
- await walk(dir);
198
- return files;
199
- }
200
-
201
- async function installFromLocal(sourceInfo, pluginType, options = {}) {
202
- const { force = false, dryRun = false } = options;
203
- const { absolutePath, originalPath } = sourceInfo;
204
- try {
205
- const stat = await fs.stat(absolutePath);
206
- const isFile = stat.isFile();
207
- const isDirectory = stat.isDirectory();
208
- if (!isFile && !isDirectory) {
209
- return {
210
- success: false,
211
- source: originalPath,
212
- sourceType: "local",
213
- pluginType,
214
- error: `Source path is neither a file nor a directory: ${absolutePath}`
215
- };
216
- }
217
- const pluginName = path__default.basename(absolutePath, path__default.extname(absolutePath));
218
- const installPath = getInstallPath(pluginType, pluginName);
219
- if (!force) {
220
- try {
221
- await fs.access(installPath);
222
- return {
223
- success: false,
224
- source: originalPath,
225
- sourceType: "local",
226
- pluginType,
227
- error: `Plugin already exists at ${installPath}. Use --force to overwrite.`
228
- };
229
- } catch {
230
- }
231
- }
232
- const files = isFile ? [path__default.basename(absolutePath)] : await listFiles(absolutePath);
233
- const pluginInfo = await readPluginInfo(absolutePath, isFile);
234
- if (dryRun) {
235
- return {
236
- success: true,
237
- source: originalPath,
238
- sourceType: "local",
239
- pluginType,
240
- installedPath: installPath,
241
- details: {
242
- name: pluginInfo.name || pluginName,
243
- version: pluginInfo.version,
244
- description: pluginInfo.description,
245
- files
246
- }
247
- };
248
- }
249
- if (isFile) {
250
- await fs.mkdir(path__default.dirname(installPath), { recursive: true });
251
- if (absolutePath.endsWith(".md")) {
252
- await fs.copyFile(absolutePath, installPath);
253
- } else {
254
- await fs.mkdir(installPath, { recursive: true });
255
- await fs.copyFile(
256
- absolutePath,
257
- path__default.join(installPath, path__default.basename(absolutePath))
258
- );
259
- }
260
- } else {
261
- await fs.mkdir(path__default.dirname(installPath), { recursive: true });
262
- await copyDirectory(absolutePath, installPath);
263
- }
264
- const installedFiles = isFile ? [path__default.basename(absolutePath)] : await listFiles(installPath);
265
- return {
266
- success: true,
267
- source: originalPath,
268
- sourceType: "local",
269
- pluginType,
270
- installedPath: installPath,
271
- details: {
272
- name: pluginInfo.name || pluginName,
273
- version: pluginInfo.version,
274
- description: pluginInfo.description,
275
- files: installedFiles
276
- }
277
- };
278
- } catch (error) {
279
- return {
280
- success: false,
281
- source: originalPath,
282
- sourceType: "local",
283
- pluginType,
284
- error: error instanceof Error ? error.message : String(error)
285
- };
286
- }
287
- }
288
- async function listFiles(dir) {
289
- const files = [];
290
- async function walk(currentDir, prefix = "") {
291
- const entries = await fs.readdir(currentDir, { withFileTypes: true });
292
- for (const entry of entries) {
293
- if (entry.name.startsWith(".") || entry.name === "node_modules") {
294
- continue;
295
- }
296
- const relativePath = prefix ? `${prefix}/${entry.name}` : entry.name;
297
- if (entry.isDirectory()) {
298
- await walk(path__default.join(currentDir, entry.name), relativePath);
299
- } else {
300
- files.push(relativePath);
301
- }
302
- }
303
- }
304
- await walk(dir);
305
- return files;
306
- }
307
- async function readPluginInfo(sourcePath, isFile) {
308
- if (isFile) {
309
- const name = path__default.basename(sourcePath, path__default.extname(sourcePath));
310
- return { name };
311
- }
312
- try {
313
- const packageJsonPath = path__default.join(sourcePath, "package.json");
314
- const content = await fs.readFile(packageJsonPath, "utf-8");
315
- const packageJson = JSON.parse(content);
316
- return {
317
- name: packageJson.name,
318
- version: packageJson.version,
319
- description: packageJson.description
320
- };
321
- } catch {
322
- }
323
- const metaFiles = ["SKILL.md", "skill.md", "README.md", "readme.md"];
324
- for (const metaFile of metaFiles) {
325
- try {
326
- const metaPath = path__default.join(sourcePath, metaFile);
327
- const content = await fs.readFile(metaPath, "utf-8");
328
- const titleMatch = content.match(/^#\s+(.+)$/m);
329
- if (titleMatch) {
330
- return { name: titleMatch[1].trim() };
331
- }
332
- } catch {
333
- }
334
- }
335
- return {};
336
- }
337
-
338
- const execAsync = promisify(exec);
339
- async function installFromNpm(sourceInfo, pluginType, options = {}) {
340
- const { force = false, dryRun = false } = options;
341
- const { packageName, version } = sourceInfo;
342
- try {
343
- const packageInfo = await fetchPackageInfo(packageName, version);
344
- const packageVersion = version || packageInfo.version;
345
- const shortName = getShortName(packageName);
346
- const installPath = getInstallPath(pluginType, shortName);
347
- if (!force) {
348
- try {
349
- await fs.access(installPath);
350
- return {
351
- success: false,
352
- source: packageName,
353
- sourceType: "npm",
354
- pluginType,
355
- error: `Plugin already exists at ${installPath}. Use --force to overwrite.`
356
- };
357
- } catch {
358
- }
359
- }
360
- if (dryRun) {
361
- const files = packageInfo.files || ["(package files)"];
362
- return {
363
- success: true,
364
- source: packageName,
365
- sourceType: "npm",
366
- pluginType,
367
- installedPath: installPath,
368
- details: {
369
- name: packageName,
370
- version: packageVersion,
371
- description: packageInfo.description,
372
- files
373
- }
374
- };
375
- }
376
- if (pluginType === "mcp") {
377
- await installMcpPackage(packageName, packageVersion, installPath);
378
- } else {
379
- await installGenericPackage(packageName, packageVersion, installPath);
380
- }
381
- const installedFiles = await listInstalledFiles(installPath);
382
- return {
383
- success: true,
384
- source: packageName,
385
- sourceType: "npm",
386
- pluginType,
387
- installedPath: installPath,
388
- details: {
389
- name: packageName,
390
- version: packageVersion,
391
- description: packageInfo.description,
392
- files: installedFiles
393
- }
394
- };
395
- } catch (error) {
396
- return {
397
- success: false,
398
- source: packageName,
399
- sourceType: "npm",
400
- pluginType,
401
- error: error instanceof Error ? error.message : String(error)
402
- };
403
- }
404
- }
405
- async function fetchPackageInfo(packageName, version) {
406
- const url = version ? `https://registry.npmjs.org/${packageName}/${version}` : `https://registry.npmjs.org/${packageName}/latest`;
407
- const response = await fetch(url);
408
- if (!response.ok) {
409
- if (response.status === 404) {
410
- throw new Error(`Package not found: ${packageName}`);
411
- }
412
- throw new Error(`Failed to fetch package info: ${response.statusText}`);
413
- }
414
- const data = await response.json();
415
- return {
416
- version: data.version,
417
- description: data.description,
418
- files: data.files
419
- };
420
- }
421
- function getShortName(packageName) {
422
- if (packageName.startsWith("@")) {
423
- const parts = packageName.split("/");
424
- return parts[1] || packageName;
425
- }
426
- return packageName;
427
- }
428
- async function installMcpPackage(packageName, version, installPath) {
429
- await fs.mkdir(installPath, { recursive: true });
430
- const packageJson = {
431
- name: `ccjk-mcp-${getShortName(packageName)}`,
432
- version: "1.0.0",
433
- private: true,
434
- dependencies: {
435
- [packageName]: version
436
- }
437
- };
438
- await fs.writeFile(
439
- path__default.join(installPath, "package.json"),
440
- JSON.stringify(packageJson, null, 2)
441
- );
442
- try {
443
- await execAsync("npm install", { cwd: installPath });
444
- } catch (error) {
445
- try {
446
- await execAsync("pnpm install", { cwd: installPath });
447
- } catch {
448
- throw new Error(
449
- `Failed to install package. Original error: ${error instanceof Error ? error.message : String(error)}`
450
- );
451
- }
452
- }
453
- }
454
- async function installGenericPackage(packageName, version, installPath) {
455
- const registryUrl = `https://registry.npmjs.org/${packageName}/${version}`;
456
- const response = await fetch(registryUrl);
457
- if (!response.ok) {
458
- throw new Error(`Failed to fetch package info: ${response.statusText}`);
459
- }
460
- const data = await response.json();
461
- const tarballUrl = data.dist?.tarball;
462
- if (!tarballUrl) {
463
- throw new Error("Failed to get tarball URL");
464
- }
465
- const tarballResponse = await fetch(tarballUrl);
466
- if (!tarballResponse.ok) {
467
- throw new Error(`Failed to download tarball: ${tarballResponse.statusText}`);
468
- }
469
- await fs.mkdir(installPath, { recursive: true });
470
- const tarballBuffer = Buffer.from(await tarballResponse.arrayBuffer());
471
- const tarballPath = path__default.join(installPath, "package.tgz");
472
- await fs.writeFile(tarballPath, tarballBuffer);
473
- try {
474
- await execAsync(`tar -xzf package.tgz --strip-components=1`, { cwd: installPath });
475
- } finally {
476
- await fs.unlink(tarballPath).catch(() => {
477
- });
478
- }
479
- }
480
- async function listInstalledFiles(dir) {
481
- const files = [];
482
- async function walk(currentDir, prefix = "") {
483
- try {
484
- const entries = await fs.readdir(currentDir, { withFileTypes: true });
485
- for (const entry of entries) {
486
- if (entry.name === "node_modules")
487
- continue;
488
- const relativePath = prefix ? `${prefix}/${entry.name}` : entry.name;
489
- if (entry.isDirectory()) {
490
- await walk(path__default.join(currentDir, entry.name), relativePath);
491
- } else {
492
- files.push(relativePath);
493
- }
494
- }
495
- } catch {
496
- }
497
- }
498
- await walk(dir);
499
- return files;
500
- }
501
-
502
- function parseSource(source) {
503
- const trimmed = source.trim();
504
- const githubInfo = parseGitHubSource(trimmed);
505
- if (githubInfo) {
506
- return githubInfo;
507
- }
508
- const localInfo = parseLocalSource(trimmed);
509
- if (localInfo) {
510
- return localInfo;
511
- }
512
- return parseNpmSource(trimmed);
513
- }
514
- function parseGitHubSource(source) {
515
- const prefixMatch = source.match(/^(?:github|gh):([^/]+)\/([^#@/]+)(?:#(.+))?$/);
516
- if (prefixMatch) {
517
- return {
518
- type: "github",
519
- owner: prefixMatch[1],
520
- repo: prefixMatch[2],
521
- ref: prefixMatch[3],
522
- originalUrl: source
523
- };
524
- }
525
- const urlMatch = source.match(
526
- /^https?:\/\/github\.com\/([^/]+)\/([^/]+?)(?:\.git)?(?:\/tree\/([^/]+))?(?:\/(.+))?$/
527
- );
528
- if (urlMatch) {
529
- return {
530
- type: "github",
531
- owner: urlMatch[1],
532
- repo: urlMatch[2],
533
- ref: urlMatch[3],
534
- subpath: urlMatch[4],
535
- originalUrl: source
536
- };
537
- }
538
- const shortMatch = source.match(/^([\w-]+)\/([\w.-]+)(?:#(.+))?$/);
539
- if (shortMatch && !source.startsWith(".") && !source.startsWith("/") && !source.startsWith("~")) {
540
- return {
541
- type: "github",
542
- owner: shortMatch[1],
543
- repo: shortMatch[2],
544
- ref: shortMatch[3],
545
- originalUrl: source
546
- };
547
- }
548
- return null;
549
- }
550
- function parseLocalSource(source) {
551
- if (source.startsWith("./") || source.startsWith("../") || source.startsWith("/") || source.startsWith("~/")) {
552
- let absolutePath;
553
- if (source.startsWith("~/")) {
554
- absolutePath = path__default.join(os__default.homedir(), source.slice(2));
555
- } else if (path__default.isAbsolute(source)) {
556
- absolutePath = source;
557
- } else {
558
- absolutePath = path__default.resolve(process.cwd(), source);
559
- }
560
- return {
561
- type: "local",
562
- absolutePath,
563
- originalPath: source
564
- };
565
- }
566
- if (/^[a-z]:[\\/]/i.test(source)) {
567
- return {
568
- type: "local",
569
- absolutePath: path__default.resolve(source),
570
- originalPath: source
571
- };
572
- }
573
- return null;
574
- }
575
- function parseNpmSource(source) {
576
- const npmPrefixMatch = source.match(/^npm:(.+)$/);
577
- const packageStr = npmPrefixMatch ? npmPrefixMatch[1] : source;
578
- const scopedMatch = packageStr.match(/^(@[^/]+)\/([^@]+)(?:@(.+))?$/);
579
- if (scopedMatch) {
580
- return {
581
- type: "npm",
582
- scope: scopedMatch[1],
583
- packageName: `${scopedMatch[1]}/${scopedMatch[2]}`,
584
- version: scopedMatch[3]
585
- };
586
- }
587
- const versionMatch = packageStr.match(/^([^@]+)@(.+)$/);
588
- if (versionMatch) {
589
- return {
590
- type: "npm",
591
- packageName: versionMatch[1],
592
- version: versionMatch[2]
593
- };
594
- }
595
- return {
596
- type: "npm",
597
- packageName: packageStr
598
- };
599
- }
600
- function buildGitHubRawUrl(info, filePath) {
601
- const ref = info.ref || "main";
602
- return `https://raw.githubusercontent.com/${info.owner}/${info.repo}/${ref}/${filePath}`;
603
- }
604
-
605
- async function detectPluginType(sourceInfo) {
606
- const result = await detectPluginTypeWithConfidence(sourceInfo);
607
- return result.type;
608
- }
609
- async function detectPluginTypeWithConfidence(sourceInfo) {
610
- switch (sourceInfo.type) {
611
- case "github":
612
- return detectFromGitHub(sourceInfo);
613
- case "npm":
614
- return detectFromNpm(sourceInfo);
615
- case "local":
616
- return detectFromLocal(sourceInfo);
617
- default:
618
- return { type: "skill", confidence: "low", reason: "Unknown source type" };
619
- }
620
- }
621
- async function detectFromGitHub(info) {
622
- const repoNameResult = detectFromRepoName(info.repo);
623
- if (repoNameResult.confidence === "high") {
624
- return repoNameResult;
625
- }
626
- try {
627
- const packageJsonUrl = buildGitHubRawUrl(info, "package.json");
628
- const response = await fetch(packageJsonUrl);
629
- if (response.ok) {
630
- const packageJson = await response.json();
631
- const pkgResult = detectFromPackageJson(packageJson);
632
- if (pkgResult.confidence !== "low") {
633
- return pkgResult;
634
- }
635
- }
636
- } catch {
637
- }
638
- const filePatterns = [
639
- { file: "SKILL.md", type: "skill" },
640
- { file: "skill.md", type: "skill" },
641
- { file: "AGENT.md", type: "agent" },
642
- { file: "agent.md", type: "agent" },
643
- { file: "mcp.json", type: "mcp" },
644
- { file: "hook.json", type: "hook" }
645
- ];
646
- for (const pattern of filePatterns) {
647
- try {
648
- const fileUrl = buildGitHubRawUrl(info, pattern.file);
649
- const response = await fetch(fileUrl, { method: "HEAD" });
650
- if (response.ok) {
651
- return {
652
- type: pattern.type,
653
- confidence: "high",
654
- reason: `Found ${pattern.file}`
655
- };
656
- }
657
- } catch {
658
- }
659
- }
660
- return repoNameResult.confidence !== "low" ? repoNameResult : { type: "skill", confidence: "low", reason: "Default type" };
661
- }
662
- async function detectFromNpm(info) {
663
- const nameResult = detectFromPackageName(info.packageName);
664
- if (nameResult.confidence === "high") {
665
- return nameResult;
666
- }
667
- try {
668
- const registryUrl = `https://registry.npmjs.org/${info.packageName}`;
669
- const response = await fetch(registryUrl);
670
- if (response.ok) {
671
- const data = await response.json();
672
- const latestVersion = data["dist-tags"]?.latest;
673
- if (latestVersion && data.versions?.[latestVersion]) {
674
- const packageJson = data.versions[latestVersion];
675
- const pkgResult = detectFromPackageJson(packageJson);
676
- if (pkgResult.confidence !== "low") {
677
- return pkgResult;
678
- }
679
- }
680
- }
681
- } catch {
682
- }
683
- return nameResult.confidence !== "low" ? nameResult : { type: "skill", confidence: "low", reason: "Default type" };
684
- }
685
- async function detectFromLocal(info) {
686
- const { absolutePath } = info;
687
- const dirName = path__default.basename(absolutePath);
688
- const dirResult = detectFromRepoName(dirName);
689
- if (dirResult.confidence === "high") {
690
- return dirResult;
691
- }
692
- try {
693
- const packageJsonPath = path__default.join(absolutePath, "package.json");
694
- const content = await fs.readFile(packageJsonPath, "utf-8");
695
- const packageJson = JSON.parse(content);
696
- const pkgResult = detectFromPackageJson(packageJson);
697
- if (pkgResult.confidence !== "low") {
698
- return pkgResult;
699
- }
700
- } catch {
701
- }
702
- const filePatterns = [
703
- { file: "SKILL.md", type: "skill" },
704
- { file: "skill.md", type: "skill" },
705
- { file: "AGENT.md", type: "agent" },
706
- { file: "agent.md", type: "agent" },
707
- { file: "mcp.json", type: "mcp" },
708
- { file: "hook.json", type: "hook" }
709
- ];
710
- for (const pattern of filePatterns) {
711
- try {
712
- const filePath = path__default.join(absolutePath, pattern.file);
713
- await fs.access(filePath);
714
- return {
715
- type: pattern.type,
716
- confidence: "high",
717
- reason: `Found ${pattern.file}`
718
- };
719
- } catch {
720
- }
721
- }
722
- try {
723
- const stat = await fs.stat(absolutePath);
724
- if (stat.isFile() && absolutePath.endsWith(".md")) {
725
- return {
726
- type: "skill",
727
- confidence: "high",
728
- reason: "Single markdown file"
729
- };
730
- }
731
- } catch {
732
- }
733
- return dirResult.confidence !== "low" ? dirResult : { type: "skill", confidence: "low", reason: "Default type" };
734
- }
735
- function detectFromRepoName(name) {
736
- const lowerName = name.toLowerCase();
737
- if (lowerName.includes("mcp-server") || lowerName.includes("mcp_server") || lowerName.startsWith("mcp-") || lowerName.endsWith("-mcp")) {
738
- return { type: "mcp", confidence: "high", reason: `Name contains MCP pattern: ${name}` };
739
- }
740
- if (lowerName.includes("agent") || lowerName.includes("-agent") || lowerName.endsWith("-agent")) {
741
- return { type: "agent", confidence: "medium", reason: `Name contains agent pattern: ${name}` };
742
- }
743
- if (lowerName.includes("hook") || lowerName.includes("-hook") || lowerName.endsWith("-hook")) {
744
- return { type: "hook", confidence: "medium", reason: `Name contains hook pattern: ${name}` };
745
- }
746
- if (lowerName.includes("skill") || lowerName.includes("-skill") || lowerName.endsWith("-skill")) {
747
- return { type: "skill", confidence: "medium", reason: `Name contains skill pattern: ${name}` };
748
- }
749
- return { type: "skill", confidence: "low", reason: "No pattern matched" };
750
- }
751
- function detectFromPackageName(packageName) {
752
- const lowerName = packageName.toLowerCase();
753
- if (lowerName.startsWith("@modelcontextprotocol/")) {
754
- return { type: "mcp", confidence: "high", reason: "MCP official scope" };
755
- }
756
- if (lowerName.includes("mcp-server") || lowerName.includes("mcp_server")) {
757
- return { type: "mcp", confidence: "high", reason: "MCP server pattern in name" };
758
- }
759
- return detectFromRepoName(packageName);
760
- }
761
- function detectFromPackageJson(packageJson) {
762
- if (packageJson.ccjk && typeof packageJson.ccjk === "object") {
763
- const ccjk = packageJson.ccjk;
764
- if (ccjk.type && typeof ccjk.type === "string") {
765
- const type = ccjk.type;
766
- if (["skill", "mcp", "agent", "hook"].includes(type)) {
767
- return { type, confidence: "high", reason: "Explicit ccjk.type field" };
768
- }
769
- }
770
- }
771
- if (Array.isArray(packageJson.keywords)) {
772
- const keywords = packageJson.keywords;
773
- const keywordMap = {
774
- "mcp-server": "mcp",
775
- "mcp": "mcp",
776
- "model-context-protocol": "mcp",
777
- "ccjk-skill": "skill",
778
- "claude-skill": "skill",
779
- "ccjk-agent": "agent",
780
- "ccjk-hook": "hook"
781
- };
782
- for (const keyword of keywords) {
783
- const type = keywordMap[keyword.toLowerCase()];
784
- if (type) {
785
- return { type, confidence: "high", reason: `Keyword: ${keyword}` };
786
- }
787
- }
788
- }
789
- if (packageJson.bin) {
790
- const binKeys = Object.keys(packageJson.bin);
791
- for (const key of binKeys) {
792
- if (key.includes("mcp") || key.includes("server")) {
793
- return { type: "mcp", confidence: "medium", reason: `Binary name: ${key}` };
794
- }
795
- }
796
- }
797
- if (typeof packageJson.main === "string") {
798
- const main = packageJson.main.toLowerCase();
799
- if (main.includes("server") || main.includes("mcp")) {
800
- return { type: "mcp", confidence: "low", reason: `Main file: ${packageJson.main}` };
801
- }
802
- }
803
- return { type: "skill", confidence: "low", reason: "No specific indicators" };
804
- }
805
-
806
- async function addCommand(source, options = {}) {
807
- const { force = false, dryRun = false, json = false, lang = "en" } = options;
808
- const i18n = getI18n(lang);
809
- const spinner = json ? null : ora(i18n.parsing).start();
810
- let sourceInfo;
811
- try {
812
- sourceInfo = parseSource(source);
813
- spinner?.succeed(i18n.parsed(sourceInfo.type));
814
- } catch (error) {
815
- spinner?.fail(i18n.parseFailed);
816
- const result = {
817
- success: false,
818
- source,
819
- sourceType: "local",
820
- pluginType: "skill",
821
- error: error instanceof Error ? error.message : String(error)
822
- };
823
- if (json) {
824
- console.log(JSON.stringify(result, null, 2));
825
- } else {
826
- console.error(a.red(`
827
- ${i18n.error}: ${result.error}
828
- `));
829
- }
830
- return result;
831
- }
832
- let pluginType = options.type;
833
- if (!pluginType) {
834
- spinner?.start(i18n.detectingType);
835
- try {
836
- pluginType = await detectPluginType(sourceInfo);
837
- spinner?.succeed(i18n.detectedType(pluginType));
838
- } catch {
839
- spinner?.info(i18n.defaultType);
840
- pluginType = "skill";
841
- }
842
- }
843
- spinner?.start(dryRun ? i18n.previewInstall : i18n.installing);
844
- try {
845
- let result;
846
- switch (sourceInfo.type) {
847
- case "github":
848
- result = await installFromGitHub(sourceInfo, pluginType, { force, dryRun });
849
- break;
850
- case "npm":
851
- result = await installFromNpm(sourceInfo, pluginType, { force, dryRun });
852
- break;
853
- case "local":
854
- result = await installFromLocal(sourceInfo, pluginType, { force, dryRun });
855
- break;
856
- default:
857
- throw new Error(`Unsupported source type: ${sourceInfo.type}`);
858
- }
859
- if (result.success) {
860
- spinner?.succeed(dryRun ? i18n.previewSuccess : i18n.installSuccess);
861
- } else {
862
- spinner?.fail(i18n.installFailed);
863
- }
864
- if (json) {
865
- console.log(JSON.stringify(result, null, 2));
866
- } else if (result.success && !dryRun) {
867
- printSuccessMessage(result, i18n);
868
- } else if (result.success && dryRun) {
869
- printPreviewMessage(result, i18n);
870
- } else {
871
- console.error(a.red(`
872
- ${i18n.error}: ${result.error}
873
- `));
874
- }
875
- return result;
876
- } catch (error) {
877
- spinner?.fail(i18n.installFailed);
878
- const result = {
879
- success: false,
880
- source,
881
- sourceType: sourceInfo.type,
882
- pluginType,
883
- error: error instanceof Error ? error.message : String(error)
884
- };
885
- if (json) {
886
- console.log(JSON.stringify(result, null, 2));
887
- } else {
888
- console.error(a.red(`
889
- ${i18n.error}: ${result.error}
890
- `));
891
- }
892
- return result;
893
- }
894
- }
895
- function printSuccessMessage(result, i18n) {
896
- console.log();
897
- console.log(a.green.bold(`\u2713 ${i18n.installed}`));
898
- console.log();
899
- console.log(` ${a.gray(i18n.name)}: ${result.details?.name || result.source}`);
900
- if (result.details?.version) {
901
- console.log(` ${a.gray(i18n.version)}: ${result.details.version}`);
902
- }
903
- console.log(` ${a.gray(i18n.type)}: ${result.pluginType}`);
904
- console.log(` ${a.gray(i18n.path)}: ${result.installedPath}`);
905
- console.log();
906
- console.log(a.cyan(i18n.nextSteps));
907
- switch (result.pluginType) {
908
- case "skill":
909
- console.log(` ${a.gray("\u2022")} ${i18n.skillHint}`);
910
- break;
911
- case "mcp":
912
- console.log(` ${a.gray("\u2022")} ${i18n.mcpHint}`);
913
- break;
914
- case "agent":
915
- console.log(` ${a.gray("\u2022")} ${i18n.agentHint}`);
916
- break;
917
- case "hook":
918
- console.log(` ${a.gray("\u2022")} ${i18n.hookHint}`);
919
- break;
920
- }
921
- console.log();
922
- }
923
- function printPreviewMessage(result, i18n) {
924
- console.log();
925
- console.log(a.yellow.bold(`\u26A1 ${i18n.preview}`));
926
- console.log();
927
- console.log(` ${a.gray(i18n.source)}: ${result.source}`);
928
- console.log(` ${a.gray(i18n.type)}: ${result.pluginType}`);
929
- console.log(` ${a.gray(i18n.target)}: ${result.installedPath}`);
930
- if (result.details?.files?.length) {
931
- console.log(` ${a.gray(i18n.files)}:`);
932
- for (const file of result.details.files.slice(0, 5)) {
933
- console.log(` ${a.gray("\u2022")} ${file}`);
934
- }
935
- if (result.details.files.length > 5) {
936
- console.log(` ${a.gray("...")} ${i18n.andMore(result.details.files.length - 5)}`);
937
- }
938
- }
939
- console.log();
940
- console.log(a.gray(i18n.dryRunNote));
941
- console.log();
942
- }
943
- function getI18n(lang) {
944
- const texts = {
945
- "zh-CN": {
946
- parsing: "\u89E3\u6790\u6765\u6E90...",
947
- parsed: (type) => `\u6765\u6E90\u7C7B\u578B: ${type}`,
948
- parseFailed: "\u89E3\u6790\u6765\u6E90\u5931\u8D25",
949
- detectingType: "\u68C0\u6D4B\u63D2\u4EF6\u7C7B\u578B...",
950
- detectedType: (type) => `\u68C0\u6D4B\u5230\u7C7B\u578B: ${type}`,
951
- defaultType: "\u4F7F\u7528\u9ED8\u8BA4\u7C7B\u578B: skill",
952
- installing: "\u5B89\u88C5\u4E2D...",
953
- previewInstall: "\u9884\u89C8\u5B89\u88C5...",
954
- installSuccess: "\u5B89\u88C5\u6210\u529F",
955
- previewSuccess: "\u9884\u89C8\u5B8C\u6210",
956
- installFailed: "\u5B89\u88C5\u5931\u8D25",
957
- error: "\u9519\u8BEF",
958
- installed: "\u63D2\u4EF6\u5DF2\u5B89\u88C5",
959
- preview: "\u5B89\u88C5\u9884\u89C8 (dry-run)",
960
- name: "\u540D\u79F0",
961
- version: "\u7248\u672C",
962
- type: "\u7C7B\u578B",
963
- path: "\u8DEF\u5F84",
964
- source: "\u6765\u6E90",
965
- target: "\u76EE\u6807",
966
- files: "\u6587\u4EF6",
967
- nextSteps: "\u4E0B\u4E00\u6B65:",
968
- skillHint: "\u4F7F\u7528 /skill-name \u5728 Claude Code \u4E2D\u8C03\u7528",
969
- mcpHint: "\u8FD0\u884C ccjk mcp status \u67E5\u770B\u72B6\u6001",
970
- agentHint: "\u4F7F\u7528 ccjk agent list \u67E5\u770B\u5DF2\u5B89\u88C5\u7684 agent",
971
- hookHint: "\u8FD0\u884C ccjk hooks list \u67E5\u770B\u5DF2\u5B89\u88C5\u7684 hook",
972
- dryRunNote: "\u8FD9\u662F\u9884\u89C8\u6A21\u5F0F\uFF0C\u672A\u5B9E\u9645\u5B89\u88C5\u3002\u79FB\u9664 --dry-run \u6267\u884C\u5B89\u88C5\u3002",
973
- andMore: (n) => `\u8FD8\u6709 ${n} \u4E2A\u6587\u4EF6`
974
- },
975
- "en": {
976
- parsing: "Parsing source...",
977
- parsed: (type) => `Source type: ${type}`,
978
- parseFailed: "Failed to parse source",
979
- detectingType: "Detecting plugin type...",
980
- detectedType: (type) => `Detected type: ${type}`,
981
- defaultType: "Using default type: skill",
982
- installing: "Installing...",
983
- previewInstall: "Previewing installation...",
984
- installSuccess: "Installation successful",
985
- previewSuccess: "Preview complete",
986
- installFailed: "Installation failed",
987
- error: "Error",
988
- installed: "Plugin installed",
989
- preview: "Installation preview (dry-run)",
990
- name: "Name",
991
- version: "Version",
992
- type: "Type",
993
- path: "Path",
994
- source: "Source",
995
- target: "Target",
996
- files: "Files",
997
- nextSteps: "Next steps:",
998
- skillHint: "Use /skill-name in Claude Code to invoke",
999
- mcpHint: "Run ccjk mcp status to check status",
1000
- agentHint: "Use ccjk agent list to see installed agents",
1001
- hookHint: "Run ccjk hooks list to see installed hooks",
1002
- dryRunNote: "This is preview mode, nothing was installed. Remove --dry-run to install.",
1003
- andMore: (n) => `and ${n} more files`
1004
- }
1005
- };
1006
- return texts[lang];
1007
- }
1008
-
1009
- export { addCommand, parseSource };