Files
Mitch 1f85d04dd7 refactor!: move source into hold_counter/ subpackage (v2.0.1)
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.
2026-04-26 20:59:04 -06:00
..