ccjk 14.2.2 → 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 (528) 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 -1454
  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 -236
  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 -234
  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.5bEolFrk.mjs +0 -254
  309. package/dist/shared/ccjk.8oaxX4iR.mjs +0 -90
  310. package/dist/shared/ccjk.B2U7DsPy.mjs +0 -31
  311. package/dist/shared/ccjk.B2f-cwUP.mjs +0 -468
  312. package/dist/shared/ccjk.BAGoDD49.mjs +0 -36
  313. package/dist/shared/ccjk.BBtCGd_g.mjs +0 -899
  314. package/dist/shared/ccjk.BFQ7yr5S.mjs +0 -16
  315. package/dist/shared/ccjk.BLsIiTqO.mjs +0 -449
  316. package/dist/shared/ccjk.BXv8aYs1.mjs +0 -170
  317. package/dist/shared/ccjk.BnsY5WxD.mjs +0 -171
  318. package/dist/shared/ccjk.BoApaI4j.mjs +0 -28
  319. package/dist/shared/ccjk.Bq8TqZG_.mjs +0 -189
  320. package/dist/shared/ccjk.BtrioX1Z.mjs +0 -25
  321. package/dist/shared/ccjk.Bx_rmYfN.mjs +0 -69
  322. package/dist/shared/ccjk.BzPbSEP2.mjs +0 -115
  323. package/dist/shared/ccjk.C0WLUnFV.mjs +0 -293
  324. package/dist/shared/ccjk.C1hANZTu.mjs +0 -19
  325. package/dist/shared/ccjk.C2jHOZVP.mjs +0 -52
  326. package/dist/shared/ccjk.CNhnT6uQ.mjs +0 -636
  327. package/dist/shared/ccjk.COweQ1RR.mjs +0 -5
  328. package/dist/shared/ccjk.CfKKcvWy.mjs +0 -126
  329. package/dist/shared/ccjk.Cjgrln_h.mjs +0 -297
  330. package/dist/shared/ccjk.CoCHVXl3.mjs +0 -3951
  331. package/dist/shared/ccjk.CwGZSTAK.mjs +0 -319
  332. package/dist/shared/ccjk.CxpGa6MC.mjs +0 -2724
  333. package/dist/shared/ccjk.D-magaEx.mjs +0 -763
  334. package/dist/shared/ccjk.D0g2ABGg.mjs +0 -171
  335. package/dist/shared/ccjk.D6ycHbak.mjs +0 -270
  336. package/dist/shared/ccjk.D75wivnp.mjs +0 -142
  337. package/dist/shared/ccjk.DDL-4C-k.mjs +0 -100
  338. package/dist/shared/ccjk.DFRPtmK_.mjs +0 -75
  339. package/dist/shared/ccjk.DMV3x5Sd.mjs +0 -299
  340. package/dist/shared/ccjk.DZ2LLOa-.mjs +0 -2195
  341. package/dist/shared/ccjk.DbigonEQ.mjs +0 -698
  342. package/dist/shared/ccjk.DcMvE7lf.mjs +0 -618
  343. package/dist/shared/ccjk.DeWpAShp.mjs +0 -1828
  344. package/dist/shared/ccjk.DhJ1kyDR.mjs +0 -30
  345. package/dist/shared/ccjk.DlTXS9rP.mjs +0 -224
  346. package/dist/shared/ccjk.DopKzo3z.mjs +0 -305
  347. package/dist/shared/ccjk.DsZsc4LR.mjs +0 -1280
  348. package/dist/shared/ccjk.DuzJZlgj.mjs +0 -418
  349. package/dist/shared/ccjk.Dxgd2vjc.mjs +0 -444
  350. package/dist/shared/ccjk.J8YiPsOw.mjs +0 -259
  351. package/dist/shared/ccjk.KfSWcGlE.mjs +0 -38
  352. package/dist/shared/ccjk.L7yC58_i.mjs +0 -225
  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/codex-rigor-mode.md +0 -114
  378. package/dist/templates/common/output-styles/zh-CN/dhh-mode.md +0 -265
  379. package/dist/templates/common/output-styles/zh-CN/evan-you-mode.md +0 -539
  380. package/dist/templates/common/output-styles/zh-CN/jobs-mode.md +0 -369
  381. package/dist/templates/common/output-styles/zh-CN/linus-mode.md +0 -135
  382. package/dist/templates/common/output-styles/zh-CN/uncle-bob-mode.md +0 -221
  383. package/dist/templates/common/workflow/continuousDelivery/en/continuous-delivery.md +0 -628
  384. package/dist/templates/common/workflow/continuousDelivery/zh-CN/continuous-delivery.md +0 -628
  385. package/dist/templates/common/workflow/essential/en/agents/ccjk-config-agent.md +0 -187
  386. package/dist/templates/common/workflow/essential/en/agents/ccjk-mcp-agent.md +0 -191
  387. package/dist/templates/common/workflow/essential/en/agents/ccjk-skill-agent.md +0 -249
  388. package/dist/templates/common/workflow/essential/en/agents/ccjk-workflow-agent.md +0 -277
  389. package/dist/templates/common/workflow/essential/en/agents/get-current-datetime.md +0 -29
  390. package/dist/templates/common/workflow/essential/en/agents/init-architect.md +0 -115
  391. package/dist/templates/common/workflow/essential/en/agents/ui-ux-designer.md +0 -91
  392. package/dist/templates/common/workflow/essential/en/feat.md +0 -92
  393. package/dist/templates/common/workflow/essential/en/goal.md +0 -147
  394. package/dist/templates/common/workflow/essential/en/init-project.md +0 -53
  395. package/dist/templates/common/workflow/essential/zh-CN/agents/get-current-datetime.md +0 -29
  396. package/dist/templates/common/workflow/essential/zh-CN/agents/init-architect.md +0 -115
  397. package/dist/templates/common/workflow/essential/zh-CN/agents/ui-ux-designer.md +0 -91
  398. package/dist/templates/common/workflow/essential/zh-CN/feat.md +0 -315
  399. package/dist/templates/common/workflow/essential/zh-CN/goal.md +0 -146
  400. package/dist/templates/common/workflow/essential/zh-CN/init-project.md +0 -53
  401. package/dist/templates/common/workflow/git/en/git-cleanBranches.md +0 -102
  402. package/dist/templates/common/workflow/git/en/git-commit.md +0 -205
  403. package/dist/templates/common/workflow/git/en/git-rollback.md +0 -90
  404. package/dist/templates/common/workflow/git/en/git-worktree.md +0 -276
  405. package/dist/templates/common/workflow/git/zh-CN/git-cleanBranches.md +0 -102
  406. package/dist/templates/common/workflow/git/zh-CN/git-commit.md +0 -205
  407. package/dist/templates/common/workflow/git/zh-CN/git-rollback.md +0 -90
  408. package/dist/templates/common/workflow/git/zh-CN/git-worktree.md +0 -276
  409. package/dist/templates/common/workflow/interview/en/interview.md +0 -67
  410. package/dist/templates/common/workflow/interview/zh-CN/interview.md +0 -67
  411. package/dist/templates/common/workflow/linearMethod/en/linear-method.md +0 -651
  412. package/dist/templates/common/workflow/linearMethod/zh-CN/linear-method.md +0 -752
  413. package/dist/templates/common/workflow/refactoringMaster/en/refactoring-master.md +0 -516
  414. package/dist/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +0 -812
  415. package/dist/templates/common/workflow/sixStep/en/workflow.md +0 -83
  416. package/dist/templates/common/workflow/sixStep/zh-CN/workflow.md +0 -359
  417. package/dist/templates/common/workflow/specFirstTDD/en/spec-first-tdd.md +0 -364
  418. package/dist/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +0 -366
  419. package/dist/templates/hooks/README.md +0 -212
  420. package/dist/templates/hooks/git-workflow-hooks.md +0 -551
  421. package/dist/templates/hooks/post-test/coverage.json +0 -21
  422. package/dist/templates/hooks/post-test/summary.json +0 -21
  423. package/dist/templates/hooks/post-test-coverage.md +0 -434
  424. package/dist/templates/hooks/pre-commit/eslint.json +0 -22
  425. package/dist/templates/hooks/pre-commit/prettier.json +0 -22
  426. package/dist/templates/hooks/pre-commit-black.md +0 -274
  427. package/dist/templates/hooks/pre-commit-eslint.md +0 -153
  428. package/dist/templates/hooks/pre-commit-gofmt.md +0 -284
  429. package/dist/templates/hooks/pre-commit-prettier.md +0 -212
  430. package/dist/templates/hooks/pre-commit-type-check.md +0 -377
  431. package/dist/templates/skills/ccjk-init.md +0 -154
  432. package/dist/templates/skills/ccjk-mcp-setup.md +0 -205
  433. package/dist/templates/skills/ccjk-troubleshoot.md +0 -228
  434. package/dist/templates/skills/django-patterns.md +0 -1016
  435. package/dist/templates/skills/git-workflow.md +0 -748
  436. package/dist/templates/skills/go-idioms.md +0 -963
  437. package/dist/templates/skills/index.json +0 -132
  438. package/dist/templates/skills/nextjs-optimization.md +0 -694
  439. package/dist/templates/skills/python-pep8.md +0 -852
  440. package/dist/templates/skills/react-patterns.md +0 -686
  441. package/dist/templates/skills/rust-patterns.md +0 -1057
  442. package/dist/templates/skills/security-best-practices.md +0 -1413
  443. package/dist/templates/skills/testing-best-practices.md +0 -1315
  444. package/dist/templates/skills/ts-best-practices.md +0 -354
  445. package/templates/agents/README.md +0 -78
  446. package/templates/agents/fullstack-developer.json +0 -70
  447. package/templates/agents/go-expert.json +0 -69
  448. package/templates/agents/index.json +0 -64
  449. package/templates/agents/python-expert.json +0 -69
  450. package/templates/agents/react-specialist.json +0 -69
  451. package/templates/agents/testing-automation-expert.json +0 -70
  452. package/templates/agents/typescript-architect.json +0 -69
  453. package/templates/claude-code/common/settings.json +0 -109
  454. package/templates/common/error-prevention.md +0 -267
  455. package/templates/common/karpathy-baseline.md +0 -83
  456. package/templates/common/output-styles/zh-CN/carmack-mode.md +0 -381
  457. package/templates/common/output-styles/zh-CN/codex-rigor-mode.md +0 -114
  458. package/templates/common/output-styles/zh-CN/dhh-mode.md +0 -265
  459. package/templates/common/output-styles/zh-CN/evan-you-mode.md +0 -539
  460. package/templates/common/output-styles/zh-CN/jobs-mode.md +0 -369
  461. package/templates/common/output-styles/zh-CN/linus-mode.md +0 -135
  462. package/templates/common/output-styles/zh-CN/uncle-bob-mode.md +0 -221
  463. package/templates/common/workflow/continuousDelivery/en/continuous-delivery.md +0 -628
  464. package/templates/common/workflow/continuousDelivery/zh-CN/continuous-delivery.md +0 -628
  465. package/templates/common/workflow/essential/en/agents/ccjk-config-agent.md +0 -187
  466. package/templates/common/workflow/essential/en/agents/ccjk-mcp-agent.md +0 -191
  467. package/templates/common/workflow/essential/en/agents/ccjk-skill-agent.md +0 -249
  468. package/templates/common/workflow/essential/en/agents/ccjk-workflow-agent.md +0 -277
  469. package/templates/common/workflow/essential/en/agents/get-current-datetime.md +0 -29
  470. package/templates/common/workflow/essential/en/agents/init-architect.md +0 -115
  471. package/templates/common/workflow/essential/en/agents/ui-ux-designer.md +0 -91
  472. package/templates/common/workflow/essential/en/feat.md +0 -92
  473. package/templates/common/workflow/essential/en/goal.md +0 -147
  474. package/templates/common/workflow/essential/en/init-project.md +0 -53
  475. package/templates/common/workflow/essential/zh-CN/agents/get-current-datetime.md +0 -29
  476. package/templates/common/workflow/essential/zh-CN/agents/init-architect.md +0 -115
  477. package/templates/common/workflow/essential/zh-CN/agents/ui-ux-designer.md +0 -91
  478. package/templates/common/workflow/essential/zh-CN/feat.md +0 -315
  479. package/templates/common/workflow/essential/zh-CN/goal.md +0 -146
  480. package/templates/common/workflow/essential/zh-CN/init-project.md +0 -53
  481. package/templates/common/workflow/git/en/git-cleanBranches.md +0 -102
  482. package/templates/common/workflow/git/en/git-commit.md +0 -205
  483. package/templates/common/workflow/git/en/git-rollback.md +0 -90
  484. package/templates/common/workflow/git/en/git-worktree.md +0 -276
  485. package/templates/common/workflow/git/zh-CN/git-cleanBranches.md +0 -102
  486. package/templates/common/workflow/git/zh-CN/git-commit.md +0 -205
  487. package/templates/common/workflow/git/zh-CN/git-rollback.md +0 -90
  488. package/templates/common/workflow/git/zh-CN/git-worktree.md +0 -276
  489. package/templates/common/workflow/interview/en/interview.md +0 -67
  490. package/templates/common/workflow/interview/zh-CN/interview.md +0 -67
  491. package/templates/common/workflow/linearMethod/en/linear-method.md +0 -651
  492. package/templates/common/workflow/linearMethod/zh-CN/linear-method.md +0 -752
  493. package/templates/common/workflow/refactoringMaster/en/refactoring-master.md +0 -516
  494. package/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +0 -812
  495. package/templates/common/workflow/sixStep/en/workflow.md +0 -83
  496. package/templates/common/workflow/sixStep/zh-CN/workflow.md +0 -359
  497. package/templates/common/workflow/specFirstTDD/en/spec-first-tdd.md +0 -364
  498. package/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +0 -366
  499. package/templates/hooks/README.md +0 -212
  500. package/templates/hooks/git-workflow-hooks.md +0 -551
  501. package/templates/hooks/post-test/coverage.json +0 -21
  502. package/templates/hooks/post-test/summary.json +0 -21
  503. package/templates/hooks/post-test-coverage.md +0 -434
  504. package/templates/hooks/pre-commit/eslint.json +0 -22
  505. package/templates/hooks/pre-commit/prettier.json +0 -22
  506. package/templates/hooks/pre-commit-black.md +0 -274
  507. package/templates/hooks/pre-commit-eslint.md +0 -153
  508. package/templates/hooks/pre-commit-gofmt.md +0 -284
  509. package/templates/hooks/pre-commit-prettier.md +0 -212
  510. package/templates/hooks/pre-commit-type-check.md +0 -377
  511. package/templates/skills/basic.hbs +0 -72
  512. package/templates/skills/ccjk-init.md +0 -154
  513. package/templates/skills/ccjk-mcp-setup.md +0 -205
  514. package/templates/skills/ccjk-troubleshoot.md +0 -228
  515. package/templates/skills/code-refactor.hbs +0 -133
  516. package/templates/skills/code-review.hbs +0 -141
  517. package/templates/skills/django-patterns.md +0 -1016
  518. package/templates/skills/git-workflow.md +0 -748
  519. package/templates/skills/go-idioms.md +0 -963
  520. package/templates/skills/index.json +0 -132
  521. package/templates/skills/nextjs-optimization.md +0 -694
  522. package/templates/skills/python-pep8.md +0 -852
  523. package/templates/skills/react-patterns.md +0 -686
  524. package/templates/skills/rust-patterns.md +0 -1057
  525. package/templates/skills/security-best-practices.md +0 -1413
  526. package/templates/skills/testing-best-practices.md +0 -1315
  527. package/templates/skills/ts-best-practices.md +0 -354
  528. package/templates/skills/type-fix.hbs +0 -132
@@ -1,333 +0,0 @@
1
- import { existsSync, readFileSync } from 'node:fs';
2
- import process__default from 'node:process';
3
- import { j as join } from './ccjk.bQ7Dh1g4.mjs';
4
-
5
- function readPackageJson(dir) {
6
- const pkgPath = join(dir, "package.json");
7
- if (!existsSync(pkgPath))
8
- return null;
9
- try {
10
- return JSON.parse(readFileSync(pkgPath, "utf-8"));
11
- } catch {
12
- return null;
13
- }
14
- }
15
- function detectPackageManager(dir) {
16
- if (existsSync(join(dir, "bun.lockb")))
17
- return "bun";
18
- if (existsSync(join(dir, "pnpm-lock.yaml")))
19
- return "pnpm";
20
- if (existsSync(join(dir, "yarn.lock")))
21
- return "yarn";
22
- if (existsSync(join(dir, "package-lock.json")))
23
- return "npm";
24
- const pkg = readPackageJson(dir);
25
- if (pkg?.packageManager) {
26
- if (pkg.packageManager.startsWith("pnpm"))
27
- return "pnpm";
28
- if (pkg.packageManager.startsWith("yarn"))
29
- return "yarn";
30
- if (pkg.packageManager.startsWith("bun"))
31
- return "bun";
32
- }
33
- return "unknown";
34
- }
35
- function detectFrameworks(dir) {
36
- const frameworks = [];
37
- const pkg = readPackageJson(dir);
38
- if (!pkg)
39
- return frameworks;
40
- const allDeps = {
41
- ...pkg.dependencies,
42
- ...pkg.devDependencies
43
- };
44
- if (allDeps.react)
45
- frameworks.push("react");
46
- if (allDeps.vue)
47
- frameworks.push("vue");
48
- if (allDeps["@angular/core"])
49
- frameworks.push("angular");
50
- if (allDeps.svelte)
51
- frameworks.push("svelte");
52
- if (allDeps.next)
53
- frameworks.push("nextjs");
54
- if (allDeps.nuxt)
55
- frameworks.push("nuxt");
56
- if (allDeps["@remix-run/react"])
57
- frameworks.push("remix");
58
- if (allDeps.astro)
59
- frameworks.push("astro");
60
- if (allDeps.express)
61
- frameworks.push("express");
62
- if (allDeps.fastify)
63
- frameworks.push("fastify");
64
- if (allDeps["@nestjs/core"])
65
- frameworks.push("nestjs");
66
- if (allDeps.koa)
67
- frameworks.push("koa");
68
- if (allDeps.hono)
69
- frameworks.push("hono");
70
- if (allDeps.electron)
71
- frameworks.push("electron");
72
- if (allDeps["@tauri-apps/api"])
73
- frameworks.push("tauri");
74
- if (allDeps["react-native"])
75
- frameworks.push("react-native");
76
- if (existsSync(join(dir, "requirements.txt")) || existsSync(join(dir, "pyproject.toml"))) {
77
- const reqPath = join(dir, "requirements.txt");
78
- if (existsSync(reqPath)) {
79
- const reqs = readFileSync(reqPath, "utf-8").toLowerCase();
80
- if (reqs.includes("django"))
81
- frameworks.push("django");
82
- if (reqs.includes("flask"))
83
- frameworks.push("flask");
84
- if (reqs.includes("fastapi"))
85
- frameworks.push("fastapi");
86
- }
87
- }
88
- if (existsSync(join(dir, "Gemfile"))) {
89
- const gemfile = readFileSync(join(dir, "Gemfile"), "utf-8").toLowerCase();
90
- if (gemfile.includes("rails"))
91
- frameworks.push("rails");
92
- }
93
- if (existsSync(join(dir, "composer.json"))) {
94
- try {
95
- const composer = JSON.parse(readFileSync(join(dir, "composer.json"), "utf-8"));
96
- if (composer.require?.["laravel/framework"])
97
- frameworks.push("laravel");
98
- } catch {
99
- }
100
- }
101
- return frameworks;
102
- }
103
- function detectBuildTools(dir) {
104
- const tools = [];
105
- const pkg = readPackageJson(dir);
106
- if (existsSync(join(dir, "vite.config.ts")) || existsSync(join(dir, "vite.config.js")))
107
- tools.push("vite");
108
- if (existsSync(join(dir, "webpack.config.js")) || existsSync(join(dir, "webpack.config.ts")))
109
- tools.push("webpack");
110
- if (existsSync(join(dir, "rollup.config.js")) || existsSync(join(dir, "rollup.config.ts")))
111
- tools.push("rollup");
112
- if (existsSync(join(dir, "tsup.config.ts")) || existsSync(join(dir, "tsup.config.js")))
113
- tools.push("tsup");
114
- if (pkg) {
115
- const allDeps = { ...pkg.dependencies, ...pkg.devDependencies };
116
- if (allDeps.esbuild)
117
- tools.push("esbuild");
118
- if (allDeps["@swc/core"])
119
- tools.push("swc");
120
- if (allDeps.turbo)
121
- tools.push("turbopack");
122
- if (allDeps.parcel)
123
- tools.push("parcel");
124
- if (allDeps.unbuild)
125
- tools.push("unbuild");
126
- }
127
- return tools;
128
- }
129
- function detectTestFrameworks(dir) {
130
- const frameworks = [];
131
- const pkg = readPackageJson(dir);
132
- if (existsSync(join(dir, "vitest.config.ts")) || existsSync(join(dir, "vitest.config.js")))
133
- frameworks.push("vitest");
134
- if (existsSync(join(dir, "jest.config.js")) || existsSync(join(dir, "jest.config.ts")))
135
- frameworks.push("jest");
136
- if (existsSync(join(dir, "cypress.config.ts")) || existsSync(join(dir, "cypress.config.js")))
137
- frameworks.push("cypress");
138
- if (existsSync(join(dir, "playwright.config.ts")))
139
- frameworks.push("playwright");
140
- if (existsSync(join(dir, "pytest.ini")) || existsSync(join(dir, "conftest.py")))
141
- frameworks.push("pytest");
142
- if (pkg) {
143
- const allDeps = { ...pkg.dependencies, ...pkg.devDependencies };
144
- if (allDeps.vitest && !frameworks.includes("vitest"))
145
- frameworks.push("vitest");
146
- if (allDeps.jest && !frameworks.includes("jest"))
147
- frameworks.push("jest");
148
- if (allDeps.mocha)
149
- frameworks.push("mocha");
150
- if (allDeps.cypress && !frameworks.includes("cypress"))
151
- frameworks.push("cypress");
152
- if (allDeps["@playwright/test"] && !frameworks.includes("playwright"))
153
- frameworks.push("playwright");
154
- }
155
- return frameworks;
156
- }
157
- function detectCICDSystems(dir) {
158
- const systems = [];
159
- if (existsSync(join(dir, ".github", "workflows")))
160
- systems.push("github-actions");
161
- if (existsSync(join(dir, ".gitlab-ci.yml")))
162
- systems.push("gitlab-ci");
163
- if (existsSync(join(dir, "Jenkinsfile")))
164
- systems.push("jenkins");
165
- if (existsSync(join(dir, ".circleci")))
166
- systems.push("circleci");
167
- if (existsSync(join(dir, ".travis.yml")))
168
- systems.push("travis");
169
- if (existsSync(join(dir, "azure-pipelines.yml")))
170
- systems.push("azure-pipelines");
171
- return systems;
172
- }
173
- function detectLanguages(dir) {
174
- const languages = [];
175
- if (existsSync(join(dir, "tsconfig.json")))
176
- languages.push("typescript");
177
- if (existsSync(join(dir, "package.json"))) {
178
- if (!languages.includes("typescript"))
179
- languages.push("javascript");
180
- }
181
- if (existsSync(join(dir, "requirements.txt")) || existsSync(join(dir, "pyproject.toml")) || existsSync(join(dir, "setup.py")))
182
- languages.push("python");
183
- if (existsSync(join(dir, "Gemfile")))
184
- languages.push("ruby");
185
- if (existsSync(join(dir, "go.mod")))
186
- languages.push("go");
187
- if (existsSync(join(dir, "Cargo.toml")))
188
- languages.push("rust");
189
- if (existsSync(join(dir, "pom.xml")) || existsSync(join(dir, "build.gradle"))) {
190
- languages.push("java");
191
- if (existsSync(join(dir, "build.gradle.kts")))
192
- languages.push("kotlin");
193
- }
194
- if (existsSync(join(dir, "composer.json")))
195
- languages.push("php");
196
- if (existsSync(join(dir, "Package.swift")))
197
- languages.push("swift");
198
- if (existsSync(join(dir, "pubspec.yaml")))
199
- languages.push("dart");
200
- return languages;
201
- }
202
- function determineProjectType(info) {
203
- const frameworks = info.frameworks || [];
204
- if (frameworks.includes("react-native") || frameworks.includes("flutter"))
205
- return "mobile";
206
- if (frameworks.includes("electron") || frameworks.includes("tauri"))
207
- return "desktop";
208
- const pkg = info.rootDir ? readPackageJson(info.rootDir) : null;
209
- if (pkg?.bin)
210
- return "cli";
211
- if (pkg?.main || pkg?.exports) {
212
- const hasAppFramework = frameworks.some(
213
- (f) => ["react", "vue", "angular", "svelte", "nextjs", "nuxt", "express", "fastify", "nestjs"].includes(f)
214
- );
215
- if (!hasAppFramework)
216
- return "library";
217
- }
218
- const frontendFrameworks = ["react", "vue", "angular", "svelte"];
219
- const backendFrameworks = ["express", "fastify", "nestjs", "koa", "hono", "django", "flask", "fastapi", "rails", "laravel"];
220
- const metaFrameworks = ["nextjs", "nuxt", "remix", "astro"];
221
- const hasFrontend = frameworks.some((f) => frontendFrameworks.includes(f));
222
- const hasBackend = frameworks.some((f) => backendFrameworks.includes(f));
223
- const hasMeta = frameworks.some((f) => metaFrameworks.includes(f));
224
- if (hasMeta)
225
- return "fullstack";
226
- if (hasFrontend && hasBackend)
227
- return "fullstack";
228
- if (hasFrontend)
229
- return "frontend";
230
- if (hasBackend)
231
- return "backend";
232
- return "unknown";
233
- }
234
- function detectProject(dir = process__default.cwd()) {
235
- const pkg = readPackageJson(dir);
236
- const frameworks = detectFrameworks(dir);
237
- const languages = detectLanguages(dir);
238
- const info = {
239
- name: pkg?.name || "unknown",
240
- type: "unknown",
241
- packageManager: detectPackageManager(dir),
242
- frameworks,
243
- buildTools: detectBuildTools(dir),
244
- testFrameworks: detectTestFrameworks(dir),
245
- cicd: detectCICDSystems(dir),
246
- languages,
247
- hasTypeScript: existsSync(join(dir, "tsconfig.json")),
248
- hasDocker: existsSync(join(dir, "Dockerfile")) || existsSync(join(dir, "docker-compose.yml")),
249
- hasMonorepo: existsSync(join(dir, "pnpm-workspace.yaml")) || existsSync(join(dir, "lerna.json")) || pkg?.workspaces != null,
250
- rootDir: dir
251
- };
252
- info.type = determineProjectType(info);
253
- return info;
254
- }
255
- function generateSuggestions(project) {
256
- const suggestions = {
257
- workflows: ["git"],
258
- mcpServices: [],
259
- agents: [],
260
- skills: [],
261
- subagentGroups: [],
262
- outputStyle: "technical-precise"
263
- };
264
- if (project.hasTypeScript || project.languages.includes("typescript")) {
265
- suggestions.subagentGroups.push("typescript-dev");
266
- suggestions.skills.push("ts-debug", "ts-refactor", "ts-test");
267
- }
268
- if (project.languages.includes("python")) {
269
- suggestions.subagentGroups.push("python-dev");
270
- suggestions.skills.push("py-debug", "py-refactor", "py-test");
271
- }
272
- if (project.frameworks.includes("nextjs") || project.frameworks.includes("nuxt")) {
273
- suggestions.workflows.push("frontend", "testing");
274
- suggestions.agents.push("ccjk-performance-expert");
275
- }
276
- if (project.frameworks.includes("express") || project.frameworks.includes("fastify") || project.frameworks.includes("nestjs")) {
277
- suggestions.workflows.push("backend", "testing");
278
- suggestions.agents.push("ccjk-security-expert");
279
- }
280
- if (project.hasDocker || project.cicd.length > 0) {
281
- suggestions.workflows.push("devops");
282
- suggestions.subagentGroups.push("devops-team");
283
- suggestions.skills.push("devops-docker", "devops-ci");
284
- }
285
- if (project.testFrameworks.length > 0) {
286
- suggestions.workflows.push("testing");
287
- suggestions.agents.push("ccjk-testing-specialist");
288
- }
289
- if (project.hasMonorepo) {
290
- suggestions.agents.push("ccjk-code-reviewer");
291
- }
292
- if (project.type === "frontend" || project.type === "fullstack") {
293
- suggestions.subagentGroups.push("seo-team");
294
- suggestions.skills.push("seo-meta", "seo-schema");
295
- }
296
- suggestions.subagentGroups.push("security-team");
297
- suggestions.workflows = [...new Set(suggestions.workflows)];
298
- suggestions.agents = [...new Set(suggestions.agents)];
299
- suggestions.skills = [...new Set(suggestions.skills)];
300
- suggestions.subagentGroups = [...new Set(suggestions.subagentGroups)];
301
- return suggestions;
302
- }
303
- function getProjectSummary(project) {
304
- const parts = [];
305
- parts.push(`Project: ${project.name}`);
306
- parts.push(`Type: ${project.type}`);
307
- if (project.languages.length > 0) {
308
- parts.push(`Languages: ${project.languages.join(", ")}`);
309
- }
310
- if (project.frameworks.length > 0) {
311
- parts.push(`Frameworks: ${project.frameworks.join(", ")}`);
312
- }
313
- if (project.buildTools.length > 0) {
314
- parts.push(`Build: ${project.buildTools.join(", ")}`);
315
- }
316
- if (project.testFrameworks.length > 0) {
317
- parts.push(`Testing: ${project.testFrameworks.join(", ")}`);
318
- }
319
- parts.push(`Package Manager: ${project.packageManager}`);
320
- const features = [];
321
- if (project.hasTypeScript)
322
- features.push("TypeScript");
323
- if (project.hasDocker)
324
- features.push("Docker");
325
- if (project.hasMonorepo)
326
- features.push("Monorepo");
327
- if (features.length > 0) {
328
- parts.push(`Features: ${features.join(", ")}`);
329
- }
330
- return parts.join("\n");
331
- }
332
-
333
- export { generateSuggestions as a, detectProject as d, getProjectSummary as g };
@@ -1,317 +0,0 @@
1
- import { readFileSync, existsSync, readdirSync } from 'node:fs';
2
- import { d as dirname, j as join, b as basename } from './ccjk.bQ7Dh1g4.mjs';
3
-
4
- const PRIORITY_KEYWORDS = {
5
- critical: "critical",
6
- CRITICAL: "critical",
7
- \u5173\u952E: "critical",
8
- high: "high",
9
- HIGH: "high",
10
- \u9AD8: "high",
11
- medium: "medium",
12
- MEDIUM: "medium",
13
- \u4E2D: "medium",
14
- low: "low",
15
- LOW: "low",
16
- \u4F4E: "low"
17
- };
18
- class SkillParser {
19
- /**
20
- * Parse a SKILL.md file
21
- *
22
- * @param filePath - Path to SKILL.md file
23
- * @returns Parsed skill document
24
- */
25
- parse(filePath) {
26
- const content = readFileSync(filePath, "utf-8");
27
- return this.parseContent(content, dirname(filePath));
28
- }
29
- /**
30
- * Parse SKILL.md content
31
- *
32
- * @param content - Raw markdown content
33
- * @param basePath - Base path for resolving references
34
- * @returns Parsed skill document
35
- */
36
- parseContent(content, basePath) {
37
- const lines = content.split("\n");
38
- const title = this.extractTitle(lines);
39
- const description = this.extractDescription(lines);
40
- const applicability = this.extractApplicability(content);
41
- const sections = this.extractSections(content);
42
- const rules = this.extractRules(content, basePath);
43
- const examples = this.extractExamples(content);
44
- return {
45
- title,
46
- description,
47
- applicability,
48
- sections,
49
- rules,
50
- examples,
51
- rawContent: content
52
- };
53
- }
54
- /**
55
- * Parse a skill directory (SKILL.md + references/)
56
- *
57
- * @param dirPath - Path to skill directory
58
- * @returns Parsed skill document with references
59
- */
60
- parseDirectory(dirPath) {
61
- const skillPath = join(dirPath, "SKILL.md");
62
- if (!existsSync(skillPath)) {
63
- throw new Error(`SKILL.md not found in ${dirPath}`);
64
- }
65
- const skill = this.parse(skillPath);
66
- const references = this.loadReferences(dirPath);
67
- return {
68
- ...skill,
69
- references
70
- };
71
- }
72
- // ==========================================================================
73
- // Extraction Methods
74
- // ==========================================================================
75
- /**
76
- * Extract title from markdown
77
- */
78
- extractTitle(lines) {
79
- for (const line of lines) {
80
- const match = line.match(/^#\s+(.+)$/);
81
- if (match) {
82
- return match[1].trim();
83
- }
84
- }
85
- return "Untitled Skill";
86
- }
87
- /**
88
- * Extract description from markdown
89
- */
90
- extractDescription(lines) {
91
- let inDescription = false;
92
- const descLines = [];
93
- for (const line of lines) {
94
- if (line.match(/^#\s+/)) {
95
- inDescription = true;
96
- continue;
97
- }
98
- if (line.match(/^##\s+/)) {
99
- break;
100
- }
101
- if (inDescription && line.trim()) {
102
- descLines.push(line);
103
- }
104
- }
105
- return descLines.join("\n").trim();
106
- }
107
- /**
108
- * Extract applicability section
109
- */
110
- extractApplicability(content) {
111
- const applicability = {
112
- taskTypes: [],
113
- fileTypes: [],
114
- contexts: []
115
- };
116
- const applicabilityMatch = content.match(
117
- /##\s*(?:When to Apply|Applicability|适用场景|何时使用)[^\n]*\n([\s\S]*?)(?=\n##|\n$|$)/i
118
- );
119
- if (applicabilityMatch) {
120
- const section = applicabilityMatch[1];
121
- const taskMatches = section.matchAll(/[-*]\s*(.+)/g);
122
- for (const match of taskMatches) {
123
- const task = match[1].trim();
124
- if (task) {
125
- applicability.taskTypes.push(task);
126
- }
127
- }
128
- }
129
- const fileTypeMatch = content.match(
130
- /(?:file types?|文件类型)[:\s]*([^\n]+)/i
131
- );
132
- if (fileTypeMatch) {
133
- applicability.fileTypes = fileTypeMatch[1].split(/[,,]/).map((t) => t.trim()).filter(Boolean);
134
- }
135
- return applicability;
136
- }
137
- /**
138
- * Extract sections from markdown
139
- */
140
- extractSections(content) {
141
- const sections = [];
142
- const lines = content.split("\n");
143
- let currentSection = null;
144
- let currentContent = [];
145
- let currentSubsections = [];
146
- for (const line of lines) {
147
- const h2Match = line.match(/^##\s+(.+)$/);
148
- if (h2Match) {
149
- if (currentSection) {
150
- currentSection.content = currentContent.join("\n").trim();
151
- currentSection.subsections = currentSubsections.length > 0 ? currentSubsections : void 0;
152
- sections.push(currentSection);
153
- }
154
- currentSection = {
155
- title: h2Match[1].trim(),
156
- content: "",
157
- priority: this.detectPriority(h2Match[1])
158
- };
159
- currentContent = [];
160
- currentSubsections = [];
161
- continue;
162
- }
163
- const h3Match = line.match(/^###\s+(.+)$/);
164
- if (h3Match && currentSection) {
165
- currentSubsections.push({
166
- title: h3Match[1].trim(),
167
- content: "",
168
- // Will be filled by subsequent lines
169
- priority: this.detectPriority(h3Match[1])
170
- });
171
- continue;
172
- }
173
- if (currentSection) {
174
- currentContent.push(line);
175
- }
176
- }
177
- if (currentSection) {
178
- currentSection.content = currentContent.join("\n").trim();
179
- currentSection.subsections = currentSubsections.length > 0 ? currentSubsections : void 0;
180
- sections.push(currentSection);
181
- }
182
- return sections;
183
- }
184
- /**
185
- * Extract rules from markdown
186
- */
187
- extractRules(content, basePath) {
188
- const rules = [];
189
- const rulePattern = /##?\s*(?:`([a-z]+-\d+)`|(\w+-\d+))[:\s]*(.+?)(?=\n##?|\n##|$)/gs;
190
- let match;
191
- while ((match = rulePattern.exec(content)) !== null) {
192
- const id = match[1] || match[2];
193
- const titleAndContent = match[3];
194
- const titleMatch = titleAndContent.match(/^[:\s]*(.+)(?:\n|$)/);
195
- const title = titleMatch ? titleMatch[1].trim() : id;
196
- const category = id.split("-")[0];
197
- const priority = this.detectPriority(titleAndContent);
198
- const description = titleAndContent.replace(/^[:\s]*(.+)(?:\n|$)/, "").trim();
199
- let referencePath;
200
- if (basePath) {
201
- const refPath = join(basePath, "references", "rules", `${id}.md`);
202
- if (existsSync(refPath)) {
203
- referencePath = refPath;
204
- }
205
- }
206
- rules.push({
207
- id,
208
- title,
209
- category,
210
- priority,
211
- description,
212
- referencePath
213
- });
214
- }
215
- const numberedPattern = /(?:^|\n)(\d+)\.\s+\*\*(.+?)\*\*[:\s]*(.+?)(?=\n\d+\.|\n##|$)/gs;
216
- while ((match = numberedPattern.exec(content)) !== null) {
217
- const num = match[1];
218
- const title = match[2].trim();
219
- const description = match[3].trim();
220
- const id = `rule-${num.padStart(3, "0")}`;
221
- rules.push({
222
- id,
223
- title,
224
- category: "general",
225
- priority: this.detectPriority(description),
226
- description
227
- });
228
- }
229
- return rules;
230
- }
231
- /**
232
- * Extract code examples from markdown
233
- */
234
- extractExamples(content) {
235
- const examples = [];
236
- const examplePattern = /##?\s*(?:Example|示例|案例)[:\s]*(.+?)(?=\n##?|\n##|$)/gis;
237
- let match;
238
- while ((match = examplePattern.exec(content)) !== null) {
239
- const exampleContent = match[1];
240
- const inputMatch = exampleContent.match(/(?:Input|输入)[:\s]*(.+?)(?=Output|输出|$)/is);
241
- const outputMatch = exampleContent.match(/(?:Output|输出)[:\s]*(.+)$/is);
242
- if (inputMatch || outputMatch) {
243
- examples.push({
244
- title: "Example",
245
- input: inputMatch ? inputMatch[1].trim() : "",
246
- output: outputMatch ? outputMatch[1].trim() : ""
247
- });
248
- }
249
- }
250
- return examples;
251
- }
252
- /**
253
- * Extract code blocks from content
254
- */
255
- extractCodeBlocks(content) {
256
- const blocks = [];
257
- const codePattern = /```(\w+)?\n([\s\S]*?)```/g;
258
- let match;
259
- while ((match = codePattern.exec(content)) !== null) {
260
- blocks.push({
261
- language: match[1] || "text",
262
- code: match[2].trim()
263
- });
264
- }
265
- return blocks;
266
- }
267
- /**
268
- * Load reference documents from references/ directory
269
- */
270
- loadReferences(dirPath) {
271
- const references = [];
272
- const refsPath = join(dirPath, "references");
273
- if (!existsSync(refsPath)) {
274
- return references;
275
- }
276
- const loadDir = (dir, prefix = "") => {
277
- const entries = readdirSync(dir, { withFileTypes: true });
278
- for (const entry of entries) {
279
- const fullPath = join(dir, entry.name);
280
- if (entry.isDirectory()) {
281
- loadDir(fullPath, `${prefix}${entry.name}/`);
282
- } else if (entry.name.endsWith(".md")) {
283
- const content = readFileSync(fullPath, "utf-8");
284
- const title = this.extractTitle(content.split("\n")) || basename(entry.name, ".md");
285
- references.push({
286
- path: `${prefix}${entry.name}`,
287
- title,
288
- content
289
- });
290
- }
291
- }
292
- };
293
- loadDir(refsPath);
294
- return references;
295
- }
296
- /**
297
- * Detect priority from text
298
- */
299
- detectPriority(text) {
300
- const lowerText = text.toLowerCase();
301
- for (const [keyword, priority] of Object.entries(PRIORITY_KEYWORDS)) {
302
- if (lowerText.includes(keyword.toLowerCase())) {
303
- return priority;
304
- }
305
- }
306
- return "medium";
307
- }
308
- }
309
- let parserInstance = null;
310
- function getSkillParser() {
311
- if (!parserInstance) {
312
- parserInstance = new SkillParser();
313
- }
314
- return parserInstance;
315
- }
316
-
317
- export { getSkillParser as g };