diff --git a/custom_nodes/example_node.py.example b/custom_nodes/example_node.py.example index 000ccf943..29ab2aa72 100644 --- a/custom_nodes/example_node.py.example +++ b/custom_nodes/example_node.py.example @@ -26,6 +26,9 @@ class Example: DEPRECATED (`bool`): Indicates whether the node is deprecated. Deprecated nodes are hidden by default in the UI, but remain functional in existing workflows that use them. + EXPERIMENTAL (`bool`): + Indicates whether the node is experimental. Experimental nodes are marked as such in the UI and may be subject to + significant changes or removal in future versions. Use with caution in production workflows. execute(s) -> tuple || None: The entry point method. The name of this method must be the same as the value of property `FUNCTION`. For example, if `FUNCTION = "execute"` then this method's name must be `execute`, if `FUNCTION = "foo"` then it must be `foo`. diff --git a/server.py b/server.py index 0864d9dd8..23ebdb7ba 100644 --- a/server.py +++ b/server.py @@ -445,6 +445,8 @@ class PromptServer(): if getattr(obj_class, "DEPRECATED", False): info['deprecated'] = True + if getattr(obj_class, "EXPERIMENTAL", False): + info['experimental'] = True return info @routes.get("/object_info")