@@ -14,6 +14,7 @@ import {
1414import { t } from '@/i18n'
1515import { api } from '@/scripts/api'
1616import { app } from '@/scripts/app'
17+ import { addFluxKontextGroupNode } from '@/scripts/fluxKontextEditNode'
1718import { useDialogService } from '@/services/dialogService'
1819import { useLitegraphService } from '@/services/litegraphService'
1920import { useWorkflowService } from '@/services/workflowService'
@@ -718,6 +719,17 @@ export function useCoreCommands(): ComfyCommand[] {
718719 label : 'Move Selected Nodes Right' ,
719720 versionAdded : moveSelectedNodesVersionAdded ,
720721 function : ( ) => moveSelectedNodes ( ( [ x , y ] , gridSize ) => [ x + gridSize , y ] )
722+ } ,
723+ {
724+ id : 'Comfy.Canvas.AddEditModelStep' ,
725+ icon : 'pi pi-pen-to-square' ,
726+ label : 'Add Edit Model Step' ,
727+ versionAdded : '1.23.3' ,
728+ function : async ( ) => {
729+ const node = app . canvas . selectedItems . values ( ) . next ( ) . value
730+ if ( ! ( node instanceof LGraphNode ) ) return
731+ await addFluxKontextGroupNode ( node )
732+ }
721733 }
722734 ]
723735
0 commit comments