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.
- package/LICENSE +1 -1
- package/README.md +58 -341
- package/dist/cli.js +59 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/detect.js +15 -0
- package/dist/commands/detect.js.map +1 -0
- package/dist/commands/doctor.js +68 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/git-install.js +50 -0
- package/dist/commands/git-install.js.map +1 -0
- package/dist/commands/init.js +102 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/mcp.js +66 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/menu.js +33 -0
- package/dist/commands/menu.js.map +1 -0
- package/dist/core/detect.js +24 -0
- package/dist/core/detect.js.map +1 -0
- package/dist/core/lint.js +49 -0
- package/dist/core/lint.js.map +1 -0
- package/dist/core/mcp.js +41 -0
- package/dist/core/mcp.js.map +1 -0
- package/dist/core/paths.js +9 -0
- package/dist/core/paths.js.map +1 -0
- package/dist/core/providers.js +53 -0
- package/dist/core/providers.js.map +1 -0
- package/dist/core/settings.js +31 -0
- package/dist/core/settings.js.map +1 -0
- package/dist/core/slash-templates.js +56 -0
- package/dist/core/slash-templates.js.map +1 -0
- package/dist/core/tools.js +27 -0
- package/dist/core/tools.js.map +1 -0
- package/package.json +43 -164
- package/README.HONEST.md +0 -176
- package/README.en.md +0 -67
- package/README.ja.md +0 -67
- package/README.ko.md +0 -67
- package/README.zh-CN.md +0 -86
- package/bin/ccjk.mjs +0 -5
- package/bin/ccjk.ts +0 -222
- package/dist/chunks/agent-teams.mjs +0 -145
- package/dist/chunks/agent.mjs +0 -1439
- package/dist/chunks/agents.mjs +0 -3783
- package/dist/chunks/api-cli.mjs +0 -135
- package/dist/chunks/api-config-selector.mjs +0 -159
- package/dist/chunks/api-providers.mjs +0 -144
- package/dist/chunks/api.mjs +0 -115
- package/dist/chunks/auto-bootstrap.mjs +0 -358
- package/dist/chunks/auto-fixer.mjs +0 -95
- package/dist/chunks/auto-updater.mjs +0 -507
- package/dist/chunks/banner.mjs +0 -173
- package/dist/chunks/bash.mjs +0 -187
- package/dist/chunks/boost.mjs +0 -474
- package/dist/chunks/brain-config.mjs +0 -75
- package/dist/chunks/brain-status.mjs +0 -89
- package/dist/chunks/ccjk-agents.mjs +0 -416
- package/dist/chunks/ccjk-all.mjs +0 -1046
- package/dist/chunks/ccjk-config.mjs +0 -445
- package/dist/chunks/ccjk-hooks.mjs +0 -1074
- package/dist/chunks/ccjk-mcp.mjs +0 -763
- package/dist/chunks/ccjk-setup.mjs +0 -765
- package/dist/chunks/ccjk-skills.mjs +0 -518
- package/dist/chunks/ccr.mjs +0 -109
- package/dist/chunks/ccu.mjs +0 -40
- package/dist/chunks/check-updates.mjs +0 -117
- package/dist/chunks/claude-code-incremental-manager.mjs +0 -761
- package/dist/chunks/claude-config.mjs +0 -606
- package/dist/chunks/claude-config2.mjs +0 -62
- package/dist/chunks/claude-wrapper.mjs +0 -85
- package/dist/chunks/clavue-config.mjs +0 -1454
- package/dist/chunks/cleanup-migration.mjs +0 -20
- package/dist/chunks/cli-hook.mjs +0 -4096
- package/dist/chunks/cloud-sync.mjs +0 -29
- package/dist/chunks/code-type-resolver.mjs +0 -880
- package/dist/chunks/codex-config-switch.mjs +0 -452
- package/dist/chunks/codex-provider-manager.mjs +0 -238
- package/dist/chunks/codex-uninstaller.mjs +0 -404
- package/dist/chunks/codex.mjs +0 -2141
- package/dist/chunks/commands.mjs +0 -108
- package/dist/chunks/commands2.mjs +0 -421
- package/dist/chunks/commit.mjs +0 -140
- package/dist/chunks/completion.mjs +0 -517
- package/dist/chunks/config-consolidator.mjs +0 -172
- package/dist/chunks/config-switch.mjs +0 -334
- package/dist/chunks/config.mjs +0 -558
- package/dist/chunks/config2.mjs +0 -484
- package/dist/chunks/config3.mjs +0 -486
- package/dist/chunks/constants.mjs +0 -323
- package/dist/chunks/context-opt.mjs +0 -444
- package/dist/chunks/context.mjs +0 -974
- package/dist/chunks/dashboard.mjs +0 -481
- package/dist/chunks/doctor.mjs +0 -1301
- package/dist/chunks/eval.mjs +0 -502
- package/dist/chunks/evolution.mjs +0 -322
- package/dist/chunks/features.mjs +0 -715
- package/dist/chunks/fish.mjs +0 -181
- package/dist/chunks/fs-operations.mjs +0 -180
- package/dist/chunks/health-alerts.mjs +0 -830
- package/dist/chunks/help.mjs +0 -341
- package/dist/chunks/hook-installer.mjs +0 -48
- package/dist/chunks/impact.mjs +0 -651
- package/dist/chunks/index.mjs +0 -23
- package/dist/chunks/index10.mjs +0 -19
- package/dist/chunks/index11.mjs +0 -1171
- package/dist/chunks/index12.mjs +0 -218
- package/dist/chunks/index13.mjs +0 -679
- package/dist/chunks/index14.mjs +0 -1009
- package/dist/chunks/index15.mjs +0 -194
- package/dist/chunks/index2.mjs +0 -7637
- package/dist/chunks/index3.mjs +0 -171
- package/dist/chunks/index4.mjs +0 -26
- package/dist/chunks/index5.mjs +0 -19
- package/dist/chunks/index6.mjs +0 -19092
- package/dist/chunks/index7.mjs +0 -616
- package/dist/chunks/index8.mjs +0 -1602
- package/dist/chunks/index9.mjs +0 -5384
- package/dist/chunks/init.mjs +0 -1911
- package/dist/chunks/installer.mjs +0 -757
- package/dist/chunks/installer2.mjs +0 -103
- package/dist/chunks/interview.mjs +0 -2927
- package/dist/chunks/json-config.mjs +0 -60
- package/dist/chunks/linux.mjs +0 -3863
- package/dist/chunks/macos.mjs +0 -69
- package/dist/chunks/main.mjs +0 -635
- package/dist/chunks/manager.mjs +0 -1048
- package/dist/chunks/marketplace.mjs +0 -265
- package/dist/chunks/mcp-cli.mjs +0 -205
- package/dist/chunks/mcp-performance.mjs +0 -187
- package/dist/chunks/mcp.mjs +0 -667
- package/dist/chunks/memory-check.mjs +0 -2973
- package/dist/chunks/memory-paths.mjs +0 -259
- package/dist/chunks/memory-sync.mjs +0 -209
- package/dist/chunks/memory.mjs +0 -354
- package/dist/chunks/metrics-display.mjs +0 -153
- package/dist/chunks/monitor.mjs +0 -1856
- package/dist/chunks/notification.mjs +0 -1864
- package/dist/chunks/onboarding.mjs +0 -386
- package/dist/chunks/package.mjs +0 -3
- package/dist/chunks/paradigm.mjs +0 -74
- package/dist/chunks/permission-manager.mjs +0 -250
- package/dist/chunks/permissions.mjs +0 -265
- package/dist/chunks/persistence-manager.mjs +0 -801
- package/dist/chunks/persistence.mjs +0 -707
- package/dist/chunks/platform.mjs +0 -395
- package/dist/chunks/plugin.mjs +0 -1936
- package/dist/chunks/powershell.mjs +0 -213
- package/dist/chunks/prompts.mjs +0 -244
- package/dist/chunks/providers.mjs +0 -263
- package/dist/chunks/quick-actions.mjs +0 -335
- package/dist/chunks/quick-provider.mjs +0 -755
- package/dist/chunks/quick-setup.mjs +0 -421
- package/dist/chunks/remote.mjs +0 -497
- package/dist/chunks/research.mjs +0 -1904
- package/dist/chunks/rollback.mjs +0 -38
- package/dist/chunks/session-manager.mjs +0 -1371
- package/dist/chunks/session.mjs +0 -878
- package/dist/chunks/sessions.mjs +0 -106
- package/dist/chunks/silent-updater.mjs +0 -396
- package/dist/chunks/simple-config.mjs +0 -122
- package/dist/chunks/skill.mjs +0 -117
- package/dist/chunks/skill2.mjs +0 -9052
- package/dist/chunks/skills-sync.mjs +0 -1343
- package/dist/chunks/skills.mjs +0 -577
- package/dist/chunks/slash-commands.mjs +0 -208
- package/dist/chunks/smart-guide.mjs +0 -247
- package/dist/chunks/snapshot.mjs +0 -58
- package/dist/chunks/startup.mjs +0 -487
- package/dist/chunks/stats.mjs +0 -191
- package/dist/chunks/status.mjs +0 -471
- package/dist/chunks/team.mjs +0 -63
- package/dist/chunks/thinking.mjs +0 -626
- package/dist/chunks/trace.mjs +0 -57
- package/dist/chunks/uninstall.mjs +0 -852
- package/dist/chunks/update.mjs +0 -174
- package/dist/chunks/upgrade-manager.mjs +0 -204
- package/dist/chunks/upgrade.mjs +0 -133
- package/dist/chunks/version-checker.mjs +0 -891
- package/dist/chunks/vim.mjs +0 -903
- package/dist/chunks/windows.mjs +0 -14
- package/dist/chunks/workflows.mjs +0 -633
- package/dist/chunks/wsl.mjs +0 -129
- package/dist/chunks/zero-config.mjs +0 -871
- package/dist/chunks/zsh.mjs +0 -182
- package/dist/cli.d.mts +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.mjs +0 -2684
- package/dist/i18n/locales/en/agent-teams.json +0 -18
- package/dist/i18n/locales/en/agentBrowser.json +0 -80
- package/dist/i18n/locales/en/agents.json +0 -135
- package/dist/i18n/locales/en/api.json +0 -63
- package/dist/i18n/locales/en/ccjk-agents.json +0 -33
- package/dist/i18n/locales/en/ccjk-all.json +0 -23
- package/dist/i18n/locales/en/ccjk-skills.json +0 -22
- package/dist/i18n/locales/en/ccjk.json +0 -276
- package/dist/i18n/locales/en/ccr.json +0 -65
- package/dist/i18n/locales/en/claude-md.json +0 -73
- package/dist/i18n/locales/en/cli.json +0 -148
- package/dist/i18n/locales/en/cloud-setup.json +0 -31
- package/dist/i18n/locales/en/cloud-sync.json +0 -147
- package/dist/i18n/locales/en/cloud.json +0 -40
- package/dist/i18n/locales/en/cloudPlugins.json +0 -118
- package/dist/i18n/locales/en/codex.json +0 -184
- package/dist/i18n/locales/en/cometix.json +0 -29
- package/dist/i18n/locales/en/common.json +0 -68
- package/dist/i18n/locales/en/config.json +0 -108
- package/dist/i18n/locales/en/configuration.json +0 -236
- package/dist/i18n/locales/en/context.json +0 -85
- package/dist/i18n/locales/en/dashboard.json +0 -78
- package/dist/i18n/locales/en/errors.json +0 -26
- package/dist/i18n/locales/en/evolution.json +0 -54
- package/dist/i18n/locales/en/hooks.json +0 -74
- package/dist/i18n/locales/en/hooksSync.json +0 -133
- package/dist/i18n/locales/en/installation.json +0 -83
- package/dist/i18n/locales/en/interview.json +0 -104
- package/dist/i18n/locales/en/language.json +0 -19
- package/dist/i18n/locales/en/lsp.json +0 -78
- package/dist/i18n/locales/en/marketplace.json +0 -116
- package/dist/i18n/locales/en/mcp.json +0 -180
- package/dist/i18n/locales/en/memory.json +0 -23
- package/dist/i18n/locales/en/menu.json +0 -299
- package/dist/i18n/locales/en/multi-config.json +0 -79
- package/dist/i18n/locales/en/notification.json +0 -307
- package/dist/i18n/locales/en/permissions.json +0 -95
- package/dist/i18n/locales/en/persistence.json +0 -127
- package/dist/i18n/locales/en/plugins.json +0 -146
- package/dist/i18n/locales/en/quick-actions.json +0 -78
- package/dist/i18n/locales/en/registry.json +0 -54
- package/dist/i18n/locales/en/remote.json +0 -93
- package/dist/i18n/locales/en/sandbox.json +0 -44
- package/dist/i18n/locales/en/setup.json +0 -44
- package/dist/i18n/locales/en/shencha.json +0 -14
- package/dist/i18n/locales/en/skills.json +0 -100
- package/dist/i18n/locales/en/skillsSync.json +0 -74
- package/dist/i18n/locales/en/smartGuide.json +0 -49
- package/dist/i18n/locales/en/stats.json +0 -20
- package/dist/i18n/locales/en/subagent.json +0 -69
- package/dist/i18n/locales/en/superpowers.json +0 -117
- package/dist/i18n/locales/en/team.json +0 -7
- package/dist/i18n/locales/en/thinking.json +0 -65
- package/dist/i18n/locales/en/tools.json +0 -42
- package/dist/i18n/locales/en/uninstall.json +0 -56
- package/dist/i18n/locales/en/updater.json +0 -29
- package/dist/i18n/locales/en/vim.json +0 -169
- package/dist/i18n/locales/en/workflow.json +0 -55
- package/dist/i18n/locales/en/workspace.json +0 -108
- package/dist/i18n/locales/zh-CN/agent-teams.json +0 -18
- package/dist/i18n/locales/zh-CN/agentBrowser.json +0 -80
- package/dist/i18n/locales/zh-CN/agents.json +0 -135
- package/dist/i18n/locales/zh-CN/api.json +0 -63
- package/dist/i18n/locales/zh-CN/ccjk-agents.json +0 -33
- package/dist/i18n/locales/zh-CN/ccjk-all.json +0 -23
- package/dist/i18n/locales/zh-CN/ccjk-skills.json +0 -22
- package/dist/i18n/locales/zh-CN/ccjk.json +0 -276
- package/dist/i18n/locales/zh-CN/ccr.json +0 -65
- package/dist/i18n/locales/zh-CN/claude-md.json +0 -73
- package/dist/i18n/locales/zh-CN/cli.json +0 -148
- package/dist/i18n/locales/zh-CN/cloud-setup.json +0 -31
- package/dist/i18n/locales/zh-CN/cloud-sync.json +0 -147
- package/dist/i18n/locales/zh-CN/cloud.json +0 -40
- package/dist/i18n/locales/zh-CN/cloudPlugins.json +0 -118
- package/dist/i18n/locales/zh-CN/codex.json +0 -184
- package/dist/i18n/locales/zh-CN/cometix.json +0 -29
- package/dist/i18n/locales/zh-CN/common.json +0 -68
- package/dist/i18n/locales/zh-CN/config.json +0 -108
- package/dist/i18n/locales/zh-CN/configuration.json +0 -234
- package/dist/i18n/locales/zh-CN/context.json +0 -85
- package/dist/i18n/locales/zh-CN/dashboard.json +0 -78
- package/dist/i18n/locales/zh-CN/errors.json +0 -26
- package/dist/i18n/locales/zh-CN/evolution.json +0 -54
- package/dist/i18n/locales/zh-CN/hooks.json +0 -74
- package/dist/i18n/locales/zh-CN/hooksSync.json +0 -133
- package/dist/i18n/locales/zh-CN/installation.json +0 -83
- package/dist/i18n/locales/zh-CN/interview.json +0 -104
- package/dist/i18n/locales/zh-CN/language.json +0 -19
- package/dist/i18n/locales/zh-CN/lsp.json +0 -78
- package/dist/i18n/locales/zh-CN/marketplace.json +0 -116
- package/dist/i18n/locales/zh-CN/mcp.json +0 -180
- package/dist/i18n/locales/zh-CN/memory.json +0 -23
- package/dist/i18n/locales/zh-CN/menu.json +0 -299
- package/dist/i18n/locales/zh-CN/multi-config.json +0 -79
- package/dist/i18n/locales/zh-CN/notification.json +0 -307
- package/dist/i18n/locales/zh-CN/permissions.json +0 -95
- package/dist/i18n/locales/zh-CN/persistence.json +0 -127
- package/dist/i18n/locales/zh-CN/plugins.json +0 -146
- package/dist/i18n/locales/zh-CN/quick-actions.json +0 -78
- package/dist/i18n/locales/zh-CN/registry.json +0 -54
- package/dist/i18n/locales/zh-CN/remote.json +0 -93
- package/dist/i18n/locales/zh-CN/sandbox.json +0 -44
- package/dist/i18n/locales/zh-CN/setup.json +0 -44
- package/dist/i18n/locales/zh-CN/shencha.json +0 -14
- package/dist/i18n/locales/zh-CN/skills.json +0 -100
- package/dist/i18n/locales/zh-CN/skillsSync.json +0 -74
- package/dist/i18n/locales/zh-CN/smartGuide.json +0 -49
- package/dist/i18n/locales/zh-CN/stats.json +0 -20
- package/dist/i18n/locales/zh-CN/subagent.json +0 -69
- package/dist/i18n/locales/zh-CN/superpowers.json +0 -117
- package/dist/i18n/locales/zh-CN/team.json +0 -7
- package/dist/i18n/locales/zh-CN/thinking.json +0 -65
- package/dist/i18n/locales/zh-CN/tools.json +0 -42
- package/dist/i18n/locales/zh-CN/uninstall.json +0 -56
- package/dist/i18n/locales/zh-CN/updater.json +0 -29
- package/dist/i18n/locales/zh-CN/vim.json +0 -169
- package/dist/i18n/locales/zh-CN/workflow.json +0 -55
- package/dist/i18n/locales/zh-CN/workspace.json +0 -108
- package/dist/index.d.mts +0 -5658
- package/dist/index.d.ts +0 -5658
- package/dist/index.mjs +0 -3732
- package/dist/shared/ccjk.5bEolFrk.mjs +0 -254
- package/dist/shared/ccjk.8oaxX4iR.mjs +0 -90
- package/dist/shared/ccjk.B2U7DsPy.mjs +0 -31
- package/dist/shared/ccjk.B2f-cwUP.mjs +0 -468
- package/dist/shared/ccjk.BAGoDD49.mjs +0 -36
- package/dist/shared/ccjk.BBtCGd_g.mjs +0 -899
- package/dist/shared/ccjk.BFQ7yr5S.mjs +0 -16
- package/dist/shared/ccjk.BLsIiTqO.mjs +0 -449
- package/dist/shared/ccjk.BXv8aYs1.mjs +0 -170
- package/dist/shared/ccjk.BnsY5WxD.mjs +0 -171
- package/dist/shared/ccjk.BoApaI4j.mjs +0 -28
- package/dist/shared/ccjk.Bq8TqZG_.mjs +0 -189
- package/dist/shared/ccjk.BtrioX1Z.mjs +0 -25
- package/dist/shared/ccjk.Bx_rmYfN.mjs +0 -69
- package/dist/shared/ccjk.BzPbSEP2.mjs +0 -115
- package/dist/shared/ccjk.C0WLUnFV.mjs +0 -293
- package/dist/shared/ccjk.C1hANZTu.mjs +0 -19
- package/dist/shared/ccjk.C2jHOZVP.mjs +0 -52
- package/dist/shared/ccjk.CNhnT6uQ.mjs +0 -636
- package/dist/shared/ccjk.COweQ1RR.mjs +0 -5
- package/dist/shared/ccjk.CfKKcvWy.mjs +0 -126
- package/dist/shared/ccjk.Cjgrln_h.mjs +0 -297
- package/dist/shared/ccjk.CoCHVXl3.mjs +0 -3951
- package/dist/shared/ccjk.CwGZSTAK.mjs +0 -319
- package/dist/shared/ccjk.CxpGa6MC.mjs +0 -2724
- package/dist/shared/ccjk.D-magaEx.mjs +0 -763
- package/dist/shared/ccjk.D0g2ABGg.mjs +0 -171
- package/dist/shared/ccjk.D6ycHbak.mjs +0 -270
- package/dist/shared/ccjk.D75wivnp.mjs +0 -142
- package/dist/shared/ccjk.DDL-4C-k.mjs +0 -100
- package/dist/shared/ccjk.DFRPtmK_.mjs +0 -75
- package/dist/shared/ccjk.DMV3x5Sd.mjs +0 -299
- package/dist/shared/ccjk.DZ2LLOa-.mjs +0 -2195
- package/dist/shared/ccjk.DbigonEQ.mjs +0 -698
- package/dist/shared/ccjk.DcMvE7lf.mjs +0 -618
- package/dist/shared/ccjk.DeWpAShp.mjs +0 -1828
- package/dist/shared/ccjk.DhJ1kyDR.mjs +0 -30
- package/dist/shared/ccjk.DlTXS9rP.mjs +0 -224
- package/dist/shared/ccjk.DopKzo3z.mjs +0 -305
- package/dist/shared/ccjk.DsZsc4LR.mjs +0 -1280
- package/dist/shared/ccjk.DuzJZlgj.mjs +0 -418
- package/dist/shared/ccjk.Dxgd2vjc.mjs +0 -444
- package/dist/shared/ccjk.J8YiPsOw.mjs +0 -259
- package/dist/shared/ccjk.KfSWcGlE.mjs +0 -38
- package/dist/shared/ccjk.L7yC58_i.mjs +0 -225
- package/dist/shared/ccjk.MwtjAULc.mjs +0 -1447
- package/dist/shared/ccjk.OJKHVSOb.mjs +0 -2005
- package/dist/shared/ccjk.OTnevPNE.mjs +0 -225
- package/dist/shared/ccjk.RyizuzOI.mjs +0 -21
- package/dist/shared/ccjk.T_cX87dY.mjs +0 -15
- package/dist/shared/ccjk.bQ7Dh1g4.mjs +0 -249
- package/dist/shared/ccjk.gDEDGD_t.mjs +0 -38
- package/dist/shared/ccjk.hoqrwWdN.mjs +0 -333
- package/dist/shared/ccjk.i_vn-9C3.mjs +0 -317
- package/dist/shared/ccjk.lG3ccFjm.mjs +0 -885
- package/dist/shared/ccjk.wLJHO0Af.mjs +0 -244
- package/dist/shared/ccjk.y-a_1vK4.mjs +0 -5127
- package/dist/templates/agents/README.md +0 -78
- package/dist/templates/agents/fullstack-developer.json +0 -70
- package/dist/templates/agents/go-expert.json +0 -69
- package/dist/templates/agents/index.json +0 -64
- package/dist/templates/agents/python-expert.json +0 -69
- package/dist/templates/agents/react-specialist.json +0 -69
- package/dist/templates/agents/testing-automation-expert.json +0 -70
- package/dist/templates/agents/typescript-architect.json +0 -69
- package/dist/templates/claude-code/common/settings.json +0 -109
- package/dist/templates/common/error-prevention.md +0 -267
- package/dist/templates/common/karpathy-baseline.md +0 -83
- package/dist/templates/common/output-styles/zh-CN/carmack-mode.md +0 -381
- package/dist/templates/common/output-styles/zh-CN/codex-rigor-mode.md +0 -114
- package/dist/templates/common/output-styles/zh-CN/dhh-mode.md +0 -265
- package/dist/templates/common/output-styles/zh-CN/evan-you-mode.md +0 -539
- package/dist/templates/common/output-styles/zh-CN/jobs-mode.md +0 -369
- package/dist/templates/common/output-styles/zh-CN/linus-mode.md +0 -135
- package/dist/templates/common/output-styles/zh-CN/uncle-bob-mode.md +0 -221
- package/dist/templates/common/workflow/continuousDelivery/en/continuous-delivery.md +0 -628
- package/dist/templates/common/workflow/continuousDelivery/zh-CN/continuous-delivery.md +0 -628
- package/dist/templates/common/workflow/essential/en/agents/ccjk-config-agent.md +0 -187
- package/dist/templates/common/workflow/essential/en/agents/ccjk-mcp-agent.md +0 -191
- package/dist/templates/common/workflow/essential/en/agents/ccjk-skill-agent.md +0 -249
- package/dist/templates/common/workflow/essential/en/agents/ccjk-workflow-agent.md +0 -277
- package/dist/templates/common/workflow/essential/en/agents/get-current-datetime.md +0 -29
- package/dist/templates/common/workflow/essential/en/agents/init-architect.md +0 -115
- package/dist/templates/common/workflow/essential/en/agents/ui-ux-designer.md +0 -91
- package/dist/templates/common/workflow/essential/en/feat.md +0 -92
- package/dist/templates/common/workflow/essential/en/goal.md +0 -147
- package/dist/templates/common/workflow/essential/en/init-project.md +0 -53
- package/dist/templates/common/workflow/essential/zh-CN/agents/get-current-datetime.md +0 -29
- package/dist/templates/common/workflow/essential/zh-CN/agents/init-architect.md +0 -115
- package/dist/templates/common/workflow/essential/zh-CN/agents/ui-ux-designer.md +0 -91
- package/dist/templates/common/workflow/essential/zh-CN/feat.md +0 -315
- package/dist/templates/common/workflow/essential/zh-CN/goal.md +0 -146
- package/dist/templates/common/workflow/essential/zh-CN/init-project.md +0 -53
- package/dist/templates/common/workflow/git/en/git-cleanBranches.md +0 -102
- package/dist/templates/common/workflow/git/en/git-commit.md +0 -205
- package/dist/templates/common/workflow/git/en/git-rollback.md +0 -90
- package/dist/templates/common/workflow/git/en/git-worktree.md +0 -276
- package/dist/templates/common/workflow/git/zh-CN/git-cleanBranches.md +0 -102
- package/dist/templates/common/workflow/git/zh-CN/git-commit.md +0 -205
- package/dist/templates/common/workflow/git/zh-CN/git-rollback.md +0 -90
- package/dist/templates/common/workflow/git/zh-CN/git-worktree.md +0 -276
- package/dist/templates/common/workflow/interview/en/interview.md +0 -67
- package/dist/templates/common/workflow/interview/zh-CN/interview.md +0 -67
- package/dist/templates/common/workflow/linearMethod/en/linear-method.md +0 -651
- package/dist/templates/common/workflow/linearMethod/zh-CN/linear-method.md +0 -752
- package/dist/templates/common/workflow/refactoringMaster/en/refactoring-master.md +0 -516
- package/dist/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +0 -812
- package/dist/templates/common/workflow/sixStep/en/workflow.md +0 -83
- package/dist/templates/common/workflow/sixStep/zh-CN/workflow.md +0 -359
- package/dist/templates/common/workflow/specFirstTDD/en/spec-first-tdd.md +0 -364
- package/dist/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +0 -366
- package/dist/templates/hooks/README.md +0 -212
- package/dist/templates/hooks/git-workflow-hooks.md +0 -551
- package/dist/templates/hooks/post-test/coverage.json +0 -21
- package/dist/templates/hooks/post-test/summary.json +0 -21
- package/dist/templates/hooks/post-test-coverage.md +0 -434
- package/dist/templates/hooks/pre-commit/eslint.json +0 -22
- package/dist/templates/hooks/pre-commit/prettier.json +0 -22
- package/dist/templates/hooks/pre-commit-black.md +0 -274
- package/dist/templates/hooks/pre-commit-eslint.md +0 -153
- package/dist/templates/hooks/pre-commit-gofmt.md +0 -284
- package/dist/templates/hooks/pre-commit-prettier.md +0 -212
- package/dist/templates/hooks/pre-commit-type-check.md +0 -377
- package/dist/templates/skills/ccjk-init.md +0 -154
- package/dist/templates/skills/ccjk-mcp-setup.md +0 -205
- package/dist/templates/skills/ccjk-troubleshoot.md +0 -228
- package/dist/templates/skills/django-patterns.md +0 -1016
- package/dist/templates/skills/git-workflow.md +0 -748
- package/dist/templates/skills/go-idioms.md +0 -963
- package/dist/templates/skills/index.json +0 -132
- package/dist/templates/skills/nextjs-optimization.md +0 -694
- package/dist/templates/skills/python-pep8.md +0 -852
- package/dist/templates/skills/react-patterns.md +0 -686
- package/dist/templates/skills/rust-patterns.md +0 -1057
- package/dist/templates/skills/security-best-practices.md +0 -1413
- package/dist/templates/skills/testing-best-practices.md +0 -1315
- package/dist/templates/skills/ts-best-practices.md +0 -354
- package/templates/agents/README.md +0 -78
- package/templates/agents/fullstack-developer.json +0 -70
- package/templates/agents/go-expert.json +0 -69
- package/templates/agents/index.json +0 -64
- package/templates/agents/python-expert.json +0 -69
- package/templates/agents/react-specialist.json +0 -69
- package/templates/agents/testing-automation-expert.json +0 -70
- package/templates/agents/typescript-architect.json +0 -69
- package/templates/claude-code/common/settings.json +0 -109
- package/templates/common/error-prevention.md +0 -267
- package/templates/common/karpathy-baseline.md +0 -83
- package/templates/common/output-styles/zh-CN/carmack-mode.md +0 -381
- package/templates/common/output-styles/zh-CN/codex-rigor-mode.md +0 -114
- package/templates/common/output-styles/zh-CN/dhh-mode.md +0 -265
- package/templates/common/output-styles/zh-CN/evan-you-mode.md +0 -539
- package/templates/common/output-styles/zh-CN/jobs-mode.md +0 -369
- package/templates/common/output-styles/zh-CN/linus-mode.md +0 -135
- package/templates/common/output-styles/zh-CN/uncle-bob-mode.md +0 -221
- package/templates/common/workflow/continuousDelivery/en/continuous-delivery.md +0 -628
- package/templates/common/workflow/continuousDelivery/zh-CN/continuous-delivery.md +0 -628
- package/templates/common/workflow/essential/en/agents/ccjk-config-agent.md +0 -187
- package/templates/common/workflow/essential/en/agents/ccjk-mcp-agent.md +0 -191
- package/templates/common/workflow/essential/en/agents/ccjk-skill-agent.md +0 -249
- package/templates/common/workflow/essential/en/agents/ccjk-workflow-agent.md +0 -277
- package/templates/common/workflow/essential/en/agents/get-current-datetime.md +0 -29
- package/templates/common/workflow/essential/en/agents/init-architect.md +0 -115
- package/templates/common/workflow/essential/en/agents/ui-ux-designer.md +0 -91
- package/templates/common/workflow/essential/en/feat.md +0 -92
- package/templates/common/workflow/essential/en/goal.md +0 -147
- package/templates/common/workflow/essential/en/init-project.md +0 -53
- package/templates/common/workflow/essential/zh-CN/agents/get-current-datetime.md +0 -29
- package/templates/common/workflow/essential/zh-CN/agents/init-architect.md +0 -115
- package/templates/common/workflow/essential/zh-CN/agents/ui-ux-designer.md +0 -91
- package/templates/common/workflow/essential/zh-CN/feat.md +0 -315
- package/templates/common/workflow/essential/zh-CN/goal.md +0 -146
- package/templates/common/workflow/essential/zh-CN/init-project.md +0 -53
- package/templates/common/workflow/git/en/git-cleanBranches.md +0 -102
- package/templates/common/workflow/git/en/git-commit.md +0 -205
- package/templates/common/workflow/git/en/git-rollback.md +0 -90
- package/templates/common/workflow/git/en/git-worktree.md +0 -276
- package/templates/common/workflow/git/zh-CN/git-cleanBranches.md +0 -102
- package/templates/common/workflow/git/zh-CN/git-commit.md +0 -205
- package/templates/common/workflow/git/zh-CN/git-rollback.md +0 -90
- package/templates/common/workflow/git/zh-CN/git-worktree.md +0 -276
- package/templates/common/workflow/interview/en/interview.md +0 -67
- package/templates/common/workflow/interview/zh-CN/interview.md +0 -67
- package/templates/common/workflow/linearMethod/en/linear-method.md +0 -651
- package/templates/common/workflow/linearMethod/zh-CN/linear-method.md +0 -752
- package/templates/common/workflow/refactoringMaster/en/refactoring-master.md +0 -516
- package/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +0 -812
- package/templates/common/workflow/sixStep/en/workflow.md +0 -83
- package/templates/common/workflow/sixStep/zh-CN/workflow.md +0 -359
- package/templates/common/workflow/specFirstTDD/en/spec-first-tdd.md +0 -364
- package/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +0 -366
- package/templates/hooks/README.md +0 -212
- package/templates/hooks/git-workflow-hooks.md +0 -551
- package/templates/hooks/post-test/coverage.json +0 -21
- package/templates/hooks/post-test/summary.json +0 -21
- package/templates/hooks/post-test-coverage.md +0 -434
- package/templates/hooks/pre-commit/eslint.json +0 -22
- package/templates/hooks/pre-commit/prettier.json +0 -22
- package/templates/hooks/pre-commit-black.md +0 -274
- package/templates/hooks/pre-commit-eslint.md +0 -153
- package/templates/hooks/pre-commit-gofmt.md +0 -284
- package/templates/hooks/pre-commit-prettier.md +0 -212
- package/templates/hooks/pre-commit-type-check.md +0 -377
- package/templates/skills/basic.hbs +0 -72
- package/templates/skills/ccjk-init.md +0 -154
- package/templates/skills/ccjk-mcp-setup.md +0 -205
- package/templates/skills/ccjk-troubleshoot.md +0 -228
- package/templates/skills/code-refactor.hbs +0 -133
- package/templates/skills/code-review.hbs +0 -141
- package/templates/skills/django-patterns.md +0 -1016
- package/templates/skills/git-workflow.md +0 -748
- package/templates/skills/go-idioms.md +0 -963
- package/templates/skills/index.json +0 -132
- package/templates/skills/nextjs-optimization.md +0 -694
- package/templates/skills/python-pep8.md +0 -852
- package/templates/skills/react-patterns.md +0 -686
- package/templates/skills/rust-patterns.md +0 -1057
- package/templates/skills/security-best-practices.md +0 -1413
- package/templates/skills/testing-best-practices.md +0 -1315
- package/templates/skills/ts-best-practices.md +0 -354
- 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 };
|