(payload: unknown)
| 82 | } |
| 83 | |
| 84 | function stringifyWorkflowResultPayload(payload: unknown): string { |
| 85 | try { |
| 86 | return JSON.stringify(payload, null, 2); |
| 87 | } catch { |
| 88 | return JSON.stringify({ error: "Workflow result could not be serialized." }, null, 2); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | export function buildWorkflowResultContextMessage(input: { |
| 93 | rawCommand: string; |
no outgoing calls
no test coverage detected