mustflow 1.18.16 → 1.31.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 +28 -8
- package/dist/cli/commands/adapters.js +90 -0
- package/dist/cli/commands/classify.js +3 -4
- package/dist/cli/commands/contract-lint.js +26 -6
- package/dist/cli/commands/dashboard.js +103 -4
- package/dist/cli/commands/explain-verify.js +213 -0
- package/dist/cli/commands/explain.js +48 -4
- package/dist/cli/commands/handoff.js +136 -0
- package/dist/cli/commands/run.js +302 -168
- package/dist/cli/commands/update.js +91 -61
- package/dist/cli/commands/upgrade.js +65 -0
- package/dist/cli/commands/verify.js +304 -139
- package/dist/cli/i18n/en.js +77 -4
- package/dist/cli/i18n/es.js +77 -4
- package/dist/cli/i18n/fr.js +77 -4
- package/dist/cli/i18n/hi.js +77 -4
- package/dist/cli/i18n/ko.js +77 -4
- package/dist/cli/i18n/zh.js +77 -4
- package/dist/cli/index.js +34 -42
- package/dist/cli/lib/command-registry.js +15 -0
- package/dist/cli/lib/dashboard-export.js +775 -0
- package/dist/cli/lib/dashboard-html.js +1 -1
- package/dist/cli/lib/local-index.js +33 -14
- package/dist/cli/lib/reporter.js +6 -0
- package/dist/cli/lib/run-plan.js +239 -0
- package/dist/cli/lib/templates.js +18 -3
- package/dist/cli/lib/update-diff-preview.js +163 -0
- package/dist/cli/lib/validation.js +132 -1
- package/dist/core/adapter-compatibility.js +235 -0
- package/dist/core/bounded-output.js +38 -0
- package/dist/core/change-classification.js +14 -1
- package/dist/core/change-verification.js +246 -5
- package/dist/core/check-issues.js +10 -0
- package/dist/core/command-contract-validation.js +34 -0
- package/dist/core/command-cwd.js +18 -6
- package/dist/core/command-effects.js +13 -0
- package/dist/core/command-env.js +91 -0
- package/dist/core/contract-lint.js +260 -4
- package/dist/core/contract-models.js +172 -0
- package/dist/core/dashboard-verification.js +10 -0
- package/dist/core/doc-review-triage.js +1 -0
- package/dist/core/handoff-record.js +376 -0
- package/dist/core/public-json-contracts.js +23 -0
- package/dist/core/run-performance-history.js +307 -0
- package/dist/core/run-profile.js +87 -0
- package/dist/core/run-receipt.js +217 -11
- package/dist/core/run-write-drift.js +196 -0
- package/dist/core/secret-redaction.js +39 -0
- package/dist/core/skill-route-alignment.js +90 -0
- package/dist/core/source-anchors.js +3 -5
- package/dist/core/test-selection.js +224 -0
- package/dist/core/verification-decision-graph.js +290 -0
- package/dist/core/verification-scheduler.js +96 -2
- package/package.json +3 -1
- package/schemas/README.md +15 -4
- package/schemas/adapter-compatibility-report.schema.json +184 -0
- package/schemas/change-verification-report.schema.json +286 -4
- package/schemas/commands.schema.json +55 -2
- package/schemas/contract-lint-report.schema.json +99 -0
- package/schemas/dashboard-export.schema.json +273 -0
- package/schemas/explain-report.schema.json +267 -2
- package/schemas/handoff-validation-report.schema.json +68 -0
- package/schemas/run-receipt.schema.json +183 -1
- package/templates/default/common/.mustflow/config/commands.toml +3 -1
- package/templates/default/i18n.toml +78 -234
- package/templates/default/locales/en/.mustflow/skills/INDEX.md +7 -3
- package/templates/default/locales/en/.mustflow/skills/architecture-deepening-review/SKILL.md +154 -0
- package/templates/default/locales/en/.mustflow/skills/behavior-preserving-refactor/SKILL.md +8 -3
- package/templates/default/locales/en/.mustflow/skills/code-review/SKILL.md +9 -4
- package/templates/default/locales/en/.mustflow/skills/date-number-audit/SKILL.md +19 -4
- package/templates/default/locales/en/.mustflow/skills/diff-risk-review/SKILL.md +4 -2
- package/templates/default/locales/en/.mustflow/skills/external-skill-intake/SKILL.md +141 -0
- package/templates/default/locales/en/.mustflow/skills/release-notes-authoring/SKILL.md +143 -0
- package/templates/default/locales/en/.mustflow/skills/repro-first-debug/SKILL.md +22 -8
- package/templates/default/locales/en/.mustflow/skills/skill-authoring/SKILL.md +3 -3
- package/templates/default/locales/en/.mustflow/skills/source-freshness-check/SKILL.md +22 -9
- package/templates/default/locales/en/.mustflow/skills/ui-quality-gate/SKILL.md +21 -13
- package/templates/default/locales/en/.mustflow/skills/vertical-slice-tdd/SKILL.md +167 -0
- package/templates/default/manifest.toml +16 -1
- package/templates/default/locales/es/.mustflow/skills/INDEX.md +0 -75
- package/templates/default/locales/es/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/es/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/es/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/es/.mustflow/skills/code-review/SKILL.md +0 -115
- package/templates/default/locales/es/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/es/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/es/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/es/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/es/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/es/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/es/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/es/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/es/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/es/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/es/.mustflow/skills/docs-update/SKILL.md +0 -97
- package/templates/default/locales/es/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/es/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/es/.mustflow/skills/failure-triage/SKILL.md +0 -97
- package/templates/default/locales/es/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/es/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/es/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/es/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
- package/templates/default/locales/es/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/es/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/es/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/es/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/es/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/es/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/es/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/es/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/es/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/es/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/es/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/es/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/es/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/es/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/es/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/es/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/es/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/es/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/es/.mustflow/skills/test-maintenance/SKILL.md +0 -122
- package/templates/default/locales/es/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/es/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
- package/templates/default/locales/fr/.mustflow/skills/INDEX.md +0 -75
- package/templates/default/locales/fr/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/fr/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/fr/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/fr/.mustflow/skills/code-review/SKILL.md +0 -115
- package/templates/default/locales/fr/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/fr/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/fr/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/fr/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/fr/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/fr/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/fr/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/fr/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/fr/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/fr/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/fr/.mustflow/skills/docs-update/SKILL.md +0 -97
- package/templates/default/locales/fr/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/fr/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/fr/.mustflow/skills/failure-triage/SKILL.md +0 -97
- package/templates/default/locales/fr/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/fr/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/fr/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/fr/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
- package/templates/default/locales/fr/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/fr/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/fr/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/fr/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/fr/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/fr/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/fr/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/fr/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/fr/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/fr/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/fr/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/fr/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/fr/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/fr/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/fr/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/fr/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/fr/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/fr/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/fr/.mustflow/skills/test-maintenance/SKILL.md +0 -122
- package/templates/default/locales/fr/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/fr/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
- package/templates/default/locales/hi/.mustflow/skills/INDEX.md +0 -75
- package/templates/default/locales/hi/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/hi/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/hi/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/hi/.mustflow/skills/code-review/SKILL.md +0 -115
- package/templates/default/locales/hi/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/hi/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/hi/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/hi/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/hi/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/hi/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/hi/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/hi/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/hi/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/hi/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/hi/.mustflow/skills/docs-update/SKILL.md +0 -97
- package/templates/default/locales/hi/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/hi/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/hi/.mustflow/skills/failure-triage/SKILL.md +0 -97
- package/templates/default/locales/hi/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/hi/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/hi/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/hi/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
- package/templates/default/locales/hi/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/hi/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/hi/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/hi/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/hi/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/hi/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/hi/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/hi/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/hi/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/hi/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/hi/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/hi/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/hi/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/hi/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/hi/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/hi/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/hi/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/hi/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/hi/.mustflow/skills/test-maintenance/SKILL.md +0 -122
- package/templates/default/locales/hi/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/hi/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
- package/templates/default/locales/ko/.mustflow/skills/INDEX.md +0 -80
- package/templates/default/locales/ko/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/ko/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/ko/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/ko/.mustflow/skills/code-review/SKILL.md +0 -118
- package/templates/default/locales/ko/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/ko/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/ko/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/ko/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/ko/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/ko/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/ko/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/ko/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/ko/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/ko/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/ko/.mustflow/skills/docs-update/SKILL.md +0 -107
- package/templates/default/locales/ko/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/ko/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/ko/.mustflow/skills/failure-triage/SKILL.md +0 -119
- package/templates/default/locales/ko/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/ko/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/ko/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/ko/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -259
- package/templates/default/locales/ko/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/ko/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/ko/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/ko/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/ko/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/ko/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/ko/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/ko/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/ko/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/ko/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/ko/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/ko/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/ko/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/ko/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/ko/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/ko/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/ko/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/ko/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/ko/.mustflow/skills/test-maintenance/SKILL.md +0 -130
- package/templates/default/locales/ko/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/ko/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
- package/templates/default/locales/zh/.mustflow/skills/INDEX.md +0 -74
- package/templates/default/locales/zh/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/zh/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/zh/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/zh/.mustflow/skills/code-review/SKILL.md +0 -115
- package/templates/default/locales/zh/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/zh/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/zh/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/zh/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/zh/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/zh/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/zh/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/zh/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/zh/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/zh/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/zh/.mustflow/skills/docs-update/SKILL.md +0 -97
- package/templates/default/locales/zh/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/zh/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/zh/.mustflow/skills/failure-triage/SKILL.md +0 -96
- package/templates/default/locales/zh/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/zh/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/zh/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/zh/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
- package/templates/default/locales/zh/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/zh/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/zh/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/zh/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/zh/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/zh/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/zh/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/zh/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/zh/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/zh/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/zh/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/zh/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/zh/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/zh/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/zh/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/zh/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/zh/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/zh/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/zh/.mustflow/skills/test-maintenance/SKILL.md +0 -122
- package/templates/default/locales/zh/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/zh/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
|
@@ -8,6 +8,7 @@ import { t } from '../lib/i18n.js';
|
|
|
8
8
|
import { resolveMustflowRoot } from '../lib/project-root.js';
|
|
9
9
|
import { getDefaultTemplate, getTemplateFiles, skillNameForTemplatePath } from '../lib/templates.js';
|
|
10
10
|
import { readTomlFile, stringifyToml } from '../lib/toml.js';
|
|
11
|
+
import { createUpdateDiffPreview, shouldPreviewUpdateDiff } from '../lib/update-diff-preview.js';
|
|
11
12
|
const UPDATE_SCHEMA_VERSION = '1';
|
|
12
13
|
const CUSTOMIZED_LOCK_ACTION = 'customized';
|
|
13
14
|
const UPDATE_POLICY = {
|
|
@@ -25,6 +26,7 @@ export function getUpdateHelp(lang = 'en') {
|
|
|
25
26
|
summary: t(lang, 'update.help.summary'),
|
|
26
27
|
options: [
|
|
27
28
|
{ label: '--dry-run', description: t(lang, 'update.help.option.dryRun') },
|
|
29
|
+
{ label: '--diff', description: t(lang, 'update.help.option.diff') },
|
|
28
30
|
{
|
|
29
31
|
label: '--apply',
|
|
30
32
|
description: t(lang, 'update.help.option.apply'),
|
|
@@ -32,7 +34,7 @@ export function getUpdateHelp(lang = 'en') {
|
|
|
32
34
|
{ label: '--json', description: t(lang, 'cli.option.json') },
|
|
33
35
|
{ label: '-h, --help', description: t(lang, 'cli.option.help') },
|
|
34
36
|
],
|
|
35
|
-
examples: ['mf update --dry-run', 'mf update --dry-run --json', 'mf update --apply'],
|
|
37
|
+
examples: ['mf update --dry-run', 'mf update --dry-run --diff', 'mf update --dry-run --diff --json', 'mf update --apply'],
|
|
36
38
|
exitCodes: [
|
|
37
39
|
{
|
|
38
40
|
label: '0',
|
|
@@ -86,7 +88,27 @@ function templateTargetSafetyIssue(projectRoot, targetPath, allowMissingLeaf) {
|
|
|
86
88
|
return error instanceof Error ? error.message : String(error);
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
|
-
|
|
91
|
+
function createPlanItem(source, action, reason) {
|
|
92
|
+
return {
|
|
93
|
+
relativePath: source.relativePath,
|
|
94
|
+
sourceKind: source.sourceKind,
|
|
95
|
+
source,
|
|
96
|
+
action,
|
|
97
|
+
reason,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function publicPlanItem(item) {
|
|
101
|
+
return {
|
|
102
|
+
relativePath: item.relativePath,
|
|
103
|
+
sourceKind: item.sourceKind,
|
|
104
|
+
action: item.action,
|
|
105
|
+
reason: item.reason,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function publicPlanItems(items) {
|
|
109
|
+
return items.map((item) => publicPlanItem(item));
|
|
110
|
+
}
|
|
111
|
+
function createUpdatePlan(projectRoot) {
|
|
90
112
|
const lockResult = readManifestLock(projectRoot);
|
|
91
113
|
if (lockResult.kind === 'missing') {
|
|
92
114
|
return { items: [], error: `Missing ${MANIFEST_LOCK_RELATIVE_PATH}` };
|
|
@@ -111,94 +133,68 @@ export function planUpdate(projectRoot) {
|
|
|
111
133
|
ensureInside(projectRoot, targetPath);
|
|
112
134
|
const unsafeTargetReason = templateTargetSafetyIssue(projectRoot, targetPath, true);
|
|
113
135
|
if (unsafeTargetReason) {
|
|
114
|
-
items.push(
|
|
115
|
-
relativePath: source.relativePath,
|
|
116
|
-
sourceKind: source.sourceKind,
|
|
117
|
-
action: 'blocked-local-change',
|
|
118
|
-
reason: unsafeTargetReason,
|
|
119
|
-
});
|
|
136
|
+
items.push(createPlanItem(source, 'blocked-local-change', unsafeTargetReason));
|
|
120
137
|
continue;
|
|
121
138
|
}
|
|
122
139
|
if (!existsSync(targetPath)) {
|
|
123
140
|
if (lockedFile) {
|
|
124
|
-
items.push(
|
|
125
|
-
relativePath: source.relativePath,
|
|
126
|
-
sourceKind: source.sourceKind,
|
|
127
|
-
action: 'blocked-local-change',
|
|
128
|
-
reason: 'target file is missing but tracked by the manifest lock',
|
|
129
|
-
});
|
|
141
|
+
items.push(createPlanItem(source, 'blocked-local-change', 'target file is missing but tracked by the manifest lock'));
|
|
130
142
|
continue;
|
|
131
143
|
}
|
|
132
|
-
items.push(
|
|
133
|
-
relativePath: source.relativePath,
|
|
134
|
-
sourceKind: source.sourceKind,
|
|
135
|
-
action: 'create',
|
|
136
|
-
reason: 'target file is missing',
|
|
137
|
-
});
|
|
144
|
+
items.push(createPlanItem(source, 'create', 'target file is missing'));
|
|
138
145
|
continue;
|
|
139
146
|
}
|
|
140
147
|
const currentHash = sha256File(targetPath);
|
|
141
148
|
const templateHash = templateFileHash(source);
|
|
142
149
|
if (!lockedFile && currentHash !== templateHash) {
|
|
143
|
-
items.push(
|
|
144
|
-
relativePath: source.relativePath,
|
|
145
|
-
sourceKind: source.sourceKind,
|
|
146
|
-
action: 'blocked-local-change',
|
|
147
|
-
reason: 'target file exists but is not tracked by the manifest lock',
|
|
148
|
-
});
|
|
150
|
+
items.push(createPlanItem(source, 'blocked-local-change', 'target file exists but is not tracked by the manifest lock'));
|
|
149
151
|
continue;
|
|
150
152
|
}
|
|
151
153
|
if (lockedFile && currentHash !== lockedFile.contentHash) {
|
|
152
|
-
items.push(
|
|
153
|
-
relativePath: source.relativePath,
|
|
154
|
-
sourceKind: source.sourceKind,
|
|
155
|
-
action: 'blocked-local-change',
|
|
156
|
-
reason: 'current file differs from the manifest lock baseline',
|
|
157
|
-
});
|
|
154
|
+
items.push(createPlanItem(source, 'blocked-local-change', 'current file differs from the manifest lock baseline'));
|
|
158
155
|
continue;
|
|
159
156
|
}
|
|
160
157
|
if (lockedFile?.lastAction === CUSTOMIZED_LOCK_ACTION && currentHash !== templateHash) {
|
|
161
|
-
items.push(
|
|
162
|
-
relativePath: source.relativePath,
|
|
163
|
-
sourceKind: source.sourceKind,
|
|
164
|
-
action: 'unchanged',
|
|
165
|
-
reason: 'manifest lock marks this file as customized and current file matches that baseline',
|
|
166
|
-
});
|
|
158
|
+
items.push(createPlanItem(source, 'unchanged', 'manifest lock marks this file as customized and current file matches that baseline'));
|
|
167
159
|
continue;
|
|
168
160
|
}
|
|
169
161
|
if (lockedFile?.source === 'managed_block' && currentHash !== templateHash) {
|
|
170
|
-
items.push(
|
|
171
|
-
relativePath: source.relativePath,
|
|
172
|
-
sourceKind: source.sourceKind,
|
|
173
|
-
action: 'manual-review',
|
|
174
|
-
reason: 'managed block requires a block-level manifest baseline',
|
|
175
|
-
});
|
|
162
|
+
items.push(createPlanItem(source, 'manual-review', 'managed block requires a block-level manifest baseline'));
|
|
176
163
|
continue;
|
|
177
164
|
}
|
|
178
165
|
if (currentHash !== templateHash) {
|
|
179
|
-
items.push(
|
|
180
|
-
relativePath: source.relativePath,
|
|
181
|
-
sourceKind: source.sourceKind,
|
|
182
|
-
action: 'update',
|
|
183
|
-
reason: 'template content differs from current file',
|
|
184
|
-
});
|
|
166
|
+
items.push(createPlanItem(source, 'update', 'template content differs from current file'));
|
|
185
167
|
continue;
|
|
186
168
|
}
|
|
187
|
-
items.push(
|
|
188
|
-
relativePath: source.relativePath,
|
|
189
|
-
sourceKind: source.sourceKind,
|
|
190
|
-
action: 'unchanged',
|
|
191
|
-
reason: 'current file matches the bundled template',
|
|
192
|
-
});
|
|
169
|
+
items.push(createPlanItem(source, 'unchanged', 'current file matches the bundled template'));
|
|
193
170
|
}
|
|
194
171
|
return { items };
|
|
195
172
|
}
|
|
173
|
+
export function planUpdate(projectRoot) {
|
|
174
|
+
const plan = createUpdatePlan(projectRoot);
|
|
175
|
+
return {
|
|
176
|
+
items: publicPlanItems(plan.items),
|
|
177
|
+
...(plan.error ? { error: plan.error } : {}),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
196
180
|
function printItems(title, items, reporter) {
|
|
197
181
|
reporter.stdout(`${title}: ${items.length}`);
|
|
198
182
|
for (const item of items) {
|
|
199
183
|
reporter.stdout(`- ${item.relativePath} (${item.reason})`);
|
|
200
184
|
}
|
|
201
185
|
}
|
|
186
|
+
function withDiffPreviews(projectRoot, items) {
|
|
187
|
+
return items.map((item) => {
|
|
188
|
+
const publicItem = publicPlanItem(item);
|
|
189
|
+
if (!shouldPreviewUpdateDiff(item.action)) {
|
|
190
|
+
return publicItem;
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
...publicItem,
|
|
194
|
+
diff_preview: createUpdateDiffPreview(projectRoot, item),
|
|
195
|
+
};
|
|
196
|
+
});
|
|
197
|
+
}
|
|
202
198
|
export function summarizePlan(items) {
|
|
203
199
|
return {
|
|
204
200
|
blockedLocalChanges: items.filter((item) => item.action === 'blocked-local-change').length,
|
|
@@ -369,16 +365,37 @@ function printPlan(output, reporter, lang) {
|
|
|
369
365
|
reporter.stdout(t(lang, 'update.plan.noUpdates'));
|
|
370
366
|
}
|
|
371
367
|
}
|
|
368
|
+
function printDiffPreviews(items, reporter, lang) {
|
|
369
|
+
const itemsWithDiff = items.filter((item) => item.diff_preview);
|
|
370
|
+
if (itemsWithDiff.length === 0) {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
reporter.stdout(t(lang, 'update.diff.title'));
|
|
374
|
+
for (const item of itemsWithDiff) {
|
|
375
|
+
const preview = item.diff_preview;
|
|
376
|
+
if (!preview) {
|
|
377
|
+
continue;
|
|
378
|
+
}
|
|
379
|
+
if (!preview.available) {
|
|
380
|
+
reporter.stdout(`# ${item.relativePath}: ${t(lang, 'update.diff.unavailable', { reason: preview.reason ?? 'unknown' })}`);
|
|
381
|
+
continue;
|
|
382
|
+
}
|
|
383
|
+
for (const line of preview.lines) {
|
|
384
|
+
reporter.stdout(line);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
372
388
|
export function runUpdate(args, reporter, lang = 'en') {
|
|
373
389
|
if (args.includes('--help') || args.includes('-h')) {
|
|
374
390
|
reporter.stdout(getUpdateHelp(lang));
|
|
375
391
|
return 0;
|
|
376
392
|
}
|
|
377
|
-
const supported = new Set(['--dry-run', '--apply', '--json']);
|
|
393
|
+
const supported = new Set(['--dry-run', '--apply', '--json', '--diff']);
|
|
378
394
|
const unsupported = args.filter((arg) => !supported.has(arg));
|
|
379
395
|
const wantsJson = args.includes('--json');
|
|
380
396
|
const wantsDryRun = args.includes('--dry-run');
|
|
381
397
|
const wantsApply = args.includes('--apply');
|
|
398
|
+
const wantsDiff = args.includes('--diff');
|
|
382
399
|
const requestedMode = getRequestedMode(wantsDryRun, wantsApply);
|
|
383
400
|
if (unsupported.length > 0) {
|
|
384
401
|
printUsageError(reporter, t(lang, 'cli.error.unknownOption', { option: unsupported[0] }), 'mf update --help', getUpdateHelp(lang), lang);
|
|
@@ -393,6 +410,15 @@ export function runUpdate(args, reporter, lang = 'en') {
|
|
|
393
410
|
printUsageError(reporter, error, 'mf update --help', getUpdateHelp(lang), lang);
|
|
394
411
|
return 1;
|
|
395
412
|
}
|
|
413
|
+
if (wantsDiff && !wantsDryRun) {
|
|
414
|
+
const error = t(lang, 'update.error.diffRequiresDryRun');
|
|
415
|
+
if (wantsJson) {
|
|
416
|
+
reporter.stdout(JSON.stringify(withMode(planOutput([], error, false), requestedMode), null, 2));
|
|
417
|
+
return 1;
|
|
418
|
+
}
|
|
419
|
+
printUsageError(reporter, error, 'mf update --help', getUpdateHelp(lang), lang);
|
|
420
|
+
return 1;
|
|
421
|
+
}
|
|
396
422
|
if (!wantsDryRun && !wantsApply) {
|
|
397
423
|
const error = t(lang, 'update.error.missingMode');
|
|
398
424
|
if (wantsJson) {
|
|
@@ -403,22 +429,26 @@ export function runUpdate(args, reporter, lang = 'en') {
|
|
|
403
429
|
return 1;
|
|
404
430
|
}
|
|
405
431
|
const projectRoot = resolveMustflowRoot();
|
|
406
|
-
const plan =
|
|
432
|
+
const plan = createUpdatePlan(projectRoot);
|
|
407
433
|
if (plan.error) {
|
|
408
434
|
if (wantsJson) {
|
|
409
|
-
reporter.stdout(JSON.stringify(withMode(planOutput(plan.items, plan.error, false), requestedMode), null, 2));
|
|
435
|
+
reporter.stdout(JSON.stringify(withMode(planOutput(publicPlanItems(plan.items), plan.error, false), requestedMode), null, 2));
|
|
410
436
|
return 1;
|
|
411
437
|
}
|
|
412
438
|
reporter.stderr(plan.error);
|
|
413
439
|
return 1;
|
|
414
440
|
}
|
|
415
|
-
const
|
|
441
|
+
const outputItems = wantsDiff ? withDiffPreviews(projectRoot, plan.items) : publicPlanItems(plan.items);
|
|
442
|
+
const dryRunOutput = withMode(planOutput(outputItems, undefined, false), requestedMode);
|
|
416
443
|
if (wantsDryRun) {
|
|
417
444
|
if (wantsJson) {
|
|
418
445
|
reporter.stdout(JSON.stringify(dryRunOutput, null, 2));
|
|
419
446
|
return dryRunOutput.ok ? 0 : 1;
|
|
420
447
|
}
|
|
421
448
|
printPlan(dryRunOutput, reporter, lang);
|
|
449
|
+
if (wantsDiff) {
|
|
450
|
+
printDiffPreviews(dryRunOutput.items, reporter, lang);
|
|
451
|
+
}
|
|
422
452
|
reporter.stdout(t(lang, 'update.plan.noFilesWritten'));
|
|
423
453
|
return dryRunOutput.ok ? 0 : 1;
|
|
424
454
|
}
|
|
@@ -437,7 +467,7 @@ export function runUpdate(args, reporter, lang = 'en') {
|
|
|
437
467
|
stdout: () => undefined,
|
|
438
468
|
stderr: (message) => reporter.stderr(message),
|
|
439
469
|
}, lang);
|
|
440
|
-
reporter.stdout(JSON.stringify(withMode(planOutput(plan.items, undefined, applyResult.wroteFiles), 'apply'), null, 2));
|
|
470
|
+
reporter.stdout(JSON.stringify(withMode(planOutput(publicPlanItems(plan.items), undefined, applyResult.wroteFiles), 'apply'), null, 2));
|
|
441
471
|
return 0;
|
|
442
472
|
}
|
|
443
473
|
const applyResult = applyUpdate(projectRoot, plan.items, reporter, lang);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { printUsageError, renderCliError, renderHelp } from '../lib/cli-output.js';
|
|
2
|
+
import { t } from '../lib/i18n.js';
|
|
3
|
+
import { checkNpmLatestVersion } from '../lib/npm-version-check.js';
|
|
4
|
+
import { readPackageMetadata } from '../lib/package-info.js';
|
|
5
|
+
import { runUpdate } from './update.js';
|
|
6
|
+
export function getUpgradeHelp(lang = 'en') {
|
|
7
|
+
return renderHelp({
|
|
8
|
+
usage: 'mf upgrade [options]',
|
|
9
|
+
summary: t(lang, 'upgrade.help.summary'),
|
|
10
|
+
options: [
|
|
11
|
+
{ label: '--dry-run', description: t(lang, 'upgrade.help.option.dryRun') },
|
|
12
|
+
{ label: '-h, --help', description: t(lang, 'cli.option.help') },
|
|
13
|
+
],
|
|
14
|
+
examples: ['mf upgrade', 'mf upgrade --dry-run'],
|
|
15
|
+
exitCodes: [
|
|
16
|
+
{ label: '0', description: t(lang, 'upgrade.help.exit.ok') },
|
|
17
|
+
{ label: '1', description: t(lang, 'upgrade.help.exit.fail') },
|
|
18
|
+
],
|
|
19
|
+
}, lang);
|
|
20
|
+
}
|
|
21
|
+
function printPackageCheck(check, reporter, lang) {
|
|
22
|
+
reporter.stdout(`${check.packageName} ${check.currentVersion}`);
|
|
23
|
+
reporter.stdout(check.updateAvailable
|
|
24
|
+
? t(lang, 'version.check.latestAvailable', { version: check.latestVersion })
|
|
25
|
+
: t(lang, 'version.check.upToDate', { version: check.latestVersion }));
|
|
26
|
+
if (check.updateAvailable) {
|
|
27
|
+
reporter.stdout('');
|
|
28
|
+
reporter.stdout(t(lang, 'version.check.updateCommand'));
|
|
29
|
+
reporter.stdout(check.updateCommand);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export async function runUpgrade(args, reporter, lang = 'en') {
|
|
33
|
+
if (args.includes('--help') || args.includes('-h')) {
|
|
34
|
+
reporter.stdout(getUpgradeHelp(lang));
|
|
35
|
+
return 0;
|
|
36
|
+
}
|
|
37
|
+
const supported = new Set(['--dry-run']);
|
|
38
|
+
const unsupported = args.filter((arg) => !supported.has(arg));
|
|
39
|
+
if (unsupported.length > 0) {
|
|
40
|
+
printUsageError(reporter, t(lang, 'cli.error.unknownOption', { option: unsupported[0] }), 'mf upgrade --help', getUpgradeHelp(lang), lang);
|
|
41
|
+
return 1;
|
|
42
|
+
}
|
|
43
|
+
const dryRun = args.includes('--dry-run');
|
|
44
|
+
reporter.stdout(t(lang, 'upgrade.title'));
|
|
45
|
+
reporter.stdout('');
|
|
46
|
+
reporter.stdout(t(lang, 'upgrade.packageSection'));
|
|
47
|
+
try {
|
|
48
|
+
const packageCheck = await checkNpmLatestVersion(readPackageMetadata());
|
|
49
|
+
printPackageCheck(packageCheck, reporter, lang);
|
|
50
|
+
if (packageCheck.updateAvailable) {
|
|
51
|
+
reporter.stdout('');
|
|
52
|
+
reporter.stdout(t(lang, 'upgrade.packageUpdateRequired'));
|
|
53
|
+
reporter.stdout(t(lang, 'upgrade.noFilesWritten'));
|
|
54
|
+
return 1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
59
|
+
reporter.stderr(renderCliError(t(lang, 'upgrade.warning.versionCheckFailed', { message }), 'mf version --check', lang));
|
|
60
|
+
reporter.stderr(t(lang, 'upgrade.warning.continueWithBundledTemplate'));
|
|
61
|
+
}
|
|
62
|
+
reporter.stdout('');
|
|
63
|
+
reporter.stdout(t(lang, 'upgrade.projectSection'));
|
|
64
|
+
return runUpdate([dryRun ? '--dry-run' : '--apply'], reporter, lang);
|
|
65
|
+
}
|