Files
2026-03-15 10:15:02 +08:00

123 lines
3.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 批量自动模式89 单元视觉还原编排
> 每次会话开始:读 `docs/miniprogram-dev/04-audit/PROGRESS.md` 确认进度。
> 执行手册:`readSteering("action-manual.md")`
> Power 调用:`readSteering("power-integration.md")`
---
## 执行模型4 种专职子代理
```
主代理(调度)
→ 截图代理 → 审计代理 → 修正代理 ⇆ 验证代理 → 主代理汇总
```
全程严格串行——同一时刻只有一个单元在执行。禁止预先批量截图。
---
## 主代理调度职责
1. 读 PROGRESS.md 确认进度
2. 检查 MCP 就绪
3. 新页面:隐藏 dev-fab/ai-float-button
4. 逐屏下发:截图→审计→修正/验证循环
5. 通过→更新 PROGRESS.md→下一屏
6. 需回退→回退到指定 step
7. 跳过→备注原因,继续
8. 页面所有屏通过→全量回归校验
---
## 单元内流程
```
Step 1截图代理 → H5/MP 截图
Step 2审计代理 → audit.md + 偏差清单
Step 3修正代理 → 修正源码
├─ P0-P3 >0 且未触发跳过 → 验证代理 → 循环
├─ P0-P3=0 → Step 4
├─ 连续 5 轮无改善 → 跳过
└─ P0-P3 >10 且连续 3 轮无法突破 → 结构重写
Step 4主代理汇总 → 更新 PROGRESS.md
```
---
## 前置任务
P0. TS 零诊断基线17 页面 `.ts` 全部 `getDiagnostics` 零诊断
P1. 跨页面共性偏差批量修复
---
## 批次编排
### A 批次看板32 单元)
board-finance20 单元default 10 屏(step-0~4848) + compare 10 屏(step-0~4827)
board-coach4 单元perf/salary/sv/task 各 step-0
board-customer8 单元recall/potential/balance/recharge/recent/spend60/freq60/loyal 各 step-0
### B 批次核心4 单元)
task-list3 屏(#33-35) | my-profile1 屏(#36)
### C 批次任务详情17 单元)
task-detail5 屏(#37-41)
task-detail-callback4 屏(#42-45teal 主题色)
task-detail-priority4 屏(#46-49orange 主题色)
task-detail-relationship4 屏(#50-53pink 主题色)
### D 批次详情12 单元)
coach-detail5 屏(#54-58) | customer-detail5 屏(#59-63) | customer-service-records2 屏(#64-65)
### E 批次绩效18 单元)
performance13 屏(#66-78) | performance-records5 屏(#79-83)
### F 批次对话3 单元)
chat2 屏(#84-85) | chat-history1 屏(#86)
### G 批次其他3 单元)
notes3 屏(#87-89)
---
## 子代理下发模板
### 标准单元
```
执行视觉还原对照单元:<单元 ID>
源码H5 docs/h5_ui/pages/<page>.html | MP apps/miniprogram/.../pages/<page>/
输出docs/h5_ui/compare/<page>/
当前步骤step-<N>(第 M / 共 T 步)
前序屏状态:<首屏"无前序" / 后续"step-X 已通过">
执行:截图→审计→修正→验证(见 action-manual.md
约束:只改当前屏 | 偏差在前序屏→标注"需回退" | 全局样式→标注"全局变更"
完成后:更新 PROGRESS.md
```
### 变体单元C 批次)
```
执行视觉还原(变体简化):<单元 ID>
与 task-detail 共享布局,仅 Banner 主题色不同。
主题色callback=teal / priority=orange / relationship=pink
step-0 重点验证 Banner 渐变色和按钮配色,其余快速对比。
```
### 回归校验
```
执行全量回归校验:<page>
逐屏截取+审计禁止修改源码。P0-P3 增加→标记"回归"。
```