@senad-d/drawme 0.1.6 → 0.1.8

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 CHANGED
@@ -8,6 +8,25 @@ All notable changes to this project are documented here. The format is based on
8
8
 
9
9
  ### Added
10
10
 
11
+ - `drawio_validate` no longer stays silent about what it cannot see: auto-routed edges (no explicit
12
+ waypoints) are reported as an actionable warning naming each edge, because the renderer routes them
13
+ blindly and the route-through/crossing checks skip them — the main way visibly broken routing used to
14
+ pass a "clean" validation. New deterministic edge-label checks: an estimated box for each inline edge
15
+ label (and the practical box of separate edge-label vertices) is tested against shapes and reported as
16
+ "likely overlaps", and a labeled edge with neither a label offset nor `labelBackgroundColor` is flagged
17
+ as sitting directly on its line. Edge waypoints and routes now honor the parent container's origin
18
+ (they are stored parent-relative), fixing route checks and content bounds for edges inside containers.
19
+ Example diagrams carry explicit waypoints so route checks engage on them; their remaining reviewed
20
+ findings are baselined in the test suite.
21
+
22
+ - `drawio_validate` now warns when a pinned source exit or target entry faces away from its adjacent
23
+ waypoint (or its peer on an auto-route) and includes a complete side-center `exit*` or `entry*` repair hint. Auto-routed edges whose direct connection line
24
+ pierces an unrelated shape gain a focused informational observation for preview review while retaining
25
+ the existing unchecked-route warning. The readability score adds an `anchors` dimension, and explicit
26
+ font sizes below 11px for nodes or 10px for connector labels are reported as very small. Authoring
27
+ guidance now defaults to 14px node and 12px connector labels, documents facing-side anchor selection,
28
+ and recommends snug boxes without penalizing intentional uniform peer sizing.
29
+
11
30
  - New `drawio_fit_canvas` tool: deterministically resizes each page's canvas to its visible content plus
12
31
  a margin (default 40px) and shifts content to the margin origin — the fix for cramped pages where
13
32
  elements overlap because they were squeezed into a too-small canvas. The workflow now defers page
package/README.md CHANGED
@@ -151,7 +151,7 @@ Registered for the model to call directly.
151
151
  | --- | --- |
152
152
  | `drawio_check` | Resolve the draw.io binary, version, and whether it supports Mermaid import / `--layout` (v30+). |
153
153
  | `drawio_export` | Export a `.drawio` to PNG/SVG/PDF/JPG. `mode:"preview"` → clean width-capped PNG returned as text/metadata, with the image block attached when the active model can view images (the text states which); each successful preview removes the previous same-source preview file so only the latest remains. `mode:"final"` → embedded editable deliverable, with truncated PNG repair and cleanup of the remaining preview. |
154
- | `drawio_validate` | Deterministic lint: dangling edges, duplicate/reserved ids, broken parents, malformed vertex/edge geometry; warnings for page/container bounds, margins, conservative readability, overlap, and explicit routes through/crossing shapes; observations and readability score are reported separately. |
154
+ | `drawio_validate` | Deterministic lint for XML structure, geometry, page/container bounds, margins, overlap, explicit route-through/crossings, anchors facing away from their route, edge-label collisions, labels on connector lines, small fonts, and unchecked auto-routes. Likely direct-path obstructions for auto-routed edges are preview-review observations. The readability score reports route-through, crossings, overlaps, and anchors separately. |
155
155
  | `drawio_fit_canvas` | Fit each page's canvas to its content plus a margin (default 40px): grows cramped pages, tightens oversized ones, and shifts content to the margin origin — instead of shrinking or cramming elements. Deterministic, no CLI. |
156
156
  | `drawio_shapesearch` | Exact official `style=` strings for 10k+ AWS/Azure/GCP/Cisco/Kubernetes/UML/BPMN shapes, from a bundled local index. Use instead of guessing a style. |
157
157
  | `drawio_from_mermaid` | Convert Mermaid text (inline or a `.mmd`) to a native `.drawio` with automatic layout. Requires draw.io **v30+**. |
@@ -185,7 +185,7 @@ The extension factory in `src/index.ts` registers the tools and commands. Render
185
185
  8. **No human gate** — the run never pauses for approval or feedback; if the user interrupts with feedback, it is handled as new critique findings and the run continues.
186
186
  9. **Final export** — immediately after the holistic confirmation, export requested embedded/editable formats (each page of a multi-page file separately), remove the one remaining latest review preview, and report deliverables (including any unresolved finding from the correction limit) plus cleanup warnings.
187
187
 
188
- Deterministic checks cover XML contracts, IDs/references, finite page and container bounds, outer margins, overlaps, explicit waypoint routes, and conservative font/wrapping cases. Rendered clipping and wrapping, contrast, typography at full-diagram scale, visual balance, semantics, and draw.io's automatic connector routes can only be judged from the preview image, so they are critiqued when the active model can view images and reported as unverified when it cannot. Vision's job in the loop is to narrow every rendered defect down to specific cells (the authoring reference maps each defect to a source fix) and then to confirm from the replacement image that the defect is actually gone. A 2000px preview that makes labels unreadable requires a tighter/simpler layout, page splitting, or a focused re-export — it must never be accepted as-is.
188
+ Deterministic checks cover XML contracts, IDs/references, finite page and container bounds, outer margins, overlaps, explicit waypoint routes, edge-label placement, conservative font/wrapping cases, and pinned anchors that face away from their adjacent waypoint or auto-routed peer. Auto-routed edges remain renderer-dependent: validation warns that their route is unchecked and adds a focused observation when the direct connection line pierces a shape, but the preview remains the final arbiter. Rendered clipping and wrapping, contrast, typography at full-diagram scale, visual balance, semantics, and draw.io's automatic connector routes can only be judged from the preview image, so they are critiqued when the active model can view images and reported as unverified when it cannot. Vision's job in the loop is to narrow every rendered defect down to specific cells (the authoring reference maps each defect to a source fix) and then to confirm from the replacement image that the defect is actually gone. A 2000px preview that makes labels unreadable requires a tighter/simpler layout, page splitting, or a focused re-export — it must never be accepted as-is.
189
189
 
190
190
  ## Bundled References and Assets
191
191
 
@@ -41,10 +41,10 @@ Background for manual sizing (what the fit computes): visible top-level vertex/c
41
41
 
42
42
  ### Typography, padding, and labels
43
43
 
44
- - Use at least **12px for body/node labels** and **10px for connector labels**. Headings usually need 16px or more. Compact border ports and notation-mandated annotations may use 8–9px when their short labels remain legible; record the exception during review.
44
+ - Default to **14px for body/node labels** and **12px for connector labels** — set `fontSize=14;` on nodes and `fontSize=12;` on connectors instead of relying on draw.io's smaller default. Headings and title/hub nodes usually need 16–18px. Compact border ports and notation-mandated annotations may use 9–10px when their short labels remain legible; record the exception during review.
45
45
  - Add `whiteSpace=wrap;html=1;` to labeled nodes. Use about 10–16px visual padding (`spacing=10;` or directional spacing) between text and shape borders.
46
46
  - Size a node for the rendered lines, not only character count. A conservative height is `line count × (fontSize × 1.25) + top/bottom padding`; allow additional room for container title bands and icon shapes.
47
- - Estimate width from the longest line (`characters × fontSize × 0.6 + left/right padding`), then verify by preview. Insert deliberate `
` breaks for long labels rather than forcing a very wide node.
47
+ - Estimate width from the longest line (`characters × fontSize × 0.6 + left/right padding`), then verify by preview. Keep boxes visually snug: for a short label, prefer the estimated width plus about 24px total padding over a large reused default. Preserve intentional uniform sizing among peer nodes when it improves alignment. Insert deliberate `
` breaks for long labels rather than forcing a very wide node.
48
48
  - Prefer two or three concise lines. If a label remains long, enlarge the node, shorten the wording without changing meaning, or split details into a note/legend. Never reduce important body text merely to fit existing geometry.
49
49
  - A 2000px full-diagram preview scales the entire page. If labels become unreadable at that width, simplify the layout, tighten the canvas, split the diagram into pages, or use a focused review export; never accept an unreadable full view as passing typography.
50
50
 
@@ -63,6 +63,8 @@ When the preview critique narrows a finding down to specific cells, apply the ma
63
63
  | Arrowhead buried in a bend or hidden by a shape | Keep the final segment before the target ≥20px: move the last waypoint or increase spacing |
64
64
  | Edge passes through a shape it does not connect | Add waypoints around it, or move the shape out of the routing corridor |
65
65
  | Two edges stacked on the same path | Spread their entry/exit points (see the distribution table below) |
66
+ | Edge detours or makes needless 90° bends | Re-pin its exit/entry to the side facing the peer (see the facing table below); add waypoints only if a shape still blocks the corridor |
67
+ | Box has excessive empty side margins | Tighten it using the label-width estimate while preserving deliberate uniform sizing among peer nodes, then `drawio_fit_canvas` |
66
68
  | Icon shape's label overlaps the icon artwork | Move the label outside: `verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=#ffffff;` |
67
69
  | Content touching a page edge, uneven margins, or big empty areas | Re-space the elements if needed, then run `drawio_fit_canvas` |
68
70
 
@@ -185,6 +187,19 @@ When multiple edges connect to the same shape, assign different entry/exit point
185
187
 
186
188
  **Rule:** if a shape has N connections on one side, space them evenly (e.g., 3 connections on bottom → exitX = 0.25, 0.5, 0.75)
187
189
 
190
+ ### Choosing the anchor side by relative position
191
+
192
+ Before spreading multiple edges on one side, pick the side that faces the peer. A wrong side forces the connector to backtrack around the shape, adding length and bends. Use the dominant center-to-center direction from source to target:
193
+
194
+ | Target relative to source | Source exit | Target entry |
195
+ |---------------------------|-------------|--------------|
196
+ | Right (`dx` dominant) | `exitX=1` | `entryX=0` |
197
+ | Left (`dx` dominant) | `exitX=0` | `entryX=1` |
198
+ | Below (`dy` dominant) | `exitY=1` | `entryY=0` |
199
+ | Above (`dy` dominant) | `exitY=0` | `entryY=1` |
200
+
201
+ `drawio_validate` warns when a pinned border anchor faces away from its adjacent waypoint, or from its peer when the edge has no waypoints, and suggests complete side-center `exit*` or `entry*` properties. Keep the facing side when distributing several connections; spread their positions along that side rather than moving them to non-facing sides. Leave the anchor unpinned when the relative direction is genuinely ambiguous so draw.io can choose it.
202
+
188
203
  ### Color palette (fillColor / strokeColor)
189
204
 
190
205
  *Used only when no user style preset is active (see `references/style-presets.md` → "Applying a preset").*
package/docs/reference.md CHANGED
@@ -174,17 +174,21 @@ Actionable warnings include:
174
174
  - a canvas conservatively detected as substantially larger than its visible content;
175
175
  - very small explicit label fonts and long labels in narrow nodes without wrapping;
176
176
  - explicitly waypointed edges routed through unrelated vertices or crossing one another;
177
+ - pinned source exits or target entries that face away from their adjacent waypoint, or their peer on an auto-route;
178
+ - edge labels likely overlapping shapes or sitting directly on their own connector;
179
+ - auto-routed edges whose missing waypoints prevent deterministic route checks;
177
180
  - compressed pages that cannot be inspected.
178
181
 
179
- Informational observations identify checks intentionally skipped for infinite canvases or omitted/invalid page dimensions. All normal-page diagnostics are page-specific. Content bounds account for nested container offsets, visible nodes/containers, explicit waypoints, and separately sized edge labels on resolvable explicit routes where practical.
182
+ Informational observations identify checks intentionally skipped for infinite canvases or omitted/invalid page dimensions. They also identify auto-routed edges whose direct connection line pierces an unrelated shape so the rendered route can receive focused preview review. All normal-page diagnostics are page-specific. Content bounds account for nested container offsets, visible nodes/containers, explicit waypoints, and separately sized edge labels on resolvable explicit routes where practical.
180
183
 
181
184
  The result text and details also include a readability score:
182
185
 
183
186
  - route through vertex: 20 points;
184
187
  - edge crossing: 10 points;
185
- - overlap: 5 points.
188
+ - overlap: 5 points;
189
+ - anchor facing away from its next route direction: 8 points.
186
190
 
187
- Lower is better, but scores are meaningful only when comparing layout variants of the same graph. Canvas, containment, and typography warnings do not change this established score. The text result separately reports error, unresolved-warning, and observation counts.
191
+ Lower is better, but scores are meaningful only when comparing layout variants of the same graph. Canvas, containment, typography, and predicted auto-route observations do not affect the score. The text result separately reports error, unresolved-warning, and observation counts.
188
192
 
189
193
  #### Use
190
194
 
@@ -1,70 +1,70 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <mxfile host="drawio" version="31.1.5">
3
3
  <diagram id="drawme-waterfall" name="High-level overview">
4
- <mxGraphModel dx="1640" dy="1040" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1640" pageHeight="1040" math="0" shadow="0">
4
+ <mxGraphModel dx="1640" dy="1040" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1620" pageHeight="1040" math="0" shadow="0">
5
5
  <root>
6
- <mxCell id="0" />
7
- <mxCell id="1" parent="0" />
6
+ <mxCell id="0"/>
7
+ <mxCell id="1" parent="0"/>
8
8
 
9
9
  <mxCell id="title" value="DrawMe Pi Extension" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;fontSize=30;fontStyle=1;fontColor=#173B67;strokeColor=none;fillColor=none;spacing=0;" vertex="1" parent="1">
10
- <mxGeometry x="60" y="40" width="900" height="40" as="geometry" />
10
+ <mxGeometry x="40" y="40" width="900" height="40" as="geometry"/>
11
11
  </mxCell>
12
- <mxCell id="subtitle" value="High-level waterfall overview | request &#8594; governed authoring &#8594; editable deliverables" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;fontSize=16;fontColor=#52657A;strokeColor=none;fillColor=none;spacing=0;" vertex="1" parent="1">
13
- <mxGeometry x="60" y="90" width="980" height="30" as="geometry" />
12
+ <mxCell id="subtitle" value="High-level waterfall overview | request → governed authoring → editable deliverables" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;fontSize=16;fontColor=#52657A;strokeColor=none;fillColor=none;spacing=0;" vertex="1" parent="1">
13
+ <mxGeometry x="40" y="90" width="980" height="30" as="geometry"/>
14
14
  </mxCell>
15
15
  <mxCell id="cli-badge" value="draw.io CLI 31.1.5 | v30+ features active" style="rounded=1;arcSize=24;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=13;fontStyle=1;fontColor=#23623B;fillColor=#E8F6EC;strokeColor=#3A9D5D;strokeWidth=1;spacing=8;" vertex="1" parent="1">
16
- <mxGeometry x="1300" y="50" width="300" height="40" as="geometry" />
16
+ <mxGeometry x="1280" y="50" width="300" height="40" as="geometry"/>
17
17
  </mxCell>
18
18
 
19
- <mxCell id="stage-01" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;01&lt;/font&gt;&#160;&#160;Request&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#40566F&quot;&gt;Natural-language intent arrives through &lt;b&gt;/drawme&lt;/b&gt; in the Pi agent.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#173B67;fillColor=#EAF2FF;strokeColor=#4C78C2;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
20
- <mxGeometry x="60" y="170" width="280" height="110" as="geometry" />
19
+ <mxCell id="stage-01" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;01&lt;/font&gt;  Request&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#40566F&quot;&gt;Natural-language intent arrives through &lt;b&gt;/drawme&lt;/b&gt; in the Pi agent.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#173B67;fillColor=#EAF2FF;strokeColor=#4C78C2;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
20
+ <mxGeometry x="40" y="170" width="280" height="110" as="geometry"/>
21
21
  </mxCell>
22
- <mxCell id="stage-02" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;02&lt;/font&gt;&#160;&#160;Guided orchestration&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#40566F&quot;&gt;&lt;b&gt;workflow.ts&lt;/b&gt; injects the nine-step autonomous process.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#173B67;fillColor=#EAF2FF;strokeColor=#4C78C2;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
23
- <mxGeometry x="270" y="290" width="280" height="110" as="geometry" />
22
+ <mxCell id="stage-02" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;02&lt;/font&gt;  Guided orchestration&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#40566F&quot;&gt;&lt;b&gt;workflow.ts&lt;/b&gt; injects the nine-step autonomous process.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#173B67;fillColor=#EAF2FF;strokeColor=#4C78C2;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
23
+ <mxGeometry x="250" y="290" width="280" height="110" as="geometry"/>
24
24
  </mxCell>
25
- <mxCell id="stage-03" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;03&lt;/font&gt;&#160;&#160;Author editable source&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#6B4A21&quot;&gt;Uncompressed XML or Mermaid; exact shape search and optional ELK layout.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#7A4515;fillColor=#FFF1E6;strokeColor=#E67E22;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
26
- <mxGeometry x="480" y="410" width="280" height="110" as="geometry" />
25
+ <mxCell id="stage-03" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;03&lt;/font&gt;  Author editable source&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#6B4A21&quot;&gt;Uncompressed XML or Mermaid; exact shape search and optional ELK layout.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#7A4515;fillColor=#FFF1E6;strokeColor=#E67E22;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
26
+ <mxGeometry x="460" y="410" width="280" height="110" as="geometry"/>
27
27
  </mxCell>
28
- <mxCell id="stage-04" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;04&lt;/font&gt;&#160;&#160;Validate every revision&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#66551D&quot;&gt;&lt;b&gt;validate.ts&lt;/b&gt; blocks broken IDs, geometry, bounds, overlap, and explicit routes.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#66500E;fillColor=#FFF8DD;strokeColor=#C89B1D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
29
- <mxGeometry x="690" y="530" width="280" height="110" as="geometry" />
28
+ <mxCell id="stage-04" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;04&lt;/font&gt;  Validate every revision&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#66551D&quot;&gt;&lt;b&gt;validate.ts&lt;/b&gt; blocks broken IDs, bad geometry, unsafe routes and anchors, overlaps, and label collisions.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#66500E;fillColor=#FFF8DD;strokeColor=#C89B1D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
29
+ <mxGeometry x="670" y="530" width="280" height="110" as="geometry"/>
30
30
  </mxCell>
31
- <mxCell id="stage-05" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;05&lt;/font&gt;&#160;&#160;Preview, critique, refine&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#66551D&quot;&gt;Clean PNG review across four categories; targeted fixes are revalidated (max 5).&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#66500E;fillColor=#FFF8DD;strokeColor=#C89B1D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
32
- <mxGeometry x="900" y="650" width="280" height="110" as="geometry" />
31
+ <mxCell id="stage-05" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;05&lt;/font&gt;  Preview, critique, refine&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#66551D&quot;&gt;Four gated review passes; targeted fixes are revalidated (max 8 corrections).&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#66500E;fillColor=#FFF8DD;strokeColor=#C89B1D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
32
+ <mxGeometry x="880" y="650" width="280" height="110" as="geometry"/>
33
33
  </mxCell>
34
- <mxCell id="stage-06" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;06&lt;/font&gt;&#160;&#160;Holistic confirmation&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#66551D&quot;&gt;The latest holistic preview is re-checked across all categories; the run continues straight to final export.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#66500E;fillColor=#FFF8DD;strokeColor=#C89B1D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
35
- <mxGeometry x="1110" y="770" width="280" height="110" as="geometry" />
34
+ <mxCell id="stage-06" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;06&lt;/font&gt;  Holistic confirmation&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#66551D&quot;&gt;The latest holistic preview is re-checked across all categories; the run continues straight to final export.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#66500E;fillColor=#FFF8DD;strokeColor=#C89B1D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
35
+ <mxGeometry x="1090" y="770" width="280" height="110" as="geometry"/>
36
36
  </mxCell>
37
- <mxCell id="stage-07" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;07&lt;/font&gt;&#160;&#160;Export deliverables&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#2B5D3C&quot;&gt;&lt;b&gt;drawio.ts&lt;/b&gt; invokes the local CLI &#8594; editable PNG / SVG / PDF / JPG and preview cleanup.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#23623B;fillColor=#E8F6EC;strokeColor=#3A9D5D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
38
- <mxGeometry x="1320" y="890" width="280" height="110" as="geometry" />
37
+ <mxCell id="stage-07" value="&lt;b&gt;&lt;font style=&quot;font-size:18px&quot;&gt;07&lt;/font&gt;  Export deliverables&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#2B5D3C&quot;&gt;&lt;b&gt;drawio.ts&lt;/b&gt; invokes the local CLI → .drawio source plus PNG / SVG / PDF / JPG; XML embedded where supported.&lt;/font&gt;" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#23623B;fillColor=#E8F6EC;strokeColor=#3A9D5D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
38
+ <mxGeometry x="1300" y="890" width="280" height="110" as="geometry"/>
39
39
  </mxCell>
40
40
 
41
41
  <mxCell id="edge-01-02" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-01" target="stage-02">
42
- <mxGeometry relative="1" as="geometry" />
42
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="355" y="258"/></Array></mxGeometry>
43
43
  </mxCell>
44
44
  <mxCell id="edge-02-03" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-02" target="stage-03">
45
- <mxGeometry relative="1" as="geometry" />
45
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="565" y="378"/></Array></mxGeometry>
46
46
  </mxCell>
47
47
  <mxCell id="edge-03-04" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-03" target="stage-04">
48
- <mxGeometry relative="1" as="geometry" />
48
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="775" y="498"/></Array></mxGeometry>
49
49
  </mxCell>
50
50
  <mxCell id="edge-04-05" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-04" target="stage-05">
51
- <mxGeometry relative="1" as="geometry" />
51
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="985" y="618"/></Array></mxGeometry>
52
52
  </mxCell>
53
53
  <mxCell id="edge-05-06" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-05" target="stage-06">
54
- <mxGeometry relative="1" as="geometry" />
54
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1195" y="738"/></Array></mxGeometry>
55
55
  </mxCell>
56
56
  <mxCell id="edge-06-07" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-06" target="stage-07">
57
- <mxGeometry relative="1" as="geometry" />
57
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1405" y="858"/></Array></mxGeometry>
58
58
  </mxCell>
59
59
 
60
- <mxCell id="surface-note" value="&lt;b&gt;&lt;font style=&quot;font-size:17px&quot;&gt;Extension surface&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;3 commands&lt;/b&gt; /drawme &#183; /drawme-check &#183; /drawme-export&lt;br&gt;&lt;b&gt;8 model tools&lt;/b&gt; check &#183; export &#183; validate &#183; shapes &#183; Mermaid &#183; layout &#183; explain &#183; open&lt;br&gt;&lt;b&gt;Pure TypeScript&lt;/b&gt; validation &#183; shape search &#183; explanation&lt;br&gt;&lt;b&gt;CLI adapter&lt;/b&gt; render &#183; convert &#183; layout &#183; open &#183; PNG repair" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fontSize=13;fontColor=#34495E;fillColor=#F7F9FC;strokeColor=#A9B7C6;strokeWidth=1;spacing=16;shadow=0;" vertex="1" parent="1">
61
- <mxGeometry x="60" y="450" width="400" height="220" as="geometry" />
60
+ <mxCell id="surface-note" value="&lt;b&gt;&lt;font style=&quot;font-size:17px&quot;&gt;Extension surface&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;3 commands&lt;/b&gt; /drawme · /drawme-check · /drawme-export&lt;br&gt;&lt;b&gt;9 model tools&lt;/b&gt; check · export · validate · fit · shapes · Mermaid · layout · explain · open&lt;br&gt;&lt;b&gt;Pure TypeScript&lt;/b&gt; validation · canvas fit · shape search · explanation&lt;br&gt;&lt;b&gt;CLI adapter&lt;/b&gt; render · convert · layout · open · PNG repair" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fontSize=13;fontColor=#34495E;fillColor=#F7F9FC;strokeColor=#A9B7C6;strokeWidth=1;spacing=16;shadow=0;" vertex="1" parent="1">
61
+ <mxGeometry x="40" y="450" width="400" height="220" as="geometry"/>
62
62
  </mxCell>
63
- <mxCell id="legend" value="&lt;b&gt;Color key&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#4C78C2&quot;&gt;&#9632;&lt;/font&gt; Interface and control&#160;&#160;&#160;&lt;font color=&quot;#E67E22&quot;&gt;&#9632;&lt;/font&gt; Authoring&lt;br&gt;&lt;font color=&quot;#C89B1D&quot;&gt;&#9632;&lt;/font&gt; Quality and confirmation&#160;&#160;&#160;&lt;font color=&quot;#3A9D5D&quot;&gt;&#9632;&lt;/font&gt; Deliverable" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=13;fontColor=#34495E;fillColor=#FFFFFF;strokeColor=#C8D1DC;strokeWidth=1;spacing=14;" vertex="1" parent="1">
64
- <mxGeometry x="60" y="710" width="420" height="100" as="geometry" />
63
+ <mxCell id="legend" value="&lt;b&gt;Color key&lt;/b&gt;&lt;br&gt;&lt;font color=&quot;#4C78C2&quot;&gt;■&lt;/font&gt; Interface and control   &lt;font color=&quot;#E67E22&quot;&gt;■&lt;/font&gt; Authoring&lt;br&gt;&lt;font color=&quot;#C89B1D&quot;&gt;■&lt;/font&gt; Quality and confirmation   &lt;font color=&quot;#3A9D5D&quot;&gt;■&lt;/font&gt; Deliverable" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=13;fontColor=#34495E;fillColor=#FFFFFF;strokeColor=#C8D1DC;strokeWidth=1;spacing=14;" vertex="1" parent="1">
64
+ <mxGeometry x="40" y="710" width="420" height="100" as="geometry"/>
65
65
  </mxCell>
66
66
  <mxCell id="trust-note" value="&lt;b&gt;Trust boundary&lt;/b&gt;&lt;br&gt;Pi may use the configured model; diagram files, structural validation, the shape index, and draw.io CLI execution remain on the local machine." style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=13;fontColor=#44546A;fillColor=#F4F6F8;strokeColor=#8996A5;strokeWidth=1;dashed=1;dashPattern=6 4;spacing=14;" vertex="1" parent="1">
67
- <mxGeometry x="60" y="850" width="720" height="100" as="geometry" />
67
+ <mxGeometry x="40" y="850" width="720" height="100" as="geometry"/>
68
68
  </mxCell>
69
69
  </root>
70
70
  </mxGraphModel>
@@ -32,10 +32,10 @@
32
32
  <mxGeometry x="1280" y="66" width="540" height="86" as="geometry"/>
33
33
  </mxCell>
34
34
  <mxCell id="edge-check-plan" 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="phase-prepare" source="step-check" target="step-plan">
35
- <mxGeometry relative="1" as="geometry"/>
35
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="620" y="109"/></Array></mxGeometry>
36
36
  </mxCell>
37
37
  <mxCell id="edge-plan-author" 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="phase-prepare" source="step-plan" target="step-author">
38
- <mxGeometry relative="1" as="geometry"/>
38
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1240" y="109"/></Array></mxGeometry>
39
39
  </mxCell>
40
40
 
41
41
  <mxCell id="phase-quality" value="QUALITY LOOP · STEPS 4–6 · RIGHT TO LEFT" style="swimlane;horizontal=1;startSize=46;rounded=1;arcSize=10;container=1;pointerEvents=0;html=1;fontSize=15;fontStyle=1;fontColor=#674274;fillColor=#E1D5E7;swimlaneFillColor=#FCF9FD;strokeColor=#9673A6;strokeWidth=2;" vertex="1" parent="workflow">
@@ -51,39 +51,39 @@
51
51
  <mxGeometry x="40" y="66" width="540" height="86" as="geometry"/>
52
52
  </mxCell>
53
53
  <mxCell id="edge-validate-critique" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2;exitX=0;exitY=0.5;entryX=1;entryY=0.5;" edge="1" parent="phase-quality" source="step-validate" target="step-critique">
54
- <mxGeometry relative="1" as="geometry"/>
54
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1240" y="109"/></Array></mxGeometry>
55
55
  </mxCell>
56
56
  <mxCell id="edge-critique-refine" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#674274;strokeWidth=2;exitX=0;exitY=0.5;entryX=1;entryY=0.5;" edge="1" parent="phase-quality" source="step-critique" target="step-refine">
57
- <mxGeometry relative="1" as="geometry"/>
57
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="620" y="109"/></Array></mxGeometry>
58
58
  </mxCell>
59
- <mxCell id="edge-refinement-loop" value="targeted edit · validate again · maximum 5 retries" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=60;html=1;endArrow=open;endFill=0;dashed=1;dashPattern=8 4;strokeColor=#9673A6;strokeWidth=2;fontSize=12;fontColor=#674274;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=1;entryX=0.5;entryY=1;" edge="1" parent="phase-quality" source="step-refine" target="step-validate">
60
- <mxGeometry relative="1" as="geometry"/>
59
+ <mxCell id="edge-refinement-loop" value="targeted edit · validate again · maximum 8 corrections" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=60;html=1;endArrow=open;endFill=0;dashed=1;dashPattern=8 4;strokeColor=#9673A6;strokeWidth=2;fontSize=12;fontColor=#674274;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=1;entryX=0.5;entryY=1;" edge="1" parent="phase-quality" source="step-refine" target="step-validate">
60
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="310" y="212"/><mxPoint x="1550" y="212"/></Array></mxGeometry>
61
61
  </mxCell>
62
62
 
63
63
  <mxCell id="phase-ship" value="CONFIRM &amp;amp; SHIP · STEPS 7–9 · LEFT TO RIGHT" style="swimlane;horizontal=1;startSize=46;rounded=1;arcSize=10;container=1;pointerEvents=0;html=1;fontSize=15;fontStyle=1;fontColor=#2D5E36;fillColor=#D5E8D4;swimlaneFillColor=#F8FCF7;strokeColor=#82B366;strokeWidth=2;" vertex="1" parent="workflow">
64
64
  <mxGeometry x="30" y="570" width="1860" height="190" as="geometry"/>
65
65
  </mxCell>
66
- <mxCell id="step-guardrail" value="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;07 · GUARDRAIL&lt;/font&gt;&lt;/b&gt;&lt;br&gt;Cap retries at five; retain the best validated state" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=18;spacingRight=16;spacingTop=10;spacingBottom=10;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#A5C99D;strokeWidth=1.5;" vertex="1" parent="phase-ship">
66
+ <mxCell id="step-guardrail" value="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;07 · GUARDRAIL&lt;/font&gt;&lt;/b&gt;&lt;br&gt;Cap corrections at eight; retain the best validated state" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=18;spacingRight=16;spacingTop=10;spacingBottom=10;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#A5C99D;strokeWidth=1.5;" vertex="1" parent="phase-ship">
67
67
  <mxGeometry x="40" y="66" width="540" height="86" as="geometry"/>
68
68
  </mxCell>
69
69
  <mxCell id="step-confirm" value="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;08 · HOLISTIC CONFIRM&lt;/font&gt;&lt;/b&gt;&lt;br&gt;Re-check the full render; no approval pause" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=18;spacingRight=16;spacingTop=10;spacingBottom=10;fontSize=14;fontColor=#263746;fillColor=#FFFFFF;strokeColor=#A5C99D;strokeWidth=1.5;" vertex="1" parent="phase-ship">
70
70
  <mxGeometry x="660" y="66" width="540" height="86" as="geometry"/>
71
71
  </mxCell>
72
- <mxCell id="step-export" value="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;09 · FINAL EXPORT&lt;/font&gt;&lt;/b&gt;&lt;br&gt;Embed editable XML in PNG / SVG / PDF / JPG" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=18;spacingRight=16;spacingTop=10;spacingBottom=10;fontSize=14;fontColor=#263746;fillColor=#EAF4E8;strokeColor=#82B366;strokeWidth=2;" vertex="1" parent="phase-ship">
72
+ <mxCell id="step-export" value="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;09 · FINAL EXPORT&lt;/font&gt;&lt;/b&gt;&lt;br&gt;Keep .drawio source; embed XML where supported" style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;spacingLeft=18;spacingRight=16;spacingTop=10;spacingBottom=10;fontSize=14;fontColor=#263746;fillColor=#EAF4E8;strokeColor=#82B366;strokeWidth=2;" vertex="1" parent="phase-ship">
73
73
  <mxGeometry x="1280" y="66" width="540" height="86" as="geometry"/>
74
74
  </mxCell>
75
75
  <mxCell id="edge-guardrail-confirm" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#2D5E36;strokeWidth=2;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="phase-ship" source="step-guardrail" target="step-confirm">
76
- <mxGeometry relative="1" as="geometry"/>
76
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="620" y="109"/></Array></mxGeometry>
77
77
  </mxCell>
78
78
  <mxCell id="edge-confirm-export" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#2D5E36;strokeWidth=2;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="phase-ship" source="step-confirm" target="step-export">
79
- <mxGeometry relative="1" as="geometry"/>
79
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1240" y="109"/></Array></mxGeometry>
80
80
  </mxCell>
81
81
 
82
82
  <mxCell id="edge-author-validate" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;strokeColor=#405E78;strokeWidth=2.5;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="workflow" source="step-author" target="step-validate">
83
- <mxGeometry relative="1" as="geometry"/>
83
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1580" y="302"/></Array></mxGeometry>
84
84
  </mxCell>
85
85
  <mxCell id="edge-refine-guardrail" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=50;html=1;endArrow=blockThin;endFill=1;strokeColor=#526C4E;strokeWidth=2.5;exitX=0;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="workflow" source="step-refine" target="step-guardrail">
86
- <mxGeometry relative="1" as="geometry"/>
86
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="20" y="409"/><mxPoint x="20" y="679"/></Array></mxGeometry>
87
87
  </mxCell>
88
88
 
89
89
  <mxCell id="architecture" value="2 ARCHITECTURE AND RESPONSIBILITIES" 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">
@@ -111,13 +111,13 @@
111
111
  <mxGeometry x="60" y="290" width="1740" height="44" as="geometry"/>
112
112
  </mxCell>
113
113
  <mxCell id="edge-request-agent" value="asks" 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="architecture" source="arch-request" target="arch-agent">
114
- <mxGeometry relative="1" as="geometry"/>
114
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="340" y="150"/></Array></mxGeometry>
115
115
  </mxCell>
116
116
  <mxCell id="edge-agent-extension" value="uses" 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="architecture" source="arch-agent" target="arch-extension">
117
- <mxGeometry relative="1" as="geometry"/>
117
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="720" y="150"/><mxPoint x="720" y="170"/></Array></mxGeometry>
118
118
  </mxCell>
119
119
  <mxCell id="edge-extension-output" value="creates" 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="architecture" source="arch-extension" target="arch-output">
120
- <mxGeometry relative="1" as="geometry"/>
120
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1560" y="170"/><mxPoint x="1560" y="150"/></Array></mxGeometry>
121
121
  </mxCell>
122
122
 
123
123
  <mxCell id="summary" value="3 WHY IT WORKS" 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">
@@ -126,7 +126,7 @@
126
126
  <mxCell id="cap-editable" value="&lt;b&gt;&lt;font color=&quot;#1F4E78&quot;&gt;EDITABLE FIRST&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;• Natural language → native .drawio&lt;br&gt;• Mermaid conversion or hand-authored XML&lt;br&gt;• 10k+ indexed official shapes" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=top;spacingTop=16;spacingLeft=18;spacingRight=16;fontSize=14;fontColor=#263746;fillColor=#F8FBFF;strokeColor=#9EB9D6;strokeWidth=2;" vertex="1" parent="summary">
127
127
  <mxGeometry x="40" y="75" width="540" height="145" as="geometry"/>
128
128
  </mxCell>
129
- <mxCell id="cap-quality" value="&lt;b&gt;&lt;font color=&quot;#674274&quot;&gt;QUALITY BUILT IN&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;• Validate every source revision&lt;br&gt;• Critique four visual + semantic dimensions&lt;br&gt;• Bound autonomous refinement to five retries" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=top;spacingTop=16;spacingLeft=18;spacingRight=16;fontSize=14;fontColor=#263746;fillColor=#FCF9FD;strokeColor=#B69BC2;strokeWidth=2;" vertex="1" parent="summary">
129
+ <mxCell id="cap-quality" value="&lt;b&gt;&lt;font color=&quot;#674274&quot;&gt;QUALITY BUILT IN&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;• Validate every source revision&lt;br&gt;• Critique four visual + semantic dimensions&lt;br&gt;• Bound autonomous refinement to eight corrections" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=top;spacingTop=16;spacingLeft=18;spacingRight=16;fontSize=14;fontColor=#263746;fillColor=#FCF9FD;strokeColor=#B69BC2;strokeWidth=2;" vertex="1" parent="summary">
130
130
  <mxGeometry x="660" y="75" width="540" height="145" as="geometry"/>
131
131
  </mxCell>
132
132
  <mxCell id="cap-local" value="&lt;b&gt;&lt;font color=&quot;#2D5E36&quot;&gt;LOCAL DELIVERY&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;• Render and export on your machine&lt;br&gt;• Embed editable XML when supported&lt;br&gt;• Open in draw.io for fine-tuning" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=top;spacingTop=16;spacingLeft=18;spacingRight=16;fontSize=14;fontColor=#263746;fillColor=#F8FCF7;strokeColor=#82B366;strokeWidth=2;" vertex="1" parent="summary">
@@ -47,44 +47,44 @@
47
47
  <mxGeometry x="40" y="360" width="1780" height="80" as="geometry"/>
48
48
  </mxCell>
49
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"/>
50
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="860" y="190"/><mxPoint x="310" y="190"/></Array></mxGeometry>
51
51
  </mxCell>
52
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"/>
53
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="930" y="190"/></Array></mxGeometry>
54
54
  </mxCell>
55
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"/>
56
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1000" y="190"/><mxPoint x="1550" y="190"/></Array></mxGeometry>
57
57
  </mxCell>
58
58
 
59
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
60
  <mxGeometry x="40" y="965" width="1920" height="340" as="geometry"/>
61
61
  </mxCell>
62
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"/>
63
+ <mxGeometry x="40" y="95" width="300" height="170" as="geometry"/>
64
64
  </mxCell>
65
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"/>
66
+ <mxGeometry x="410" y="95" width="300" height="170" as="geometry"/>
67
67
  </mxCell>
68
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"/>
69
+ <mxGeometry x="780" y="95" width="300" height="170" as="geometry"/>
70
70
  </mxCell>
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"/>
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 (≤8) → 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="300" height="170" as="geometry"/>
73
73
  </mxCell>
74
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"/>
75
+ <mxGeometry x="1520" y="95" width="300" height="170" as="geometry"/>
76
76
  </mxCell>
77
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"/>
78
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="375" y="180"/></Array></mxGeometry>
79
79
  </mxCell>
80
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"/>
81
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="745" y="180"/></Array></mxGeometry>
82
82
  </mxCell>
83
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"/>
84
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1115" y="180"/></Array></mxGeometry>
85
85
  </mxCell>
86
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"/>
87
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1485" y="180"/></Array></mxGeometry>
88
88
  </mxCell>
89
89
 
90
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">