Files
Comfyui-Workflow-Snapshot-M…/__init__.py
T
Ethanfel ff59e58b33
Publish to ComfyUI Registry / Publish Custom Node to Registry (push) Canceled after 0s
Tests / test (push) Canceled after 0s
Improve snapshot reliability and usability
2026-08-24 23:50:31 +02:00

22 lines
706 B
Python

"""
ComfyUI Snapshot Manager
Automatically snapshots workflow state as you edit, with a sidebar panel
to browse and restore any previous version. Stored in server-side JSON files.
"""
WEB_DIRECTORY = "./js"
# ComfyUI loads custom nodes as packages. Test runners may import this file as
# a standalone module while discovering tests; avoid trying to register routes
# until package-relative imports are available.
if __package__:
from . import snapshot_routes
from .snapshot_node import SaveSnapshot
NODE_CLASS_MAPPINGS = {"SaveSnapshot": SaveSnapshot}
NODE_DISPLAY_NAME_MAPPINGS = {"SaveSnapshot": "Save Snapshot"}
else:
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}