comfy-ts 2.17.1 → 2.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/cli.js +3 -3
  2. package/dist/index.cjs +944 -165
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +1154 -408
  5. package/dist/index.d.ts +1154 -408
  6. package/dist/index.js +944 -165
  7. package/dist/index.js.map +1 -1
  8. package/dist/{run-run-tg82jUIk.js → run-run-Wn7H72Zg.js} +2 -2
  9. package/dist/{run-run-tg82jUIk.js.map → run-run-Wn7H72Zg.js.map} +1 -1
  10. package/dist/{run-tui-Bw7BA75d.js → run-tui-VWSj1D_j.js} +2 -2
  11. package/dist/{run-tui-Bw7BA75d.js.map → run-tui-VWSj1D_j.js.map} +1 -1
  12. package/dist/serve-web.js +47 -47
  13. package/dist/{state-zTow5ucI.js → state-DgwWhZWb.js} +945 -166
  14. package/dist/state-DgwWhZWb.js.map +1 -0
  15. package/dist/web.d.ts +1172 -426
  16. package/dist/web.js +944 -165
  17. package/dist/web.js.map +1 -1
  18. package/examples/comfy-cloud/ace-step15-t2a.cflow.ts +163 -0
  19. package/examples/comfy-cloud/anima-t2i-base.cflow.ts +57 -0
  20. package/examples/comfy-cloud/boogu-t2i.cflow.ts +55 -0
  21. package/examples/comfy-cloud/chronoedit-i2i.cflow.ts +95 -0
  22. package/examples/comfy-cloud/ernie-t2i-base.cflow.ts +81 -0
  23. package/examples/comfy-cloud/flux1-t2i-krea.cflow.ts +63 -0
  24. package/examples/comfy-cloud/flux2-i2i-dev.cflow.ts +83 -0
  25. package/examples/comfy-cloud/flux2-t2i-dev.cflow.ts +60 -0
  26. package/examples/comfy-cloud/hidream-o1-i2i.cflow.ts +71 -0
  27. package/examples/comfy-cloud/hidream-o1-t2i.cflow.ts +62 -0
  28. package/examples/comfy-cloud/krea2-i2i.cflow.ts +78 -0
  29. package/examples/comfy-cloud/ltx2-i2v.cflow.ts +175 -0
  30. package/examples/comfy-cloud/ltx2-t2v.cflow.ts +143 -0
  31. package/examples/comfy-cloud/ltx23-i2v.cflow.ts +189 -0
  32. package/examples/comfy-cloud/ltx23-t2v.cflow.ts +151 -0
  33. package/examples/comfy-cloud/mage-flow-i2i-turbo.cflow.ts +72 -0
  34. package/examples/comfy-cloud/mage-flow-i2i.cflow.ts +74 -0
  35. package/examples/comfy-cloud/mage-flow-t2i-turbo.cflow.ts +60 -0
  36. package/examples/comfy-cloud/mage-flow-t2i.cflow.ts +60 -0
  37. package/examples/comfy-cloud/minimax-h3-t2i.cflow.ts +64 -0
  38. package/examples/comfy-cloud/netayume-t2i.cflow.ts +60 -0
  39. package/examples/comfy-cloud/qwen-image-i2i-2509.cflow.ts +75 -0
  40. package/examples/comfy-cloud/qwen-image-t2i-2512.cflow.ts +63 -0
  41. package/examples/comfy-cloud/sdk.d.ts +21683 -13737
  42. package/examples/comfy-cloud/stable-audio3-t2a.cflow.ts +96 -0
  43. package/examples/comfy-cloud/z-image-t2i-base.cflow.ts +54 -0
  44. package/examples/rvion/04-krea2-turbo-t2i.cflow.ts +1 -1
  45. package/package.json +2 -2
  46. package/src/graph/ComfyNode.ts +93 -12
  47. package/src/host/ComfyHost.ts +31 -10
  48. package/src/host/ComfyManager.ts +448 -62
  49. package/src/litegraph/CanonicalWorkflow.ts +3 -0
  50. package/src/litegraph/LiteGraphJSON.ts +2 -2
  51. package/src/litegraph/LiteGraphNodeInput.ts +2 -2
  52. package/src/litegraph/LiteGraphNodeOutput.ts +2 -2
  53. package/src/litegraph/convertFlowToLiteGraphJSON.ts +112 -37
  54. package/src/litegraph/expandSubgraphs.ts +14 -0
  55. package/src/litegraph/normalizeWorkflow.ts +1 -0
  56. package/src/manager/ComfyRegistry.ts +2 -0
  57. package/src/manager/generated/KnownComfyCustomNodeName.ts +6354 -1680
  58. package/src/manager/generated/KnownComfyPluginTitle.ts +718 -356
  59. package/src/manager/generated/KnownComfyPluginURL.ts +357 -181
  60. package/src/manager/generated/KnownModel_Base.ts +9 -5
  61. package/src/manager/generated/KnownModel_FileName.ts +135 -0
  62. package/src/manager/generated/KnownModel_Name.ts +135 -0
  63. package/src/manager/generated/KnownModel_SavePath.ts +16 -14
  64. package/src/manager/generated/KnownModel_Type.ts +15 -13
  65. package/src/manager/installedView.ts +176 -0
  66. package/src/manager/json/custom-node-list.json +4018 -2248
  67. package/src/manager/json/extension-node-map.json +8903 -2964
  68. package/src/manager/json/github-stats.json +10796 -10036
  69. package/src/manager/json/model-list.json +298 -1
  70. package/src/manager/loaders/step4_model-list-loader.ts +1 -0
  71. package/src/manager/types/ComfyManagerAPIModelList.ts +3 -0
  72. package/src/manager/types/ComfyManagerAPIPluginList.ts +19 -0
  73. package/src/runner/ComfyExecution.ts +4 -1
  74. package/src/runner/ComfyWsApi.ts +82 -15
  75. package/src/sdk-generator/ComfySchema.ts +10 -1
  76. package/src/sdk-generator/ComfyUIObjectInfoTypes.ts +4 -1
  77. package/src/sdk-generator/comfyui-sdk-codegen.ts +61 -20
  78. package/src/sdk-generator/inputWidgetKind.ts +19 -4
  79. package/src/sdk-generator/litegraphToApiRequestPayload.ts +141 -33
  80. package/dist/state-zTow5ucI.js.map +0 -1
@@ -5466,6 +5466,116 @@
5466
5466
  "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Motion-Track-Control/resolve/main/ltx-2.3-22b-ic-lora-motion-track-control-ref0.5.safetensors",
5467
5467
  "size": "0.30GB"
5468
5468
  },
5469
+ {
5470
+ "name": "LTX-2.3 22B IC-LoRA Ingredients",
5471
+ "type": "lora",
5472
+ "base": "LTX-2.3",
5473
+ "save_path": "loras/ltxv/ltx2",
5474
+ "description": "In-Context LoRA (IC LoRA) for reference-sheet control, keeping characters, props, and locations consistent across generated videos.",
5475
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Ingredients",
5476
+ "filename": "ltx-2.3-22b-ic-lora-ingredients-0.9.safetensors",
5477
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Ingredients/resolve/main/ltx-2.3-22b-ic-lora-ingredients-0.9.safetensors",
5478
+ "size": "1.31GB"
5479
+ },
5480
+ {
5481
+ "name": "LTX-2.3 22B IC-LoRA In-Outpainting",
5482
+ "type": "lora",
5483
+ "base": "LTX-2.3",
5484
+ "save_path": "loras/ltxv/ltx2",
5485
+ "description": "In-Context LoRA (IC LoRA) for video inpainting and outpainting.",
5486
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-In-Outpainting",
5487
+ "filename": "ltx-2.3-22b-ic-lora-in-outpainting-0.9.safetensors",
5488
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-In-Outpainting/resolve/main/ltx-2.3-22b-ic-lora-in-outpainting-0.9.safetensors",
5489
+ "size": "1.31GB"
5490
+ },
5491
+ {
5492
+ "name": "LTX-2.3 22B IC-LoRA Pixel Spatial Upscaler x2",
5493
+ "type": "lora",
5494
+ "base": "LTX-2.3",
5495
+ "save_path": "loras/ltxv/ltx2",
5496
+ "description": "In-Context LoRA (IC LoRA) for generative 2x pixel spatial upscaling of videos.",
5497
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Pixel-Spatial-Upscaler",
5498
+ "filename": "ltx-2.3-22b-ic-lora-pixel-spatial-upscaler-x2-0.9.safetensors",
5499
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Pixel-Spatial-Upscaler/resolve/main/ltx-2.3-22b-ic-lora-pixel-spatial-upscaler-x2-0.9.safetensors",
5500
+ "size": "0.65GB"
5501
+ },
5502
+ {
5503
+ "name": "LTX-2.3 22B IC-LoRA Pixel Spatial Upscaler x4",
5504
+ "type": "lora",
5505
+ "base": "LTX-2.3",
5506
+ "save_path": "loras/ltxv/ltx2",
5507
+ "description": "In-Context LoRA (IC LoRA) for generative 4x pixel spatial upscaling of videos.",
5508
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Pixel-Spatial-Upscaler",
5509
+ "filename": "ltx-2.3-22b-ic-lora-pixel-spatial-upscaler-x4-0.9.safetensors",
5510
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Pixel-Spatial-Upscaler/resolve/main/ltx-2.3-22b-ic-lora-pixel-spatial-upscaler-x4-0.9.safetensors",
5511
+ "size": "0.65GB"
5512
+ },
5513
+ {
5514
+ "name": "LTX-2.3 22B IC-LoRA Deblur",
5515
+ "type": "lora",
5516
+ "base": "LTX-2.3",
5517
+ "save_path": "loras/ltxv/ltx2",
5518
+ "description": "In-Context LoRA (IC LoRA) for deblurring videos.",
5519
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Deblur",
5520
+ "filename": "ltx-2.3-22b-ic-lora-deblur-0.9.safetensors",
5521
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Deblur/resolve/main/ltx-2.3-22b-ic-lora-deblur-0.9.safetensors",
5522
+ "size": "0.91GB"
5523
+ },
5524
+ {
5525
+ "name": "LTX-2.3 22B IC-LoRA Decompression",
5526
+ "type": "lora",
5527
+ "base": "LTX-2.3",
5528
+ "save_path": "loras/ltxv/ltx2",
5529
+ "description": "In-Context LoRA (IC LoRA) for decompression / artifact cleanup of videos.",
5530
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Decompression",
5531
+ "filename": "ltx-2.3-22b-ic-lora-decompression-0.9.safetensors",
5532
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Decompression/resolve/main/ltx-2.3-22b-ic-lora-decompression-0.9.safetensors",
5533
+ "size": "0.91GB"
5534
+ },
5535
+ {
5536
+ "name": "LTX-2.3 22B IC-LoRA Colorization",
5537
+ "type": "lora",
5538
+ "base": "LTX-2.3",
5539
+ "save_path": "loras/ltxv/ltx2",
5540
+ "description": "In-Context LoRA (IC LoRA) for video colorization.",
5541
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Colorization",
5542
+ "filename": "ltx-2.3-22b-ic-lora-colorization-0.9.safetensors",
5543
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Colorization/resolve/main/ltx-2.3-22b-ic-lora-colorization-0.9.safetensors",
5544
+ "size": "0.91GB"
5545
+ },
5546
+ {
5547
+ "name": "LTX-2.3 22B IC-LoRA Clean Plate",
5548
+ "type": "lora",
5549
+ "base": "LTX-2.3",
5550
+ "save_path": "loras/ltxv/ltx2",
5551
+ "description": "In-Context LoRA (IC LoRA) for clean-plate generation from videos.",
5552
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Clean-Plate",
5553
+ "filename": "ltx-2.3-22b-ic-lora-clean-plate-1.0.safetensors",
5554
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-Clean-Plate/resolve/main/ltx-2.3-22b-ic-lora-clean-plate-1.0.safetensors",
5555
+ "size": "0.33GB"
5556
+ },
5557
+ {
5558
+ "name": "LTX-2.3 22B IC-LoRA DubIt",
5559
+ "type": "lora",
5560
+ "base": "LTX-2.3",
5561
+ "save_path": "loras/ltxv/ltx2",
5562
+ "description": "In-Context LoRA (IC LoRA) for video dubbing / revoicing workflows.",
5563
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-DubIt",
5564
+ "filename": "ltx-2.3-22b-ic-lora-dubit-0.9.safetensors",
5565
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-DubIt/resolve/main/ltx-2.3-22b-ic-lora-dubit-0.9.safetensors",
5566
+ "size": "2.47GB"
5567
+ },
5568
+ {
5569
+ "name": "LTX-2.3 22B IC-LoRA HDR",
5570
+ "type": "lora",
5571
+ "base": "LTX-2.3",
5572
+ "save_path": "loras/ltxv/ltx2",
5573
+ "description": "In-Context LoRA (IC LoRA) for 16-bit HDR video generation and SDR-to-HDR conversion.",
5574
+ "reference": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-HDR",
5575
+ "filename": "ltx-2.3-22b-ic-lora-hdr-0.9.safetensors",
5576
+ "url": "https://huggingface.co/Lightricks/LTX-2.3-22b-IC-LoRA-HDR/resolve/main/ltx-2.3-22b-ic-lora-hdr-0.9.safetensors",
5577
+ "size": "0.33GB"
5578
+ },
5469
5579
  {
5470
5580
  "name": "LTX-2.3 Spatial Upscaler x2 1.1",
5471
5581
  "type": "upscale",
@@ -5499,6 +5609,171 @@
5499
5609
  "url": "https://huggingface.co/Lightricks/LTX-2.3/resolve/main/ltx-2.3-temporal-upscaler-x2-1.0.safetensors",
5500
5610
  "size": "0.24GB"
5501
5611
  },
5612
+ {
5613
+ "name": "LTX-2.5 22B Dev Transformer BF16",
5614
+ "type": "diffusion_model",
5615
+ "base": "LTX-2.5",
5616
+ "save_path": "diffusion_models",
5617
+ "description": "LTX-2.5 22B full / trainable DiT transformer (bf16).",
5618
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5619
+ "filename": "ltx-2.5-22b-dev-transformer-bf16.safetensors",
5620
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/diffusion_models/ltx-2.5-22b-dev-transformer-bf16.safetensors",
5621
+ "size": "42.02GB"
5622
+ },
5623
+ {
5624
+ "name": "LTX-2.5 22B Dev Transformer Comfy INT8",
5625
+ "type": "diffusion_model",
5626
+ "base": "LTX-2.5",
5627
+ "save_path": "diffusion_models",
5628
+ "description": "LTX-2.5 22B full DiT transformer (Comfy int8 + convrot). ComfyUI only.",
5629
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5630
+ "filename": "ltx-2.5-22b-dev-transformer-comfy-int8-convrot.safetensors",
5631
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/diffusion_models/ltx-2.5-22b-dev-transformer-comfy-int8-convrot.safetensors",
5632
+ "size": "21.50GB"
5633
+ },
5634
+ {
5635
+ "name": "LTX-2.5 22B Distilled Transformer BF16",
5636
+ "type": "diffusion_model",
5637
+ "base": "LTX-2.5",
5638
+ "save_path": "diffusion_models",
5639
+ "description": "LTX-2.5 22B distilled DiT transformer (bf16). Fixed 8-step schedule, CFG=1.",
5640
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5641
+ "filename": "ltx-2.5-22b-distilled-transformer-bf16.safetensors",
5642
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors",
5643
+ "size": "42.02GB"
5644
+ },
5645
+ {
5646
+ "name": "LTX-2.5 22B Distilled Transformer Comfy INT8",
5647
+ "type": "diffusion_model",
5648
+ "base": "LTX-2.5",
5649
+ "save_path": "diffusion_models",
5650
+ "description": "LTX-2.5 22B distilled DiT transformer (Comfy int8 + convrot). ComfyUI only.",
5651
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5652
+ "filename": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
5653
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
5654
+ "size": "21.50GB"
5655
+ },
5656
+ {
5657
+ "name": "LTX-2.5 22B Distilled Transformer NVFP4",
5658
+ "type": "diffusion_model",
5659
+ "base": "LTX-2.5",
5660
+ "save_path": "diffusion_models",
5661
+ "description": "LTX-2.5 22B distilled DiT transformer (NVFP4).",
5662
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5663
+ "filename": "ltx-2.5-22b-distilled-transformer-nvfp4.safetensors",
5664
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/diffusion_models/ltx-2.5-22b-distilled-transformer-nvfp4.safetensors",
5665
+ "size": "18.72GB"
5666
+ },
5667
+ {
5668
+ "name": "LTX-2.5 Gemma4 12B Text Encoder BF16",
5669
+ "type": "clip",
5670
+ "base": "LTX-2.5",
5671
+ "save_path": "text_encoders",
5672
+ "description": "Gemma4 12B text encoder with projections for LTX-2.5 (bf16).",
5673
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5674
+ "filename": "gemma4-12b-with-proj-ltx-2.5-bf16.safetensors",
5675
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors",
5676
+ "size": "26.26GB"
5677
+ },
5678
+ {
5679
+ "name": "LTX-2.5 Gemma4 12B Text Encoder Comfy INT8",
5680
+ "type": "clip",
5681
+ "base": "LTX-2.5",
5682
+ "save_path": "text_encoders",
5683
+ "description": "Gemma4 12B text encoder with projections for LTX-2.5 (Comfy int8 + convrot). ComfyUI only.",
5684
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5685
+ "filename": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
5686
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
5687
+ "size": "15.37GB"
5688
+ },
5689
+ {
5690
+ "name": "LTX-2.5 Video VAE BF16",
5691
+ "type": "VAE",
5692
+ "base": "LTX-2.5",
5693
+ "save_path": "vae",
5694
+ "description": "LTX-2.5 DiffVAE video decoder (bf16). Higher quality, heavier.",
5695
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5696
+ "filename": "ltx-2.5-video-vae-bf16.safetensors",
5697
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-video-vae-bf16.safetensors",
5698
+ "size": "1.47GB"
5699
+ },
5700
+ {
5701
+ "name": "LTX-2.5 Video VAE Conv BF16",
5702
+ "type": "VAE",
5703
+ "base": "LTX-2.5",
5704
+ "save_path": "vae",
5705
+ "description": "LTX-2.5 Conv VAE video decoder (bf16). Faster, lighter.",
5706
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5707
+ "filename": "ltx-2.5-video-vae-conv-bf16.safetensors",
5708
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-video-vae-conv-bf16.safetensors",
5709
+ "size": "1.45GB"
5710
+ },
5711
+ {
5712
+ "name": "LTX-2.5 Audio VAE BF16",
5713
+ "type": "VAE",
5714
+ "base": "LTX-2.5",
5715
+ "save_path": "vae",
5716
+ "description": "LTX-2.5 audio VAE and vocoder (bf16).",
5717
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5718
+ "filename": "ltx-2.5-audio-vae-bf16.safetensors",
5719
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-audio-vae-bf16.safetensors",
5720
+ "size": "0.36GB"
5721
+ },
5722
+ {
5723
+ "name": "LTX-2.5 22B Distilled LoRA",
5724
+ "type": "lora",
5725
+ "base": "LTX-2.5",
5726
+ "save_path": "loras",
5727
+ "description": "A LoRA adapter that transforms the standard LTX-2.5 22B model into a distilled version when loaded.",
5728
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5729
+ "filename": "ltx-2.5-22b-distilled-lora-450-bf16.safetensors",
5730
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/loras/ltx-2.5-22b-distilled-lora-450-bf16.safetensors",
5731
+ "size": "8.90GB"
5732
+ },
5733
+ {
5734
+ "name": "LTX-2.5 22B IC-LoRA Alpha-Gen",
5735
+ "type": "lora",
5736
+ "base": "LTX-2.5",
5737
+ "save_path": "loras",
5738
+ "description": "In-Context LoRA (IC LoRA) for alpha matte generation on video, for background removal and VFX compositing.",
5739
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Alpha-Gen",
5740
+ "filename": "ltx-2.5-22b-ic-lora-alpha-gen-0.9.safetensors",
5741
+ "url": "https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Alpha-Gen/resolve/main/ltx-2.5-22b-ic-lora-alpha-gen-0.9.safetensors",
5742
+ "size": "1.31GB"
5743
+ },
5744
+ {
5745
+ "name": "LTX-2.5 Duration Head BF16",
5746
+ "type": "model_patch",
5747
+ "base": "LTX-2.5",
5748
+ "save_path": "model_patches",
5749
+ "description": "Optional duration predictor head for LTX-2.5. Predicts clip length from the prompt when num_frames is omitted.",
5750
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5751
+ "filename": "ltx-2.5-duration-head-bf16.safetensors",
5752
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/model_patches/ltx-2.5-duration-head-bf16.safetensors",
5753
+ "size": "3.84MB"
5754
+ },
5755
+ {
5756
+ "name": "LTX-2.5 Spatial Upscaler x2",
5757
+ "type": "upscale",
5758
+ "base": "upscale",
5759
+ "save_path": "latent_upscale_models",
5760
+ "description": "Spatial upscaler model for LTX-2.5. This model enhances the spatial resolution of generated videos by 2x.",
5761
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5762
+ "filename": "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
5763
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
5764
+ "size": "0.96GB"
5765
+ },
5766
+ {
5767
+ "name": "LTX-2.5 Temporal Upscaler x2",
5768
+ "type": "upscale",
5769
+ "base": "upscale",
5770
+ "save_path": "latent_upscale_models",
5771
+ "description": "Temporal upscaler model for LTX-2.5. This model enhances the temporal resolution of generated videos by 2x.",
5772
+ "reference": "https://huggingface.co/Lightricks/LTX-2.5",
5773
+ "filename": "ltx-2.5-latent-temporal-upscaler-x2-bf16-1.0.safetensors",
5774
+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/latent_upscale_models/ltx-2.5-latent-temporal-upscaler-x2-bf16-1.0.safetensors",
5775
+ "size": "0.26GB"
5776
+ },
5502
5777
  {
5503
5778
  "name": "LTX-Video Spatial Upscaler v0.9.7",
5504
5779
  "type": "upscale",
@@ -5985,6 +6260,28 @@
5985
6260
  "filename": "Qwen-Image-InstantX-ControlNet-Inpainting.safetensors",
5986
6261
  "url": "https://huggingface.co/Comfy-Org/Qwen-Image-InstantX-ControlNets/resolve/main/split_files/controlnet/Qwen-Image-InstantX-ControlNet-Inpainting.safetensors",
5987
6262
  "size": "2.54GB"
6263
+ },
6264
+ {
6265
+ "name": "Anime Eye Detector (YOLOv8n)",
6266
+ "type": "Ultralytics",
6267
+ "base": "yolov8",
6268
+ "save_path": "ultralytics/bbox",
6269
+ "description": "Anime eye detector (YOLOv8n). Detects eyes in anime-style character art for use with BboxDetectorSEGS/Detailer workflows.",
6270
+ "reference": "https://huggingface.co/killjoyelite/anime-eye-yolov8",
6271
+ "filename": "eye_yolov8n.pt",
6272
+ "url": "https://huggingface.co/killjoyelite/anime-eye-yolov8/resolve/6bceece59aa38f7fe9d3867f3e2931b11c7ff9a1/eye_yolov8n.pt",
6273
+ "size": "6.24MB"
6274
+ },
6275
+ {
6276
+ "name": "Anime Eye Detector (YOLOv8s)",
6277
+ "type": "Ultralytics",
6278
+ "base": "yolov8",
6279
+ "save_path": "ultralytics/bbox",
6280
+ "description": "Anime eye detector (YOLOv8s). Detects eyes in anime-style character art for use with BboxDetectorSEGS/Detailer workflows.",
6281
+ "reference": "https://huggingface.co/killjoyelite/anime-eye-yolov8",
6282
+ "filename": "eye_yolov8s.pt",
6283
+ "url": "https://huggingface.co/killjoyelite/anime-eye-yolov8/resolve/6bceece59aa38f7fe9d3867f3e2931b11c7ff9a1/eye_yolov8s.pt",
6284
+ "size": "22.5MB"
5988
6285
  }
5989
6286
  ]
5990
- }
6287
+ }
@@ -31,6 +31,7 @@ export const _getKnownModels = (DB: ComfyRegistry): void => {
31
31
  for (const modelInfo of knownModelList) {
32
32
  DB.knownModels.set(modelInfo.name, modelInfo)
33
33
  }
34
+ DB.modelRows = knownModelList
34
35
 
35
36
  // CODEGEN ------------------------------------------------------------
36
37
  if (DB.opts.genTypes) {
@@ -6,5 +6,8 @@ export const ComfyManagerAPIModelList_ark = type({
6
6
  models: type({
7
7
  name: type.string.as<KnownModel_Name>(),
8
8
  installed: `'False' | 'True' | 'Update'`,
9
+ 'filename?': 'string',
10
+ 'save_path?': 'string',
11
+ 'base?': 'string',
9
12
  }).array(),
10
13
  })
@@ -9,3 +9,22 @@ export const ComfyManagerAPIPluginList_ark = type({
9
9
  }).array(),
10
10
  chanel: 'string',
11
11
  })
12
+
13
+ /** one pack as `GET customnode/getlist` serves it (Manager V3 and 4.x legacy UI); the install body is this row */
14
+ export type ComfyManagerAPIPack = typeof ComfyManagerAPIPack_ark.infer
15
+ export const ComfyManagerAPIPack_ark = type({
16
+ title: type.string.as<KnownComfyPluginTitle>(),
17
+ 'id?': 'string',
18
+ 'files?': 'string[]',
19
+ 'repository?': 'string',
20
+ 'version?': 'string',
21
+ 'state?': 'string',
22
+ 'update-state?': 'string',
23
+ })
24
+
25
+ /** the getlist wire shape since Manager V3: packs keyed by their install key */
26
+ export type ComfyManagerAPIPackList = typeof ComfyManagerAPIPackList_ark.infer
27
+ export const ComfyManagerAPIPackList_ark = type({
28
+ channel: 'string',
29
+ node_packs: type.Record('string', ComfyManagerAPIPack_ark),
30
+ })
@@ -18,6 +18,7 @@ import type {
18
18
  WsMsgExecuted,
19
19
  WsMsgExecuting,
20
20
  WsMsgExecutionError,
21
+ WsMsgExecutionInterrupted,
21
22
  WsMsgExecutionSuccess,
22
23
  } from 'src/runner/ComfyWsApi.ts'
23
24
  import { MediaImage } from 'src/runner/MediaImage.ts'
@@ -34,7 +35,7 @@ export type ComfyExecutionData = {
34
35
  id: PromptID
35
36
  graphID: ComfyWorkflowID
36
37
  executed: boolean
37
- error?: WsMsgExecutionError | null
38
+ error?: WsMsgExecutionError | WsMsgExecutionInterrupted | null
38
39
  status?: ComfyExecutionStatus | null
39
40
  }
40
41
 
@@ -233,6 +234,8 @@ export class ComfyExecution {
233
234
  // per-node progress map; global progress is derived from the msgs above
234
235
  } else if (msg.type === 'executed') this.onExecuted(msg)
235
236
  else if (msg.type === 'execution_error') return void this.onError(msg)
237
+ // the server sends no execution_success after an interrupt: this message ends the run
238
+ else if (msg.type === 'execution_interrupted') return void this._finish({ status: 'Failure', error: msg })
236
239
  else if (msg.type === 'execution_success') return void this.onExecutionSuccess(msg)
237
240
  else {
238
241
  console.log(`🔴 UNEXPECTED MESSAGE:`, msg)
@@ -1,6 +1,6 @@
1
1
  import { scope, type } from 'arktype'
2
2
  import { ComfyNodeId_ark } from 'src/graph/ComfyNodeID.ts'
3
- import type { Tagged } from 'src/types/index.ts'
3
+ import type { IsEqual, Tagged } from 'src/types/index.ts'
4
4
 
5
5
  /** the id ComfyUI assigns to one queued execution (wire-level name kept) */
6
6
  export type PromptID = Tagged<string, { PromptID: true }>
@@ -61,20 +61,22 @@ const tempScope = scope({
61
61
  },
62
62
  _WsMsgExecutedData: {
63
63
  node: 'ComfyNodeID',
64
- output: {
65
- 'previews?': [{ filepath: 'string' }, '[]'],
66
- 'images?': 'ComfyImageInfo[]',
67
- // SaveAudio*, PreviewAudio: same file triple as an image
68
- 'audio?': 'ComfyImageInfo[]',
69
- // VideoHelperSuite's VHS_VideoCombine, and savers that name their list `video`
70
- 'video?': 'ComfyImageInfo[]',
71
- 'gifs?': 'ComfyImageInfo[]',
72
- // ui payload of a text output node (PreviewAny, and how TextGenerate
73
- // results reach the client); entries are soft, non-strings are dropped
74
- 'text?': 'unknown[]',
75
- },
64
+ // null for a cached node whose cache entry holds no ui payload (asset_enrichment.emit_cached_output)
65
+ output: '_WsMsgExecutedOutput | null',
76
66
  prompt_id: 'PromptID',
77
67
  },
68
+ _WsMsgExecutedOutput: {
69
+ 'previews?': [{ filepath: 'string' }, '[]'],
70
+ 'images?': 'ComfyImageInfo[]',
71
+ // SaveAudio*, PreviewAudio: same file triple as an image
72
+ 'audio?': 'ComfyImageInfo[]',
73
+ // VideoHelperSuite's VHS_VideoCombine, and savers that name their list `video`
74
+ 'video?': 'ComfyImageInfo[]',
75
+ 'gifs?': 'ComfyImageInfo[]',
76
+ // ui payload of a text output node (PreviewAny, and how TextGenerate
77
+ // results reach the client); entries are soft, non-strings are dropped
78
+ 'text?': 'unknown[]',
79
+ },
78
80
  WsMsgExecuted: {
79
81
  type: "'executed'",
80
82
  data: '_WsMsgExecutedData',
@@ -98,13 +100,26 @@ const tempScope = scope({
98
100
  exception_type: 'string',
99
101
  traceback: 'string[]',
100
102
  current_inputs: 'Record<string, unknown>',
101
- current_outputs: 'Record<string, unknown>',
103
+ // execution.py sends list(current_outputs): the ids of the nodes that already have outputs
104
+ current_outputs: 'ComfyNodeID[]',
102
105
  },
103
106
  WsMsgExecutionError: {
104
107
  type: "'execution_error'",
105
108
  data: '_WsMsgExecutionErrorData',
106
109
  },
107
110
 
111
+ // an interrupt (POST /interrupt) ends the prompt with this and no execution_success
112
+ _WsMsgExecutionInterruptedData: {
113
+ prompt_id: 'PromptID',
114
+ node_id: 'ComfyNodeID',
115
+ node_type: 'string',
116
+ executed: 'ComfyNodeID[]',
117
+ },
118
+ WsMsgExecutionInterrupted: {
119
+ type: "'execution_interrupted'",
120
+ data: '_WsMsgExecutionInterruptedData',
121
+ },
122
+
108
123
  WSMsgManagerFeedbackData: { data: 'string' },
109
124
  WSMsgManagerFeedback: {
110
125
  type: "'manager-terminal-feedback'",
@@ -134,7 +149,7 @@ const tempScope = scope({
134
149
 
135
150
  // UNION TYPES
136
151
  PromptRelated_WsMsg:
137
- 'WsMsgExecutionStart | WsMsgExecutionCached | WsMsgExecuting | WsMsgProgress | WsMsgProgressState | WsMsgExecuted | WsMsgExecutionError | WsMsgExecutionSuccess',
152
+ 'WsMsgExecutionStart | WsMsgExecutionCached | WsMsgExecuting | WsMsgProgress | WsMsgProgressState | WsMsgExecuted | WsMsgExecutionError | WsMsgExecutionInterrupted | WsMsgExecutionSuccess',
138
153
  WsMsg: 'WsMsgStatus | WSMsgManagerFeedback | WsMsgLogs | PromptRelated_WsMsg',
139
154
  })
140
155
 
@@ -166,6 +181,7 @@ export type WsMsgProgressState = typeof types.WsMsgProgressState.infer
166
181
  export type WsMsgExecuted = typeof types.WsMsgExecuted.infer
167
182
  export type WsMsgExecutionSuccess = typeof types.WsMsgExecutionSuccess.infer
168
183
  export type WsMsgExecutionError = typeof types.WsMsgExecutionError.infer
184
+ export type WsMsgExecutionInterrupted = typeof types.WsMsgExecutionInterrupted.infer
169
185
  export type WSMsgManagerFeedback = typeof types.WSMsgManagerFeedback.infer
170
186
  export type LogEntry = typeof types.LogEntry.infer
171
187
  export type WsMsgLogs = typeof types.WsMsgLogs.infer
@@ -180,5 +196,56 @@ export type PromptInfo = { prompt_id: PromptID }
180
196
  export const PromptInfo_ark = type({ prompt_id: types.PromptID }).as<PromptInfo>()
181
197
 
182
198
  export const WsMsg_ark = types.WsMsg
199
+
200
+ /** every json event type ComfyHost.onMessage routes; checked against the WsMsg union below */
201
+ export const ROUTED_WS_EVENT_TYPES = [
202
+ 'status',
203
+ 'manager-terminal-feedback',
204
+ 'logs',
205
+ 'execution_start',
206
+ 'execution_cached',
207
+ 'executing',
208
+ 'progress',
209
+ 'progress_state',
210
+ 'executed',
211
+ 'execution_error',
212
+ 'execution_interrupted',
213
+ 'execution_success',
214
+ ] as const
215
+ true satisfies IsEqual<(typeof ROUTED_WS_EVENT_TYPES)[number], WsMsg['type']>
216
+
217
+ /** events a server or a custom node sends by design that comfy-ts has no use for: dropped
218
+ * before validation, never logged (architecture.md, ws events) */
219
+ export const IGNORED_WS_EVENT_TYPES = [
220
+ // ComfyUI server.py: only the reply to a client that opens with its own feature_flags
221
+ 'feature_flags',
222
+ // ComfyUI app/agent_host.py: the local agent host's state, broadcast
223
+ 'agent_status',
224
+ // ComfyUI app/asset_export.py: an export task's progress, broadcast
225
+ 'asset_export',
226
+ // ComfyUI app/assets/seeder.py: the asset index scan, broadcast while the assets system is on
227
+ 'assets.seed.started',
228
+ 'assets.seed.progress',
229
+ 'assets.seed.fast_complete',
230
+ 'assets.seed.enrich_complete',
231
+ 'assets.seed.completed',
232
+ 'assets.seed.cancelled',
233
+ 'assets.seed.error',
234
+ 'assets.seed.paused',
235
+ 'assets.seed.resumed',
236
+ // ComfyUI-Manager (V3.x legacy and 4.x): install queue progress, broadcast
237
+ 'cm-queue-status',
238
+ 'cm-api-try-install-customnode',
239
+ // ComfyUI-Manager 4.x glob/manager_server.py: one task of the install queue
240
+ 'cm-task-started',
241
+ 'cm-task-completed',
242
+ // ComfyUI-Crystools: the resource monitor, about once a second
243
+ 'crystools.monitor',
244
+ ] as const
245
+
246
+ const ROUTED_SET: ReadonlySet<string> = new Set(ROUTED_WS_EVENT_TYPES)
247
+ const IGNORED_SET: ReadonlySet<string> = new Set(IGNORED_WS_EVENT_TYPES)
248
+ export const isRoutedWsEventType = (t: string): boolean => ROUTED_SET.has(t)
249
+ export const isIgnoredWsEventType = (t: string): boolean => IGNORED_SET.has(t)
183
250
  export const ComfyImageInfo_ark = types.ComfyImageInfo
184
251
  export const WsMsgLogsData_ark = types._WsMsgLogsData
@@ -257,10 +257,19 @@ export class ComfySchema {
257
257
  }
258
258
  }
259
259
  }
260
+ // dynamic group: row fields are typed by their own slot types, and the group is
261
+ // required exactly when it needs rows (upstream counts min even on an optional input)
262
+ if (widgetKind?.kind === 'dynamic-group') {
263
+ for (const entry of widgetKind.fields) {
264
+ if (typeof entry.type === 'string') this.knownSlotTypes.add(asComfyNodeSlotTypeName(entry.type))
265
+ }
266
+ }
267
+ const required =
268
+ widgetKind?.kind === 'dynamic-group' ? widgetKind.min > 0 : ipt.required && !isAutogrowContainer
260
269
 
261
270
  node.inputs.push({
262
271
  slotName: inputSlotName,
263
- required: ipt.required && !isAutogrowContainer,
272
+ required,
264
273
  nameInComfy: inputNameInComfy,
265
274
  nameInComfyEscaped: escapeJSKey(inputNameInComfy),
266
275
  typeName: inputTypeName,
@@ -33,7 +33,10 @@ export const ComfyUIObjectInfoScope = scope({
33
33
  // means it's broken: some nodes declare an input whose spec is literally
34
34
  // [null] — accepted here so ONE bad node cannot fail a whole schema parse
35
35
  ComfyInputSpecAlt3: type([type.null]),
36
- ComfyInputSpec: `ComfyInputSpecAlt1 | ComfyInputSpecAlt2 | ComfyInputSpecAlt3`,
36
+ // a trailing extra entry (kjnodes EndRecordCUDAMemoryHistory: a description string); ComfyUI
37
+ // and its frontend read [0] and [1] only, so do we
38
+ ComfyInputSpecAlt4: ['ComfyInputType', 'ComfyInputOpts', 'unknown'],
39
+ ComfyInputSpec: `ComfyInputSpecAlt1 | ComfyInputSpecAlt2 | ComfyInputSpecAlt3 | ComfyInputSpecAlt4`,
37
40
 
38
41
  ComfyInputType: `string | ComfyEnumDef`,
39
42