和顺 / 知白 返回所属 Agent
ZB-06.02

旅程梳理

原能力

按进入、使用、求助和结束等实际阶段梳理体验,标记障碍出现在何处。(细化版 p.2–3)

首选项目

Mermaid(MIT)。 Mermaid

匹配范围

流程图区分进入、使用、求助和结束的阶段。

源码

Mermaid · addVertex(

packages/mermaid/src/diagrams/flowchart/flowDb.ts · 188–201 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
  public addVertex(
    id: string,
    textObj: FlowText,
    type: FlowVertexTypeParam,
    style: string[],
    classes: string[],
    dir: string,
    props = {},
    metadata: any
  ) {
    if (!id || id.trim().length === 0) {
      return;
    }
    // Extract the metadata from the shapeData, the syntax for adding metadata for nodes and edges is the same

实现与验收要点

从原访谈提取断点、角色及条件,保留原始证据。