HEL-892 document Qwen3.5 prompt graph with exact version evidence

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-31 23:58:16 +08:00
co-authored by multica-agent
parent bde4e39ca3
commit 7b31ce9fb8
137 changed files with 169933 additions and 1 deletions
@@ -0,0 +1,6 @@
tree 9b33e604c98f16b101c1b2e27b9989f2597a10a4
parent 3cd13eb4245a111bda4a46b9129cef19c8cac1d5
author comfyanonymous <comfyanonymous@protonmail.com> 1784094194 -0400
committer comfyanonymous <comfyanonymous@protonmail.com> 1784094194 -0400
ComfyUI v0.28.0
@@ -0,0 +1,2 @@
From https://github.com/Comfy-Org/ComfyUI
* tag v0.28.0 -> FETCH_HEAD
@@ -0,0 +1 @@
{"requested": "v0.28.0", "object": "700821e1364eaab0e8f21c538a2131719fec57bf", "commit": "700821e1364eaab0e8f21c538a2131719fec57bf"}
@@ -0,0 +1,6 @@
tree 9b33e604c98f16b101c1b2e27b9989f2597a10a4
parent 3cd13eb4245a111bda4a46b9129cef19c8cac1d5
author comfyanonymous <comfyanonymous@protonmail.com> 1784094194 -0400
committer comfyanonymous <comfyanonymous@protonmail.com> 1784094194 -0400
ComfyUI v0.28.0
@@ -0,0 +1,736 @@
[
".ci/update_windows/update.py",
".ci/windows_amd_base_files/README_VERY_IMPORTANT.txt",
".ci/windows_nvidia_base_files/README_VERY_IMPORTANT.txt",
".github/PULL_REQUEST_TEMPLATE/api-node.md",
"AGENTS.md",
"CONTRIBUTING.md",
"QUANTIZATION.md",
"README.md",
"SECURITY.md",
"alembic_db/README.md",
"alembic_db/env.py",
"alembic_db/versions/0001_assets.py",
"alembic_db/versions/0002_merge_to_asset_references.py",
"alembic_db/versions/0003_add_metadata_job_id.py",
"alembic_db/versions/0004_drop_tag_type.py",
"alembic_db/versions/0005_allow_case_sensitive_tags.py",
"alembic_db/versions/0006_add_loader_path.py",
"api_server/__init__.py",
"api_server/routes/__init__.py",
"api_server/routes/internal/README.md",
"api_server/routes/internal/__init__.py",
"api_server/routes/internal/internal_routes.py",
"api_server/services/__init__.py",
"api_server/services/terminal_service.py",
"api_server/utils/file_operations.py",
"app/__init__.py",
"app/app_settings.py",
"app/assets/api/routes.py",
"app/assets/api/schemas_in.py",
"app/assets/api/schemas_out.py",
"app/assets/api/upload.py",
"app/assets/database/models.py",
"app/assets/database/queries/__init__.py",
"app/assets/database/queries/asset.py",
"app/assets/database/queries/asset_reference.py",
"app/assets/database/queries/common.py",
"app/assets/database/queries/tags.py",
"app/assets/helpers.py",
"app/assets/scanner.py",
"app/assets/seeder.py",
"app/assets/services/__init__.py",
"app/assets/services/asset_management.py",
"app/assets/services/bulk_ingest.py",
"app/assets/services/cursor.py",
"app/assets/services/file_utils.py",
"app/assets/services/hashing.py",
"app/assets/services/image_dimensions.py",
"app/assets/services/ingest.py",
"app/assets/services/metadata_extract.py",
"app/assets/services/path_utils.py",
"app/assets/services/schemas.py",
"app/assets/services/tagging.py",
"app/custom_node_manager.py",
"app/database/db.py",
"app/database/models.py",
"app/frontend_management.py",
"app/logger.py",
"app/model_manager.py",
"app/node_replace_manager.py",
"app/subgraph_manager.py",
"app/user_manager.py",
"blueprints/.glsl/README.md",
"blueprints/.glsl/update_blueprints.py",
"comfy/audio_encoders/audio_encoders.py",
"comfy/audio_encoders/wav2vec2.py",
"comfy/audio_encoders/whisper.py",
"comfy/background_removal/birefnet.py",
"comfy/bg_removal_model.py",
"comfy/cldm/cldm.py",
"comfy/cldm/control_types.py",
"comfy/cldm/dit_embedder.py",
"comfy/cldm/mmdit.py",
"comfy/cli_args.py",
"comfy/clip_model.py",
"comfy/clip_vision.py",
"comfy/comfy_api_env.py",
"comfy/comfy_types/README.md",
"comfy/comfy_types/__init__.py",
"comfy/comfy_types/examples/example_nodes.py",
"comfy/comfy_types/node_typing.py",
"comfy/conds.py",
"comfy/context_windows.py",
"comfy/controlnet.py",
"comfy/deploy_environment.py",
"comfy/diffusers_convert.py",
"comfy/diffusers_load.py",
"comfy/extra_samplers/uni_pc.py",
"comfy/float.py",
"comfy/gligen.py",
"comfy/hooks.py",
"comfy/image_encoders/dino2.py",
"comfy/image_encoders/dino3.py",
"comfy/k_diffusion/deis.py",
"comfy/k_diffusion/sa_solver.py",
"comfy/k_diffusion/sampling.py",
"comfy/k_diffusion/utils.py",
"comfy/latent_formats.py",
"comfy/ldm/ace/ace_step15.py",
"comfy/ldm/ace/attention.py",
"comfy/ldm/ace/lyric_encoder.py",
"comfy/ldm/ace/model.py",
"comfy/ldm/ace/vae/autoencoder_dc.py",
"comfy/ldm/ace/vae/music_dcae_pipeline.py",
"comfy/ldm/ace/vae/music_log_mel.py",
"comfy/ldm/ace/vae/music_vocoder.py",
"comfy/ldm/anima/model.py",
"comfy/ldm/audio/autoencoder.py",
"comfy/ldm/audio/dit.py",
"comfy/ldm/audio/embedders.py",
"comfy/ldm/audio/vae_sa3.py",
"comfy/ldm/aura/mmdit.py",
"comfy/ldm/boogu/model.py",
"comfy/ldm/cascade/common.py",
"comfy/ldm/cascade/controlnet.py",
"comfy/ldm/cascade/stage_a.py",
"comfy/ldm/cascade/stage_b.py",
"comfy/ldm/cascade/stage_c.py",
"comfy/ldm/cascade/stage_c_coder.py",
"comfy/ldm/chroma/layers.py",
"comfy/ldm/chroma/model.py",
"comfy/ldm/chroma_radiance/layers.py",
"comfy/ldm/chroma_radiance/model.py",
"comfy/ldm/cogvideo/__init__.py",
"comfy/ldm/cogvideo/model.py",
"comfy/ldm/cogvideo/vae.py",
"comfy/ldm/colormap.py",
"comfy/ldm/common_dit.py",
"comfy/ldm/cosmos/blocks.py",
"comfy/ldm/cosmos/cosmos_tokenizer/layers3d.py",
"comfy/ldm/cosmos/cosmos_tokenizer/patching.py",
"comfy/ldm/cosmos/cosmos_tokenizer/utils.py",
"comfy/ldm/cosmos/model.py",
"comfy/ldm/cosmos/position_embedding.py",
"comfy/ldm/cosmos/predict2.py",
"comfy/ldm/cosmos/vae.py",
"comfy/ldm/depth_anything_3/camera.py",
"comfy/ldm/depth_anything_3/dpt.py",
"comfy/ldm/depth_anything_3/model.py",
"comfy/ldm/depth_anything_3/preprocess.py",
"comfy/ldm/depth_anything_3/ray_pose.py",
"comfy/ldm/depth_anything_3/reference_view_selector.py",
"comfy/ldm/depth_anything_3/transform.py",
"comfy/ldm/ernie/model.py",
"comfy/ldm/flux/controlnet.py",
"comfy/ldm/flux/layers.py",
"comfy/ldm/flux/math.py",
"comfy/ldm/flux/model.py",
"comfy/ldm/flux/redux.py",
"comfy/ldm/genmo/joint_model/asymm_models_joint.py",
"comfy/ldm/genmo/joint_model/layers.py",
"comfy/ldm/genmo/joint_model/rope_mixed.py",
"comfy/ldm/genmo/joint_model/temporal_rope.py",
"comfy/ldm/genmo/joint_model/utils.py",
"comfy/ldm/genmo/vae/model.py",
"comfy/ldm/hidream/model.py",
"comfy/ldm/hidream_o1/attention.py",
"comfy/ldm/hidream_o1/conditioning.py",
"comfy/ldm/hidream_o1/model.py",
"comfy/ldm/hidream_o1/utils.py",
"comfy/ldm/hunyuan3d/model.py",
"comfy/ldm/hunyuan3d/vae.py",
"comfy/ldm/hunyuan3dv2_1/hunyuandit.py",
"comfy/ldm/hunyuan_video/model.py",
"comfy/ldm/hunyuan_video/upsampler.py",
"comfy/ldm/hunyuan_video/vae.py",
"comfy/ldm/hunyuan_video/vae_refiner.py",
"comfy/ldm/hydit/attn_layers.py",
"comfy/ldm/hydit/controlnet.py",
"comfy/ldm/hydit/models.py",
"comfy/ldm/hydit/poolers.py",
"comfy/ldm/hydit/posemb_layers.py",
"comfy/ldm/ideogram4/model.py",
"comfy/ldm/kandinsky5/model.py",
"comfy/ldm/krea2/model.py",
"comfy/ldm/lens/model.py",
"comfy/ldm/lightricks/av_model.py",
"comfy/ldm/lightricks/embeddings_connector.py",
"comfy/ldm/lightricks/latent_upsampler.py",
"comfy/ldm/lightricks/model.py",
"comfy/ldm/lightricks/symmetric_patchifier.py",
"comfy/ldm/lightricks/vae/audio_vae.py",
"comfy/ldm/lightricks/vae/causal_audio_autoencoder.py",
"comfy/ldm/lightricks/vae/causal_conv3d.py",
"comfy/ldm/lightricks/vae/causal_video_autoencoder.py",
"comfy/ldm/lightricks/vae/conv_nd_factory.py",
"comfy/ldm/lightricks/vae/dual_conv3d.py",
"comfy/ldm/lightricks/vae/pixel_norm.py",
"comfy/ldm/lightricks/vocoders/vocoder.py",
"comfy/ldm/lumina/controlnet.py",
"comfy/ldm/lumina/model.py",
"comfy/ldm/mmaudio/vae/__init__.py",
"comfy/ldm/mmaudio/vae/activations.py",
"comfy/ldm/mmaudio/vae/alias_free_torch.py",
"comfy/ldm/mmaudio/vae/autoencoder.py",
"comfy/ldm/mmaudio/vae/bigvgan.py",
"comfy/ldm/mmaudio/vae/distributions.py",
"comfy/ldm/mmaudio/vae/vae.py",
"comfy/ldm/mmaudio/vae/vae_modules.py",
"comfy/ldm/models/autoencoder.py",
"comfy/ldm/modules/attention.py",
"comfy/ldm/modules/diffusionmodules/__init__.py",
"comfy/ldm/modules/diffusionmodules/mmdit.py",
"comfy/ldm/modules/diffusionmodules/model.py",
"comfy/ldm/modules/diffusionmodules/openaimodel.py",
"comfy/ldm/modules/diffusionmodules/upscaling.py",
"comfy/ldm/modules/diffusionmodules/util.py",
"comfy/ldm/modules/distributions/__init__.py",
"comfy/ldm/modules/distributions/distributions.py",
"comfy/ldm/modules/ema.py",
"comfy/ldm/modules/encoders/__init__.py",
"comfy/ldm/modules/encoders/noise_aug_modules.py",
"comfy/ldm/modules/sdpose.py",
"comfy/ldm/modules/sub_quadratic_attention.py",
"comfy/ldm/modules/temporal_ae.py",
"comfy/ldm/moge/geometry.py",
"comfy/ldm/moge/model.py",
"comfy/ldm/moge/modules.py",
"comfy/ldm/moge/panorama.py",
"comfy/ldm/omnigen/omnigen2.py",
"comfy/ldm/pixart/blocks.py",
"comfy/ldm/pixart/pixartms.py",
"comfy/ldm/pixeldit/model.py",
"comfy/ldm/pixeldit/modules.py",
"comfy/ldm/pixeldit/pid.py",
"comfy/ldm/qwen_image/controlnet.py",
"comfy/ldm/qwen_image/model.py",
"comfy/ldm/rt_detr/rtdetr_v4.py",
"comfy/ldm/sam3/detector.py",
"comfy/ldm/sam3/sam.py",
"comfy/ldm/sam3/tracker.py",
"comfy/ldm/seedvr/attention.py",
"comfy/ldm/seedvr/color_fix.py",
"comfy/ldm/seedvr/constants.py",
"comfy/ldm/seedvr/model.py",
"comfy/ldm/seedvr/vae.py",
"comfy/ldm/supir/__init__.py",
"comfy/ldm/supir/supir_modules.py",
"comfy/ldm/supir/supir_patch.py",
"comfy/ldm/triposplat/gaussian.py",
"comfy/ldm/triposplat/model.py",
"comfy/ldm/triposplat/preview.py",
"comfy/ldm/triposplat/vae.py",
"comfy/ldm/util.py",
"comfy/ldm/wan/ar_model.py",
"comfy/ldm/wan/model.py",
"comfy/ldm/wan/model_animate.py",
"comfy/ldm/wan/model_multitalk.py",
"comfy/ldm/wan/model_wandancer.py",
"comfy/ldm/wan/vae.py",
"comfy/ldm/wan/vae2_2.py",
"comfy/lora.py",
"comfy/lora_convert.py",
"comfy/memory_management.py",
"comfy/model_base.py",
"comfy/model_detection.py",
"comfy/model_management.py",
"comfy/model_patcher.py",
"comfy/model_prefetch.py",
"comfy/model_sampling.py",
"comfy/multigpu.py",
"comfy/nested_tensor.py",
"comfy/ops.py",
"comfy/options.py",
"comfy/patcher_extension.py",
"comfy/pinned_memory.py",
"comfy/pixel_space_convert.py",
"comfy/quant_ops.py",
"comfy/rmsnorm.py",
"comfy/sample.py",
"comfy/sampler_helpers.py",
"comfy/samplers.py",
"comfy/sd.py",
"comfy/sd1_clip.py",
"comfy/sd1_tokenizer/merges.txt",
"comfy/sdxl_clip.py",
"comfy/supported_models.py",
"comfy/supported_models_base.py",
"comfy/t2i_adapter/adapter.py",
"comfy/taesd/taehv.py",
"comfy/taesd/taesd.py",
"comfy/text_encoders/ace.py",
"comfy/text_encoders/ace15.py",
"comfy/text_encoders/ace_text_cleaners.py",
"comfy/text_encoders/anima.py",
"comfy/text_encoders/aura_t5.py",
"comfy/text_encoders/bert.py",
"comfy/text_encoders/boogu.py",
"comfy/text_encoders/cogvideo.py",
"comfy/text_encoders/cosmos.py",
"comfy/text_encoders/ernie.py",
"comfy/text_encoders/flux.py",
"comfy/text_encoders/gemma4.py",
"comfy/text_encoders/genmo.py",
"comfy/text_encoders/gpt_oss.py",
"comfy/text_encoders/hidream.py",
"comfy/text_encoders/hidream_o1.py",
"comfy/text_encoders/hunyuan_image.py",
"comfy/text_encoders/hunyuan_video.py",
"comfy/text_encoders/hydit.py",
"comfy/text_encoders/hydit_clip_tokenizer/vocab.txt",
"comfy/text_encoders/ideogram4.py",
"comfy/text_encoders/jina_clip_2.py",
"comfy/text_encoders/kandinsky5.py",
"comfy/text_encoders/krea2.py",
"comfy/text_encoders/llama.py",
"comfy/text_encoders/long_clipl.py",
"comfy/text_encoders/longcat_image.py",
"comfy/text_encoders/lt.py",
"comfy/text_encoders/lumina2.py",
"comfy/text_encoders/newbie.py",
"comfy/text_encoders/omnigen2.py",
"comfy/text_encoders/ovis.py",
"comfy/text_encoders/pixart_t5.py",
"comfy/text_encoders/pixeldit.py",
"comfy/text_encoders/qwen25_tokenizer/merges.txt",
"comfy/text_encoders/qwen35.py",
"comfy/text_encoders/qwen35_tokenizer/merges.txt",
"comfy/text_encoders/qwen3vl.py",
"comfy/text_encoders/qwen_image.py",
"comfy/text_encoders/qwen_vl.py",
"comfy/text_encoders/sa3.py",
"comfy/text_encoders/sa_t5.py",
"comfy/text_encoders/sam3_clip.py",
"comfy/text_encoders/sd2_clip.py",
"comfy/text_encoders/sd3_clip.py",
"comfy/text_encoders/spiece_tokenizer.py",
"comfy/text_encoders/t5.py",
"comfy/text_encoders/wan.py",
"comfy/text_encoders/z_image.py",
"comfy/utils.py",
"comfy/weight_adapter/__init__.py",
"comfy/weight_adapter/base.py",
"comfy/weight_adapter/boft.py",
"comfy/weight_adapter/bypass.py",
"comfy/weight_adapter/glora.py",
"comfy/weight_adapter/loha.py",
"comfy/weight_adapter/lokr.py",
"comfy/weight_adapter/lora.py",
"comfy/weight_adapter/oft.py",
"comfy_api/feature_flags.py",
"comfy_api/generate_api_stubs.py",
"comfy_api/input/__init__.py",
"comfy_api/input/basic_types.py",
"comfy_api/input/video_types.py",
"comfy_api/input_impl/__init__.py",
"comfy_api/input_impl/video_types.py",
"comfy_api/internal/__init__.py",
"comfy_api/internal/api_registry.py",
"comfy_api/internal/async_to_sync.py",
"comfy_api/internal/singleton.py",
"comfy_api/latest/__init__.py",
"comfy_api/latest/_caching.py",
"comfy_api/latest/_input/__init__.py",
"comfy_api/latest/_input/basic_types.py",
"comfy_api/latest/_input/curve_types.py",
"comfy_api/latest/_input/range_types.py",
"comfy_api/latest/_input/video_types.py",
"comfy_api/latest/_input_impl/__init__.py",
"comfy_api/latest/_input_impl/video_types.py",
"comfy_api/latest/_io.py",
"comfy_api/latest/_io_public.py",
"comfy_api/latest/_ui.py",
"comfy_api/latest/_ui_public.py",
"comfy_api/latest/_util/__init__.py",
"comfy_api/latest/_util/geometry_types.py",
"comfy_api/latest/_util/image_types.py",
"comfy_api/latest/_util/video_types.py",
"comfy_api/torch_helpers/__init__.py",
"comfy_api/torch_helpers/torch_compile.py",
"comfy_api/util.py",
"comfy_api/util/__init__.py",
"comfy_api/util/video_types.py",
"comfy_api/v0_0_1/__init__.py",
"comfy_api/v0_0_2/__init__.py",
"comfy_api/version_list.py",
"comfy_api_nodes/__init__.py",
"comfy_api_nodes/apis/__init__.py",
"comfy_api_nodes/apis/anthropic.py",
"comfy_api_nodes/apis/beeble.py",
"comfy_api_nodes/apis/bfl.py",
"comfy_api_nodes/apis/bria.py",
"comfy_api_nodes/apis/bytedance.py",
"comfy_api_nodes/apis/bytedance_llm.py",
"comfy_api_nodes/apis/elevenlabs.py",
"comfy_api_nodes/apis/gemini.py",
"comfy_api_nodes/apis/grok.py",
"comfy_api_nodes/apis/hitpaw.py",
"comfy_api_nodes/apis/hunyuan3d.py",
"comfy_api_nodes/apis/ideogram.py",
"comfy_api_nodes/apis/kling.py",
"comfy_api_nodes/apis/krea.py",
"comfy_api_nodes/apis/luma.py",
"comfy_api_nodes/apis/magnific.py",
"comfy_api_nodes/apis/meshy.py",
"comfy_api_nodes/apis/minimax.py",
"comfy_api_nodes/apis/openai.py",
"comfy_api_nodes/apis/openrouter.py",
"comfy_api_nodes/apis/pixverse.py",
"comfy_api_nodes/apis/quiver.py",
"comfy_api_nodes/apis/recraft.py",
"comfy_api_nodes/apis/reve.py",
"comfy_api_nodes/apis/rodin.py",
"comfy_api_nodes/apis/runway.py",
"comfy_api_nodes/apis/sync_so.py",
"comfy_api_nodes/apis/topaz.py",
"comfy_api_nodes/apis/tripo.py",
"comfy_api_nodes/apis/veo.py",
"comfy_api_nodes/apis/vidu.py",
"comfy_api_nodes/apis/wan.py",
"comfy_api_nodes/apis/wavespeed.py",
"comfy_api_nodes/nodes_anthropic.py",
"comfy_api_nodes/nodes_beeble.py",
"comfy_api_nodes/nodes_bfl.py",
"comfy_api_nodes/nodes_bria.py",
"comfy_api_nodes/nodes_bytedance.py",
"comfy_api_nodes/nodes_bytedance_llm.py",
"comfy_api_nodes/nodes_elevenlabs.py",
"comfy_api_nodes/nodes_gemini.py",
"comfy_api_nodes/nodes_grok.py",
"comfy_api_nodes/nodes_hitpaw.py",
"comfy_api_nodes/nodes_hunyuan3d.py",
"comfy_api_nodes/nodes_ideogram.py",
"comfy_api_nodes/nodes_kling.py",
"comfy_api_nodes/nodes_krea.py",
"comfy_api_nodes/nodes_ltxv.py",
"comfy_api_nodes/nodes_luma.py",
"comfy_api_nodes/nodes_magnific.py",
"comfy_api_nodes/nodes_meshy.py",
"comfy_api_nodes/nodes_minimax.py",
"comfy_api_nodes/nodes_openai.py",
"comfy_api_nodes/nodes_openrouter.py",
"comfy_api_nodes/nodes_pixverse.py",
"comfy_api_nodes/nodes_quiver.py",
"comfy_api_nodes/nodes_recraft.py",
"comfy_api_nodes/nodes_reve.py",
"comfy_api_nodes/nodes_rodin.py",
"comfy_api_nodes/nodes_runway.py",
"comfy_api_nodes/nodes_sonilo.py",
"comfy_api_nodes/nodes_sora.py",
"comfy_api_nodes/nodes_sync_so.py",
"comfy_api_nodes/nodes_topaz.py",
"comfy_api_nodes/nodes_tripo.py",
"comfy_api_nodes/nodes_veo2.py",
"comfy_api_nodes/nodes_vidu.py",
"comfy_api_nodes/nodes_wan.py",
"comfy_api_nodes/nodes_wavespeed.py",
"comfy_api_nodes/util/__init__.py",
"comfy_api_nodes/util/_helpers.py",
"comfy_api_nodes/util/client.py",
"comfy_api_nodes/util/common_exceptions.py",
"comfy_api_nodes/util/conversions.py",
"comfy_api_nodes/util/download_helpers.py",
"comfy_api_nodes/util/request_logger.py",
"comfy_api_nodes/util/upload_helpers.py",
"comfy_api_nodes/util/validation_utils.py",
"comfy_config/config_parser.py",
"comfy_config/types.py",
"comfy_execution/asset_enrichment.py",
"comfy_execution/cache_provider.py",
"comfy_execution/caching.py",
"comfy_execution/graph.py",
"comfy_execution/graph_utils.py",
"comfy_execution/jobs.py",
"comfy_execution/progress.py",
"comfy_execution/utils.py",
"comfy_execution/validation.py",
"comfy_extras/chainner_models/model_loading.py",
"comfy_extras/color_util.py",
"comfy_extras/frame_interpolation_models/film_net.py",
"comfy_extras/frame_interpolation_models/ifnet.py",
"comfy_extras/mediapipe/face_geometry.py",
"comfy_extras/mediapipe/face_landmarker.py",
"comfy_extras/nodes_ace.py",
"comfy_extras/nodes_advanced_samplers.py",
"comfy_extras/nodes_align_your_steps.py",
"comfy_extras/nodes_apg.py",
"comfy_extras/nodes_ar_video.py",
"comfy_extras/nodes_attention_multiply.py",
"comfy_extras/nodes_audio.py",
"comfy_extras/nodes_audio_encoder.py",
"comfy_extras/nodes_bernini.py",
"comfy_extras/nodes_bg_removal.py",
"comfy_extras/nodes_boogu.py",
"comfy_extras/nodes_bounding_boxes.py",
"comfy_extras/nodes_camera_trajectory.py",
"comfy_extras/nodes_canny.py",
"comfy_extras/nodes_cfg.py",
"comfy_extras/nodes_chroma_radiance.py",
"comfy_extras/nodes_clip_sdxl.py",
"comfy_extras/nodes_color.py",
"comfy_extras/nodes_compositing.py",
"comfy_extras/nodes_cond.py",
"comfy_extras/nodes_context_windows.py",
"comfy_extras/nodes_controlnet.py",
"comfy_extras/nodes_cosmos.py",
"comfy_extras/nodes_curve.py",
"comfy_extras/nodes_custom_sampler.py",
"comfy_extras/nodes_dataset.py",
"comfy_extras/nodes_depth_anything_3.py",
"comfy_extras/nodes_differential_diffusion.py",
"comfy_extras/nodes_easycache.py",
"comfy_extras/nodes_edit_model.py",
"comfy_extras/nodes_eps.py",
"comfy_extras/nodes_flux.py",
"comfy_extras/nodes_frame_interpolation.py",
"comfy_extras/nodes_freelunch.py",
"comfy_extras/nodes_fresca.py",
"comfy_extras/nodes_gaussian_splat.py",
"comfy_extras/nodes_gits.py",
"comfy_extras/nodes_glsl.py",
"comfy_extras/nodes_hidream.py",
"comfy_extras/nodes_hidream_o1.py",
"comfy_extras/nodes_hooks.py",
"comfy_extras/nodes_hunyuan.py",
"comfy_extras/nodes_hunyuan3d.py",
"comfy_extras/nodes_hypernetwork.py",
"comfy_extras/nodes_hypertile.py",
"comfy_extras/nodes_ideogram4.py",
"comfy_extras/nodes_image_compare.py",
"comfy_extras/nodes_images.py",
"comfy_extras/nodes_ip2p.py",
"comfy_extras/nodes_json_prompt.py",
"comfy_extras/nodes_kandinsky5.py",
"comfy_extras/nodes_latent.py",
"comfy_extras/nodes_load_3d.py",
"comfy_extras/nodes_logic.py",
"comfy_extras/nodes_lora_debug.py",
"comfy_extras/nodes_lora_extract.py",
"comfy_extras/nodes_lotus.py",
"comfy_extras/nodes_lt.py",
"comfy_extras/nodes_lt_audio.py",
"comfy_extras/nodes_lt_upsampler.py",
"comfy_extras/nodes_lumina2.py",
"comfy_extras/nodes_mahiro.py",
"comfy_extras/nodes_mask.py",
"comfy_extras/nodes_math.py",
"comfy_extras/nodes_mediapipe.py",
"comfy_extras/nodes_mochi.py",
"comfy_extras/nodes_model_advanced.py",
"comfy_extras/nodes_model_downscale.py",
"comfy_extras/nodes_model_merging.py",
"comfy_extras/nodes_model_merging_model_specific.py",
"comfy_extras/nodes_model_patch.py",
"comfy_extras/nodes_moge.py",
"comfy_extras/nodes_morphology.py",
"comfy_extras/nodes_multigpu.py",
"comfy_extras/nodes_nag.py",
"comfy_extras/nodes_nop.py",
"comfy_extras/nodes_number_convert.py",
"comfy_extras/nodes_optimalsteps.py",
"comfy_extras/nodes_pag.py",
"comfy_extras/nodes_painter.py",
"comfy_extras/nodes_perpneg.py",
"comfy_extras/nodes_photomaker.py",
"comfy_extras/nodes_pid.py",
"comfy_extras/nodes_pixart.py",
"comfy_extras/nodes_post_processing.py",
"comfy_extras/nodes_preview_any.py",
"comfy_extras/nodes_primitive.py",
"comfy_extras/nodes_qwen.py",
"comfy_extras/nodes_rebatch.py",
"comfy_extras/nodes_replacements.py",
"comfy_extras/nodes_resolution.py",
"comfy_extras/nodes_rope.py",
"comfy_extras/nodes_rtdetr.py",
"comfy_extras/nodes_sag.py",
"comfy_extras/nodes_sam3.py",
"comfy_extras/nodes_save_3d.py",
"comfy_extras/nodes_scail.py",
"comfy_extras/nodes_sd3.py",
"comfy_extras/nodes_sdpose.py",
"comfy_extras/nodes_sdupscale.py",
"comfy_extras/nodes_seed.py",
"comfy_extras/nodes_seedvr.py",
"comfy_extras/nodes_slg.py",
"comfy_extras/nodes_stable3d.py",
"comfy_extras/nodes_stable_cascade.py",
"comfy_extras/nodes_string.py",
"comfy_extras/nodes_tcfg.py",
"comfy_extras/nodes_text.py",
"comfy_extras/nodes_text_overlay.py",
"comfy_extras/nodes_textgen.py",
"comfy_extras/nodes_tomesd.py",
"comfy_extras/nodes_toolkit.py",
"comfy_extras/nodes_torch_compile.py",
"comfy_extras/nodes_train.py",
"comfy_extras/nodes_triposplat.py",
"comfy_extras/nodes_upscale_model.py",
"comfy_extras/nodes_video.py",
"comfy_extras/nodes_video_model.py",
"comfy_extras/nodes_void.py",
"comfy_extras/nodes_wan.py",
"comfy_extras/nodes_wandancer.py",
"comfy_extras/nodes_wanmove.py",
"comfy_extras/nodes_webcam.py",
"comfy_extras/nodes_zimage.py",
"comfy_extras/void_noise_warp.py",
"comfyui_version.py",
"cuda_malloc.py",
"custom_nodes/websocket_image_save.py",
"execution.py",
"folder_paths.py",
"hook_breaker_ac10a0.py",
"latent_preview.py",
"main.py",
"manager_requirements.txt",
"middleware/__init__.py",
"middleware/cache_middleware.py",
"node_helpers.py",
"nodes.py",
"protocol.py",
"pyproject.toml",
"requirements.txt",
"script_examples/basic_api_example.py",
"script_examples/websockets_api_example.py",
"script_examples/websockets_api_example_ws_images.py",
"server.py",
"tests-unit/README.md",
"tests-unit/app_test/__init__.py",
"tests-unit/app_test/custom_node_manager_test.py",
"tests-unit/app_test/frontend_manager_test.py",
"tests-unit/app_test/model_manager_test.py",
"tests-unit/app_test/node_replace_manager_test.py",
"tests-unit/app_test/test_migrations.py",
"tests-unit/app_test/user_manager_system_user_test.py",
"tests-unit/assets_test/conftest.py",
"tests-unit/assets_test/helpers.py",
"tests-unit/assets_test/queries/conftest.py",
"tests-unit/assets_test/queries/test_asset.py",
"tests-unit/assets_test/queries/test_asset_info.py",
"tests-unit/assets_test/queries/test_asset_reference_keyset.py",
"tests-unit/assets_test/queries/test_cache_state.py",
"tests-unit/assets_test/queries/test_metadata.py",
"tests-unit/assets_test/queries/test_tags.py",
"tests-unit/assets_test/services/__init__.py",
"tests-unit/assets_test/services/conftest.py",
"tests-unit/assets_test/services/test_asset_management.py",
"tests-unit/assets_test/services/test_asset_response_loader_path.py",
"tests-unit/assets_test/services/test_bulk_ingest.py",
"tests-unit/assets_test/services/test_cursor.py",
"tests-unit/assets_test/services/test_enrich.py",
"tests-unit/assets_test/services/test_image_dimensions.py",
"tests-unit/assets_test/services/test_ingest.py",
"tests-unit/assets_test/services/test_path_utils.py",
"tests-unit/assets_test/services/test_tag_histogram.py",
"tests-unit/assets_test/services/test_tagging.py",
"tests-unit/assets_test/test_assets_missing_sync.py",
"tests-unit/assets_test/test_crud.py",
"tests-unit/assets_test/test_downloads.py",
"tests-unit/assets_test/test_file_utils.py",
"tests-unit/assets_test/test_list_cursor.py",
"tests-unit/assets_test/test_list_filter.py",
"tests-unit/assets_test/test_metadata_filters.py",
"tests-unit/assets_test/test_prompt_id_enforcement.py",
"tests-unit/assets_test/test_prune_orphaned_assets.py",
"tests-unit/assets_test/test_sync_references.py",
"tests-unit/assets_test/test_tags_api.py",
"tests-unit/assets_test/test_uploads.py",
"tests-unit/comfy_api_test/input_impl_test.py",
"tests-unit/comfy_api_test/multicombo_serialization_test.py",
"tests-unit/comfy_api_test/video_bit_depth_test.py",
"tests-unit/comfy_api_test/video_types_test.py",
"tests-unit/comfy_extras_test/__init__.py",
"tests-unit/comfy_extras_test/image_stitch_test.py",
"tests-unit/comfy_extras_test/nodes_math_test.py",
"tests-unit/comfy_extras_test/nodes_number_convert_test.py",
"tests-unit/comfy_extras_test/test_seedvr2_conditioning.py",
"tests-unit/comfy_extras_test/test_seedvr2_nodes.py",
"tests-unit/comfy_extras_test/test_seedvr2_post_processing.py",
"tests-unit/comfy_extras_test/test_seedvr2_temporal_chunk.py",
"tests-unit/comfy_quant/test_mixed_precision.py",
"tests-unit/comfy_test/folder_path_test.py",
"tests-unit/comfy_test/model_detection_test.py",
"tests-unit/comfy_test/seedvr_vae_forward_test.py",
"tests-unit/comfy_test/test_seedvr2_dtype.py",
"tests-unit/comfy_test/test_seedvr2_internals.py",
"tests-unit/comfy_test/test_seedvr2_model.py",
"tests-unit/comfy_test/test_seedvr2_vae_decode.py",
"tests-unit/comfy_test/test_seedvr2_vae_tiled.py",
"tests-unit/deploy_environment_test.py",
"tests-unit/execution_test/preview_method_override_test.py",
"tests-unit/execution_test/test_cache_provider.py",
"tests-unit/execution_test/test_enrich_output.py",
"tests-unit/execution_test/validate_node_input_test.py",
"tests-unit/feature_flags_test.py",
"tests-unit/folder_paths_test/__init__.py",
"tests-unit/folder_paths_test/filter_by_content_types_test.py",
"tests-unit/folder_paths_test/misc_test.py",
"tests-unit/folder_paths_test/system_user_test.py",
"tests-unit/jobs_cancel_test/__init__.py",
"tests-unit/jobs_cancel_test/jobs_cancel_test.py",
"tests-unit/prompt_server_test/__init__.py",
"tests-unit/prompt_server_test/system_user_endpoint_test.py",
"tests-unit/prompt_server_test/user_manager_test.py",
"tests-unit/requirements.txt",
"tests-unit/security_test/__init__.py",
"tests-unit/security_test/test_ghsa_779p_02_preview_traversal.py",
"tests-unit/security_test/test_ghsa_779p_03_annotated_traversal.py",
"tests-unit/security_test/test_ghsa_779p_04_userdata_xss.py",
"tests-unit/security_test/test_ghsa_779p_05_dangerous_content_types.py",
"tests-unit/seeder_test/test_seeder.py",
"tests-unit/server/utils/file_operations_test.py",
"tests-unit/server_test/test_cache_control.py",
"tests-unit/utils/extra_config_test.py",
"tests-unit/utils/json_util_test.py",
"tests-unit/websocket_feature_flags_test.py",
"tests/README.md",
"tests/__init__.py",
"tests/compare/conftest.py",
"tests/compare/test_quality.py",
"tests/conftest.py",
"tests/execution/test_async_nodes.py",
"tests/execution/test_execution.py",
"tests/execution/test_jobs.py",
"tests/execution/test_preview_method.py",
"tests/execution/test_progress_isolation.py",
"tests/execution/test_public_api.py",
"tests/execution/testing_nodes/testing-pack/__init__.py",
"tests/execution/testing_nodes/testing-pack/api_test_nodes.py",
"tests/execution/testing_nodes/testing-pack/async_test_nodes.py",
"tests/execution/testing_nodes/testing-pack/conditions.py",
"tests/execution/testing_nodes/testing-pack/flow_control.py",
"tests/execution/testing_nodes/testing-pack/specific_tests.py",
"tests/execution/testing_nodes/testing-pack/stubs.py",
"tests/execution/testing_nodes/testing-pack/tools.py",
"tests/execution/testing_nodes/testing-pack/util.py",
"tests/inference/__init__.py",
"tests/inference/test_inference.py",
"tests/test_asset_seeder.py",
"utils/__init__.py",
"utils/extra_config.py",
"utils/install_util.py",
"utils/json_util.py",
"utils/mime_types.py"
]
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -0,0 +1,516 @@
import re
import json
import string
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
class StringFormat(io.ComfyNode):
@classmethod
def define_schema(cls) -> io.Schema:
autogrow = io.Autogrow.TemplateNames(
input=io.AnyType.Input("value"),
names=list(string.ascii_lowercase),
min=0,
)
return io.Schema(
node_id="StringFormat",
display_name="Format Text",
category="text",
search_aliases=["string", "format"],
description="Same as Python's string format method. Supports all of Python's format options and features.",
inputs=[
io.Autogrow.Input("values", template=autogrow),
io.String.Input("f_string", default="{a}", multiline=True),
],
outputs=[
io.String.Output(),
],
)
@classmethod
def execute(
cls, values: io.Autogrow.Type, f_string: str
) -> io.NodeOutput:
return io.NodeOutput(f_string.format(**values))
class StringConcatenate(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringConcatenate",
search_aliases=["concatenate", "text concat", "join text", "merge text", "combine strings", "string concat", "append text", "combine text"],
display_name="Concatenate Text",
category="text",
inputs=[
io.String.Input("string_a", multiline=True),
io.String.Input("string_b", multiline=True),
io.String.Input("delimiter", multiline=False, default=""),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string_a, string_b, delimiter):
return io.NodeOutput(delimiter.join((string_a, string_b)))
class StringSubstring(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringSubstring",
search_aliases=["substring", "extract text", "text portion"],
display_name="Substring",
category="text",
inputs=[
io.String.Input("string", multiline=True),
io.Int.Input("start"),
io.Int.Input("end"),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, start, end):
return io.NodeOutput(string[start:end])
class StringLength(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringLength",
search_aliases=["character count", "text size", "string length"],
display_name="Text Length",
category="text",
inputs=[
io.String.Input("string", multiline=True),
],
outputs=[
io.Int.Output(display_name="length"),
]
)
@classmethod
def execute(cls, string):
return io.NodeOutput(len(string))
class CaseConverter(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CaseConverter",
search_aliases=["case converter", "text case", "uppercase", "lowercase", "capitalize"],
display_name="Convert Text Case",
category="text",
inputs=[
io.String.Input("string", multiline=True),
io.Combo.Input("mode", options=["UPPERCASE", "lowercase", "Capitalize", "Title Case"]),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, mode):
if mode == "UPPERCASE":
result = string.upper()
elif mode == "lowercase":
result = string.lower()
elif mode == "Capitalize":
result = string.capitalize()
elif mode == "Title Case":
result = string.title()
else:
result = string
return io.NodeOutput(result)
class StringTrim(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringTrim",
search_aliases=["trim", "clean whitespace", "remove whitespace", "remove spaces","strip"],
display_name="Trim Text",
category="text",
inputs=[
io.String.Input("string", multiline=True),
io.Combo.Input("mode", options=["Both", "Left", "Right"]),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, mode):
if mode == "Both":
result = string.strip()
elif mode == "Left":
result = string.lstrip()
elif mode == "Right":
result = string.rstrip()
else:
result = string
return io.NodeOutput(result)
class StringReplace(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringReplace",
search_aliases=["replace", "find and replace", "substitute", "swap text"],
display_name="Replace Text",
category="text",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("find", multiline=True),
io.String.Input("replace", multiline=True),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, find, replace):
return io.NodeOutput(string.replace(find, replace))
class StringContains(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringContains",
search_aliases=["contains", "text includes", "string includes"],
display_name="Contains Text",
category="text",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("substring", multiline=True),
io.Boolean.Input("case_sensitive", default=True, advanced=True),
],
outputs=[
io.Boolean.Output(display_name="contains"),
]
)
@classmethod
def execute(cls, string, substring, case_sensitive):
if case_sensitive:
contains = substring in string
else:
contains = substring.lower() in string.lower()
return io.NodeOutput(contains)
class StringCompare(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringCompare",
search_aliases=["compare", "text match", "string equals", "starts with", "ends with"],
display_name="Compare Text",
category="text",
inputs=[
io.String.Input("string_a", multiline=True),
io.String.Input("string_b", multiline=True),
io.Combo.Input("mode", options=["Starts With", "Ends With", "Equal"]),
io.Boolean.Input("case_sensitive", default=True, advanced=True),
],
outputs=[
io.Boolean.Output(),
]
)
@classmethod
def execute(cls, string_a, string_b, mode, case_sensitive):
if case_sensitive:
a = string_a
b = string_b
else:
a = string_a.lower()
b = string_b.lower()
if mode == "Equal":
return io.NodeOutput(a == b)
elif mode == "Starts With":
return io.NodeOutput(a.startswith(b))
elif mode == "Ends With":
return io.NodeOutput(a.endswith(b))
class RegexMatch(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexMatch",
search_aliases=["regex match", "regex", "pattern match", "text contains", "string match"],
display_name="Match Text",
category="text",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.Boolean.Input("case_insensitive", default=True, advanced=True),
io.Boolean.Input("multiline", default=False, advanced=True),
io.Boolean.Input("dotall", default=False, advanced=True),
],
outputs=[
io.Boolean.Output(display_name="matches"),
]
)
@classmethod
def execute(cls, string, regex_pattern, case_insensitive, multiline, dotall):
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
try:
match = re.search(regex_pattern, string, flags)
result = match is not None
except re.error:
result = False
return io.NodeOutput(result)
class RegexExtract(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexExtract",
search_aliases=["regex extract", "regex", "pattern extract", "text parser", "parse text"],
display_name="Extract Text",
category="text",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.Combo.Input("mode", options=["First Match", "All Matches", "First Group", "All Groups"]),
io.Boolean.Input("case_insensitive", default=True, advanced=True),
io.Boolean.Input("multiline", default=False, advanced=True),
io.Boolean.Input("dotall", default=False, advanced=True),
io.Int.Input("group_index", default=1, min=0, max=100, advanced=True),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, regex_pattern, mode, case_insensitive, multiline, dotall, group_index):
join_delimiter = "\n"
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
try:
if mode == "First Match":
match = re.search(regex_pattern, string, flags)
if match:
result = match.group(0)
else:
result = ""
elif mode == "All Matches":
matches = re.findall(regex_pattern, string, flags)
if matches:
if isinstance(matches[0], tuple):
result = join_delimiter.join([m[0] for m in matches])
else:
result = join_delimiter.join(matches)
else:
result = ""
elif mode == "First Group":
match = re.search(regex_pattern, string, flags)
if match and len(match.groups()) >= group_index:
result = match.group(group_index)
else:
result = ""
elif mode == "All Groups":
matches = re.finditer(regex_pattern, string, flags)
results = []
for match in matches:
if match.groups() and len(match.groups()) >= group_index:
results.append(match.group(group_index))
result = join_delimiter.join(results)
else:
result = ""
except re.error:
result = ""
return io.NodeOutput(result)
class RegexReplace(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexReplace",
search_aliases=["regex replace", "regex", "pattern replace", "substitution"],
display_name="Replace Text (Regex)",
category="text",
description="Find and replace text using regex patterns.",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.String.Input("replace", multiline=True),
io.Boolean.Input("case_insensitive", default=True, optional=True, advanced=True),
io.Boolean.Input("multiline", default=False, optional=True, advanced=True),
io.Boolean.Input("dotall", default=False, optional=True, advanced=True, tooltip="When enabled, the dot (.) character will match any character including newline characters. When disabled, dots won't match newlines."),
io.Int.Input("count", default=0, min=0, max=100, optional=True, advanced=True, tooltip="Maximum number of replacements to make. Set to 0 to replace all occurrences (default). Set to 1 to replace only the first match, 2 for the first two matches, etc."),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, regex_pattern, replace, case_insensitive=True, multiline=False, dotall=False, count=0):
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
result = re.sub(regex_pattern, replace, string, count=count, flags=flags)
return io.NodeOutput(result)
class JsonExtractString(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="JsonExtractString",
display_name="Extract Text from JSON",
category="text",
search_aliases=["json", "extract json", "parse json", "json value", "read json"],
inputs=[
io.String.Input("json_string", multiline=True),
io.String.Input("key", multiline=False),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, json_string, key):
try:
data = json.loads(json_string)
if isinstance(data, dict) and key in data:
value = data[key]
if value is None:
return io.NodeOutput("")
return io.NodeOutput(str(value))
return io.NodeOutput("")
except (json.JSONDecodeError, TypeError):
return io.NodeOutput("")
def _dump_json(value, indent):
return json.dumps(value, ensure_ascii=False, indent=indent or None)
class ConvertDictionaryToString(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ConvertDictionaryToString",
display_name="Convert Dictionary to String",
category="text",
search_aliases=["json", "dict to json", "stringify", "serialize", "dict to string"],
inputs=[
io.Dict.Input("dictionary"),
io.Int.Input("indent", default=2, min=0, max=8,
tooltip="Spaces per indent level. 0 produces compact single-line string."),
],
outputs=[
io.String.Output(),
],
)
@classmethod
def execute(cls, dictionary, indent=2):
return io.NodeOutput(_dump_json(dictionary, indent))
class ConvertArrayToString(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ConvertArrayToString",
display_name="Convert Array to String",
category="text",
search_aliases=["json", "list to json", "stringify", "serialize", "list to string", "array to json"],
inputs=[
io.Array.Input("array"),
io.Int.Input("indent", default=2, min=0, max=8,
tooltip="Spaces per indent level. 0 produces compact single-line string."),
],
outputs=[
io.String.Output(),
],
)
@classmethod
def execute(cls, array, indent=2):
return io.NodeOutput(_dump_json(array, indent))
class StringExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
StringFormat,
StringConcatenate,
StringSubstring,
StringLength,
CaseConverter,
StringTrim,
StringReplace,
StringContains,
StringCompare,
RegexMatch,
RegexExtract,
RegexReplace,
JsonExtractString,
ConvertDictionaryToString,
ConvertArrayToString,
]
async def comfy_entrypoint() -> StringExtension:
return StringExtension()
@@ -0,0 +1,37 @@
comfyui-frontend-package==1.45.21
comfyui-workflow-templates==0.11.9
comfyui-embedded-docs==0.5.8
torch
torchsde
torchvision
torchaudio
numpy>=1.25.0
einops
transformers>=4.50.3
tokenizers>=0.13.3
sentencepiece
safetensors>=0.4.2
aiohttp>=3.11.8
yarl>=1.18.0
pyyaml
Pillow
scipy
tqdm
psutil
alembic
SQLAlchemy>=2.0.0
filelock
av>=16.0.0
comfy-kitchen==0.2.20
comfy-aimdo==0.4.10
requests
simpleeval>=1.0.0
blake3
#non essential dependencies:
kornia>=0.7.1
spandrel
pydantic~=2.0
pydantic-settings~=2.0
PyOpenGL>=3.1.8
comfy-angle
@@ -0,0 +1,6 @@
tree 7681029b1caaf2b70e2db3b8969810a2c0305a12
parent 02cfc879a46d3bc079b7cdb925a18434906ef2d7
author fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1787872118 +0000
committer fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1787872118 +0000
ComfyUI v0.34.2
@@ -0,0 +1,2 @@
From https://github.com/Comfy-Org/ComfyUI
* tag v0.34.2 -> FETCH_HEAD
@@ -0,0 +1 @@
{"requested": "v0.34.2", "object": "169fcf35a2fc163fec31338b816503ddac0d3fcf", "commit": "169fcf35a2fc163fec31338b816503ddac0d3fcf"}
@@ -0,0 +1,6 @@
tree 7681029b1caaf2b70e2db3b8969810a2c0305a12
parent 02cfc879a46d3bc079b7cdb925a18434906ef2d7
author fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1787872118 +0000
committer fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1787872118 +0000
ComfyUI v0.34.2
@@ -0,0 +1,816 @@
[
".ci/update_windows/update.py",
".ci/windows_amd_base_files/README_VERY_IMPORTANT.txt",
".ci/windows_nvidia_base_files/README_VERY_IMPORTANT.txt",
".github/PULL_REQUEST_TEMPLATE/api-node.md",
"AGENTS.md",
"CONTRIBUTING.md",
"QUANTIZATION.md",
"README.md",
"SECURITY.md",
"alembic_db/README.md",
"alembic_db/env.py",
"alembic_db/versions/0001_assets.py",
"alembic_db/versions/0002_merge_to_asset_references.py",
"alembic_db/versions/0003_add_metadata_job_id.py",
"alembic_db/versions/0004_drop_tag_type.py",
"alembic_db/versions/0005_allow_case_sensitive_tags.py",
"alembic_db/versions/0006_add_loader_path.py",
"api_server/__init__.py",
"api_server/routes/__init__.py",
"api_server/routes/internal/README.md",
"api_server/routes/internal/__init__.py",
"api_server/routes/internal/internal_routes.py",
"api_server/services/__init__.py",
"api_server/services/terminal_service.py",
"api_server/utils/file_operations.py",
"app/__init__.py",
"app/app_settings.py",
"app/assets/api/routes.py",
"app/assets/api/schemas_in.py",
"app/assets/api/schemas_out.py",
"app/assets/api/upload.py",
"app/assets/database/models.py",
"app/assets/database/queries/__init__.py",
"app/assets/database/queries/asset.py",
"app/assets/database/queries/asset_reference.py",
"app/assets/database/queries/common.py",
"app/assets/database/queries/tags.py",
"app/assets/helpers.py",
"app/assets/scanner.py",
"app/assets/seeder.py",
"app/assets/services/__init__.py",
"app/assets/services/asset_management.py",
"app/assets/services/bulk_ingest.py",
"app/assets/services/cursor.py",
"app/assets/services/file_utils.py",
"app/assets/services/hashing.py",
"app/assets/services/image_dimensions.py",
"app/assets/services/ingest.py",
"app/assets/services/metadata_extract.py",
"app/assets/services/path_utils.py",
"app/assets/services/schemas.py",
"app/assets/services/tagging.py",
"app/custom_node_manager.py",
"app/database/db.py",
"app/database/models.py",
"app/frontend_management.py",
"app/logger.py",
"app/model_manager.py",
"app/node_replace_manager.py",
"app/subgraph_manager.py",
"app/user_manager.py",
"blueprints/.glsl/README.md",
"blueprints/.glsl/update_blueprints.py",
"comfy/audio_encoders/audio_encoders.py",
"comfy/audio_encoders/wav2vec2.py",
"comfy/audio_encoders/whisper.py",
"comfy/background_removal/birefnet.py",
"comfy/bg_removal_model.py",
"comfy/cldm/cldm.py",
"comfy/cldm/control_types.py",
"comfy/cldm/dit_embedder.py",
"comfy/cldm/mmdit.py",
"comfy/cli_args.py",
"comfy/clip_model.py",
"comfy/clip_vision.py",
"comfy/comfy_api_env.py",
"comfy/comfy_types/README.md",
"comfy/comfy_types/__init__.py",
"comfy/comfy_types/examples/example_nodes.py",
"comfy/comfy_types/node_typing.py",
"comfy/conds.py",
"comfy/context_windows.py",
"comfy/controlnet.py",
"comfy/deploy_environment.py",
"comfy/diffusers_convert.py",
"comfy/diffusers_load.py",
"comfy/extra_samplers/uni_pc.py",
"comfy/float.py",
"comfy/gligen.py",
"comfy/hooks.py",
"comfy/image_encoders/dino2.py",
"comfy/image_encoders/dino3.py",
"comfy/image_encoders/naf.py",
"comfy/internal_logging.py",
"comfy/k_diffusion/deis.py",
"comfy/k_diffusion/sa_solver.py",
"comfy/k_diffusion/sampling.py",
"comfy/k_diffusion/utils.py",
"comfy/latent_formats.py",
"comfy/ldm/ace/ace_step15.py",
"comfy/ldm/ace/attention.py",
"comfy/ldm/ace/lyric_encoder.py",
"comfy/ldm/ace/model.py",
"comfy/ldm/ace/vae/autoencoder_dc.py",
"comfy/ldm/ace/vae/music_dcae_pipeline.py",
"comfy/ldm/ace/vae/music_log_mel.py",
"comfy/ldm/ace/vae/music_vocoder.py",
"comfy/ldm/anima/lllite.py",
"comfy/ldm/anima/model.py",
"comfy/ldm/audio/autoencoder.py",
"comfy/ldm/audio/dit.py",
"comfy/ldm/audio/embedders.py",
"comfy/ldm/audio/vae_sa3.py",
"comfy/ldm/aura/mmdit.py",
"comfy/ldm/boogu/model.py",
"comfy/ldm/cascade/common.py",
"comfy/ldm/cascade/controlnet.py",
"comfy/ldm/cascade/stage_a.py",
"comfy/ldm/cascade/stage_b.py",
"comfy/ldm/cascade/stage_c.py",
"comfy/ldm/cascade/stage_c_coder.py",
"comfy/ldm/chroma/layers.py",
"comfy/ldm/chroma/model.py",
"comfy/ldm/chroma_radiance/layers.py",
"comfy/ldm/chroma_radiance/model.py",
"comfy/ldm/cogvideo/__init__.py",
"comfy/ldm/cogvideo/model.py",
"comfy/ldm/cogvideo/vae.py",
"comfy/ldm/colormap.py",
"comfy/ldm/common_dit.py",
"comfy/ldm/cosmos/blocks.py",
"comfy/ldm/cosmos/cosmos_tokenizer/layers3d.py",
"comfy/ldm/cosmos/cosmos_tokenizer/patching.py",
"comfy/ldm/cosmos/cosmos_tokenizer/utils.py",
"comfy/ldm/cosmos/model.py",
"comfy/ldm/cosmos/position_embedding.py",
"comfy/ldm/cosmos/predict2.py",
"comfy/ldm/cosmos/vae.py",
"comfy/ldm/depth_anything_3/camera.py",
"comfy/ldm/depth_anything_3/dpt.py",
"comfy/ldm/depth_anything_3/model.py",
"comfy/ldm/depth_anything_3/preprocess.py",
"comfy/ldm/depth_anything_3/ray_pose.py",
"comfy/ldm/depth_anything_3/reference_view_selector.py",
"comfy/ldm/depth_anything_3/transform.py",
"comfy/ldm/ernie/model.py",
"comfy/ldm/flux/controlnet.py",
"comfy/ldm/flux/layers.py",
"comfy/ldm/flux/math.py",
"comfy/ldm/flux/model.py",
"comfy/ldm/flux/redux.py",
"comfy/ldm/genmo/joint_model/asymm_models_joint.py",
"comfy/ldm/genmo/joint_model/layers.py",
"comfy/ldm/genmo/joint_model/rope_mixed.py",
"comfy/ldm/genmo/joint_model/temporal_rope.py",
"comfy/ldm/genmo/joint_model/utils.py",
"comfy/ldm/genmo/vae/model.py",
"comfy/ldm/hidream/model.py",
"comfy/ldm/hidream_o1/attention.py",
"comfy/ldm/hidream_o1/conditioning.py",
"comfy/ldm/hidream_o1/model.py",
"comfy/ldm/hidream_o1/utils.py",
"comfy/ldm/hunyuan3d/model.py",
"comfy/ldm/hunyuan3d/vae.py",
"comfy/ldm/hunyuan3dv2_1/hunyuandit.py",
"comfy/ldm/hunyuan_video/model.py",
"comfy/ldm/hunyuan_video/upsampler.py",
"comfy/ldm/hunyuan_video/vae.py",
"comfy/ldm/hunyuan_video/vae_refiner.py",
"comfy/ldm/hydit/attn_layers.py",
"comfy/ldm/hydit/controlnet.py",
"comfy/ldm/hydit/models.py",
"comfy/ldm/hydit/poolers.py",
"comfy/ldm/hydit/posemb_layers.py",
"comfy/ldm/ideogram4/model.py",
"comfy/ldm/joyimage/model.py",
"comfy/ldm/kandinsky5/model.py",
"comfy/ldm/krea2/model.py",
"comfy/ldm/lens/model.py",
"comfy/ldm/lightricks/av_model.py",
"comfy/ldm/lightricks/duration_head.py",
"comfy/ldm/lightricks/embeddings_connector.py",
"comfy/ldm/lightricks/latent_upsampler.py",
"comfy/ldm/lightricks/model.py",
"comfy/ldm/lightricks/symmetric_patchifier.py",
"comfy/ldm/lightricks/vae/audio_vae.py",
"comfy/ldm/lightricks/vae/causal_audio_autoencoder.py",
"comfy/ldm/lightricks/vae/causal_conv3d.py",
"comfy/ldm/lightricks/vae/causal_video_autoencoder.py",
"comfy/ldm/lightricks/vae/conv_nd_factory.py",
"comfy/ldm/lightricks/vae/dual_conv3d.py",
"comfy/ldm/lightricks/vae/na_diffusion_decoder.py",
"comfy/ldm/lightricks/vae/pixel_norm.py",
"comfy/ldm/lightricks/vocoders/vocoder.py",
"comfy/ldm/lumina/controlnet.py",
"comfy/ldm/lumina/model.py",
"comfy/ldm/mage_flow/model.py",
"comfy/ldm/mage_flow/vae.py",
"comfy/ldm/minimax/audio_vae.py",
"comfy/ldm/minimax/model.py",
"comfy/ldm/minimax/vae.py",
"comfy/ldm/minimax_music/__init__.py",
"comfy/ldm/minimax_music/ar.py",
"comfy/ldm/minimax_music/dav.py",
"comfy/ldm/minimax_music/dit.py",
"comfy/ldm/minimax_music/prompt.py",
"comfy/ldm/mmaudio/vae/__init__.py",
"comfy/ldm/mmaudio/vae/activations.py",
"comfy/ldm/mmaudio/vae/alias_free_torch.py",
"comfy/ldm/mmaudio/vae/autoencoder.py",
"comfy/ldm/mmaudio/vae/bigvgan.py",
"comfy/ldm/mmaudio/vae/distributions.py",
"comfy/ldm/mmaudio/vae/vae.py",
"comfy/ldm/mmaudio/vae/vae_modules.py",
"comfy/ldm/models/autoencoder.py",
"comfy/ldm/modules/attention.py",
"comfy/ldm/modules/diffusionmodules/__init__.py",
"comfy/ldm/modules/diffusionmodules/mmdit.py",
"comfy/ldm/modules/diffusionmodules/model.py",
"comfy/ldm/modules/diffusionmodules/openaimodel.py",
"comfy/ldm/modules/diffusionmodules/upscaling.py",
"comfy/ldm/modules/diffusionmodules/util.py",
"comfy/ldm/modules/distributions/__init__.py",
"comfy/ldm/modules/distributions/distributions.py",
"comfy/ldm/modules/ema.py",
"comfy/ldm/modules/encoders/__init__.py",
"comfy/ldm/modules/encoders/noise_aug_modules.py",
"comfy/ldm/modules/sdpose.py",
"comfy/ldm/modules/sub_quadratic_attention.py",
"comfy/ldm/modules/temporal_ae.py",
"comfy/ldm/moge/geometry.py",
"comfy/ldm/moge/model.py",
"comfy/ldm/moge/modules.py",
"comfy/ldm/moge/panorama.py",
"comfy/ldm/omnigen/omnigen2.py",
"comfy/ldm/pixart/blocks.py",
"comfy/ldm/pixart/pixartms.py",
"comfy/ldm/pixeldit/model.py",
"comfy/ldm/pixeldit/modules.py",
"comfy/ldm/pixeldit/pid.py",
"comfy/ldm/qwen_image/controlnet.py",
"comfy/ldm/qwen_image/model.py",
"comfy/ldm/rt_detr/rtdetr_v4.py",
"comfy/ldm/sam3/detector.py",
"comfy/ldm/sam3/sam.py",
"comfy/ldm/sam3/tracker.py",
"comfy/ldm/sam3d_body/mhr/mhr_head.py",
"comfy/ldm/sam3d_body/mhr/mhr_rig.py",
"comfy/ldm/sam3d_body/mhr/mhr_utils.py",
"comfy/ldm/sam3d_body/model/camera_modules.py",
"comfy/ldm/sam3d_body/model/model.py",
"comfy/ldm/sam3d_body/model/prompt.py",
"comfy/ldm/sam3d_body/model/transformer.py",
"comfy/ldm/sam3d_body/utils.py",
"comfy/ldm/seedvr/attention.py",
"comfy/ldm/seedvr/color_fix.py",
"comfy/ldm/seedvr/constants.py",
"comfy/ldm/seedvr/model.py",
"comfy/ldm/seedvr/vae.py",
"comfy/ldm/supir/__init__.py",
"comfy/ldm/supir/supir_modules.py",
"comfy/ldm/supir/supir_patch.py",
"comfy/ldm/trellis2/flexgemm.py",
"comfy/ldm/trellis2/model.py",
"comfy/ldm/trellis2/vae.py",
"comfy/ldm/triposplat/gaussian.py",
"comfy/ldm/triposplat/model.py",
"comfy/ldm/triposplat/preview.py",
"comfy/ldm/triposplat/vae.py",
"comfy/ldm/util.py",
"comfy/ldm/wan/ar_model.py",
"comfy/ldm/wan/model.py",
"comfy/ldm/wan/model_animate.py",
"comfy/ldm/wan/model_animate2.py",
"comfy/ldm/wan/model_multitalk.py",
"comfy/ldm/wan/model_wandancer.py",
"comfy/ldm/wan/uni3c.py",
"comfy/ldm/wan/vae.py",
"comfy/ldm/wan/vae2_2.py",
"comfy/lora.py",
"comfy/lora_convert.py",
"comfy/memory_management.py",
"comfy/model_base.py",
"comfy/model_detection.py",
"comfy/model_management.py",
"comfy/model_patcher.py",
"comfy/model_prefetch.py",
"comfy/model_sampling.py",
"comfy/multigpu.py",
"comfy/nested_tensor.py",
"comfy/ops.py",
"comfy/options.py",
"comfy/patcher_extension.py",
"comfy/pinned_memory.py",
"comfy/pixel_space_convert.py",
"comfy/quant_ops.py",
"comfy/rmsnorm.py",
"comfy/sample.py",
"comfy/sampler_helpers.py",
"comfy/samplers.py",
"comfy/sd.py",
"comfy/sd1_clip.py",
"comfy/sd1_tokenizer/merges.txt",
"comfy/sdxl_clip.py",
"comfy/supported_models.py",
"comfy/supported_models_base.py",
"comfy/t2i_adapter/adapter.py",
"comfy/taesd/taehv.py",
"comfy/taesd/taesd.py",
"comfy/text_encoders/ace.py",
"comfy/text_encoders/ace15.py",
"comfy/text_encoders/ace_text_cleaners.py",
"comfy/text_encoders/anima.py",
"comfy/text_encoders/aura_t5.py",
"comfy/text_encoders/bert.py",
"comfy/text_encoders/boogu.py",
"comfy/text_encoders/bpe_tokenizer.py",
"comfy/text_encoders/cogvideo.py",
"comfy/text_encoders/cosmos.py",
"comfy/text_encoders/ernie.py",
"comfy/text_encoders/flux.py",
"comfy/text_encoders/gemma4.py",
"comfy/text_encoders/genmo.py",
"comfy/text_encoders/gpt_oss.py",
"comfy/text_encoders/hidream.py",
"comfy/text_encoders/hidream_o1.py",
"comfy/text_encoders/hunyuan_image.py",
"comfy/text_encoders/hunyuan_video.py",
"comfy/text_encoders/hydit.py",
"comfy/text_encoders/hydit_clip_tokenizer/vocab.txt",
"comfy/text_encoders/ideogram4.py",
"comfy/text_encoders/jina_clip_2.py",
"comfy/text_encoders/joyimage.py",
"comfy/text_encoders/kandinsky5.py",
"comfy/text_encoders/krea2.py",
"comfy/text_encoders/llama.py",
"comfy/text_encoders/long_clipl.py",
"comfy/text_encoders/longcat_image.py",
"comfy/text_encoders/lt.py",
"comfy/text_encoders/lumina2.py",
"comfy/text_encoders/mage_flow.py",
"comfy/text_encoders/minimax.py",
"comfy/text_encoders/minimax_music.py",
"comfy/text_encoders/newbie.py",
"comfy/text_encoders/omnigen2.py",
"comfy/text_encoders/ovis.py",
"comfy/text_encoders/pixart_t5.py",
"comfy/text_encoders/pixeldit.py",
"comfy/text_encoders/qwen25_tokenizer/merges.txt",
"comfy/text_encoders/qwen35.py",
"comfy/text_encoders/qwen35_tokenizer/merges.txt",
"comfy/text_encoders/qwen3vl.py",
"comfy/text_encoders/qwen_image.py",
"comfy/text_encoders/qwen_vl.py",
"comfy/text_encoders/sa3.py",
"comfy/text_encoders/sa_t5.py",
"comfy/text_encoders/sam3_clip.py",
"comfy/text_encoders/sd2_clip.py",
"comfy/text_encoders/sd3_clip.py",
"comfy/text_encoders/spiece_tokenizer.py",
"comfy/text_encoders/t5.py",
"comfy/text_encoders/wan.py",
"comfy/text_encoders/z_image.py",
"comfy/utils.py",
"comfy/weight_adapter/__init__.py",
"comfy/weight_adapter/base.py",
"comfy/weight_adapter/boft.py",
"comfy/weight_adapter/bypass.py",
"comfy/weight_adapter/glora.py",
"comfy/weight_adapter/loha.py",
"comfy/weight_adapter/lokr.py",
"comfy/weight_adapter/lora.py",
"comfy/weight_adapter/oft.py",
"comfy_api/feature_flags.py",
"comfy_api/generate_api_stubs.py",
"comfy_api/input/__init__.py",
"comfy_api/input/basic_types.py",
"comfy_api/input/video_types.py",
"comfy_api/input_impl/__init__.py",
"comfy_api/input_impl/video_types.py",
"comfy_api/internal/__init__.py",
"comfy_api/internal/api_registry.py",
"comfy_api/internal/async_to_sync.py",
"comfy_api/internal/singleton.py",
"comfy_api/latest/__init__.py",
"comfy_api/latest/_caching.py",
"comfy_api/latest/_input/__init__.py",
"comfy_api/latest/_input/basic_types.py",
"comfy_api/latest/_input/curve_types.py",
"comfy_api/latest/_input/range_types.py",
"comfy_api/latest/_input/video_types.py",
"comfy_api/latest/_input_impl/__init__.py",
"comfy_api/latest/_input_impl/video_types.py",
"comfy_api/latest/_io.py",
"comfy_api/latest/_io_public.py",
"comfy_api/latest/_ui.py",
"comfy_api/latest/_ui_public.py",
"comfy_api/latest/_util/__init__.py",
"comfy_api/latest/_util/geometry_types.py",
"comfy_api/latest/_util/image_types.py",
"comfy_api/latest/_util/video_types.py",
"comfy_api/torch_helpers/__init__.py",
"comfy_api/torch_helpers/torch_compile.py",
"comfy_api/util.py",
"comfy_api/util/__init__.py",
"comfy_api/util/video_types.py",
"comfy_api/v0_0_1/__init__.py",
"comfy_api/v0_0_2/__init__.py",
"comfy_api/version_list.py",
"comfy_api_nodes/__init__.py",
"comfy_api_nodes/apis/__init__.py",
"comfy_api_nodes/apis/anthropic.py",
"comfy_api_nodes/apis/beeble.py",
"comfy_api_nodes/apis/bfl.py",
"comfy_api_nodes/apis/bria.py",
"comfy_api_nodes/apis/bytedance.py",
"comfy_api_nodes/apis/bytedance_llm.py",
"comfy_api_nodes/apis/elevenlabs.py",
"comfy_api_nodes/apis/fishaudio.py",
"comfy_api_nodes/apis/gemini.py",
"comfy_api_nodes/apis/grok.py",
"comfy_api_nodes/apis/heygen.py",
"comfy_api_nodes/apis/hitpaw.py",
"comfy_api_nodes/apis/hunyuan3d.py",
"comfy_api_nodes/apis/ideogram.py",
"comfy_api_nodes/apis/kling.py",
"comfy_api_nodes/apis/krea.py",
"comfy_api_nodes/apis/luma.py",
"comfy_api_nodes/apis/magnific.py",
"comfy_api_nodes/apis/meshy.py",
"comfy_api_nodes/apis/minimax.py",
"comfy_api_nodes/apis/openai.py",
"comfy_api_nodes/apis/openrouter.py",
"comfy_api_nodes/apis/pixverse.py",
"comfy_api_nodes/apis/quiver.py",
"comfy_api_nodes/apis/qwen.py",
"comfy_api_nodes/apis/recraft.py",
"comfy_api_nodes/apis/reve.py",
"comfy_api_nodes/apis/rodin.py",
"comfy_api_nodes/apis/runway.py",
"comfy_api_nodes/apis/sync_so.py",
"comfy_api_nodes/apis/topaz.py",
"comfy_api_nodes/apis/tripo.py",
"comfy_api_nodes/apis/veo.py",
"comfy_api_nodes/apis/vidu.py",
"comfy_api_nodes/apis/wan.py",
"comfy_api_nodes/apis/wavespeed.py",
"comfy_api_nodes/nodes_anthropic.py",
"comfy_api_nodes/nodes_beeble.py",
"comfy_api_nodes/nodes_bfl.py",
"comfy_api_nodes/nodes_bria.py",
"comfy_api_nodes/nodes_bytedance.py",
"comfy_api_nodes/nodes_bytedance_llm.py",
"comfy_api_nodes/nodes_elevenlabs.py",
"comfy_api_nodes/nodes_fishaudio.py",
"comfy_api_nodes/nodes_gemini.py",
"comfy_api_nodes/nodes_grok.py",
"comfy_api_nodes/nodes_heygen.py",
"comfy_api_nodes/nodes_hitpaw.py",
"comfy_api_nodes/nodes_hunyuan3d.py",
"comfy_api_nodes/nodes_ideogram.py",
"comfy_api_nodes/nodes_kling.py",
"comfy_api_nodes/nodes_krea.py",
"comfy_api_nodes/nodes_ltxv.py",
"comfy_api_nodes/nodes_luma.py",
"comfy_api_nodes/nodes_magnific.py",
"comfy_api_nodes/nodes_meshy.py",
"comfy_api_nodes/nodes_minimax.py",
"comfy_api_nodes/nodes_openai.py",
"comfy_api_nodes/nodes_openrouter.py",
"comfy_api_nodes/nodes_pixverse.py",
"comfy_api_nodes/nodes_quiver.py",
"comfy_api_nodes/nodes_qwen.py",
"comfy_api_nodes/nodes_recraft.py",
"comfy_api_nodes/nodes_reve.py",
"comfy_api_nodes/nodes_rodin.py",
"comfy_api_nodes/nodes_runway.py",
"comfy_api_nodes/nodes_sonilo.py",
"comfy_api_nodes/nodes_sora.py",
"comfy_api_nodes/nodes_sync_so.py",
"comfy_api_nodes/nodes_topaz.py",
"comfy_api_nodes/nodes_tripo.py",
"comfy_api_nodes/nodes_veo2.py",
"comfy_api_nodes/nodes_vidu.py",
"comfy_api_nodes/nodes_wan.py",
"comfy_api_nodes/nodes_wavespeed.py",
"comfy_api_nodes/util/__init__.py",
"comfy_api_nodes/util/_helpers.py",
"comfy_api_nodes/util/client.py",
"comfy_api_nodes/util/common_exceptions.py",
"comfy_api_nodes/util/conversions.py",
"comfy_api_nodes/util/download_helpers.py",
"comfy_api_nodes/util/request_logger.py",
"comfy_api_nodes/util/upload_helpers.py",
"comfy_api_nodes/util/validation_utils.py",
"comfy_config/config_parser.py",
"comfy_config/types.py",
"comfy_execution/asset_enrichment.py",
"comfy_execution/cache_provider.py",
"comfy_execution/caching.py",
"comfy_execution/graph.py",
"comfy_execution/graph_utils.py",
"comfy_execution/jobs.py",
"comfy_execution/progress.py",
"comfy_execution/utils.py",
"comfy_execution/validation.py",
"comfy_extras/chainner_models/model_loading.py",
"comfy_extras/color_util.py",
"comfy_extras/compositor_blend.py",
"comfy_extras/frame_interpolation_models/film_net.py",
"comfy_extras/frame_interpolation_models/ifnet.py",
"comfy_extras/mediapipe/face_geometry.py",
"comfy_extras/mediapipe/face_landmarker.py",
"comfy_extras/mesh3d/postprocess/qem_decimate.py",
"comfy_extras/mesh3d/postprocess/remesh.py",
"comfy_extras/mesh3d/uv_unwrap/mesh.py",
"comfy_extras/mesh3d/uv_unwrap/pack.py",
"comfy_extras/mesh3d/uv_unwrap/parameterize.py",
"comfy_extras/mesh3d/uv_unwrap/segment.py",
"comfy_extras/nodes_ace.py",
"comfy_extras/nodes_advanced_samplers.py",
"comfy_extras/nodes_align_your_steps.py",
"comfy_extras/nodes_apg.py",
"comfy_extras/nodes_ar_video.py",
"comfy_extras/nodes_attention_multiply.py",
"comfy_extras/nodes_audio.py",
"comfy_extras/nodes_audio_encoder.py",
"comfy_extras/nodes_bernini.py",
"comfy_extras/nodes_bg_removal.py",
"comfy_extras/nodes_boogu.py",
"comfy_extras/nodes_bounding_boxes.py",
"comfy_extras/nodes_camera_trajectory.py",
"comfy_extras/nodes_canny.py",
"comfy_extras/nodes_cfg.py",
"comfy_extras/nodes_chroma_radiance.py",
"comfy_extras/nodes_clip_sdxl.py",
"comfy_extras/nodes_color.py",
"comfy_extras/nodes_compositing.py",
"comfy_extras/nodes_compositor.py",
"comfy_extras/nodes_cond.py",
"comfy_extras/nodes_context_windows.py",
"comfy_extras/nodes_controlnet.py",
"comfy_extras/nodes_cosmos.py",
"comfy_extras/nodes_curve.py",
"comfy_extras/nodes_custom_sampler.py",
"comfy_extras/nodes_dataset.py",
"comfy_extras/nodes_depth_anything_3.py",
"comfy_extras/nodes_differential_diffusion.py",
"comfy_extras/nodes_easycache.py",
"comfy_extras/nodes_edit_model.py",
"comfy_extras/nodes_eps.py",
"comfy_extras/nodes_flux.py",
"comfy_extras/nodes_frame_interpolation.py",
"comfy_extras/nodes_freelunch.py",
"comfy_extras/nodes_fresca.py",
"comfy_extras/nodes_gaussian_splat.py",
"comfy_extras/nodes_gits.py",
"comfy_extras/nodes_glsl.py",
"comfy_extras/nodes_hidream.py",
"comfy_extras/nodes_hidream_o1.py",
"comfy_extras/nodes_hooks.py",
"comfy_extras/nodes_hunyuan.py",
"comfy_extras/nodes_hunyuan3d.py",
"comfy_extras/nodes_hypernetwork.py",
"comfy_extras/nodes_hypertile.py",
"comfy_extras/nodes_ideogram4.py",
"comfy_extras/nodes_image_compare.py",
"comfy_extras/nodes_images.py",
"comfy_extras/nodes_ip2p.py",
"comfy_extras/nodes_joyimage.py",
"comfy_extras/nodes_json_prompt.py",
"comfy_extras/nodes_kandinsky5.py",
"comfy_extras/nodes_latent.py",
"comfy_extras/nodes_load_3d.py",
"comfy_extras/nodes_logic.py",
"comfy_extras/nodes_lora_debug.py",
"comfy_extras/nodes_lora_extract.py",
"comfy_extras/nodes_lotus.py",
"comfy_extras/nodes_lt.py",
"comfy_extras/nodes_lt_audio.py",
"comfy_extras/nodes_lt_upsampler.py",
"comfy_extras/nodes_lumina2.py",
"comfy_extras/nodes_mage.py",
"comfy_extras/nodes_mahiro.py",
"comfy_extras/nodes_mask.py",
"comfy_extras/nodes_math.py",
"comfy_extras/nodes_mediapipe.py",
"comfy_extras/nodes_mesh_postprocess.py",
"comfy_extras/nodes_minimax_h3.py",
"comfy_extras/nodes_minimax_music.py",
"comfy_extras/nodes_mochi.py",
"comfy_extras/nodes_model_advanced.py",
"comfy_extras/nodes_model_downscale.py",
"comfy_extras/nodes_model_merging.py",
"comfy_extras/nodes_model_merging_model_specific.py",
"comfy_extras/nodes_model_patch.py",
"comfy_extras/nodes_moge.py",
"comfy_extras/nodes_morphology.py",
"comfy_extras/nodes_multigpu.py",
"comfy_extras/nodes_nag.py",
"comfy_extras/nodes_nop.py",
"comfy_extras/nodes_number_convert.py",
"comfy_extras/nodes_optimalsteps.py",
"comfy_extras/nodes_pag.py",
"comfy_extras/nodes_painter.py",
"comfy_extras/nodes_perpneg.py",
"comfy_extras/nodes_photomaker.py",
"comfy_extras/nodes_pid.py",
"comfy_extras/nodes_pixart.py",
"comfy_extras/nodes_post_processing.py",
"comfy_extras/nodes_preview_any.py",
"comfy_extras/nodes_primitive.py",
"comfy_extras/nodes_qwen.py",
"comfy_extras/nodes_rebatch.py",
"comfy_extras/nodes_replacements.py",
"comfy_extras/nodes_resolution.py",
"comfy_extras/nodes_rope.py",
"comfy_extras/nodes_rtdetr.py",
"comfy_extras/nodes_sag.py",
"comfy_extras/nodes_sam3.py",
"comfy_extras/nodes_sam3d_body.py",
"comfy_extras/nodes_save_3d.py",
"comfy_extras/nodes_scail.py",
"comfy_extras/nodes_sd3.py",
"comfy_extras/nodes_sdpose.py",
"comfy_extras/nodes_sdupscale.py",
"comfy_extras/nodes_seed.py",
"comfy_extras/nodes_seedvr.py",
"comfy_extras/nodes_slg.py",
"comfy_extras/nodes_stable3d.py",
"comfy_extras/nodes_stable_cascade.py",
"comfy_extras/nodes_string.py",
"comfy_extras/nodes_tcfg.py",
"comfy_extras/nodes_text.py",
"comfy_extras/nodes_text_overlay.py",
"comfy_extras/nodes_textgen.py",
"comfy_extras/nodes_tomesd.py",
"comfy_extras/nodes_toolkit.py",
"comfy_extras/nodes_torch_compile.py",
"comfy_extras/nodes_train.py",
"comfy_extras/nodes_trellis2.py",
"comfy_extras/nodes_triposplat.py",
"comfy_extras/nodes_upscale_model.py",
"comfy_extras/nodes_video.py",
"comfy_extras/nodes_video_model.py",
"comfy_extras/nodes_void.py",
"comfy_extras/nodes_wan.py",
"comfy_extras/nodes_wandancer.py",
"comfy_extras/nodes_wanmove.py",
"comfy_extras/nodes_webcam.py",
"comfy_extras/nodes_zimage.py",
"comfy_extras/pose/keypoint_draw.py",
"comfy_extras/sam3d_body/export/bvh.py",
"comfy_extras/sam3d_body/export/capsules.py",
"comfy_extras/sam3d_body/export/glb_openpose.py",
"comfy_extras/sam3d_body/export/glb_shared.py",
"comfy_extras/sam3d_body/export/glb_skeletal.py",
"comfy_extras/sam3d_body/export/openpose_2d.py",
"comfy_extras/sam3d_body/face_expression.py",
"comfy_extras/sam3d_body/rasterizer.py",
"comfy_extras/sam3d_body/utils.py",
"comfy_extras/void_noise_warp.py",
"comfyui_version.py",
"cuda_malloc.py",
"custom_nodes/websocket_image_save.py",
"execution.py",
"folder_paths.py",
"hook_breaker_ac10a0.py",
"latent_preview.py",
"main.py",
"manager_requirements.txt",
"middleware/__init__.py",
"middleware/cache_middleware.py",
"node_helpers.py",
"nodes.py",
"protocol.py",
"pyproject.toml",
"requirements.txt",
"script_examples/basic_api_example.py",
"script_examples/websockets_api_example.py",
"script_examples/websockets_api_example_ws_images.py",
"server.py",
"tests-unit/README.md",
"tests-unit/app_test/__init__.py",
"tests-unit/app_test/custom_node_manager_test.py",
"tests-unit/app_test/database_path_test.py",
"tests-unit/app_test/frontend_manager_test.py",
"tests-unit/app_test/model_manager_test.py",
"tests-unit/app_test/node_replace_manager_test.py",
"tests-unit/app_test/test_migrations.py",
"tests-unit/app_test/user_manager_system_user_test.py",
"tests-unit/assets_test/conftest.py",
"tests-unit/assets_test/helpers.py",
"tests-unit/assets_test/queries/conftest.py",
"tests-unit/assets_test/queries/test_asset.py",
"tests-unit/assets_test/queries/test_asset_info.py",
"tests-unit/assets_test/queries/test_asset_reference_keyset.py",
"tests-unit/assets_test/queries/test_cache_state.py",
"tests-unit/assets_test/queries/test_metadata.py",
"tests-unit/assets_test/queries/test_tags.py",
"tests-unit/assets_test/services/__init__.py",
"tests-unit/assets_test/services/conftest.py",
"tests-unit/assets_test/services/test_asset_management.py",
"tests-unit/assets_test/services/test_asset_response_loader_path.py",
"tests-unit/assets_test/services/test_asset_response_preview_url.py",
"tests-unit/assets_test/services/test_bulk_ingest.py",
"tests-unit/assets_test/services/test_cursor.py",
"tests-unit/assets_test/services/test_enrich.py",
"tests-unit/assets_test/services/test_image_dimensions.py",
"tests-unit/assets_test/services/test_ingest.py",
"tests-unit/assets_test/services/test_path_utils.py",
"tests-unit/assets_test/services/test_tag_histogram.py",
"tests-unit/assets_test/services/test_tagging.py",
"tests-unit/assets_test/test_assets_missing_sync.py",
"tests-unit/assets_test/test_crud.py",
"tests-unit/assets_test/test_downloads.py",
"tests-unit/assets_test/test_file_utils.py",
"tests-unit/assets_test/test_list_cursor.py",
"tests-unit/assets_test/test_list_filter.py",
"tests-unit/assets_test/test_metadata_filters.py",
"tests-unit/assets_test/test_preview_url.py",
"tests-unit/assets_test/test_prompt_id_enforcement.py",
"tests-unit/assets_test/test_prune_orphaned_assets.py",
"tests-unit/assets_test/test_sync_references.py",
"tests-unit/assets_test/test_tags_api.py",
"tests-unit/assets_test/test_temp_assets.py",
"tests-unit/assets_test/test_uploads.py",
"tests-unit/comfy_api_nodes_test/audio_conversions_test.py",
"tests-unit/comfy_api_nodes_test/gemini_response_images_test.py",
"tests-unit/comfy_api_nodes_test/image_conversions_test.py",
"tests-unit/comfy_api_test/input_impl_test.py",
"tests-unit/comfy_api_test/multicombo_serialization_test.py",
"tests-unit/comfy_api_test/video_bit_depth_test.py",
"tests-unit/comfy_api_test/video_types_test.py",
"tests-unit/comfy_extras_test/__init__.py",
"tests-unit/comfy_extras_test/compositor_blend_fixture_gen.py",
"tests-unit/comfy_extras_test/compositor_blend_test.py",
"tests-unit/comfy_extras_test/compositor_node_test.py",
"tests-unit/comfy_extras_test/image_stitch_test.py",
"tests-unit/comfy_extras_test/nodes_dataset_test.py",
"tests-unit/comfy_extras_test/nodes_math_test.py",
"tests-unit/comfy_extras_test/nodes_number_convert_test.py",
"tests-unit/comfy_extras_test/nodes_preview_any_test.py",
"tests-unit/comfy_extras_test/test_seedvr2_conditioning.py",
"tests-unit/comfy_extras_test/test_seedvr2_nodes.py",
"tests-unit/comfy_extras_test/test_seedvr2_post_processing.py",
"tests-unit/comfy_extras_test/test_seedvr2_temporal_chunk.py",
"tests-unit/comfy_quant/test_mixed_precision.py",
"tests-unit/comfy_test/folder_path_test.py",
"tests-unit/comfy_test/gemma4_template_test.py",
"tests-unit/comfy_test/model_detection_test.py",
"tests-unit/comfy_test/seedvr_vae_forward_test.py",
"tests-unit/comfy_test/test_seedvr2_dtype.py",
"tests-unit/comfy_test/test_seedvr2_internals.py",
"tests-unit/comfy_test/test_seedvr2_model.py",
"tests-unit/comfy_test/test_seedvr2_vae_decode.py",
"tests-unit/comfy_test/test_seedvr2_vae_tiled.py",
"tests-unit/comfy_test/test_vae_decode_tiled_nested.py",
"tests-unit/deploy_environment_test.py",
"tests-unit/execution_test/preview_method_override_test.py",
"tests-unit/execution_test/test_cache_provider.py",
"tests-unit/execution_test/test_enrich_output.py",
"tests-unit/execution_test/validate_node_input_test.py",
"tests-unit/feature_flags_test.py",
"tests-unit/folder_paths_test/__init__.py",
"tests-unit/folder_paths_test/filter_by_content_types_test.py",
"tests-unit/folder_paths_test/misc_test.py",
"tests-unit/folder_paths_test/system_user_test.py",
"tests-unit/jobs_cancel_test/__init__.py",
"tests-unit/jobs_cancel_test/jobs_cancel_test.py",
"tests-unit/prompt_server_test/__init__.py",
"tests-unit/prompt_server_test/system_user_endpoint_test.py",
"tests-unit/prompt_server_test/user_manager_test.py",
"tests-unit/requirements.txt",
"tests-unit/security_test/__init__.py",
"tests-unit/security_test/test_ghsa_779p_02_preview_traversal.py",
"tests-unit/security_test/test_ghsa_779p_03_annotated_traversal.py",
"tests-unit/security_test/test_ghsa_779p_04_userdata_xss.py",
"tests-unit/security_test/test_ghsa_779p_05_dangerous_content_types.py",
"tests-unit/security_test/test_ghsa_779p_06_inline_svg_image_dest.py",
"tests-unit/seeder_test/test_seeder.py",
"tests-unit/server/utils/file_operations_test.py",
"tests-unit/server_test/test_cache_control.py",
"tests-unit/utils/extra_config_test.py",
"tests-unit/utils/json_util_test.py",
"tests-unit/websocket_feature_flags_test.py",
"tests/README.md",
"tests/__init__.py",
"tests/compare/conftest.py",
"tests/compare/test_quality.py",
"tests/conftest.py",
"tests/execution/test_async_nodes.py",
"tests/execution/test_execution.py",
"tests/execution/test_jobs.py",
"tests/execution/test_preview_method.py",
"tests/execution/test_progress_isolation.py",
"tests/execution/test_public_api.py",
"tests/execution/testing_nodes/testing-pack/__init__.py",
"tests/execution/testing_nodes/testing-pack/api_test_nodes.py",
"tests/execution/testing_nodes/testing-pack/async_test_nodes.py",
"tests/execution/testing_nodes/testing-pack/conditions.py",
"tests/execution/testing_nodes/testing-pack/flow_control.py",
"tests/execution/testing_nodes/testing-pack/specific_tests.py",
"tests/execution/testing_nodes/testing-pack/stubs.py",
"tests/execution/testing_nodes/testing-pack/tools.py",
"tests/execution/testing_nodes/testing-pack/util.py",
"tests/inference/__init__.py",
"tests/inference/test_inference.py",
"tests/test_asset_seeder.py",
"utils/__init__.py",
"utils/extra_config.py",
"utils/install_util.py",
"utils/json_util.py",
"utils/mime_types.py"
]
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -0,0 +1,353 @@
from typing import TypedDict
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
from comfy_api.latest import _io
# sentinel for missing inputs
MISSING = object()
class NotNode(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ComfyNotNode",
display_name="Not",
category="utilities/logic",
description="Logical NOT operation. Returns true if the value is falsy. Uses Python's rules for truthiness.",
search_aliases=["invert", "toggle", "negate", "flip boolean"],
inputs=[
io.AnyType.Input("value"),
],
outputs=[
io.Boolean.Output(),
],
)
@classmethod
def execute(cls, value) -> io.NodeOutput:
return io.NodeOutput(not value)
class AndNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = io.Autogrow.TemplatePrefix(
input=io.AnyType.Input("value"),
prefix="value",
min=1,
)
return io.Schema(
node_id="ComfyAndNode",
display_name="And",
category="utilities/logic",
description="Logical AND operation. Returns true if all of the values are truthy. Uses Python's rules for truthiness.",
search_aliases=["all", "every"],
inputs=[
io.Autogrow.Input("values", template=template),
],
outputs=[
io.Boolean.Output(),
],
)
@classmethod
def execute(cls, values: io.Autogrow.Type) -> io.NodeOutput:
return io.NodeOutput(all(values.values()))
class OrNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = io.Autogrow.TemplatePrefix(
input=io.AnyType.Input("value"),
prefix="value",
min=1,
)
return io.Schema(
node_id="ComfyOrNode",
display_name="Or",
category="utilities/logic",
description="Logical OR operation. Returns true if any of the values are truthy. Uses Python's rules for truthiness.",
search_aliases=["any", "some"],
inputs=[
io.Autogrow.Input("values", template=template),
],
outputs=[
io.Boolean.Output(),
],
)
@classmethod
def execute(cls, values: io.Autogrow.Type) -> io.NodeOutput:
return io.NodeOutput(any(values.values()))
class SwitchNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = io.MatchType.Template("switch")
return io.Schema(
node_id="ComfySwitchNode",
search_aliases=["if", "then", "switch", "conditional", "branch"],
display_name="If/Else Switch",
category="utilities/logic",
is_experimental=True,
inputs=[
io.Boolean.Input("switch"),
io.MatchType.Input("on_false", template=template, lazy=True),
io.MatchType.Input("on_true", template=template, lazy=True),
],
outputs=[
io.MatchType.Output(template=template, display_name="output"),
],
)
@classmethod
def check_lazy_status(cls, switch, on_false=None, on_true=None):
if switch and on_true is None:
return ["on_true"]
if not switch and on_false is None:
return ["on_false"]
@classmethod
def execute(cls, switch, on_true, on_false) -> io.NodeOutput:
return io.NodeOutput(on_true if switch else on_false)
class SoftSwitchNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = io.MatchType.Template("switch")
return io.Schema(
node_id="ComfySoftSwitchNode",
display_name="Soft Switch",
category="utilities/logic",
is_experimental=True,
inputs=[
io.Boolean.Input("switch"),
io.MatchType.Input("on_false", template=template, lazy=True, optional=True),
io.MatchType.Input("on_true", template=template, lazy=True, optional=True),
],
outputs=[
io.MatchType.Output(template=template, display_name="output"),
],
)
@classmethod
def check_lazy_status(cls, switch, on_false=MISSING, on_true=MISSING):
# We use MISSING instead of None, as None is passed for connected-but-unevaluated inputs.
# This trick allows us to ignore the value of the switch and still be able to run execute().
# One of the inputs may be missing, in which case we need to evaluate the other input
if on_false is MISSING:
return ["on_true"]
if on_true is MISSING:
return ["on_false"]
# Normal lazy switch operation
if switch and on_true is None:
return ["on_true"]
if not switch and on_false is None:
return ["on_false"]
@classmethod
def validate_inputs(cls, switch, on_false=MISSING, on_true=MISSING):
# This check happens before check_lazy_status(), so we can eliminate the case where
# both inputs are missing.
if on_false is MISSING and on_true is MISSING:
return "At least one of on_false or on_true must be connected to Switch node"
return True
@classmethod
def execute(cls, switch, on_true=MISSING, on_false=MISSING) -> io.NodeOutput:
if on_true is MISSING:
return io.NodeOutput(on_false)
if on_false is MISSING:
return io.NodeOutput(on_true)
return io.NodeOutput(on_true if switch else on_false)
class CustomComboNode(io.ComfyNode):
"""
Frontend node that allows user to write their own options for a combo.
This is here to make sure the node has a backend-representation to avoid some annoyances.
"""
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CustomCombo",
display_name="Custom Combo",
category="utilities",
is_experimental=True,
inputs=[io.Combo.Input("choice", options=[])],
outputs=[
io.String.Output(display_name="STRING"),
io.Int.Output(display_name="INDEX"),
],
accept_all_inputs=True,
)
@classmethod
def validate_inputs(cls, choice: io.Combo.Type, index: int = 0, **kwargs) -> bool:
# NOTE: DO NOT DO THIS unless you want to skip validation entirely on the node's inputs.
# I am doing that here because the widgets (besides the combo dropdown) on this node are fully frontend defined.
# I need to skip checking that the chosen combo option is in the options list, since those are defined by the user.
return True
@classmethod
def execute(cls, choice: io.Combo.Type, index: int = 0, **kwargs) -> io.NodeOutput:
return io.NodeOutput(choice, index)
class DCTestNode(io.ComfyNode):
class DCValues(TypedDict):
combo: str
string: str
integer: int
image: io.Image.Type
subcombo: dict[str]
@classmethod
def define_schema(cls):
return io.Schema(
node_id="DCTestNode",
display_name="DCTest",
category="utilities/logic",
is_output_node=True,
inputs=[io.DynamicCombo.Input("combo", options=[
io.DynamicCombo.Option("option1", [io.String.Input("string")]),
io.DynamicCombo.Option("option2", [io.Int.Input("integer")]),
io.DynamicCombo.Option("option3", [io.Image.Input("image")]),
io.DynamicCombo.Option("option4", [
io.DynamicCombo.Input("subcombo", options=[
io.DynamicCombo.Option("opt1", [io.Float.Input("float_x"), io.Float.Input("float_y")]),
io.DynamicCombo.Option("opt2", [io.Mask.Input("mask1", optional=True)]),
])
])]
)],
outputs=[io.AnyType.Output()],
)
@classmethod
def execute(cls, combo: DCValues) -> io.NodeOutput:
combo_val = combo["combo"]
if combo_val == "option1":
return io.NodeOutput(combo["string"])
elif combo_val == "option2":
return io.NodeOutput(combo["integer"])
elif combo_val == "option3":
return io.NodeOutput(combo["image"])
elif combo_val == "option4":
return io.NodeOutput(f"{combo['subcombo']}")
else:
raise ValueError(f"Invalid combo: {combo_val}")
class AutogrowNamesTestNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = _io.Autogrow.TemplateNames(input=io.Float.Input("float"), names=["a", "b", "c"])
return io.Schema(
node_id="AutogrowNamesTestNode",
display_name="AutogrowNamesTest",
category="utilities/logic",
inputs=[
_io.Autogrow.Input("autogrow", template=template)
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, autogrow: _io.Autogrow.Type) -> io.NodeOutput:
vals = list(autogrow.values())
combined = ",".join([str(x) for x in vals])
return io.NodeOutput(combined)
class AutogrowPrefixTestNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = _io.Autogrow.TemplatePrefix(input=io.Float.Input("float"), prefix="float", min=1, max=10)
return io.Schema(
node_id="AutogrowPrefixTestNode",
display_name="AutogrowPrefixTest",
category="utilities/logic",
inputs=[
_io.Autogrow.Input("autogrow", template=template)
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, autogrow: _io.Autogrow.Type) -> io.NodeOutput:
vals = list(autogrow.values())
combined = ",".join([str(x) for x in vals])
return io.NodeOutput(combined)
class ComboOutputTestNode(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ComboOptionTestNode",
display_name="ComboOptionTest",
category="utilities/logic",
inputs=[io.Combo.Input("combo", options=["option1", "option2", "option3"]),
io.Combo.Input("combo2", options=["option4", "option5", "option6"])],
outputs=[io.Combo.Output(), io.Combo.Output()],
)
@classmethod
def execute(cls, combo: io.Combo.Type, combo2: io.Combo.Type) -> io.NodeOutput:
return io.NodeOutput(combo, combo2)
class ConvertStringToComboNode(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ConvertStringToComboNode",
search_aliases=["string to dropdown", "text to combo"],
display_name="Convert String to Combo",
category="utilities/logic",
inputs=[io.String.Input("string")],
outputs=[io.Combo.Output()],
)
@classmethod
def execute(cls, string: str) -> io.NodeOutput:
return io.NodeOutput(string)
class InvertBooleanNode(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="InvertBooleanNode",
search_aliases=["not", "toggle", "negate", "flip boolean"],
display_name="Invert Boolean",
category="utilities/logic",
inputs=[io.Boolean.Input("boolean")],
outputs=[io.Boolean.Output()],
)
@classmethod
def execute(cls, boolean: bool) -> io.NodeOutput:
return io.NodeOutput(not boolean)
class LogicExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
SwitchNode,
CustomComboNode,
NotNode,
AndNode,
OrNode,
# SoftSwitchNode,
# ConvertStringToComboNode,
# DCTestNode,
# AutogrowNamesTestNode,
# AutogrowPrefixTestNode,
# ComboOutputTestNode,
# InvertBooleanNode,
]
async def comfy_entrypoint() -> LogicExtension:
return LogicExtension()
@@ -0,0 +1,108 @@
import sys
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
class String(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveString",
search_aliases=["text", "string", "text box", "prompt"],
display_name="Text",
category="utilities/primitive",
inputs=[io.String.Input("value")],
outputs=[io.String.Output()]
)
@classmethod
def execute(cls, value: str) -> io.NodeOutput:
return io.NodeOutput(value)
class StringMultiline(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveStringMultiline",
search_aliases=["text", "string", "text multiline", "string multiline", "text box", "prompt"],
display_name="Text (Multiline)",
category="utilities/primitive",
essentials_category="Basics",
inputs=[io.String.Input("value", multiline=True)],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, value: str) -> io.NodeOutput:
return io.NodeOutput(value)
class Int(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveInt",
display_name="Int",
category="utilities/primitive",
inputs=[
io.Int.Input("value", min=-sys.maxsize, max=sys.maxsize, control_after_generate=io.ControlAfterGenerate.fixed),
],
outputs=[io.Int.Output()],
)
@classmethod
def execute(cls, value: int) -> io.NodeOutput:
return io.NodeOutput(value)
class Float(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveFloat",
display_name="Float",
category="utilities/primitive",
inputs=[
io.Float.Input("value", min=-sys.maxsize, max=sys.maxsize, step=0.1),
],
outputs=[io.Float.Output()],
)
@classmethod
def execute(cls, value: float) -> io.NodeOutput:
return io.NodeOutput(value)
class Boolean(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveBoolean",
display_name="Boolean",
category="utilities/primitive",
inputs=[
io.Boolean.Input("value"),
],
outputs=[io.Boolean.Output()],
)
@classmethod
def execute(cls, value: bool) -> io.NodeOutput:
return io.NodeOutput(value)
class PrimitivesExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
String,
StringMultiline,
Int,
Float,
Boolean,
]
async def comfy_entrypoint() -> PrimitivesExtension:
return PrimitivesExtension()
@@ -0,0 +1,37 @@
comfyui-frontend-package==1.49.6
comfyui-workflow-templates==0.11.50
comfyui-embedded-docs==0.5.10
torch
torchsde
torchvision
torchaudio
numpy>=1.25.0
einops
transformers>=4.50.3
tokenizers>=0.13.3
sentencepiece
safetensors>=0.4.2
aiohttp>=3.11.8
yarl>=1.18.0
pyyaml
Pillow
scipy
tqdm
psutil
alembic
SQLAlchemy>=2.0.0
filelock
av>=17.0.0
comfy-kitchen==0.2.31
comfy-aimdo==0.4.15
requests
simpleeval>=1.0.0
blake3
#non essential dependencies:
kornia>=0.7.1
spandrel
pydantic~=2.0
pydantic-settings~=2.0
PyOpenGL>=3.1.8
comfy-angle
@@ -0,0 +1,29 @@
tree e2dc155ee31d452fa0158d33dadc1a32c4a06e58
parent 1398f4c3249dfff3dfb2a4cb2139474428d223e0
author Comfy Org PR Bot <snomiao+comfy-pr@gmail.com> 1782777313 +0900
committer GitHub <noreply@github.com> 1782777313 -0400
gpgsig -----BEGIN PGP SIGNATURE-----
wsFcBAABCAAQBQJqQwXhCRC1aQ7uu5UhlAAA6DUQAEC1qXbm1FPRrKDNhp4yOJhY
tL4P4bC0+kJl7vMa1Gd8zaQAoSUYLGQV2bvCKD7nK23wOLlN19hajWwo9DtkIwlI
1MHgo36C+L6DIxvEeQEOxAbwCZV+rCYbrWLqLmpsgWzhb4mxFDCGXkCKuDzK5pq2
3Ez0m6NgR/OgrRj7lRYABQxEqe04aO+97KByeDyY44/GPQV6lPfyQlAe9YdLsyLq
co8egpPF69I7b0QaHIssQY7JUXe4xIyGwoTn++y6h0E55JCyPsld5WoJgsEh25o8
zPLyd1ZdgP55joeJ9pDSj4PP+4ymJULuSCYkq9mkuGu9hRrXMaSjbE4XadntOIyk
Xf6Uq2bO3r0Q49Y3NjabO4ElW9Echo0j5rvQ/w0bkuZ0OlJ3TBYhm1EacoVf5AiN
I2cXHm/dROEe4x2y/LsyGAAyRw6pG5w5cnWhTya3szwL28BuZ1hmfCJHoMYEqjmG
6lLyhmGA+zO8oDMaXHR8NC67xglRzAdmbmXYQFHNAO1TD7Cj/H+uA81DaHeDEbrB
/3s65U1XjFc2xLsWHyL1FPA5Ah30vZggzehoES94ZZHB+bmOPwQs2vFGGw/RgFLO
NYEgWEv9vEQlz2aXepzT5V2uz5gqM//aQIH1HWMxmpWEhju/ZeaSDxyyA2/+3isV
14ClkPQ6kjsqdqmLKXal
=sV+P
-----END PGP SIGNATURE-----
1.45.20 (#13243)
Patch version increment to 1.45.20
**Base branch:** `core/1.45`
Co-authored-by: jtydhr88 <860985+jtydhr88@users.noreply.github.com>
@@ -0,0 +1,2 @@
From https://github.com/Comfy-Org/ComfyUI_frontend
* tag v1.45.20 -> FETCH_HEAD
@@ -0,0 +1 @@
{"requested": "v1.45.20", "object": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff"}
@@ -0,0 +1,29 @@
tree e2dc155ee31d452fa0158d33dadc1a32c4a06e58
parent 1398f4c3249dfff3dfb2a4cb2139474428d223e0
author Comfy Org PR Bot <snomiao+comfy-pr@gmail.com> 1782777313 +0900
committer GitHub <noreply@github.com> 1782777313 -0400
gpgsig -----BEGIN PGP SIGNATURE-----
wsFcBAABCAAQBQJqQwXhCRC1aQ7uu5UhlAAA6DUQAEC1qXbm1FPRrKDNhp4yOJhY
tL4P4bC0+kJl7vMa1Gd8zaQAoSUYLGQV2bvCKD7nK23wOLlN19hajWwo9DtkIwlI
1MHgo36C+L6DIxvEeQEOxAbwCZV+rCYbrWLqLmpsgWzhb4mxFDCGXkCKuDzK5pq2
3Ez0m6NgR/OgrRj7lRYABQxEqe04aO+97KByeDyY44/GPQV6lPfyQlAe9YdLsyLq
co8egpPF69I7b0QaHIssQY7JUXe4xIyGwoTn++y6h0E55JCyPsld5WoJgsEh25o8
zPLyd1ZdgP55joeJ9pDSj4PP+4ymJULuSCYkq9mkuGu9hRrXMaSjbE4XadntOIyk
Xf6Uq2bO3r0Q49Y3NjabO4ElW9Echo0j5rvQ/w0bkuZ0OlJ3TBYhm1EacoVf5AiN
I2cXHm/dROEe4x2y/LsyGAAyRw6pG5w5cnWhTya3szwL28BuZ1hmfCJHoMYEqjmG
6lLyhmGA+zO8oDMaXHR8NC67xglRzAdmbmXYQFHNAO1TD7Cj/H+uA81DaHeDEbrB
/3s65U1XjFc2xLsWHyL1FPA5Ah30vZggzehoES94ZZHB+bmOPwQs2vFGGw/RgFLO
NYEgWEv9vEQlz2aXepzT5V2uz5gqM//aQIH1HWMxmpWEhju/ZeaSDxyyA2/+3isV
14ClkPQ6kjsqdqmLKXal
=sV+P
-----END PGP SIGNATURE-----
1.45.20 (#13243)
Patch version increment to 1.45.20
**Base branch:** `core/1.45`
Co-authored-by: jtydhr88 <860985+jtydhr88@users.noreply.github.com>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -0,0 +1,215 @@
{
"name": "@comfyorg/comfyui-frontend",
"version": "1.45.20",
"private": true,
"description": "Official front-end implementation of ComfyUI",
"homepage": "https://comfy.org",
"license": "GPL-3.0-only",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"type": "module",
"scripts": {
"build:cloud": "cross-env DISTRIBUTION=cloud NODE_OPTIONS='--max-old-space-size=8192' vite build --config vite.config.mts",
"build:desktop": "pnpm --filter @comfyorg/desktop-ui run build",
"build-storybook": "storybook build",
"build:types": "cross-env NODE_OPTIONS='--max-old-space-size=8192' vite build --config vite.types.config.mts && node scripts/prepare-types.js",
"build:analyze": "cross-env ANALYZE_BUNDLE=true pnpm build",
"build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' pnpm typecheck && vite build --config vite.config.mts",
"clean": "pnpm dlx rimraf dist dist-ssr coverage playwright-report blob-report test-results node_modules/.vite apps/desktop-ui/dist apps/website/dist",
"clean:all": "pnpm clean && pnpm dlx rimraf node_modules",
"size:collect": "node scripts/size-collect.js",
"size:report": "node scripts/size-report.js",
"collect-i18n": "pnpm exec playwright test --config=playwright.i18n.config.ts",
"dev:cloud": "cross-env DEV_SERVER_COMFYUI_URL='https://testcloud.comfy.org/' vite --config vite.config.mts",
"dev:desktop": "pnpm --filter @comfyorg/desktop-ui run dev",
"dev:electron": "cross-env DISTRIBUTION=desktop vite --config vite.electron.config.mts",
"dev:no-vue": "cross-env DISABLE_VUE_PLUGINS=true vite --config vite.config.mts",
"dev:test": "cross-env VITE_USE_LEGACY_DEFAULT_GRAPH=true vite --config vite.config.mts",
"dev": "vite --config vite.config.mts",
"devtools:pycheck": "python3 -m compileall -q tools/devtools",
"format:check": "oxfmt --check",
"format": "oxfmt --write",
"json-schema": "tsx scripts/generate-json-schema.ts",
"knip:no-cache": "knip",
"knip": "knip --cache",
"lint:fix:no-cache": "oxlint src browser_tests --type-aware --fix && eslint src --fix",
"lint:fix": "oxlint src browser_tests --type-aware --fix && eslint src --cache --fix",
"lint:no-cache": "pnpm exec stylelint '{apps,packages,src}/**/*.{css,vue}' && oxlint src browser_tests --type-aware && eslint src",
"lint:unstaged:fix": "git diff --name-only HEAD | grep -E '\\.(js|ts|vue|mts)$' | xargs -r eslint --cache --fix",
"lint:unstaged": "git diff --name-only HEAD | grep -E '\\.(js|ts|vue|mts)$' | xargs -r eslint --cache",
"lint": "pnpm stylelint && oxlint src browser_tests --type-aware && eslint src --cache",
"lint:desktop": "pnpm --filter @comfyorg/desktop-ui run lint",
"locale": "lobe-i18n locale",
"oxlint": "oxlint src browser_tests --type-aware",
"prepare": "pnpm exec husky || true && git config blame.ignoreRevsFile .git-blame-ignore-revs || true",
"preview": "vite preview --config vite.config.mts",
"storybook": "storybook dev -p 6006",
"storybook:desktop": "pnpm --filter @comfyorg/desktop-ui run storybook",
"stylelint:fix": "stylelint --cache --fix '{apps,packages,src}/**/*.{css,vue}'",
"stylelint": "stylelint --cache '{apps,packages,src}/**/*.{css,vue}'",
"test:browser": "pnpm exec playwright test",
"test:browser:coverage": "cross-env COLLECT_COVERAGE=true pnpm test:browser",
"test:browser:local": "cross-env PLAYWRIGHT_LOCAL=1 PLAYWRIGHT_TEST_URL=http://localhost:5173 pnpm test:browser",
"test:coverage": "vitest run --coverage",
"test:unit": "vitest run",
"typecheck": "vue-tsc --noEmit",
"typecheck:browser": "vue-tsc --project browser_tests/tsconfig.json",
"typecheck:desktop": "pnpm --filter @comfyorg/desktop-ui run typecheck",
"typecheck:website": "pnpm --filter @comfyorg/website run typecheck",
"zipdist": "node scripts/zipdist.js"
},
"dependencies": {
"@alloc/quick-lru": "catalog:",
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/comfyui-desktop-bridge-types": "workspace:*",
"@comfyorg/comfyui-electron-types": "catalog:",
"@comfyorg/design-system": "workspace:*",
"@comfyorg/fbx-exporter-three": "^1.0.1",
"@comfyorg/object-info-parser": "workspace:*",
"@comfyorg/registry-types": "workspace:*",
"@comfyorg/shared-frontend-utils": "workspace:*",
"@comfyorg/tailwind-utils": "workspace:*",
"@formkit/auto-animate": "catalog:",
"@iconify/json": "catalog:",
"@primeuix/forms": "catalog:",
"@primeuix/styled": "catalog:",
"@primeuix/utils": "catalog:",
"@primevue/core": "catalog:",
"@primevue/forms": "catalog:",
"@primevue/icons": "catalog:",
"@primevue/themes": "catalog:",
"@sentry/vue": "catalog:",
"@sparkjsdev/spark": "catalog:",
"@tanstack/vue-virtual": "catalog:",
"@tiptap/core": "catalog:",
"@tiptap/extension-link": "catalog:",
"@tiptap/extension-table": "catalog:",
"@tiptap/extension-table-cell": "catalog:",
"@tiptap/extension-table-header": "catalog:",
"@tiptap/extension-table-row": "catalog:",
"@tiptap/pm": "catalog:",
"@tiptap/starter-kit": "catalog:",
"@vee-validate/zod": "catalog:",
"@vueuse/core": "catalog:",
"@vueuse/integrations": "catalog:",
"@vueuse/router": "^14.2.0",
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-serialize": "^0.13.0",
"@xterm/xterm": "^5.5.0",
"algoliasearch": "catalog:",
"axios": "catalog:",
"chart.js": "^4.5.0",
"cva": "catalog:",
"dompurify": "^3.2.5",
"dotenv": "catalog:",
"es-toolkit": "^1.39.9",
"extendable-media-recorder": "^9.2.27",
"extendable-media-recorder-wav-encoder": "^7.0.129",
"firebase": "catalog:",
"fuse.js": "^7.0.0",
"glob": "catalog:",
"jsonata": "catalog:",
"loglevel": "^1.9.2",
"marked": "^15.0.11",
"pinia": "catalog:",
"posthog-js": "catalog:",
"primeicons": "catalog:",
"primevue": "catalog:",
"reka-ui": "catalog:",
"semver": "^7.7.2",
"three": "catalog:",
"tiptap-markdown": "^0.8.10",
"typegpu": "catalog:",
"vee-validate": "catalog:",
"vue": "catalog:",
"vue-i18n": "catalog:",
"vue-router": "catalog:",
"vuefire": "catalog:",
"wwobjloader2": "catalog:",
"yjs": "catalog:",
"zod": "catalog:",
"zod-validation-error": "catalog:"
},
"devDependencies": {
"@comfyorg/ingest-types": "workspace:*",
"@eslint/js": "catalog:",
"@intlify/eslint-plugin-vue-i18n": "catalog:",
"@lobehub/i18n-cli": "catalog:",
"@pinia/testing": "catalog:",
"@playwright/test": "catalog:",
"@sentry/vite-plugin": "catalog:",
"@storybook/addon-docs": "catalog:",
"@storybook/addon-mcp": "catalog:",
"@storybook/vue3": "catalog:",
"@storybook/vue3-vite": "catalog:",
"@tailwindcss/vite": "catalog:",
"@testing-library/jest-dom": "catalog:",
"@testing-library/user-event": "catalog:",
"@testing-library/vue": "catalog:",
"@total-typescript/shoehorn": "catalog:",
"@types/fs-extra": "catalog:",
"@types/jsdom": "catalog:",
"@types/node": "catalog:",
"@types/semver": "catalog:",
"@types/three": "catalog:",
"@vitejs/plugin-vue": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"@webgpu/types": "catalog:",
"cross-env": "catalog:",
"eslint": "catalog:",
"eslint-config-prettier": "catalog:",
"eslint-import-resolver-typescript": "catalog:",
"eslint-plugin-better-tailwindcss": "catalog:",
"eslint-plugin-import-x": "catalog:",
"eslint-plugin-oxlint": "catalog:",
"eslint-plugin-playwright": "catalog:",
"eslint-plugin-storybook": "catalog:",
"eslint-plugin-testing-library": "catalog:",
"eslint-plugin-unused-imports": "catalog:",
"eslint-plugin-vue": "catalog:",
"fast-check": "catalog:",
"fs-extra": "^11.2.0",
"globals": "catalog:",
"happy-dom": "catalog:",
"husky": "catalog:",
"jiti": "catalog:",
"jsdom": "catalog:",
"knip": "catalog:",
"lint-staged": "catalog:",
"markdown-table": "catalog:",
"mixpanel-browser": "catalog:",
"monocart-coverage-reports": "catalog:",
"oxfmt": "catalog:",
"oxlint": "catalog:",
"oxlint-tsgolint": "catalog:",
"picocolors": "catalog:",
"postcss-html": "catalog:",
"pretty-bytes": "catalog:",
"rollup-plugin-visualizer": "catalog:",
"storybook": "catalog:",
"stylelint": "catalog:",
"tailwindcss": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:",
"unplugin-icons": "catalog:",
"unplugin-typegpu": "catalog:",
"unplugin-vue-components": "catalog:",
"uuid": "^11.1.0",
"vite": "catalog:",
"vite-plugin-dts": "catalog:",
"vite-plugin-html": "catalog:",
"vite-plugin-vue-devtools": "catalog:",
"vitest": "catalog:",
"vue-component-type-helpers": "catalog:",
"vue-eslint-parser": "catalog:",
"vue-tsc": "catalog:",
"zip-dir": "^2.0.0",
"zod-to-json-schema": "catalog:"
},
"engines": {
"node": "24.x",
"pnpm": ">=11"
},
"packageManager": "pnpm@11.1.1"
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,162 @@
packages:
- apps/**
- packages/**
ignoreWorkspaceRootCheck: true
catalogMode: prefer
publicHoistPattern:
- '@parcel/watcher'
catalog:
'@alloc/quick-lru': ^5.2.0
'@astrojs/check': ^0.9.8
'@astrojs/sitemap': ^3.7.1
'@astrojs/vue': ^5.0.0
'@comfyorg/comfyui-electron-types': 0.6.2
'@eslint/js': ^9.39.1
'@formkit/auto-animate': ^0.9.0
'@iconify-json/lucide': ^1.1.178
'@iconify/json': ^2.2.380
'@iconify/tailwind4': ^1.2.0
'@iconify/utils': ^3.1.0
'@intlify/eslint-plugin-vue-i18n': ^4.1.1
'@lobehub/i18n-cli': ^1.26.1
'@pinia/testing': ^1.0.3
'@playwright/test': ^1.58.1
'@primeuix/forms': 0.0.2
'@primeuix/styled': 0.3.2
'@primeuix/utils': ^0.3.2
'@primevue/core': ^4.2.5
'@primevue/forms': ^4.2.5
'@primevue/icons': 4.2.5
'@primevue/themes': ^4.2.5
'@sentry/vite-plugin': ^4.6.0
'@sentry/vue': ^10.32.1
'@sparkjsdev/spark': ^2.1.0
'@storybook/addon-docs': ^10.2.10
'@storybook/addon-mcp': 0.1.6
'@storybook/vue3': ^10.2.10
'@storybook/vue3-vite': ^10.2.10
'@tailwindcss/vite': ^4.3.0
'@tanstack/vue-virtual': ^3.13.12
'@testing-library/jest-dom': ^6.9.1
'@testing-library/user-event': ^14.6.1
'@testing-library/vue': ^8.1.0
'@tiptap/core': ^2.27.2
'@tiptap/extension-link': ^2.27.2
'@tiptap/extension-table': ^2.27.2
'@tiptap/extension-table-cell': ^2.27.2
'@tiptap/extension-table-header': ^2.27.2
'@tiptap/extension-table-row': ^2.27.2
'@tiptap/pm': 2.27.2
'@tiptap/starter-kit': ^2.27.2
'@total-typescript/shoehorn': ^0.1.2
'@types/fs-extra': ^11.0.4
'@types/jsdom': ^21.1.7
'@types/node': ^24.1.0
'@types/semver': ^7.7.0
'@types/three': ^0.184.1
'@vee-validate/zod': ^4.15.1
'@vercel/analytics': ^2.0.1
'@vitejs/plugin-vue': ^6.0.0
'@vitest/coverage-v8': ^4.0.16
'@vitest/ui': ^4.0.16
'@vueuse/core': ^14.2.0
'@vueuse/integrations': ^14.2.0
'@webgpu/types': ^0.1.66
algoliasearch: ^5.21.0
astro: ^5.10.0
axios: ^1.13.5
cross-env: ^10.1.0
cva: 1.0.0-beta.4
dompurify: ^3.3.1
dotenv: ^16.4.5
eslint: ^9.39.1
eslint-config-prettier: ^10.1.8
eslint-import-resolver-typescript: ^4.4.4
eslint-plugin-better-tailwindcss: ^4.3.1
eslint-plugin-import-x: ^4.16.1
eslint-plugin-oxlint: 1.59.0
eslint-plugin-playwright: ^2.10.1
eslint-plugin-storybook: ^10.2.10
eslint-plugin-testing-library: ^7.16.1
eslint-plugin-unused-imports: ^4.3.0
eslint-plugin-vue: ^10.6.2
fast-check: ^4.5.3
firebase: ^11.6.0
glob: ^13.0.6
globals: ^16.5.0
gsap: ^3.14.2
happy-dom: ^20.0.11
husky: ^9.1.7
jiti: 2.6.1
jsdom: ^27.4.0
jsonata: ^2.1.0
knip: ^6.3.1
lenis: ^1.3.21
lint-staged: ^16.2.7
markdown-table: ^3.0.4
mixpanel-browser: ^2.71.0
monocart-coverage-reports: ^2.12.9
oxfmt: ^0.44.0
oxlint: ^1.59.0
oxlint-tsgolint: ^0.20.0
picocolors: ^1.1.1
pinia: ^3.0.4
postcss-html: ^1.8.0
posthog-js: ^1.358.1
pretty-bytes: ^7.1.0
primeicons: ^7.0.0
primevue: ^4.2.5
reka-ui: ^2.5.0
rollup-plugin-visualizer: ^6.0.4
storybook: ^10.2.10
stylelint: ^16.26.1
tailwindcss: ^4.3.0
three: ^0.184.0
tailwindcss-primeui: ^0.6.1
tsx: ^4.15.6
tw-animate-css: ^1.3.8
typegpu: ^0.8.2
typescript: ^5.9.3
typescript-eslint: ^8.49.0
unplugin-icons: ^22.5.0
unplugin-typegpu: 0.8.0
unplugin-vue-components: ^30.0.0
vee-validate: ^4.15.1
vite: ^8.0.0
vite-plugin-dts: ^4.5.4
vite-plugin-html: ^3.2.2
vite-plugin-vue-devtools: ^8.0.0
vitest: ^4.0.16
vue: ^3.5.13
vue-component-type-helpers: ^3.2.1
vue-eslint-parser: ^10.4.0
vue-i18n: ^9.14.5
vue-router: ^4.4.3
vue-tsc: ^3.2.5
vuefire: ^3.2.1
wwobjloader2: ^6.2.1
yjs: ^13.6.27
zod: ^3.23.8
zod-to-json-schema: ^3.24.1
zod-validation-error: ^3.3.0
cleanupUnusedCatalogs: true
allowBuilds:
'@firebase/util': false
'@sentry/cli': true
'@tailwindcss/oxide': true
core-js: false
esbuild: true
oxc-resolver: true
protobufjs: false
sharp: false
unrs-resolver: false
vue-demi: false
overrides:
vite: 'catalog:'
'@tiptap/pm': 2.27.2
'@types/eslint': '-'
@@ -0,0 +1,35 @@
import { transformInputSpecV1ToV2 } from '@/schemas/nodeDef/migration'
import { zAutogrowOptions, zMatchTypeOptions } from '@/schemas/nodeDefSchema'
import type { InputSpec } from '@/schemas/nodeDefSchema'
import type { InputSpec as InputSpecV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
const dynamicTypeResolvers: Record<
string,
(inputSpec: InputSpecV2) => string[]
> = {
COMFY_AUTOGROW_V3: resolveAutogrowType,
COMFY_MATCHTYPE_V3: (input) =>
zMatchTypeOptions
.safeParse(input)
.data?.template?.allowed_types?.split(',') ?? []
}
export function resolveInputType(input: InputSpecV2): string[] {
return input.type in dynamicTypeResolvers
? dynamicTypeResolvers[input.type](input)
: input.type.split(',')
}
function resolveAutogrowType(rawSpec: InputSpecV2): string[] {
const { input } = zAutogrowOptions.safeParse(rawSpec).data?.template ?? {}
const inputTypes: (Record<string, InputSpec> | undefined)[] = [
input?.required,
input?.optional
]
return inputTypes.flatMap((inputType) =>
Object.entries(inputType ?? {}).flatMap(([name, v]) =>
resolveInputType(transformInputSpecV1ToV2(v, { name }))
)
)
}
@@ -0,0 +1,615 @@
import { remove } from 'es-toolkit'
import { shallowReactive } from 'vue'
import { useChainCallback } from '@/composables/functional/useChainCallback'
import type {
ISlotType,
INodeInputSlot,
INodeOutputSlot
} from '@/lib/litegraph/src/interfaces'
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
import type { LLink } from '@/lib/litegraph/src/LLink'
import { commonType } from '@/lib/litegraph/src/utils/type'
import { resolveNodeRootGraphId } from '@/lib/litegraph/src/utils/widget'
import { transformInputSpecV1ToV2 } from '@/schemas/nodeDef/migration'
import type { ComboInputSpec, InputSpec } from '@/schemas/nodeDefSchema'
import type { InputSpec as InputSpecV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
import {
zAutogrowOptions,
zDynamicComboInputSpec,
zMatchTypeOptions
} from '@/schemas/nodeDefSchema'
import { useLitegraphService } from '@/services/litegraphService'
import { app } from '@/scripts/app'
import type { ComfyApp } from '@/scripts/app'
import { useWidgetValueStore } from '@/stores/widgetValueStore'
const INLINE_INPUTS = false
type MatchTypeNode = LGraphNode &
Pick<Required<LGraphNode>, 'onConnectionsChange'> & {
comfyDynamic: { matchType: Record<string, Record<string, string>> }
}
type AutogrowNode = LGraphNode &
Pick<Required<LGraphNode>, 'onConnectionsChange' | 'widgets'> & {
comfyDynamic: {
autogrow: Record<
string,
{
min: number
max: number
inputSpecs: InputSpecV2[]
prefix?: string
names?: string[]
}
>
}
}
function ensureWidgetForInput(node: LGraphNode, input: INodeInputSlot) {
node.widgets ??= []
const { widget } = input
if (widget && node.widgets.some((w) => w.name === widget.name)) return
node.widgets.push({
draw(ctx, _n, _w, y) {
ctx.save()
ctx.fillStyle = LiteGraph.NODE_TEXT_COLOR
ctx.fillText(input.label ?? input.name, 20, y + 15)
ctx.restore()
},
name: input.name,
options: {},
serialize: false,
type: 'shim',
y: 0
})
input.alwaysVisible = true
input.widget = { name: input.name }
}
function dynamicComboWidget(
node: LGraphNode,
inputName: string,
untypedInputData: InputSpec,
appArg: ComfyApp,
widgetName?: string
) {
const { addNodeInput } = useLitegraphService()
const parseResult = zDynamicComboInputSpec.safeParse(untypedInputData)
if (!parseResult.success) throw new Error('invalid DynamicCombo spec')
const inputData = parseResult.data
const options = Object.fromEntries(
inputData[1].options.map(({ key, inputs }) => [key, inputs])
)
const subSpec: ComboInputSpec = [Object.keys(options), {}]
const { widget, minWidth, minHeight } = app.widgets['COMBO'](
node,
inputName,
subSpec,
appArg,
widgetName
)
function isInGroup(e: { name: string }): boolean {
return e.name.startsWith(inputName + '.')
}
const updateWidgets = (value?: string) => {
if (!node.widgets) throw new Error('Not Reachable')
const newSpec = value ? options[value] : undefined
const removedInputs = remove(node.inputs, isInGroup)
for (const widget of remove(node.widgets, isInGroup)) widget.onRemove?.()
if (!newSpec) return
const insertionPoint = node.widgets.findIndex((w) => w === widget) + 1
const startingLength = node.widgets.length
const startingInputLength = node.inputs.length
if (insertionPoint === 0)
throw new Error("Dynamic widget doesn't exist on node")
const inputTypes: (Record<string, InputSpec> | undefined)[] = [
newSpec.required,
newSpec.optional
]
inputTypes.forEach((inputType, idx) => {
for (const key in inputType ?? {}) {
const name = `${widget.name}.${key}`
const specToAdd = transformInputSpecV1ToV2(inputType![key], {
name,
isOptional: idx !== 0
})
specToAdd.display_name = key
addNodeInput(node, specToAdd)
const newInputs = node.inputs
.slice(startingInputLength)
.filter((inp) => inp.name.startsWith(name))
for (const newInput of newInputs) {
if (INLINE_INPUTS && !newInput.widget)
ensureWidgetForInput(node, newInput)
}
}
})
const inputInsertionPoint =
node.inputs.findIndex((i) => i.name === widget.name) + 1
const addedWidgets = node.widgets.splice(startingLength)
node.widgets.splice(insertionPoint, 0, ...addedWidgets)
if (inputInsertionPoint === 0) {
if (
addedWidgets.length === 0 &&
node.inputs.length !== startingInputLength
)
//input is inputOnly, but lacks an insertion point
throw new Error('Failed to find input socket for ' + widget.name)
return
}
const addedInputs = spliceInputs(node, startingInputLength).map(
(addedInput) => {
const existingInput = node.inputs.findIndex(
(existingInput) => addedInput.name === existingInput.name
)
return existingInput === -1
? addedInput
: spliceInputs(node, existingInput, 1)[0]
}
)
//assume existing inputs are in correct order
spliceInputs(node, inputInsertionPoint, 0, ...addedInputs)
for (const input of removedInputs) {
const inputIndex = node.inputs.findIndex((inp) => inp.name === input.name)
if (inputIndex === -1) {
node.inputs.push(input)
node.removeInput(node.inputs.length - 1)
} else {
node.inputs[inputIndex].link = input.link
if (!input.link) continue
const link = node.graph?.links?.[input.link]
if (!link) continue
link.target_slot = inputIndex
node.onConnectionsChange?.(
LiteGraph.INPUT,
inputIndex,
true,
link,
node.inputs[inputIndex]
)
}
}
node.size[1] = node.computeSize([...node.size])[1]
if (!node.graph) return
node._setConcreteSlots()
node.arrange()
app.canvas?.setDirty(true, true)
}
//A little hacky, but onConfigure won't work.
//It fires too late and is overly disruptive
let widgetValue = widget.value
const getState = () => {
const graphId = resolveNodeRootGraphId(node)
if (!graphId) return undefined
return useWidgetValueStore().getWidget(graphId, node.id, widget.name)
}
Object.defineProperty(widget, 'value', {
get() {
return getState()?.value ?? widgetValue
},
set(value) {
const state = getState()
if (state) state.value = value
widgetValue = value
updateWidgets(value)
}
})
widget.value = widgetValue
return { widget, minWidth, minHeight }
}
export const dynamicWidgets = { COMFY_DYNAMICCOMBO_V3: dynamicComboWidget }
const dynamicInputs: Record<
string,
(node: LGraphNode, inputSpec: InputSpecV2) => void
> = {
COMFY_AUTOGROW_V3: applyAutogrow,
COMFY_MATCHTYPE_V3: applyMatchType
}
export function applyDynamicInputs(
node: LGraphNode,
inputSpec: InputSpecV2
): boolean {
if (!(inputSpec.type in dynamicInputs)) return false
//TODO: move parsing/validation of inputSpec here?
dynamicInputs[inputSpec.type](node, inputSpec)
return true
}
function spliceInputs(
node: LGraphNode,
startIndex: number,
deleteCount = -1,
...toAdd: INodeInputSlot[]
): INodeInputSlot[] {
if (deleteCount < 0) return node.inputs.splice(startIndex)
const ret = node.inputs.splice(startIndex, deleteCount, ...toAdd)
node.inputs.slice(startIndex).forEach((input, index) => {
const link = input.link && node.graph?.links?.get(input.link)
if (link) link.target_slot = startIndex + index
})
return ret
}
function changeOutputType(
node: LGraphNode,
output: INodeOutputSlot,
combinedType: ISlotType
) {
if (output.type === combinedType) return
output.type = combinedType
//check and potentially remove links
if (!node.graph) return
for (const link_id of output.links ?? []) {
const link = node.graph.links[link_id]
if (!link) continue
const { input, inputNode, subgraphOutput } = link.resolve(node.graph)
const inputType = (input ?? subgraphOutput)?.type
if (!inputType) continue
const keep = LiteGraph.isValidConnection(combinedType, inputType)
if (!keep && subgraphOutput) subgraphOutput.disconnect()
else if (!keep && inputNode) inputNode.disconnectInput(link.target_slot)
if (input && inputNode?.onConnectionsChange)
inputNode.onConnectionsChange(
LiteGraph.INPUT,
link.target_slot,
keep,
link,
input
)
}
}
function withComfyMatchType(node: LGraphNode): asserts node is MatchTypeNode {
if (node.comfyDynamic?.matchType) return
node.comfyDynamic ??= {}
node.comfyDynamic.matchType = {}
const outputGroups = node.constructor.nodeData?.output_matchtypes
node.onConnectionsChange = useChainCallback(
node.onConnectionsChange,
function (
this: MatchTypeNode,
contype: ISlotType,
slot: number,
iscon: boolean,
linf: LLink | null | undefined
) {
const input = this.inputs[slot]
if (contype !== LiteGraph.INPUT || !this.graph || !input) return
if (app.configuringGraph) return
const [matchKey, matchGroup] = Object.entries(
this.comfyDynamic.matchType
).find(([, group]) => input.name in group) ?? ['', undefined]
if (!matchGroup) return
if (iscon && linf) {
const { output, subgraphInput } = linf.resolve(this.graph)
const connectingType = (output ?? subgraphInput)?.type
if (connectingType) linf.type = connectingType
}
//NOTE: inputs contains input
const groupInputs: INodeInputSlot[] = node.inputs.filter(
(inp) => inp.name in matchGroup
)
const connectedTypes = groupInputs.map((inp) => {
if (!inp.link) return '*'
const link = this.graph!.links[inp.link]
if (!link) return '*'
const { output, subgraphInput } = link.resolve(this.graph!)
return (output ?? subgraphInput)?.type ?? '*'
})
//An input slot can accept a connection that is
// - Compatible with original type
// - Compatible with all other input types
//An output slot can output
// - Only what every input can output
groupInputs.forEach((input, idx) => {
const otherConnected = [
...connectedTypes.slice(0, idx),
...connectedTypes.slice(idx + 1)
]
const combinedType = commonType(
...otherConnected,
matchGroup[input.name]
)
if (!combinedType) throw new Error('invalid connection')
input.type = combinedType
})
const outputType = commonType(...connectedTypes)
if (!outputType) throw new Error('invalid connection')
this.outputs.forEach((output, idx) => {
if (!(outputGroups?.[idx] == matchKey)) return
this.outputs[idx] = shallowReactive(this.outputs[idx])
changeOutputType(this, output, outputType)
})
app.canvas?.setDirty(true, true)
}
)
}
function applyMatchType(node: LGraphNode, inputSpec: InputSpecV2) {
const { addNodeInput } = useLitegraphService()
const name = inputSpec.name
const matchTypeSpec = zMatchTypeOptions.safeParse(inputSpec).data
if (!matchTypeSpec) return
const { allowed_types, template_id } = matchTypeSpec.template
const typedSpec = { ...inputSpec, type: allowed_types }
addNodeInput(node, typedSpec)
withComfyMatchType(node)
node.comfyDynamic.matchType[template_id] ??= {}
node.comfyDynamic.matchType[template_id][name] = allowed_types
//TODO: instead apply on output add?
//ensure outputs get updated
const index = node.inputs.length - 1
requestAnimationFrame(() => {
const input = node.inputs[index]
if (!input) return
node.inputs[index] = shallowReactive(input)
node.onConnectionsChange?.(
LiteGraph.INPUT,
index,
!!input.link,
input.link ? node.graph?.links?.[input.link] : undefined,
input
)
})
}
function autogrowOrdinalToName(
ordinal: number,
key: string,
groupName: string,
node: AutogrowNode
) {
const {
names,
prefix = '',
inputSpecs
} = node.comfyDynamic.autogrow[groupName]
const baseName = names
? names[ordinal]
: (inputSpecs.length == 1 ? prefix : key) + ordinal
return { name: `${groupName}.${baseName}`, display_name: baseName }
}
function addAutogrowGroup(
ordinal: number,
groupName: string,
node: AutogrowNode
) {
const { addNodeInput } = useLitegraphService()
const { max, min, inputSpecs } = node.comfyDynamic.autogrow[groupName]
if (ordinal >= max) return
const namedSpecs = inputSpecs.map((input) => ({
...input,
isOptional: ordinal >= (min ?? 0) || input.isOptional,
...autogrowOrdinalToName(ordinal, input.name, groupName, node)
}))
const newInputs = namedSpecs.map((namedSpec) => {
addNodeInput(node, namedSpec)
const input = spliceInputs(node, node.inputs.length - 1, 1)[0]
if (inputSpecs.length !== 1 || (INLINE_INPUTS && !input.widget))
ensureWidgetForInput(node, input)
return input
})
for (const newInput of newInputs) {
for (const existingInput of remove(
node.inputs,
(inp) => inp.name === newInput.name
)) {
//NOTE: link.target_slot is updated on spliceInputs call
newInput.link ??= existingInput.link
}
}
const targetName = autogrowOrdinalToName(
ordinal - 1,
inputSpecs.at(-1)!.name,
groupName,
node
).name
const lastIndex = node.inputs.findLastIndex((inp) =>
inp.name.startsWith(targetName)
)
const insertionIndex = lastIndex === -1 ? node.inputs.length : lastIndex + 1
spliceInputs(node, insertionIndex, 0, ...newInputs)
app.canvas?.setDirty(true, true)
}
const ORDINAL_REGEX = /\d+$/
function resolveAutogrowOrdinal(
inputName: string,
groupName: string,
node: AutogrowNode
): number | undefined {
//TODO preslice groupname?
const name = inputName.slice(groupName.length + 1)
const { names } = node.comfyDynamic.autogrow[groupName]
if (names) {
const ordinal = names.findIndex((s) => s === name)
return ordinal === -1 ? undefined : ordinal
}
const match = name.match(ORDINAL_REGEX)
if (!match) return undefined
const ordinal = parseInt(match[0])
return ordinal !== ordinal ? undefined : ordinal
}
function autogrowInputConnected(index: number, node: AutogrowNode) {
const input = node.inputs[index]
const groupName = input.name.slice(0, input.name.lastIndexOf('.'))
const lastInput = node.inputs.findLast((inp) =>
inp.name.startsWith(groupName + '.')
)
const ordinal = resolveAutogrowOrdinal(input.name, groupName, node)
if (
!lastInput ||
ordinal == undefined ||
(ordinal !== resolveAutogrowOrdinal(lastInput.name, groupName, node) &&
!app.configuringGraph)
)
return
addAutogrowGroup(ordinal + 1, groupName, node)
}
function autogrowInputDisconnected(index: number, node: AutogrowNode) {
const input = node.inputs[index]
if (!input) return
const groupName = input.name.slice(0, input.name.lastIndexOf('.'))
const autogrowGroup = node.comfyDynamic.autogrow[groupName]
if (!autogrowGroup) return
const { min = 1, inputSpecs } = autogrowGroup
const ordinal = resolveAutogrowOrdinal(input.name, groupName, node)
if (ordinal == undefined || ordinal + 1 < min) return
//resolve all inputs in group
const groupInputs = node.inputs.filter(
(inp) =>
inp.name.startsWith(groupName + '.') &&
inp.name.lastIndexOf('.') === groupName.length
)
const stride = inputSpecs.length
if (stride + index >= node.inputs.length) return
if (groupInputs.length % stride !== 0) {
console.error('Failed to group multi-input autogrow inputs')
return
}
app.canvas?.setDirty(true, true)
//groupBy would be nice here, but may not be supported
for (let column = 0; column < stride; column++) {
for (
let bubbleOrdinal = ordinal * stride + column;
bubbleOrdinal + stride < groupInputs.length;
bubbleOrdinal += stride
) {
const curInput = groupInputs[bubbleOrdinal]
curInput.link = groupInputs[bubbleOrdinal + stride].link
if (!curInput.link) continue
const link = node.graph?.links[curInput.link]
if (!link) continue
const curIndex = node.inputs.findIndex((inp) => inp === curInput)
if (curIndex === -1) throw new Error('missing input')
link.target_slot = curIndex
node.onConnectionsChange?.(
LiteGraph.INPUT,
curIndex,
true,
link,
curInput
)
}
const lastInput = groupInputs.at(column - stride)
if (!lastInput) continue
lastInput.link = null
node.onConnectionsChange?.(
LiteGraph.INPUT,
node.inputs.length + column - stride,
false,
null,
lastInput
)
}
const removalChecks = groupInputs.slice(min * stride)
let i
for (i = removalChecks.length - stride; i >= 0; i -= stride) {
if (removalChecks.slice(i, i + stride).some((inp) => inp.link)) break
}
const toRemove = removalChecks.slice(i + stride * 2)
remove(node.inputs, (inp) => toRemove.includes(inp))
for (const input of toRemove) {
const widgetName = input?.widget?.name
if (!widgetName) continue
for (const widget of remove(node.widgets, (w) => w.name === widgetName))
widget.onRemove?.()
}
node.size[1] = node.computeSize([...node.size])[1]
}
function withComfyAutogrow(node: LGraphNode): asserts node is AutogrowNode {
if (node.comfyDynamic?.autogrow) return
node.comfyDynamic ??= {}
node.comfyDynamic.autogrow = {}
let pendingConnection: number | undefined
let swappingConnection = false
const originalOnConnectInput = node.onConnectInput
node.onConnectInput = function (slot: number, ...args) {
pendingConnection = slot
requestAnimationFrame(() => (pendingConnection = undefined))
return originalOnConnectInput?.apply(this, [slot, ...args]) ?? true
}
node.onConnectionsChange = useChainCallback(
node.onConnectionsChange,
function (
this: AutogrowNode,
contype: ISlotType,
slot: number,
iscon: boolean,
linf: LLink | null | undefined
) {
const input = this.inputs[slot]
if (contype !== LiteGraph.INPUT || !input) return
//Return if input isn't known autogrow
const key = input.name.slice(0, input.name.lastIndexOf('.'))
const autogrowGroup = this.comfyDynamic.autogrow[key]
if (!autogrowGroup) return
if (app.configuringGraph && input.widget)
ensureWidgetForInput(node, input)
if (iscon) {
if (swappingConnection || !linf) return
autogrowInputConnected(slot, this)
} else {
if (pendingConnection === slot) {
swappingConnection = true
requestAnimationFrame(() => (swappingConnection = false))
return
}
requestAnimationFrame(() => autogrowInputDisconnected(slot, this))
}
}
)
}
function applyAutogrow(node: LGraphNode, inputSpecV2: InputSpecV2) {
withComfyAutogrow(node)
const parseResult = zAutogrowOptions.safeParse(inputSpecV2)
if (!parseResult.success) throw new Error('invalid Autogrow spec')
const inputSpec = parseResult.data
const { input, min = 1, names, prefix, max = 100 } = inputSpec.template
const inputTypes: (Record<string, InputSpec> | undefined)[] = [
input.required,
input.optional
]
const inputsV2 = inputTypes.flatMap((inputType, index) =>
Object.entries(inputType ?? {}).map(([name, v]) =>
transformInputSpecV1ToV2(v, { name, isOptional: index === 1 })
)
)
node.comfyDynamic.autogrow[inputSpecV2.name] = {
names,
min,
max: names?.length ?? max,
prefix,
inputSpecs: inputsV2
}
for (let i = 0; i === 0 || i < min + 1; i++)
addAutogrowGroup(i, inputSpecV2.name, node)
}
@@ -0,0 +1,19 @@
Copyright (C) 2013 by Javi Agenjo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,181 @@
import type { ContextMenu } from './ContextMenu'
import type { LGraphNode } from './LGraphNode'
import { LiteGraphGlobal } from './LiteGraphGlobal'
import type {
ConnectingLink,
IContextMenuOptions,
Point,
Size
} from './interfaces'
import { loadPolyfills } from './polyfills'
import type { CanvasEventDetail } from './types/events'
import type { RenderShape, TitleMode } from './types/globalEnums'
// Must remain above LiteGraphGlobal (circular dependency due to abstract factory behaviour in `configure`)
export { Subgraph } from './subgraph/Subgraph'
export const LiteGraph = new LiteGraphGlobal()
// Load legacy polyfills
loadPolyfills()
// Backwards compat
// Type definitions for litegraph.js 0.7.0
// Project: litegraph.js
// Definitions by: NateScarlet <https://github.com/NateScarlet>
/** @deprecated Use {@link Point} instead. */
export type Vector2 = Point
interface IContextMenuItem {
content: string
callback?: ContextMenuEventListener
/** Used as innerHTML for extra child element */
title?: string
disabled?: boolean
has_submenu?: boolean
submenu?: {
options: IContextMenuItem[]
} & IContextMenuOptions
className?: string
}
type ContextMenuEventListener = (
value: IContextMenuItem,
options: IContextMenuOptions,
event: MouseEvent,
parentMenu: ContextMenu<unknown> | undefined,
node: LGraphNode
) => boolean | void
export interface LinkReleaseContextExtended {
links: ConnectingLink[]
}
export interface LiteGraphCanvasEvent extends CustomEvent<CanvasEventDetail> {}
export interface LGraphNodeConstructor<T extends LGraphNode = LGraphNode> {
new (title: string, type?: string): T
title: string
type?: string // TODO: to be, or not to be--that is the question
size?: Size
min_height?: number
slot_start_y?: number
widgets_info?: Record<string, unknown>
collapsable?: boolean
color?: string
bgcolor?: string
shape?: RenderShape
title_mode?: TitleMode
title_color?: string
title_text_color?: string
keepAllLinksOnBypass: boolean
resizeHandleSize?: number
resizeEdgeSize?: number
}
// End backwards compat
export { LinkConnector } from './canvas/LinkConnector'
export { isOverNodeInput, isOverNodeOutput } from './canvas/measureSlots'
export { CanvasPointer } from './CanvasPointer'
export * as Constants from './constants'
export { SUBGRAPH_INPUT_ID } from './constants'
export { ContextMenu } from './ContextMenu'
export { DragAndScale } from './DragAndScale'
export { Rectangle } from './infrastructure/Rectangle'
export type { SubgraphEventMap } from './infrastructure/SubgraphEventMap'
export type {
CanvasColour,
ColorOption,
CreateNodeOptions,
IContextMenuOptions,
IContextMenuValue,
INodeInputSlot,
INodeOutputSlot,
INodeSlot,
ISlotType,
LinkNetwork,
Point,
Positionable,
Size,
SlotIndex
} from './interfaces'
export {
LGraph,
type GroupNodeConfigEntry,
type GroupNodeWorkflowData,
type LGraphTriggerAction,
type LGraphTriggerParam,
type GraphAddOptions,
type SubgraphId
} from './LGraph'
export type { LGraphTriggerEvent } from './types/graphTriggers'
export { BadgePosition, LGraphBadge } from './LGraphBadge'
export { LGraphCanvas } from './LGraphCanvas'
export { LGraphGroup, type GroupId } from './LGraphGroup'
export { LGraphNode, type NodeId } from './LGraphNode'
export { LLink } from './LLink'
export { createBounds } from './measure'
export { Reroute, type RerouteId } from './Reroute'
export {
type ExecutableLGraphNode,
ExecutableNodeDTO,
type ExecutionId
} from './subgraph/ExecutableNodeDTO'
export { SubgraphNode } from './subgraph/SubgraphNode'
export type { CanvasPointerEvent } from './types/events'
export {
EaseFunction,
LGraphEventMode,
LinkDirection,
LinkMarkerShape,
RenderShape
} from './types/globalEnums'
export type {
ExportedSubgraph,
ExportedSubgraphInstance,
ISerialisedGraph,
ISerialisedNode,
SerialisableGraph
} from './types/serialisation'
export type { IWidget } from './types/widgets'
export { isColorable } from './utils/type'
export { createUuidv4 } from './utils/uuid'
export type { UUID } from './utils/uuid'
export { truncateText } from './utils/textUtils'
export {
evaluateInput,
getWidgetStep,
resolveNodeRootGraphId
} from './utils/widget'
export { distributeSpace, type SpaceRequest } from './utils/spaceDistribution'
export { BaseWidget } from './widgets/BaseWidget'
export { LegacyWidget } from './widgets/LegacyWidget'
export { isComboWidget } from './widgets/widgetMap'
/** @knipIgnoreUnusedButUsedByCustomNodes */
export { isAssetWidget } from './widgets/widgetMap'
// Additional test-specific exports
export { LGraphButton } from './LGraphButton'
export { MovingOutputLink } from './canvas/MovingOutputLink'
export { ToOutputRenderLink } from './canvas/ToOutputRenderLink'
export { ToInputFromIoNodeLink } from './canvas/ToInputFromIoNodeLink'
export type { TWidgetType, TWidgetValue, IWidgetOptions } from './types/widgets'
export {
findUsedSubgraphIds,
getDirectSubgraphIds,
isSubgraphInput,
isSubgraphOutput
} from './subgraph/subgraphUtils'
export { NodeInputSlot } from './node/NodeInputSlot'
export { NodeOutputSlot } from './node/NodeOutputSlot'
export { inputAsSerialisable, outputAsSerialisable } from './node/slotUtils'
export { MovingInputLink } from './canvas/MovingInputLink'
export { ToInputRenderLink } from './canvas/ToInputRenderLink'
export { LiteGraphGlobal } from './LiteGraphGlobal'
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,326 @@
import { t } from '@/i18n'
import { type LGraphNode, isComboWidget } from '@/lib/litegraph/src/litegraph'
import type {
IBaseWidget,
IComboWidget,
IStringWidget
} from '@/lib/litegraph/src/types/widgets'
import { useSettingStore } from '@/platform/settings/settingStore'
import { dynamicWidgets } from '@/core/graph/widgets/dynamicWidgets'
import { useBooleanWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget'
import { useBoundingBoxWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useBoundingBoxWidget'
import { useCurveWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useCurveWidget'
import { useChartWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useChartWidget'
import { useColorWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useColorWidget'
import { useComboWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useComboWidget'
import { useFloatWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useFloatWidget'
import { useGalleriaWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useGalleriaWidget'
import { useBoundingBoxesWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useBoundingBoxesWidget'
import { useColorsWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useColorsWidget'
import { useImageCompareWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useImageCompareWidget'
import { useImageUploadWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget'
import { useIntWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useIntWidget'
import { useMarkdownWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useMarkdownWidget'
import { usePainterWidget } from '@/renderer/extensions/vueNodes/widgets/composables/usePainterWidget'
import { useRangeWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useRangeWidget'
import { useStringWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useStringWidget'
import { useTextareaWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useTextareaWidget'
import { transformInputSpecV1ToV2 } from '@/schemas/nodeDef/migration'
import type { InputSpec as InputSpecV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
import type { InputSpec } from '@/schemas/nodeDefSchema'
import type { ComfyApp } from './app'
import './domWidget'
import './errorNodeWidgets'
export type ComfyWidgetConstructorV2 = (
node: LGraphNode,
inputSpec: InputSpecV2
) => IBaseWidget
export type ComfyWidgetConstructor = (
node: LGraphNode,
inputName: string,
inputData: InputSpec,
app: ComfyApp,
widgetName?: string
) => { widget: IBaseWidget; minWidth?: number; minHeight?: number }
/**
* Transforms a V2 widget constructor to a V1 widget constructor.
* @param widgetConstructorV2 The V2 widget constructor to transform.
* @returns The transformed V1 widget constructor.
*/
const transformWidgetConstructorV2ToV1 = (
widgetConstructorV2: ComfyWidgetConstructorV2
): ComfyWidgetConstructor => {
return (node, inputName, inputData) => {
const inputSpec = transformInputSpecV1ToV2(inputData, {
name: inputName
})
const widget = widgetConstructorV2(node, inputSpec)
return {
widget,
minWidth: widget.options.minNodeSize?.[0],
minHeight: widget.options.minNodeSize?.[1]
}
}
}
function controlValueRunBefore() {
return useSettingStore().get('Comfy.WidgetControlMode') === 'before'
}
export function updateControlWidgetLabel(widget: IBaseWidget) {
if (controlValueRunBefore()) {
widget.label = t('g.control_before_generate')
} else {
widget.label = t('g.control_after_generate')
}
}
export const IS_CONTROL_WIDGET = Symbol()
const HAS_EXECUTED = Symbol()
export function addValueControlWidget(
node: LGraphNode,
targetWidget: IBaseWidget,
defaultValue?: string,
_values?: unknown,
widgetName?: string,
inputData?: InputSpec
): IComboWidget {
let name = inputData?.[1]?.control_after_generate
if (typeof name !== 'string') {
name = widgetName
}
const widgets = addValueControlWidgets(
node,
targetWidget,
defaultValue ?? 'randomize',
{
addFilterList: false,
controlAfterGenerateName: name
},
inputData
)
return widgets[0]
}
export function addValueControlWidgets(
node: LGraphNode,
targetWidget: IBaseWidget,
defaultValue?: string,
options?: Record<string, any>,
inputData?: InputSpec
): [IComboWidget, ...IStringWidget[]] {
if (!defaultValue) defaultValue = 'randomize'
if (!options) options = {}
const getName = (defaultName: string, optionName: string) => {
let name = defaultName
if (options[optionName]) {
name = options[optionName]
} else if (typeof inputData?.[1]?.[defaultName] === 'string') {
name = inputData?.[1]?.[defaultName]
} else if (inputData?.[1]?.control_prefix) {
name = inputData?.[1]?.control_prefix + ' ' + name
}
return name
}
const valueControl = node.addWidget(
'combo',
getName('control_after_generate', 'controlAfterGenerateName'),
defaultValue,
function () {},
{
values: ['fixed', 'increment', 'decrement', 'randomize'],
serialize: false, // Don't include this in prompt.
canvasOnly: true
}
) as IComboWidget
valueControl.tooltip =
'Allows the linked widget to be changed automatically, for example randomizing the noise seed.'
valueControl[IS_CONTROL_WIDGET] = true
updateControlWidgetLabel(valueControl)
Object.defineProperty(valueControl, 'disabled', {
get: () => targetWidget.computedDisabled
})
const widgets: [IComboWidget, ...IStringWidget[]] = [valueControl]
const isCombo = isComboWidget(targetWidget)
let comboFilter: IStringWidget
if (isCombo && valueControl.options.values) {
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
valueControl.options.values.push('increment-wrap')
}
if (isCombo && options.addFilterList !== false) {
comboFilter = node.addWidget(
'string',
getName('control_filter_list', 'controlFilterListName'),
'',
function () {},
{
serialize: false // Don't include this in prompt.
}
) as IStringWidget
updateControlWidgetLabel(comboFilter)
comboFilter.tooltip =
"Allows for filtering the list of values when changing the value via the control generate mode. Allows for RegEx matches in the format /abc/ to only filter to values containing 'abc'."
Object.defineProperty(comboFilter, 'disabled', {
get: () => targetWidget.computedDisabled
})
widgets.push(comboFilter)
}
const applyWidgetControl = () => {
var v = valueControl.value
if (isCombo && v !== 'fixed') {
let values = targetWidget.options.values ?? []
const filter = comboFilter?.value
if (filter) {
let check
if (filter.startsWith('/') && filter.endsWith('/')) {
try {
const regex = new RegExp(filter.substring(1, filter.length - 1))
check = (item: string) => regex.test(item)
} catch (error) {
console.error(
'Error constructing RegExp filter for node ' + node.id,
filter,
error
)
}
}
if (!check) {
const lower = filter.toLocaleLowerCase()
check = (item: string) => item.toLocaleLowerCase().includes(lower)
}
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
values = values.filter((item: string) => check(item))
if (!values.length && targetWidget.options.values?.length) {
console.warn(
'Filter for node ' + node.id + ' has filtered out all items',
filter
)
}
}
// @ts-expect-error targetWidget.value can be number or string
let current_index = values.indexOf(targetWidget.value)
let current_length = values.length
switch (v) {
case 'increment':
current_index += 1
break
case 'increment-wrap':
current_index += 1
if (current_index >= current_length) {
current_index = 0
}
break
case 'decrement':
current_index -= 1
break
case 'randomize':
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
current_index = Math.floor(Math.random() * current_length)
break
default:
break
}
current_index = Math.max(0, current_index)
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
current_index = Math.min(current_length - 1, current_index)
if (current_index >= 0) {
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
let value = values[current_index]
targetWidget.value = value
targetWidget.callback?.(value)
}
} else {
//number
let { min = 0, max = 1, step2 = 1 } = targetWidget.options
// limit to something that javascript can handle
max = Math.min(1125899906842624, max)
min = Math.max(-1125899906842624, min)
let range = (max - min) / step2
//adjust values based on valueControl Behaviour
switch (v) {
case 'fixed':
break
case 'increment':
// @ts-expect-error targetWidget.value can be number or string
targetWidget.value += step2
break
case 'decrement':
// @ts-expect-error targetWidget.value can be number or string
targetWidget.value -= step2
break
case 'randomize':
targetWidget.value = Math.floor(Math.random() * range) * step2 + min
break
default:
break
}
/*check if values are over or under their respective
* ranges and set them to min or max.*/
// @ts-expect-error targetWidget.value can be number or string
if (targetWidget.value < min) targetWidget.value = min
// @ts-expect-error targetWidget.value can be number or string
if (targetWidget.value > max) targetWidget.value = max
targetWidget.callback?.(targetWidget.value)
}
}
valueControl.beforeQueued = ({ isPartialExecution } = {}) => {
if (!isPartialExecution && controlValueRunBefore()) {
// Don't run on first execution
if (valueControl[HAS_EXECUTED]) {
applyWidgetControl()
}
}
valueControl[HAS_EXECUTED] = true
}
valueControl.afterQueued = ({ isPartialExecution } = {}) => {
if (!isPartialExecution && !controlValueRunBefore()) {
applyWidgetControl()
}
}
return widgets
}
export const ComfyWidgets = {
INT: transformWidgetConstructorV2ToV1(useIntWidget()),
FLOAT: transformWidgetConstructorV2ToV1(useFloatWidget()),
BOOLEAN: transformWidgetConstructorV2ToV1(useBooleanWidget()),
STRING: transformWidgetConstructorV2ToV1(useStringWidget()),
MARKDOWN: transformWidgetConstructorV2ToV1(useMarkdownWidget()),
COMBO: transformWidgetConstructorV2ToV1(useComboWidget()),
IMAGEUPLOAD: useImageUploadWidget(),
COLOR: transformWidgetConstructorV2ToV1(useColorWidget()),
IMAGECOMPARE: transformWidgetConstructorV2ToV1(useImageCompareWidget()),
BOUNDING_BOX: transformWidgetConstructorV2ToV1(useBoundingBoxWidget()),
CHART: transformWidgetConstructorV2ToV1(useChartWidget()),
GALLERIA: transformWidgetConstructorV2ToV1(useGalleriaWidget()),
PAINTER: transformWidgetConstructorV2ToV1(usePainterWidget()),
TEXTAREA: transformWidgetConstructorV2ToV1(useTextareaWidget()),
CURVE: transformWidgetConstructorV2ToV1(useCurveWidget()),
RANGE: transformWidgetConstructorV2ToV1(useRangeWidget()),
BOUNDING_BOXES: transformWidgetConstructorV2ToV1(useBoundingBoxesWidget()),
COLORS: transformWidgetConstructorV2ToV1(useColorsWidget()),
...dynamicWidgets
} as const
export function isValidWidgetType(
key: unknown
): key is keyof typeof ComfyWidgets {
return ComfyWidgets[key as keyof typeof ComfyWidgets] !== undefined
}
@@ -0,0 +1 @@
{"author":"","banner_url":"","category":"","created_at":"2025-12-11T17:49:56.961185Z","description":"Run LLM/VLM models natively in ComfyUI based on llama.cpp","downloads":74544,"github_stars":581,"icon":"","id":"llama-cpp_vllm","latest_version":{"changelog":"","createdAt":"2026-08-17T13:15:49.341973Z","dependencies":["diskcache","scipy","numpy","pillow","gguf"],"deprecated":false,"downloadUrl":"","id":"1bf1b75a-de1d-4d61-a189-5c1b4f2959ca","node_id":"llama-cpp_vllm","status":"NodeVersionStatusFlagged","supported_accelerators":["GPU :: NVIDIA CUDA","GPU :: Apple Metal"],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":["Microsoft :: Windows","POSIX :: Linux","MacOS"],"tags":[],"version":"1.3.1"},"license":"{\"file\": \"LICENSE\"}","name":"ComfyUI-llama-cpp_vlm","publisher":{"createdAt":"2025-12-11T17:35:45.191721Z","description":"","id":"lhy666","logo":"","members":[{"user":{"name":"Big Pear"}}],"name":"Haoyun Li","source_code_repo":"","status":"PublisherStatusActive","support":"","website":""},"rating":0,"repository":"https://github.com/lihaoyun6/ComfyUI-llama-cpp_vlm","search_ranking":5,"status":"NodeStatusActive","supported_accelerators":["GPU :: NVIDIA CUDA","GPU :: Apple Metal"],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":["Microsoft :: Windows","POSIX :: Linux","MacOS"],"tags":[]}
@@ -0,0 +1,10 @@
{
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
"requested_commit": "20571a3cf504b8308781d3cad2e432444ec3d75b",
"registry_id": "llama-cpp_vllm",
"attempts": [
"git fetch exact commit: upload-pack not our ref",
"pinned raw nodes.py: HTTP 404"
],
"conclusion": "准确提交不可得;不套f2209ccc或其它版,三个节点schema/实现/恢复/许可绑定未知"
}
@@ -0,0 +1,22 @@
{
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
"requested_commit": "20571a3cf504b8308781d3cad2e432444ec3d75b",
"registry_id": "llama-cpp_vllm",
"prior_record_sha256": "b74f3350c3ffc8190abf8ec104c069aebc8f85ae24c6e86a88b99b3e1195c8da",
"prior_registry_sha256": "d1b7a0051016d2789324260a6d738c054007f2b729005fa520cc023172917cc0",
"prior_attempts": [
"git fetch exact commit: upload-pack not our ref",
"pinned raw nodes.py: HTTP 404"
],
"checked_at": "2026-10-31T14:20:47.167860+00:00",
"git_fetch": {
"exit_code": 128,
"stdout": "",
"stderr": "fatal: remote error: upload-pack: not our ref 20571a3cf504b8308781d3cad2e432444ec3d75b\n"
},
"raw_url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/20571a3cf504b8308781d3cad2e432444ec3d75b/nodes.py",
"raw": {
"status": 404
},
"conclusion": "准确实现/许可/恢复未知;不套a69/f2209或传播宿主0.20.1,不执行插件"
}
@@ -0,0 +1,22 @@
{
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
"requested_commit": "20571a3cf504b8308781d3cad2e432444ec3d75b",
"registry_id": "llama-cpp_vllm",
"prior_record_sha256": "df5b5bd6863ecb0c2cdfd64355bbe2e73dffc7b2eec4f96dd2b74b5f0fcfc569",
"prior_registry_sha256": "d1b7a0051016d2789324260a6d738c054007f2b729005fa520cc023172917cc0",
"prior_attempts": [
"git fetch exact commit: upload-pack not our ref",
"pinned raw nodes.py: HTTP 404"
],
"checked_at": "2026-10-31T15:46:58.292843+00:00",
"git_fetch": {
"exit_code": 128,
"stdout": "",
"stderr": "fatal: remote error: upload-pack: not our ref 20571a3cf504b8308781d3cad2e432444ec3d75b\n"
},
"raw_url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/20571a3cf504b8308781d3cad2e432444ec3d75b/nodes.py",
"raw": {
"status": 404
},
"conclusion": "准确实现/许可/恢复未知;不套a69/f2209或传播宿主0.20.1,不执行插件"
}
@@ -0,0 +1,23 @@
tree 490f99cf37750601196fa4cde9e03b2d430b7ee5
parent 10c809532dc68598533d44d8d23eec126e73333c
author painter890602 <124643595+princepainter@users.noreply.github.com> 1783998809 +0800
committer GitHub <noreply@github.com> 1783998809 +0800
gpgsig -----BEGIN PGP SIGNATURE-----
wsFcBAABCAAQBQJqValZCRC1aQ7uu5UhlAAAJi0QAChT/gfL6a9l3gFWjqYOH4St
y35R4zUvClSdbj7KI0QzwxhWQLZ8PujMiNhOJZi8ws0JH3TgBFSTsBBZkcuV+lBm
/dQkbXGwtmAl0DP1O/L2age4lyupdGziwUmm4Uhv+AUxmRCaA6Tgo0Eon4gDxhuc
wGg6xcI7s+EaR5fVWgF81uNO7cgSFQBLeCMFaav0JWxlKczSGDNUlI0lwyB+fFc8
b39yFATYt/Ghw5/DuGp+jPEJbHhzK7+CAZ0OHUgMe7OIxYaLHObQS842/gKtKFcc
JglO0t/XESsRnZtPVHWP29sYGty7z8KwA6e5i4+5bjQUjQVrAj+bueOSpUYtXRjt
zDckpNT4BFOFB7wDcAc8NWkqSuWOKFZMoFmD14KGlZMJF8SnudjIdHOJblaQRWmZ
khdmhikVIKJqsYIsQ6oFfK6Me1Zq7p7T6VetdNUzHjKT7Sz6g9yRp1f/TvuiBUtg
MWQ4RXblt8CnMLZpuRucKjg+HGwioe9/wL+KqBYH1WdhAirS8nx6yqk2geO6OJcP
+3oJic4d2es7grPWAh2eQvbe9iEdhEB1CHCM6yGuQOUfNwkf4cMD9tyI8hbvgLiT
S6DejxGzaV3KwZuhZIhGHC16xaq1ok1y3vtuwbHeBp6cdsVKVpJVUlhqnVKcLlZY
DfA/neBvm0d+ZbW25gml
=cUb5
-----END PGP SIGNATURE-----
Update pyproject.toml
@@ -0,0 +1,2 @@
From https://github.com/princepainter/ComfyUI-PainterNodes
* branch 2864e1542d6e03e4429e919a02cffed081039cfb -> FETCH_HEAD
@@ -0,0 +1 @@
{"author":"","banner_url":"","category":"","created_at":"2026-07-17T03:32:46.978033Z","description":"Video and image generation nodes for MiniMax H3, LTX, Wan2.2, Bernini, qwen image edit,flux image edit, and utility nodes.","downloads":9179,"github_stars":205,"icon":"","id":"comfyui-painternodes","latest_version":{"changelog":"","createdAt":"2026-10-23T02:19:55.292526Z","dependencies":["soundfile\u003e=0.12.1","numpy\u003e=1.21.0"],"deprecated":false,"downloadUrl":"","id":"bab5a1e6-e372-4507-8078-fad63e76a1d5","node_id":"comfyui-painternodes","status":"NodeVersionStatusFlagged","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.4.9"},"license":"{\"file\": \"LICENSE\"}","name":"ComfyUI-PainterNodes","publisher":{"createdAt":"2026-07-17T03:18:22.938721Z","description":"","id":"princepainter","logo":"","members":[{"user":{"name":"painter890602"}}],"name":"princepainter","source_code_repo":"","status":"PublisherStatusActive","support":"","website":""},"rating":0,"repository":"https://github.com/princepainter/ComfyUI-PainterNodes","search_ranking":5,"status":"NodeStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[]}
@@ -0,0 +1 @@
{"requested": "2864e1542d6e03e4429e919a02cffed081039cfb", "object": "2864e1542d6e03e4429e919a02cffed081039cfb", "commit": "2864e1542d6e03e4429e919a02cffed081039cfb"}
@@ -0,0 +1,23 @@
tree 490f99cf37750601196fa4cde9e03b2d430b7ee5
parent 10c809532dc68598533d44d8d23eec126e73333c
author painter890602 <124643595+princepainter@users.noreply.github.com> 1783998809 +0800
committer GitHub <noreply@github.com> 1783998809 +0800
gpgsig -----BEGIN PGP SIGNATURE-----
wsFcBAABCAAQBQJqValZCRC1aQ7uu5UhlAAAJi0QAChT/gfL6a9l3gFWjqYOH4St
y35R4zUvClSdbj7KI0QzwxhWQLZ8PujMiNhOJZi8ws0JH3TgBFSTsBBZkcuV+lBm
/dQkbXGwtmAl0DP1O/L2age4lyupdGziwUmm4Uhv+AUxmRCaA6Tgo0Eon4gDxhuc
wGg6xcI7s+EaR5fVWgF81uNO7cgSFQBLeCMFaav0JWxlKczSGDNUlI0lwyB+fFc8
b39yFATYt/Ghw5/DuGp+jPEJbHhzK7+CAZ0OHUgMe7OIxYaLHObQS842/gKtKFcc
JglO0t/XESsRnZtPVHWP29sYGty7z8KwA6e5i4+5bjQUjQVrAj+bueOSpUYtXRjt
zDckpNT4BFOFB7wDcAc8NWkqSuWOKFZMoFmD14KGlZMJF8SnudjIdHOJblaQRWmZ
khdmhikVIKJqsYIsQ6oFfK6Me1Zq7p7T6VetdNUzHjKT7Sz6g9yRp1f/TvuiBUtg
MWQ4RXblt8CnMLZpuRucKjg+HGwioe9/wL+KqBYH1WdhAirS8nx6yqk2geO6OJcP
+3oJic4d2es7grPWAh2eQvbe9iEdhEB1CHCM6yGuQOUfNwkf4cMD9tyI8hbvgLiT
S6DejxGzaV3KwZuhZIhGHC16xaq1ok1y3vtuwbHeBp6cdsVKVpJVUlhqnVKcLlZY
DfA/neBvm0d+ZbW25gml
=cUb5
-----END PGP SIGNATURE-----
Update pyproject.toml
@@ -0,0 +1,41 @@
[
"PainterAI2V.py",
"PainterAV2V.py",
"PainterAudioCut.py",
"PainterCombineFromBatch.py",
"PainterFLF2V.py",
"PainterFluxImageEdit.py",
"PainterFrameCount.py",
"PainterFrameExtractor.py",
"PainterFrameRateConverter.py",
"PainterHumoAI2V.py",
"PainterHumoAV2V.py",
"PainterI2V.py",
"PainterI2VAdvanced.py",
"PainterImageConcat.py",
"PainterImageFromBatch.py",
"PainterLTX2Vomni.py",
"PainterLTXomni2.py",
"PainterLongVideo.py",
"PainterMultiF2V.py",
"PainterPrompt.py",
"PainterQwenImageEdit.py",
"PainterResizeImages.py",
"PainterS2Vplus.py",
"PainterSampler.py",
"PainterSequentialF2V.py",
"PainterStringCleaner.py",
"PainterTextOverlay.py",
"PainterV2AV.py",
"PainterVRAM.py",
"PainterVideoCombine.py",
"PainterVideoInfo.py",
"PainterVideoUpscale.py",
"README.md",
"__init__.py",
"pyproject.toml",
"requirements.txt",
"web/js/PainterFluxImageEdit.js",
"web/js/PainterQwenImageEditPlus.js",
"web/js/PainterVideoCombine.js"
]
@@ -0,0 +1,306 @@
{
"sha": "490f99cf37750601196fa4cde9e03b2d430b7ee5",
"truncated": false,
"tree": [
{
"path": ".github/workflows/publish.yml",
"mode": "100644",
"type": "blob",
"sha": "018f234d333fc65d8663fb4d2095c0a9728f9820"
},
{
"path": "LICENSE",
"mode": "100644",
"type": "blob",
"sha": "0b1dda4ecce33cb40a04347a91ef25341344d40c"
},
{
"path": "PainterAI2V.py",
"mode": "100644",
"type": "blob",
"sha": "497f321b2464c09cbedc60f7f921ecb4f8bfb769"
},
{
"path": "PainterAV2V.py",
"mode": "100644",
"type": "blob",
"sha": "4bb4da288439cf31b7b805dbd62b7890059a2317"
},
{
"path": "PainterAudioCut.py",
"mode": "100644",
"type": "blob",
"sha": "55dd46c7add257456072c5b8efd4b71f1f5bdc58"
},
{
"path": "PainterCombineFromBatch.py",
"mode": "100644",
"type": "blob",
"sha": "cca9027f25d297710ffcb540e1c6ffff4a1d0d02"
},
{
"path": "PainterFLF2V.py",
"mode": "100644",
"type": "blob",
"sha": "7423f478aa6a7b9f81806a9c66e42e4ee2400a7d"
},
{
"path": "PainterFluxImageEdit.py",
"mode": "100644",
"type": "blob",
"sha": "48923870190daf0a3fe818bad70a9030d434d27c"
},
{
"path": "PainterFrameCount.py",
"mode": "100644",
"type": "blob",
"sha": "0dcc7c0bd212c1fad785c1c135052d6f2500d4b2"
},
{
"path": "PainterFrameExtractor.py",
"mode": "100644",
"type": "blob",
"sha": "7c9e02927a23718d9934fdf8fd16c2a0b31c3ced"
},
{
"path": "PainterFrameRateConverter.py",
"mode": "100644",
"type": "blob",
"sha": "bcda474a9bd63de24bfb516ac93c9a82c8d1722a"
},
{
"path": "PainterHumoAI2V.py",
"mode": "100644",
"type": "blob",
"sha": "8825715f8dc67b9e0431f9ccefe97ddfbcdeb568"
},
{
"path": "PainterHumoAV2V.py",
"mode": "100644",
"type": "blob",
"sha": "def1d83b6c944b7c8fa06c62a554b694cbc609d8"
},
{
"path": "PainterI2V.py",
"mode": "100644",
"type": "blob",
"sha": "fede3710339d1ab9fe106563b63b29243d49355f"
},
{
"path": "PainterI2VAdvanced.py",
"mode": "100644",
"type": "blob",
"sha": "97153cf2198fdeffce3a5713acf12769dffed850"
},
{
"path": "PainterImageConcat.py",
"mode": "100644",
"type": "blob",
"sha": "2103458bcec131caa81c5088ce1f8ff2031a2ebb"
},
{
"path": "PainterImageFromBatch.py",
"mode": "100644",
"type": "blob",
"sha": "f645a9a46e29792d95ee686c14cc6e3c818d42ed"
},
{
"path": "PainterLTX2Vomni.py",
"mode": "100644",
"type": "blob",
"sha": "9a1261ba56db8efe4b8cb4e250f374b0f48c1fed"
},
{
"path": "PainterLTXomni2.py",
"mode": "100644",
"type": "blob",
"sha": "572c5c866bd2bdd16a8cdcb41349cba582974928"
},
{
"path": "PainterLongVideo.py",
"mode": "100644",
"type": "blob",
"sha": "5a876989c32bf043b7ccd54dca64401871558483"
},
{
"path": "PainterMultiF2V.py",
"mode": "100644",
"type": "blob",
"sha": "c64be5ad68b30da66fa1d7d090e9a416d9ba70e9"
},
{
"path": "PainterPrompt.py",
"mode": "100644",
"type": "blob",
"sha": "f8d54af30accf0ec538b1724e9f1b17be08ef91f"
},
{
"path": "PainterQwenImageEdit.py",
"mode": "100644",
"type": "blob",
"sha": "9261167933ab5b57ad8fce121e6f2ae0a1e552e6"
},
{
"path": "PainterResizeImages.py",
"mode": "100644",
"type": "blob",
"sha": "663f4bf628101fba756026beb638c2d5f7785f88"
},
{
"path": "PainterS2Vplus.py",
"mode": "100644",
"type": "blob",
"sha": "54d11b54f16c1d518f64562779959164d913ca9c"
},
{
"path": "PainterSampler.py",
"mode": "100644",
"type": "blob",
"sha": "b152831ce92d0680c2522eec05e9ae9f51893aa4"
},
{
"path": "PainterSequentialF2V.py",
"mode": "100644",
"type": "blob",
"sha": "d77b8bddd0a56a1da308735fe64efd18ad781b63"
},
{
"path": "PainterStringCleaner.py",
"mode": "100644",
"type": "blob",
"sha": "41a7cd0687dbeb7acc87e9533b9d9db15bf801be"
},
{
"path": "PainterTextOverlay.py",
"mode": "100644",
"type": "blob",
"sha": "7362103bffffab6cbb840c04a0a8fceb7bf3a664"
},
{
"path": "PainterV2AV.py",
"mode": "100644",
"type": "blob",
"sha": "524441ba095aa2c28ea40f0cb3a03aa9f792e460"
},
{
"path": "PainterVRAM.py",
"mode": "100644",
"type": "blob",
"sha": "c71fdce75b322ebebc2cd06805f44151ab65df1e"
},
{
"path": "PainterVideoCombine.py",
"mode": "100644",
"type": "blob",
"sha": "b9c84b54b2c5065dc2884ac61e6d4e180e28a106"
},
{
"path": "PainterVideoInfo.py",
"mode": "100644",
"type": "blob",
"sha": "735009dc015c9e8c396e8f3d8fc8692ba5eeec0f"
},
{
"path": "PainterVideoUpscale.py",
"mode": "100644",
"type": "blob",
"sha": "5b1f6bf631711906092d9c7a6792f96bf610c0d4"
},
{
"path": "README.md",
"mode": "100644",
"type": "blob",
"sha": "9a460bd296e52774b58e0d5149809c545b9f2a82"
},
{
"path": "__init__.py",
"mode": "100644",
"type": "blob",
"sha": "7a5d12af3978fb1a81e221d320d2bca60f24e907"
},
{
"path": "pyproject.toml",
"mode": "100644",
"type": "blob",
"sha": "c1dc3d6455ada0cbe900ea0176b8aeff2c9aa125"
},
{
"path": "requirements.txt",
"mode": "100644",
"type": "blob",
"sha": "b7739dab5abfe889453dfff61fde2741ae8fac1a"
},
{
"path": "web/js/PainterFluxImageEdit.js",
"mode": "100644",
"type": "blob",
"sha": "c6bafa41797f8ba0f5c7b693bcbec8c95df916e4"
},
{
"path": "web/js/PainterQwenImageEditPlus.js",
"mode": "100644",
"type": "blob",
"sha": "c9d6b3dfef44152ec6885ddfc82dc6eef87ca472"
},
{
"path": "web/js/PainterVideoCombine.js",
"mode": "100644",
"type": "blob",
"sha": "baf2c66194eb16e3ffbfaeb6f9802281215a2a7d"
},
{
"path": "workflows/FLUX2-9B-2026-6-19.json",
"mode": "100644",
"type": "blob",
"sha": "2109a8249c563f517c41ed6fcfc8860a96be0e15"
},
{
"path": "workflows/WAN2.2+humo AT2V.json",
"mode": "100644",
"type": "blob",
"sha": "b15d604bc2cc28dd3546b9a23d05118c24bfa761"
},
{
"path": "workflows/WAN2.2+humo VS WAN2.2 compare.json",
"mode": "100644",
"type": "blob",
"sha": "b0abb6ac5fa24336d7c7e2a6e2a3728df65d0732"
},
{
"path": "workflows/bernini+ltx2.3.json",
"mode": "100644",
"type": "blob",
"sha": "585ea45a739c7e9f45232e3a35c0d9ba6d932066"
},
{
"path": "workflows/qwen_image_edit-2026-6-19.json",
"mode": "100644",
"type": "blob",
"sha": "f987077ed0a87d3825999ab612fc0b906ab3ca51"
},
{
"path": "workflows/video_humo-AV2V.json",
"mode": "100644",
"type": "blob",
"sha": "403e3ac1ddaa634062e2faf460833d9a7392002f"
},
{
"path": "workflows/wan2.2+humo AI2V 2026.json",
"mode": "100644",
"type": "blob",
"sha": "36b2b35023c9a8b154b8e7bbd70e8805c2450c63"
},
{
"path": "workflows/wan2.2+ltx2.3-2026.json",
"mode": "100644",
"type": "blob",
"sha": "25f5e263fd39d186fbdce2664ff450ad32abbe01"
},
{
"path": "workflows/wan2.2-humo2026.json",
"mode": "100644",
"type": "blob",
"sha": "5e88e02e1b797d8a20f787739e6891fdc7f1ed2b"
}
]
}
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 princepainter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,129 @@
from typing import Any as any_type
from comfy import model_management
import gc
import time
import random
# Try to import pynvml; if missing, disable auto mode
try:
import pynvml
pynvml.nvmlInit()
PYNVML_AVAILABLE = True
except ImportError:
PYNVML_AVAILABLE = False
print("[PainterVRAM] Warning: pynvml not installed. Auto mode will be disabled.")
# Save / restore random state for internal use
_INITIAL_RANDOM_STATE = random.getstate()
random.seed(time.time())
_RESERVED_RANDOM_STATE = random.getstate()
random.setstate(_INITIAL_RANDOM_STATE)
def gpu_memory_info():
"""Return (total_GB, used_GB) for GPU-0. None if unavailable."""
if not PYNVML_AVAILABLE:
return None, None
try:
handle = pynvml.nvmlDeviceGetHandleByIndex(0)
info = pynvml.nvmlDeviceGetMemoryInfo(handle)
total = info.total / (1024 ** 3)
used = info.used / (1024 ** 3)
return total, used
except Exception as e:
print(f"[PainterVRAM] Failed to query GPU memory: {e}")
return None, None
class AlwaysEqualProxy(str):
def __eq__(self, _):
return True
def __ne__(self, _):
return False
any_type = AlwaysEqualProxy("*")
class PainterVRAM:
"""Manage ComfyUI EXTRA_RESERVED_VRAM with manual or auto mode."""
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"reserved": ("FLOAT", {
"default": 0.6,
"min": -2.0,
"step": 0.1,
"display": "reserved (GB)"
}),
"mode": (["manual", "auto"], {
"default": "auto",
"display": "Mode"
}),
"clean_gpu_before": ("BOOLEAN", {"default": True}),
},
"optional": {
"anything": (any_type, {})
},
"hidden": {
"unique_id": "UNIQUE_ID",
"extra_pnginfo": "EXTRA_PNGINFO"
}
}
RETURN_TYPES = (any_type,)
RETURN_NAMES = ("output",)
OUTPUT_NODE = True
FUNCTION = "apply"
CATEGORY = "VRAM"
@staticmethod
def force_cleanup():
"""Aggressively free GPU memory."""
gc.collect()
model_management.unload_all_models()
model_management.soft_empty_cache()
def apply(self, reserved, mode="auto", clean_gpu_before=True,
anything=None, unique_id=None, extra_pnginfo=None):
if clean_gpu_before:
print("[PainterVRAM] Pre-cleanup GPU memory...")
self.force_cleanup()
print("[PainterVRAM] GPU cleanup finished")
final_reserved_gb = 0.0
if mode == "auto":
if PYNVML_AVAILABLE:
total, used = gpu_memory_info()
if total is not None and used is not None:
auto_reserved = used + reserved
auto_reserved = max(0.0, auto_reserved)
print(f"[PainterVRAM] Set EXTRA_RESERVED_VRAM={auto_reserved:.2f} GB "
f"(auto: total={total:.2f} GB, used={used:.2f} GB)")
model_management.EXTRA_RESERVED_VRAM = int(auto_reserved * 1024 ** 3)
final_reserved_gb = round(auto_reserved, 2)
else:
print("[PainterVRAM] Auto query failed; fallback to manual value")
model_management.EXTRA_RESERVED_VRAM = int(max(0.0, reserved) * 1024 ** 3)
final_reserved_gb = round(max(0.0, reserved), 2)
else:
print("[PainterVRAM] pynvml unavailable; fallback to manual value")
model_management.EXTRA_RESERVED_VRAM = int(max(0.0, reserved) * 1024 ** 3)
final_reserved_gb = round(max(0.0, reserved), 2)
else:
# Manual mode
reserved = max(0.0, reserved)
model_management.EXTRA_RESERVED_VRAM = int(reserved * 1024 ** 3)
print(f"[PainterVRAM] Set EXTRA_RESERVED_VRAM={reserved:.2f} GB (manual)")
final_reserved_gb = round(reserved, 2)
from comfy_execution.graph import ExecutionBlocker
output_value = anything if anything is not None else ExecutionBlocker(None)
return (output_value,)
NODE_CLASS_MAPPINGS = {
"PainterVRAM": PainterVRAM
}
NODE_DISPLAY_NAME_MAPPINGS = {
"PainterVRAM": "Painter VRAM "
}
@@ -0,0 +1,210 @@
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
def _register_module(module):
NODE_CLASS_MAPPINGS.update(getattr(module, "NODE_CLASS_MAPPINGS", {}))
NODE_DISPLAY_NAME_MAPPINGS.update(getattr(module, "NODE_DISPLAY_NAME_MAPPINGS", {}))
try:
from . import PainterPrompt
_register_module(PainterPrompt)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterPrompt: {e}")
try:
from . import PainterI2V
_register_module(PainterI2V)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterI2V: {e}")
try:
from . import PainterI2VAdvanced
_register_module(PainterI2VAdvanced)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterI2VAdvanced: {e}")
try:
from . import PainterAI2V
_register_module(PainterAI2V)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterAI2V: {e}")
try:
from . import PainterAV2V
_register_module(PainterAV2V)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterAV2V: {e}")
try:
from . import PainterSampler
_register_module(PainterSampler)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterSampler: {e}")
try:
from . import PainterSequentialF2V
_register_module(PainterSequentialF2V)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterSequentialF2V: {e}")
try:
from . import PainterVideoCombine
_register_module(PainterVideoCombine)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterVideoCombine: {e}")
try:
from . import PainterVideoInfo
_register_module(PainterVideoInfo)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterVideoInfo: {e}")
try:
from . import PainterVideoUpscale
_register_module(PainterVideoUpscale)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterVideoUpscale: {e}")
try:
from . import PainterVRAM
_register_module(PainterVRAM)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterVRAM: {e}")
try:
from . import PainterStringCleaner
_register_module(PainterStringCleaner)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterStringCleaner: {e}")
try:
from . import PainterFrameRateConverter
_register_module(PainterFrameRateConverter)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterFrameRateConverter: {e}")
try:
from . import PainterFrameExtractor
_register_module(PainterFrameExtractor)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterFrameExtractor: {e}")
try:
from . import PainterLTX2Vomni
_register_module(PainterLTX2Vomni)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterLTX2Vomni: {e}")
try:
from . import PainterLTXomni2
_register_module(PainterLTXomni2)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterLTXomni2: {e}")
try:
from . import PainterV2AV
_register_module(PainterV2AV)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterV2AV: {e}")
try:
from . import PainterImageConcat
_register_module(PainterImageConcat)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterImageConcat: {e}")
try:
from . import PainterResizeImages
_register_module(PainterResizeImages)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterResizeImages: {e}")
try:
from . import PainterFluxImageEdit
_register_module(PainterFluxImageEdit)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterFluxImageEdit: {e}")
try:
from . import PainterQwenImageEdit
_register_module(PainterQwenImageEdit)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterQwenImageEdit: {e}")
try:
from . import PainterAudioCut
_register_module(PainterAudioCut)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterAudioCut: {e}")
try:
from . import PainterCombineFromBatch
_register_module(PainterCombineFromBatch)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterCombineFromBatch: {e}")
try:
from . import PainterFLF2V
_register_module(PainterFLF2V)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterFLF2V: {e}")
try:
from . import PainterFrameCount
_register_module(PainterFrameCount)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterFrameCount: {e}")
try:
from . import PainterHumoAI2V
_register_module(PainterHumoAI2V)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterHumoAI2V: {e}")
try:
from . import PainterHumoAV2V
_register_module(PainterHumoAV2V)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterHumoAV2V: {e}")
try:
from . import PainterImageFromBatch
_register_module(PainterImageFromBatch)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterImageFromBatch: {e}")
try:
from . import PainterLongVideo
_register_module(PainterLongVideo)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterLongVideo: {e}")
try:
from . import PainterMultiF2V
_register_module(PainterMultiF2V)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterMultiF2V: {e}")
try:
from . import PainterS2Vplus
_register_module(PainterS2Vplus)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterS2Vplus: {e}")
try:
from . import PainterTextOverlay
_register_module(PainterTextOverlay)
except Exception as e:
print(f"[PainterNodes] Failed to import PainterTextOverlay: {e}")
print(f"\033[92m[PainterNodes] Loaded {len(NODE_CLASS_MAPPINGS)} nodes successfully!\033[0m")
__version__ = "1.2.1"
WEB_DIRECTORY = "./web/js"
__all__ = [
"NODE_CLASS_MAPPINGS",
"NODE_DISPLAY_NAME_MAPPINGS",
"WEB_DIRECTORY",
"__version__",
]
@@ -0,0 +1,14 @@
[project]
name = "comfyui-painternodes"
description = "Video generation nodes for LTX, Wan2.2, Bernini, qwen image edit,flux image edit, and utility nodes."
version = "1.2.1"
license = { file = "LICENSE" }
dependencies = ["soundfile>=0.12.1", "numpy>=1.21.0"]
[project.urls]
Repository = "https://github.com/princepainter/ComfyUI-PainterNodes"
[tool.comfy]
PublisherId = "princepainter"
DisplayName = "ComfyUI-PainterNodes"
Icon = ""
@@ -0,0 +1,2 @@
soundfile>=0.12.1
numpy>=1.21.0
@@ -0,0 +1,342 @@
[
{
"name": ".github/workflows/publish.yml",
"size": 652,
"crc": 2614482282
},
{
"name": ".gitignore",
"size": 115,
"crc": 1388721311
},
{
"name": "LICENSE",
"size": 1069,
"crc": 352214033
},
{
"name": "README.md",
"size": 10422,
"crc": 1055057912
},
{
"name": "__init__.py",
"size": 1004,
"crc": 1379277576
},
{
"name": "py/autocomplete.py",
"size": 881,
"crc": 3246162221
},
{
"name": "py/better_combos.py",
"size": 5204,
"crc": 99028286
},
{
"name": "py/constrain_image.py",
"size": 2888,
"crc": 2087516096
},
{
"name": "py/constrain_image_for_video.py",
"size": 3025,
"crc": 3576997692
},
{
"name": "py/math_expression.py",
"size": 8623,
"crc": 3275097324
},
{
"name": "py/model_info.py",
"size": 3450,
"crc": 1525875962
},
{
"name": "py/play_sound.py",
"size": 1006,
"crc": 2497956486
},
{
"name": "py/repeater.py",
"size": 1335,
"crc": 521680406
},
{
"name": "py/reroute_primitive.py",
"size": 1265,
"crc": 2837769298
},
{
"name": "py/show_text.py",
"size": 1453,
"crc": 4027723761
},
{
"name": "py/string_function.py",
"size": 1599,
"crc": 3081041278
},
{
"name": "py/system_notification.py",
"size": 1011,
"crc": 2387424264
},
{
"name": "py/text_files.py",
"size": 6211,
"crc": 2412488631
},
{
"name": "py/workflows.py",
"size": 2163,
"crc": 416838749
},
{
"name": "pyproject.toml",
"size": 358,
"crc": 2028107200
},
{
"name": "pysssss.default.json",
"size": 48,
"crc": 2858599682
},
{
"name": "pysssss.example.json",
"size": 107,
"crc": 1530042973
},
{
"name": "pysssss.py",
"size": 8398,
"crc": 3729962875
},
{
"name": "user/text_file_dirs.json",
"size": 90,
"crc": 4256646991
},
{
"name": "web/js/assets/canvas2svg.js",
"size": 44131,
"crc": 1327597091
},
{
"name": "web/js/assets/favicon-active.ico",
"size": 1025,
"crc": 3038842996
},
{
"name": "web/js/assets/favicon.ico",
"size": 1006,
"crc": 1043304710
},
{
"name": "web/js/assets/no-image.png",
"size": 2705,
"crc": 3951350410
},
{
"name": "web/js/assets/notify.mp3",
"size": 74396,
"crc": 2926386696
},
{
"name": "web/js/autocompleter.js",
"size": 15618,
"crc": 2190531634
},
{
"name": "web/js/betterCombos.js",
"size": 16115,
"crc": 374505146
},
{
"name": "web/js/common/autocomplete.css",
"size": 1200,
"crc": 1863372727
},
{
"name": "web/js/common/autocomplete.js",
"size": 21064,
"crc": 1532832455
},
{
"name": "web/js/common/binding.js",
"size": 5722,
"crc": 2353182650
},
{
"name": "web/js/common/lightbox.css",
"size": 1748,
"crc": 3453967508
},
{
"name": "web/js/common/lightbox.js",
"size": 3310,
"crc": 718905611
},
{
"name": "web/js/common/modelInfoDialog.css",
"size": 2015,
"crc": 4192397123
},
{
"name": "web/js/common/modelInfoDialog.js",
"size": 8849,
"crc": 288464567
},
{
"name": "web/js/common/spinner.css",
"size": 690,
"crc": 1370975692
},
{
"name": "web/js/common/spinner.js",
"size": 290,
"crc": 1348361668
},
{
"name": "web/js/common/utils.js",
"size": 649,
"crc": 795380503
},
{
"name": "web/js/contextMenuHook.js",
"size": 2596,
"crc": 3676448880
},
{
"name": "web/js/customColors.js",
"size": 2929,
"crc": 1380678636
},
{
"name": "web/js/faviconStatus.js",
"size": 1559,
"crc": 2472533856
},
{
"name": "web/js/graphArrange.js",
"size": 2890,
"crc": 2069742717
},
{
"name": "web/js/imageFeed.js",
"size": 16534,
"crc": 2190084561
},
{
"name": "web/js/kSamplerAdvDenoise.js",
"size": 1500,
"crc": 935828713
},
{
"name": "web/js/linkRenderMode.js",
"size": 1364,
"crc": 1126372207
},
{
"name": "web/js/mathExpression.js",
"size": 1320,
"crc": 1354602954
},
{
"name": "web/js/middleClickAddDefaultNode.js",
"size": 1192,
"crc": 2453337419
},
{
"name": "web/js/modelInfo.js",
"size": 10149,
"crc": 2703203660
},
{
"name": "web/js/nodeFinder.js",
"size": 2059,
"crc": 493533330
},
{
"name": "web/js/playSound.js",
"size": 959,
"crc": 425246767
},
{
"name": "web/js/presetText.js",
"size": 7597,
"crc": 1712831968
},
{
"name": "web/js/quickNodes.js",
"size": 5773,
"crc": 4045374457
},
{
"name": "web/js/repeater.js",
"size": 3431,
"crc": 2933356492
},
{
"name": "web/js/reroutePrimitive.js",
"size": 10576,
"crc": 3081321694
},
{
"name": "web/js/showImageOnMenu.js",
"size": 1870,
"crc": 4219610755
},
{
"name": "web/js/showText.js",
"size": 2555,
"crc": 34819076
},
{
"name": "web/js/snapToGrid.js",
"size": 2139,
"crc": 1211106656
},
{
"name": "web/js/snapToGridGuide.js",
"size": 4873,
"crc": 4202883363
},
{
"name": "web/js/stringFunction.js",
"size": 965,
"crc": 1809835540
},
{
"name": "web/js/swapResolution.js",
"size": 872,
"crc": 2827405285
},
{
"name": "web/js/systemNotification.js",
"size": 1479,
"crc": 300691975
},
{
"name": "web/js/useNumberInputPrompt.js",
"size": 922,
"crc": 2887324521
},
{
"name": "web/js/widgetDefaults.js",
"size": 7308,
"crc": 2093340998
},
{
"name": "web/js/workflowImage.js",
"size": 16605,
"crc": 3165364558
},
{
"name": "web/js/workflows.js",
"size": 8881,
"crc": 171163411
}
]
@@ -0,0 +1,92 @@
[
{
"start": 162677,
"end": 162698,
"sha256": "72618f3b1b44e1895af779a3b42efcd97422cf212c8f24a29d1ced2bcdfee6c5"
},
{
"start": 162657,
"end": 162676,
"sha256": "f6c1db5f65d638a2bdf22082f76d5bdf8b114bf92fa19fe47699765f0c19a302"
},
{
"start": 158051,
"end": 162676,
"sha256": "e4e77b6ad4acf682b528974ae81611b54c8bb9e0c52e2a5b9bb01e9e02374d88"
},
{
"start": 541,
"end": 570,
"sha256": "52ca4442d96489d0fe8071b990a8062786c735c512a60c15c8e5d05fdddb2bf5"
},
{
"start": 571,
"end": 577,
"sha256": "c693279643b8cd5d248172d9c22cb7cf4ed163a3c98c8a3f69c2717edd3eacb7"
},
{
"start": 578,
"end": 1204,
"sha256": "dd6dda49d0c761fdf022c4105d7ae68d49fe8db81d634862b3a5b9d92fea1c0e"
},
{
"start": 5226,
"end": 5255,
"sha256": "b91e289a3a0526aa1862fb9724dbda09ec68bbbafa217dd2997ac9d216b93630"
},
{
"start": 5256,
"end": 5266,
"sha256": "8e2c1f727276d30ced72fa67cb848772a9802162bec39b42a8df5359fd063a4c"
},
{
"start": 5267,
"end": 5661,
"sha256": "924c7694114abff0e144849c220dc9d3c2743d0c3ced0027c46b8ed9e916433a"
},
{
"start": 14833,
"end": 14862,
"sha256": "1042f839acbd4d9b56e9ba1d72480f87647a9a1f2c8a22c48c1019b676adc83c"
},
{
"start": 14863,
"end": 14877,
"sha256": "09ab49d84eca9260cebecffcf8c1346283dea2b22e7a4b2751aca44c7e4358f9"
},
{
"start": 14878,
"end": 15468,
"sha256": "6917a712d6e1c3b9eabf8fb54815c06592014dd33662543da0b07ad75025c82f"
},
{
"start": 19211,
"end": 19240,
"sha256": "66e8fa953b0cc617ffe5f508c0be989215dac4802f6888061aca3aa89ce727e2"
},
{
"start": 19241,
"end": 19254,
"sha256": "50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711"
},
{
"start": 19255,
"end": 19490,
"sha256": "f25c1cbf3b96acc5550bec02f1949205afab1bfd521032ed7576c097bf781852"
},
{
"start": 141285,
"end": 141314,
"sha256": "55e477386efd696ed02895b82b2c064f5a4ac567fa2f41ecb2a7f6586abaab16"
},
{
"start": 141315,
"end": 141332,
"sha256": "390bf1c7b14ee761d6cdbbf60f9968d8f089421bc82c252e3ae3450a4b5b5ba2"
},
{
"start": 141333,
"end": 142385,
"sha256": "fe08455d64d7df732f8a4cc12526f9ba8d2d08a2da7ed356b11cf6f7d6ac979e"
}
]
@@ -0,0 +1 @@
{"changelog":"","createdAt":"2025-04-30T12:00:36.389293Z","dependencies":[],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip","id":"0baa100d-7e50-4da1-9a77-9aa324b709c3","node_id":"comfyui-custom-scripts","status":"NodeVersionStatusActive","supported_accelerators":null,"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":null,"tags":[],"version":"1.2.5"}
@@ -0,0 +1,94 @@
{
"sources": [
{
"id": "showtext",
"file": "LICENSE",
"local_file": "showtext__LICENSE",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 352214033,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
},
{
"id": "showtext",
"file": "__init__.py",
"local_file": "showtext____init__.py",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "ced0aa0ea33f81d7d97b59b66ff0abc77b068bd17183f42480875e71708a0684",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 1379277576,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
},
{
"id": "showtext",
"file": "py/show_text.py",
"local_file": "showtext__py__show_text.py",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "fb4182f541caed98621fd30cf4ad87d7a7deb2680cfafbcfbeb769355570cc8e",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 4027723761,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
},
{
"id": "showtext",
"file": "pyproject.toml",
"local_file": "showtext__pyproject.toml",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "4f22f2c2075881cfd27fda80678a70bbb86e4b2445b8bb005f5b768786e1e140",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 2028107200,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
},
{
"id": "showtext",
"file": "web/js/showText.js",
"local_file": "showtext__web__js__showText.js",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "faf44e1452d1f5965bcae9b69a5f6669597dbbe05ebedd85dad7256a14ef6975",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 34819076,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
}
]
}
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 pythongosssss
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,25 @@
import importlib.util
import glob
import os
import sys
from .pysssss import init, get_ext_dir
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
if init():
py = get_ext_dir("py")
files = glob.glob(os.path.join(py, "*.py"), recursive=False)
for file in files:
name = os.path.splitext(file)[0]
spec = importlib.util.spec_from_file_location(name, file)
module = importlib.util.module_from_spec(spec)
sys.modules[name] = module
spec.loader.exec_module(module)
if hasattr(module, "NODE_CLASS_MAPPINGS") and getattr(module, "NODE_CLASS_MAPPINGS") is not None:
NODE_CLASS_MAPPINGS.update(module.NODE_CLASS_MAPPINGS)
if hasattr(module, "NODE_DISPLAY_NAME_MAPPINGS") and getattr(module, "NODE_DISPLAY_NAME_MAPPINGS") is not None:
NODE_DISPLAY_NAME_MAPPINGS.update(module.NODE_DISPLAY_NAME_MAPPINGS)
WEB_DIRECTORY = "./web"
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
@@ -0,0 +1,49 @@
class ShowText:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"text": ("STRING", {"forceInput": True}),
},
"hidden": {
"unique_id": "UNIQUE_ID",
"extra_pnginfo": "EXTRA_PNGINFO",
},
}
INPUT_IS_LIST = True
RETURN_TYPES = ("STRING",)
FUNCTION = "notify"
OUTPUT_NODE = True
OUTPUT_IS_LIST = (True,)
CATEGORY = "utils"
def notify(self, text, unique_id=None, extra_pnginfo=None):
if unique_id is not None and extra_pnginfo is not None:
if not isinstance(extra_pnginfo, list):
print("Error: extra_pnginfo is not a list")
elif (
not isinstance(extra_pnginfo[0], dict)
or "workflow" not in extra_pnginfo[0]
):
print("Error: extra_pnginfo[0] is not a dict or missing 'workflow' key")
else:
workflow = extra_pnginfo[0]["workflow"]
node = next(
(x for x in workflow["nodes"] if str(x["id"]) == str(unique_id[0])),
None,
)
if node:
node["widgets_values"] = [text]
return {"ui": {"text": text}, "result": (text,)}
NODE_CLASS_MAPPINGS = {
"ShowText|pysssss": ShowText,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"ShowText|pysssss": "Show Text 🐍",
}
@@ -0,0 +1,13 @@
[project]
name = "comfyui-custom-scripts"
description = "Enhancements & experiments for ComfyUI, mostly focusing on UI features"
version = "1.2.5"
license = { file = "LICENSE" }
[project.urls]
Repository = "https://github.com/pythongosssss/ComfyUI-Custom-Scripts"
[tool.comfy]
PublisherId = "pythongosssss"
DisplayName = "ComfyUI-Custom-Scripts"
Icon = ""
@@ -0,0 +1,78 @@
import { app } from "../../../scripts/app.js";
import { ComfyWidgets } from "../../../scripts/widgets.js";
// Displays input text on a node
// TODO: This should need to be so complicated. Refactor at some point.
app.registerExtension({
name: "pysssss.ShowText",
async beforeRegisterNodeDef(nodeType, nodeData, app) {
if (nodeData.name === "ShowText|pysssss") {
function populate(text) {
if (this.widgets) {
// On older frontend versions there is a hidden converted-widget
const isConvertedWidget = +!!this.inputs?.[0].widget;
for (let i = isConvertedWidget; i < this.widgets.length; i++) {
this.widgets[i].onRemove?.();
}
this.widgets.length = isConvertedWidget;
}
const v = [...text];
if (!v[0]) {
v.shift();
}
for (let list of v) {
// Force list to be an array, not sure why sometimes it is/isn't
if (!(list instanceof Array)) list = [list];
for (const l of list) {
const w = ComfyWidgets["STRING"](this, "text_" + this.widgets?.length ?? 0, ["STRING", { multiline: true }], app).widget;
w.inputEl.readOnly = true;
w.inputEl.style.opacity = 0.6;
w.value = l;
}
}
requestAnimationFrame(() => {
const sz = this.computeSize();
if (sz[0] < this.size[0]) {
sz[0] = this.size[0];
}
if (sz[1] < this.size[1]) {
sz[1] = this.size[1];
}
this.onResize?.(sz);
app.graph.setDirtyCanvas(true, false);
});
}
// When the node is executed we will be sent the input text, display this in the widget
const onExecuted = nodeType.prototype.onExecuted;
nodeType.prototype.onExecuted = function (message) {
onExecuted?.apply(this, arguments);
populate.call(this, message.text);
};
const VALUES = Symbol();
const configure = nodeType.prototype.configure;
nodeType.prototype.configure = function () {
// Store unmodified widget values as they get removed on configure by new frontend
this[VALUES] = arguments[0]?.widgets_values;
return configure?.apply(this, arguments);
};
const onConfigure = nodeType.prototype.onConfigure;
nodeType.prototype.onConfigure = function () {
onConfigure?.apply(this, arguments);
const widgets_values = this[VALUES];
if (widgets_values?.length) {
// In newer frontend there seems to be a delay in creating the initial widget
requestAnimationFrame(() => {
populate.call(this, widgets_values.slice(+(widgets_values.length > 1 && this.inputs?.[0].widget)));
});
}
};
}
},
});
@@ -0,0 +1,722 @@
{
"sources": [
{
"id": "core0280",
"repo": "Comfy-Org/ComfyUI",
"file": "comfy_extras/nodes_string.py",
"local_file": "core0280__comfy_extras__nodes_string.py",
"commit": "700821e1364eaab0e8f21c538a2131719fec57bf",
"tree": "9b33e604c98f16b101c1b2e27b9989f2597a10a4",
"tag": "v0.28.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/700821e1364eaab0e8f21c538a2131719fec57bf/comfy_extras/nodes_string.py",
"sha256": "bb01963178f28efc6e3a9578aecb89f53f8265e89c0518da92ec21c4955e85f1",
"git_blob_sha1": "21929ae630e7043b138a63838258a418c192d922",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "core0280__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "core0280",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "core0280",
"repo": "Comfy-Org/ComfyUI",
"file": "LICENSE",
"local_file": "core0280__LICENSE",
"commit": "700821e1364eaab0e8f21c538a2131719fec57bf",
"tree": "9b33e604c98f16b101c1b2e27b9989f2597a10a4",
"tag": "v0.28.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/700821e1364eaab0e8f21c538a2131719fec57bf/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "core0280__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "core0280",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "core0280",
"repo": "Comfy-Org/ComfyUI",
"file": "requirements.txt",
"local_file": "core0280__requirements.txt",
"commit": "700821e1364eaab0e8f21c538a2131719fec57bf",
"tree": "9b33e604c98f16b101c1b2e27b9989f2597a10a4",
"tag": "v0.28.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/700821e1364eaab0e8f21c538a2131719fec57bf/requirements.txt",
"sha256": "9b70c3536a599720335e1c175f4f02fe819781d209cc504525bfe4322e7f746b",
"git_blob_sha1": "e7d301576eca8538a581bed61fbba67406d2aa13",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "core0280__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "core0280",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "core0342",
"repo": "Comfy-Org/ComfyUI",
"file": "comfy_extras/nodes_primitive.py",
"local_file": "core0342__comfy_extras__nodes_primitive.py",
"commit": "169fcf35a2fc163fec31338b816503ddac0d3fcf",
"tree": "7681029b1caaf2b70e2db3b8969810a2c0305a12",
"tag": "v0.34.2",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/169fcf35a2fc163fec31338b816503ddac0d3fcf/comfy_extras/nodes_primitive.py",
"sha256": "ee3882214ebdd0d20c8061691075cebb1642c303e162f6d22ae525d75aa59b2d",
"git_blob_sha1": "35761863ff49fba89af08f02314354f92770bc91",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "core0342__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "core0342",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "core0342",
"repo": "Comfy-Org/ComfyUI",
"file": "comfy_extras/nodes_logic.py",
"local_file": "core0342__comfy_extras__nodes_logic.py",
"commit": "169fcf35a2fc163fec31338b816503ddac0d3fcf",
"tree": "7681029b1caaf2b70e2db3b8969810a2c0305a12",
"tag": "v0.34.2",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/169fcf35a2fc163fec31338b816503ddac0d3fcf/comfy_extras/nodes_logic.py",
"sha256": "2cb1ce149ce616c0b12a67962ed7b799eb398fbcdeb20dcec4c5210eb6af6df1",
"git_blob_sha1": "13c1685f7d8ba95d9d5ab640f8249e0f895889d5",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "core0342__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "core0342",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "core0342",
"repo": "Comfy-Org/ComfyUI",
"file": "LICENSE",
"local_file": "core0342__LICENSE",
"commit": "169fcf35a2fc163fec31338b816503ddac0d3fcf",
"tree": "7681029b1caaf2b70e2db3b8969810a2c0305a12",
"tag": "v0.34.2",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/169fcf35a2fc163fec31338b816503ddac0d3fcf/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "core0342__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "core0342",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "core0342",
"repo": "Comfy-Org/ComfyUI",
"file": "requirements.txt",
"local_file": "core0342__requirements.txt",
"commit": "169fcf35a2fc163fec31338b816503ddac0d3fcf",
"tree": "7681029b1caaf2b70e2db3b8969810a2c0305a12",
"tag": "v0.34.2",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/169fcf35a2fc163fec31338b816503ddac0d3fcf/requirements.txt",
"sha256": "df8477a93b8f7e7228738ce0c1ddf8cc55b18d8cf7865fe137cc49c92b7c2d1f",
"git_blob_sha1": "8c502b0103fc6f0e7531abe3fbbfebe4d6aab084",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "core0342__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "core0342",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "painter",
"repo": "princepainter/ComfyUI-PainterNodes",
"file": "__init__.py",
"local_file": "painter____init__.py",
"commit": "2864e1542d6e03e4429e919a02cffed081039cfb",
"tree": "490f99cf37750601196fa4cde9e03b2d430b7ee5",
"tag": "2864e1542d6e03e4429e919a02cffed081039cfb",
"url": "https://raw.githubusercontent.com/princepainter/ComfyUI-PainterNodes/2864e1542d6e03e4429e919a02cffed081039cfb/__init__.py",
"sha256": "a29b65d0f9aa165e8c728d5a6d799e7792f73ee7cdc215b7a72c4157e019621b",
"git_blob_sha1": "7a5d12af3978fb1a81e221d320d2bca60f24e907",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "painter__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "painter",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "painter",
"repo": "princepainter/ComfyUI-PainterNodes",
"file": "PainterVRAM.py",
"local_file": "painter__PainterVRAM.py",
"commit": "2864e1542d6e03e4429e919a02cffed081039cfb",
"tree": "490f99cf37750601196fa4cde9e03b2d430b7ee5",
"tag": "2864e1542d6e03e4429e919a02cffed081039cfb",
"url": "https://raw.githubusercontent.com/princepainter/ComfyUI-PainterNodes/2864e1542d6e03e4429e919a02cffed081039cfb/PainterVRAM.py",
"sha256": "fe6dbff235947b745a29ebbe368ddb84b131f721d6ebc9f1e984e0149d6b82ed",
"git_blob_sha1": "c71fdce75b322ebebc2cd06805f44151ab65df1e",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "painter__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "painter",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "painter",
"repo": "princepainter/ComfyUI-PainterNodes",
"file": "LICENSE",
"local_file": "painter__LICENSE",
"commit": "2864e1542d6e03e4429e919a02cffed081039cfb",
"tree": "490f99cf37750601196fa4cde9e03b2d430b7ee5",
"tag": "2864e1542d6e03e4429e919a02cffed081039cfb",
"url": "https://raw.githubusercontent.com/princepainter/ComfyUI-PainterNodes/2864e1542d6e03e4429e919a02cffed081039cfb/LICENSE",
"sha256": "23082e76e624b96c1d1678f66dbe178cfcac7bbe6851ac982a4498248bcf891b",
"git_blob_sha1": "0b1dda4ecce33cb40a04347a91ef25341344d40c",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "painter__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "painter",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "painter",
"repo": "princepainter/ComfyUI-PainterNodes",
"file": "requirements.txt",
"local_file": "painter__requirements.txt",
"commit": "2864e1542d6e03e4429e919a02cffed081039cfb",
"tree": "490f99cf37750601196fa4cde9e03b2d430b7ee5",
"tag": "2864e1542d6e03e4429e919a02cffed081039cfb",
"url": "https://raw.githubusercontent.com/princepainter/ComfyUI-PainterNodes/2864e1542d6e03e4429e919a02cffed081039cfb/requirements.txt",
"sha256": "0012665aaf9515d79a8082dbe778e3d7c3e8ffa3583e463d6c4da7c0e01c18a3",
"git_blob_sha1": "b7739dab5abfe889453dfff61fde2741ae8fac1a",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "painter__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "painter",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "painter",
"repo": "princepainter/ComfyUI-PainterNodes",
"file": "pyproject.toml",
"local_file": "painter__pyproject.toml",
"commit": "2864e1542d6e03e4429e919a02cffed081039cfb",
"tree": "490f99cf37750601196fa4cde9e03b2d430b7ee5",
"tag": "2864e1542d6e03e4429e919a02cffed081039cfb",
"url": "https://raw.githubusercontent.com/princepainter/ComfyUI-PainterNodes/2864e1542d6e03e4429e919a02cffed081039cfb/pyproject.toml",
"sha256": "001977b721f2838b96a867f420619586a84323b050c0c6393a1c2f006aa26d89",
"git_blob_sha1": "c1dc3d6455ada0cbe900ea0176b8aeff2c9aa125",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "painter__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "painter",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "package.json",
"local_file": "frontend__package.json",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/package.json",
"sha256": "e25f7423302961b996e2f42201aa9259dcb8463fc638f39204cbc5870b007ba9",
"git_blob_sha1": "9063f24f673c6288d44a78bfd1cb4e1926985072",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "pnpm-lock.yaml",
"local_file": "frontend__pnpm-lock.yaml",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/pnpm-lock.yaml",
"sha256": "46bdafbd992ad8c0bca4dd7668a0456d320710f744bf64d0e022abc1e4bb00e0",
"git_blob_sha1": "32216beedafc410ebf39341a759b2a8b79031933",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "pnpm-workspace.yaml",
"local_file": "frontend__pnpm-workspace.yaml",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/pnpm-workspace.yaml",
"sha256": "2666dae4e1223d80b7b497aced7d1c5b5080e364411ce23d91b9f63dde13a1a7",
"git_blob_sha1": "82197783bce7c9eefe6831ea80eb7b4d418ef1a1",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "src/scripts/widgets.ts",
"local_file": "frontend__src__scripts__widgets.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts",
"sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c",
"git_blob_sha1": "f1259180cac03fca9a8e4809b5a47c23c3ef625c",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "src/scripts/app.ts",
"local_file": "frontend__src__scripts__app.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/app.ts",
"sha256": "6a0fd5cc4da6aad850ac05d312a22fd2f545fd296735ed7b927b62d7a564c08e",
"git_blob_sha1": "e326db4703c6fdf1098910dab81d3eefad91b009",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "src/lib/litegraph/src/litegraph.ts",
"local_file": "frontend__src__lib__litegraph__src__litegraph.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/litegraph.ts",
"sha256": "82533ee983f0cc30213da55dbd16a7a18475939f61d2551c49b3b51af63aeeaf",
"git_blob_sha1": "201cac9613eaacee83d53dbbf5aebf33bcbfb1b8",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "frontend__src__lib__litegraph__src__LGraphNode.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588",
"git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "src/lib/litegraph/src/LGraph.ts",
"local_file": "frontend__src__lib__litegraph__src__LGraph.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraph.ts",
"sha256": "a948964f6ae8d49cad0a1e9d5aea3bac2ba947a084d3444e78e47605525ef05a",
"git_blob_sha1": "a592b0bacffafd08b6b8732ed3d5614f9111d17b",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "src/lib/litegraph/LICENSE",
"local_file": "frontend__src__lib__litegraph__LICENSE",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/LICENSE",
"sha256": "1b38cc30fe774bcc77538ab99eb460f4e1c8a47c4fddc6e991ee3b5cc2a96bb9",
"git_blob_sha1": "1b52aa11c186c25f8d66f1de74c0d378851bfcff",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "LICENSE",
"local_file": "frontend__LICENSE",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "src/core/graph/widgets/dynamicWidgets.ts",
"local_file": "frontend__src__core__graph__widgets__dynamicWidgets.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/core/graph/widgets/dynamicWidgets.ts",
"sha256": "cbc7d1a9eccb1c64f90cf2f87db9ad3ba9a301d81ec3f8daea2af48e2ccb8e32",
"git_blob_sha1": "0a304c07f15c06d3d8aaa96725be2c7b5a04f018",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "src/core/graph/widgets/dynamicTypes.ts",
"local_file": "frontend__src__core__graph__widgets__dynamicTypes.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/core/graph/widgets/dynamicTypes.ts",
"sha256": "02a01ec77fe595b2e83bcf0dd91134ea4aaa568ab019167c3e3ab15ce2a66a60",
"git_blob_sha1": "92a7850b96b405c0a09f2a15f55867d92279e173",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "frontend",
"repo": "Comfy-Org/ComfyUI_frontend",
"file": "src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"local_file": "frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"tree": "e2dc155ee31d452fa0158d33dadc1a32c4a06e58",
"tag": "v1.45.20",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"sha256": "bc0436dc3e21ccfa6f1dccf40935c0d0b97b607932f7025b975a4138efe1e24e",
"git_blob_sha1": "f31f5a05280a3788b6b9ca02ff7a4d0fc99ac30c",
"acquisition_time": "2026-10-31T15:46:34.642231+00:00",
"reverified_at": "2026-10-31T15:46:34.642231+00:00",
"license_file": "frontend__LICENSE",
"transport": "filtered Git, selected text blobs only",
"identity_root": ".",
"identity_key": "frontend",
"applicability": "本图准确声明静态参考;不执行上游,不认证目标安装或模型许可"
},
{
"id": "core0250",
"repo": "Comfy-Org/ComfyUI",
"file": "nodes.py",
"local_file": "../krea-realn-reference/core0250__nodes.py",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"tree": "8b1b2f7eb307047f90ed232b859da56bcf859f3b",
"tag": "v0.25.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/nodes.py",
"sha256": "18ae659664de15c55bc790c12e3c5bff172abd4629da58f10712a1fb1adb6b79",
"git_blob_sha1": "0d422d418af3d044112f7264327f01558c87e384",
"acquisition_time": "2026-10-31T11:04:45.908490+00:00",
"license_file": "../krea-realn-reference/core0250__LICENSE",
"transport": "filtered git; selected text only",
"applicability": "极致写实(N版)准确core0.25.0/frontend1.45.19静态原字节重核;原获取时间保留,不认证目标恢复/模型许可",
"identity_root": "../krea-realn-reference",
"identity_key": "core0250",
"reuse_from": "exact existing bytes",
"reverified_at": "2026-10-31T15:46:34.642231+00:00"
},
{
"id": "core0250",
"repo": "Comfy-Org/ComfyUI",
"file": "folder_paths.py",
"local_file": "../krea-realn-reference/core0250__folder_paths.py",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"tree": "8b1b2f7eb307047f90ed232b859da56bcf859f3b",
"tag": "v0.25.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/folder_paths.py",
"sha256": "380961714742085363301f980a6c9458f36aca05b1e36ed9b8afa3fb64ccdb50",
"git_blob_sha1": "7304e1b7399da0eb080153336e03c8ab8a9f6c1f",
"acquisition_time": "2026-10-31T11:04:47.087488+00:00",
"license_file": "../krea-realn-reference/core0250__LICENSE",
"transport": "filtered git; selected text only",
"applicability": "极致写实(N版)准确core0.25.0/frontend1.45.19静态原字节重核;原获取时间保留,不认证目标恢复/模型许可",
"identity_root": "../krea-realn-reference",
"identity_key": "core0250",
"reuse_from": "exact existing bytes",
"reverified_at": "2026-10-31T15:46:34.642231+00:00"
},
{
"id": "core0250",
"repo": "Comfy-Org/ComfyUI",
"file": "comfy_extras/nodes_primitive.py",
"local_file": "../krea-realn-reference/core0250__comfy_extras__nodes_primitive.py",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"tree": "8b1b2f7eb307047f90ed232b859da56bcf859f3b",
"tag": "v0.25.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/comfy_extras/nodes_primitive.py",
"sha256": "6a6d5cd4c983ed16296cd2ec5f84dc6244c0dd25d29137e1c0318418976e3cec",
"git_blob_sha1": "c44b0909825ea7769e3412041963a2c12d2e5b09",
"acquisition_time": "2026-10-31T11:04:48.919349+00:00",
"license_file": "../krea-realn-reference/core0250__LICENSE",
"transport": "filtered git; selected text only",
"applicability": "极致写实(N版)准确core0.25.0/frontend1.45.19静态原字节重核;原获取时间保留,不认证目标恢复/模型许可",
"identity_root": "../krea-realn-reference",
"identity_key": "core0250",
"reuse_from": "exact existing bytes",
"reverified_at": "2026-10-31T15:46:34.642231+00:00"
},
{
"id": "core0250",
"repo": "Comfy-Org/ComfyUI",
"file": "comfy_extras/nodes_resolution.py",
"local_file": "../krea-realn-reference/core0250__comfy_extras__nodes_resolution.py",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"tree": "8b1b2f7eb307047f90ed232b859da56bcf859f3b",
"tag": "v0.25.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/comfy_extras/nodes_resolution.py",
"sha256": "2c6ca2d3d91a7f2945642729233ab015983a574d53a50a91caff60aa9b950090",
"git_blob_sha1": "083e47ae46df249feac63089092c0205620e074e",
"acquisition_time": "2026-10-31T11:04:51.474610+00:00",
"license_file": "../krea-realn-reference/core0250__LICENSE",
"transport": "filtered git; selected text only",
"applicability": "极致写实(N版)准确core0.25.0/frontend1.45.19静态原字节重核;原获取时间保留,不认证目标恢复/模型许可",
"identity_root": "../krea-realn-reference",
"identity_key": "core0250",
"reuse_from": "exact existing bytes",
"reverified_at": "2026-10-31T15:46:34.642231+00:00"
},
{
"id": "core0250",
"repo": "Comfy-Org/ComfyUI",
"file": "comfy/samplers.py",
"local_file": "../krea-realn-reference/core0250__comfy__samplers.py",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"tree": "8b1b2f7eb307047f90ed232b859da56bcf859f3b",
"tag": "v0.25.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/comfy/samplers.py",
"sha256": "d882256ae9baa1d23f1367ab2ec3b021fdc15fe39ce4cb49ea2c1ee10026a649",
"git_blob_sha1": "25c5a855fd0435d5d2fd98b2eb016bc54273b07f",
"acquisition_time": "2026-10-31T11:04:55.740764+00:00",
"license_file": "../krea-realn-reference/core0250__LICENSE",
"transport": "filtered git; selected text only",
"applicability": "极致写实(N版)准确core0.25.0/frontend1.45.19静态原字节重核;原获取时间保留,不认证目标恢复/模型许可",
"identity_root": "../krea-realn-reference",
"identity_key": "core0250",
"reuse_from": "exact existing bytes",
"reverified_at": "2026-10-31T15:46:34.642231+00:00"
},
{
"id": "core0250",
"repo": "Comfy-Org/ComfyUI",
"file": "LICENSE",
"local_file": "../krea-realn-reference/core0250__LICENSE",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"tree": "8b1b2f7eb307047f90ed232b859da56bcf859f3b",
"tag": "v0.25.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
"acquisition_time": "2026-10-31T11:04:56.576573+00:00",
"license_file": "../krea-realn-reference/core0250__LICENSE",
"transport": "filtered git; selected text only",
"applicability": "极致写实(N版)准确core0.25.0/frontend1.45.19静态原字节重核;原获取时间保留,不认证目标恢复/模型许可",
"identity_root": "../krea-realn-reference",
"identity_key": "core0250",
"reuse_from": "exact existing bytes",
"reverified_at": "2026-10-31T15:46:34.642231+00:00"
},
{
"id": "showtext",
"file": "LICENSE",
"local_file": "showtext__LICENSE",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 352214033,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
},
{
"id": "showtext",
"file": "__init__.py",
"local_file": "showtext____init__.py",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "ced0aa0ea33f81d7d97b59b66ff0abc77b068bd17183f42480875e71708a0684",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 1379277576,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
},
{
"id": "showtext",
"file": "py/show_text.py",
"local_file": "showtext__py__show_text.py",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "fb4182f541caed98621fd30cf4ad87d7a7deb2680cfafbcfbeb769355570cc8e",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 4027723761,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
},
{
"id": "showtext",
"file": "pyproject.toml",
"local_file": "showtext__pyproject.toml",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "4f22f2c2075881cfd27fda80678a70bbb86e4b2445b8bb005f5b768786e1e140",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 2028107200,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
},
{
"id": "showtext",
"file": "web/js/showText.js",
"local_file": "showtext__web__js__showText.js",
"tag": "1.2.5",
"commit": "发布成员到Git绑定未知",
"tree": "未知",
"url": "https://cdn.comfy.org/pythongosssss/comfyui-custom-scripts/1.2.5/node.zip",
"sha256": "faf44e1452d1f5965bcae9b69a5f6669597dbbe05ebedd85dad7256a14ef6975",
"package_sha256": "unknown-not-downloaded-whole-archive",
"member_crc32": 34819076,
"acquisition_time": "2026-10-31T15:46:55.913055+00:00",
"reverified_at": "2026-10-31T15:46:55.913055+00:00",
"license_file": "showtext__LICENSE",
"identity_root": ".",
"identity_key": "showtext",
"applicability": "本图ShowText准确1.2.5;Range必要文本,不借旧Show31/Git609f身份"
},
{
"id": "llama-unavailable",
"file": "llama-unavailable.json",
"local_file": "llama-unavailable.json",
"commit": "20571a3cf504b8308781d3cad2e432444ec3d75b",
"tree": "未知",
"tag": "准确声明提交不可得",
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/20571a3cf504b8308781d3cad2e432444ec3d75b/nodes.py",
"sha256": "b8904c0d61be0fa379535c813a8290ec3ef8693b9cefbe531c566de17484c933",
"license_file": "未知:准确实现与许可不可得",
"acquisition_time": "2026-10-31T15:47:50.723082+00:00",
"reverified_at": "2026-10-31T15:47:50.723082+00:00"
},
{
"id": "core0250",
"repo": "Comfy-Org/ComfyUI",
"file": "requirements.txt",
"local_file": "../krea-anything-reference/core0250__requirements.txt",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"tree": "8b1b2f7eb307047f90ed232b859da56bcf859f3b",
"tag": "v0.25.0",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/requirements.txt",
"sha256": "ffe3cdafac83230dc4956012d2a44a86281d9d722cbbad95022e5a44fd51ebcc",
"git_blob_sha1": "392709e64e671d6b9496a658713602c4aedfe691",
"acquisition_time": "2026-10-31T15:30:46.513703+00:00",
"license_file": "../krea-realn-reference/core0250__LICENSE",
"transport": "filtered git; selected text only",
"applicability": "本图逐图重核静态必要文本;不认证目标安装/许可/兼容或历史恢复",
"identity_root": "../krea-realn-reference",
"identity_key": "core0250",
"reuse_from": "existing filtered exact-commit cache, necessary dependency text",
"reverified_at": "2026-10-31T15:30:46.513703+00:00"
}
]
}