docs(commands): trim the diagnostics, media, and remote Metro reference

Merged
TH
1mo ago
+108-132

Summary

The first of three family-scoped trims of commands.md. This one covers Performance diagnostics through Cloud provider artifacts. The range drops from 5,794 to 3,345 words. Every command, flag, example, error code and recovery step is kept; explanations owned by a guide or by agent-device help are replaced with a link.

  • Media and logs: split into Screenshots, Screenshot diffs and Recordings. Record details point to agent-device help record.
  • Performance, React Native, Metro, Remote Metro: condensed. Content that existed only here moved to debugging-profiling.md: remote bridge sessions, network dump platform details, and perf data sources and limits.
  • Added: the React Native 0.87+ agent-react-devtools setup (dev dependency, npx agent-react-devtools init, rebundle). CLI help already documented it, but the docs didn't.
  • Anchors #metro-reload, #media-and-logs and #remote-metro-workflow still resolve. The pinned cdp and agent-react-devtools@0.5.0 lines are unchanged.

The other two families (lifecycle, interactions) follow in separate PRs. Each edits a different range of commands.md.

Validation

  • pnpm check:affected --run passed on 8fdb233b9.
  • The four tests that pin commands.md text pass.
  • check:doc-prose and check:doc-links pass.
  • Docs only, so no device runs.

🤖 Generated with Claude Code