lanrtop
bf697b5e28
feat(ui): 功能区重构阶段二——洞察页 + 全局/项目层级归位(N3/N4/N5)
...
N3 洞察页三 tab(飞轮/健康中心/全局治理):
- FlywheelPanel(版本队列/阻塞/停转归档/Git质量/梦核)整体迁出 BlueprintModal
——跨项目内容不再寄生单项目弹窗,BlueprintModal 减重 414 行
- CONVENTIONS 规则来源 + 应用梦核建议迁至全局治理 tab(影响所有项目的操作归全局层)
- BlueprintModal 侧板只留单项目内容(模块详情/余票/可派发/项目治理)
N4 Gitea 层级归位:实例管理(全局配置)拆为 GiteaInstancesSection 挂设置页;
项目绑定+webhook 留治理面板,无实例时提示去设置页添加;共用 queryKey 缓存
N5 仓库注册表并入 项目→管理→仓库 tab(RegistryTab 复用),Sidebar 底部入口
与弹窗死壳移除;总览页更名对齐"跨项目行动项"定位
至此 ui-restructure N1-N5 全部完成:三条公理(名实一致/层级对齐/频率分层)落地。
零后端变更,typecheck 全绿。
2026-07-02 14:51:43 +09:00
lanrtop
d14b348845
feat(gitea): G2-G5 全链路——建仓/迁移/绑定 + webhook 收发 + 治理面板
...
G2 控制面:gitea_create_repo / gitea_migrate_repo / gitea_link_repo,
upsert 绑定(换绑自动重置 webhook 字段),API 错误提取 Gitea message 可读返回
G3 观测面:MCP Server 新增 POST /webhook/gitea/:project_id——HMAC-SHA256 验签
(X-Gitea-Signature,兼容 X-Hub-Signature-256)→ 解析 commits → 批量
record_commit(sha 幂等,与本地 watcher 双路径不重复计数);验签失败记 log_event
G4 webhook 注册:gitea_setup_webhook 生成随机 secret 注册 push hook(重设先删旧)、
gitea_unlink_repo 解绑顺带清理 Gitea 侧 hook
G5 治理面板:GiteaPanel——实例管理(添加/测试/删除)、当前项目三种绑定方式、
webhook 注册与可复制回调地址、全部绑定概览
依赖:新增 hmac + sha2;project_id 与 commit_metrics 同源(Project.id),
避免双路径冲突复发;R10 修正设计文档错误签名头
验证:cargo test 58 passed(新增 upsert 换绑重置 + hmac 正反向 + payload 解析 5 测试)、
typecheck 全绿
2026-07-02 14:22:49 +09:00
lanrtop
29a066e7e3
chore(conventions): v1.9.0 自洽体检——规则边界结构 + R11 + 状态词汇统一
...
- CONVENTIONS 1.9.0:规则新增 boundaries/failure_cases 可选字段(失败定边界,
经验细化为变体而非推翻);新增 R11 自动执行规则失效时必须记录失败案例;
模块状态表补 abandoned 定义(何时更新蓝图章节早已引用但表中缺失)
- 状态词汇统一:github-auth/github-publish 的 deprecated(未定义状态)→ abandoned,
BlueprintModal 状态色表补 abandoned 渲染
- 文档防腐:CLAUDE.md 技术栈改为 Gitea(GitHub 已退役);cicd-workflow 模块
加改造中指针(单一事实来源指向 gitea-integration 的 Gitea Actions 卡)
- 蓝图:R2 卡完成解锁(分发随下次发版生效)
2026-07-02 14:09:09 +09:00
lanrtop
d41e0f1707
fix(flywheel): 修复 commit_metrics project_id 双路径冲突,表格能显示所有项目
...
blueprint_buffs 用 UUID 写 commit_metrics,全量导入用名称字符串写,
同一 sha 在 sha PRIMARY KEY 约束下只能存一条,导致全量导入被 INSERT OR IGNORE 全部跳过,
表格无法查到 UUID 格式的历史数据。
修复点:
- ingest_full_git_history 自动查 blueprint_buffs,若该路径已有 UUID project_id 则优先用 UUID
- 新增 get_all_commit_health 命令,SQL 关联 blueprint_buffs / projects 解析名称,不需要前端传 project_ids
- FlywheelPanel 切换到 getAllCommitHealth,表格直接用后端返回的 project_name,无需前端 lookup
2026-06-29 21:21:23 +09:00
lanrtop
532e28c421
feat(flywheel-L0): F2 飞轮面板 Git 健康度区块 + 全量导入按钮
...
- FlywheelPanel 新增「Git 执行质量」卡片:表格展示 commits/规范化率/返工率/TOP scope
- 「全量导入」按钮对所有接入项目触发 ingest_full_git_history,完成后刷新健康度数据
- 颜色编码:规范化率 ≥80% 绿/≥50% 黄/其余红,返工率 >20% 红/>10% 黄
2026-06-29 20:58:05 +09:00
lanrtop
1651b21743
feat(agent-infra): 卡D+E——栈确认UI + 看板腐化指示器
...
卡D:AgentInfraPanel——扫描→确认契约→生成三件套,嵌入 GovernancePanel
卡E:ProjectCard 加腐化评分小圆点(读缓存,不触发扫描)
agent-infrastructure 模块全部 5 张卡完成,status→done
2026-06-29 18:31:38 +09:00
lanrtop
58d2c79c74
feat(onboarding): 接入包数据可信度提示(commit 规范化比例)
...
get_commit_stats 暴露项目 commit 规范化统计(total/conventional/rework);治理面板常驻展示规范化比例 + 返工数,比例 <60% 提示种 lefthook。接入包 A/B/C1/C2/D 全部完成。
2026-06-19 13:52:09 +09:00
lanrtop
150535ffcf
feat(onboarding): 接入包前端 UI——治理面板升级为应用接入包
...
治理面板 buff 区改为应用接入包:调 apply_onboarding_pack(种 3 模板 + 挂 buff),新增模板分发结果展示(written/skipped/failed)。接入包 A/B/C1/C2 就绪,剩 D 可信度提示。
2026-06-19 13:07:09 +09:00
lanrtop
7a81222686
fix: P2 conventions 分发覆盖 WSL 项目
...
save_user_conventions / reset_conventions_to_builtin 移除前端传路径的设计,
改为后端自行从 DB 查询所有项目路径(Windows 路径 + WSL UNC 路径),
确保 WSL 项目不再被漏同步;同步锁定蓝图数据:T4 关锁、blueprint-view frontmatter 修正
2026-04-08 03:55:36 +09:00
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
30d6823a1f
feat: 蓝图 Buff 系统 v0.1.12
...
炼境可向任意被管理项目施加「蓝图 Buff」,git 提交自动同步任务进度,与 AI 工具热插拔解耦。
- 后端:blueprint_buffs 数据表 + 生命周期命令(apply/remove/get/list)
- 后端:每 5 秒轮询 git HEAD,文件路径匹配任务卡 files 字段,自动标记 📋 →🔵
- 后端:sync 时 Buff 触发飞轮快照,emit blueprint://changed 事件
- 前端:ProjectCard 显示 ⚡ Buff 激活徽章
- 前端:GovernancePanel 新增施加/撤销 Buff 按钮,无蓝图时附带 init prompt
- 前端:BlueprintModal 监听 blueprint://changed,自动刷新并显示「刚刚更新」提示
- 修复:sync prompt 新增 🔵 状态保护规则,防止 Claude 更新时降级炼境自动标记的进度
2026-04-05 01:56:40 +09:00
lanrtop
23b109119a
fix: 已有蓝图时禁用「初始化蓝图」按钮
...
避免用户误用初始化覆盖已有蓝图,引导使用「更新蓝图描绘」。
disabled 状态加 tooltip 提示原因。
2026-04-04 23:33:13 +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
lanrtop
0cdaa3678c
feat: add Blueprint feature to ProjectCard and commands
...
- Introduced BlueprintModal in ProjectCard for project blueprint visualization.
- Added state management for displaying the BlueprintModal.
- Implemented Blueprint-related interfaces and functions in commands.ts for handling blueprint data.
2026-04-02 19:12:53 +09:00