refactor(mcp): project viewport family output schema from its owning module

Merged
TH
2mo ago
+59-7

Summary

Moves the viewport command family's MCP output schema out of the shared command-output-schemas.ts grab-bag and into src/commands/management/viewport.ts, its owning module, matching the pattern already applied to interaction, device-management, push-management, and recording families earlier in this stack.

Part of #2819. Touches 4 files. Stacked on refactor/mcp-output-schemas-2819-recording-index-schemas (the next PR in the #2819 sequence).

Validation

Tested commit: 8faeba26d038808be6295c76cd0d1c6fba801321.

pnpm check:affected --run: 161 test files / 1352 tests passed, no failures, no retries needed.

No device needed — pure MCP schema move. Proved the published outputSchema is byte-identical before/after: dumped JSON.stringify(COMMAND_OUTPUT_SCHEMAS.viewport) via a throwaway vitest test on origin/main (fresh pnpm install --frozen-lockfile in a scratch worktree, removed afterward) and on this branch's HEAD. Both produced:

{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"},"message":{"type":"string"}},"required":["width","height","message"]}

No unresolved risk: this is a structural move with an unchanged public schema, confirmed by the diff above (import/re-export churn only).