add plugin files

This commit is contained in:
jimpi-dev
2026-02-24 21:23:49 +01:00
parent a216ffd522
commit 6e5bc78507
3 changed files with 492 additions and 0 deletions
+31
View File
@@ -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"]