3 Commits
Author SHA1 Message Date
Av007 ca66f6d342 chore: cleanup nodes.py, fix root WEB_DIRECTORY, docs and pyproject
nodes.py:
- move json/urllib/logging imports to module top
- replace inline imports inside _get_balance with module-level log
- extract endpoint/key constants instead of inline literals
- add from __future__ import annotations for cleaner typing
- document the error-path padding to 4-tuple matching RETURN_TYPES

Root __init__.py:
- expose WEB_DIRECTORY pointing at custom_nodes/credit_tracker/js so the
  live-update extension loads when the repo is installed as custom_fns/

pyproject.toml:
- fix invalid build-backend (was setuptools.backends.legacy:build)
- bump to 0.2.0, add author/homepage fields

README + CONFLUENCE:
- document balance check, block_if_insufficient, and optional wired inputs
- update sample output to include Balance / After run / Status lines
- drop stale "no API calls" line and inaccurate "41 models total" claim
- mention JS pricing mirror must be updated alongside Python PRICING

Made-with: Cursor
2026-04-17 12:42:41 +03:00
Av007 d5bbd0e821 fix: robust sys.path-based import in root __init__.py; update README file structure
Made-with: Cursor
2026-04-16 13:52:29 +03:00
Av007 c86c52e155 fix: add root __init__.py so ComfyUI discovers CreditDisplay when repo is cloned into custom_nodes/
Made-with: Cursor
2026-04-16 13:44:17 +03:00