( status: TerminalAgentRunStatus, failureClass: string | undefined, runEventData: Record<string, unknown> | undefined, )
| 345 | } |
| 346 | |
| 347 | function terminalRunEventData( |
| 348 | status: TerminalAgentRunStatus, |
| 349 | failureClass: string | undefined, |
| 350 | runEventData: Record<string, unknown> | undefined, |
| 351 | ): Record<string, unknown> { |
| 352 | return { |
| 353 | ...(status === 'failed' && failureClass ? { failureClass } : {}), |
| 354 | ...(runEventData ?? {}), |
| 355 | }; |
| 356 | } |
| 357 | |
| 358 | function runtimeEventFailureClass(event: RuntimeEvent): string | undefined { |
| 359 | const stateDelta = event.actions?.stateDelta; |
no outgoing calls
no test coverage detected