mddd-cli 3.0.0 → 3.0.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/bin/cli.js +1 -1
- package/package.json +1 -1
- package/src/commands/init.js +6 -6
package/bin/cli.js
CHANGED
|
@@ -16,7 +16,7 @@ const program = new Command();
|
|
|
16
16
|
program
|
|
17
17
|
.name('md')
|
|
18
18
|
.description('Manager for co-located specifications for Mermaid Diagram Driven Development (MDDD)')
|
|
19
|
-
.version('3.0.
|
|
19
|
+
.version('3.0.1');
|
|
20
20
|
|
|
21
21
|
// ==========================================
|
|
22
22
|
// COMMAND: md init
|
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -137,7 +137,7 @@ graph LR
|
|
|
137
137
|
\`\`\`mermaid
|
|
138
138
|
%% @spec-version v1.1.0
|
|
139
139
|
stateDiagram-v2
|
|
140
|
-
[*] --> AnalyzeLegacyCode: Evaluate
|
|
140
|
+
[*] --> AnalyzeLegacyCode: Evaluate code quality, conciseness, and coupling
|
|
141
141
|
AnalyzeLegacyCode --> FileSystemCheck
|
|
142
142
|
|
|
143
143
|
state FileSystemCheck {
|
|
@@ -146,12 +146,12 @@ stateDiagram-v2
|
|
|
146
146
|
CheckCoLocation --> AppendToExisting: Target Co-located .spec.md Exists
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
CreateMissingSpec --> RenderTopology:
|
|
149
|
+
CreateMissingSpec --> RenderTopology: Create new colocated .spec.md
|
|
150
150
|
AppendToExisting --> InjectAuditBlock: Target Existing File Preservation Map
|
|
151
151
|
|
|
152
152
|
state RenderTopology {
|
|
153
|
-
[*] --> CodeIsClean: Map exact architecture as-is (v1.0.0)
|
|
154
|
-
[*] --> CodeIsChaotic: Draw BOTH current real logic AND ideal target refactored graph
|
|
153
|
+
[*] --> CodeIsClean: Map exact architecture as-is (v1.0.0 - stable)
|
|
154
|
+
[*] --> CodeIsChaotic: Draw BOTH current real logic AND ideal target refactored graph (v1.0.0 - draft)
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
RenderTopology --> WriteToAuditTag: Inject payloads inside <details> block
|
|
@@ -166,8 +166,8 @@ stateDiagram-v2
|
|
|
166
166
|
| :--- | :---: | :---: | :--- | :---: | :---: |
|
|
167
167
|
| Legacy Code Active | ✅ YES | Clean / Modular | Append to existing \`<details><summary>Audit History</summary>\` | ❌ **FORBIDDEN (Immutability)** | Retain Current |
|
|
168
168
|
| Legacy Code Active | ✅ YES | Chaotic / Coupled | Append to existing \`<details><summary>Audit History</summary>\` | ❌ **FORBIDDEN (Immutability)** | Retain Current |
|
|
169
|
-
| Legacy Code Active | ❌ NO | Clean / Modular |
|
|
170
|
-
| Legacy Code Active | ❌ NO | Chaotic / Coupled |
|
|
169
|
+
| Legacy Code Active | ❌ NO | Clean / Modular | Generate Spec File + Map Current Logic | ❌ **FORBIDDEN (Immutability)** | \`v1.0.0 - stable\` |
|
|
170
|
+
| Legacy Code Active | ❌ NO | Chaotic / Coupled | Generate Spec File + Map Current Logic AND Proposed Refactoring | ❌ **FORBIDDEN (Immutability)** | \`v1.0.0 - draft\` |
|
|
171
171
|
|
|
172
172
|
### Missing Spec Auto-Repair Blueprint Requirements
|
|
173
173
|
* **Enforce Section Injections:** Every generated specification file must structurally enforce:
|