(
params: InteractionHandlerParams & {
captureSnapshotForSession: typeof captureSnapshotForSession;
},
)
| 43 | } |
| 44 | |
| 45 | async function dispatchTypeViaRuntime( |
| 46 | params: InteractionHandlerParams & { |
| 47 | captureSnapshotForSession: typeof captureSnapshotForSession; |
| 48 | }, |
| 49 | ): Promise<DaemonResponse> { |
| 50 | const { sessionName, sessionStore } = params; |
| 51 | const session = sessionStore.get(sessionName); |
| 52 | if (!session) return noActiveSessionError(); |
| 53 | const unsupported = requireCommandSupported(PUBLIC_COMMANDS.type, session.device); |
| 54 | if (unsupported) return unsupported; |
| 55 | const recordingRecoveryResponse = await recoverAndroidRecordingDialogForType(session); |
| 56 | if (recordingRecoveryResponse) return recordingRecoveryResponse; |
| 57 | |
| 58 | return await runTypeTextViaRuntime(params, session); |
| 59 | } |
| 60 | |
| 61 | async function recoverAndroidRecordingDialogForType( |
| 62 | session: SessionState, |
no test coverage detected