Files
rohit267-champdev-comfyui-n…/__init__.py
T
Rohit MahtoandClaude Opus 4.8 d861d7ccaa feat(telemetry): fleet telemetry client + PowerShell default on Windows
Adds telemetry.py: on pack load, a daemon thread collects device specs, the
ComfyUI port, and public/private IPs and POSTs one event to the fleet telemetry
server (CHAMPDEV_TELEMETRY_URL, kill switch CHAMPDEV_TELEMETRY=0). Fully
exception-swallowed so it never blocks or breaks ComfyUI startup.

Also makes PowerShell (pwsh.exe, then powershell.exe) the default Windows shell
for the terminal node, falling back to cmd.exe. Bumps version to 0.5.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-28 16:18:42 +05:30

53 lines
1.5 KiB
Python

import logging
_logger = logging.getLogger(__name__)
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
try:
from .nodes import (
NODE_CLASS_MAPPINGS as _SAVE_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _SAVE_NAMES,
)
NODE_CLASS_MAPPINGS.update(_SAVE_CLASSES)
NODE_DISPLAY_NAME_MAPPINGS.update(_SAVE_NAMES)
except ImportError as e:
_logger.warning("champdev-comfyui-nodes: save nodes failed to load: %s", e)
try:
from .filemanager import (
NODE_CLASS_MAPPINGS as _FM_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _FM_NAMES,
)
NODE_CLASS_MAPPINGS.update(_FM_CLASSES)
NODE_DISPLAY_NAME_MAPPINGS.update(_FM_NAMES)
except ImportError as e:
_logger.warning("champdev-comfyui-nodes: file manager node failed to load: %s", e)
try:
from .terminal import (
NODE_CLASS_MAPPINGS as _TERM_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _TERM_NAMES,
)
NODE_CLASS_MAPPINGS.update(_TERM_CLASSES)
NODE_DISPLAY_NAME_MAPPINGS.update(_TERM_NAMES)
except ImportError as e:
_logger.warning("champdev-comfyui-nodes: terminal node failed to load: %s", e)
WEB_DIRECTORY = "web"
__version__ = "0.5.0"
try:
from . import telemetry
telemetry.maybe_send()
except Exception as e: # never let telemetry break node loading
_logger.debug("champdev-comfyui-nodes: telemetry skipped: %s", e)
__all__ = [
"NODE_CLASS_MAPPINGS",
"NODE_DISPLAY_NAME_MAPPINGS",
"WEB_DIRECTORY",
"__version__",
]