am-freescan/docs/superpowers/plans/2026-10-21-cmvr-complete-port.md
2026-10-22 16:18:37 +08:00

33 lines
1.9 KiB
Markdown
Raw 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.

# CMVR Complete Port Implementation Plan
> **For agentic workers:** Use superpowers:subagent-driven-development for independent frontend, backend and schema work; root owns integration and verification.
**Goal:** 原样移植 CMVR-AIMA 智能检测、资源中心、Vue Flow 及其原生后端,并连接 scanner 任务。
**Architecture:** 原模块源码本地化复制 + Yudao 登录/API/数据源兼容层 + lab 执行事件适配。
**Tech Stack:** Vue 3/Element Plus/Vue Flow,Java 17/Spring Boot 3/Yudao,MySQL/Redis。
**Spec:** ../specs/2026-10-21-cmvr-complete-port-design.md
## Global Constraints
- 仅修改 am-freescan;三个来源仓库只读,前后指纹必须一致。
- 仅新库 192.168.28.10/am-freescan;原字段与 ID 保留,不导历史业务行。
- 禁止将原 UI 重设计或将原节点/资源功能裁剪为简化占位实现。
- 无真实设备时保留接口和原客户端,不伪造调用成功。
- admin/admin123 必须实际登录验证。
## Tasks
- [x] 建立来源完整性基线,修改独立管理员口令并验证登录。
- [ ] 复制 AIMA 智能检测和 common 全部依赖/UI/assets/路由到前端,适配统一鉴权与原响应。
- [ ] 复制 aima/test/resource 及流程动作依赖后端,补齐原 schema 和兼容层,完成编译。
- [ ] 注册新域菜单、框架扫描/鉴权/WS/原格式异常处理,初始化新库原模块结构与静态字典。
- [ ] 将 scanner 方法选择和执行/控制/结果事件接到原 CMVR 流程,验证版本和 ID 映射。
- [ ] 原页面浏览器核验、新库 API/执行闭环、来源功能矩阵核验、构建和完整性检查;更新启动文档。
## Ownership
cmvr_frontend_port:am-web。cmvr_backend_port:yudao-module-cmvr Java/pom/resources(DDL除外)。cmvr_scope_audit:cmvr-schema.sql 与 docs/cmvr-port-matrix.md。root:root/server/lab 接线、配置、脚本、菜单、数据库执行、整体验证。