MCPcopy Index your code
hub / github.com/coder/mux / stringifyWorkflowResultPayload

Function stringifyWorkflowResultPayload

src/common/utils/workflowRunMessages.ts:84–90  ·  view source on GitHub ↗
(payload: unknown)

Source from the content-addressed store, hash-verified

82}
83
84function 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
92export function buildWorkflowResultContextMessage(input: {
93 rawCommand: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected