dev-manager-tauri/.blueprint/modules/blueprint-reader.md
lanrtop a2596413c5 feat: add copy functionality for nodes and containers in GroupResourceCanvas
- Implemented CopyBtn component to allow copying of nodes with a new unique ID and adjusted position.
- Added copy functionality to ProjectNode, GitNode, EnvNode, ServerNode, FocusNode, CustomNode, and ContainerNode.
- Enhanced ContainerNode to copy itself along with its children nodes.
- Introduced a new LabeledEdge component for editable edges with drag-and-drop support for path adjustment and text labels.
- Added right-click context menu for edges to delete connections.
- Updated data structures to support new properties for tasks in BlueprintTask and BlueprintStats.
2026-04-03 08:42:17 +09:00

1.1 KiB
Raw Blame History

id name status progress
blueprint-reader 蓝图文件读取 done 100

概述

Rust 后端 tauri command读取项目目录下的 .blueprint/ 文件并解析为结构化数据返回给前端。

任务卡

读取 manifest.yaml

  • status: done
  • complexity: M
  • files: src-tauri/src/commands/blueprint.rs
  • acceptance: 读取并解析 manifest.yaml返回 areas、modules、edges 结构体

读取 modules/*.md

  • status: done
  • complexity: M
  • files: src-tauri/src/commands/blueprint.rs
  • acceptance: 解析 markdown frontmatter 和内容提取任务卡列表标题、status、complexity、files、acceptance

合并返回完整蓝图数据

  • status: done
  • complexity: S
  • files: src-tauri/src/commands/blueprint.rs
  • acceptance: 一次调用返回完整蓝图manifest + 所有模块详情 + 任务卡),前端无需多次请求

决策记录

  • 使用 serde_yaml 解析 manifest.yaml自定义 parse_module_md 解析 markdown 而非引入额外依赖
  • 模块 progress 由任务卡完成比例自动计算,无需手动维护
  • blocked_reason 作为任务卡可选字段,支持执行模型上报阻塞信息