Attach frontend version metadata on workflow export (#3386)

This commit is contained in:
Chenlei Hu
2025-04-10 14:19:54 -04:00
committed by GitHub
parent 615c183059
commit c801a0c854
2 changed files with 3 additions and 0 deletions

View File

@@ -224,6 +224,7 @@ const zConfig = z
const zExtra = z
.object({
ds: zDS.optional(),
frontendVersion: z.string().optional(),
linkExtensions: z.array(zComfyLinkExtension).optional(),
reroutes: z.array(zReroute).optional()
})

View File

@@ -41,6 +41,8 @@ export const graphToPrompt = async (
}
compressWidgetInputSlots(workflow)
workflow.extra ??= {}
workflow.extra.frontendVersion = __COMFYUI_FRONTEND_VERSION__
const output: ComfyApiWorkflow = {}
// Process nodes in order of execution