Files
Dr.Lt.DataandClaude d23db9aa54 feat: Impact Pack progressive on-demand wildcard loading support
Add compatibility with Impact Pack's progressive on-demand wildcard loading system.
Wildcard selector now displays loading status indicators:
- 🔵 On-Demand mode: Shows loaded wildcard count
- 🟢 Full Cache mode: All wildcards loaded

Changes:
- Import Impact Pack's get_wildcard_label(), is_wildcard_label(), load_wildcard_status()
- Add fallback functions for backward compatibility
- Update WildcardEncode and MakeBasicPipe nodes with dynamic status display
- Add async callbacks to reload status after wildcard selection

Backward compatible with older Impact Pack versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 02:01:35 +09:00

42 lines
1.2 KiB
Python

"""
@author: Dr.Lt.Data
@title: Inspire Pack
@nickname: Inspire Pack
@description: This extension provides various nodes to support Lora Block Weight, Regional Nodes, Backend Cache, Prompt Utils, List Utils and the Impact Pack.
"""
import importlib
import logging
version_code = [1, 23]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
logging.info(f"### Loading: ComfyUI-Inspire-Pack ({version_str})")
node_list = [
"lora_block_weight",
"segs_support",
"a1111_compat",
"prompt_support",
"inspire_server",
"image_util",
"regional_nodes",
"sampler_nodes",
"backend_support",
"list_nodes",
"conditioning_nodes",
"model_nodes",
"util_nodes"
]
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
for module_name in node_list:
imported_module = importlib.import_module(".inspire.{}".format(module_name), __name__)
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS}
NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS}
WEB_DIRECTORY = "./js"
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]