( _params: OpenSimParams, executor: CommandExecutor, )
| 78 | } |
| 79 | |
| 80 | export async function open_simLogic( |
| 81 | _params: OpenSimParams, |
| 82 | executor: CommandExecutor, |
| 83 | ): Promise<void> { |
| 84 | log('info', 'Starting open simulator request'); |
| 85 | |
| 86 | const ctx = getHandlerContext(); |
| 87 | const executeOpenSim = createOpenSimExecutor(executor); |
| 88 | const result = await executeOpenSim(_params); |
| 89 | setStructuredOutput(ctx, result); |
| 90 | |
| 91 | if (result.didError) { |
| 92 | log('error', `Error during open simulator operation: ${result.error ?? 'Unknown error'}`); |
| 93 | return; |
| 94 | } |
| 95 | |
| 96 | ctx.nextStepParams = { |
| 97 | boot_sim: { simulatorId: 'UUID_FROM_LIST_SIMS' }, |
| 98 | }; |
| 99 | } |
| 100 | |
| 101 | export const schema = openSimSchema.shape; |
| 102 |
no test coverage detected