@cregis-dev/cckit 0.3.0 → 0.4.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/README.md +15 -3
- package/package.json +1 -1
- package/registry.json +234 -200
- package/src/commands/init.js +19 -15
- package/src/commands/update.js +9 -4
- package/src/core/plugin-installer.js +59 -13
- package/src/utils/fs.js +6 -1
- package/templates/bmad/_config/bmad-help.csv +2 -1
- package/templates/bmad/_config/files-manifest.csv +437 -431
- package/templates/bmad/_config/ides/claude-code.yaml +5 -5
- package/templates/bmad/_config/ides/trae.yaml +5 -5
- package/templates/bmad/_config/task-manifest.csv +7 -6
- package/templates/bmad/_config/workflow-manifest.csv +34 -34
- package/templates/bmad/bmm/agents/qa.md +1 -1
- package/templates/bmad/bmm/config.yaml +1 -1
- package/templates/bmad/bmm/module-help.csv +1 -1
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +1 -1
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md +1 -1
- package/templates/bmad/bmm/workflows/1-analysis/research/workflow-domain-research.md +1 -1
- package/templates/bmad/bmm/workflows/1-analysis/research/workflow-market-research.md +1 -1
- package/templates/bmad/bmm/workflows/1-analysis/research/workflow-technical-research.md +1 -1
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md +1 -1
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +1 -1
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md +1 -1
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-edit-prd.md +1 -1
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +1 -1
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +1 -1
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +1 -1
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +1 -1
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +1 -1
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +1 -1
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md +1 -1
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +1 -1
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +1 -1
- package/templates/bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +1 -1
- package/templates/bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +1 -1
- package/templates/bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +1 -1
- package/templates/bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +1 -1
- package/templates/bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +1 -1
- package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +1 -1
- package/templates/bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml +1 -1
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +1 -1
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md +1 -1
- package/templates/bmad/bmm/workflows/document-project/workflow.yaml +1 -1
- package/templates/bmad/bmm/workflows/generate-project-context/workflow.md +1 -1
- package/templates/bmad/bmm/workflows/qa-generate-e2e-tests/workflow.yaml +2 -2
- package/templates/bmad/commands/bmad-bmm-check-implementation-readiness.md +2 -2
- package/templates/bmad/commands/bmad-bmm-code-review.md +4 -4
- package/templates/bmad/commands/bmad-bmm-correct-course.md +4 -4
- package/templates/bmad/commands/bmad-bmm-create-architecture.md +2 -2
- package/templates/bmad/commands/bmad-bmm-create-epics-and-stories.md +2 -2
- package/templates/bmad/commands/bmad-bmm-create-prd.md +2 -2
- package/templates/bmad/commands/bmad-bmm-create-product-brief.md +2 -2
- package/templates/bmad/commands/bmad-bmm-create-story.md +4 -4
- package/templates/bmad/commands/bmad-bmm-create-ux-design.md +2 -2
- package/templates/bmad/commands/bmad-bmm-dev-story.md +4 -4
- package/templates/bmad/commands/bmad-bmm-document-project.md +4 -4
- package/templates/bmad/commands/bmad-bmm-domain-research.md +2 -2
- package/templates/bmad/commands/bmad-bmm-edit-prd.md +2 -2
- package/templates/bmad/commands/bmad-bmm-generate-project-context.md +2 -2
- package/templates/bmad/commands/bmad-bmm-market-research.md +2 -2
- package/templates/bmad/commands/bmad-bmm-qa-generate-e2e-tests.md +4 -4
- package/templates/bmad/commands/bmad-bmm-quick-dev.md +2 -2
- package/templates/bmad/commands/bmad-bmm-quick-spec.md +2 -2
- package/templates/bmad/commands/bmad-bmm-retrospective.md +4 -4
- package/templates/bmad/commands/bmad-bmm-sprint-planning.md +4 -4
- package/templates/bmad/commands/bmad-bmm-sprint-status.md +4 -4
- package/templates/bmad/commands/bmad-bmm-technical-research.md +2 -2
- package/templates/bmad/commands/bmad-bmm-validate-prd.md +2 -2
- package/templates/bmad/commands/bmad-brainstorming.md +2 -2
- package/templates/bmad/commands/bmad-editorial-review-prose.md +1 -1
- package/templates/bmad/commands/bmad-editorial-review-structure.md +1 -1
- package/templates/bmad/commands/bmad-help.md +1 -1
- package/templates/bmad/commands/bmad-index-docs.md +1 -1
- package/templates/bmad/commands/bmad-party-mode.md +2 -2
- package/templates/bmad/commands/bmad-review-adversarial-general.md +1 -1
- package/templates/bmad/commands/bmad-review-edge-case-hunter.md +10 -0
- package/templates/bmad/commands/bmad-shard-doc.md +1 -1
- package/templates/bmad/commands/bmad-tea-teach-me-testing.md +2 -2
- package/templates/bmad/commands/bmad-tea-testarch-atdd.md +4 -4
- package/templates/bmad/commands/bmad-tea-testarch-automate.md +4 -4
- package/templates/bmad/commands/bmad-tea-testarch-ci.md +4 -4
- package/templates/bmad/commands/bmad-tea-testarch-framework.md +4 -4
- package/templates/bmad/commands/bmad-tea-testarch-nfr.md +4 -4
- package/templates/bmad/commands/bmad-tea-testarch-test-design.md +4 -4
- package/templates/bmad/commands/bmad-tea-testarch-test-review.md +4 -4
- package/templates/bmad/commands/bmad-tea-testarch-trace.md +4 -4
- package/templates/bmad/core/config.yaml +1 -1
- package/templates/bmad/core/module-help.csv +1 -0
- package/templates/bmad/core/tasks/editorial-review-prose.xml +1 -1
- package/templates/bmad/core/tasks/editorial-review-structure.xml +1 -1
- package/templates/bmad/core/tasks/help.md +1 -1
- package/templates/bmad/core/tasks/index-docs.xml +1 -1
- package/templates/bmad/core/tasks/review-adversarial-general.xml +1 -1
- package/templates/bmad/core/tasks/review-edge-case-hunter.xml +63 -0
- package/templates/bmad/core/tasks/shard-doc.xml +1 -1
- package/templates/bmad/core/workflows/advanced-elicitation/workflow.xml +1 -1
- package/templates/bmad/core/workflows/brainstorming/steps/step-01-session-setup.md +31 -18
- package/templates/bmad/core/workflows/brainstorming/steps/step-01b-continue.md +1 -1
- package/templates/bmad/core/workflows/brainstorming/steps/step-03-technique-execution.md +2 -2
- package/templates/bmad/core/workflows/brainstorming/steps/step-04-idea-organization.md +2 -2
- package/templates/bmad/core/workflows/brainstorming/workflow.md +4 -2
- package/templates/bmad/core/workflows/party-mode/workflow.md +1 -1
- package/templates/bmad/tea/config.yaml +5 -1
- package/templates/bmad/tea/testarch/knowledge/contract-testing.md +24 -2
- package/templates/bmad/tea/testarch/knowledge/pact-mcp.md +204 -0
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-consumer-helpers.md +211 -0
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-overview.md +210 -0
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-provider-verifier.md +315 -0
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-request-filter.md +224 -0
- package/templates/bmad/tea/testarch/tea-index.csv +5 -0
- package/templates/bmad/tea/workflows/testarch/README.md +1 -1
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-01-preflight-and-context.md +30 -0
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04-generate-tests.md +159 -57
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04a-subagent-api-failing.md +215 -0
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04b-subagent-e2e-failing.md +244 -0
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04c-aggregate.md +31 -15
- package/templates/bmad/tea/workflows/testarch/atdd/validation-report-20260127-095021.md +1 -1
- package/templates/bmad/tea/workflows/testarch/atdd/validation-report-20260127-102401.md +3 -3
- package/templates/bmad/tea/workflows/testarch/atdd/workflow.yaml +2 -2
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-01-preflight-and-context.md +32 -0
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03-generate-tests.md +215 -101
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03a-subagent-api.md +193 -0
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subagent-backend.md +246 -0
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subagent-e2e.md +213 -0
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03c-aggregate.md +38 -22
- package/templates/bmad/tea/workflows/testarch/automate/validation-report-20260127-095021.md +1 -1
- package/templates/bmad/tea/workflows/testarch/automate/validation-report-20260127-102401.md +3 -3
- package/templates/bmad/tea/workflows/testarch/automate/workflow.yaml +2 -2
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-02-generate-pipeline.md +124 -1
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-03-configure-quality-gates.md +7 -0
- package/templates/bmad/tea/workflows/testarch/ci/validation-report-20260127-095021.md +1 -1
- package/templates/bmad/tea/workflows/testarch/ci/validation-report-20260127-102401.md +3 -3
- package/templates/bmad/tea/workflows/testarch/ci/workflow.yaml +2 -2
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-03-scaffold-framework.md +126 -3
- package/templates/bmad/tea/workflows/testarch/framework/validation-report-20260127-095021.md +1 -1
- package/templates/bmad/tea/workflows/testarch/framework/validation-report-20260127-102401.md +3 -3
- package/templates/bmad/tea/workflows/testarch/framework/workflow.yaml +2 -2
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04-evaluate-and-score.md +150 -36
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04a-subagent-security.md +138 -0
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04b-subagent-performance.md +84 -0
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04c-subagent-reliability.md +85 -0
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04d-subagent-scalability.md +88 -0
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04e-aggregate-nfr.md +27 -10
- package/templates/bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-095021.md +1 -1
- package/templates/bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-102401.md +3 -3
- package/templates/bmad/tea/workflows/testarch/nfr-assess/workflow.yaml +2 -2
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/tea-resources-index.yaml +3 -3
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/workflow-plan-teach-me-testing.md +6 -6
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/workflow.md +1 -1
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-02-load-context.md +30 -0
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-05-generate-output.md +72 -1
- package/templates/bmad/tea/workflows/testarch/test-design/validation-report-20260127-095021.md +1 -1
- package/templates/bmad/tea/workflows/testarch/test-design/validation-report-20260127-102401.md +3 -3
- package/templates/bmad/tea/workflows/testarch/test-design/workflow.yaml +2 -2
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-01-load-context.md +29 -1
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03-quality-evaluation.md +147 -46
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03a-subagent-determinism.md +214 -0
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03b-subagent-isolation.md +125 -0
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03c-subagent-maintainability.md +102 -0
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03e-subagent-performance.md +117 -0
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03f-aggregate-scores.md +10 -10
- package/templates/bmad/tea/workflows/testarch/test-review/validation-report-20260127-095021.md +1 -1
- package/templates/bmad/tea/workflows/testarch/test-review/validation-report-20260127-102401.md +3 -3
- package/templates/bmad/tea/workflows/testarch/test-review/workflow.yaml +2 -2
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-04-analyze-gaps.md +92 -1
- package/templates/bmad/tea/workflows/testarch/trace/validation-report-20260127-095021.md +1 -1
- package/templates/bmad/tea/workflows/testarch/trace/validation-report-20260127-102401.md +3 -3
- package/templates/bmad/tea/workflows/testarch/trace/workflow.yaml +2 -2
- package/templates/ecc/agents/chief-of-staff.md +151 -0
- package/templates/ecc/commands/claw.md +79 -0
- package/templates/ecc/rules/README.md +23 -2
- package/templates/ecc/rules/common/development-workflow.md +37 -0
- package/templates/ecc/rules/common/git-workflow.md +2 -23
- package/templates/ecc/rules/swift/coding-style.md +47 -0
- package/templates/ecc/rules/swift/hooks.md +20 -0
- package/templates/ecc/rules/swift/patterns.md +66 -0
- package/templates/ecc/rules/swift/security.md +33 -0
- package/templates/ecc/rules/swift/testing.md +45 -0
- package/templates/ecc/skills/api-design/SKILL.md +1 -0
- package/templates/ecc/skills/article-writing/SKILL.md +85 -0
- package/templates/ecc/skills/backend-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/clickhouse-io/SKILL.md +1 -0
- package/templates/ecc/skills/coding-standards/SKILL.md +1 -0
- package/templates/ecc/skills/configure-ecc/SKILL.md +32 -4
- package/templates/ecc/skills/content-engine/SKILL.md +88 -0
- package/templates/ecc/skills/content-hash-cache-pattern/SKILL.md +1 -0
- package/templates/ecc/skills/continuous-learning/SKILL.md +2 -1
- package/templates/ecc/skills/continuous-learning-v2/SKILL.md +4 -1
- package/templates/ecc/skills/continuous-learning-v2/hooks/observe.sh +14 -7
- package/templates/ecc/skills/cost-aware-llm-pipeline/SKILL.md +1 -0
- package/templates/ecc/skills/cpp-coding-standards/SKILL.md +1 -0
- package/templates/ecc/skills/cpp-testing/SKILL.md +1 -0
- package/templates/ecc/skills/database-migrations/SKILL.md +1 -0
- package/templates/ecc/skills/deployment-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/django-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/django-security/SKILL.md +1 -0
- package/templates/ecc/skills/django-tdd/SKILL.md +1 -0
- package/templates/ecc/skills/django-verification/SKILL.md +1 -0
- package/templates/ecc/skills/docker-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/e2e-testing/SKILL.md +1 -0
- package/templates/ecc/skills/eval-harness/SKILL.md +1 -0
- package/templates/ecc/skills/foundation-models-on-device/SKILL.md +243 -0
- package/templates/ecc/skills/frontend-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/frontend-slides/SKILL.md +184 -0
- package/templates/ecc/skills/frontend-slides/STYLE_PRESETS.md +330 -0
- package/templates/ecc/skills/golang-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/golang-testing/SKILL.md +1 -0
- package/templates/ecc/skills/investor-materials/SKILL.md +96 -0
- package/templates/ecc/skills/investor-outreach/SKILL.md +76 -0
- package/templates/ecc/skills/iterative-retrieval/SKILL.md +1 -0
- package/templates/ecc/skills/java-coding-standards/SKILL.md +1 -0
- package/templates/ecc/skills/jpa-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/liquid-glass-design/SKILL.md +279 -0
- package/templates/ecc/skills/market-research/SKILL.md +75 -0
- package/templates/ecc/skills/nutrient-document-processing/SKILL.md +1 -1
- package/templates/ecc/skills/postgres-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/project-guidelines-example/SKILL.md +1 -0
- package/templates/ecc/skills/python-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/python-testing/SKILL.md +1 -0
- package/templates/ecc/skills/regex-vs-llm-structured-text/SKILL.md +1 -0
- package/templates/ecc/skills/search-first/SKILL.md +3 -1
- package/templates/ecc/skills/security-review/SKILL.md +1 -0
- package/templates/ecc/skills/security-scan/SKILL.md +1 -0
- package/templates/ecc/skills/skill-stocktake/SKILL.md +176 -0
- package/templates/ecc/skills/skill-stocktake/scripts/quick-diff.sh +87 -0
- package/templates/ecc/skills/skill-stocktake/scripts/save-results.sh +56 -0
- package/templates/ecc/skills/skill-stocktake/scripts/scan.sh +170 -0
- package/templates/ecc/skills/springboot-patterns/SKILL.md +1 -0
- package/templates/ecc/skills/springboot-security/SKILL.md +1 -0
- package/templates/ecc/skills/springboot-tdd/SKILL.md +1 -0
- package/templates/ecc/skills/springboot-verification/SKILL.md +1 -0
- package/templates/ecc/skills/strategic-compact/SKILL.md +1 -0
- package/templates/ecc/skills/swift-actor-persistence/SKILL.md +1 -0
- package/templates/ecc/skills/swift-concurrency-6-2/SKILL.md +216 -0
- package/templates/ecc/skills/swift-protocol-di-testing/SKILL.md +1 -0
- package/templates/ecc/skills/swiftui-patterns/SKILL.md +259 -0
- package/templates/ecc/skills/tdd-workflow/SKILL.md +1 -0
- package/templates/ecc/skills/verification-loop/SKILL.md +1 -0
- package/templates/ecc/skills/visa-doc-translate/README.md +86 -0
- package/templates/ecc/skills/visa-doc-translate/SKILL.md +117 -0
- package/templates/ext-skills/pinchtab/SKILL.md +89 -486
- package/templates/ext-skills/pinchtab/TRUST.md +69 -0
- package/templates/ext-skills/pinchtab/references/api.md +297 -0
- package/templates/ext-skills/pinchtab/references/env.md +45 -0
- package/templates/ext-skills/pinchtab/references/profiles.md +107 -0
- package/templates/plugins/claude-code-setup/.claude-plugin/plugin.json +9 -0
- package/templates/plugins/claude-code-setup/LICENSE +202 -0
- package/templates/plugins/claude-code-setup/README.md +29 -0
- package/templates/plugins/claude-code-setup/automation-recommender-example.png +0 -0
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/SKILL.md +288 -0
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/hooks-patterns.md +226 -0
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/mcp-servers.md +263 -0
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/plugins-reference.md +98 -0
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/skills-reference.md +408 -0
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/subagent-templates.md +181 -0
- package/templates/plugins/claude-md-management/.claude-plugin/plugin.json +9 -0
- package/templates/plugins/claude-md-management/LICENSE +202 -0
- package/templates/plugins/claude-md-management/README.md +40 -0
- package/templates/plugins/claude-md-management/claude-md-improver-example.png +0 -0
- package/templates/plugins/claude-md-management/commands/revise-claude-md.md +54 -0
- package/templates/plugins/claude-md-management/revise-claude-md-example.png +0 -0
- package/templates/plugins/claude-md-management/skills/claude-md-improver/SKILL.md +179 -0
- package/templates/plugins/claude-md-management/skills/claude-md-improver/references/quality-criteria.md +109 -0
- package/templates/plugins/claude-md-management/skills/claude-md-improver/references/templates.md +253 -0
- package/templates/plugins/claude-md-management/skills/claude-md-improver/references/update-guidelines.md +150 -0
- package/templates/plugins/code-simplifier/.claude-plugin/plugin.json +9 -0
- package/templates/plugins/code-simplifier/LICENSE +202 -0
- package/templates/plugins/code-simplifier/agents/code-simplifier.md +52 -0
- package/templates/plugins/commit-commands/.claude-plugin/plugin.json +9 -0
- package/templates/plugins/commit-commands/LICENSE +202 -0
- package/templates/plugins/commit-commands/README.md +225 -0
- package/templates/plugins/commit-commands/commands/clean_gone.md +53 -0
- package/templates/plugins/commit-commands/commands/commit-push-pr.md +20 -0
- package/templates/plugins/commit-commands/commands/commit.md +17 -0
- package/templates/trae-bmad/rules/bmad-bmm-check-implementation-readiness.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-code-review.md +4 -4
- package/templates/trae-bmad/rules/bmad-bmm-correct-course.md +4 -4
- package/templates/trae-bmad/rules/bmad-bmm-create-architecture.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-create-epics-and-stories.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-create-prd.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-create-product-brief.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-create-story.md +4 -4
- package/templates/trae-bmad/rules/bmad-bmm-create-ux-design.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-dev-story.md +4 -4
- package/templates/trae-bmad/rules/bmad-bmm-document-project.md +4 -4
- package/templates/trae-bmad/rules/bmad-bmm-domain-research.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-edit-prd.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-generate-project-context.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-market-research.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-qa-generate-e2e-tests.md +4 -4
- package/templates/trae-bmad/rules/bmad-bmm-quick-dev.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-quick-spec.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-retrospective.md +4 -4
- package/templates/trae-bmad/rules/bmad-bmm-sprint-planning.md +4 -4
- package/templates/trae-bmad/rules/bmad-bmm-sprint-status.md +4 -4
- package/templates/trae-bmad/rules/bmad-bmm-technical-research.md +2 -2
- package/templates/trae-bmad/rules/bmad-bmm-validate-prd.md +2 -2
- package/templates/trae-bmad/rules/bmad-brainstorming.md +2 -2
- package/templates/trae-bmad/rules/bmad-editorial-review-prose.md +1 -1
- package/templates/trae-bmad/rules/bmad-editorial-review-structure.md +1 -1
- package/templates/trae-bmad/rules/bmad-help.md +1 -1
- package/templates/trae-bmad/rules/bmad-index-docs.md +1 -1
- package/templates/trae-bmad/rules/bmad-party-mode.md +2 -2
- package/templates/trae-bmad/rules/bmad-review-adversarial-general.md +1 -1
- package/templates/trae-bmad/rules/bmad-review-edge-case-hunter.md +10 -0
- package/templates/trae-bmad/rules/bmad-shard-doc.md +1 -1
- package/templates/trae-bmad/rules/bmad-tea-teach-me-testing.md +2 -2
- package/templates/trae-bmad/rules/bmad-tea-testarch-atdd.md +4 -4
- package/templates/trae-bmad/rules/bmad-tea-testarch-automate.md +4 -4
- package/templates/trae-bmad/rules/bmad-tea-testarch-ci.md +4 -4
- package/templates/trae-bmad/rules/bmad-tea-testarch-framework.md +4 -4
- package/templates/trae-bmad/rules/bmad-tea-testarch-nfr.md +4 -4
- package/templates/trae-bmad/rules/bmad-tea-testarch-test-design.md +4 -4
- package/templates/trae-bmad/rules/bmad-tea-testarch-test-review.md +4 -4
- package/templates/trae-bmad/rules/bmad-tea-testarch-trace.md +4 -4
package/README.md
CHANGED
|
@@ -118,7 +118,7 @@ cckit add https://github.com/user/my-plugin
|
|
|
118
118
|
cckit 使用两套独立的分发体系:
|
|
119
119
|
|
|
120
120
|
**插件体系**(ECC、Superpowers 等 marketplace 插件):
|
|
121
|
-
- **Claude Code** —
|
|
121
|
+
- **Claude Code** — 将插件 ID 写入 `.claude/settings.json`(`enabledPlugins`),非内置市场同时注册 `extraKnownMarketplaces`,用户信任项目后 Claude Code 自动提示安装;插件内容由 marketplace 获取
|
|
122
122
|
- **Trae** — 提取 skills(直接复制)、commands/agents(通过 trae-adapter 添加 YAML frontmatter)
|
|
123
123
|
|
|
124
124
|
**Skills 体系**(ext-skills 等独立第三方技能):
|
|
@@ -133,7 +133,19 @@ cckit 使用两套独立的分发体系:
|
|
|
133
133
|
| ECC Rules | ecc-rules | `.claude/rules/` |
|
|
134
134
|
| 独立 Skills | ext-skills | `.claude/skills/` |
|
|
135
135
|
| MCP 配置 | mcp | `.mcp.json` |
|
|
136
|
-
| 插件 ID | plugins | `.claude/settings.json` |
|
|
136
|
+
| 插件 ID + 市场源 | plugins | `.claude/settings.json` |
|
|
137
|
+
| 环境变量默认值 | — (始终写入) | `.claude/settings.json` |
|
|
138
|
+
|
|
139
|
+
默认写入的环境变量(`settings.json` → `env`):
|
|
140
|
+
|
|
141
|
+
| 变量 | 值 | 说明 |
|
|
142
|
+
|------|-----|------|
|
|
143
|
+
| `DISABLE_BUG_COMMAND` | `1` | 禁用 /bug 命令 |
|
|
144
|
+
| `DISABLE_ERROR_REPORTING` | `1` | 禁用 Sentry 错误报告 |
|
|
145
|
+
| `DISABLE_TELEMETRY` | `1` | 禁用 Statsig 遥测 |
|
|
146
|
+
| `MCP_TIMEOUT` | `60000` | MCP 工具超时(毫秒) |
|
|
147
|
+
| `MAX_THINKING_TOKENS` | `31999` | 扩展思考最大 token 数 |
|
|
148
|
+
| `CLAUDE_CODE_MAX_OUTPUT_TOKENS` | `64000` | 输出最大 token 数 |
|
|
137
149
|
|
|
138
150
|
### Trae 安装内容(完整分发)
|
|
139
151
|
|
|
@@ -199,7 +211,7 @@ your-project/
|
|
|
199
211
|
│ ├── rules/ # ECC 编码规范(按语言分目录)
|
|
200
212
|
│ ├── skills/ # 独立第三方 Skills(ext-skills)
|
|
201
213
|
│ ├── commands/ # BMAD 命令
|
|
202
|
-
│ └── settings.json #
|
|
214
|
+
│ └── settings.json # 插件配置 + 市场源 + 环境变量默认值
|
|
203
215
|
├── .trae/ # Trae IDE 配置(如启用)
|
|
204
216
|
│ ├── rules/ # BMAD Rules + ECC Rules/Agents/Commands + 插件
|
|
205
217
|
│ ├── skills/ # ECC Skills + 独立 Skills + 插件 Skills
|
package/package.json
CHANGED
package/registry.json
CHANGED
|
@@ -1,200 +1,234 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.0.0",
|
|
3
|
-
"upstream": {
|
|
4
|
-
"bmad": {
|
|
5
|
-
"type": "npm",
|
|
6
|
-
"package": "bmad-method",
|
|
7
|
-
"lastSyncVersion": "6.0.
|
|
8
|
-
"lastSyncDate": "2026-
|
|
9
|
-
},
|
|
10
|
-
"ecc": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"repo": "https://github.com/affaan-m/everything-claude-code",
|
|
13
|
-
"lastSyncSha": "
|
|
14
|
-
"lastSyncDate": "2026-
|
|
15
|
-
},
|
|
16
|
-
"plugins": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"repo": "https://github.com/anthropics/claude-plugins-official",
|
|
19
|
-
"pluginsPath": "plugins",
|
|
20
|
-
"lastSyncSha": "
|
|
21
|
-
"lastSyncDate": "2026-
|
|
22
|
-
},
|
|
23
|
-
"ext-skills": {
|
|
24
|
-
"pinchtab": {
|
|
25
|
-
"type": "git",
|
|
26
|
-
"repo": "https://github.com/pinchtab/pinchtab",
|
|
27
|
-
"skillPath": "skill/pinchtab",
|
|
28
|
-
"lastSyncSha": "
|
|
29
|
-
"lastSyncDate": "2026-
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"plugins": {
|
|
34
|
-
"everything-claude-code": {
|
|
35
|
-
"name": "Everything Claude Code",
|
|
36
|
-
"marketplace": "affaan-m",
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
"
|
|
135
|
-
"name": "
|
|
136
|
-
"source": "builtin",
|
|
137
|
-
"templateDir": "templates/
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"upstream": {
|
|
4
|
+
"bmad": {
|
|
5
|
+
"type": "npm",
|
|
6
|
+
"package": "bmad-method",
|
|
7
|
+
"lastSyncVersion": "6.0.4",
|
|
8
|
+
"lastSyncDate": "2026-03-01T10:34:14.151Z"
|
|
9
|
+
},
|
|
10
|
+
"ecc": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"repo": "https://github.com/affaan-m/everything-claude-code",
|
|
13
|
+
"lastSyncSha": "2d3be88bb550c48f1c44ab260934021615dd3cad",
|
|
14
|
+
"lastSyncDate": "2026-03-01T10:34:14.151Z"
|
|
15
|
+
},
|
|
16
|
+
"plugins": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"repo": "https://github.com/anthropics/claude-plugins-official",
|
|
19
|
+
"pluginsPath": "plugins",
|
|
20
|
+
"lastSyncSha": "55b58ec6e5649104f926ba7558b567dc8d33c5ff",
|
|
21
|
+
"lastSyncDate": "2026-03-01T10:34:14.151Z"
|
|
22
|
+
},
|
|
23
|
+
"ext-skills": {
|
|
24
|
+
"pinchtab": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"repo": "https://github.com/pinchtab/pinchtab",
|
|
27
|
+
"skillPath": "skill/pinchtab",
|
|
28
|
+
"lastSyncSha": "3fef93b35f33a535d8ff6ec772412dd309e40cfa",
|
|
29
|
+
"lastSyncDate": "2026-03-01T10:34:14.151Z"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"plugins": {
|
|
34
|
+
"everything-claude-code": {
|
|
35
|
+
"name": "Everything Claude Code",
|
|
36
|
+
"marketplace": "affaan-m",
|
|
37
|
+
"marketplaceSource": {
|
|
38
|
+
"source": "github",
|
|
39
|
+
"repo": "affaan-m/everything-claude-code"
|
|
40
|
+
},
|
|
41
|
+
"default": true,
|
|
42
|
+
"description": "Rules, agents, commands, skills, and hooks for Claude Code"
|
|
43
|
+
},
|
|
44
|
+
"superpowers": {
|
|
45
|
+
"name": "Superpowers",
|
|
46
|
+
"marketplace": "claude-plugins-official",
|
|
47
|
+
"default": true,
|
|
48
|
+
"description": "Structured workflows with brainstorming, debugging, TDD, and code review skills"
|
|
49
|
+
},
|
|
50
|
+
"claude-code-setup": {
|
|
51
|
+
"name": "Claude Code Setup",
|
|
52
|
+
"marketplace": "claude-plugins-official",
|
|
53
|
+
"default": true,
|
|
54
|
+
"description": "Analyze codebases and recommend Claude Code automations, audit and improve CLAUDE.md files"
|
|
55
|
+
},
|
|
56
|
+
"claude-md-management": {
|
|
57
|
+
"name": "Claude MD Management",
|
|
58
|
+
"marketplace": "claude-plugins-official",
|
|
59
|
+
"default": true,
|
|
60
|
+
"description": "Audit, improve, and update CLAUDE.md documentation files"
|
|
61
|
+
},
|
|
62
|
+
"code-simplifier": {
|
|
63
|
+
"name": "Code Simplifier",
|
|
64
|
+
"marketplace": "claude-plugins-official",
|
|
65
|
+
"default": true,
|
|
66
|
+
"description": "Simplify and refine code for clarity, consistency, and maintainability"
|
|
67
|
+
},
|
|
68
|
+
"commit-commands": {
|
|
69
|
+
"name": "Commit Commands",
|
|
70
|
+
"marketplace": "claude-plugins-official",
|
|
71
|
+
"default": true,
|
|
72
|
+
"description": "Git commit workflows: commit, push, PR creation, and branch cleanup"
|
|
73
|
+
},
|
|
74
|
+
"firecrawl": {
|
|
75
|
+
"name": "Firecrawl",
|
|
76
|
+
"marketplace": "claude-plugins-official",
|
|
77
|
+
"default": true,
|
|
78
|
+
"description": "Web scraping, search, and skill generation using Firecrawl"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"modules": {
|
|
82
|
+
"bmad-core": {
|
|
83
|
+
"name": "BMAD Core",
|
|
84
|
+
"source": "builtin",
|
|
85
|
+
"templateDir": "templates/bmad/core",
|
|
86
|
+
"targetDir": "_bmad/core",
|
|
87
|
+
"required": true,
|
|
88
|
+
"configPrompts": [
|
|
89
|
+
"user_name",
|
|
90
|
+
"communication_language"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"bmad-bmm": {
|
|
94
|
+
"name": "BMAD Method",
|
|
95
|
+
"source": "builtin",
|
|
96
|
+
"templateDir": "templates/bmad/bmm",
|
|
97
|
+
"targetDir": "_bmad/bmm",
|
|
98
|
+
"default": true,
|
|
99
|
+
"dependsOn": [
|
|
100
|
+
"bmad-core"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"bmad-tea": {
|
|
104
|
+
"name": "Test Architecture Enterprise",
|
|
105
|
+
"source": "builtin",
|
|
106
|
+
"templateDir": "templates/bmad/tea",
|
|
107
|
+
"targetDir": "_bmad/tea",
|
|
108
|
+
"default": true,
|
|
109
|
+
"dependsOn": [
|
|
110
|
+
"bmad-core"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"bmad-commands": {
|
|
114
|
+
"name": "BMAD Commands",
|
|
115
|
+
"source": "builtin",
|
|
116
|
+
"templateDir": "templates/bmad/commands",
|
|
117
|
+
"targetDir": ".claude/commands",
|
|
118
|
+
"default": true,
|
|
119
|
+
"dependsOn": [
|
|
120
|
+
"bmad-core"
|
|
121
|
+
],
|
|
122
|
+
"ideTarget": "claude-code"
|
|
123
|
+
},
|
|
124
|
+
"bmad-config": {
|
|
125
|
+
"name": "BMAD Config",
|
|
126
|
+
"source": "builtin",
|
|
127
|
+
"templateDir": "templates/bmad/_config",
|
|
128
|
+
"targetDir": "_bmad/_config",
|
|
129
|
+
"default": true,
|
|
130
|
+
"dependsOn": [
|
|
131
|
+
"bmad-core"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"bmad-trae": {
|
|
135
|
+
"name": "BMAD Trae Rules",
|
|
136
|
+
"source": "builtin",
|
|
137
|
+
"templateDir": "templates/trae-bmad/rules",
|
|
138
|
+
"targetDir": ".trae/rules",
|
|
139
|
+
"default": true,
|
|
140
|
+
"dependsOn": [
|
|
141
|
+
"bmad-core"
|
|
142
|
+
],
|
|
143
|
+
"ideTarget": "trae"
|
|
144
|
+
},
|
|
145
|
+
"ecc-rules": {
|
|
146
|
+
"name": "ECC Rules",
|
|
147
|
+
"source": "builtin",
|
|
148
|
+
"templateDir": "templates/ecc/rules",
|
|
149
|
+
"default": true,
|
|
150
|
+
"options": {
|
|
151
|
+
"languages": [
|
|
152
|
+
"common",
|
|
153
|
+
"typescript",
|
|
154
|
+
"python",
|
|
155
|
+
"golang"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"targets": {
|
|
159
|
+
"claude-code": {
|
|
160
|
+
"targetDir": ".claude/rules"
|
|
161
|
+
},
|
|
162
|
+
"trae": {
|
|
163
|
+
"targetDir": ".trae/rules/ecc",
|
|
164
|
+
"adapter": "trae-rules"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"ecc-agents": {
|
|
169
|
+
"name": "ECC Agents",
|
|
170
|
+
"source": "builtin",
|
|
171
|
+
"templateDir": "templates/ecc/agents",
|
|
172
|
+
"default": true,
|
|
173
|
+
"targets": {
|
|
174
|
+
"trae": {
|
|
175
|
+
"targetDir": ".trae/rules/ecc/agents",
|
|
176
|
+
"adapter": "trae-agents"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"ecc-skills": {
|
|
181
|
+
"name": "ECC Skills",
|
|
182
|
+
"source": "builtin",
|
|
183
|
+
"templateDir": "templates/ecc/skills",
|
|
184
|
+
"default": true,
|
|
185
|
+
"targets": {
|
|
186
|
+
"trae": {
|
|
187
|
+
"targetDir": ".trae/skills"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"ecc-commands": {
|
|
192
|
+
"name": "ECC Commands",
|
|
193
|
+
"source": "builtin",
|
|
194
|
+
"templateDir": "templates/ecc/commands",
|
|
195
|
+
"default": true,
|
|
196
|
+
"targets": {
|
|
197
|
+
"trae": {
|
|
198
|
+
"targetDir": ".trae/rules/ecc/commands",
|
|
199
|
+
"adapter": "trae-commands"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"mcp": {
|
|
204
|
+
"name": "MCP Server Config",
|
|
205
|
+
"source": "builtin",
|
|
206
|
+
"templateDir": "templates/mcp",
|
|
207
|
+
"default": true,
|
|
208
|
+
"targets": {
|
|
209
|
+
"claude-code": {
|
|
210
|
+
"targetDir": ".",
|
|
211
|
+
"templateDir": "templates/mcp/claude-code"
|
|
212
|
+
},
|
|
213
|
+
"trae": {
|
|
214
|
+
"targetDir": ".trae",
|
|
215
|
+
"templateDir": "templates/mcp/trae"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"ext-skills": {
|
|
220
|
+
"name": "Third-party Skills",
|
|
221
|
+
"source": "builtin",
|
|
222
|
+
"templateDir": "templates/ext-skills",
|
|
223
|
+
"default": true,
|
|
224
|
+
"targets": {
|
|
225
|
+
"claude-code": {
|
|
226
|
+
"targetDir": ".claude/skills"
|
|
227
|
+
},
|
|
228
|
+
"trae": {
|
|
229
|
+
"targetDir": ".trae/skills"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
package/src/commands/init.js
CHANGED
|
@@ -259,10 +259,11 @@ export async function runInit(opts = {}) {
|
|
|
259
259
|
installResult = await installer.install(installable, variables)
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
// Step 9.5: Install plugins
|
|
262
|
+
// Step 9.5: Install plugins + Claude Code settings
|
|
263
263
|
let pluginResult = { claudeCode: [], trae: { files: 0, details: [] }, installed: [] }
|
|
264
264
|
let pluginSkippedEntries = []
|
|
265
265
|
|
|
266
|
+
let resolvedPlugins = []
|
|
266
267
|
if (config.plugins !== 'none') {
|
|
267
268
|
const pluginIds = config.plugins === 'default'
|
|
268
269
|
? getDefaultPlugins(registry)
|
|
@@ -271,20 +272,7 @@ export async function runInit(opts = {}) {
|
|
|
271
272
|
if (pluginIds.length > 0) {
|
|
272
273
|
const templatesBase = path.resolve(CCKIT_ROOT, 'templates')
|
|
273
274
|
const { found, skipped: pluginSkipped } = resolvePlugins(registry, pluginIds, templatesBase, logger)
|
|
274
|
-
|
|
275
|
-
if (found.length > 0) {
|
|
276
|
-
pluginResult = await installPlugins({
|
|
277
|
-
plugins: found,
|
|
278
|
-
targetDir,
|
|
279
|
-
ides: config.ides,
|
|
280
|
-
variables,
|
|
281
|
-
logger,
|
|
282
|
-
})
|
|
283
|
-
|
|
284
|
-
if (pluginResult.installed.length > 0) {
|
|
285
|
-
logger.success(`Plugins: ${pluginResult.installed.join(', ')}`)
|
|
286
|
-
}
|
|
287
|
-
}
|
|
275
|
+
resolvedPlugins = found
|
|
288
276
|
|
|
289
277
|
pluginSkippedEntries = pluginSkipped.map(ps => ({
|
|
290
278
|
id: `plugin:${ps.id}`,
|
|
@@ -294,6 +282,22 @@ export async function runInit(opts = {}) {
|
|
|
294
282
|
}
|
|
295
283
|
}
|
|
296
284
|
|
|
285
|
+
// Always call installPlugins when claude-code is selected (writes env settings)
|
|
286
|
+
// or when there are resolved plugins to install
|
|
287
|
+
if (resolvedPlugins.length > 0 || config.ides.includes('claude-code')) {
|
|
288
|
+
pluginResult = await installPlugins({
|
|
289
|
+
plugins: resolvedPlugins,
|
|
290
|
+
targetDir,
|
|
291
|
+
ides: config.ides,
|
|
292
|
+
variables,
|
|
293
|
+
logger,
|
|
294
|
+
})
|
|
295
|
+
|
|
296
|
+
if (pluginResult.installed.length > 0) {
|
|
297
|
+
logger.success(`Plugins: ${pluginResult.installed.join(', ')}`)
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
297
301
|
const allSkipped = [...skipped, ...pluginSkippedEntries]
|
|
298
302
|
|
|
299
303
|
// Step 10: Create scaffold directories
|
package/src/commands/update.js
CHANGED
|
@@ -305,7 +305,7 @@ export async function runUpdate(opts = {}) {
|
|
|
305
305
|
|
|
306
306
|
// Apply mode: reinstall files from templates
|
|
307
307
|
if (opts.apply) {
|
|
308
|
-
const applied = { updated: 0, backedUp: 0, restored: 0, added: 0, failed: 0 }
|
|
308
|
+
const applied = { updated: 0, backedUp: 0, restored: 0, added: 0, failed: 0, orphaned: 0 }
|
|
309
309
|
|
|
310
310
|
let registry
|
|
311
311
|
let sourceMap
|
|
@@ -343,9 +343,11 @@ export async function runUpdate(opts = {}) {
|
|
|
343
343
|
|
|
344
344
|
for (const relPath of allFiles) {
|
|
345
345
|
const source = findSourceForFile(relPath, sourceMap)
|
|
346
|
-
if (!source) {
|
|
347
|
-
logger.debug(`No source template found for: ${relPath}`)
|
|
348
|
-
applied.
|
|
346
|
+
if (!source || !await fse.pathExists(source.srcAbsPath)) {
|
|
347
|
+
logger.debug(`No source template found for: ${relPath} (orphaned)`)
|
|
348
|
+
applied.orphaned += 1
|
|
349
|
+
// Remove orphaned file from registry so it's no longer tracked
|
|
350
|
+
delete fileRegistry[relPath]
|
|
349
351
|
continue
|
|
350
352
|
}
|
|
351
353
|
|
|
@@ -407,6 +409,9 @@ export async function runUpdate(opts = {}) {
|
|
|
407
409
|
await fse.writeFile(manifestPath, YAML.stringify(manifest), 'utf8')
|
|
408
410
|
|
|
409
411
|
logger.newline()
|
|
412
|
+
if (applied.orphaned > 0) {
|
|
413
|
+
logger.warn(`${applied.orphaned} file(s) orphaned (module removed, no longer tracked)`)
|
|
414
|
+
}
|
|
410
415
|
logger.success(
|
|
411
416
|
`Applied: ${applied.updated} updated, ${applied.added} added, ${applied.restored} restored, ${applied.backedUp} backed up, ${applied.failed} failed`
|
|
412
417
|
)
|