docs: split integrator material into a Build an integration page

Merged
TH
6d ago
+285-217

Summary

client-api.md served two different readers. It now covers driving devices from Node.js only. A new Build an integration page covers people building a bridge, remote daemon, or device-cloud backend: Android ADB providers, custom-transport batch orchestration, remote config and Metro helpers, and selector helpers. Each page opens with who it's for and links to the other. The sections moved unchanged.

  • Entry points are split by audience between the two pages' "API reference" lists.
  • client-api-examples-drift.test.ts now checks the combined lists against package.json exports and fails if an entry point appears on both pages.
  • client-api-doc-snippets.test.ts compiles the TypeScript snippets on both pages.
  • _meta.json and examples/README.md are updated, along with a doc comment in packages/selectors/src/ast.ts.

Follow-up to #3295. 7 files.

Validation

  • pnpm check:affected --run passed on f7909d47c.
  • The drift test passes (5/5) and the snippet compile test passes (4/4).
  • The SDK examples typecheck (tsc -b) and the website builds.
  • Docs and tests only, so no device runs.

🤖 Generated with Claude Code