dev-manager-tauri/.blueprint/modules/blueprint-governance.md
lanrtop c598c9b05b feat: add BlueprintPromptModal for blueprint management and sync functionality
- Implemented BlueprintPromptModal component to handle blueprint prompt generation and rule synchronization.
- Added BlueprintStatusBadge to display the current status of blueprints in ProjectCard.
- Integrated blueprint status fetching and synchronization in ProjectCard.
- Enhanced SettingsPage with a new section for MCP service configuration and batch sync for blueprint rules.
- Updated commands to include new blueprint-related functionalities and types.
- Changed application name from "Dev Manager" to "炼境" in various components.
2026-04-04 10:47:27 +09:00

2.3 KiB
Raw Blame History

id name status progress
blueprint-governance 蓝图治理 done 100

概述

将 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 区时追加到末尾
  • MASTER_CONVENTIONS 通过 include_str!() 在编译时嵌入,保证 binary 自包含
  • BlueprintStatus 四状态none / rules_outdated / content_stale / synced

任务卡

CONVENTIONS.md 版本化

  • status: done
  • complexity: S
  • files: .blueprint/CONVENTIONS.md
  • acceptance: frontmatter 加 version 和 updated 字段,格式为 semver如 1.0.0

CLAUDE.md 模板定义

  • status: done
  • complexity: S
  • files: src-tauri/src/commands/blueprint.rs
  • acceptance: 在 Rust 中定义 CLAUDE.md MANAGED 区的标准内容模板,内容涵盖:蓝图飞轮流程、读取 manifest 指令、任务卡派发规则;模板版本与 CONVENTIONS.md 同步

get_blueprint_status command

  • status: done
  • complexity: M
  • files: src-tauri/src/commands/blueprint.rs, src-tauri/src/lib.rs, src/lib/commands.ts
  • acceptance: 接收项目路径返回四种状态之一none / rules_outdated / content_stale / synced判断依据.blueprint/ 是否存在、CONVENTIONS.md 版本是否匹配 master、CLAUDE.md 是否有 MANAGED 区且版本匹配

sync_blueprint_rules command

  • status: done
  • complexity: M
  • files: src-tauri/src/commands/blueprint.rs, src-tauri/src/lib.rs, src/lib/commands.ts
  • acceptance: 接收项目路径,执行三步:(1) 覆盖写入最新 CONVENTIONS.md(2) 检测 CLAUDE.md 是否存在及 MANAGED 区状态,按三种情况(无文件/无区块/版本旧)分别处理;(3) 返回操作摘要

批量同步所有项目规则

  • status: done
  • complexity: S
  • files: src/components/settings/SettingsPage.tsx
  • acceptance: 设置页提供「同步所有项目蓝图规则」按钮,调用 sync_blueprint_rules 遍历所有已注册项目,返回每个项目的同步结果摘要