Typed connector 表达语义,使主题可以改变外观而不改变图表模型。
| 类型 | 含义 |
|---|---|
primary |
主要请求或流程 |
data |
数据或次要异步流 |
optional |
可选、鉴权或弱关系 |
dependency |
基础设施或 UML 依赖 |
bidirectional |
相互关系 |
control |
Agent 或系统控制信号 |
memory_read |
从记忆或存储读取 |
memory_write |
写入记忆或存储 |
async |
非阻塞工作 |
feedback |
迭代返回或推理回路 |
edges:
- from: agent
to: tool
type: control
label: invoke
- from: tool
to: agent
type: feedback
label: result
默认流程箭头为 open head,并使用 endSize=12。填充 block/classic 箭头和 UML/ER marker 仍是显式语义选择。
node skills/drawio/scripts/cli.js input.yaml output.drawio --validate --strict
出版图、密集连接和可复用参考图应使用严格校验。交付前应解决 node crossing、可避免弯折、floating edge、arrow-shape 替代物、label collision、重复 waypoint 和文本裁切。