Commit 2039a7a
committed
fix: implement unified command naming pattern
Critical bug fix for duplicate Evolution commands
Changes:
1. Unified naming: metaspec.{group}.{command}.md for all commands
- SDS: metaspec.sds.specify.md
- SDD: metaspec.sdd.plan.md
- Evolution: metaspec.evolution.apply.md (was: metaspec.apply.md)
2. Generator: Use unified naming from the start (metaspec init)
- src/metaspec/generator.py: Evolution output path updated
3. Sync: Migrate v0.5.x projects automatically
- src/metaspec/cli/sync.py: Remove old naming during sync
- Prevents duplicate files (metaspec.apply.md + metaspec.evolution.apply.md)
4. Documentation: Update file structure examples
- src/metaspec/templates/meta/README.md
- src/metaspec/templates/README.md
Rationale:
- Consistent pattern across all command groups
- Better extensibility for future command groups
- Easier automation and tooling
- Clearer logical grouping
Breaking Change:
- v0.5.x users must run 'metaspec sync' to migrate naming
- Old files automatically cleaned up during sync
Resolves duplicate Evolution commands bug report1 parent a36b47b commit 2039a7a
File tree
6 files changed
+25
-7
lines changed- src/metaspec
- cli
- templates
- meta
6 files changed
+25
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments