ccjk 14.2.2 → 15.1.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 +75 -338
- package/dist/cli.js +89 -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 +165 -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 +42 -0
- package/dist/commands/menu.js.map +1 -0
- package/dist/commands/profile.js +138 -0
- package/dist/commands/profile.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/profiles.js +104 -0
- package/dist/core/profiles.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
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,374 +1,111 @@
|
|
|
1
|
-
|
|
1
|
+
# ccjk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Clavue / Claude Code 配置 CLI。一条命令搞定 init、API、MCP、doctor、git 模板。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/ccjk)
|
|
6
|
+
[](./LICENSE)
|
|
7
|
+
[](https://nodejs.org)
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<br/>
|
|
9
|
+
## 安装
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
<br/>
|
|
16
|
-
|
|
17
|
-
[](https://www.npmjs.com/package/ccjk)
|
|
18
|
-
[](https://www.npmjs.com/package/ccjk)
|
|
19
|
-
[](./LICENSE)
|
|
20
|
-
[](https://github.com/miounet11/ccjk/stargazers)
|
|
21
|
-
[](https://github.com/vercel-labs/agent-browser)
|
|
22
|
-
|
|
23
|
-
[English](./README.en.md) · [中文](./README.zh-CN.md) · [日本語](./README.ja.md)
|
|
24
|
-
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## ✨ Why CCJK
|
|
30
|
-
|
|
31
|
-
- **30-second onboarding** for Claude Code, Codex, MCP services, and browser automation
|
|
32
|
-
- **Persistent project memory** so your AI stops forgetting architecture and conventions
|
|
33
|
-
- **Capability discovery + presets** so recommended tools and permission profiles are easier to apply
|
|
34
|
-
- **Smarter model + context usage** to cut waste and keep long sessions usable
|
|
35
|
-
- **Cloud sync and remote control** so your setup follows you across devices
|
|
36
|
-
- **Production-ready defaults** with hardened config, validation, and safer automation
|
|
37
|
-
|
|
38
|
-
## 💡 What is CCJK?
|
|
39
|
-
|
|
40
|
-
The production layer on top of [Claude Code](https://github.com/anthropics/claude-code), Codex, and the rest of your AI coding workflow:
|
|
41
|
-
|
|
42
|
-
```diff
|
|
43
|
-
- Manually configure Claude Code for 60+ minutes
|
|
44
|
-
- Repeat project context every conversation
|
|
45
|
-
- Pay 3x more tokens than necessary
|
|
46
|
-
- Lose configs when switching machines
|
|
47
|
-
|
|
48
|
-
+ One command setup in 30 seconds
|
|
49
|
-
+ AI remembers your entire codebase
|
|
50
|
-
+ 30-50% token cost reduction
|
|
51
|
-
+ Cloud sync across all devices
|
|
12
|
+
npm install -g ccjk
|
|
52
13
|
```
|
|
53
14
|
|
|
54
|
-
##
|
|
15
|
+
## 快速上手
|
|
55
16
|
|
|
56
17
|
```bash
|
|
57
|
-
#
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
#
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
18
|
+
ccjk # 交互菜单
|
|
19
|
+
ccjk init # 配置 API(同时存为 profile)
|
|
20
|
+
ccjk use # 一键切换已配过的 API
|
|
21
|
+
ccjk mcp # 装 MCP 服务
|
|
22
|
+
ccjk doctor # 检查 settings.json
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## 命令一览
|
|
26
|
+
|
|
27
|
+
| 命令 | 用途 |
|
|
28
|
+
|---|---|
|
|
29
|
+
| `ccjk` | 交互菜单(默认) |
|
|
30
|
+
| `ccjk init` | 配置 API:写 `~/.claude/settings.json` 的 env,并保存为 profile |
|
|
31
|
+
| `ccjk use [name]` | **快速切换 profile**(不带参=交互选择) |
|
|
32
|
+
| `ccjk profile ls` | 列出所有 profile(标记当前) |
|
|
33
|
+
| `ccjk profile show [name]` | 查看 profile 详情(不带参=当前) |
|
|
34
|
+
| `ccjk profile rm [name]` | 删除 profile |
|
|
35
|
+
| `ccjk mcp` | 选装预设 MCP 服务(context7、serena、playwright、…) |
|
|
36
|
+
| `ccjk doctor` | 检查 settings.json 中的常见配置问题 |
|
|
37
|
+
| `ccjk detect` | 列出已安装的代码工具 |
|
|
38
|
+
| `ccjk git-install` | 安装 `/ccjk:git-commit` 等 slash 命令模板 |
|
|
39
|
+
|
|
40
|
+
### Profile:多 API 一键切换
|
|
68
41
|
|
|
69
42
|
```bash
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
npx ccjk mcp list
|
|
73
|
-
npx ccjk browser open https://example.com --headed
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**What just happened?**
|
|
43
|
+
ccjk init -t clavue -p glm --api-key sk-xxx --profile work -y
|
|
44
|
+
ccjk init -t clavue -p kimi --api-key sk-yyy --profile free -y
|
|
77
45
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- ✅ Set up persistent memory (AI remembers your codebase)
|
|
82
|
-
- ✅ Enabled smart context compression (30-50% token reduction)
|
|
83
|
-
- ✅ Installed Agent Browser for seamless browser tasks
|
|
84
|
-
- ✅ Ready for cloud sync (optional)
|
|
85
|
-
|
|
86
|
-
**Before CCJK:**
|
|
87
|
-
|
|
88
|
-
```
|
|
89
|
-
❌ 60+ minutes manual configuration
|
|
90
|
-
❌ Repeat context every conversation
|
|
91
|
-
❌ High API costs
|
|
92
|
-
❌ Configs lost when switching machines
|
|
93
|
-
❌ Single-threaded AI execution
|
|
94
|
-
❌ Can't control Claude from mobile/web
|
|
95
|
-
❌ Insecure defaults in production
|
|
46
|
+
ccjk use # 交互选 work / free
|
|
47
|
+
ccjk use free # 直接切到 free
|
|
48
|
+
ccjk profile ls # 看当前用的是哪个
|
|
96
49
|
```
|
|
97
50
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
✅ 30 seconds one-command setup
|
|
102
|
-
✅ AI remembers everything
|
|
103
|
-
✅ 30-50% lower costs
|
|
104
|
-
✅ Cloud sync across devices
|
|
105
|
-
✅ Parallel AI agents (Agent Teams)
|
|
106
|
-
✅ Remote control from any device (v11.1.1)
|
|
107
|
-
✅ Production-hardened security (v11.1.1)
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## 🎯 Why Developers Love CCJK
|
|
111
|
-
|
|
112
|
-
| Problem | CCJK Solution | Impact |
|
|
113
|
-
| :-------------------------------------- | :------------------------------------ | :---------------------------------------------------- |
|
|
114
|
-
| 😫 "Claude forgot my project structure" | 🧠 **Persistent Memory** | AI remembers everything across sessions |
|
|
115
|
-
| 💸 "My API bills are insane" | ⚡ **Smart Compression** | 30-50% token reduction |
|
|
116
|
-
| ⏰ "Setup takes forever" | 🔧 **Minimal Config** | 30 seconds, one command |
|
|
117
|
-
| 🧭 "I don't know what to enable" | 🧩 **Capability Discovery + Presets** | Recommended services and permission profiles |
|
|
118
|
-
| 🔄 "Lost my configs again" | ☁️ **Cloud Sync** | GitHub Gist / WebDAV / S3 |
|
|
119
|
-
| 🤖 "Need multiple AI agents" | 🎭 **Agent Teams** | One-click parallel execution |
|
|
120
|
-
| 📱 "Can't control Claude from my phone" | 🌐 **Remote Control** | Web/App control with one-command setup |
|
|
121
|
-
| 🔐 "Worried about production security" | 🛡️ **Production-Grade Security** | HTTPS enforcement, CORS hardening, secrets validation |
|
|
122
|
-
|
|
123
|
-
## 🏆 Built For Real Work
|
|
51
|
+
切换后需重启 Claude Code 才能生效(settings.json 是启动时读的)。
|
|
124
52
|
|
|
125
|
-
|
|
126
|
-
- **Teams** who need repeatable onboarding and shared conventions
|
|
127
|
-
- **Power users** who want memory, MCP, browser automation, and multi-agent workflows in one CLI
|
|
128
|
-
- **API users** who care about reducing token waste without losing context quality
|
|
53
|
+
Profile 存储在 `~/.ccjk/profiles/<name>.json`,当前激活的记录在 `~/.ccjk/state.json`。
|
|
129
54
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
### 🧠 Persistent Memory
|
|
133
|
-
|
|
134
|
-
Manage Claude Code memory and project notes from the CLI.
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
ccjk memory
|
|
138
|
-
ccjk memory --edit
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### 🤖 Agent Teams (NEW)
|
|
142
|
-
|
|
143
|
-
Parallel AI execution for complex tasks.
|
|
144
|
-
|
|
145
|
-
```bash
|
|
146
|
-
ccjk agent-teams --on
|
|
147
|
-
# One agent writes code, another writes tests, simultaneously
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### ⚡ Smart Context Compression
|
|
151
|
-
|
|
152
|
-
Automatic conversation cleanup before hitting token limits.
|
|
153
|
-
|
|
154
|
-
- 30-50% token reduction (rule-based) or 40-60% (LLM-based)
|
|
155
|
-
- Zero manual intervention
|
|
156
|
-
- Preserves critical context
|
|
157
|
-
|
|
158
|
-
### ☁️ Cloud Sync
|
|
159
|
-
|
|
160
|
-
Your configs follow you everywhere.
|
|
55
|
+
### 非交互模式
|
|
161
56
|
|
|
162
57
|
```bash
|
|
163
|
-
ccjk
|
|
164
|
-
ccjk
|
|
165
|
-
ccjk
|
|
58
|
+
ccjk init -t clavue -p glm --api-key sk-xxx --profile work -y
|
|
59
|
+
ccjk mcp -s context7 serena -y
|
|
60
|
+
ccjk git-install --scope user -y
|
|
166
61
|
```
|
|
167
62
|
|
|
168
|
-
|
|
63
|
+
## 支持
|
|
169
64
|
|
|
170
|
-
|
|
65
|
+
| 工具 | 配置目标 | 状态 |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| Clavue | `~/.claude/settings.json` | 主推 |
|
|
68
|
+
| Claude Code | `~/.claude/settings.json` | 完整支持 |
|
|
69
|
+
| Codex | `~/.codex/config.toml` | 仅检测 |
|
|
171
70
|
|
|
172
|
-
|
|
173
|
-
- **Security Audit** — OWASP Top 10 scanning
|
|
174
|
-
- **Performance** — Identify bottlenecks
|
|
175
|
-
- **Docs** — Auto-generate from code
|
|
71
|
+
### 内置 Provider
|
|
176
72
|
|
|
177
|
-
|
|
73
|
+
`glm` / `kimi` / `minimax` / `anthropic` / `custom`
|
|
178
74
|
|
|
179
|
-
|
|
75
|
+
## doctor 规则
|
|
180
76
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
77
|
+
| 规则 | 严重度 | 说明 |
|
|
78
|
+
|---|---|---|
|
|
79
|
+
| `model-overrides-env` | error | 顶层 `settings.model` 会覆盖 `env.ANTHROPIC_MODEL` |
|
|
80
|
+
| `duplicate-auth` | warn | API_KEY 和 AUTH_TOKEN 同时存在 |
|
|
81
|
+
| `missing-credentials` | error | 设了 BASE_URL 但缺凭证 |
|
|
82
|
+
| `invalid-base-url` | error | URL 格式不合法 |
|
|
83
|
+
| `hook-bloat` | warn | 单个 hook 注册超过 5 个处理器 |
|
|
185
84
|
|
|
186
|
-
|
|
85
|
+
## 设计原则
|
|
187
86
|
|
|
188
|
-
|
|
87
|
+
- 配置工具就是配置工具。不做 brain、orchestrator、sandbox、dashboard 这类东西。
|
|
88
|
+
- 不写 `~/.claude/CLAUDE.md`,不装 hooks,不开后台进程。
|
|
89
|
+
- 用户不调用,ccjk 就什么都不做。
|
|
189
90
|
|
|
190
|
-
|
|
191
|
-
ccjk browser start https://example.com
|
|
192
|
-
ccjk browser status
|
|
193
|
-
ccjk browser stop
|
|
194
|
-
```
|
|
91
|
+
## 从 v14 升级
|
|
195
92
|
|
|
196
|
-
|
|
93
|
+
v15 是从零重写的版本,命令集和行为都和 v14.x 不兼容:
|
|
197
94
|
|
|
198
|
-
|
|
95
|
+
- v14 的子命令(brain/sandbox/teleport/cloud-sync 等)在 v15 中**不存在**。
|
|
96
|
+
- v14 在 `~/.claude/CLAUDE.md` 中注入的 "Smart Assistant Mode" 在 v15 中**不会再写入**。如需手动清理旧版残留,删除该文件中相关段落即可。
|
|
97
|
+
- 如果你只用 v14 的 init/mcp/doctor/git 几个核心功能,直接 `npm install -g ccjk@latest` 升级即可。
|
|
98
|
+
- 需要 v14 的扩展能力,请固定旧版本:`npm install -g ccjk@14`。
|
|
199
99
|
|
|
200
|
-
|
|
201
|
-
ccjk remote setup # One-command: configure server URL, auth token & binding in 30s
|
|
202
|
-
ccjk remote doctor # Diagnose connectivity, auth, daemon health
|
|
203
|
-
ccjk remote status # Live runtime status (daemon, server, auth)
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
**Supports both interactive and non-interactive (CI/CD) modes:**
|
|
100
|
+
## 开发
|
|
207
101
|
|
|
208
102
|
```bash
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
103
|
+
pnpm install
|
|
104
|
+
pnpm typecheck
|
|
105
|
+
pnpm test
|
|
106
|
+
pnpm build
|
|
213
107
|
```
|
|
214
108
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
All config defaults are now hardened for real-world deployments:
|
|
218
|
-
|
|
219
|
-
- ✅ **HTTPS enforcement** — All service URLs require `https://` in production
|
|
220
|
-
- ✅ **CORS hardening** — Wildcard `*` origins rejected in production
|
|
221
|
-
- ✅ **Secret validation** — Dev-default secrets (`dev-secret`, `dev-session-secret`) blocked at startup
|
|
222
|
-
- ✅ **Fail-fast boot** — Server exits immediately on misconfiguration, no silent fallbacks
|
|
223
|
-
- ✅ **Daemon config loading** — Reads from `~/.ccjk/daemon.json`, validates required fields
|
|
224
|
-
|
|
225
|
-
### 🔓 Zero-Config Permission Presets (NEW)
|
|
226
|
-
|
|
227
|
-
One-click permission configuration for different use cases:
|
|
228
|
-
|
|
229
|
-
```bash
|
|
230
|
-
ccjk zc --list # View available presets
|
|
231
|
-
ccjk zc --preset max # Maximum permissions (all commands)
|
|
232
|
-
ccjk zc --preset dev # Developer preset (build tools, git, npm)
|
|
233
|
-
ccjk zc --preset safe # Safe preset (read-only operations)
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
**Available Presets:**
|
|
237
|
-
|
|
238
|
-
- **max** — All common commands, file operations, and MCP servers (100+ permissions)
|
|
239
|
-
- **dev** — Build tools, git, package managers, and file operations (50+ permissions)
|
|
240
|
-
- **safe** — Read-only commands, no file modifications (20+ permissions)
|
|
241
|
-
|
|
242
|
-
Each preset automatically:
|
|
243
|
-
|
|
244
|
-
- ✅ Backs up your current settings
|
|
245
|
-
- ✅ Merges with existing permissions (no data loss)
|
|
246
|
-
- ✅ Removes invalid/dangerous patterns
|
|
247
|
-
- ✅ Shows exactly what will be added
|
|
248
|
-
|
|
249
|
-
## 📖 Essential Commands
|
|
250
|
-
|
|
251
|
-
```bash
|
|
252
|
-
# Setup & Config
|
|
253
|
-
ccjk # Interactive menu
|
|
254
|
-
ccjk init # Full initialization
|
|
255
|
-
ccjk init --silent # Silent mode (non-interactive, uses env vars)
|
|
256
|
-
ccjk status # Health check + recommendations
|
|
257
|
-
ccjk boost # One-click optimization
|
|
258
|
-
ccjk zc --preset dev # Apply recommended developer permissions
|
|
259
|
-
|
|
260
|
-
# Agent Teams (NEW)
|
|
261
|
-
ccjk agent-teams --on # Enable parallel AI execution
|
|
262
|
-
ccjk at --status # Check status
|
|
263
|
-
|
|
264
|
-
# Cloud Sync
|
|
265
|
-
ccjk cloud enable --provider github-gist
|
|
266
|
-
ccjk cloud sync
|
|
267
|
-
|
|
268
|
-
# Remote Control (Web/App)
|
|
269
|
-
ccjk remote setup # One-command setup (interactive)
|
|
270
|
-
ccjk remote setup --non-interactive --server-url <url> --auth-token <token> --binding-code <code>
|
|
271
|
-
ccjk remote doctor # Diagnose remote readiness
|
|
272
|
-
ccjk remote status # Quick runtime status
|
|
273
|
-
|
|
274
|
-
# MCP Services
|
|
275
|
-
ccjk mcp install <service>
|
|
276
|
-
ccjk mcp list
|
|
277
|
-
|
|
278
|
-
# Browser Automation
|
|
279
|
-
ccjk browser start <url>
|
|
280
|
-
ccjk browser status
|
|
281
|
-
ccjk browser stop
|
|
282
|
-
|
|
283
|
-
# Memory & Context
|
|
284
|
-
ccjk memory
|
|
285
|
-
ccjk memory --edit
|
|
286
|
-
|
|
287
|
-
# Zero-Config Permission Presets (NEW)
|
|
288
|
-
ccjk zc --list # List available presets
|
|
289
|
-
ccjk zc --preset max # Apply maximum permissions
|
|
290
|
-
ccjk zc --preset dev # Apply developer preset
|
|
291
|
-
ccjk zc --preset safe # Apply safe (read-only) preset
|
|
292
|
-
|
|
293
|
-
# Other Commands
|
|
294
|
-
npx ccjk u # Update workflows
|
|
295
|
-
npx ccjk sync # Cloud sync
|
|
296
|
-
npx ccjk doctor # Health check
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
## 💬 What Developers Say
|
|
300
|
-
|
|
301
|
-
> "CCJK cut my Claude Code setup from 2 hours to 30 seconds. Game changer."
|
|
302
|
-
> — _Senior Engineer at YC Startup_
|
|
303
|
-
|
|
304
|
-
> "The Agent Teams feature is insane. One agent writes code, another writes tests, simultaneously."
|
|
305
|
-
> — _Full-stack Developer_
|
|
306
|
-
|
|
307
|
-
> "Saved $200/month on API costs with the context compression alone."
|
|
308
|
-
> — _Indie Hacker_
|
|
309
|
-
|
|
310
|
-
## 🌟 Why Star This Repo?
|
|
311
|
-
|
|
312
|
-
If CCJK saved you hours of setup time or cut your API costs, **give us a star!** ⭐
|
|
313
|
-
|
|
314
|
-
It helps other developers discover this tool and motivates us to keep improving it.
|
|
315
|
-
|
|
316
|
-
<div align="center">
|
|
317
|
-
|
|
318
|
-
### 🎉 Join 1000+ developers using CCJK
|
|
319
|
-
|
|
320
|
-
**[⭐ Star on GitHub](https://github.com/miounet11/ccjk)** · **[📦 View on npm](https://www.npmjs.com/package/ccjk)** · **[💬 Join Telegram](https://t.me/ccjk_community)**
|
|
321
|
-
|
|
322
|
-
</div>
|
|
323
|
-
|
|
324
|
-
---
|
|
325
|
-
|
|
326
|
-
## 📖 Documentation
|
|
327
|
-
|
|
328
|
-
Visit [docs/README.md](./docs/README.md) for full documentation.
|
|
329
|
-
|
|
330
|
-
## 💬 Community & Support
|
|
331
|
-
|
|
332
|
-
- **[Telegram](https://t.me/ccjk_community)** — Real-time chat and help
|
|
333
|
-
- **[GitHub Issues](https://github.com/miounet11/ccjk/issues)** — Bug reports & feature requests
|
|
334
|
-
- **[Discussions](https://github.com/miounet11/ccjk/discussions)** — Questions and community chat
|
|
335
|
-
|
|
336
|
-
## 🤝 Contributing
|
|
337
|
-
|
|
338
|
-
We welcome contributions! Whether it's:
|
|
339
|
-
|
|
340
|
-
- 🐛 Bug reports
|
|
341
|
-
- 💡 Feature requests
|
|
342
|
-
- 📖 Documentation improvements
|
|
343
|
-
- 🔧 Code contributions
|
|
344
|
-
|
|
345
|
-
Check out our [Contributing Guide](./CONTRIBUTING.md) to get started.
|
|
346
|
-
|
|
347
|
-
## 🙏 Acknowledgments
|
|
348
|
-
|
|
349
|
-
Built on top of:
|
|
350
|
-
|
|
351
|
-
- [Claude Code](https://github.com/anthropics/claude-code) by Anthropic
|
|
352
|
-
- [ZCF](https://github.com/UfoMiao/zcf) by UfoMiao
|
|
353
|
-
|
|
354
|
-
Special thanks to all contributors and the 1000+ developers using CCJK daily.
|
|
355
|
-
|
|
356
|
-
## ⭐ Star History
|
|
357
|
-
|
|
358
|
-
If CCJK helped you, consider giving us a star!
|
|
359
|
-
|
|
360
|
-
[](https://star-history.com/#miounet11/ccjk&Date)
|
|
361
|
-
|
|
362
|
-
## 📄 License
|
|
363
|
-
|
|
364
|
-
MIT © [CCJK Contributors](https://github.com/miounet11/ccjk/graphs/contributors)
|
|
365
|
-
|
|
366
|
-
---
|
|
367
|
-
|
|
368
|
-
<div align="center">
|
|
369
|
-
|
|
370
|
-
**Made with ❤️ by developers, for developers**
|
|
371
|
-
|
|
372
|
-
[⭐ Star](https://github.com/miounet11/ccjk) · [📦 npm](https://www.npmjs.com/package/ccjk) · [🐛 Issues](https://github.com/miounet11/ccjk/issues) · [💬 Discussions](https://github.com/miounet11/ccjk/discussions)
|
|
109
|
+
## 许可
|
|
373
110
|
|
|
374
|
-
|
|
111
|
+
[MIT](./LICENSE)
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { dirname, join } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { Command } from 'commander';
|
|
6
|
+
import ansis from 'ansis';
|
|
7
|
+
import { initCommand } from './commands/init.js';
|
|
8
|
+
import { mcpCommand } from './commands/mcp.js';
|
|
9
|
+
import { doctorCommand } from './commands/doctor.js';
|
|
10
|
+
import { detectCommand } from './commands/detect.js';
|
|
11
|
+
import { gitInstallCommand } from './commands/git-install.js';
|
|
12
|
+
import { menuCommand } from './commands/menu.js';
|
|
13
|
+
import { profileListCommand, profileRmCommand, profileShowCommand, profileUseCommand, } from './commands/profile.js';
|
|
14
|
+
const pkgPath = join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json');
|
|
15
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
16
|
+
const program = new Command();
|
|
17
|
+
program
|
|
18
|
+
.name('ccjk')
|
|
19
|
+
.description('Clavue / Claude Code 配置 CLI')
|
|
20
|
+
.version(pkg.version);
|
|
21
|
+
program
|
|
22
|
+
.command('init')
|
|
23
|
+
.description('交互式配置 API(写 ~/.claude/settings.json)')
|
|
24
|
+
.option('-t, --tool <tool>', '目标工具:clavue | claude-code | codex')
|
|
25
|
+
.option('-p, --provider <id>', 'provider id:glm | kimi | minimax | anthropic | custom')
|
|
26
|
+
.option('--base-url <url>', '自定义 base URL')
|
|
27
|
+
.option('--api-key <key>', 'API key 或 auth token')
|
|
28
|
+
.option('--profile <name>', '同时保存为 profile,跳过交互询问')
|
|
29
|
+
.option('-y, --yes', '跳过确认')
|
|
30
|
+
.action(initCommand);
|
|
31
|
+
program
|
|
32
|
+
.command('use [name]')
|
|
33
|
+
.description('切换到指定 profile(不带参则交互选择)')
|
|
34
|
+
.option('-t, --tool <tool>', '目标工具', 'clavue')
|
|
35
|
+
.option('-y, --yes', '跳过确认')
|
|
36
|
+
.action((name, opts) => profileUseCommand(name, opts));
|
|
37
|
+
const profile = program
|
|
38
|
+
.command('profile')
|
|
39
|
+
.description('管理已保存的 API profile');
|
|
40
|
+
profile
|
|
41
|
+
.command('ls', { isDefault: true })
|
|
42
|
+
.description('列出所有 profile(标记当前)')
|
|
43
|
+
.action(profileListCommand);
|
|
44
|
+
profile
|
|
45
|
+
.command('use [name]')
|
|
46
|
+
.description('切换到指定 profile')
|
|
47
|
+
.option('-t, --tool <tool>', '目标工具', 'clavue')
|
|
48
|
+
.option('-y, --yes', '跳过确认')
|
|
49
|
+
.action((name, opts) => profileUseCommand(name, opts));
|
|
50
|
+
profile
|
|
51
|
+
.command('rm [name]')
|
|
52
|
+
.description('删除 profile')
|
|
53
|
+
.option('-y, --yes', '跳过确认')
|
|
54
|
+
.action((name, opts) => profileRmCommand(name, opts));
|
|
55
|
+
profile
|
|
56
|
+
.command('show [name]')
|
|
57
|
+
.description('查看 profile 详情(不带参看当前)')
|
|
58
|
+
.action((name) => profileShowCommand(name));
|
|
59
|
+
program
|
|
60
|
+
.command('mcp')
|
|
61
|
+
.description('配置 MCP 服务')
|
|
62
|
+
.option('-t, --tool <tool>', '目标工具', 'clavue')
|
|
63
|
+
.option('-s, --services <ids...>', '直接指定服务 id')
|
|
64
|
+
.option('-y, --yes', '跳过确认')
|
|
65
|
+
.action((opts) => mcpCommand(opts));
|
|
66
|
+
program
|
|
67
|
+
.command('doctor')
|
|
68
|
+
.description('检查 settings.json 中的常见配置问题')
|
|
69
|
+
.action(doctorCommand);
|
|
70
|
+
program
|
|
71
|
+
.command('detect')
|
|
72
|
+
.description('检测已安装的代码工具')
|
|
73
|
+
.action(detectCommand);
|
|
74
|
+
program
|
|
75
|
+
.command('git-install')
|
|
76
|
+
.description('安装 git slash 命令模板到 Claude Code/Clavue')
|
|
77
|
+
.option('--scope <scope>', 'user | project', 'user')
|
|
78
|
+
.option('--target <dir>', '自定义目标目录')
|
|
79
|
+
.option('-y, --yes', '跳过确认')
|
|
80
|
+
.action(gitInstallCommand);
|
|
81
|
+
program
|
|
82
|
+
.command('menu', { isDefault: true })
|
|
83
|
+
.description('交互菜单(默认命令)')
|
|
84
|
+
.action(menuCommand);
|
|
85
|
+
program.parseAsync(process.argv).catch((err) => {
|
|
86
|
+
console.error(ansis.red(`\n✗ ${err.message}\n`));
|
|
87
|
+
process.exit(1);
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,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AC,CAAC;AAEzB,OAAO;KACJ,OAAO,CAAC,aAAa,CAAC;KACtB,WAAW,CAAC,uCAAuC,CAAC;KACpD,MAAM,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,CAAC;KACnD,MAAM,CAAC,gBAAgB,EAAE,SAAS,CAAC;KACnC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC;KAC3B,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAE7B,OAAO;KACJ,OAAO,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;KACpC,WAAW,CAAC,YAAY,CAAC;KACzB,MAAM,CAAC,WAAW,CAAC,CAAC;AAEvB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,GAAU,EAAE,EAAE;IACpD,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;IACjD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import ansis from 'ansis';
|
|
2
|
+
import { detectAll } from '../core/detect.js';
|
|
3
|
+
import { TOOLS } from '../core/tools.js';
|
|
4
|
+
export function detectCommand() {
|
|
5
|
+
const results = detectAll();
|
|
6
|
+
console.log(ansis.bold('\n已检测到的代码工具:\n'));
|
|
7
|
+
for (const r of results) {
|
|
8
|
+
const meta = TOOLS[r.tool];
|
|
9
|
+
const cli = r.cliInstalled ? ansis.green('已安装') : ansis.gray('未安装');
|
|
10
|
+
const cfg = r.configExists ? ansis.green('有配置') : ansis.gray('无配置');
|
|
11
|
+
console.log(` ${meta.displayName.padEnd(14)} CLI: ${cli} 配置: ${cfg} ${ansis.dim(meta.configDir)}`);
|
|
12
|
+
}
|
|
13
|
+
console.log('');
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=detect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect.js","sourceRoot":"","sources":["../../src/commands/detect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,MAAM,UAAU,aAAa;IAC3B,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC1C,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC3B,MAAM,GAAG,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpE,MAAM,GAAG,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,GAAG,SAAS,GAAG,KAAK,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACxG,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import ansis from 'ansis';
|
|
2
|
+
import { lintSettings } from '../core/lint.js';
|
|
3
|
+
import { readSettings } from '../core/settings.js';
|
|
4
|
+
import { TOOLS } from '../core/tools.js';
|
|
5
|
+
import { detectAll } from '../core/detect.js';
|
|
6
|
+
const COLOR = {
|
|
7
|
+
error: (s) => ansis.red(s),
|
|
8
|
+
warn: (s) => ansis.yellow(s),
|
|
9
|
+
info: (s) => ansis.cyan(s),
|
|
10
|
+
};
|
|
11
|
+
const ICON = {
|
|
12
|
+
error: '✗',
|
|
13
|
+
warn: '!',
|
|
14
|
+
info: 'i',
|
|
15
|
+
};
|
|
16
|
+
export async function doctorCommand() {
|
|
17
|
+
const detected = detectAll();
|
|
18
|
+
const targets = detected
|
|
19
|
+
.filter(d => d.configExists && d.tool !== 'codex')
|
|
20
|
+
.map(d => d.tool);
|
|
21
|
+
if (targets.length === 0) {
|
|
22
|
+
console.log(ansis.gray('\n未发现已配置的 Claude/Clavue 实例(~/.claude/ 或 ~/.codex/ 不存在)。\n'));
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
let totalErrors = 0;
|
|
26
|
+
let totalWarns = 0;
|
|
27
|
+
for (const tool of targets) {
|
|
28
|
+
const meta = TOOLS[tool];
|
|
29
|
+
console.log(ansis.bold(`\n[${meta.displayName}] ${meta.settingsFile}`));
|
|
30
|
+
let settings;
|
|
31
|
+
try {
|
|
32
|
+
settings = await readSettings(meta.settingsFile);
|
|
33
|
+
}
|
|
34
|
+
catch (e) {
|
|
35
|
+
console.log(` ${ansis.red('✗')} 读取失败: ${e.message}`);
|
|
36
|
+
totalErrors++;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
const findings = lintSettings(settings);
|
|
40
|
+
if (findings.length === 0) {
|
|
41
|
+
console.log(` ${ansis.green('✓')} 无问题`);
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
for (const f of findings) {
|
|
45
|
+
const tag = COLOR[f.severity](`${ICON[f.severity]} [${f.rule}]`);
|
|
46
|
+
console.log(` ${tag} ${f.message}`);
|
|
47
|
+
if (f.fixHint)
|
|
48
|
+
console.log(` ${ansis.dim('→')} ${ansis.dim(f.fixHint)}`);
|
|
49
|
+
if (f.severity === 'error')
|
|
50
|
+
totalErrors++;
|
|
51
|
+
else if (f.severity === 'warn')
|
|
52
|
+
totalWarns++;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
console.log('');
|
|
56
|
+
if (totalErrors > 0) {
|
|
57
|
+
console.log(ansis.red(`✗ ${totalErrors} error${totalErrors > 1 ? 's' : ''}`) + (totalWarns > 0 ? `, ${ansis.yellow(`${totalWarns} warning${totalWarns > 1 ? 's' : ''}`)}` : ''));
|
|
58
|
+
process.exitCode = 1;
|
|
59
|
+
}
|
|
60
|
+
else if (totalWarns > 0) {
|
|
61
|
+
console.log(ansis.yellow(`! ${totalWarns} warning${totalWarns > 1 ? 's' : ''}`));
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
console.log(ansis.green('✓ 全部通过'));
|
|
65
|
+
}
|
|
66
|
+
console.log('');
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=doctor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,KAAK,GAA4C;IACrD,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC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