(params: {
baseReq: ReplayBaseRequest;
invoke: MaestroRuntimeInvoke;
})
| 59 | } |
| 60 | |
| 61 | async function invokeMaestroPressEnter(params: { |
| 62 | baseReq: ReplayBaseRequest; |
| 63 | invoke: MaestroRuntimeInvoke; |
| 64 | }): Promise<DaemonResponse> { |
| 65 | const keyboardResponse = await params.invoke({ |
| 66 | ...params.baseReq, |
| 67 | command: 'keyboard', |
| 68 | positionals: ['enter'], |
| 69 | }); |
| 70 | if (keyboardResponse.ok) return keyboardResponse; |
| 71 | |
| 72 | return await params.invoke({ |
| 73 | ...params.baseReq, |
| 74 | command: 'type', |
| 75 | positionals: ['\n'], |
| 76 | }); |
| 77 | } |
| 78 | |
| 79 | function invokeMaestroRunScript(params: { |
| 80 | baseReq: ReplayBaseRequest; |
no outgoing calls
no test coverage detected
searching dependent graphs…