Commit Graph
10 Commits
Author SHA1 Message Date
Av007 ec370fc17b feat: auto-sync resolution/aspect_ratio/duration from upstream trigger node
When ByteDance (or any node) is wired to the trigger input, the JS extension
reads its resolution, aspect_ratio and duration_s widgets by name (with positional
fallback at indices 2/3/4) and mirrors them into CreditDisplay automatically.
Widget callbacks on the upstream node are patched on connection so any change
to ByteDance settings immediately recalculates the cost display.

Made-with: Cursor
2026-04-17 11:52:55 +03:00
Av007 f273ee135e fix: accept any type on trigger input so VIDEO can connect
Change trigger from STRING to * (universal) so ByteDance VIDEO output
can wire directly to CreditDisplay without a type mismatch.

Made-with: Cursor
2026-04-17 11:46:52 +03:00
Av007 ced575b9d5 feat: live balance check, status line, and optional run-blocking
- _get_balance() calls /api/credits or /internal/credits via urllib (no deps)
- _format_output() gains Balance / After run / Status lines when balance available
- CreditDisplay gains check_balance (BOOLEAN) and block_if_insufficient (BOOLEAN)
- block_if_insufficient=True raises RuntimeError before the model runs if funds are low
- New output slot: balance_after (FLOAT)
- JS updated to show balance placeholder and read check_balance widget

Made-with: Cursor
2026-04-17 11:02:21 +03:00
Av007 5c00a6cc10 docs: add Confluence documentation for non-technical users
Made-with: Cursor
2026-04-16 14:03:06 +03:00
Av007 88e6ce9bb5 feat: live credit recalculation on widget change via JS extension
Made-with: Cursor
2026-04-16 14:01:18 +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 bca29fd4ff chore: add .gitignore to exclude __pycache__
Made-with: Cursor
2026-04-16 13:44:54 +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
Av007 6680503fef adding docs 2026-04-16 13:18:29 +03:00
Av007 7dacbd4501 init 2026-04-16 12:50:18 +03:00