Merge branch 'main' into bl-merge-lg-fe

This commit is contained in:
Benjamin Lu
2025-08-05 18:24:29 -04:00
committed by GitHub
7 changed files with 155 additions and 18 deletions

View File

@@ -3,11 +3,8 @@ import type {
ExecutionId,
LGraph
} from '@/lib/litegraph/src/litegraph'
import {
ExecutableNodeDTO,
LGraphEventMode,
SubgraphNode
} from '@/lib/litegraph/src/litegraph'
import { ExecutableNodeDTO, LGraphEventMode } from '@/lib/litegraph/src/litegraph'
import type {
ComfyApiWorkflow,
ComfyWorkflowJSON
@@ -62,12 +59,7 @@ export const graphToPrompt = async (
for (const node of graph.computeExecutionOrder(false)) {
const dto: ExecutableLGraphNode = isGroupNode(node)
? new ExecutableGroupNodeDTO(node, [], nodeDtoMap)
: new ExecutableNodeDTO(
node,
[],
nodeDtoMap,
node instanceof SubgraphNode ? node : undefined
)
: new ExecutableNodeDTO(node, [], nodeDtoMap)
for (const innerNode of dto.getInnerNodes()) {
nodeDtoMap.set(innerNode.id, innerNode)