Fix architecture review findings and align CLI metadata

This commit is contained in:
gitea committed 2026-10-17 20:17:06 +08:00
1 parent 780a4ba9c0
commit 50e4e492b4
83 files changed
+966 -792

No files matched your search

+3 -6
View File
@@ -1,5 +1,6 @@
import { normalizeCliArea } from "./area-aliases.js";
import type { ParsedArgs } from "./types.js";
import { usageError } from "./errors.js";
import { usageError } from "../core/errors.js";
export interface CommandOptionHelp {
flag: string;
@@ -1639,14 +1640,10 @@ export function renderHelp(target: string[] = []): string {
}
function normalizeArea(area: string): string {
const lower = area.toLowerCase();
if (lower === "corp") return "corps";
if (lower === "webhooks") return "webhook";
if (lower === "preferences") return "preference";
const lower = normalizeCliArea(area);
if (lower === "changelog") return "update";
if (lower === "serve") return "http";
if (lower === "mcp-config") return "mcp";
if (lower === "server") return "mcp";
return lower;
}