(params: {
event: SimEventType
workflowId: string
workflowName: string
})
| 32 | } |
| 33 | |
| 34 | function basePayload(params: { |
| 35 | event: SimEventType |
| 36 | workflowId: string |
| 37 | workflowName: string |
| 38 | }): SimEventPayload { |
| 39 | return { |
| 40 | event: params.event, |
| 41 | timestamp: new Date().toISOString(), |
| 42 | workflowId: params.workflowId, |
| 43 | workflowName: params.workflowName, |
| 44 | runId: null, |
| 45 | durationMs: null, |
| 46 | cost: null, |
| 47 | finalOutput: null, |
| 48 | triggeringRun: null, |
| 49 | version: null, |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | /** Run summary in user-facing units: cost in credits, finalOutput bounded. */ |
| 54 | function summarizeRun(context: ExecutionEventContext): SimRunSummary { |
no outgoing calls
no test coverage detected