mddd-cli 4.2.2 → 4.2.3

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 CHANGED
@@ -17,7 +17,7 @@ const program = new Command();
17
17
  program
18
18
  .name('md')
19
19
  .description('Manager for co-located specifications for Mermaid Diagram Driven Development (MDDD)')
20
- .version('4.2.2');
20
+ .version('4.2.3');
21
21
 
22
22
  // ==========================================
23
23
  // COMMAND: md init
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mddd-cli",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "Official CLI for modular, co-located, and versioned Mermaid Diagram Driven Development (MDDD).",
5
5
  "type": "module",
6
6
  "exports": "./bin/cli.js",
package/readme.md CHANGED
@@ -216,12 +216,12 @@ Visual specifications are not centralized in distant folders. They live in the *
216
216
  ```
217
217
  src/
218
218
  └── home/
219
- ├── home.spec.md # 🌎 Global module map (stateDiagram-v2 connecting nodes)
219
+ ├── home.spec.md # 🌎 Global module map
220
220
  ├── guest/
221
- │ ├── guest.spec.md # 🔬 Screen flow (graph LR) + Decision Matrix
221
+ │ ├── guest.spec.md # 🔬 Screen flow with Decision Matrix
222
222
  │ └── guest_page.dart # 💻 Production code generated by AI
223
223
  └── consumer/
224
- └── consumer.spec.md # 🔬 Screen flow (graph LR) + Decision Matrix
224
+ └── consumer.spec.md # 🔬 Screen flow with Decision Matrix
225
225
 
226
226
  ```
227
227
 
@@ -476,12 +476,12 @@ As especificações visuais não ficam centralizadas em pastas distantes. Elas v
476
476
  ```
477
477
  src/
478
478
  └── home/
479
- ├── home.spec.md # 🌎 Mapa global do módulo (stateDiagram-v2 conectando nós)
479
+ ├── home.spec.md # 🌎 Mapa global do módulo
480
480
  ├── guest/
481
- │ ├── guest.spec.md # 🔬 Fluxo de tela (graph LR) + Matriz de Decisão
481
+ │ ├── guest.spec.md # 🔬 Fluxo de tela com Matriz de Decisão
482
482
  │ └── guest_page.dart # 💻 Código produtivo gerado pela IA
483
483
  └── consumer/
484
- └── consumer.spec.md # 🔬 Fluxo de tela (graph LR) + Matriz de Decisão
484
+ └── consumer.spec.md # 🔬 Fluxo de tela com Matriz de Decisão
485
485
 
486
486
  ```
487
487
 
@@ -1,8 +1,3 @@
1
- %% @spec-version 1.0.0
2
- %% @domain {{domain_name}}
3
- %% @feature {{feature_name}}
4
- %% @author {{author_name}}
5
-
6
1
  # {{Feature Title}} — Specification
7
2
 
8
3
  **SPEC_VERSION:** v1.0.0 — draft
@@ -28,12 +23,9 @@ Describe **what** this spec governs and **why** it exists.
28
23
 
29
24
  ## 2. Behavioral Flow (Mermaid)
30
25
 
31
- > Pick the diagram type that best fits the topology:
32
- > `stateDiagram-v2` for lifecycles, `graph TD/LR` for procedural flows,
33
- > `sequenceDiagram` for multi-actor protocols, `flowchart` for branching logic.
26
+ > Pick the diagram type that best fits the topology using mermaid-diagrams skill.
34
27
 
35
28
  ```mermaid
36
- %% @spec-version 1.0.0
37
29
  stateDiagram-v2
38
30
  [*] --> Idle: initial entry point
39
31
 
@@ -104,15 +96,7 @@ When a `HaltWithConflict` is triggered, document the resolution path here:
104
96
 
105
97
  ---
106
98
 
107
- ## 6. Change History
108
-
109
- | Version | Date | Author | Change Description | Change Type |
110
- | :---: | :--- | :--- | :--- | :---: |
111
- | 1.0.0 | {{YYYY-MM-DD}} | {{author_name}} | Initial spec creation via `md-new` | MAJOR |
112
-
113
- ---
114
-
115
- ## 7. Audit History
99
+ ## 6. Audit History
116
100
 
117
101
  <details>
118
102
  <summary>Click to expand</summary>
package/system_prompt.md CHANGED
@@ -88,7 +88,7 @@ Brief description of the purpose and scope of this specification.
88
88
 
89
89
  src/
90
90
  └── [domain_name]/
91
- ├── [domain_name].spec.md # 🌎 Macro Module Domain (stateDiagram-v2)
91
+ ├── [domain_name].spec.md # 🌎 Macro Module Domain
92
92
  ├── [feature_name]/
93
93
  │ ├── [feature_name].spec.md # 🔬 Micro Flow Contract + Decision Matrix
94
94
  │ └── [feature_name].[extension] # 💻 Target Production Code File (Any Extension)
@@ -218,7 +218,7 @@ The UNIVERSAL RULE is now integrated into the main processing diagram at the top
218
218
 
219
219
  **Before ANY action, the system MUST verify that a `.spec.md` file exists for the target domain/feature.** If no spec exists, only `md-new` and `md-audit` skills are allowed to proceed (to create or propose a spec). All other skills (`md-impl`, `md-edit`, etc.) are DENIED without an existing specification.
220
220
 
221
- Diagrams: Always use mmdc -i <path/to/diagram.md> --checkSyntax to validate diagram syntax (Mandatory)
221
+ Diagrams: Always use "npx md validate <path/to/diagram.md>" to validate diagram syntax (Mandatory)
222
222
 
223
223
  ```mermaid
224
224
  %% @spec-version v2.0.0