Skip to main content
Use this section when you already understand the V2 model and need an exact import, signature, rule, or API surface.

Imports

comfy.version reports the contract as major.minor. Keep a released pack on a supported major with comfy.forMajor().

Pack layout

The top level remains the V1 pack root. v2/ is the V2 pack root, not a patch directory. V2 does not merge with or fall back to V1.

Minimal JavaScript pattern

Core rules

JavaScript reference

When something is missing

Report the user-visible behavior, affected JavaScript surface, current workaround, and why existing APIs are insufficient. New capabilities and extension points can be added for legitimate author needs. Keep any temporary private integration optional and local-only.