File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,20 +55,25 @@ INSTALLED_VERSION=$(grep "^mdd_version:" "$TARGET/.claude/commands/mdd.md" | awk
5555INSTALLED_VERSION=${INSTALLED_VERSION:- 0}
5656```
5757
58- If versions differ, surface the mismatch :
58+ If versions differ, present an upgrade prompt :
5959```
60- MDD is already installed in this project.
60+ ✅ MDD is already installed in this project.
61+
6162 Installed: v<INSTALLED_VERSION>
62- Available: v<SOURCE_VERSION> ← update available
63- ```
63+ Available: v<SOURCE_VERSION> ← upgrade available
6464
65- Ask: "Update mdd.md to v<SOURCE_VERSION> and reset .mdd/.startup.md? (yes / no)"
65+ Upgrade mdd.md from v<INSTALLED_VERSION> to v<SOURCE_VERSION>?
66+ Your docs, audits, and .startup.md are not affected. (yes / no)
67+ ```
6668
6769If versions are equal:
6870```
69- MDD is already installed in this project (v<VERSION> — up to date).
71+ ✅ MDD is already installed (v<VERSION> — up to date).
72+
73+ Everything looks good. You can re-run the installer if you need to
74+ repair missing directories or re-generate a blank .mdd/.startup.md.
7075```
71- Ask: "Re-run to reset .mdd/.startup.md and ensure directories exist ? (yes / no)"
76+ Ask: "Repair / re-generate any missing MDD files ? (yes / no)"
7277
7378If no: exit with ` "Nothing changed." `
7479If yes: continue (existing docs and audits are preserved — only missing pieces are created).
You can’t perform that action at this time.
0 commit comments