Commit Graph

3 Commits

Author SHA1 Message Date
lanrtop
56536effff feat: P2 CONVENTIONS 动态化——梦核建议可直接写入并分发
- 新增用户版 CONVENTIONS 存储层(app_data_dir/conventions/CONVENTIONS.md)
  - OnceLock 初始化目录,effective_conventions_content() 用户版优先 fallback 内置
  - invalidate_effective_cache() 写入/重置后清除缓存

- 新增三个 Tauri command
  - get_user_conventions_status:返回来源(builtin/user)、版本、内容
  - save_user_conventions:解析 frontmatter version,写入用户版,自动同步所有项目
  - reset_conventions_to_builtin:删除用户版,自动同步回内置版

- sync_blueprint_rules / build_init_prompt / build_sync_prompt / generate_muhe_prompt
  全部切换为 effective_conventions_content(),规则更新无需发版

- GovernancePanel 新增规则编辑器 UI
  - 来源 badge(内置基线 / 用户自定义)
  - 「应用梦核建议」区域:粘贴新内容 + 确认写入 + 同步进度提示
  - 「重置为基线」按钮(仅用户版存在时显示)
2026-04-08 03:27:04 +09:00
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
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