(options: {
stateDir: string;
state: Pick<RemoteConnectionState, 'remoteConfigPath' | 'session'>;
})
| 464 | } |
| 465 | |
| 466 | export async function stopReactDevtoolsCleanup(options: { |
| 467 | stateDir: string; |
| 468 | state: Pick<RemoteConnectionState, 'remoteConfigPath' | 'session'>; |
| 469 | }): Promise<void> { |
| 470 | try { |
| 471 | await stopReactDevtoolsCompanion({ |
| 472 | projectRoot: process.cwd(), |
| 473 | stateDir: options.stateDir, |
| 474 | profileKey: options.state.remoteConfigPath, |
| 475 | consumerKey: options.state.session, |
| 476 | }); |
| 477 | } catch { |
| 478 | // Connection lifecycle cleanup must stay best-effort. |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | export async function releaseRemoteConnectionLease( |
| 483 | client: AgentDeviceClient, |
no test coverage detected