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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user