Skip to content

v2.0.0 Readability Refactor

Choose a tag to compare

@pydn pydn released this 29 Mar 20:36
ce23e90

Overview

v2.0.0 is a major exporter update focused on packaging, runtime correctness, generated-script readability, and frontend
compatibility.

CLI and Packaging

The exporter now has a proper package entrypoint, with uv run python -m comfyui_to_python as the recommended CLI path. The
legacy uv run python comfyui_to_python.py wrapper still works for compatibility.

Generated Script Improvements

Generated scripts were reworked to be easier to read, with clearer structure around imports, workflow data, execution, and
entrypoint flow.

Runtime and Frontend Fixes

Generated scripts now defer ComfyUI bootstrap until main() executes, and ComfyUI startup now happens before torch import,
which improves runtime correctness and avoids import-time side effects. The frontend extension was also updated to avoid
the legacy ui.js import path, improving compatibility with newer ComfyUI frontend behavior.

Export Correctness

This version improves handling for repeated node-class branches, non-zero output selection, hidden metadata kwargs, and
randomized seed synchronization.

Validation

Validation coverage was expanded with stronger unit tests, runtime harness improvements, and additional committed workflow
fixtures, including reused-node-class-branches, secondary-output-selection, text-to-image, and upscale-model-loader.