{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "3D Printing｜可制造几何与最终文件复核",
    "locale": "zh-CN",
    "quality_profile": "showcase",
    "legend": {
      "mode": "hidden"
    },
    "views": [
      {
        "id": "main-flow",
        "label": "内部主流程",
        "focus": [
          "request",
          "route",
          "step1",
          "step2",
          "step3",
          "step4",
          "output"
        ],
        "note": "从任务触发、路由选择到实际处理与交付。"
      },
      {
        "id": "tools-gates",
        "label": "工具与闸门",
        "focus": [
          "step1",
          "step3",
          "tool1",
          "tool2"
        ],
        "note": "查看真实脚本、外部服务以及质量或安全边界。"
      }
    ]
  },
  "lanes": [
    {
      "id": "task",
      "label": "make-3d · 任务与交付"
    },
    {
      "id": "skill",
      "label": "3d-printing · 内部流程"
    },
    {
      "id": "runtime",
      "label": "实际工具、脚本与质量/安全闸门"
    }
  ],
  "phases": [
    {
      "id": "intake",
      "label": "触发与路由",
      "fromCol": 0,
      "toCol": 1
    },
    {
      "id": "execution",
      "label": "内部执行",
      "fromCol": 2,
      "toCol": 4,
      "variant": "emphasis"
    },
    {
      "id": "delivery",
      "label": "验证与交付",
      "fromCol": 5,
      "toCol": 5
    }
  ],
  "mainPath": [
    "request",
    "route",
    "step1",
    "step2",
    "step3",
    "step4",
    "output"
  ],
  "nodes": [
    {
      "id": "request",
      "lane": "task",
      "col": 0,
      "type": "external",
      "label": "3D 打印建模",
      "sublabel": "尺寸、功能、配合与打印方式",
      "width": 155
    },
    {
      "id": "route",
      "lane": "task",
      "col": 1,
      "type": "security",
      "label": "明确需求并读边界",
      "sublabel": "单机 / print-in-place / 分件装配",
      "width": 170
    },
    {
      "id": "output",
      "lane": "task",
      "col": 5,
      "type": "frontend",
      "label": "三项最终交付",
      "sublabel": "彩色 GLB + 完整 3MF + HTML viewer",
      "width": 175
    },
    {
      "id": "step1",
      "lane": "skill",
      "col": 2,
      "type": "backend",
      "label": "预检运行时与单位",
      "sublabel": "3dpy · CadQuery/Blender · mm↔m",
      "width": 175
    },
    {
      "id": "step2",
      "lane": "skill",
      "col": 3,
      "type": "backend",
      "label": "建模并导出",
      "sublabel": "STL/3MF + 彩色装配 GLB",
      "width": 175
    },
    {
      "id": "step3",
      "lane": "skill",
      "col": 4,
      "type": "backend",
      "label": "验证与修复",
      "sublabel": "全运动/装配干涉 · 尺寸 · 格式",
      "width": 175
    },
    {
      "id": "step4",
      "lane": "skill",
      "col": 5,
      "type": "backend",
      "label": "构建预览并最终复核",
      "sublabel": "Three.js viewer · 重读交付清单",
      "width": 175
    },
    {
      "id": "tool1",
      "lane": "runtime",
      "col": 2,
      "type": "messagebus",
      "label": "/root/.kimi-code/bin/3dpy",
      "sublabel": "Blender / CadQuery / trimesh / lib3mf",
      "width": 180
    },
    {
      "id": "tool2",
      "lane": "runtime",
      "col": 4,
      "type": "security",
      "label": "几何与格式检查",
      "sublabel": "最终导出文件，不凭早期通过",
      "width": 180
    }
  ],
  "edges": [
    {
      "id": "requestRoute",
      "from": "request",
      "to": "route"
    },
    {
      "id": "routeStep1",
      "from": "route",
      "to": "step1",
      "variant": "emphasis"
    },
    {
      "id": "step1Step2",
      "from": "step1",
      "to": "step2",
      "variant": "emphasis"
    },
    {
      "id": "step2Step3",
      "from": "step2",
      "to": "step3",
      "variant": "emphasis"
    },
    {
      "id": "step3Step4",
      "from": "step3",
      "to": "step4",
      "variant": "emphasis"
    },
    {
      "id": "step4Output",
      "from": "step4",
      "to": "output",
      "variant": "emphasis"
    },
    {
      "id": "tool1Step1",
      "from": "tool1",
      "to": "step1",
      "variant": "dashed",
      "role": "branch"
    },
    {
      "id": "tool2Step3",
      "from": "tool2",
      "to": "step3",
      "variant": "dashed",
      "role": "branch"
    }
  ],
  "cards": [
    {
      "dot": "cyan",
      "title": "实际命令 / 调用关系",
      "items": [
        "3dpy -c import... → 建模/测量/导出脚本",
        "init-content.sh --three → npm run build → npm run preview"
      ]
    },
    {
      "dot": "amber",
      "title": "内部约束 / 异常边界",
      "items": [
        "不运行 slicer、不生成 G-code；可打印性仅为几何推断",
        "装配动画不能替代全插入路径的干涉与间隙验证"
      ]
    },
    {
      "dot": "slate",
      "title": "SKILL.md 来源定位",
      "items": [
        "3d-printing/SKILL.md:18-64 需求、工具、模型与验证",
        ":66-88 预览与最终复核；:120-134 边界"
      ]
    }
  ]
}
