refactor(mcp): project recording family output schemas from their owning module
Merged
TH
2mo ago+145+145+012345678901234567890123456789-79-79-01234567890123456789
Summary
Projects the recording and replay MCP output schemas (record, trace) out of the shared command-output-schemas.ts map and into their owning module, src/commands/recording/index.ts, following the pattern already used for the system, interaction, device-management, and push-management families in this stack.
Behavior is unchanged: the published outputSchema for these MCP tools is byte-identical before and after. Part of #2819. Touches 4 files. Stacked on refactor/mcp-output-schemas-2819-management-push-schemas.
Validation
Tested commit: a04c376fb18068caada4dd6df9d616a61683ecd8
pnpm format: no changes.pnpm check:affected --run: all runnable checks passed (160 test files, 1350 tests).- No device needed (pure MCP schema move). Proved the published
outputSchemais unchanged: added a temporary vitest test dumpingCOMMAND_OUTPUT_SCHEMAS.recordand.traceto JSON, ran it againstorigin/main(d3c9d052b5, via a throwawaygit worktree add .tmp-main-check refs/remotes/origin/main --detachwithnode_modulessymlinked from this worktree, removed after) and against this branch's HEAD;diff main-schemas.json head-schemas.jsonreported no differences (IDENTICAL). - Mutation check: temporarily made
command-output-schemas.tsspread copies ofrecord/traceinstead of referencingRECORDING_COMMAND_OUTPUT_SCHEMASdirectly, confirmed the new reference-equality test incommand-tools-recording-schemas.test.tsfails, then reverted.
No unresolved risk.