Commit Graph
1 Commits
Author SHA1 Message Date
cf1091a444 feat(nodes): add the Debug Viewer ComfyUI node (#24) (#68)
Add nodes/debug_viewer_node.py: DebugViewerNode, a read-only inspector
(MASTER_SPEC §20), plus render_debug_report in nodes/adapters.py.

- Optional inputs for each intermediate state: scene (SCENE), resolved_tags
  (RESOLVED_TAGS), category_map (CATEGORY_MAP), warnings and errors (STRING).
- Renders whichever are connected into a single `report` STRING via each value's
  to_json(); absent inputs are skipped. Terminal viewer (OUTPUT_NODE); read-only,
  never modifies the data passing through. No compiler logic in the node.
- Registered as SceneCompilerDebugViewer ("Debug Viewer").

Tests: metadata/inputs, empty report, rendering each state (with empty sections
omitted), valid serialization, read-only guarantee, and registration.

Co-authored-by: kunail0804 <kunail0804@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 13:20:44 +02:00