(event: Record<string, unknown> | undefined)
| 109 | } |
| 110 | |
| 111 | function executionEvents(event: Record<string, unknown> | undefined): Array<Record<string, unknown>> { |
| 112 | const execution = eventRecord(event?.execution) |
| 113 | const events = Array.isArray(execution?.events) ? execution.events : [] |
| 114 | return events.filter((candidate): candidate is Record<string, unknown> => eventRecord(candidate) !== null) |
| 115 | } |
| 116 | |
| 117 | function actionHarnessId(event: Record<string, unknown> | undefined, fallback: string): string { |
| 118 | const execution = eventRecord(event?.execution) |
no test coverage detected