version: 1
name: 炼境
description: >
  Git 多空间开发管理器。以蓝图为神经系统，以 Claude 为智能层，
  持续感知所管理项目的功能运转、质量状态与成长方向，
  成为每个项目的贴身导师。炼境本身亦被纳入其中，
  形成可自我进化的开发智能闭环。
iteration: 1
updated: 2026-07-03




areas:
  - id: frontend
    name: 前端
    color: "#3B82F6"
  - id: backend
    name: 后端
    color: "#10B981"
  - id: infra
    name: 基础设施
    color: "#F59E0B"

modules:
  # ── 前端 ────────────────────────────────────────
  - id: workspace-mgmt
    name: 空间管理
    area: frontend
    status: done
    progress: 100
    position: [0, 0]

  - id: project-mgmt
    name: 项目管理
    area: frontend
    status: done
    progress: 100
    position: [250, 0]

  - id: project-dashboard
    name: 项目看板
    area: frontend
    status: done
    progress: 100
    position: [500, 0]

  - id: repo-registry
    name: Git 仓库注册
    area: frontend
    status: done
    progress: 100
    position: [250, 150]

  - id: project-tools
    name: 项目工具链
    area: frontend
    status: done
    progress: 100
    position: [500, 150]

  - id: project-templates
    name: 项目模板
    area: frontend
    status: done
    progress: 100
    position: [0, 150]

  - id: tags-groups
    name: 标签 & 分组
    area: frontend
    status: done
    progress: 100
    position: [750, 0]

  - id: settings-page
    name: 设置页
    area: frontend
    status: done
    progress: 100
    position: [750, 150]

  - id: blueprint-view
    name: 蓝图可视化
    area: frontend
    status: done
    progress: 100

    position: [1000, 0]

  - id: blueprint-onboarding
    name: 蓝图接入引导
    area: frontend
    status: done
    progress: 100
    position: [1250, 0]

  # ── 后端 ────────────────────────────────────────
  - id: git-ops
    name: Git 操作
    area: backend
    status: done
    progress: 100
    position: [0, 350]

  - id: github-auth
    name: GitHub OAuth
    area: backend
    status: abandoned
    progress: 100
    position: [250, 350]

  - id: github-publish
    name: GitHub 发布
    area: backend
    status: abandoned
    progress: 100
    position: [500, 350]

  - id: devtools-scan
    name: 开发工具扫描
    area: backend
    status: done
    progress: 100
    position: [750, 350]

  - id: project-env-scan
    name: 项目环境扫描
    area: backend
    status: done
    progress: 100
    position: [750, 500]

  - id: shell-launch
    name: 编辑器 & 终端启动
    area: backend
    status: done
    progress: 100
    position: [500, 500]

  - id: blueprint-reader
    name: 蓝图文件读取
    area: backend
    status: done
    progress: 100
    position: [1000, 350]

  - id: blueprint-governance
    name: 蓝图治理
    area: backend
    status: done
    progress: 100
    position: [1250, 350]

  - id: blueprint-flywheel
    name: 飞轮数据层
    area: backend
    status: done
    progress: 100
    position: [1000, 500]

  - id: blueprint-feedback
    name: 梦核 · 记忆巩固
    area: backend
    status: done
    progress: 100
    position: [1250, 500]

  # ── 基础设施 ────────────────────────────────────
  - id: cicd-workflow
    name: CI/CD 工作流
    area: infra
    status: done
    progress: 100
    position: [0, 650]

  - id: auto-update
    name: 客户端自动更新
    area: infra
    status: done
    progress: 100
    position: [250, 650]

  - id: wsl-proxy
    name: WSL 代理同步
    area: backend
    status: done
    progress: 100
    position: [500, 650]

  - id: v2rayn-import
    name: v2rayN 节点读取
    area: backend
    status: done
    progress: 100
    position: [500, 800]

  - id: sqlite-db
    name: SQLite 数据层
    area: infra
    status: done
    progress: 100
    position: [750, 650]

  - id: tray-service
    name: 系统托盘常驻
    area: infra
    status: done
    progress: 100
    position: [1000, 650]

  - id: mcp-server
    name: 内嵌 MCP Server
    area: backend
    status: done
    progress: 100
    position: [1500, 350]

  - id: mcp-config-inject
    name: MCP 配置注入
    area: backend
    status: done
    progress: 100
    position: [1500, 500]

  - id: product-group-mcp
    name: 产品组 MCP 设置
    area: frontend
    status: done
    progress: 100
    position: [1500, 0]

  - id: runtime-diagnostics
    name: 运行时可观测性
    area: infra
    status: done
    progress: 100
    position: [1750, 350]

  - id: health-center
    name: 健康中心
    area: frontend
    status: done
    progress: 100
    position: [1750, 0]

  - id: project-mentor
    name: 项目导师
    area: frontend
    status: done
    progress: 100
    position: [2000, 0]

  - id: blueprint-buff
    name: 蓝图 Buff
    area: backend
    status: done
    progress: 100
    position: [2250, 0]

  - id: claude-autonomy-config
    name: Claude 自主性配置
    area: backend
    status: done
    progress: 100
    position: [2500, 0]

  - id: user-project-todos
    name: 项目个人备忘
    area: frontend
    status: done
    progress: 100
    position: [2000, 150]

  - id: server-registry
    name: 服务器注册表
    area: frontend
    status: done
    progress: 100
    position: [2000, 300]

  - id: ssh-config-sync
    name: SSH Config 自动同步
    area: backend
    status: done
    progress: 100
    position: [2250, 300]

  - id: vscode-remote
    name: VS Code Remote SSH
    area: frontend
    status: done
    progress: 100
    position: [2500, 300]

  - id: server-software
    name: 服务器软件管理
    area: frontend
    status: done
    progress: 100
    position: [2250, 450]

  - id: flywheel-intelligence
    name: 飞轮智能成长
    area: backend
    status: in_progress
    progress: 92
    note: "L0+F1+F2+R1+R2 完成（2026-07-02，rule_effectiveness 死链已接通）；阶段三待数据覆盖 ≥10 项目"
    position: [1750, 650]

  - id: cloud-products
    name: 云产品管理
    area: frontend
    status: done
    progress: 100
    position: [2750, 0]

  - id: api-keys
    name: API密钥管理
    area: frontend
    status: done
    progress: 100
    position: [3000, 0]

  - id: deploy-info
    name: 项目部署信息
    area: frontend
    status: done
    progress: 100
    position: [3000, 150]

  - id: host-apps
    name: 宿主机应用管理
    area: frontend
    status: done
    progress: 100
    position: [2750, 600]

  - id: service-config
    name: 服务配置管理
    area: frontend
    status: done
    progress: 100
    position: [3000, 450]

  - id: source-library
    name: 源码库
    area: frontend
    status: done
    progress: 100
    position: [3250, 0]

  - id: cloud-docker-apps
    name: 云产品Docker应用
    area: frontend
    status: done
    progress: 100
    position: [3000, -150]

  - id: cloud-db-instances
    name: 云数据库实例
    area: frontend
    status: done
    progress: 100
    position: [3250, -150]

  # ── 统一 Gitea 接入包（2026-06-19 战略转向）──────
  - id: onboarding-pack
    name: 接入包
    area: backend
    status: in_progress
    progress: 95
    note: "体系分发主线（2026-07-03）：T1 模板版本化 ✅ + B1 CONVENTIONS 1.10.0(R12/R13) ✅ + B2 AGENTS 模板 agent 按钮章节 ✅；剩 B3 提示词升级、B4 健康诊断遵守度"
    position: [3500, 0]

  - id: gitea-integration
    name: Gitea 集成
    area: backend
    status: in_progress
    progress: 85
    note: "G1-G6+R0 完成（2026-07-02）：全链路含发版实测通过（v0.1.16 已上 OSS）；余：PR/CI 事件联动、DeepSeek review、存量迁移（concept）"
    position: [3500, 150]
    updated: 2026-07-02

  - id: agent-infrastructure
    name: Agent 友好基础设施生成
    area: backend
    status: done
    progress: 100
    updated: 2026-07-01
    position: [3750, 0]

  - id: github-decommission
    name: GitHub 退役清理
    area: backend
    status: done
    progress: 100
    updated: 2026-07-02
    position: [3750, 150]

  - id: ui-restructure
    name: 功能区 UI 重构
    area: frontend
    status: done
    progress: 100
    note: "N1-N5 全部完成（2026-07-02）：六组导航 + 卡片分层 + 洞察页 + Gitea/仓库归位"
    position: [3750, 300]

edges:
  # 前端依赖
  - from: workspace-mgmt
    to: project-mgmt
    type: dependency
  - from: project-mgmt
    to: project-dashboard
    type: dependency
  - from: repo-registry
    to: project-dashboard
    type: related
  - from: project-mgmt
    to: tags-groups
    type: related
  - from: project-mgmt
    to: blueprint-view
    type: dependency

  # 后端依赖
  - from: github-auth
    to: github-publish
    type: dependency
  - from: git-ops
    to: github-publish
    type: dependency

  # 前后端关联
  - from: git-ops
    to: project-dashboard
    type: related
  - from: github-auth
    to: project-dashboard
    type: related
  - from: devtools-scan
    to: project-tools
    type: related
  - from: project-env-scan
    to: project-tools
    type: related
  - from: blueprint-reader
    to: blueprint-view
    type: dependency
  - from: blueprint-governance
    to: blueprint-onboarding
    type: dependency
  - from: blueprint-reader
    to: blueprint-governance
    type: related
  - from: blueprint-onboarding
    to: blueprint-view
    type: dependency
  # 外环：飞轮数据层 → 梦核 → 治理分发
  - from: blueprint-reader
    to: blueprint-flywheel
    type: dependency
  - from: blueprint-flywheel
    to: blueprint-feedback
    type: dependency
  - from: blueprint-feedback
    to: blueprint-governance
    type: dependency
  - from: blueprint-view
    to: blueprint-flywheel
    type: related

  # 基础设施关联
  - from: cicd-workflow
    to: auto-update
    type: dependency
  - from: v2rayn-import
    to: wsl-proxy
    type: dependency
  - from: sqlite-db
    to: project-mgmt
    type: dependency
  - from: auto-update
    to: settings-page
    type: related

  # 产品组 MCP 飞轮
  - from: tray-service
    to: mcp-server
    type: dependency
  - from: mcp-server
    to: mcp-config-inject
    type: dependency
  - from: mcp-config-inject
    to: product-group-mcp
    type: dependency
  - from: product-group-mcp
    to: settings-page
    type: related

  # 运行时可观测性
  - from: mcp-server
    to: runtime-diagnostics
    type: dependency
  - from: mcp-config-inject
    to: runtime-diagnostics
    type: dependency
  - from: sqlite-db
    to: runtime-diagnostics
    type: dependency

  # 健康中心
  - from: runtime-diagnostics
    to: health-center
    type: dependency
  - from: sqlite-db
    to: health-center
    type: dependency

  # 项目导师（洞察与引导层，自指闭环）
  - from: health-center
    to: project-mentor
    type: dependency

  # 蓝图 Buff
  - from: blueprint-governance
    to: blueprint-buff
    type: dependency
  - from: git-ops
    to: blueprint-buff
    type: dependency
  - from: blueprint-buff
    to: blueprint-view
    type: related
  - from: blueprint-flywheel
    to: project-mentor
    type: dependency
  - from: blueprint-feedback
    to: project-mentor
    type: dependency
  - from: mcp-server
    to: project-mentor
    type: dependency

  # 服务器注册表
  - from: project-dashboard
    to: server-registry
    type: dependency
  - from: sqlite-db
    to: server-registry
    type: dependency

  # SSH Config 自动同步
  - from: server-registry
    to: ssh-config-sync
    type: dependency

  # VS Code Remote SSH
  - from: ssh-config-sync
    to: vscode-remote
    type: dependency
  - from: shell-launch
    to: vscode-remote
    type: related

  # 服务器软件管理
  - from: server-registry
    to: server-software
    type: dependency
  - from: ssh-config-sync
    to: server-software
    type: related

  # 飞轮智能成长
  - from: blueprint-feedback
    to: flywheel-intelligence
    type: dependency
  - from: blueprint-flywheel
    to: flywheel-intelligence
    type: dependency

  # API密钥管理
  - from: sqlite-db
    to: api-keys
    type: dependency

  # 项目部署信息
  - from: project-dashboard
    to: deploy-info
    type: dependency
  - from: sqlite-db
    to: deploy-info
    type: dependency

  # 宿主机应用管理
  - from: server-registry
    to: host-apps
    type: dependency

  # 服务配置管理
  - from: server-registry
    to: service-config
    type: dependency

  # 源码库
  - from: sqlite-db
    to: source-library
    type: dependency

  # 云产品扩展
  - from: cloud-products
    to: cloud-docker-apps
    type: dependency
  - from: cloud-products
    to: cloud-db-instances
    type: dependency

  # 接入包（统一 Gitea 双层架构）
  - from: blueprint-buff
    to: onboarding-pack
    type: dependency
  - from: mcp-config-inject
    to: onboarding-pack
    type: dependency
  - from: blueprint-onboarding
    to: onboarding-pack
    type: dependency
  - from: onboarding-pack
    to: gitea-integration
    type: dependency
  - from: onboarding-pack
    to: agent-infrastructure
    type: dependency
  - from: devtools-scan
    to: agent-infrastructure
    type: dependency
  - from: project-env-scan
    to: agent-infrastructure
    type: dependency
  - from: gitea-integration
    to: flywheel-intelligence
    type: related
  - from: gitea-integration
    to: github-decommission
    type: related
