Files
BloodwolfbandClaude Sonnet 5 4c353d68ba Initial commit: Hot Lazy Switch and Hot Resolution Mode Switch
Ported from the working copies in C:\AI\HotComfyUI\custom_nodes (hot_switch
and hot_resolution_mode_switch), unified into one package with a shared
HotComfy/Switches category. Node IDs, category, and widget-hiding behavior
are unchanged so existing workflows built against the live install stay
compatible. Dropped hot_switch's temporary /hot_switch/diag logging route
and console instrumentation, which weren't meant for a public release.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 21:42:34 -05:00

23 lines
684 B
Python

from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
from .nodes.lazy_switch import HotLazySwitch
from .nodes.resolution_mode_switch import HotResolutionModeSwitch
class HotSwitchesExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [HotLazySwitch, HotResolutionModeSwitch]
async def comfy_entrypoint() -> ComfyExtension:
return HotSwitchesExtension()
# Deliberately no NODE_CLASS_MAPPINGS: ComfyUI's V1 loader branch would
# otherwise shadow this V3 registration before comfy_entrypoint is reached.
WEB_DIRECTORY = "./js"
__all__ = ["comfy_entrypoint", "WEB_DIRECTORY"]