@cregis-dev/cckit 0.4.1 → 0.6.1
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 +68 -110
- package/package.json +54 -54
- package/registry.json +116 -234
- package/src/cli.js +17 -26
- package/src/commands/init.js +117 -294
- package/src/commands/status.js +53 -30
- package/src/commands/update.js +129 -408
- package/src/core/config.js +25 -33
- package/src/core/orchestrator.js +79 -0
- package/src/core/registry.js +32 -47
- package/src/steps/configure-user.js +130 -0
- package/src/steps/enable-plugins.js +97 -0
- package/src/steps/install-bmad.js +85 -0
- package/src/steps/install-mcp.js +70 -0
- package/src/steps/install-rules.js +69 -0
- package/src/steps/install-skills.js +54 -0
- package/src/utils/fs.js +12 -34
- package/src/utils/manifest.js +99 -0
- package/src/utils/prompt.js +41 -0
- package/templates/mcp/claude-code/.mcp.json +10 -5
- package/src/adapters/trae-adapter.js +0 -90
- package/src/commands/add.js +0 -192
- package/src/commands/sync.js +0 -325
- package/src/core/differ.js +0 -57
- package/src/core/installer.js +0 -97
- package/src/core/plugin-installer.js +0 -278
- package/src/core/templatize.js +0 -42
- package/src/core/upstream.js +0 -357
- package/templates/bmad/_config/agent-manifest.csv +0 -12
- package/templates/bmad/_config/agents/bmm-analyst.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-architect.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-dev.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-pm.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-qa.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-quick-flow-solo-dev.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-sm.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-tech-writer.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-ux-designer.customize.yaml +0 -41
- package/templates/bmad/_config/agents/core-bmad-master.customize.yaml +0 -41
- package/templates/bmad/_config/agents/tea-tea.customize.yaml +0 -41
- package/templates/bmad/_config/bmad-help.csv +0 -49
- package/templates/bmad/_config/files-manifest.csv +0 -437
- package/templates/bmad/_config/ides/claude-code.yaml +0 -5
- package/templates/bmad/_config/ides/opencode.yaml +0 -5
- package/templates/bmad/_config/ides/trae.yaml +0 -5
- package/templates/bmad/_config/task-manifest.csv +0 -8
- package/templates/bmad/_config/tool-manifest.csv +0 -1
- package/templates/bmad/_config/workflow-manifest.csv +0 -35
- package/templates/bmad/bmm/agents/analyst.md +0 -78
- package/templates/bmad/bmm/agents/architect.md +0 -58
- package/templates/bmad/bmm/agents/dev.md +0 -69
- package/templates/bmad/bmm/agents/pm.md +0 -72
- package/templates/bmad/bmm/agents/qa.md +0 -92
- package/templates/bmad/bmm/agents/quick-flow-solo-dev.md +0 -69
- package/templates/bmad/bmm/agents/sm.md +0 -70
- package/templates/bmad/bmm/agents/tech-writer/tech-writer.md +0 -70
- package/templates/bmad/bmm/agents/ux-designer.md +0 -57
- package/templates/bmad/bmm/config.yaml +0 -15
- package/templates/bmad/bmm/data/project-context-template.md +0 -26
- package/templates/bmad/bmm/module-help.csv +0 -31
- package/templates/bmad/bmm/teams/default-party.csv +0 -20
- package/templates/bmad/bmm/teams/team-fullstack.yaml +0 -12
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/product-brief.template.md +0 -10
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +0 -177
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +0 -161
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +0 -199
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +0 -202
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +0 -205
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +0 -219
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +0 -162
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md +0 -57
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +0 -137
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +0 -229
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +0 -238
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +0 -206
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +0 -234
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +0 -444
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +0 -182
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +0 -237
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +0 -249
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +0 -259
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +0 -177
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +0 -476
- package/templates/bmad/bmm/workflows/1-analysis/research/research.template.md +0 -29
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +0 -137
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +0 -239
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +0 -248
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +0 -202
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +0 -233
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +0 -487
- package/templates/bmad/bmm/workflows/1-analysis/research/workflow-domain-research.md +0 -54
- package/templates/bmad/bmm/workflows/1-analysis/research/workflow-market-research.md +0 -54
- package/templates/bmad/bmm/workflows/1-analysis/research/workflow-technical-research.md +0 -54
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/data/domain-complexity.csv +0 -15
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/data/prd-purpose.md +0 -197
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/data/project-types.csv +0 -11
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01-init.md +0 -191
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01b-continue.md +0 -152
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02-discovery.md +0 -224
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02b-vision.md +0 -154
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02c-executive-summary.md +0 -170
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md +0 -226
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md +0 -213
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md +0 -207
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md +0 -226
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md +0 -237
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md +0 -228
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md +0 -231
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md +0 -242
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md +0 -217
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md +0 -124
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-01-discovery.md +0 -247
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-01b-legacy-conversion.md +0 -208
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-02-review.md +0 -249
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-03-edit.md +0 -253
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-04-complete.md +0 -168
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-01-discovery.md +0 -226
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-02-format-detection.md +0 -191
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-02b-parity-check.md +0 -209
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-03-density-validation.md +0 -174
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-04-brief-coverage-validation.md +0 -214
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-05-measurability-validation.md +0 -228
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-06-traceability-validation.md +0 -217
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -205
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-08-domain-compliance-validation.md +0 -243
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-09-project-type-validation.md +0 -263
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-10-smart-validation.md +0 -209
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-11-holistic-quality-validation.md +0 -264
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-12-completeness-validation.md +0 -242
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +0 -231
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/templates/prd-template.md +0 -10
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md +0 -63
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-edit-prd.md +0 -65
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +0 -63
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +0 -135
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +0 -127
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +0 -190
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +0 -216
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +0 -219
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +0 -234
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +0 -252
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +0 -254
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +0 -224
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +0 -224
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +0 -241
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +0 -248
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +0 -237
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +0 -264
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +0 -171
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +0 -13
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +0 -42
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +0 -184
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +0 -172
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +0 -173
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +0 -133
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +0 -245
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +0 -129
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/templates/readiness-report-template.md +0 -4
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +0 -54
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/architecture-decision-template.md +0 -12
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/data/domain-complexity.csv +0 -13
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/data/project-types.csv +0 -7
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +0 -153
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md +0 -173
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +0 -224
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +0 -329
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +0 -318
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +0 -359
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +0 -379
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +0 -359
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +0 -76
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md +0 -49
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -259
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +0 -233
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +0 -272
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +0 -149
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +0 -57
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +0 -58
- package/templates/bmad/bmm/workflows/4-implementation/code-review/checklist.md +0 -23
- package/templates/bmad/bmm/workflows/4-implementation/code-review/instructions.xml +0 -227
- package/templates/bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +0 -43
- package/templates/bmad/bmm/workflows/4-implementation/correct-course/checklist.md +0 -288
- package/templates/bmad/bmm/workflows/4-implementation/correct-course/instructions.md +0 -207
- package/templates/bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +0 -53
- package/templates/bmad/bmm/workflows/4-implementation/create-story/checklist.md +0 -358
- package/templates/bmad/bmm/workflows/4-implementation/create-story/instructions.xml +0 -346
- package/templates/bmad/bmm/workflows/4-implementation/create-story/template.md +0 -49
- package/templates/bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +0 -52
- package/templates/bmad/bmm/workflows/4-implementation/dev-story/checklist.md +0 -80
- package/templates/bmad/bmm/workflows/4-implementation/dev-story/instructions.xml +0 -410
- package/templates/bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +0 -20
- package/templates/bmad/bmm/workflows/4-implementation/retrospective/instructions.md +0 -1444
- package/templates/bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +0 -52
- package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +0 -33
- package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +0 -226
- package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +0 -55
- package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +0 -47
- package/templates/bmad/bmm/workflows/4-implementation/sprint-status/instructions.md +0 -230
- package/templates/bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml +0 -25
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-01-mode-detection.md +0 -174
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-02-context-gathering.md +0 -118
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-03-execute.md +0 -111
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-04-self-check.md +0 -111
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +0 -104
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-06-resolve-findings.md +0 -146
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +0 -50
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-01-understand.md +0 -189
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-02-investigate.md +0 -143
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-03-generate.md +0 -126
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-04-review.md +0 -200
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/tech-spec-template.md +0 -74
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md +0 -79
- package/templates/bmad/bmm/workflows/document-project/checklist.md +0 -245
- package/templates/bmad/bmm/workflows/document-project/documentation-requirements.csv +0 -12
- package/templates/bmad/bmm/workflows/document-project/instructions.md +0 -130
- package/templates/bmad/bmm/workflows/document-project/templates/deep-dive-template.md +0 -345
- package/templates/bmad/bmm/workflows/document-project/templates/index-template.md +0 -169
- package/templates/bmad/bmm/workflows/document-project/templates/project-overview-template.md +0 -103
- package/templates/bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +0 -160
- package/templates/bmad/bmm/workflows/document-project/templates/source-tree-template.md +0 -135
- package/templates/bmad/bmm/workflows/document-project/workflow.yaml +0 -22
- package/templates/bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +0 -298
- package/templates/bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +0 -31
- package/templates/bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +0 -1106
- package/templates/bmad/bmm/workflows/document-project/workflows/full-scan.yaml +0 -31
- package/templates/bmad/bmm/workflows/generate-project-context/project-context-template.md +0 -21
- package/templates/bmad/bmm/workflows/generate-project-context/steps/step-01-discover.md +0 -184
- package/templates/bmad/bmm/workflows/generate-project-context/steps/step-02-generate.md +0 -318
- package/templates/bmad/bmm/workflows/generate-project-context/steps/step-03-complete.md +0 -278
- package/templates/bmad/bmm/workflows/generate-project-context/workflow.md +0 -49
- package/templates/bmad/bmm/workflows/qa/automate/checklist.md +0 -33
- package/templates/bmad/bmm/workflows/qa/automate/instructions.md +0 -110
- package/templates/bmad/bmm/workflows/qa/automate/workflow.yaml +0 -44
- package/templates/bmad/bmm/workflows/qa-generate-e2e-tests/checklist.md +0 -33
- package/templates/bmad/bmm/workflows/qa-generate-e2e-tests/instructions.md +0 -110
- package/templates/bmad/bmm/workflows/qa-generate-e2e-tests/workflow.yaml +0 -42
- package/templates/bmad/commands/bmad-agent-bmad-master.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-analyst.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-architect.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-dev.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-pm.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-qa.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-quick-flow-solo-dev.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-sm.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-tech-writer.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-ux-designer.md +0 -15
- package/templates/bmad/commands/bmad-agent-tea-tea.md +0 -15
- package/templates/bmad/commands/bmad-bmm-check-implementation-readiness.md +0 -6
- package/templates/bmad/commands/bmad-bmm-code-review.md +0 -14
- package/templates/bmad/commands/bmad-bmm-correct-course.md +0 -14
- package/templates/bmad/commands/bmad-bmm-create-architecture.md +0 -6
- package/templates/bmad/commands/bmad-bmm-create-epics-and-stories.md +0 -6
- package/templates/bmad/commands/bmad-bmm-create-prd.md +0 -6
- package/templates/bmad/commands/bmad-bmm-create-product-brief.md +0 -6
- package/templates/bmad/commands/bmad-bmm-create-story.md +0 -14
- package/templates/bmad/commands/bmad-bmm-create-ux-design.md +0 -6
- package/templates/bmad/commands/bmad-bmm-dev-story.md +0 -14
- package/templates/bmad/commands/bmad-bmm-document-project.md +0 -14
- package/templates/bmad/commands/bmad-bmm-domain-research.md +0 -6
- package/templates/bmad/commands/bmad-bmm-edit-prd.md +0 -6
- package/templates/bmad/commands/bmad-bmm-generate-project-context.md +0 -6
- package/templates/bmad/commands/bmad-bmm-market-research.md +0 -6
- package/templates/bmad/commands/bmad-bmm-qa-automate.md +0 -15
- package/templates/bmad/commands/bmad-bmm-qa-generate-e2e-tests.md +0 -14
- package/templates/bmad/commands/bmad-bmm-quick-dev.md +0 -6
- package/templates/bmad/commands/bmad-bmm-quick-spec.md +0 -6
- package/templates/bmad/commands/bmad-bmm-retrospective.md +0 -14
- package/templates/bmad/commands/bmad-bmm-sprint-planning.md +0 -14
- package/templates/bmad/commands/bmad-bmm-sprint-status.md +0 -14
- package/templates/bmad/commands/bmad-bmm-technical-research.md +0 -6
- package/templates/bmad/commands/bmad-bmm-validate-prd.md +0 -6
- package/templates/bmad/commands/bmad-brainstorming.md +0 -6
- package/templates/bmad/commands/bmad-editorial-review-prose.md +0 -10
- package/templates/bmad/commands/bmad-editorial-review-structure.md +0 -10
- package/templates/bmad/commands/bmad-help.md +0 -10
- package/templates/bmad/commands/bmad-index-docs.md +0 -10
- package/templates/bmad/commands/bmad-party-mode.md +0 -6
- package/templates/bmad/commands/bmad-review-adversarial-general.md +0 -10
- package/templates/bmad/commands/bmad-review-edge-case-hunter.md +0 -10
- package/templates/bmad/commands/bmad-shard-doc.md +0 -10
- package/templates/bmad/commands/bmad-tea-teach-me-testing.md +0 -6
- package/templates/bmad/commands/bmad-tea-testarch-atdd.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-automate.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-ci.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-framework.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-nfr.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-test-design.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-test-review.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-trace.md +0 -14
- package/templates/bmad/core/agents/bmad-master.md +0 -56
- package/templates/bmad/core/config.yaml +0 -8
- package/templates/bmad/core/module-help.csv +0 -10
- package/templates/bmad/core/tasks/editorial-review-prose.xml +0 -102
- package/templates/bmad/core/tasks/editorial-review-structure.xml +0 -208
- package/templates/bmad/core/tasks/help.md +0 -86
- package/templates/bmad/core/tasks/index-docs.xml +0 -65
- package/templates/bmad/core/tasks/review-adversarial-general.xml +0 -49
- package/templates/bmad/core/tasks/review-edge-case-hunter.xml +0 -63
- package/templates/bmad/core/tasks/shard-doc.xml +0 -108
- package/templates/bmad/core/tasks/workflow.xml +0 -235
- package/templates/bmad/core/workflows/advanced-elicitation/methods.csv +0 -51
- package/templates/bmad/core/workflows/advanced-elicitation/workflow.xml +0 -118
- package/templates/bmad/core/workflows/brainstorming/brain-methods.csv +0 -62
- package/templates/bmad/core/workflows/brainstorming/steps/step-01-session-setup.md +0 -210
- package/templates/bmad/core/workflows/brainstorming/steps/step-01b-continue.md +0 -122
- package/templates/bmad/core/workflows/brainstorming/steps/step-02a-user-selected.md +0 -225
- package/templates/bmad/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +0 -237
- package/templates/bmad/core/workflows/brainstorming/steps/step-02c-random-selection.md +0 -209
- package/templates/bmad/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +0 -264
- package/templates/bmad/core/workflows/brainstorming/steps/step-03-technique-execution.md +0 -399
- package/templates/bmad/core/workflows/brainstorming/steps/step-04-idea-organization.md +0 -303
- package/templates/bmad/core/workflows/brainstorming/template.md +0 -15
- package/templates/bmad/core/workflows/brainstorming/workflow.md +0 -60
- package/templates/bmad/core/workflows/party-mode/steps/step-01-agent-loading.md +0 -138
- package/templates/bmad/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +0 -187
- package/templates/bmad/core/workflows/party-mode/steps/step-03-graceful-exit.md +0 -168
- package/templates/bmad/core/workflows/party-mode/workflow.md +0 -194
- package/templates/bmad/tea/agents/tea.md +0 -71
- package/templates/bmad/tea/config.yaml +0 -24
- package/templates/bmad/tea/module-help.csv +0 -10
- package/templates/bmad/tea/teams/default-party.csv +0 -2
- package/templates/bmad/tea/testarch/knowledge/adr-quality-readiness-checklist.md +0 -377
- package/templates/bmad/tea/testarch/knowledge/api-request.md +0 -563
- package/templates/bmad/tea/testarch/knowledge/api-testing-patterns.md +0 -915
- package/templates/bmad/tea/testarch/knowledge/auth-session.md +0 -548
- package/templates/bmad/tea/testarch/knowledge/burn-in.md +0 -273
- package/templates/bmad/tea/testarch/knowledge/ci-burn-in.md +0 -675
- package/templates/bmad/tea/testarch/knowledge/component-tdd.md +0 -486
- package/templates/bmad/tea/testarch/knowledge/contract-testing.md +0 -979
- package/templates/bmad/tea/testarch/knowledge/data-factories.md +0 -500
- package/templates/bmad/tea/testarch/knowledge/email-auth.md +0 -721
- package/templates/bmad/tea/testarch/knowledge/error-handling.md +0 -725
- package/templates/bmad/tea/testarch/knowledge/feature-flags.md +0 -750
- package/templates/bmad/tea/testarch/knowledge/file-utils.md +0 -456
- package/templates/bmad/tea/testarch/knowledge/fixture-architecture.md +0 -401
- package/templates/bmad/tea/testarch/knowledge/fixtures-composition.md +0 -382
- package/templates/bmad/tea/testarch/knowledge/intercept-network-call.md +0 -426
- package/templates/bmad/tea/testarch/knowledge/log.md +0 -426
- package/templates/bmad/tea/testarch/knowledge/network-error-monitor.md +0 -401
- package/templates/bmad/tea/testarch/knowledge/network-first.md +0 -486
- package/templates/bmad/tea/testarch/knowledge/network-recorder.md +0 -527
- package/templates/bmad/tea/testarch/knowledge/nfr-criteria.md +0 -670
- package/templates/bmad/tea/testarch/knowledge/overview.md +0 -286
- package/templates/bmad/tea/testarch/knowledge/pact-mcp.md +0 -204
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-consumer-helpers.md +0 -211
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-overview.md +0 -210
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-provider-verifier.md +0 -315
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-request-filter.md +0 -224
- package/templates/bmad/tea/testarch/knowledge/playwright-cli.md +0 -165
- package/templates/bmad/tea/testarch/knowledge/playwright-config.md +0 -730
- package/templates/bmad/tea/testarch/knowledge/probability-impact.md +0 -601
- package/templates/bmad/tea/testarch/knowledge/recurse.md +0 -421
- package/templates/bmad/tea/testarch/knowledge/risk-governance.md +0 -615
- package/templates/bmad/tea/testarch/knowledge/selective-testing.md +0 -732
- package/templates/bmad/tea/testarch/knowledge/selector-resilience.md +0 -527
- package/templates/bmad/tea/testarch/knowledge/test-healing-patterns.md +0 -644
- package/templates/bmad/tea/testarch/knowledge/test-levels-framework.md +0 -473
- package/templates/bmad/tea/testarch/knowledge/test-priorities-matrix.md +0 -373
- package/templates/bmad/tea/testarch/knowledge/test-quality.md +0 -664
- package/templates/bmad/tea/testarch/knowledge/timing-debugging.md +0 -372
- package/templates/bmad/tea/testarch/knowledge/visual-debugging.md +0 -524
- package/templates/bmad/tea/testarch/tea-index.csv +0 -41
- package/templates/bmad/tea/workflows/testarch/README.md +0 -74
- package/templates/bmad/tea/workflows/testarch/atdd/atdd-checklist-template.md +0 -371
- package/templates/bmad/tea/workflows/testarch/atdd/checklist.md +0 -374
- package/templates/bmad/tea/workflows/testarch/atdd/instructions.md +0 -45
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-01-preflight-and-context.md +0 -226
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-01b-resume.md +0 -96
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-02-generation-mode.md +0 -125
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-03-test-strategy.md +0 -110
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04-generate-tests.md +0 -331
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04a-subagent-api-failing.md +0 -215
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04a-subprocess-api-failing.md +0 -215
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04b-subagent-e2e-failing.md +0 -244
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04b-subprocess-e2e-failing.md +0 -244
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04c-aggregate.md +0 -370
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-05-validate-and-complete.md +0 -106
- package/templates/bmad/tea/workflows/testarch/atdd/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/atdd/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/atdd/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/atdd/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/atdd/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/atdd/workflow-plan.md +0 -21
- package/templates/bmad/tea/workflows/testarch/atdd/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/atdd/workflow.yaml +0 -46
- package/templates/bmad/tea/workflows/testarch/automate/checklist.md +0 -582
- package/templates/bmad/tea/workflows/testarch/automate/instructions.md +0 -50
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-01-preflight-and-context.md +0 -237
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-01b-resume.md +0 -94
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-02-identify-targets.md +0 -145
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03-generate-tests.md +0 -392
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03a-subagent-api.md +0 -193
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03a-subprocess-api.md +0 -183
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subagent-backend.md +0 -246
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subagent-e2e.md +0 -213
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subprocess-backend.md +0 -246
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subprocess-e2e.md +0 -213
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03c-aggregate.md +0 -393
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-04-validate-and-summarize.md +0 -106
- package/templates/bmad/tea/workflows/testarch/automate/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/automate/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/automate/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/automate/validation-report-20260127-095021.md +0 -72
- package/templates/bmad/tea/workflows/testarch/automate/validation-report-20260127-102401.md +0 -114
- package/templates/bmad/tea/workflows/testarch/automate/workflow-plan.md +0 -20
- package/templates/bmad/tea/workflows/testarch/automate/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/automate/workflow.yaml +0 -53
- package/templates/bmad/tea/workflows/testarch/ci/azure-pipelines-template.yaml +0 -155
- package/templates/bmad/tea/workflows/testarch/ci/checklist.md +0 -288
- package/templates/bmad/tea/workflows/testarch/ci/github-actions-template.yaml +0 -210
- package/templates/bmad/tea/workflows/testarch/ci/gitlab-ci-template.yaml +0 -158
- package/templates/bmad/tea/workflows/testarch/ci/harness-pipeline-template.yaml +0 -159
- package/templates/bmad/tea/workflows/testarch/ci/instructions.md +0 -45
- package/templates/bmad/tea/workflows/testarch/ci/jenkins-pipeline-template.groovy +0 -129
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-01-preflight.md +0 -158
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-01b-resume.md +0 -110
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-02-generate-pipeline.md +0 -241
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-03-configure-quality-gates.md +0 -112
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-04-validate-and-summary.md +0 -92
- package/templates/bmad/tea/workflows/testarch/ci/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/ci/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/ci/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/ci/validation-report-20260127-095021.md +0 -72
- package/templates/bmad/tea/workflows/testarch/ci/validation-report-20260127-102401.md +0 -114
- package/templates/bmad/tea/workflows/testarch/ci/workflow-plan.md +0 -20
- package/templates/bmad/tea/workflows/testarch/ci/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/ci/workflow.yaml +0 -48
- package/templates/bmad/tea/workflows/testarch/framework/checklist.md +0 -321
- package/templates/bmad/tea/workflows/testarch/framework/instructions.md +0 -45
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-01-preflight.md +0 -132
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-01b-resume.md +0 -116
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-02-select-framework.md +0 -117
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-03-scaffold-framework.md +0 -319
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-04-docs-and-scripts.md +0 -105
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-05-validate-and-summary.md +0 -93
- package/templates/bmad/tea/workflows/testarch/framework/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/framework/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/framework/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/framework/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/framework/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/framework/workflow-plan.md +0 -22
- package/templates/bmad/tea/workflows/testarch/framework/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/framework/workflow.yaml +0 -48
- package/templates/bmad/tea/workflows/testarch/nfr-assess/checklist.md +0 -407
- package/templates/bmad/tea/workflows/testarch/nfr-assess/instructions.md +0 -43
- package/templates/bmad/tea/workflows/testarch/nfr-assess/nfr-report-template.md +0 -470
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-01-load-context.md +0 -138
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-01b-resume.md +0 -106
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-02-define-thresholds.md +0 -107
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-03-gather-evidence.md +0 -108
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04-evaluate-and-score.md +0 -254
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04a-subagent-security.md +0 -138
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04a-subprocess-security.md +0 -138
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04b-subagent-performance.md +0 -84
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04b-subprocess-performance.md +0 -84
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04c-subagent-reliability.md +0 -85
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04c-subprocess-reliability.md +0 -85
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04d-subagent-scalability.md +0 -88
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04d-subprocess-scalability.md +0 -88
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04e-aggregate-nfr.md +0 -264
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-05-generate-report.md +0 -108
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/nfr-assess/workflow-plan.md +0 -19
- package/templates/bmad/tea/workflows/testarch/nfr-assess/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/nfr-assess/workflow.yaml +0 -48
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/checklist.md +0 -197
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/curriculum.yaml +0 -129
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/quiz-questions.yaml +0 -206
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/role-paths.yaml +0 -136
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/session-content-map.yaml +0 -207
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/tea-resources-index.yaml +0 -359
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/instructions.md +0 -130
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-01-init.md +0 -235
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-01b-continue.md +0 -147
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-02-assess.md +0 -258
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-03-session-menu.md +0 -219
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-01.md +0 -460
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-02.md +0 -465
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-03.md +0 -301
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-04.md +0 -234
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-05.md +0 -234
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-06.md +0 -209
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-07.md +0 -212
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-05-completion.md +0 -339
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-e/step-e-01-assess-workflow.md +0 -141
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-e/step-e-02-apply-edits.md +0 -122
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-v/step-v-01-validate.md +0 -263
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/templates/certificate-template.md +0 -86
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/templates/progress-template.yaml +0 -95
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/templates/session-notes-template.md +0 -83
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/workflow-plan-teach-me-testing.md +0 -950
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/workflow.md +0 -90
- package/templates/bmad/tea/workflows/testarch/test-design/checklist.md +0 -464
- package/templates/bmad/tea/workflows/testarch/test-design/instructions.md +0 -105
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-01-detect-mode.md +0 -134
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-01b-resume.md +0 -102
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-02-load-context.md +0 -242
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-03-risk-and-testability.md +0 -110
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-04-coverage-plan.md +0 -123
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-05-generate-output.md +0 -222
- package/templates/bmad/tea/workflows/testarch/test-design/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/test-design/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/test-design/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/test-design/test-design-architecture-template.md +0 -230
- package/templates/bmad/tea/workflows/testarch/test-design/test-design-handoff-template.md +0 -70
- package/templates/bmad/tea/workflows/testarch/test-design/test-design-qa-template.md +0 -396
- package/templates/bmad/tea/workflows/testarch/test-design/test-design-template.md +0 -344
- package/templates/bmad/tea/workflows/testarch/test-design/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/test-design/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/test-design/workflow-plan.md +0 -22
- package/templates/bmad/tea/workflows/testarch/test-design/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/test-design/workflow.yaml +0 -77
- package/templates/bmad/tea/workflows/testarch/test-review/checklist.md +0 -475
- package/templates/bmad/tea/workflows/testarch/test-review/instructions.md +0 -45
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-01-load-context.md +0 -197
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-01b-resume.md +0 -104
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-02-discover-tests.md +0 -113
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03-quality-evaluation.md +0 -274
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03a-subagent-determinism.md +0 -214
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03a-subprocess-determinism.md +0 -214
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03b-subagent-isolation.md +0 -125
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03b-subprocess-isolation.md +0 -125
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03c-subagent-maintainability.md +0 -102
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03c-subprocess-maintainability.md +0 -102
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03d-subprocess-coverage.md +0 -111
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03e-subagent-performance.md +0 -117
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03e-subprocess-performance.md +0 -117
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03f-aggregate-scores.md +0 -277
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-04-generate-report.md +0 -111
- package/templates/bmad/tea/workflows/testarch/test-review/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/test-review/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/test-review/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/test-review/test-review-template.md +0 -387
- package/templates/bmad/tea/workflows/testarch/test-review/validation-report-20260127-095021.md +0 -72
- package/templates/bmad/tea/workflows/testarch/test-review/validation-report-20260127-102401.md +0 -114
- package/templates/bmad/tea/workflows/testarch/test-review/workflow-plan.md +0 -18
- package/templates/bmad/tea/workflows/testarch/test-review/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/test-review/workflow.yaml +0 -48
- package/templates/bmad/tea/workflows/testarch/trace/checklist.md +0 -647
- package/templates/bmad/tea/workflows/testarch/trace/instructions.md +0 -43
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-01-load-context.md +0 -105
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-01b-resume.md +0 -102
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-02-discover-tests.md +0 -112
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-03-map-criteria.md +0 -97
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-04-analyze-gaps.md +0 -421
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-05-gate-decision.md +0 -266
- package/templates/bmad/tea/workflows/testarch/trace/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/trace/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/trace/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/trace/trace-template.md +0 -708
- package/templates/bmad/tea/workflows/testarch/trace/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/trace/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/trace/workflow-plan.md +0 -21
- package/templates/bmad/tea/workflows/testarch/trace/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/trace/workflow.yaml +0 -56
- package/templates/ecc/agents/architect.md +0 -211
- package/templates/ecc/agents/build-error-resolver.md +0 -114
- package/templates/ecc/agents/chief-of-staff.md +0 -151
- package/templates/ecc/agents/code-reviewer.md +0 -224
- package/templates/ecc/agents/database-reviewer.md +0 -91
- package/templates/ecc/agents/doc-updater.md +0 -107
- package/templates/ecc/agents/e2e-runner.md +0 -107
- package/templates/ecc/agents/go-build-resolver.md +0 -94
- package/templates/ecc/agents/go-reviewer.md +0 -76
- package/templates/ecc/agents/planner.md +0 -212
- package/templates/ecc/agents/python-reviewer.md +0 -98
- package/templates/ecc/agents/refactor-cleaner.md +0 -85
- package/templates/ecc/agents/security-reviewer.md +0 -108
- package/templates/ecc/agents/tdd-guide.md +0 -80
- package/templates/ecc/commands/build-fix.md +0 -62
- package/templates/ecc/commands/checkpoint.md +0 -74
- package/templates/ecc/commands/claw.md +0 -79
- package/templates/ecc/commands/code-review.md +0 -40
- package/templates/ecc/commands/e2e.md +0 -363
- package/templates/ecc/commands/eval.md +0 -120
- package/templates/ecc/commands/evolve.md +0 -193
- package/templates/ecc/commands/go-build.md +0 -183
- package/templates/ecc/commands/go-review.md +0 -148
- package/templates/ecc/commands/go-test.md +0 -268
- package/templates/ecc/commands/instinct-export.md +0 -91
- package/templates/ecc/commands/instinct-import.md +0 -142
- package/templates/ecc/commands/instinct-status.md +0 -86
- package/templates/ecc/commands/learn-eval.md +0 -91
- package/templates/ecc/commands/learn.md +0 -70
- package/templates/ecc/commands/multi-backend.md +0 -158
- package/templates/ecc/commands/multi-execute.md +0 -310
- package/templates/ecc/commands/multi-frontend.md +0 -158
- package/templates/ecc/commands/multi-plan.md +0 -261
- package/templates/ecc/commands/multi-workflow.md +0 -183
- package/templates/ecc/commands/orchestrate.md +0 -172
- package/templates/ecc/commands/plan.md +0 -113
- package/templates/ecc/commands/pm2.md +0 -272
- package/templates/ecc/commands/python-review.md +0 -297
- package/templates/ecc/commands/refactor-clean.md +0 -80
- package/templates/ecc/commands/sessions.md +0 -305
- package/templates/ecc/commands/setup-pm.md +0 -80
- package/templates/ecc/commands/skill-create.md +0 -174
- package/templates/ecc/commands/tdd.md +0 -326
- package/templates/ecc/commands/test-coverage.md +0 -69
- package/templates/ecc/commands/update-codemaps.md +0 -72
- package/templates/ecc/commands/update-docs.md +0 -84
- package/templates/ecc/commands/verify.md +0 -59
- package/templates/ecc/skills/api-design/SKILL.md +0 -523
- package/templates/ecc/skills/article-writing/SKILL.md +0 -85
- package/templates/ecc/skills/backend-patterns/SKILL.md +0 -598
- package/templates/ecc/skills/clickhouse-io/SKILL.md +0 -439
- package/templates/ecc/skills/coding-standards/SKILL.md +0 -530
- package/templates/ecc/skills/configure-ecc/SKILL.md +0 -326
- package/templates/ecc/skills/content-engine/SKILL.md +0 -88
- package/templates/ecc/skills/content-hash-cache-pattern/SKILL.md +0 -161
- package/templates/ecc/skills/continuous-learning/SKILL.md +0 -119
- package/templates/ecc/skills/continuous-learning/config.json +0 -18
- package/templates/ecc/skills/continuous-learning/evaluate-session.sh +0 -69
- package/templates/ecc/skills/continuous-learning-v2/SKILL.md +0 -295
- package/templates/ecc/skills/continuous-learning-v2/agents/observer.md +0 -137
- package/templates/ecc/skills/continuous-learning-v2/agents/start-observer.sh +0 -143
- package/templates/ecc/skills/continuous-learning-v2/config.json +0 -41
- package/templates/ecc/skills/continuous-learning-v2/hooks/observe.sh +0 -164
- package/templates/ecc/skills/continuous-learning-v2/scripts/instinct-cli.py +0 -575
- package/templates/ecc/skills/continuous-learning-v2/scripts/test_parse_instinct.py +0 -82
- package/templates/ecc/skills/cost-aware-llm-pipeline/SKILL.md +0 -183
- package/templates/ecc/skills/cpp-coding-standards/SKILL.md +0 -723
- package/templates/ecc/skills/cpp-testing/SKILL.md +0 -323
- package/templates/ecc/skills/database-migrations/SKILL.md +0 -335
- package/templates/ecc/skills/deployment-patterns/SKILL.md +0 -427
- package/templates/ecc/skills/django-patterns/SKILL.md +0 -734
- package/templates/ecc/skills/django-security/SKILL.md +0 -593
- package/templates/ecc/skills/django-tdd/SKILL.md +0 -729
- package/templates/ecc/skills/django-verification/SKILL.md +0 -469
- package/templates/ecc/skills/docker-patterns/SKILL.md +0 -364
- package/templates/ecc/skills/e2e-testing/SKILL.md +0 -326
- package/templates/ecc/skills/eval-harness/SKILL.md +0 -236
- package/templates/ecc/skills/foundation-models-on-device/SKILL.md +0 -243
- package/templates/ecc/skills/frontend-patterns/SKILL.md +0 -642
- package/templates/ecc/skills/frontend-slides/SKILL.md +0 -184
- package/templates/ecc/skills/frontend-slides/STYLE_PRESETS.md +0 -330
- package/templates/ecc/skills/golang-patterns/SKILL.md +0 -674
- package/templates/ecc/skills/golang-testing/SKILL.md +0 -720
- package/templates/ecc/skills/investor-materials/SKILL.md +0 -96
- package/templates/ecc/skills/investor-outreach/SKILL.md +0 -76
- package/templates/ecc/skills/iterative-retrieval/SKILL.md +0 -211
- package/templates/ecc/skills/java-coding-standards/SKILL.md +0 -147
- package/templates/ecc/skills/jpa-patterns/SKILL.md +0 -151
- package/templates/ecc/skills/liquid-glass-design/SKILL.md +0 -279
- package/templates/ecc/skills/market-research/SKILL.md +0 -75
- package/templates/ecc/skills/nutrient-document-processing/SKILL.md +0 -165
- package/templates/ecc/skills/postgres-patterns/SKILL.md +0 -147
- package/templates/ecc/skills/project-guidelines-example/SKILL.md +0 -349
- package/templates/ecc/skills/python-patterns/SKILL.md +0 -750
- package/templates/ecc/skills/python-testing/SKILL.md +0 -816
- package/templates/ecc/skills/regex-vs-llm-structured-text/SKILL.md +0 -220
- package/templates/ecc/skills/search-first/SKILL.md +0 -161
- package/templates/ecc/skills/security-review/SKILL.md +0 -495
- package/templates/ecc/skills/security-review/cloud-infrastructure-security.md +0 -361
- package/templates/ecc/skills/security-scan/SKILL.md +0 -165
- package/templates/ecc/skills/skill-stocktake/SKILL.md +0 -176
- package/templates/ecc/skills/skill-stocktake/scripts/quick-diff.sh +0 -87
- package/templates/ecc/skills/skill-stocktake/scripts/save-results.sh +0 -56
- package/templates/ecc/skills/skill-stocktake/scripts/scan.sh +0 -170
- package/templates/ecc/skills/springboot-patterns/SKILL.md +0 -314
- package/templates/ecc/skills/springboot-security/SKILL.md +0 -272
- package/templates/ecc/skills/springboot-tdd/SKILL.md +0 -158
- package/templates/ecc/skills/springboot-verification/SKILL.md +0 -231
- package/templates/ecc/skills/strategic-compact/SKILL.md +0 -103
- package/templates/ecc/skills/strategic-compact/suggest-compact.sh +0 -54
- package/templates/ecc/skills/swift-actor-persistence/SKILL.md +0 -143
- package/templates/ecc/skills/swift-concurrency-6-2/SKILL.md +0 -216
- package/templates/ecc/skills/swift-protocol-di-testing/SKILL.md +0 -190
- package/templates/ecc/skills/swiftui-patterns/SKILL.md +0 -259
- package/templates/ecc/skills/tdd-workflow/SKILL.md +0 -410
- package/templates/ecc/skills/verification-loop/SKILL.md +0 -126
- package/templates/ecc/skills/visa-doc-translate/README.md +0 -86
- package/templates/ecc/skills/visa-doc-translate/SKILL.md +0 -117
- package/templates/ext-skills/pinchtab/SKILL.md +0 -173
- package/templates/ext-skills/pinchtab/TRUST.md +0 -69
- package/templates/ext-skills/pinchtab/references/api.md +0 -297
- package/templates/ext-skills/pinchtab/references/env.md +0 -45
- package/templates/ext-skills/pinchtab/references/profiles.md +0 -107
- package/templates/mcp/trae/mcp.json +0 -35
- package/templates/plugins/claude-code-setup/.claude-plugin/plugin.json +0 -9
- package/templates/plugins/claude-code-setup/LICENSE +0 -202
- package/templates/plugins/claude-code-setup/README.md +0 -29
- package/templates/plugins/claude-code-setup/automation-recommender-example.png +0 -0
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/SKILL.md +0 -288
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/hooks-patterns.md +0 -226
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/mcp-servers.md +0 -263
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/plugins-reference.md +0 -98
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/skills-reference.md +0 -408
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/subagent-templates.md +0 -181
- package/templates/plugins/claude-md-management/.claude-plugin/plugin.json +0 -9
- package/templates/plugins/claude-md-management/LICENSE +0 -202
- package/templates/plugins/claude-md-management/README.md +0 -40
- package/templates/plugins/claude-md-management/claude-md-improver-example.png +0 -0
- package/templates/plugins/claude-md-management/commands/revise-claude-md.md +0 -54
- 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 +0 -179
- package/templates/plugins/claude-md-management/skills/claude-md-improver/references/quality-criteria.md +0 -109
- package/templates/plugins/claude-md-management/skills/claude-md-improver/references/templates.md +0 -253
- package/templates/plugins/claude-md-management/skills/claude-md-improver/references/update-guidelines.md +0 -150
- package/templates/plugins/code-simplifier/.claude-plugin/plugin.json +0 -9
- package/templates/plugins/code-simplifier/LICENSE +0 -202
- package/templates/plugins/code-simplifier/agents/code-simplifier.md +0 -52
- package/templates/plugins/commit-commands/.claude-plugin/plugin.json +0 -9
- package/templates/plugins/commit-commands/LICENSE +0 -202
- package/templates/plugins/commit-commands/README.md +0 -225
- package/templates/plugins/commit-commands/commands/clean_gone.md +0 -53
- package/templates/plugins/commit-commands/commands/commit-push-pr.md +0 -20
- package/templates/plugins/commit-commands/commands/commit.md +0 -17
- package/templates/trae-bmad/rules/bmad-agent-bmad-master.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-analyst.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-architect.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-dev.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-pm.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-qa.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-quick-flow-solo-dev.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-sm.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-tech-writer.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-ux-designer.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-tea-tea.md +0 -15
- package/templates/trae-bmad/rules/bmad-bmm-check-implementation-readiness.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-code-review.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-correct-course.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-create-architecture.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-create-epics-and-stories.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-create-prd.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-create-product-brief.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-create-story.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-create-ux-design.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-dev-story.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-document-project.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-domain-research.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-edit-prd.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-generate-project-context.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-market-research.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-qa-automate.md +0 -15
- package/templates/trae-bmad/rules/bmad-bmm-qa-generate-e2e-tests.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-quick-dev.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-quick-spec.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-retrospective.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-sprint-planning.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-sprint-status.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-technical-research.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-validate-prd.md +0 -6
- package/templates/trae-bmad/rules/bmad-brainstorming.md +0 -6
- package/templates/trae-bmad/rules/bmad-editorial-review-prose.md +0 -10
- package/templates/trae-bmad/rules/bmad-editorial-review-structure.md +0 -10
- package/templates/trae-bmad/rules/bmad-help.md +0 -10
- package/templates/trae-bmad/rules/bmad-index-docs.md +0 -10
- package/templates/trae-bmad/rules/bmad-party-mode.md +0 -6
- package/templates/trae-bmad/rules/bmad-review-adversarial-general.md +0 -10
- package/templates/trae-bmad/rules/bmad-review-edge-case-hunter.md +0 -10
- package/templates/trae-bmad/rules/bmad-shard-doc.md +0 -10
- package/templates/trae-bmad/rules/bmad-tea-teach-me-testing.md +0 -6
- package/templates/trae-bmad/rules/bmad-tea-testarch-atdd.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-automate.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-ci.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-framework.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-nfr.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-test-design.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-test-review.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-trace.md +0 -14
- /package/templates/{ecc/rules → rules}/README.md +0 -0
- /package/templates/{ecc/rules → rules}/common/agents.md +0 -0
- /package/templates/{ecc/rules → rules}/common/coding-style.md +0 -0
- /package/templates/{ecc/rules → rules}/common/development-workflow.md +0 -0
- /package/templates/{ecc/rules → rules}/common/git-workflow.md +0 -0
- /package/templates/{ecc/rules → rules}/common/hooks.md +0 -0
- /package/templates/{ecc/rules → rules}/common/patterns.md +0 -0
- /package/templates/{ecc/rules → rules}/common/performance.md +0 -0
- /package/templates/{ecc/rules → rules}/common/security.md +0 -0
- /package/templates/{ecc/rules → rules}/common/testing.md +0 -0
- /package/templates/{ecc/rules → rules}/golang/coding-style.md +0 -0
- /package/templates/{ecc/rules → rules}/golang/hooks.md +0 -0
- /package/templates/{ecc/rules → rules}/golang/patterns.md +0 -0
- /package/templates/{ecc/rules → rules}/golang/security.md +0 -0
- /package/templates/{ecc/rules → rules}/golang/testing.md +0 -0
- /package/templates/{ecc/rules → rules}/python/coding-style.md +0 -0
- /package/templates/{ecc/rules → rules}/python/hooks.md +0 -0
- /package/templates/{ecc/rules → rules}/python/patterns.md +0 -0
- /package/templates/{ecc/rules → rules}/python/security.md +0 -0
- /package/templates/{ecc/rules → rules}/python/testing.md +0 -0
- /package/templates/{ecc/rules → rules}/swift/coding-style.md +0 -0
- /package/templates/{ecc/rules → rules}/swift/hooks.md +0 -0
- /package/templates/{ecc/rules → rules}/swift/patterns.md +0 -0
- /package/templates/{ecc/rules → rules}/swift/security.md +0 -0
- /package/templates/{ecc/rules → rules}/swift/testing.md +0 -0
- /package/templates/{ecc/rules → rules}/typescript/coding-style.md +0 -0
- /package/templates/{ecc/rules → rules}/typescript/hooks.md +0 -0
- /package/templates/{ecc/rules → rules}/typescript/patterns.md +0 -0
- /package/templates/{ecc/rules → rules}/typescript/security.md +0 -0
- /package/templates/{ecc/rules → rules}/typescript/testing.md +0 -0
package/src/commands/update.js
CHANGED
|
@@ -1,430 +1,151 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import { fileURLToPath } from 'node:url'
|
|
3
|
-
import fse from 'fs-extra'
|
|
4
|
-
import YAML from 'yaml'
|
|
5
|
-
import { createLogger } from '../utils/logger.js'
|
|
6
|
-
import { computeFileHash, interpolate, listFiles, TEXT_EXTENSIONS } from '../utils/fs.js'
|
|
7
|
-
import { loadRegistry, resolveModules, getDefaultModules } from '../core/registry.js'
|
|
8
|
-
import { ADAPTERS } from '../adapters/trae-adapter.js'
|
|
9
|
-
|
|
10
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
11
|
-
const CCKIT_ROOT = path.resolve(__dirname, '../..')
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Extract the fileRegistry from a manifest, handling both formats:
|
|
15
|
-
* - cckit.fileRegistry (produced by init command)
|
|
16
|
-
* - top-level fileRegistry (legacy/manual)
|
|
17
|
-
*
|
|
18
|
-
* @param {object} manifest - Parsed manifest object
|
|
19
|
-
* @returns {object} File registry map { relativePath: hash }
|
|
20
|
-
*/
|
|
21
|
-
function extractFileRegistry(manifest) {
|
|
22
|
-
if (manifest.cckit && manifest.cckit.fileRegistry) {
|
|
23
|
-
return manifest.cckit.fileRegistry
|
|
24
|
-
}
|
|
25
|
-
if (manifest.fileRegistry) {
|
|
26
|
-
return manifest.fileRegistry
|
|
27
|
-
}
|
|
28
|
-
return {}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
1
|
/**
|
|
32
|
-
*
|
|
2
|
+
* update command — re-run orchestration to update installed components.
|
|
33
3
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @param {object} registry - Loaded registry
|
|
38
|
-
* @param {object} config - Config from manifest (ides, languages, etc.)
|
|
39
|
-
* @returns {object} sourceMap keyed by targetDir
|
|
40
|
-
*/
|
|
41
|
-
function buildSourceMap(registry, config) {
|
|
42
|
-
const selectedIds = getDefaultModules(registry)
|
|
43
|
-
const resolved = resolveModules(registry, selectedIds)
|
|
44
|
-
const sourceMap = {}
|
|
45
|
-
const ides = config.ides || ['claude-code']
|
|
46
|
-
|
|
47
|
-
for (const mod of resolved) {
|
|
48
|
-
if (mod.targets) {
|
|
49
|
-
for (const ide of ides) {
|
|
50
|
-
const target = mod.targets[ide]
|
|
51
|
-
if (!target) continue
|
|
52
|
-
|
|
53
|
-
const templateDir = path.resolve(
|
|
54
|
-
CCKIT_ROOT,
|
|
55
|
-
target.templateDir || mod.templateDir
|
|
56
|
-
)
|
|
57
|
-
sourceMap[target.targetDir] = {
|
|
58
|
-
templateDir,
|
|
59
|
-
adapter: target.adapter ? ADAPTERS[target.adapter] : undefined,
|
|
60
|
-
prefix: target.prefix || undefined,
|
|
61
|
-
moduleId: mod.id
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
} else if (mod.ideTarget) {
|
|
65
|
-
if (ides.includes(mod.ideTarget)) {
|
|
66
|
-
sourceMap[mod.targetDir] = {
|
|
67
|
-
templateDir: path.resolve(CCKIT_ROOT, mod.templateDir),
|
|
68
|
-
adapter: undefined,
|
|
69
|
-
prefix: undefined,
|
|
70
|
-
moduleId: mod.id
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
} else {
|
|
74
|
-
sourceMap[mod.targetDir] = {
|
|
75
|
-
templateDir: path.resolve(CCKIT_ROOT, mod.templateDir),
|
|
76
|
-
adapter: undefined,
|
|
77
|
-
prefix: undefined,
|
|
78
|
-
moduleId: mod.id
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return sourceMap
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Find the source template file for an installed file.
|
|
88
|
-
*
|
|
89
|
-
* @param {string} relPath - Relative path of the installed file (e.g. '.claude/rules/common/coding-style.md')
|
|
90
|
-
* @param {object} sourceMap - Map from targetDir to source info
|
|
91
|
-
* @returns {object|null} { srcAbsPath, adapter } or null if not found
|
|
4
|
+
* Default behavior: apply mode (re-run all steps).
|
|
5
|
+
* --dry-run: show current manifest state only.
|
|
6
|
+
* --no-apply: check-only, update lastUpdated timestamp.
|
|
92
7
|
*/
|
|
93
|
-
function findSourceForFile(relPath, sourceMap) {
|
|
94
|
-
// Normalize to forward slashes for matching
|
|
95
|
-
const normalizedRel = relPath.replace(/\\/g, '/')
|
|
96
|
-
|
|
97
|
-
// Collect all matching entries, pick the one with the longest prefix (most specific)
|
|
98
|
-
let bestMatch = null
|
|
99
|
-
let bestPrefixLen = -1
|
|
100
|
-
|
|
101
|
-
for (const [targetDir, source] of Object.entries(sourceMap)) {
|
|
102
|
-
const normalizedTarget = targetDir.replace(/\\/g, '/')
|
|
103
|
-
// Check if file is under this target directory
|
|
104
|
-
// Handle both "dir/file" and "dir" == "." (root-level targets)
|
|
105
|
-
const prefix = normalizedTarget === '.'
|
|
106
|
-
? ''
|
|
107
|
-
: normalizedTarget + '/'
|
|
108
|
-
|
|
109
|
-
if (prefix === '' ? true : normalizedRel.startsWith(prefix)) {
|
|
110
|
-
if (prefix.length > bestPrefixLen) {
|
|
111
|
-
const remainder = prefix === ''
|
|
112
|
-
? normalizedRel
|
|
113
|
-
: normalizedRel.slice(prefix.length)
|
|
114
|
-
|
|
115
|
-
// If a prefix was applied to the filename during install, strip it to find source
|
|
116
|
-
let srcRelPath = remainder
|
|
117
|
-
if (source.prefix) {
|
|
118
|
-
const fileName = path.basename(remainder)
|
|
119
|
-
if (fileName.startsWith(source.prefix)) {
|
|
120
|
-
const originalName = fileName.slice(source.prefix.length)
|
|
121
|
-
const dir = path.dirname(remainder)
|
|
122
|
-
srcRelPath = dir === '.' ? originalName : path.join(dir, originalName)
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
const srcAbsPath = path.join(source.templateDir, srcRelPath)
|
|
127
|
-
bestPrefixLen = prefix.length
|
|
128
|
-
bestMatch = {
|
|
129
|
-
srcAbsPath,
|
|
130
|
-
adapter: source.adapter
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return bestMatch
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Reinstall a single file from its template source.
|
|
140
|
-
*
|
|
141
|
-
* @param {string} targetDir - Project root directory
|
|
142
|
-
* @param {string} relPath - Relative path of the file
|
|
143
|
-
* @param {object} source - { srcAbsPath, adapter }
|
|
144
|
-
* @param {object} variables - Template interpolation variables
|
|
145
|
-
* @returns {Promise<boolean>} true if successfully reinstalled
|
|
146
|
-
*/
|
|
147
|
-
async function reinstallFile(targetDir, relPath, source, variables) {
|
|
148
|
-
const destPath = path.join(targetDir, relPath)
|
|
149
|
-
const ext = path.extname(relPath).toLowerCase()
|
|
150
|
-
|
|
151
|
-
if (!await fse.pathExists(source.srcAbsPath)) {
|
|
152
|
-
return false
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
await fse.ensureDir(path.dirname(destPath))
|
|
156
|
-
|
|
157
|
-
if (TEXT_EXTENSIONS.has(ext)) {
|
|
158
|
-
let content = await fse.readFile(source.srcAbsPath, 'utf8')
|
|
159
|
-
content = interpolate(content, variables)
|
|
160
|
-
if (source.adapter) {
|
|
161
|
-
content = source.adapter(content, path.basename(relPath))
|
|
162
|
-
}
|
|
163
|
-
await fse.writeFile(destPath, content, 'utf8')
|
|
164
|
-
} else {
|
|
165
|
-
await fse.copy(source.srcAbsPath, destPath)
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return true
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Discover new files from templates that are not yet tracked in fileRegistry.
|
|
173
|
-
* This handles newly added modules/skills in cckit updates.
|
|
174
|
-
*
|
|
175
|
-
* @param {object} sourceMap - Map from targetDir to source info
|
|
176
|
-
* @param {object} fileRegistry - Current file registry from manifest
|
|
177
|
-
* @returns {Promise<Array<{ relPath: string, source: { srcAbsPath: string, adapter?: Function } }>>}
|
|
178
|
-
*/
|
|
179
|
-
async function discoverNewFiles(sourceMap, fileRegistry) {
|
|
180
|
-
const newFiles = []
|
|
181
|
-
|
|
182
|
-
for (const [targetDir, source] of Object.entries(sourceMap)) {
|
|
183
|
-
if (!await fse.pathExists(source.templateDir)) continue
|
|
184
|
-
|
|
185
|
-
const templateFiles = await listFiles(source.templateDir)
|
|
186
|
-
|
|
187
|
-
for (const relPath of templateFiles) {
|
|
188
|
-
const fileName = path.basename(relPath)
|
|
189
|
-
const dir = path.dirname(relPath)
|
|
190
8
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
newFiles.push({
|
|
205
|
-
relPath: normalizedPath,
|
|
206
|
-
source: {
|
|
207
|
-
srcAbsPath: path.join(source.templateDir, relPath),
|
|
208
|
-
adapter: source.adapter,
|
|
209
|
-
},
|
|
210
|
-
})
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
return newFiles
|
|
216
|
-
}
|
|
9
|
+
import path from 'node:path'
|
|
10
|
+
import fse from 'fs-extra'
|
|
11
|
+
import { loadRegistry, resolvePlugins, resolveModelId } from '../core/registry.js'
|
|
12
|
+
import { DEFAULT_API_URL } from '../core/config.js'
|
|
13
|
+
import { orchestrate } from '../core/orchestrator.js'
|
|
14
|
+
import { readManifest, writeManifest, isLegacyManifest, serializeSteps } from '../utils/manifest.js'
|
|
15
|
+
import { createLogger } from '../utils/logger.js'
|
|
16
|
+
import { enablePlugins } from '../steps/enable-plugins.js'
|
|
17
|
+
import { installBmad } from '../steps/install-bmad.js'
|
|
18
|
+
import { installRules } from '../steps/install-rules.js'
|
|
19
|
+
import { installSkills } from '../steps/install-skills.js'
|
|
20
|
+
import { installMcp } from '../steps/install-mcp.js'
|
|
21
|
+
import { configureUser } from '../steps/configure-user.js'
|
|
217
22
|
|
|
218
23
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
* @param {object} opts - Command options
|
|
228
|
-
* @param {string} [opts.dir] - Target directory (default: cwd)
|
|
229
|
-
* @param {boolean} [opts.dryRun] - Preview changes without applying
|
|
230
|
-
* @param {boolean} [opts.apply] - Reinstall files from templates
|
|
231
|
-
* @param {boolean} [opts.force] - Force overwrite modified files without backup
|
|
232
|
-
* @param {boolean} [opts.debug] - Enable debug output
|
|
233
|
-
* @returns {Promise<object>} Result with { checked, modified, unchanged, missing, applied? }
|
|
234
|
-
* @throws {Error} If cckit is not installed
|
|
24
|
+
* @param {object} opts
|
|
25
|
+
* @param {string} [opts.dir] - Target directory
|
|
26
|
+
* @param {boolean} [opts.dryRun] - Preview only
|
|
27
|
+
* @param {boolean} [opts.apply] - Apply updates (default: true)
|
|
28
|
+
* @param {boolean} [opts.force] - Force overwrite
|
|
29
|
+
* @param {boolean} [opts.debug] - Debug output
|
|
30
|
+
* @param {object} [_deps] - Injectable dependencies
|
|
31
|
+
* @returns {Promise<object>}
|
|
235
32
|
*/
|
|
236
|
-
export async function runUpdate(opts = {}) {
|
|
237
|
-
const logger = createLogger({ debug: opts.debug })
|
|
33
|
+
export async function runUpdate(opts = {}, _deps = {}) {
|
|
34
|
+
const logger = _deps.logger || createLogger({ debug: opts.debug })
|
|
238
35
|
const targetDir = path.resolve(opts.dir || process.cwd())
|
|
239
|
-
const manifestPath = path.join(targetDir, '_bmad', '_config', 'manifest.yaml')
|
|
240
36
|
|
|
241
|
-
|
|
242
|
-
throw new Error('cckit is not installed. Run `cckit init` first.')
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
const manifestContent = await fse.readFile(manifestPath, 'utf8')
|
|
246
|
-
const manifest = YAML.parse(manifestContent)
|
|
247
|
-
|
|
248
|
-
logger.banner('cckit update')
|
|
249
|
-
|
|
250
|
-
const fileRegistry = extractFileRegistry(manifest)
|
|
251
|
-
const modified = []
|
|
252
|
-
const unchanged = []
|
|
253
|
-
const missing = []
|
|
254
|
-
|
|
255
|
-
for (const [relPath, expectedHash] of Object.entries(fileRegistry)) {
|
|
256
|
-
const fullPath = path.join(targetDir, relPath)
|
|
37
|
+
const manifest = await readManifest(targetDir)
|
|
257
38
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
const currentHash = await computeFileHash(fullPath)
|
|
264
|
-
if (currentHash !== expectedHash) {
|
|
265
|
-
modified.push(relPath)
|
|
266
|
-
} else {
|
|
267
|
-
unchanged.push(relPath)
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// Report results
|
|
272
|
-
const totalFiles = Object.keys(fileRegistry).length
|
|
273
|
-
if (totalFiles > 0) {
|
|
274
|
-
logger.info(` Checked ${totalFiles} registered file(s)`)
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
if (unchanged.length > 0) {
|
|
278
|
-
logger.success(`${unchanged.length} file(s) unchanged`)
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
if (modified.length > 0) {
|
|
282
|
-
logger.warn(`${modified.length} file(s) modified by user:`)
|
|
283
|
-
for (const f of modified) {
|
|
284
|
-
logger.info(` ${f}`)
|
|
285
|
-
}
|
|
39
|
+
if (isLegacyManifest(manifest)) {
|
|
40
|
+
throw new Error(
|
|
41
|
+
'Legacy manifest detected (v1 module-based format). ' +
|
|
42
|
+
'Please run `cckit init` to reinstall with the new orchestration format.'
|
|
43
|
+
)
|
|
286
44
|
}
|
|
287
45
|
|
|
288
|
-
|
|
289
|
-
logger.warn(`${missing.length} file(s) missing:`)
|
|
290
|
-
for (const f of missing) {
|
|
291
|
-
logger.info(` ${f}`)
|
|
292
|
-
}
|
|
293
|
-
}
|
|
46
|
+
logger.banner('cckit update')
|
|
294
47
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
48
|
+
// Show current step status
|
|
49
|
+
const steps = manifest.cckit?.steps || []
|
|
50
|
+
for (const step of steps) {
|
|
51
|
+
const status = step.skipped ? 'skipped' : step.success ? 'ok' : 'FAILED'
|
|
52
|
+
logger.info(` ${step.stepId}: ${status}`)
|
|
299
53
|
}
|
|
300
54
|
|
|
301
55
|
if (opts.dryRun) {
|
|
302
56
|
logger.info('\n (dry run - no changes made)')
|
|
303
|
-
return {
|
|
57
|
+
return { dryRun: true, steps }
|
|
304
58
|
}
|
|
305
59
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
const applied = { updated: 0, backedUp: 0, restored: 0, added: 0, failed: 0, orphaned: 0 }
|
|
309
|
-
|
|
310
|
-
let registry
|
|
311
|
-
let sourceMap
|
|
312
|
-
let variables
|
|
313
|
-
|
|
314
|
-
try {
|
|
315
|
-
registry = await loadRegistry()
|
|
316
|
-
const config = manifest.cckit && manifest.cckit.config
|
|
317
|
-
? manifest.cckit.config
|
|
318
|
-
: {}
|
|
319
|
-
|
|
320
|
-
sourceMap = buildSourceMap(registry, config)
|
|
321
|
-
variables = {
|
|
322
|
-
user_name: config.user_name || '',
|
|
323
|
-
communication_language: config.communication_language || '',
|
|
324
|
-
document_output_language: config.document_output_language || '',
|
|
325
|
-
languages: Array.isArray(config.languages)
|
|
326
|
-
? config.languages.join(', ')
|
|
327
|
-
: (config.languages || ''),
|
|
328
|
-
'project-root': '.'
|
|
329
|
-
}
|
|
330
|
-
} catch (err) {
|
|
331
|
-
logger.debug(`Failed to load registry for apply: ${err.message}`)
|
|
332
|
-
// Return result with empty applied if registry cannot be loaded
|
|
333
|
-
if (manifest.cckit) {
|
|
334
|
-
manifest.cckit.lastUpdated = new Date().toISOString()
|
|
335
|
-
}
|
|
336
|
-
await fse.writeFile(manifestPath, YAML.stringify(manifest), 'utf8')
|
|
337
|
-
logger.success('Update complete.')
|
|
338
|
-
return { checked: true, modified, unchanged, missing, applied }
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
// Process all files: unchanged + modified + missing
|
|
342
|
-
const allFiles = [...unchanged, ...modified, ...missing]
|
|
343
|
-
|
|
344
|
-
for (const relPath of allFiles) {
|
|
345
|
-
const source = findSourceForFile(relPath, sourceMap)
|
|
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]
|
|
351
|
-
continue
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
const fullPath = path.join(targetDir, relPath)
|
|
355
|
-
const isModified = modified.includes(relPath)
|
|
356
|
-
|
|
357
|
-
// Backup modified files unless --force
|
|
358
|
-
if (isModified && !opts.force) {
|
|
359
|
-
const bakPath = `${fullPath}.bak.${Date.now()}`
|
|
360
|
-
try {
|
|
361
|
-
await fse.copy(fullPath, bakPath)
|
|
362
|
-
applied.backedUp += 1
|
|
363
|
-
logger.debug(`Backed up: ${relPath} -> ${path.basename(bakPath)}`)
|
|
364
|
-
} catch (err) {
|
|
365
|
-
logger.debug(`Failed to backup ${relPath}: ${err.message}`)
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
// Reinstall file
|
|
370
|
-
const success = await reinstallFile(targetDir, relPath, source, variables)
|
|
371
|
-
if (success) {
|
|
372
|
-
applied.updated += 1
|
|
373
|
-
// Recompute hash for updated file
|
|
374
|
-
const newHash = await computeFileHash(fullPath)
|
|
375
|
-
fileRegistry[relPath] = newHash
|
|
376
|
-
|
|
377
|
-
if (missing.includes(relPath)) {
|
|
378
|
-
applied.restored += 1
|
|
379
|
-
}
|
|
380
|
-
} else {
|
|
381
|
-
applied.failed += 1
|
|
382
|
-
logger.debug(`Source not found for: ${relPath}`)
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// Discover and install new files from templates not yet in fileRegistry
|
|
387
|
-
const newFiles = await discoverNewFiles(sourceMap, fileRegistry)
|
|
388
|
-
if (newFiles.length > 0) {
|
|
389
|
-
logger.info(` Discovered ${newFiles.length} new file(s) from updated templates`)
|
|
390
|
-
for (const { relPath, source } of newFiles) {
|
|
391
|
-
const success = await reinstallFile(targetDir, relPath, source, variables)
|
|
392
|
-
if (success) {
|
|
393
|
-
applied.added += 1
|
|
394
|
-
const fullPath = path.join(targetDir, relPath)
|
|
395
|
-
const newHash = await computeFileHash(fullPath)
|
|
396
|
-
fileRegistry[relPath] = newHash
|
|
397
|
-
} else {
|
|
398
|
-
applied.failed += 1
|
|
399
|
-
logger.debug(`Failed to install new file: ${relPath}`)
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
// Update manifest with new fileRegistry
|
|
405
|
-
if (manifest.cckit) {
|
|
406
|
-
manifest.cckit.fileRegistry = fileRegistry
|
|
407
|
-
manifest.cckit.lastUpdated = new Date().toISOString()
|
|
408
|
-
}
|
|
409
|
-
await fse.writeFile(manifestPath, YAML.stringify(manifest), 'utf8')
|
|
410
|
-
|
|
411
|
-
logger.newline()
|
|
412
|
-
if (applied.orphaned > 0) {
|
|
413
|
-
logger.warn(`${applied.orphaned} file(s) orphaned (module removed, no longer tracked)`)
|
|
414
|
-
}
|
|
415
|
-
logger.success(
|
|
416
|
-
`Applied: ${applied.updated} updated, ${applied.added} added, ${applied.restored} restored, ${applied.backedUp} backed up, ${applied.failed} failed`
|
|
417
|
-
)
|
|
418
|
-
|
|
419
|
-
return { checked: true, modified, unchanged, missing, applied }
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
// Non-dry-run, non-apply: update the lastUpdated timestamp only
|
|
423
|
-
if (manifest.cckit) {
|
|
60
|
+
if (opts.apply === false) {
|
|
61
|
+
// Check-only: update timestamp
|
|
424
62
|
manifest.cckit.lastUpdated = new Date().toISOString()
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
63
|
+
await writeManifest(targetDir, manifest)
|
|
64
|
+
logger.success('Check complete.')
|
|
65
|
+
return { checked: true, steps }
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Apply mode: re-run orchestrator
|
|
69
|
+
const registry = _deps.registry || await loadRegistry()
|
|
70
|
+
const config = manifest.cckit?.config || {}
|
|
71
|
+
const plugins = resolvePlugins(registry, { plugins: config.plugins || 'default' })
|
|
72
|
+
|
|
73
|
+
// Resolve model for user settings
|
|
74
|
+
const userSettings = registry.userSettings || {}
|
|
75
|
+
const modelId = resolveModelId(userSettings, opts.model || config.model)
|
|
76
|
+
|
|
77
|
+
const stepSpecs = [
|
|
78
|
+
{
|
|
79
|
+
id: 'configure-user',
|
|
80
|
+
fn: _deps.configureUser || configureUser,
|
|
81
|
+
opts: {
|
|
82
|
+
apiUrl: opts.apiUrl || config.apiUrl || userSettings.apiUrl || DEFAULT_API_URL,
|
|
83
|
+
apiKey: opts.apiKey,
|
|
84
|
+
forceApiKey: opts.forceApiKey,
|
|
85
|
+
modelId,
|
|
86
|
+
modelEnvKeys: userSettings.modelEnvKeys || [],
|
|
87
|
+
yes: true, // update mode is non-interactive by default
|
|
88
|
+
skip: false,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 'enable-plugins',
|
|
93
|
+
fn: _deps.enablePlugins || enablePlugins,
|
|
94
|
+
opts: { targetDir, plugins, skip: false },
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'install-bmad',
|
|
98
|
+
fn: _deps.installBmad || installBmad,
|
|
99
|
+
opts: {
|
|
100
|
+
targetDir,
|
|
101
|
+
bmadConfig: registry.bmad,
|
|
102
|
+
// Pass saved config values only if they differ from BMAD defaults (Chinese)
|
|
103
|
+
config: {
|
|
104
|
+
communication_language: config.communication_language !== 'Chinese' ? config.communication_language : undefined,
|
|
105
|
+
document_output_language: config.document_output_language !== 'Chinese' ? config.document_output_language : undefined,
|
|
106
|
+
},
|
|
107
|
+
skip: false,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'install-rules',
|
|
112
|
+
fn: _deps.installRules || installRules,
|
|
113
|
+
opts: {
|
|
114
|
+
targetDir,
|
|
115
|
+
rulesConfig: registry.rules.ecc,
|
|
116
|
+
skip: false,
|
|
117
|
+
forceRefresh: true,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 'install-skills',
|
|
122
|
+
fn: _deps.installSkills || installSkills,
|
|
123
|
+
opts: { targetDir, skills: registry.skills || [], skip: false },
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: 'install-mcp',
|
|
127
|
+
fn: _deps.installMcp || installMcp,
|
|
128
|
+
opts: {
|
|
129
|
+
targetDir,
|
|
130
|
+
mcpConfig: registry.mcp,
|
|
131
|
+
skip: false,
|
|
132
|
+
forceOverwrite: opts.force || false,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
]
|
|
136
|
+
|
|
137
|
+
const report = await orchestrate(stepSpecs, logger)
|
|
138
|
+
|
|
139
|
+
// Update manifest
|
|
140
|
+
manifest.cckit.steps = serializeSteps(report.steps)
|
|
141
|
+
manifest.cckit.fileRegistry = {
|
|
142
|
+
...(manifest.cckit.fileRegistry || {}),
|
|
143
|
+
...report.fileRegistry,
|
|
144
|
+
}
|
|
145
|
+
manifest.cckit.lastUpdated = new Date().toISOString()
|
|
146
|
+
|
|
147
|
+
await writeManifest(targetDir, manifest)
|
|
428
148
|
logger.success('Update complete.')
|
|
429
|
-
|
|
149
|
+
|
|
150
|
+
return { applied: true, report }
|
|
430
151
|
}
|
package/src/core/config.js
CHANGED
|
@@ -4,34 +4,32 @@ const LANG_MAP = {
|
|
|
4
4
|
go: 'golang', golang: 'golang'
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
export const VERSION = '0.5.0'
|
|
8
|
+
|
|
9
|
+
export const DEFAULT_API_URL = 'https://gateway.cregis.ai'
|
|
10
|
+
|
|
7
11
|
export const DEFAULT_CONFIG = {
|
|
8
12
|
user_name: 'User',
|
|
9
|
-
communication_language: '
|
|
10
|
-
document_output_language: '
|
|
13
|
+
communication_language: 'Chinese',
|
|
14
|
+
document_output_language: 'Chinese',
|
|
11
15
|
languages: ['typescript', 'python', 'golang'],
|
|
12
|
-
modules: 'all',
|
|
13
16
|
plugins: 'default',
|
|
14
|
-
ides: ['claude-code', 'trae'],
|
|
15
17
|
excludeGroups: []
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
/**
|
|
19
|
-
* Merge CLI flags into a config object, falling back to DEFAULT_CONFIG
|
|
20
|
-
* for any values not provided.
|
|
21
|
+
* Merge CLI flags into a config object, falling back to DEFAULT_CONFIG.
|
|
21
22
|
*
|
|
22
23
|
* Supported flags:
|
|
23
|
-
* userName
|
|
24
|
+
* userName - Override user_name
|
|
24
25
|
* communicationLanguage - Override communication_language
|
|
25
|
-
* docLanguage
|
|
26
|
-
* lang
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* mcp - Set to false to add "mcp" to excludeGroups
|
|
33
|
-
* plugins - "default", "none", or comma-separated plugin IDs.
|
|
34
|
-
* Set to false (via --no-plugins) to disable plugins.
|
|
26
|
+
* docLanguage - Override document_output_language
|
|
27
|
+
* lang - Comma-separated language aliases (ts,py,go)
|
|
28
|
+
* bmad - Set to false to add "bmad" to excludeGroups
|
|
29
|
+
* ecc - Set to false to add "ecc" to excludeGroups
|
|
30
|
+
* mcp - Set to false to add "mcp" to excludeGroups
|
|
31
|
+
* plugins - "default", "none", or comma-separated plugin IDs
|
|
32
|
+
* skills - Set to false to skip skill installation
|
|
35
33
|
*
|
|
36
34
|
* @param {object} [flags={}] - CLI flags parsed by commander
|
|
37
35
|
* @returns {object} Merged config
|
|
@@ -50,22 +48,6 @@ export function mergeConfig(flags = {}) {
|
|
|
50
48
|
.filter(Boolean)
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
if (flags.modules) {
|
|
54
|
-
config.modules = flags.modules === 'all'
|
|
55
|
-
? 'all'
|
|
56
|
-
: flags.modules.split(',').map(m => m.trim())
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (flags.ides) {
|
|
60
|
-
config.ides = flags.ides.split(',').map(i => i.trim())
|
|
61
|
-
} else {
|
|
62
|
-
// Handle --no-trae / --no-claude-code negation flags
|
|
63
|
-
const ides = ['claude-code', 'trae']
|
|
64
|
-
if (flags.trae === false) {
|
|
65
|
-
config.ides = ides.filter(i => i !== 'trae')
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
51
|
if (flags.bmad === false) config.excludeGroups.push('bmad')
|
|
70
52
|
if (flags.ecc === false) config.excludeGroups.push('ecc')
|
|
71
53
|
if (flags.mcp === false) config.excludeGroups.push('mcp')
|
|
@@ -78,5 +60,15 @@ export function mergeConfig(flags = {}) {
|
|
|
78
60
|
: flags.plugins.split(',').map(p => p.trim())
|
|
79
61
|
}
|
|
80
62
|
|
|
63
|
+
if (flags.skills === false) {
|
|
64
|
+
config.skipSkills = true
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// User-level settings
|
|
68
|
+
if (flags.apiUrl) config.apiUrl = flags.apiUrl
|
|
69
|
+
if (flags.apiKey) config.apiKey = flags.apiKey
|
|
70
|
+
if (flags.forceApiKey) config.forceApiKey = true
|
|
71
|
+
if (flags.model) config.model = flags.model
|
|
72
|
+
|
|
81
73
|
return config
|
|
82
74
|
}
|