refactor(mcp): project doctor family output schema from its owning module
Merged
TH
2mo ago+83+83+01234567890123456789-35-35-01234567890123456789
Summary
Projects the MCP output schema for the doctor command family out of the central
command-output-schemas.ts registry and into doctor.ts, its owning module, following the
same pattern applied to the other command families in this stacked series. No behavior change:
the published MCP outputSchema for doctor is unchanged, only its declaration site moves.
Part of #2819. Touches 4 files. Stacked on
refactor/mcp-output-schemas-2819-management-prepare-schema.
Validation
Tested commit: ad91cc368ec88b8d7cc05767cd20cd2ad51f3cfe
pnpm check:affected --run: 165 test files, 1371 tests passed, 0 failed.- No device needed (pure MCP schema move). Verified the published
outputSchemafordoctor
is byte-identical before/after: built a temporary detached worktree oforigin/main
(withnode_modulessymlinked from this branch to resolve workspace packages), then ran
node -e "import('.../src/mcp/command-output-schemas.ts').then(m => console.log(JSON.stringify(m.COMMAND_OUTPUT_SCHEMAS.doctor)))"
on bothorigin/mainand this branch's HEAD.diffreported no difference, and a
structural-equality check on the parsed JSON also returned true. The verification worktree
was removed afterward.
No unresolved risk: this is a pure move with no schema-shape or Swift changes.