@senad-d/drawme 0.1.4 → 0.1.6
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/CHANGELOG.md +54 -0
- package/README.md +27 -20
- package/assets/references/diagram-types.md +24 -0
- package/assets/references/troubleshooting.md +2 -2
- package/assets/references/xml-authoring.md +33 -9
- package/docs/{agent-guide.md → reference.md} +47 -126
- package/docs/visual-review-implementation-tasks.md +1 -1
- package/example/drawme-extension-waterfall-overview.drawio +72 -0
- package/example/drawme-how-it-works.drawio +124 -80
- package/example/drawme-installation-guide.drawio +95 -67
- package/example/drawme-validation-decision-tree.drawio +210 -0
- package/package.json +1 -1
- package/src/drawio.ts +12 -3
- package/src/fitcanvas.ts +172 -0
- package/src/geometry.ts +259 -0
- package/src/index.ts +94 -14
- package/src/validate.ts +18 -225
- package/src/workflow.ts +89 -32
|
@@ -1,105 +1,133 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<mxfile host="drawio" version="31.1.5">
|
|
3
3
|
<diagram id="drawme-install" name="Install DrawMe">
|
|
4
|
-
<mxGraphModel dx="
|
|
4
|
+
<mxGraphModel dx="2000" dy="1650" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" math="0" shadow="0" background="#F4F7FB" pageWidth="2000" pageHeight="1685">
|
|
5
5
|
<root>
|
|
6
|
-
<mxCell id="0"
|
|
7
|
-
<mxCell id="1" parent="0"
|
|
8
|
-
<mxCell id="
|
|
9
|
-
<mxGeometry x="40" y="
|
|
6
|
+
<mxCell id="0"/>
|
|
7
|
+
<mxCell id="1" parent="0"/>
|
|
8
|
+
<mxCell id="title" value="Install DrawMe for Pi" style="text;html=1;align=left;verticalAlign=middle;fontSize=34;fontStyle=1;fontColor=#17365D;" vertex="1" parent="1">
|
|
9
|
+
<mxGeometry x="40" y="40" width="1100" height="50" as="geometry"/>
|
|
10
10
|
</mxCell>
|
|
11
|
-
<mxCell id="
|
|
12
|
-
<mxGeometry x="40" y="
|
|
11
|
+
<mxCell id="subtitle" value="From prerequisites to an autonomous, editable .drawio export" style="text;html=1;align=left;verticalAlign=middle;fontSize=16;fontColor=#4F6475;" vertex="1" parent="1">
|
|
12
|
+
<mxGeometry x="40" y="92" width="1200" height="32" as="geometry"/>
|
|
13
13
|
</mxCell>
|
|
14
|
-
<mxCell id="
|
|
15
|
-
<mxGeometry x="
|
|
14
|
+
<mxCell id="badge" value="LOCAL RENDERING • ONE PROMPT • EDITABLE OUTPUT" style="rounded=1;arcSize=22;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=10;fontSize=13;fontStyle=1;fontColor=#2D5E36;fillColor=#EAF4E8;strokeColor=#82B366;strokeWidth=2;" vertex="1" parent="1">
|
|
15
|
+
<mxGeometry x="1450" y="45" width="510" height="54" as="geometry"/>
|
|
16
16
|
</mxCell>
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
|
|
18
|
+
<mxCell id="prereqs" value="1 CHECK THE PREREQUISITES" style="swimlane;horizontal=1;startSize=60;rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;fontSize=19;fontStyle=1;fontColor=#FFFFFF;fillColor=#1F4E78;swimlaneFillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;" vertex="1" parent="1">
|
|
19
|
+
<mxGeometry x="40" y="150" width="1920" height="270" as="geometry"/>
|
|
19
20
|
</mxCell>
|
|
20
|
-
<mxCell id="
|
|
21
|
-
<mxGeometry x="40" y="
|
|
21
|
+
<mxCell id="prereq-pi" value="<b><font color="#1F4E78">01 · PI CODING AGENT</font></b><br><br>Install and authenticate Pi first<br><font face="Courier New">pi --version</font>" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=14;fontSize=14;fontColor=#263746;fillColor=#F8FBFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="prereqs">
|
|
22
|
+
<mxGeometry x="40" y="85" width="540" height="135" as="geometry"/>
|
|
22
23
|
</mxCell>
|
|
23
|
-
<mxCell id="
|
|
24
|
-
<mxGeometry x="
|
|
24
|
+
<mxCell id="prereq-node" value="<b><font color="#1F4E78">02 · NODE.JS 22.19+</font></b><br><br>Required by DrawMe<br><font face="Courier New">node --version</font>" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=14;fontSize=14;fontColor=#263746;fillColor=#F8FBFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="prereqs">
|
|
25
|
+
<mxGeometry x="660" y="85" width="540" height="135" as="geometry"/>
|
|
25
26
|
</mxCell>
|
|
26
|
-
<mxCell id="
|
|
27
|
-
<mxGeometry x="
|
|
27
|
+
<mxCell id="prereq-drawio" value="<b><font color="#1F4E78">03 · DRAW.IO DESKTOP</font></b><br><br>macOS: <font face="Courier New">brew install --cask drawio</font><br>Linux: .deb / .rpm • Windows: official installer" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=14;fontSize=14;fontColor=#263746;fillColor=#F8FBFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="prereqs">
|
|
28
|
+
<mxGeometry x="1280" y="85" width="540" height="135" as="geometry"/>
|
|
28
29
|
</mxCell>
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
|
|
31
|
+
<mxCell id="install" value="2 INSTALL DRAWME · CHOOSE ONE SCOPE" style="swimlane;horizontal=1;startSize=60;rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;fontSize=19;fontStyle=1;fontColor=#FFFFFF;fillColor=#1F4E78;swimlaneFillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;" vertex="1" parent="1">
|
|
32
|
+
<mxGeometry x="40" y="460" width="1920" height="465" as="geometry"/>
|
|
31
33
|
</mxCell>
|
|
32
|
-
<mxCell id="
|
|
33
|
-
<mxGeometry x="
|
|
34
|
+
<mxCell id="scope-decision" value="Choose scope" style="rhombus;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=16;fontStyle=1;fontColor=#6B5500;fillColor=#FFF2CC;strokeColor=#D6B656;strokeWidth=2;" vertex="1" parent="install">
|
|
35
|
+
<mxGeometry x="790" y="80" width="280" height="90" as="geometry"/>
|
|
34
36
|
</mxCell>
|
|
35
|
-
<mxCell id="
|
|
36
|
-
<mxGeometry x="
|
|
37
|
+
<mxCell id="scope-user" value="<b><font color="#1F4E78">USER SCOPE · DEFAULT</font></b><br><br>All projects • ~/.pi/agent/settings.json<br><font face="Courier New">pi install npm:@senad-d/drawme</font>" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=14;fontSize=14;fontColor=#263746;fillColor=#EAF2F8;strokeColor=#1F4E78;strokeWidth=3;shadow=1;" vertex="1" parent="install">
|
|
38
|
+
<mxGeometry x="40" y="210" width="540" height="130" as="geometry"/>
|
|
37
39
|
</mxCell>
|
|
38
|
-
<mxCell id="
|
|
39
|
-
<mxGeometry x="
|
|
40
|
+
<mxCell id="scope-project" value="<b><font color="#1F4E78">PROJECT-LOCAL · TEAM</font></b><br><br>This project • .pi/settings.json<br><font face="Courier New">pi install npm:@senad-d/drawme -l</font>" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=14;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="install">
|
|
41
|
+
<mxGeometry x="660" y="210" width="540" height="130" as="geometry"/>
|
|
40
42
|
</mxCell>
|
|
41
|
-
<mxCell id="
|
|
42
|
-
<mxGeometry x="
|
|
43
|
+
<mxCell id="scope-trial" value="<b><font color="#1F4E78">ONE-TIME TRIAL</font></b><br><br>Current run only • no settings change<br><font face="Courier New">pi -e npm:@senad-d/drawme</font>" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=14;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="install">
|
|
44
|
+
<mxGeometry x="1280" y="210" width="540" height="130" as="geometry"/>
|
|
43
45
|
</mxCell>
|
|
44
|
-
<mxCell id="
|
|
45
|
-
<mxGeometry x="
|
|
46
|
+
<mxCell id="install-source" value="<b>PIN OR DEVELOP</b><br>Pinned npm: <font face="Courier New">npm:@senad-d/drawme@&lt;version&gt;</font> • Git: <font face="Courier New">git:github.com/senad-d/DrawMe@&lt;tag&gt;</font><br>Source checkout: <font face="Courier New">npm ci --ignore-scripts</font> → <font face="Courier New">npm run validate</font> → <font face="Courier New">pi --no-extensions -e .</font>" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=14;spacingRight=14;spacingTop=8;spacingBottom=8;fontSize=13;fontColor=#405466;fillColor=#F3F6F8;strokeColor=#AAB7C4;dashed=1;" vertex="1" parent="install">
|
|
47
|
+
<mxGeometry x="40" y="360" width="1780" height="80" as="geometry"/>
|
|
46
48
|
</mxCell>
|
|
47
|
-
<mxCell id="
|
|
48
|
-
<mxGeometry
|
|
49
|
+
<mxCell id="edge-scope-user" value="all projects" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#1F4E78;strokeWidth=2;fontSize=11;fontColor=#405466;labelBackgroundColor=#FFFFFF;exitX=0.25;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="install" source="scope-decision" target="scope-user">
|
|
50
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
49
51
|
</mxCell>
|
|
50
|
-
<mxCell id="
|
|
51
|
-
<mxGeometry
|
|
52
|
+
<mxCell id="edge-scope-project" value="this project" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#1F4E78;strokeWidth=2;fontSize=11;fontColor=#405466;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="install" source="scope-decision" target="scope-project">
|
|
53
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
52
54
|
</mxCell>
|
|
53
|
-
<mxCell id="
|
|
54
|
-
<mxGeometry
|
|
55
|
+
<mxCell id="edge-scope-trial" value="current run" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#1F4E78;strokeWidth=2;fontSize=11;fontColor=#405466;labelBackgroundColor=#FFFFFF;exitX=0.75;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="install" source="scope-decision" target="scope-trial">
|
|
56
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
55
57
|
</mxCell>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
|
|
59
|
+
<mxCell id="use" value="3 LOAD, VERIFY, DESCRIBE · DRAWME DOES THE REST" style="swimlane;horizontal=1;startSize=60;rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;fontSize=19;fontStyle=1;fontColor=#FFFFFF;fillColor=#674274;swimlaneFillColor=#FCF9FD;strokeColor=#9673A6;strokeWidth=2;" vertex="1" parent="1">
|
|
60
|
+
<mxGeometry x="40" y="965" width="1920" height="340" as="geometry"/>
|
|
58
61
|
</mxCell>
|
|
59
|
-
<mxCell id="
|
|
60
|
-
<mxGeometry x="
|
|
62
|
+
<mxCell id="use-load" value="<b><font color="#674274">01 · LOAD</font></b><br><br>Start Pi after installation<br>Already open? Use <font face="Courier New">/reload</font>" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#B69BC2;strokeWidth=2;" vertex="1" parent="use">
|
|
63
|
+
<mxGeometry x="40" y="95" width="320" height="170" as="geometry"/>
|
|
61
64
|
</mxCell>
|
|
62
|
-
<mxCell id="
|
|
63
|
-
<mxGeometry x="
|
|
65
|
+
<mxCell id="use-verify" value="<b><font color="#674274">02 · VERIFY</font></b><br><br><font face="Courier New">/drawme-check</font><br>Confirm path · version · v30+ features" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#B69BC2;strokeWidth=2;" vertex="1" parent="use">
|
|
66
|
+
<mxGeometry x="410" y="95" width="320" height="170" as="geometry"/>
|
|
64
67
|
</mxCell>
|
|
65
|
-
<mxCell id="
|
|
66
|
-
<mxGeometry x="
|
|
68
|
+
<mxCell id="use-describe" value="<b><font color="#674274">03 · DESCRIBE</font></b><br><br><font face="Courier New">/drawme a login flow with retry</font><br>Use plain language" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#B69BC2;strokeWidth=2;" vertex="1" parent="use">
|
|
69
|
+
<mxGeometry x="780" y="95" width="320" height="170" as="geometry"/>
|
|
67
70
|
</mxCell>
|
|
68
|
-
<mxCell id="
|
|
69
|
-
<mxGeometry x="
|
|
71
|
+
<mxCell id="use-autonomous" value="<b><font color="#674274">04 · AUTONOMOUS RUN</font></b><br><br>plan → author → validate → critique<br>refine (≤5) → confirm → export<br><font color="#6B7C8A">no approval pause</font>" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#F7F0FA;strokeColor=#9673A6;strokeWidth=3;shadow=1;" vertex="1" parent="use">
|
|
72
|
+
<mxGeometry x="1150" y="95" width="320" height="170" as="geometry"/>
|
|
70
73
|
</mxCell>
|
|
71
|
-
<mxCell id="
|
|
72
|
-
<mxGeometry x="
|
|
74
|
+
<mxCell id="use-delivered" value="<b><font color="#2D5E36">05 · DELIVERED</font></b><br><br>Editable .drawio source<br>PNG by default<br>SVG · PDF · JPG when requested" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#EAF4E8;strokeColor=#82B366;strokeWidth=2;shadow=1;" vertex="1" parent="use">
|
|
75
|
+
<mxGeometry x="1520" y="95" width="320" height="170" as="geometry"/>
|
|
73
76
|
</mxCell>
|
|
74
|
-
<mxCell id="
|
|
75
|
-
<mxGeometry
|
|
77
|
+
<mxCell id="edge-use-load-verify" value="loaded" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2;fontSize=11;fontColor=#405466;labelBackgroundColor=#FFFFFF;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="use" source="use-load" target="use-verify">
|
|
78
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
76
79
|
</mxCell>
|
|
77
|
-
<mxCell id="
|
|
78
|
-
<mxGeometry
|
|
80
|
+
<mxCell id="edge-use-verify-describe" value="CLI ready" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2;fontSize=11;fontColor=#405466;labelBackgroundColor=#FFFFFF;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="use" source="use-verify" target="use-describe">
|
|
81
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
79
82
|
</mxCell>
|
|
80
|
-
<mxCell id="
|
|
81
|
-
<mxGeometry
|
|
83
|
+
<mxCell id="edge-use-describe-autonomous" value="one prompt" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2;fontSize=11;fontColor=#405466;labelBackgroundColor=#FFFFFF;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="use" source="use-describe" target="use-autonomous">
|
|
84
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
82
85
|
</mxCell>
|
|
83
|
-
<mxCell id="
|
|
84
|
-
<mxGeometry relative="1" as="geometry"
|
|
86
|
+
<mxCell id="edge-use-autonomous-delivered" value="automatic" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#2D5E36;strokeWidth=2;fontSize=11;fontColor=#405466;labelBackgroundColor=#FFFFFF;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="use" source="use-autonomous" target="use-delivered">
|
|
87
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
85
88
|
</mxCell>
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
|
|
90
|
+
<mxCell id="support" value="TROUBLESHOOTING, TRUST, AND COMPATIBILITY" style="swimlane;horizontal=1;startSize=56;rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;fontSize=18;fontStyle=1;fontColor=#FFFFFF;fillColor=#405466;swimlaneFillColor=#F8FAFB;strokeColor=#7E8E9E;strokeWidth=2;" vertex="1" parent="1">
|
|
91
|
+
<mxGeometry x="40" y="1345" width="1920" height="300" as="geometry"/>
|
|
88
92
|
</mxCell>
|
|
89
|
-
<mxCell id="
|
|
90
|
-
<mxGeometry
|
|
93
|
+
<mxCell id="support-cli" value="<b>CLI NOT FOUND?</b><br><br>Install draw.io Desktop at a standard path, then rerun <font face="Courier New">/drawme-check</font>. XML authoring and validation can still run, but preview, export, Mermaid import, and ELK layout need the CLI." style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacing=14;fontSize=13;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#AAB7C4;" vertex="1" parent="support">
|
|
94
|
+
<mxGeometry x="40" y="80" width="540" height="130" as="geometry"/>
|
|
91
95
|
</mxCell>
|
|
92
|
-
<mxCell id="
|
|
93
|
-
<mxGeometry
|
|
96
|
+
<mxCell id="support-package" value="<b>PACKAGE NOT VISIBLE?</b><br><br>Run <font face="Courier New">pi list</font>, check <font face="Courier New">pi config</font>, and use <font face="Courier New">/reload</font>. Project-local packages load from trusted projects; Pi installs missing project packages on startup." style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacing=14;fontSize=13;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#AAB7C4;" vertex="1" parent="support">
|
|
97
|
+
<mxGeometry x="660" y="80" width="540" height="130" as="geometry"/>
|
|
94
98
|
</mxCell>
|
|
95
|
-
<mxCell id="
|
|
96
|
-
<mxGeometry
|
|
99
|
+
<mxCell id="support-trust" value="<b><font color="#9A5B13">INSTALL TRUSTED CODE ONLY</font></b><br><br>Pi packages run with full system access. Review third-party source before installation. DrawMe reads and writes requested diagram files and may launch draw.io or the OS file opener." style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacing=14;fontSize=13;fontColor=#6A4513;fillColor=#FFF4E6;strokeColor=#D79B00;strokeWidth=1.5;" vertex="1" parent="support">
|
|
100
|
+
<mxGeometry x="1280" y="80" width="540" height="130" as="geometry"/>
|
|
97
101
|
</mxCell>
|
|
98
|
-
<mxCell id="
|
|
99
|
-
<mxGeometry
|
|
102
|
+
<mxCell id="legend" value="" style="rounded=1;arcSize=10;container=1;pointerEvents=0;html=1;fillColor=#F7F9FC;strokeColor=#C7D1DC;" vertex="1" parent="support">
|
|
103
|
+
<mxGeometry x="40" y="230" width="1780" height="45" as="geometry"/>
|
|
100
104
|
</mxCell>
|
|
101
|
-
<mxCell id="
|
|
102
|
-
<mxGeometry
|
|
105
|
+
<mxCell id="legend-title" value="COLOR KEY" style="text;html=1;align=left;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#405466;" vertex="1" parent="legend">
|
|
106
|
+
<mxGeometry x="20" y="8" width="90" height="28" as="geometry"/>
|
|
107
|
+
</mxCell>
|
|
108
|
+
<mxCell id="legend-blue" value="" style="rounded=1;arcSize=6;html=1;fillColor=#D9EAF7;strokeColor=#6C8EBF;" vertex="1" parent="legend">
|
|
109
|
+
<mxGeometry x="130" y="14" width="18" height="18" as="geometry"/>
|
|
110
|
+
</mxCell>
|
|
111
|
+
<mxCell id="legend-blue-text" value="Setup / installation" style="text;html=1;align=left;verticalAlign=middle;fontSize=12;fontColor=#405466;" vertex="1" parent="legend">
|
|
112
|
+
<mxGeometry x="155" y="8" width="210" height="28" as="geometry"/>
|
|
113
|
+
</mxCell>
|
|
114
|
+
<mxCell id="legend-purple" value="" style="rounded=1;arcSize=6;html=1;fillColor=#E1D5E7;strokeColor=#9673A6;" vertex="1" parent="legend">
|
|
115
|
+
<mxGeometry x="430" y="14" width="18" height="18" as="geometry"/>
|
|
116
|
+
</mxCell>
|
|
117
|
+
<mxCell id="legend-purple-text" value="Autonomous workflow" style="text;html=1;align=left;verticalAlign=middle;fontSize=12;fontColor=#405466;" vertex="1" parent="legend">
|
|
118
|
+
<mxGeometry x="455" y="8" width="210" height="28" as="geometry"/>
|
|
119
|
+
</mxCell>
|
|
120
|
+
<mxCell id="legend-green" value="" style="rounded=1;arcSize=6;html=1;fillColor=#D5E8D4;strokeColor=#82B366;" vertex="1" parent="legend">
|
|
121
|
+
<mxGeometry x="730" y="14" width="18" height="18" as="geometry"/>
|
|
122
|
+
</mxCell>
|
|
123
|
+
<mxCell id="legend-green-text" value="Delivered files" style="text;html=1;align=left;verticalAlign=middle;fontSize=12;fontColor=#405466;" vertex="1" parent="legend">
|
|
124
|
+
<mxGeometry x="755" y="8" width="170" height="28" as="geometry"/>
|
|
125
|
+
</mxCell>
|
|
126
|
+
<mxCell id="legend-orange" value="" style="rounded=1;arcSize=6;html=1;fillColor=#FFF4E6;strokeColor=#D79B00;" vertex="1" parent="legend">
|
|
127
|
+
<mxGeometry x="990" y="14" width="18" height="18" as="geometry"/>
|
|
128
|
+
</mxCell>
|
|
129
|
+
<mxCell id="legend-orange-text" value="Security / caution" style="text;html=1;align=left;verticalAlign=middle;fontSize=12;fontColor=#405466;" vertex="1" parent="legend">
|
|
130
|
+
<mxGeometry x="1015" y="8" width="190" height="28" as="geometry"/>
|
|
103
131
|
</mxCell>
|
|
104
132
|
</root>
|
|
105
133
|
</mxGraphModel>
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<mxfile host="drawio" version="31.1.5">
|
|
3
|
+
<diagram id="drawme-validation-tree" name="Validation Decision Tree">
|
|
4
|
+
<mxGraphModel dx="2000" dy="2400" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" math="0" shadow="0" background="#F4F7FB" pageWidth="2050" pageHeight="2448">
|
|
5
|
+
<root>
|
|
6
|
+
<mxCell id="0"/>
|
|
7
|
+
<mxCell id="1" parent="0"/>
|
|
8
|
+
|
|
9
|
+
<mxCell id="title" value="DrawMe validation decision tree" style="text;html=1;align=left;verticalAlign=middle;fontSize=34;fontStyle=1;fontColor=#17365D;" vertex="1" parent="1">
|
|
10
|
+
<mxGeometry x="40" y="40" width="1180" height="50" as="geometry"/>
|
|
11
|
+
</mxCell>
|
|
12
|
+
<mxCell id="subtitle" value="How each source revision earns a quality export — or carries an explicit, bounded exception" style="text;html=1;align=left;verticalAlign=middle;fontSize=17;fontColor=#4F6475;" vertex="1" parent="1">
|
|
13
|
+
<mxGeometry x="40" y="92" width="1240" height="34" as="geometry"/>
|
|
14
|
+
</mxCell>
|
|
15
|
+
<mxCell id="badge" value="VALIDATE EVERY EDIT • 4 REVIEW PASSES • MAX 8 CORRECTION RETRIES" style="rounded=1;arcSize=22;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=10;fontSize=13;fontStyle=1;fontColor=#674274;fillColor=#F4ECF7;strokeColor=#9673A6;strokeWidth=2;" vertex="1" parent="1">
|
|
16
|
+
<mxGeometry x="1350" y="48" width="560" height="56" as="geometry"/>
|
|
17
|
+
</mxCell>
|
|
18
|
+
|
|
19
|
+
<mxCell id="revalidate-junction" value="<b>REVALIDATE</b><br>restart the gate" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=13;fontColor=#405466;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;dashed=1;" vertex="1" parent="1">
|
|
20
|
+
<mxGeometry x="1830" y="200" width="180" height="90" as="geometry"/>
|
|
21
|
+
</mxCell>
|
|
22
|
+
|
|
23
|
+
<mxCell id="phase-structural" value="1 DETERMINISTIC STRUCTURAL GATE" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=14;fontStyle=1;fontColor=#1F4E78;fillColor=#D9EAF7;strokeColor=#6C8EBF;strokeWidth=2;" vertex="1" parent="1">
|
|
24
|
+
<mxGeometry x="760" y="155" width="420" height="42" as="geometry"/>
|
|
25
|
+
</mxCell>
|
|
26
|
+
<mxCell id="revision" value="<b><font color="#1F4E78">SOURCE REVISION</font></b><br>Author · edit · Mermaid conversion · layout · canvas fit" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=16;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="1">
|
|
27
|
+
<mxGeometry x="680" y="225" width="580" height="96" as="geometry"/>
|
|
28
|
+
</mxCell>
|
|
29
|
+
<mxCell id="validate" value="<b>Run drawio_validate immediately</b><br>Check XML, IDs, endpoints, geometry, bounds, margins,<br>containment, overlaps, routes, and conservative readability" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=15;fontColor=#263746;fillColor=#EEF6FC;strokeColor=#1F4E78;strokeWidth=3;" vertex="1" parent="1">
|
|
30
|
+
<mxGeometry x="680" y="375" width="580" height="116" as="geometry"/>
|
|
31
|
+
</mxCell>
|
|
32
|
+
<mxCell id="errors" value="Any structural<br><b>errors</b>?" style="rhombus;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=17;fontColor=#8B2E2E;fillColor=#F8CECC;strokeColor=#B85450;strokeWidth=2;" vertex="1" parent="1">
|
|
33
|
+
<mxGeometry x="805" y="550" width="330" height="150" as="geometry"/>
|
|
34
|
+
</mxCell>
|
|
35
|
+
<mxCell id="fix-errors" value="<b><font color="#8B2E2E">BLOCK PREVIEW</font></b><br>Repair malformed XML, duplicate/reserved IDs,<br>broken parents, dangling edges, or geometry" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=20;spacingRight=18;fontSize=15;fontColor=#263746;fillColor=#FFF2F1;strokeColor=#B85450;strokeWidth=2;" vertex="1" parent="1">
|
|
36
|
+
<mxGeometry x="1370" y="570" width="470" height="112" as="geometry"/>
|
|
37
|
+
</mxCell>
|
|
38
|
+
<mxCell id="warnings" value="Any unresolved<br><b>warnings</b>?" style="rhombus;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=17;fontColor=#9A5B13;fillColor=#FFE6CC;strokeColor=#D79B00;strokeWidth=2;" vertex="1" parent="1">
|
|
39
|
+
<mxGeometry x="805" y="765" width="330" height="150" as="geometry"/>
|
|
40
|
+
</mxCell>
|
|
41
|
+
<mxCell id="resolve-warning" value="<b><font color="#9A5B13">RESOLVE EACH WARNING</font></b><br><b>Fix</b> it and revalidate, or <b>record</b> why it is<br>reviewed and acceptable. Unreviewed warnings block export." style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=20;spacingRight=18;fontSize=15;fontColor=#263746;fillColor=#FFF8ED;strokeColor=#D79B00;strokeWidth=2;" vertex="1" parent="1">
|
|
42
|
+
<mxGeometry x="1370" y="775" width="470" height="130" as="geometry"/>
|
|
43
|
+
</mxCell>
|
|
44
|
+
<mxCell id="structural-pass" value="<b><font color="#2D5E36">STRUCTURAL GATE PASSES</font></b><br>0 errors · warnings fixed or explicitly accepted" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=16;fontColor=#263746;fillColor=#EAF4E8;strokeColor=#82B366;strokeWidth=2.5;" vertex="1" parent="1">
|
|
45
|
+
<mxGeometry x="680" y="990" width="580" height="92" as="geometry"/>
|
|
46
|
+
</mxCell>
|
|
47
|
+
|
|
48
|
+
<mxCell id="phase-rendered" value="2 RENDERED + SEMANTIC QUALITY GATE" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=14;fontStyle=1;fontColor=#674274;fillColor=#E1D5E7;strokeColor=#9673A6;strokeWidth=2;" vertex="1" parent="1">
|
|
49
|
+
<mxGeometry x="735" y="1140" width="470" height="42" as="geometry"/>
|
|
50
|
+
</mxCell>
|
|
51
|
+
<mxCell id="preview" value="<b>Export a focused PNG preview</b><br>One page at a time · width-capped for review · latest preview retained" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=16;fontColor=#263746;fillColor=#F7F0FA;strokeColor=#9673A6;strokeWidth=2.5;" vertex="1" parent="1">
|
|
52
|
+
<mxGeometry x="680" y="1215" width="580" height="100" as="geometry"/>
|
|
53
|
+
</mxCell>
|
|
54
|
+
<mxCell id="image-attached" value="Preview image<br><b>attached</b>?" style="rhombus;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=17;fontColor=#674274;fillColor=#E1D5E7;strokeColor=#9673A6;strokeWidth=2;" vertex="1" parent="1">
|
|
55
|
+
<mxGeometry x="805" y="1375" width="330" height="150" as="geometry"/>
|
|
56
|
+
</mxCell>
|
|
57
|
+
<mxCell id="fallback-review" value="<b><font color="#1F4E78">TEXT-ONLY FALLBACK</font></b><br>Cross-check validation + drawio_explain<br>against the request. Keep the preview for the user;<br>report rendered inspection as skipped." style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=20;spacingRight=18;fontSize=15;fontColor=#263746;fillColor=#EEF6FC;strokeColor=#6C8EBF;strokeWidth=2;" vertex="1" parent="1">
|
|
58
|
+
<mxGeometry x="70" y="1380" width="500" height="140" as="geometry"/>
|
|
59
|
+
</mxCell>
|
|
60
|
+
<mxCell id="visual-passes" value="<b><font color="#674274">RUN 4 GATED PASSES IN ORDER</font></b><br>1 Fit &amp; sizing → 2 Element placement<br>3 Connections → 4 Typography, semantics &amp; regression<br><font color="#6B7C8A">Log each defect as F1, F2, … with affected cell IDs.</font>" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=20;spacingRight=18;fontSize=15;fontColor=#263746;fillColor=#F7F0FA;strokeColor=#9673A6;strokeWidth=2;" vertex="1" parent="1">
|
|
61
|
+
<mxGeometry x="1370" y="1370" width="500" height="160" as="geometry"/>
|
|
62
|
+
</mxCell>
|
|
63
|
+
<mxCell id="finding" value="Any unresolved<br>quality <b>finding</b>?" style="rhombus;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=17;fontColor=#674274;fillColor=#E1D5E7;strokeColor=#9673A6;strokeWidth=2;" vertex="1" parent="1">
|
|
64
|
+
<mxGeometry x="805" y="1615" width="330" height="150" as="geometry"/>
|
|
65
|
+
</mxCell>
|
|
66
|
+
<mxCell id="retry-limit" value="Correction retries<br><b>used &lt; 8</b>?" style="rhombus;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=17;fontColor=#9A5B13;fillColor=#FFE6CC;strokeColor=#D79B00;strokeWidth=2;" vertex="1" parent="1">
|
|
67
|
+
<mxGeometry x="1460" y="1615" width="300" height="150" as="geometry"/>
|
|
68
|
+
</mxCell>
|
|
69
|
+
<mxCell id="correction-cycle" value="<b><font color="#674274">ONE CORRECTION RETRY</font></b><br>Targeted source edit → validate → replacement preview<br>Compare before/after: <b>fixed · not fixed · regressed</b><br><font color="#6B7C8A">A source change alone never proves a visual fix.</font>" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=20;spacingRight=18;fontSize=15;fontColor=#263746;fillColor=#F7F0FA;strokeColor=#9673A6;strokeWidth=2.5;" vertex="1" parent="1">
|
|
70
|
+
<mxGeometry x="1350" y="1835" width="520" height="155" as="geometry"/>
|
|
71
|
+
</mxCell>
|
|
72
|
+
<mxCell id="quality-pass" value="<b><font color="#2D5E36">QUALITY GATES COMPLETE</font></b><br>All findings fixed or explicitly accepted" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=16;fontColor=#263746;fillColor=#EAF4E8;strokeColor=#82B366;strokeWidth=2.5;" vertex="1" parent="1">
|
|
73
|
+
<mxGeometry x="680" y="1845" width="580" height="100" as="geometry"/>
|
|
74
|
+
</mxCell>
|
|
75
|
+
<mxCell id="limit-reached" value="<b><font color="#9A5B13">LIMIT REACHED</font></b><br>Stop automatic editing · keep the best validated state<br>Finish remaining passes inspection-only and report<br>each unresolved finding with its last verdict." style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=20;spacingRight=18;fontSize=15;fontColor=#263746;fillColor=#FFF8ED;strokeColor=#D79B00;strokeWidth=2.5;" vertex="1" parent="1">
|
|
76
|
+
<mxGeometry x="70" y="1835" width="500" height="155" as="geometry"/>
|
|
77
|
+
</mxCell>
|
|
78
|
+
|
|
79
|
+
<mxCell id="phase-delivery" value="3 AUTONOMOUS DELIVERY" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=14;fontStyle=1;fontColor=#2D5E36;fillColor=#D5E8D4;strokeColor=#82B366;strokeWidth=2;" vertex="1" parent="1">
|
|
80
|
+
<mxGeometry x="800" y="2055" width="340" height="42" as="geometry"/>
|
|
81
|
+
</mxCell>
|
|
82
|
+
<mxCell id="final-export" value="<b><font color="#2D5E36">FINAL EXPORT — NO APPROVAL PAUSE</font></b><br>PNG by default · SVG / PDF / JPG on request · editable XML embedded<br>Remove the latest preview and report outputs, accepted warnings,<br>unresolved findings, and cleanup warnings." style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=14;fontSize=16;fontColor=#263746;fillColor=#EAF4E8;strokeColor=#4E8A45;strokeWidth=3;shadow=1;" vertex="1" parent="1">
|
|
83
|
+
<mxGeometry x="640" y="2135" width="660" height="150" as="geometry"/>
|
|
84
|
+
</mxCell>
|
|
85
|
+
|
|
86
|
+
<mxCell id="footer" value="<b>Decision rule:</b> errors block preview · unreviewed warnings block export · visual findings trigger bounded correction · the final report never hides an accepted or unresolved issue" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=10;fontSize=14;fontColor=#405466;fillColor=#FFFFFF;strokeColor=#AAB7C4;dashed=1;strokeWidth=1.5;" vertex="1" parent="1">
|
|
87
|
+
<mxGeometry x="160" y="2350" width="1620" height="58" as="geometry"/>
|
|
88
|
+
</mxCell>
|
|
89
|
+
|
|
90
|
+
<mxCell id="edge-revision-validate" value="every source edit" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#1F4E78;strokeWidth=2.5;fontSize=12;fontColor=#405466;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="revision" target="validate">
|
|
91
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
92
|
+
</mxCell>
|
|
93
|
+
<mxCell id="edge-validate-errors" value="lint result" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#1F4E78;strokeWidth=2.5;fontSize=12;fontColor=#405466;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="validate" target="errors">
|
|
94
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
95
|
+
</mxCell>
|
|
96
|
+
<mxCell id="edge-errors-yes" value="YES" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#B85450;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#8B2E2E;labelBackgroundColor=#F4F7FB;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="errors" target="fix-errors">
|
|
97
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
98
|
+
</mxCell>
|
|
99
|
+
<mxCell id="edge-errors-no" value="NO" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#2D5E36;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#2D5E36;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="errors" target="warnings">
|
|
100
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
101
|
+
</mxCell>
|
|
102
|
+
<mxCell id="edge-fix-errors-loop" value="edit" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#B85450;strokeWidth=2;dashed=1;dashPattern=8 4;fontSize=12;fontColor=#8B2E2E;labelBackgroundColor=#F4F7FB;exitX=1;exitY=0.5;entryX=0.25;entryY=1;" edge="1" parent="1" source="fix-errors" target="revalidate-junction">
|
|
103
|
+
<mxGeometry relative="1" as="geometry">
|
|
104
|
+
<Array as="points">
|
|
105
|
+
<mxPoint x="1875" y="626"/>
|
|
106
|
+
<mxPoint x="1875" y="310"/>
|
|
107
|
+
</Array>
|
|
108
|
+
</mxGeometry>
|
|
109
|
+
</mxCell>
|
|
110
|
+
<mxCell id="edge-warnings-yes" value="YES" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#D79B00;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#9A5B13;labelBackgroundColor=#F4F7FB;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="warnings" target="resolve-warning">
|
|
111
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
112
|
+
</mxCell>
|
|
113
|
+
<mxCell id="edge-warnings-no" value="NO" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#2D5E36;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#2D5E36;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="warnings" target="structural-pass">
|
|
114
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
115
|
+
</mxCell>
|
|
116
|
+
<mxCell id="edge-warning-fix-loop" value="FIXED · source changed" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#D79B00;strokeWidth=2;dashed=1;dashPattern=8 4;fontSize=12;fontColor=#9A5B13;labelBackgroundColor=#F4F7FB;exitX=1;exitY=0.35;entryX=0.5;entryY=1;" edge="1" parent="1" source="resolve-warning" target="revalidate-junction">
|
|
117
|
+
<mxGeometry relative="1" as="geometry">
|
|
118
|
+
<Array as="points">
|
|
119
|
+
<mxPoint x="1920" y="820"/>
|
|
120
|
+
<mxPoint x="1920" y="310"/>
|
|
121
|
+
</Array>
|
|
122
|
+
</mxGeometry>
|
|
123
|
+
</mxCell>
|
|
124
|
+
<mxCell id="edge-warning-accepted" value="ACCEPTED · reason recorded" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#9A5B13;strokeWidth=2;fontSize=12;fontColor=#9A5B13;labelBackgroundColor=#F4F7FB;exitX=0;exitY=0.75;entryX=1;entryY=0.5;" edge="1" parent="1" source="resolve-warning" target="structural-pass">
|
|
125
|
+
<mxGeometry relative="1" as="geometry">
|
|
126
|
+
<Array as="points">
|
|
127
|
+
<mxPoint x="1330" y="872"/>
|
|
128
|
+
<mxPoint x="1330" y="1036"/>
|
|
129
|
+
</Array>
|
|
130
|
+
</mxGeometry>
|
|
131
|
+
</mxCell>
|
|
132
|
+
<mxCell id="edge-pass-preview" value="safe to render" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2.5;fontSize=12;fontColor=#674274;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="structural-pass" target="preview">
|
|
133
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
134
|
+
</mxCell>
|
|
135
|
+
<mxCell id="edge-preview-attached" value="tool reports attachment state" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2.5;fontSize=12;fontColor=#674274;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="preview" target="image-attached">
|
|
136
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
137
|
+
</mxCell>
|
|
138
|
+
<mxCell id="edge-image-no" value="NO" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#1F4E78;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#1F4E78;labelBackgroundColor=#F4F7FB;exitX=0;exitY=0.5;entryX=1;entryY=0.5;" edge="1" parent="1" source="image-attached" target="fallback-review">
|
|
139
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
140
|
+
</mxCell>
|
|
141
|
+
<mxCell id="edge-image-yes" value="YES" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#674274;labelBackgroundColor=#F4F7FB;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="image-attached" target="visual-passes">
|
|
142
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
143
|
+
</mxCell>
|
|
144
|
+
<mxCell id="edge-fallback-finding" value="structural / semantic result" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#1F4E78;strokeWidth=2;fontSize=12;fontColor=#1F4E78;labelBackgroundColor=#F4F7FB;exitX=1;exitY=1;entryX=0;entryY=0.5;" edge="1" parent="1" source="fallback-review" target="finding">
|
|
145
|
+
<mxGeometry relative="1" as="geometry">
|
|
146
|
+
<Array as="points">
|
|
147
|
+
<mxPoint x="620" y="1580"/>
|
|
148
|
+
<mxPoint x="620" y="1690"/>
|
|
149
|
+
</Array>
|
|
150
|
+
</mxGeometry>
|
|
151
|
+
</mxCell>
|
|
152
|
+
<mxCell id="edge-visual-finding" value="finding ledger" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2;fontSize=12;fontColor=#674274;labelBackgroundColor=#F4F7FB;exitX=0;exitY=1;entryX=1;entryY=0.5;" edge="1" parent="1" source="visual-passes" target="finding">
|
|
153
|
+
<mxGeometry relative="1" as="geometry">
|
|
154
|
+
<Array as="points">
|
|
155
|
+
<mxPoint x="1320" y="1580"/>
|
|
156
|
+
<mxPoint x="1320" y="1690"/>
|
|
157
|
+
</Array>
|
|
158
|
+
</mxGeometry>
|
|
159
|
+
</mxCell>
|
|
160
|
+
<mxCell id="edge-finding-no" value="NO" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#2D5E36;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#2D5E36;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="finding" target="quality-pass">
|
|
161
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
162
|
+
</mxCell>
|
|
163
|
+
<mxCell id="edge-finding-yes" value="YES" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#D79B00;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#9A5B13;labelBackgroundColor=#F4F7FB;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="finding" target="retry-limit">
|
|
164
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
165
|
+
</mxCell>
|
|
166
|
+
<mxCell id="edge-retry-yes" value="YES" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#674274;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="retry-limit" target="correction-cycle">
|
|
167
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
168
|
+
</mxCell>
|
|
169
|
+
<mxCell id="edge-retry-no" value="NO" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#D79B00;strokeWidth=2.5;fontSize=13;fontStyle=1;fontColor=#9A5B13;labelBackgroundColor=#F4F7FB;exitX=1;exitY=0.5;entryX=0.5;entryY=0;" edge="1" parent="1" source="retry-limit" target="limit-reached">
|
|
170
|
+
<mxGeometry x="-0.9" y="0" relative="1" as="geometry">
|
|
171
|
+
<mxPoint x="8" y="-12" as="offset"/>
|
|
172
|
+
<Array as="points">
|
|
173
|
+
<mxPoint x="1900" y="1690"/>
|
|
174
|
+
<mxPoint x="1900" y="1795"/>
|
|
175
|
+
<mxPoint x="320" y="1795"/>
|
|
176
|
+
</Array>
|
|
177
|
+
</mxGeometry>
|
|
178
|
+
</mxCell>
|
|
179
|
+
<mxCell id="edge-correction-loop" value="source edit" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2.5;dashed=1;dashPattern=8 4;fontSize=12;fontColor=#674274;labelBackgroundColor=#F4F7FB;exitX=1;exitY=0.5;entryX=0.75;entryY=1;" edge="1" parent="1" source="correction-cycle" target="revalidate-junction">
|
|
180
|
+
<mxGeometry relative="1" as="geometry">
|
|
181
|
+
<Array as="points">
|
|
182
|
+
<mxPoint x="1965" y="1913"/>
|
|
183
|
+
<mxPoint x="1965" y="310"/>
|
|
184
|
+
</Array>
|
|
185
|
+
</mxGeometry>
|
|
186
|
+
</mxCell>
|
|
187
|
+
<mxCell id="edge-revalidate-revision" value="run drawio_validate" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#405E78;strokeWidth=2.5;fontSize=12;fontColor=#405466;labelBackgroundColor=#F4F7FB;exitX=0;exitY=0.5;entryX=1;entryY=0.5;" edge="1" parent="1" source="revalidate-junction" target="revision">
|
|
188
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
189
|
+
</mxCell>
|
|
190
|
+
<mxCell id="edge-quality-export" value="ship" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#2D5E36;strokeWidth=2.5;fontSize=12;fontColor=#2D5E36;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.7;entryY=0;" edge="1" parent="1" source="quality-pass" target="final-export">
|
|
191
|
+
<mxGeometry relative="1" as="geometry">
|
|
192
|
+
<Array as="points">
|
|
193
|
+
<mxPoint x="1190" y="2020"/>
|
|
194
|
+
<mxPoint x="1190" y="2115"/>
|
|
195
|
+
<mxPoint x="1102" y="2115"/>
|
|
196
|
+
</Array>
|
|
197
|
+
</mxGeometry>
|
|
198
|
+
</mxCell>
|
|
199
|
+
<mxCell id="edge-limit-export" value="ship with explicit exceptions" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#9A5B13;strokeWidth=2.5;fontSize=12;fontColor=#9A5B13;labelBackgroundColor=#F4F7FB;exitX=0.5;exitY=1;entryX=0.25;entryY=0;" edge="1" parent="1" source="limit-reached" target="final-export">
|
|
200
|
+
<mxGeometry relative="1" as="geometry">
|
|
201
|
+
<Array as="points">
|
|
202
|
+
<mxPoint x="320" y="2115"/>
|
|
203
|
+
<mxPoint x="805" y="2115"/>
|
|
204
|
+
</Array>
|
|
205
|
+
</mxGeometry>
|
|
206
|
+
</mxCell>
|
|
207
|
+
</root>
|
|
208
|
+
</mxGraphModel>
|
|
209
|
+
</diagram>
|
|
210
|
+
</mxfile>
|
package/package.json
CHANGED
package/src/drawio.ts
CHANGED
|
@@ -163,6 +163,12 @@ export interface ExportResult {
|
|
|
163
163
|
version?: string;
|
|
164
164
|
/** True if the truncated `-e` PNG IEND chunk was repaired after export. */
|
|
165
165
|
repaired: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* True when this preview replaced an earlier tracked preview for the same
|
|
168
|
+
* source — including a re-export over the same output path, where nothing is
|
|
169
|
+
* removed from disk. Always false for final exports.
|
|
170
|
+
*/
|
|
171
|
+
replacedPreview: boolean;
|
|
166
172
|
/** Superseded preview artifacts removed after this successful preview or final export. */
|
|
167
173
|
removedPreviews: string[];
|
|
168
174
|
/** Best-effort preview cleanup failures; the export itself still succeeded. */
|
|
@@ -186,6 +192,8 @@ function sourceKey(input: string): string {
|
|
|
186
192
|
interface PreviewCleanup {
|
|
187
193
|
removed: string[];
|
|
188
194
|
warnings: string[];
|
|
195
|
+
/** A tracked preview for the same source existed before this export (even at the same path). */
|
|
196
|
+
replaced: boolean;
|
|
189
197
|
}
|
|
190
198
|
|
|
191
199
|
/**
|
|
@@ -215,13 +223,13 @@ async function replaceTrackedPreview(input: string, latestOutput: string): Promi
|
|
|
215
223
|
}
|
|
216
224
|
|
|
217
225
|
previewOutputs.set(key, retained);
|
|
218
|
-
return { removed, warnings };
|
|
226
|
+
return { removed, warnings, replaced: previous.size > 0 };
|
|
219
227
|
}
|
|
220
228
|
|
|
221
229
|
async function removeTrackedPreviews(input: string, finalOutput: string): Promise<PreviewCleanup> {
|
|
222
230
|
const key = sourceKey(input);
|
|
223
231
|
const previews = previewOutputs.get(key);
|
|
224
|
-
if (!previews) return { removed: [], warnings: [] };
|
|
232
|
+
if (!previews) return { removed: [], warnings: [], replaced: false };
|
|
225
233
|
|
|
226
234
|
previewOutputs.delete(key);
|
|
227
235
|
const finalPath = resolve(finalOutput);
|
|
@@ -243,7 +251,7 @@ async function removeTrackedPreviews(input: string, finalOutput: string): Promis
|
|
|
243
251
|
}
|
|
244
252
|
|
|
245
253
|
if (retry.size > 0) previewOutputs.set(key, retry);
|
|
246
|
-
return { removed, warnings };
|
|
254
|
+
return { removed, warnings, replaced: false };
|
|
247
255
|
}
|
|
248
256
|
|
|
249
257
|
async function withSourceExportQueue<T>(input: string, action: () => Promise<T>): Promise<T> {
|
|
@@ -331,6 +339,7 @@ async function exportDiagramQueued(opts: ExportOptions): Promise<ExportResult> {
|
|
|
331
339
|
binary: info.binary,
|
|
332
340
|
version: info.version,
|
|
333
341
|
repaired,
|
|
342
|
+
replacedPreview: cleanup.replaced,
|
|
334
343
|
removedPreviews: cleanup.removed,
|
|
335
344
|
previewCleanupWarnings: cleanup.warnings,
|
|
336
345
|
command,
|