""" Prompt Orchestration System - ComfyUI Custom Nodes Advanced prompt manipulation system with 220+ modifiers across 11 variation dimensions """ import sys import traceback from pathlib import Path # Setup current_dir = Path(__file__).parent log_file = current_dir / "debug_node_load.log" # Simple debug function - no logging framework def debug_log(msg): with open(log_file, 'a', encoding='utf-8') as f: f.write(f"{msg}\n") print(f"[PromptOrch] {msg}") # Clear previous log with open(log_file, 'w', encoding='utf-8') as f: f.write("=== Prompt Orchestration Node Loading ===\n") # Add current directory to path for imports if str(current_dir) not in sys.path: sys.path.insert(0, str(current_dir)) # Import nodes NODE_CLASS_MAPPINGS = {} NODE_DISPLAY_NAME_MAPPINGS = {} try: debug_log("Importing from local nodes module...") from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS debug_log(f"SUCCESS: Found {len(NODE_CLASS_MAPPINGS)} nodes") # List the nodes for name in NODE_CLASS_MAPPINGS.keys(): debug_log(f" - {name}") except Exception as e: debug_log(f"FAILED: {type(e).__name__}: {e}") debug_log(traceback.format_exc()) # Export for ComfyUI __all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] # Version info __version__ = "2.0.0" debug_log(f"=== Loading complete: {len(NODE_CLASS_MAPPINGS)} nodes ===")