Files
WWWEN8-ComfyUI-CCXManager/__init__.py
T
2025-10-20 12:44:26 +08:00

24 lines
1012 B
Python

"""
ComfyUI-CCXManager - SD-PPP插件更新助手
专门为SD-PPP插件开发的辅助节点,自动管理和更新Photoshop侧插件
"""
from .ccx_downloader_node import NODE_CLASS_MAPPINGS as CCX_NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as CCX_NODE_DISPLAY_NAME_MAPPINGS
from .auto_updater_node import NODE_CLASS_MAPPINGS as AUTO_NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as AUTO_NODE_DISPLAY_NAME_MAPPINGS, auto_check_for_repo_updates
# 合并节点映射
NODE_CLASS_MAPPINGS = {**CCX_NODE_CLASS_MAPPINGS, **AUTO_NODE_CLASS_MAPPINGS}
NODE_DISPLAY_NAME_MAPPINGS = {**CCX_NODE_DISPLAY_NAME_MAPPINGS, **AUTO_NODE_DISPLAY_NAME_MAPPINGS}
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
__version__ = "2.0"
# 可选:添加Web目录支持(如果有JS组件)
# WEB_DIRECTORY = "web"
# 在后台线程中运行自动更新检查(延迟5秒)
import threading
timer = threading.Timer(5.0, auto_check_for_repo_updates)
timer.daemon = True
timer.start()