mddd-cli 6.2.0 → 6.2.2
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.
|
@@ -26,7 +26,7 @@ stateDiagram-v2
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
ComposeDiagram --> ValidateDiagram: Run `npx md validate <output>.md` until valid
|
|
29
|
-
ValidateDiagram --> WriteArtifact: Save to ARCHITECTURE.md (or similar) at project root
|
|
29
|
+
ValidateDiagram --> WriteArtifact: Save to ARCHITECTURE.spec.md (or similar) at project root
|
|
30
30
|
WriteArtifact --> [*]
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -143,11 +143,11 @@ Or attach the class inline with `:::className` on each node.
|
|
|
143
143
|
5. **Infer edges** by looking for verbs and references between specs (e.g. one MICRO mentions "calls into X" or "publishes to Y").
|
|
144
144
|
6. **Compose the diagram** following the spec above.
|
|
145
145
|
7. **Validate** with `npx md validate` and iterate until the diagram is valid.
|
|
146
|
-
8. **Write the artifact** to `ARCHITECTURE.md` (or `CONTEXT_MAP.md`) at the project root.
|
|
146
|
+
8. **Write the artifact** to `ARCHITECTURE.spec.md` (or `CONTEXT_MAP.md`) at the project root.
|
|
147
147
|
|
|
148
148
|
## Output Artifact
|
|
149
149
|
|
|
150
|
-
The skill should write the result to `ARCHITECTURE.md` (or `CONTEXT_MAP.md`) at the project root, inside a `mermaid` code fence. The agent must:
|
|
150
|
+
The skill should write the result to `ARCHITECTURE.spec.md` (or `CONTEXT_MAP.md`) at the project root, inside a `mermaid` code fence. The agent must:
|
|
151
151
|
|
|
152
152
|
1. Use the **`npx md validate <path>`** command to ensure the diagram is syntactically valid.
|
|
153
153
|
2. Include `click` directives linking each internal node to its spec file (cross-platform navigability).
|
|
@@ -171,7 +171,6 @@ The skill ships a **rigid reference template** that the agent **must** follow se
|
|
|
171
171
|
| 4 | External Integrations (`graph LR`) | Focused diagram of every third-party system |
|
|
172
172
|
| 5 | Infrastructure Topology (`graph TB`) | Stand-alone top-down diagram of infra |
|
|
173
173
|
| 6 | Component Dependency Matrix | Compact truth-table: from / to / label / trigger / source spec |
|
|
174
|
-
| 7 | Click-Through Map | `flowchart LR` with `click` directives for every internal node |
|
|
175
174
|
| 8 | Generation Footer | Counts + validation status |
|
|
176
175
|
|
|
177
176
|
### Strict substitution rules
|
|
@@ -194,7 +193,7 @@ The skill ships a **rigid reference template** that the agent **must** follow se
|
|
|
194
193
|
- Main flows (auth, CRUD, payment, deploy) by reading the verbs in each spec
|
|
195
194
|
3. **Substitute every placeholder** in template order.
|
|
196
195
|
4. **Validate** with `npx md validate` and iterate until every diagram parses.
|
|
197
|
-
5. **Write** to `ARCHITECTURE.md` at the project root.
|
|
196
|
+
5. **Write** to `ARCHITECTURE.spec.md` at the project root.
|
|
198
197
|
|
|
199
198
|
## Hard Rules
|
|
200
199
|
|
|
@@ -142,7 +142,7 @@ MDDD Framework: v1.0.0 — stable
|
|
|
142
142
|
Methodology: mddd-context-map skill v{{SKILL_VERSION}}
|
|
143
143
|
Project: {{PROJECT_NAME}}
|
|
144
144
|
Total MACRO: {{MACRO_COUNT}} · Total MICRO: {{MICRO_COUNT}} · External: {{EXTERNAL_COUNT}} · Infra: {{INFRA_COUNT}}
|
|
145
|
-
Validation: ✅ npx md validate ARCHITECTURE.md
|
|
145
|
+
Validation: ✅ npx md validate ARCHITECTURE.spec.md
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
---
|
package/bin/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ const program = new Command();
|
|
|
20
20
|
program
|
|
21
21
|
.name('md')
|
|
22
22
|
.description('Manager for co-located specifications for Mermaid Diagram Driven Development (MDDD)')
|
|
23
|
-
.version('6.2.
|
|
23
|
+
.version('6.2.2');
|
|
24
24
|
|
|
25
25
|
// ==========================================
|
|
26
26
|
// COMMAND: md init
|