Restructure for future growth and packaging clarity: * hold_counter_node.py -> hold_counter/node.py (git rename, history preserved). Top-level __init__.py is now a thin ComfyUI entry point that re-exports NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS, and WEB_DIRECTORY from the new subpackage. * New hold_counter/__init__.py exposes HoldCounter, NodeState, MODES, DEFAULT_MODE, and the ComfyUI mappings as the package public API. * pyproject hatch wheel target simplified to packages = ["hold_counter"] (the source-mapping and force-include hacks are no longer needed); pyright include list updated to the new layout. * tests now import hold_counter.node instead of hold_counter_node. Fixes: * pyright reportUnknownVariableType on NodeState.perm — typed the dataclass default_factory as list[int]. * CHANGELOG MD024 (duplicate "### Added" / "### Fixed" headings under per-version sections) — disabled per-file via markdownlint comment; this is the conventional fix for Keep-a-Changelog files. Also folds in light user-applied formatting tweaks to web/hold_counter.js (comment wrapping) and workflows/hold_counter_basic.json (4-space indent / expanded form). No public behaviour change. The only "breaking" aspect is the import path for downstream Python consumers (hold_counter_node -> hold_counter.node); ComfyUI itself is unaffected since it loads custom_nodes/hold_counter/__init__.py.
12 lines
385 B
Python
12 lines
385 B
Python
"""ComfyUI entry point.
|
|
|
|
Re-exports the node mappings from the implementation package and points ComfyUI at the bundled
|
|
``web/`` extension directory. The actual code lives under :mod:`hold_counter`.
|
|
"""
|
|
|
|
from .hold_counter import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
WEB_DIRECTORY = "./web"
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|