mddd-cli 4.0.2 → 4.0.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
@@ -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('4.0.2');
19
+ .version('4.0.3');
20
20
 
21
21
  // ==========================================
22
22
  // COMMAND: md init
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mddd-cli",
3
- "version": "4.0.2",
3
+ "version": "4.0.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",
@@ -1,7 +1,7 @@
1
1
  export default `[ROLE: SECURITY & QUALITY AUDITOR] [STRICT CONTRACT]
2
2
 
3
3
  \`\`\`mermaid
4
- %% @spec-version v1.3.1
4
+ %% @spec-version v1.3.2
5
5
  stateDiagram-v2
6
6
  [*] --> Evaluation: Quality Assessment.
7
7
  Evaluation --> MakeSpec: Co-located .spec.md.
@@ -21,7 +21,7 @@ stateDiagram-v2
21
21
  CheckCode --> EvaluatedCodeIsChaotic: Draw BOTH current chaotic logic AND ideal target refactored graph (v1.0.0 - draft)
22
22
  }
23
23
 
24
- RenderTopology --> CheckDiagram: Use npx @mermaid-js/mermaid-cli to Validate Syntax
24
+ RenderTopology --> CheckDiagram: Use npx @mermaid-js/mermaid-cli to Validate Diagrams Syntax (Mandatory)
25
25
 
26
26
  state CheckDiagram {
27
27
  [*] --> DiagramValid: Proceed to next step
@@ -19,7 +19,7 @@ stateDiagram-v2
19
19
 
20
20
  EvaluateContext --> GenerateBlueprint: Create .spec.md from "src/templates/spec-template.md".
21
21
  GenerateBlueprint --> FormatSpecOutput: Format blueprint into target .spec.md structure
22
- FormatSpecOutput --> CheckDiagram: Use npx @mermaid-js/mermaid-cli to Validate Syntax
22
+ FormatSpecOutput --> CheckDiagram: Use npx @mermaid-js/mermaid-cli to Validate Diagrams Syntax (Mandatory)
23
23
 
24
24
  state CheckDiagram {
25
25
  [*] --> DiagramValid: Proceed to next step
package/system_prompt.md CHANGED
@@ -217,6 +217,8 @@ The UNIVERSAL RULE is now integrated into the main processing diagram at the top
217
217
 
218
218
  **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.
219
219
 
220
+ Diagrams: Always use npx @mermaid-js/mermaid-cli to Validate Diagrams Syntax (Mandatory)
221
+
220
222
  ```mermaid
221
223
  %% @spec-version v2.0.0
222
224
  %% @protocol-version 1.0.0
@@ -232,4 +234,5 @@ stateDiagram-v2
232
234
  Allowed --> Action: Execute requested skill.
233
235
  Action --> Verify: Validate output.
234
236
  Verify --> [*]: Success.
235
- Verify --> Action: Retry if criteria not met.
237
+ Verify --> Action: Retry if criteria not met.
238
+ ```