MCPcopy Create free account
hub / github.com/6174/comflowyspace / writeWorkflowToFile

Function writeWorkflowToFile

packages/common/comfyui-bridge/export-import.ts:34–39  ·  view source on GitHub ↗
(workflow: PersistedWorkflowDocument)

Source from the content-addressed store, hash-verified

32}
33
34export function writeWorkflowToFile(workflow: PersistedWorkflowDocument): void {
35 const a = document.createElement('a')
36 a.download = 'workflow.json'
37 a.href = URL.createObjectURL(new Blob([JSON.stringify(workflow)], { type: 'application/json' }))
38 a.click()
39}
40
41export async function safeLoadWorkflow(workflow: any, widgets: Widgets): Promise<PersistedWorkflowDocument> {
42 console.log("source workflow", workflow);

Callers 1

createHookFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected