- Backend: action_coordinator, capability_snapshot, event_normalizer, tool_executor updates - Backend: approved_tool_executor with write guard, action leases, migration script - Frontend: maf-roundtable module (API client, event timeline, approval cards, fact flow panel) - Frontend: MafRoutes, MafSessionsPage, MafRunDetailPage - Tests: action_leases, migration_phase5, phase5_entry_e2e, real_write_e2e/http_e2e - Docs: update implementation plan Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
855 B
TypeScript
26 lines
855 B
TypeScript
/**
|
||
* MAF 多智能体会商路由树(/page/maf/*)。
|
||
*
|
||
* 仿 RoundtableRoutes:顶层包一层满高容器,内部 <Routes>:
|
||
* index → 会话列表
|
||
* runs/:runId → 单 run 工作区(时间线/席位/流程图/审批)
|
||
* * → 重定向到 index
|
||
*/
|
||
|
||
import { Navigate, Route, Routes } from "react-router-dom";
|
||
|
||
import MafRunDetailPage from "@/maf-roundtable/pages/MafRunDetailPage";
|
||
import MafSessionsPage from "@/maf-roundtable/pages/MafSessionsPage";
|
||
|
||
export default function MafRoutes() {
|
||
return (
|
||
<div className="h-full w-full overflow-hidden">
|
||
<Routes>
|
||
<Route index element={<MafSessionsPage />} />
|
||
<Route path="runs/:runId" element={<MafRunDetailPage />} />
|
||
<Route path="*" element={<Navigate to="/page/maf" replace />} />
|
||
</Routes>
|
||
</div>
|
||
);
|
||
}
|