MCPcopy Create free account
hub / github.com/callstack/agent-device / invokeMaestroPressEnter

Function invokeMaestroPressEnter

src/compat/maestro/runtime.ts:61–77  ·  view source on GitHub ↗
(params: {
  baseReq: ReplayBaseRequest;
  invoke: MaestroRuntimeInvoke;
})

Source from the content-addressed store, hash-verified

59}
60
61async 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
79function invokeMaestroRunScript(params: {
80 baseReq: ReplayBaseRequest;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…