- 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.
2.2 KiB
2.2 KiB
| id | name | status | progress |
|---|---|---|---|
| blueprint-governance | 蓝图治理 | planned | 0 |
概述
将 dev-manager-tauri 的 .blueprint/CONVENTIONS.md 和 CLAUDE.md 蓝图区块作为唯一权威来源,向所有托管项目分发和同步规则,确保跨项目规则一致性。
决策记录
- CONVENTIONS.md 加 YAML frontmatter 版本号,应用以此判断是否需要同步
- CLAUDE.md 用
<!-- BLUEPRINT_MANAGED_START -->/<!-- BLUEPRINT_MANAGED_END -->标记管理区,应用只替换标记内内容,不动项目自有内容 - 无 CLAUDE.md 时生成初始文件;有 CLAUDE.md 但无 MANAGED 区时追加到末尾
任务卡
📋 CONVENTIONS.md 版本化
- status: todo
- complexity: S
- files: .blueprint/CONVENTIONS.md
- acceptance: frontmatter 加 version 和 updated 字段,格式为 semver(如 1.0.0)
📋 get_blueprint_status command
- status: todo
- complexity: M
- files: src-tauri/src/commands/blueprint.rs
- acceptance: 接收项目路径,返回四种状态之一:none / rules_outdated / content_stale / synced;判断依据:.blueprint/ 是否存在、CONVENTIONS.md 版本是否匹配 master、CLAUDE.md 是否有 MANAGED 区且版本匹配
📋 sync_blueprint_rules command
- status: todo
- complexity: M
- files: src-tauri/src/commands/blueprint.rs
- acceptance: 接收项目路径,执行三步:(1) 覆盖写入最新 CONVENTIONS.md;(2) 检测 CLAUDE.md 是否存在及 MANAGED 区状态,按三种情况(无文件/无区块/版本旧)分别处理;(3) 返回操作摘要
📋 CLAUDE.md 模板定义
- status: todo
- complexity: S
- files: src-tauri/src/commands/blueprint.rs
- acceptance: 在 Rust 中定义 CLAUDE.md MANAGED 区的标准内容模板,内容涵盖:蓝图飞轮流程、读取 manifest 指令、任务卡派发规则;模板版本与 CONVENTIONS.md 同步
📋 批量同步所有项目规则
- status: todo
- complexity: S
- files: src-tauri/src/commands/blueprint.rs, src/components/settings/SettingsPage.tsx
- depends: sync_blueprint_rules command
- acceptance: 设置页提供「同步所有项目蓝图规则」按钮,调用 sync_blueprint_rules 遍历所有已注册项目,返回每个项目的同步结果摘要