refactor(mcp): project recording family output schemas from their owning module

Merged
TH
2mo ago
+145-79

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 outputSchema is unchanged: added a temporary vitest test dumping COMMAND_OUTPUT_SCHEMAS.record and .trace to JSON, ran it against origin/main (d3c9d052b5, via a throwaway git worktree add .tmp-main-check refs/remotes/origin/main --detach with node_modules symlinked from this worktree, removed after) and against this branch's HEAD; diff main-schemas.json head-schemas.json reported no differences (IDENTICAL).
  • Mutation check: temporarily made command-output-schemas.ts spread copies of record/trace instead of referencing RECORDING_COMMAND_OUTPUT_SCHEMAS directly, confirmed the new reference-equality test in command-tools-recording-schemas.test.ts fails, then reverted.

No unresolved risk.