feat: add V3 (comfy_api) dual-API wrappers; clear error on invalid regex; tooltips; bump 2.0.11

v3_nodes.py builds a V3 io.ComfyNode per V1 class from its INPUT_TYPES/
RETURN_TYPES and delegates execute() to the V1 method (no forked logic),
including the StringPreview OUTPUT_NODE ui.PreviewText path. comfy_entrypoint
exported import-guarded. StringMultiReplace use_regex now raises a clear
ValueError naming the bad pattern instead of a raw re.error. Added tooltips
to strip/multi_replace boolean flags. Verified ComfyUI 0.25.0.
This commit is contained in:
BRADSEC
2026-06-20 19:30:49 +10:00
parent 8801cd0ed1
commit a0807f3d2d
6 changed files with 139 additions and 8 deletions
+9
View File
@@ -28,3 +28,12 @@ NODE_DISPLAY_NAME_MAPPINGS = {
WEB_DIRECTORY = "./js"
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
# V3 schema wrappers, exposed only when comfy_api is importable. On the 0.25.0
# loader the V1 NODE_CLASS_MAPPINGS above win and comfy_entrypoint is skipped,
# so the nodes are not registered twice.
try:
from .v3_nodes import comfy_entrypoint # noqa: F401
__all__.append("comfy_entrypoint")
except ImportError:
pass