chore: retire openhub and pi ts runtime
This commit is contained in:
@@ -301,27 +301,16 @@ check(
|
||||
);
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// Section 6: Pi Rust 主入口与 OpenHub 兼容边界
|
||||
// Section 6: Pi Rust 主入口与退役边界
|
||||
// --------------------------------------------------------------------------
|
||||
console.log("\n-- 6. Pi Rust 主入口与 OpenHub 兼容边界 --");
|
||||
console.log("\n-- 6. Pi Rust 主入口与退役边界 --");
|
||||
|
||||
check(
|
||||
"OpenHub agent route /page-ai/openhub/ai exists",
|
||||
routesMod.includes('/page-ai/openhub/ai", get(page_ai_openhub::ai_shell)'),
|
||||
"page_ai_openhub::ai_shell"
|
||||
);
|
||||
|
||||
check(
|
||||
"OpenHub admin routes still exist",
|
||||
routesMod.includes('/page-ai/openhub/admin"') &&
|
||||
routesMod.includes("page_ai_openhub::non_ai_route_guard"),
|
||||
"non_ai_route_guard for admin"
|
||||
);
|
||||
|
||||
check(
|
||||
"OpenHub status API still exists",
|
||||
routesMod.includes('/api/page-ai/openhub/status", get(page_ai_openhub::status)'),
|
||||
"GET page_ai_openhub::status"
|
||||
"OpenHub active routes are retired from mnote-web",
|
||||
!routesMod.includes("page_ai_openhub") &&
|
||||
!routesMod.includes("/page-ai/openhub") &&
|
||||
!routesMod.includes("/api/page-ai/openhub"),
|
||||
"OpenHub route module and public routes removed from active router"
|
||||
);
|
||||
|
||||
check(
|
||||
@@ -380,11 +369,11 @@ check(
|
||||
);
|
||||
|
||||
check(
|
||||
"OpenHub is described as compatibility/admin boundary, not default chat",
|
||||
aiAdminRs.includes("迁移期兼容 / admin 边界") &&
|
||||
aiAdminRs.includes("不再作为默认 Page AI chat") &&
|
||||
"AI management no longer exposes OpenHub admin entry",
|
||||
!aiAdminRs.includes("/page-ai/openhub") &&
|
||||
!aiAdminRs.includes("打开 OpenHub Admin") &&
|
||||
!aiAdminRs.includes("OpenHub 仍是默认 Page AI"),
|
||||
"OpenHub remains only as migration compatibility boundary"
|
||||
"OpenHub admin links removed from active AI management UI"
|
||||
);
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user