- 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.
36 lines
1.1 KiB
Markdown
36 lines
1.1 KiB
Markdown
---
|
||
id: blueprint-reader
|
||
name: 蓝图文件读取
|
||
status: done
|
||
progress: 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 作为任务卡可选字段,支持执行模型上报阻塞信息
|