MCPcopy Index your code
hub / github.com/callstack/agent-device / toDaemonWaitData

Function toDaemonWaitData

src/daemon/selector-recording.ts:68–74  ·  view source on GitHub ↗
(result: Record<string, unknown>)

Source from the content-addressed store, hash-verified

66}
67
68export function toDaemonWaitData(result: Record<string, unknown>): Record<string, unknown> {
69 return {
70 waitedMs: result.waitedMs,
71 ...(typeof result.text === 'string' ? { text: result.text } : {}),
72 ...(typeof result.selector === 'string' ? { selector: result.selector } : {}),
73 };
74}
75
76export function stripSelectorChain<T extends Record<string, unknown>>(result: T): T {
77 const { selectorChain: _selectorChain, ...publicResult } = result;

Callers 1

executeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected