Reference
rn_session
Inspect and transition the fenced rn-dev-agent authority session. Status reconciles lost managed Metro authority without touching the app; bind, handoff, adoption, recovery, managed Metro cleanup, and release actions are fail-closed.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
action | `enum: status | bind_device | bind_metro | pin_dev_client | prepare_handoff |
platform | `enum: ios | android` | No | ||
deviceId | string | No | |||
appId | string | No | |||
devClientUrl | string | No | |||
buildReceipt | Record<string, unknown> | No | |||
metroPort | number | No | min: 1, max: 65535, integer | ||
metroPid | number | No | integer | ||
metroInstanceId | string | No | |||
buildGeneration | number | No | integer | ||
mode | `enum: managed | external` | No | ||
targetHandle | string | No | |||
ttlMs | number | No | min: 5_000, max: 300_000, integer | ||
handoffId | string | No | |||
token | string | No | |||
adoptionHandle | string | No | |||
confirmed | boolean | No | |||
force | boolean | No |
rn_session(action: <enum: status | bind_device | bind_metro | pin_dev_client | prepare_handoff | cancel_handoff | accept_handoff | adopt_stale | recover_arbiter | preview_integration | apply_integration | restore_integration | stop_metro | release>)