( task: () => Promise<Record<string, unknown>>, )
| 487 | } |
| 488 | |
| 489 | async function toDaemonResponse( |
| 490 | task: () => Promise<Record<string, unknown>>, |
| 491 | ): Promise<DaemonResponse> { |
| 492 | try { |
| 493 | return { ok: true, data: await task() }; |
| 494 | } catch (error) { |
| 495 | const appError = asAppError(error); |
| 496 | return errorResponse(appError.code, appError.message, appError.details); |
| 497 | } |
| 498 | } |
| 499 | |
| 500 | async function maybeAndroidForegroundBlockerResponse( |
| 501 | params: SelectorRuntimeParams, |
no test coverage detected