Add doctor command for read-only system diagnostic and embedded guide

Embed system architecture and 10-tier directory specifications directly into the binary with zero disk footprint.
This commit is contained in:
gitea committed 2026-09-11 17:57:41 +08:00
1 parent 76d288b882
commit 4c8389bf0c
10 files changed
+980 -147

No files matched your search

+7
View File
@@ -16,6 +16,7 @@ import { handleContextCommand } from "./commands/context.js";
import { handleCorpsCommand } from "./commands/corps.js";
import { handleDelegationCommand, handleDelegationFromHoseLink } from "./commands/delegation.js";
import { handleDeployCommand } from "./commands/deploy.js";
import { handleDoctorCommand } from "./commands/doctor.js";
import { handleHttpCommand } from "./commands/http.js";
import { handleLlmCommand } from "./commands/llm.js";
import { handleMcpCommand, printMcpConfig } from "./commands/mcp.js";
@@ -89,6 +90,7 @@ export const KNOWN_AREAS = new Set([
"skill",
"openapi",
"probe",
"doctor",
"changelog"
]);
@@ -221,6 +223,11 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
return;
}
if (area === "doctor") {
await handleDoctorCommand(action, maybeName, args);
return;
}
if (area === "config") {
handleConfigCommand(action, maybeName, args);
return;