dev-manager-tauri/.blueprint/modules/blueprint-onboarding.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.9 KiB
Raw Blame History

id name status progress
blueprint-onboarding 蓝图接入引导 planned 0

概述

为无蓝图或蓝图过期的项目提供接入引导:在项目列表展示蓝图状态徽章,并根据不同状态生成对应的 Claude 提示词,由用户复制后粘贴给 Claude 执行。应用负责探测和准备上下文Claude 负责理解和创作蓝图内容。

决策记录

  • 提示词生成由 Rust 完成(扫描目录结构、读取 git log、拼接模板前端只做展示
  • 提示词包含完整上下文(项目信息 + 目录结构 + 现有蓝图 + CONVENTIONS 摘要),确保 Claude 无需额外询问
  • 目录扫描限深度 3 层,避免输出过大

任务卡

📋 generate_blueprint_prompt command

  • status: todo
  • complexity: M
  • files: src-tauri/src/commands/blueprint.rs
  • depends: blueprint-governance
  • acceptance: 接收项目路径和提示词类型init / sync返回对应提示词字符串init 类型扫描目录结构 + 读取 README/package.json/Cargo.tomlsync 类型额外读取现有蓝图文件 + 近 20 条 git log

📋 项目列表蓝图状态徽章

  • status: todo
  • complexity: M
  • files: src/components/dashboard/ProjectCard.tsx
  • depends: get_blueprint_status command
  • acceptance: 项目卡片显示蓝图状态徽章(🔘无蓝图 / 🟡规则待更新 / 🟠内容待同步 / 🟢已同步);🟡状态点击直接执行同步(无需 Claude其余状态点击打开操作弹窗

📋 蓝图操作弹窗

  • status: todo
  • complexity: M
  • files: src/components/dashboard/BlueprintPromptModal.tsx
  • depends: generate_blueprint_prompt command
  • acceptance: 弹窗展示生成的提示词monospace、可选中、一键复制按钮、说明文案"复制后粘贴给 Claude Opus 执行"🔘状态显示「初始化蓝图」提示词,🟠状态显示「同步描绘」提示词