mddd-cli 4.0.2 → 4.0.4
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.
|
|
19
|
+
.version('4.0.4');
|
|
20
20
|
|
|
21
21
|
// ==========================================
|
|
22
22
|
// COMMAND: md init
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default `[ROLE: SECURITY & QUALITY AUDITOR] [STRICT CONTRACT]
|
|
2
2
|
|
|
3
3
|
\`\`\`mermaid
|
|
4
|
-
%% @spec-version v1.3.
|
|
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
|
|
24
|
+
RenderTopology --> CheckDiagram: Use mmdc -i <path/to/diagram.md> --checkSyntax to validate diagram syntax
|
|
25
25
|
|
|
26
26
|
state CheckDiagram {
|
|
27
27
|
[*] --> DiagramValid: Proceed to next step
|
|
@@ -22,7 +22,7 @@ stateDiagram-v2
|
|
|
22
22
|
[*] --> IncrementMajor: Increment Major: Bump X in X.Y.Z
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
IncrementVersion --> CheckDiagram: Use
|
|
25
|
+
IncrementVersion --> CheckDiagram: Use mmdc -i <path/to/diagram.md> --checkSyntax to validate diagram syntax
|
|
26
26
|
|
|
27
27
|
state CheckDiagram {
|
|
28
28
|
[*] --> TryRender
|
|
@@ -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
|
|
22
|
+
FormatSpecOutput --> CheckDiagram: Use mmdc -i <path/to/diagram.md> --checkSyntax to validate diagram syntax
|
|
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
|
+
```
|