add plugin files
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
"""
|
||||
ComfyUI custom node: WorkflowUI plugin.
|
||||
|
||||
Registers API routes so WorkflowUI (and other clients) can:
|
||||
- Delete files from ComfyUI output/input/temp (POST /delete, POST /workflowui/media/delete)
|
||||
- List and browse media (GET /workflowui/media/list, GET /workflowui/media/tree)
|
||||
- Detect plugin (GET /workflowui/media/capabilities)
|
||||
- Installed modules/versions for run metadata (GET /workflowui/version_info)
|
||||
|
||||
No graph nodes are added; this is a route-only plugin.
|
||||
"""
|
||||
|
||||
from .version_info import __version__
|
||||
from .routes import register_routes
|
||||
|
||||
register_routes()
|
||||
|
||||
# Startup banner
|
||||
_banner_text = f" WorkflowUI Plugin v{__version__} "
|
||||
_width = max(len(_banner_text) + 2, 24)
|
||||
_border = "+" + "-" * (_width - 2) + "+"
|
||||
print()
|
||||
print(_border)
|
||||
print("|" + _banner_text.center(_width - 2) + "|")
|
||||
print(_border)
|
||||
print()
|
||||
|
||||
NODE_CLASS_MAPPINGS = {}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|
||||
Reference in New Issue
Block a user