Build Mermaid diagram
buildAuthor a new Mermaid diagram from blank by folding a list of structured ops
over an empty diagram of family. The declarative counterpart to hand-writing
source. Returns the same envelope as mutate:
{ ok, family, source, verify } or { ok:false, family, opIndex, error }.
Call describe_sdk for the family before authoring unfamiliar ops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Non-empty ordered list of ops; each is { kind, ...fields }. | |
| family | Yes | Diagram family to author (one of: flowchart, state, sequence, timeline, class, er, journey, architecture, xychart, pie, quadrant, gantt, mindmap, gitgraph, radar). |