(
workspaceId: string,
input: WorkflowRunCardInput,
result: WorkflowRunCardResult,
options?: { existingMessage?: MuxMessage | null }
)
| 191 | } |
| 192 | |
| 193 | export function addWorkflowRunCardMessage( |
| 194 | workspaceId: string, |
| 195 | input: WorkflowRunCardInput, |
| 196 | result: WorkflowRunCardResult, |
| 197 | options?: { existingMessage?: MuxMessage | null } |
| 198 | ): void { |
| 199 | assert(workspaceId.length > 0, "addWorkflowRunCardMessage: workspaceId is required"); |
| 200 | const message = buildWorkflowRunCardMessage(input, result); |
| 201 | if (options?.existingMessage?.metadata != null) { |
| 202 | message.metadata = getWorkflowRunCardMetadata(options.existingMessage.metadata, result.runId); |
| 203 | } |
| 204 | addEphemeralMessage(workspaceId, message); |
| 205 | } |
| 206 | |
| 207 | export function addWorkflowRunCardMessageForRun( |
| 208 | workspaceId: string, |
no test coverage detected