@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.
@@ -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="1800" dy="1300" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1920" pageHeight="1360" math="0" shadow="0" background="#FFFFFF">
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="2" value="Install DrawMe for Pi" style="text;html=1;align=left;verticalAlign=middle;fontSize=32;fontStyle=1;fontColor=#17365D;" vertex="1" parent="1">
9
- <mxGeometry x="40" y="20" width="1000" height="50" as="geometry" />
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="3" value="From prerequisites to an approval-gated, editable .drawio export" style="text;html=1;align=left;verticalAlign=middle;fontSize=17;fontColor=#4F6475;" vertex="1" parent="1">
12
- <mxGeometry x="40" y="70" width="1100" height="40" as="geometry" />
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="4" value="LOCAL RENDERING • HUMAN APPROVAL • EDITABLE" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=13;fontStyle=1;fontColor=#2D5E36;fillColor=#D5E8D4;strokeColor=#82B366;strokeWidth=2;" vertex="1" parent="1">
15
- <mxGeometry x="1370" y="35" width="470" height="50" as="geometry" />
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
- <mxCell id="5" value="1 CHECK THE PREREQUISITES" style="swimlane;horizontal=1;startSize=46;rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;fontSize=17;fontStyle=1;fontColor=#FFFFFF;fillColor=#1F4E78;swimlaneFillColor=#F8FBFF;strokeColor=#6C8EBF;strokeWidth=2;" vertex="1" parent="1">
18
- <mxGeometry x="40" y="130" width="1800" height="230" as="geometry" />
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="6" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;PI CODING AGENT&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Pi must already be installed&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;pi --version&lt;/font&gt;" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="5">
21
- <mxGeometry x="40" y="75" width="500" height="120" as="geometry" />
21
+ <mxCell id="prereq-pi" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;01 · PI CODING AGENT&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Install and authenticate Pi first&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;pi --version&lt;/font&gt;" 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="7" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;NODE.JS 22.19+&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Required by DrawMe&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;node --version&lt;/font&gt;" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="5">
24
- <mxGeometry x="650" y="75" width="500" height="120" as="geometry" />
24
+ <mxCell id="prereq-node" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;02 · NODE.JS 22.19+&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Required by DrawMe&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;node --version&lt;/font&gt;" 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="8" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;DRAW.IO DESKTOP&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;macOS: &lt;font face=&quot;Courier New&quot;&gt;brew install --cask drawio&lt;/font&gt;&lt;br&gt;Linux: prefer .deb / .rpm • Windows: official installer" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="5">
27
- <mxGeometry x="1260" y="75" width="500" height="120" as="geometry" />
27
+ <mxCell id="prereq-drawio" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;03 · DRAW.IO DESKTOP&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;macOS: &lt;font face=&quot;Courier New&quot;&gt;brew install --cask drawio&lt;/font&gt;&lt;br&gt;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
- <mxCell id="9" value="↓" style="text;html=1;align=center;verticalAlign=middle;fontSize=24;fontStyle=1;fontColor=#1F4E78;" vertex="1" parent="1">
30
- <mxGeometry x="880" y="360" width="120" height="30" as="geometry" />
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="10" value="2 INSTALL DRAWME — CHOOSE ONE SCOPE" style="swimlane;horizontal=1;startSize=46;rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;fontSize=17;fontStyle=1;fontColor=#FFFFFF;fillColor=#1F4E78;swimlaneFillColor=#F8FBFF;strokeColor=#6C8EBF;strokeWidth=2;" vertex="1" parent="1">
33
- <mxGeometry x="40" y="390" width="1800" height="360" as="geometry" />
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="11" 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="10">
36
- <mxGeometry x="760" y="60" width="280" height="90" as="geometry" />
37
+ <mxCell id="scope-user" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;USER SCOPE · DEFAULT&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;All projects • ~/.pi/agent/settings.json&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;pi install npm:@senad-d/drawme&lt;/font&gt;" 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="12" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;USER SCOPE · DEFAULT&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Writes ~/.pi/agent/settings.json&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;pi install npm:@senad-d/drawme&lt;/font&gt;" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#EAF2F8;strokeColor=#1F4E78;strokeWidth=3;shadow=1;" vertex="1" parent="10">
39
- <mxGeometry x="70" y="180" width="500" height="115" as="geometry" />
40
+ <mxCell id="scope-project" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;PROJECT-LOCAL · TEAM&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;This project • .pi/settings.json&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;pi install npm:@senad-d/drawme -l&lt;/font&gt;" 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="13" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;PROJECT-LOCAL · TEAM&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Writes .pi/settings.json&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;pi install npm:@senad-d/drawme -l&lt;/font&gt;" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="10">
42
- <mxGeometry x="650" y="180" width="500" height="115" as="geometry" />
43
+ <mxCell id="scope-trial" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;ONE-TIME TRIAL&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Current run only • no settings change&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;pi -e npm:@senad-d/drawme&lt;/font&gt;" 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="14" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;ONE-TIME TRIAL&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;No settings change; current run only&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;pi -e npm:@senad-d/drawme&lt;/font&gt;" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=12;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="10">
45
- <mxGeometry x="1230" y="180" width="500" height="115" as="geometry" />
46
+ <mxCell id="install-source" value="&lt;b&gt;PIN OR DEVELOP&lt;/b&gt;&lt;br&gt;Pinned npm: &lt;font face=&quot;Courier New&quot;&gt;npm:@senad-d/drawme@&amp;lt;version&amp;gt;&lt;/font&gt; • Git: &lt;font face=&quot;Courier New&quot;&gt;git:github.com/senad-d/DrawMe@&amp;lt;tag&amp;gt;&lt;/font&gt;&lt;br&gt;Source checkout: &lt;font face=&quot;Courier New&quot;&gt;npm ci --ignore-scripts&lt;/font&gt; → &lt;font face=&quot;Courier New&quot;&gt;npm run validate&lt;/font&gt; → &lt;font face=&quot;Courier New&quot;&gt;pi --no-extensions -e .&lt;/font&gt;" 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="15" value="Git / pinned: &lt;font face=&quot;Courier New&quot;&gt;pi install git:senad-d/DrawMe@&amp;lt;tag&amp;gt;&lt;/font&gt; • Checkout: &lt;font face=&quot;Courier New&quot;&gt;npm ci --ignore-scripts &amp;&amp; npm run validate &amp;&amp; pi --no-extensions -e .&lt;/font&gt;" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=13;fontColor=#405466;fillColor=#F3F6F8;strokeColor=#AAB7C4;dashed=1;" vertex="1" parent="10">
48
- <mxGeometry x="200" y="310" width="1400" height="35" as="geometry" />
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="16" value="↓" style="text;html=1;align=center;verticalAlign=middle;fontSize=24;fontStyle=1;fontColor=#1F4E78;" vertex="1" parent="1">
51
- <mxGeometry x="880" y="750" width="120" height="30" as="geometry" />
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="17" value="3 LOAD, VERIFY, CREATE, AND APPROVE" style="swimlane;horizontal=1;startSize=46;rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;fontSize=17;fontStyle=1;fontColor=#FFFFFF;fillColor=#1F4E78;swimlaneFillColor=#F8FBFF;strokeColor=#6C8EBF;strokeWidth=2;" vertex="1" parent="1">
54
- <mxGeometry x="40" y="780" width="1800" height="300" as="geometry" />
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
- <mxCell id="18" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;LOAD&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Start or restart Pi&lt;br&gt;Already running? Use &lt;font face=&quot;Courier New&quot;&gt;/reload&lt;/font&gt;" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=10;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="17">
57
- <mxGeometry x="40" y="85" width="300" height="150" as="geometry" />
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="19" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;VERIFY&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;/drawme-check&lt;/font&gt;&lt;br&gt;Expect path, version, and v30+ support" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=10;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="17">
60
- <mxGeometry x="390" y="85" width="300" height="150" as="geometry" />
62
+ <mxCell id="use-load" value="&lt;b&gt;&lt;font color=&quot;#674274&quot;&gt;01 · LOAD&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Start Pi after installation&lt;br&gt;Already open? Use &lt;font face=&quot;Courier New&quot;&gt;/reload&lt;/font&gt;" 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="20" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;CREATE&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;/drawme Create a login flow&lt;/font&gt;&lt;br&gt;Agent authors, validates, and previews" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=10;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#6C8EBF;strokeWidth=2;shadow=1;" vertex="1" parent="17">
63
- <mxGeometry x="740" y="85" width="300" height="150" as="geometry" />
65
+ <mxCell id="use-verify" value="&lt;b&gt;&lt;font color=&quot;#674274&quot;&gt;02 · VERIFY&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;/drawme-check&lt;/font&gt;&lt;br&gt;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="21" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;REVIEW &amp;amp; APPROVE&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Inspect the holistic preview&lt;br&gt;Request changes or explicitly approve" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=10;fontSize=14;fontColor=#263746;fillColor=#FFF7E6;strokeColor=#D6B656;strokeWidth=2;shadow=1;" vertex="1" parent="17">
66
- <mxGeometry x="1090" y="85" width="300" height="150" as="geometry" />
68
+ <mxCell id="use-describe" value="&lt;b&gt;&lt;font color=&quot;#674274&quot;&gt;03 · DESCRIBE&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;font face=&quot;Courier New&quot;&gt;/drawme a login flow with retry&lt;/font&gt;&lt;br&gt;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="32" value="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;DONE&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Editable .drawio source&lt;br&gt;PNG by default&lt;br&gt;SVG • PDF • JPG on request" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;spacing=10;fontSize=14;fontColor=#263746;fillColor=#EAF4E8;strokeColor=#82B366;strokeWidth=2;shadow=1;" vertex="1" parent="17">
69
- <mxGeometry x="1440" y="85" width="300" height="150" as="geometry" />
71
+ <mxCell id="use-autonomous" value="&lt;b&gt;&lt;font color=&quot;#674274&quot;&gt;04 · AUTONOMOUS RUN&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;plan → author → validate → critique&lt;br&gt;refine (≤5) → confirm → export&lt;br&gt;&lt;font color=&quot;#6B7C8A&quot;&gt;no approval pause&lt;/font&gt;" 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="22" value="TROUBLESHOOTING, TRUST, AND COMPATIBILITY" style="swimlane;horizontal=1;startSize=42;rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;fontSize=16;fontStyle=1;fontColor=#FFFFFF;fillColor=#405466;swimlaneFillColor=#F8FAFB;strokeColor=#7E8E9E;strokeWidth=2;" vertex="1" parent="1">
72
- <mxGeometry x="40" y="1110" width="1800" height="180" as="geometry" />
74
+ <mxCell id="use-delivered" value="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;05 · DELIVERED&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Editable .drawio source&lt;br&gt;PNG by default&lt;br&gt;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="23" value="&lt;b&gt;CLI NOT FOUND?&lt;/b&gt;&lt;br&gt;Install draw.io Desktop at a standard path, then rerun &lt;font face=&quot;Courier New&quot;&gt;/drawme-check&lt;/font&gt;. XML authoring and validation still work without it; v30+ only gates Mermaid and ELK layout." style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacing=12;fontSize=13;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#AAB7C4;" vertex="1" parent="22">
75
- <mxGeometry x="30" y="60" width="550" height="95" as="geometry" />
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="24" value="&lt;b&gt;EXTENSION NOT VISIBLE?&lt;/b&gt;&lt;br&gt;Run &lt;font face=&quot;Courier New&quot;&gt;pi list&lt;/font&gt;, check &lt;font face=&quot;Courier New&quot;&gt;pi config&lt;/font&gt;, and use &lt;font face=&quot;Courier New&quot;&gt;/reload&lt;/font&gt;. Project-local packages load only after the project is trusted." style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacing=12;fontSize=13;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#AAB7C4;" vertex="1" parent="22">
78
- <mxGeometry x="625" y="60" width="550" height="95" as="geometry" />
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="25" value="&lt;b&gt;INSTALL TRUSTED CODE ONLY&lt;/b&gt;&lt;br&gt;Pi extensions inherit the Pi process permissions, so review sources 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=12;fontSize=13;fontColor=#2D5E36;fillColor=#F3F9F1;strokeColor=#82B366;" vertex="1" parent="22">
81
- <mxGeometry x="1220" y="60" width="550" height="95" as="geometry" />
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="26" 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="1" source="11" target="12">
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
- <mxCell id="27" 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="1" source="11" target="13">
87
- <mxGeometry relative="1" as="geometry" />
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="28" 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="1" source="11" target="14">
90
- <mxGeometry relative="1" as="geometry" />
93
+ <mxCell id="support-cli" value="&lt;b&gt;CLI NOT FOUND?&lt;/b&gt;&lt;br&gt;&lt;br&gt;Install draw.io Desktop at a standard path, then rerun &lt;font face=&quot;Courier New&quot;&gt;/drawme-check&lt;/font&gt;. 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="29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#1F4E78;strokeWidth=2;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="18" target="19">
93
- <mxGeometry relative="1" as="geometry" />
96
+ <mxCell id="support-package" value="&lt;b&gt;PACKAGE NOT VISIBLE?&lt;/b&gt;&lt;br&gt;&lt;br&gt;Run &lt;font face=&quot;Courier New&quot;&gt;pi list&lt;/font&gt;, check &lt;font face=&quot;Courier New&quot;&gt;pi config&lt;/font&gt;, and use &lt;font face=&quot;Courier New&quot;&gt;/reload&lt;/font&gt;. 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="30" value="CLI detected" 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=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="19" target="20">
96
- <mxGeometry relative="1" as="geometry" />
99
+ <mxCell id="support-trust" value="&lt;b&gt;&lt;font color=&quot;#9A5B13&quot;&gt;INSTALL TRUSTED CODE ONLY&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;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="31" value="preview ready" 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=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="20" target="21">
99
- <mxGeometry relative="1" as="geometry" />
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="33" value="approved" 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="1" source="21" target="32">
102
- <mxGeometry relative="1" as="geometry" />
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="&lt;b&gt;REVALIDATE&lt;/b&gt;&lt;br&gt;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="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;SOURCE REVISION&lt;/font&gt;&lt;/b&gt;&lt;br&gt;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="&lt;b&gt;Run drawio_validate immediately&lt;/b&gt;&lt;br&gt;Check XML, IDs, endpoints, geometry, bounds, margins,&lt;br&gt;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&lt;br&gt;&lt;b&gt;errors&lt;/b&gt;?" 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="&lt;b&gt;&lt;font color=&quot;#8B2E2E&quot;&gt;BLOCK PREVIEW&lt;/font&gt;&lt;/b&gt;&lt;br&gt;Repair malformed XML, duplicate/reserved IDs,&lt;br&gt;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&lt;br&gt;&lt;b&gt;warnings&lt;/b&gt;?" 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="&lt;b&gt;&lt;font color=&quot;#9A5B13&quot;&gt;RESOLVE EACH WARNING&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;Fix&lt;/b&gt; it and revalidate, or &lt;b&gt;record&lt;/b&gt; why it is&lt;br&gt;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="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;STRUCTURAL GATE PASSES&lt;/font&gt;&lt;/b&gt;&lt;br&gt;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="&lt;b&gt;Export a focused PNG preview&lt;/b&gt;&lt;br&gt;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&lt;br&gt;&lt;b&gt;attached&lt;/b&gt;?" 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="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;TEXT-ONLY FALLBACK&lt;/font&gt;&lt;/b&gt;&lt;br&gt;Cross-check validation + drawio_explain&lt;br&gt;against the request. Keep the preview for the user;&lt;br&gt;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="&lt;b&gt;&lt;font color=&quot;#674274&quot;&gt;RUN 4 GATED PASSES IN ORDER&lt;/font&gt;&lt;/b&gt;&lt;br&gt;1 Fit &amp;amp; sizing → 2 Element placement&lt;br&gt;3 Connections → 4 Typography, semantics &amp;amp; regression&lt;br&gt;&lt;font color=&quot;#6B7C8A&quot;&gt;Log each defect as F1, F2, … with affected cell IDs.&lt;/font&gt;" 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&lt;br&gt;quality &lt;b&gt;finding&lt;/b&gt;?" 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&lt;br&gt;&lt;b&gt;used &amp;lt; 8&lt;/b&gt;?" 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="&lt;b&gt;&lt;font color=&quot;#674274&quot;&gt;ONE CORRECTION RETRY&lt;/font&gt;&lt;/b&gt;&lt;br&gt;Targeted source edit → validate → replacement preview&lt;br&gt;Compare before/after: &lt;b&gt;fixed · not fixed · regressed&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#6B7C8A&quot;&gt;A source change alone never proves a visual fix.&lt;/font&gt;" 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="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;QUALITY GATES COMPLETE&lt;/font&gt;&lt;/b&gt;&lt;br&gt;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="&lt;b&gt;&lt;font color=&quot;#9A5B13&quot;&gt;LIMIT REACHED&lt;/font&gt;&lt;/b&gt;&lt;br&gt;Stop automatic editing · keep the best validated state&lt;br&gt;Finish remaining passes inspection-only and report&lt;br&gt;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="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;FINAL EXPORT — NO APPROVAL PAUSE&lt;/font&gt;&lt;/b&gt;&lt;br&gt;PNG by default · SVG / PDF / JPG on request · editable XML embedded&lt;br&gt;Remove the latest preview and report outputs, accepted warnings,&lt;br&gt;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="&lt;b&gt;Decision rule:&lt;/b&gt; 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senad-d/drawme",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Pi extension for authoring, validating, and exporting editable draw.io diagrams from natural-language descriptions.",
5
5
  "type": "module",
6
6
  "license": "MIT",
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,