Files
nanocode/skills/hand-drawn-diagram/tests/fixtures/03_semantic_shapes.json
T
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

31 lines
1.1 KiB
JSON

{
"name": "semantic_shapes",
"description": "语义节点映射:double/cylinder/hexagon/cloud",
"type": "quick_architecture",
"params": {
"title": "语义节点测试",
"layers": [
{"name": "AI层", "items": [
{"label": "GPT-4", "color": "backend", "shape": "double"},
{"label": "Agent编排", "color": "backend", "shape": "hexagon"}
], "color": "backend"},
{"name": "数据层", "items": [
{"label": "PostgreSQL", "color": "database", "shape": "cylinder"},
{"label": "AWS S3", "color": "cloud", "shape": "cloud"}
], "color": "database"}
],
"output": "__TMP__/03_semantic_shapes.svg",
"style": "flat",
"format": "svg"
},
"assertions": [
{"check": "not_empty"},
{"check": "contains", "text": "GPT-4"},
{"check": "contains", "text": "Agent编排"},
{"check": "contains", "text": "PostgreSQL"},
{"check": "contains", "text": "AWS S3"},
{"check": "contains_tag", "tag": "<ellipse", "min_count": 1},
{"check": "contains_tag", "tag": "<polygon", "min_count": 1}
]
}