mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-11-21 03:05:17 +08:00
NodeReplace gains old_pack (the cnr_id of the pack defining old_node_id) and
kind ("deprecated" or "equivalent"). Equivalent entries must name old_pack, so a
pack node type only maps to core when the workflow node came from that pack.
NodeReplaceManager dedupes on (new_node_id, old_pack) and selects a replacement
by the prompt node's _meta.cnr_id / aux_id: exact pack first, then a pack-less
entry; a node without pack identity only takes a pack entry when every entry
names the same pack.
app/node_equivalence.py checks that an equivalent entry is lossless against the
old and new /object_info schemas: every widget mapped in saved order, types and
ranges contained, FLOAT precision not coarser, dynamicPrompts matching, outputs
mapped to the same type, and no set_value over a mapped input. Tests run it
against ComfyUI-KJNodes snapshots and the live core primitive schemas.
Amp-Thread-ID: https://ampcode.com/threads/T-d0d41b9b-d42b-4824-9347-136f32b45608