Skip to content

开发:编排编辑器状态双向映射层 #16

Description

@JiGuangWorker

背景

YAML codec 只解决文件和结构体之间的转换,编辑器还需要一层专门的状态模型来承载画布节点、边、属性面板等交互状态。

目标

实现编辑器状态双向映射层:

  • schema -> editor state
  • editor state -> schema

范围

  • 定义 editor state 最小结构
  • 节点/边/roles/runtime/artifacts 的映射规则
  • UI 元数据(坐标等)映射规则
  • 单测覆盖双向转换

验收标准

  • 同一份 schema 能稳定映射到 editor state
  • editor state 修改后可重新组装回 schema
  • 非 UI 字段与 UI 元数据边界清晰

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions