Files
IxMxAMAR-ComfyUI-Utility-Me…/mp_nodes/models_sampling/__init__.py
T
IxMxAMAR 15e4b0da4e release(v0.1.2): fix critical loader collision + 6 Gemini-review findings
Critical:
- rename nodes/ -> mp_nodes/, shared/ -> mp_shared/ to avoid shadowing
  ComfyUI core's nodes.py via sys.path injection (root cause of v0.1.1
  'nodes is not a package' startup failure)
- http_post now streams response and enforces 50MB cap mid-stream (DoS)
- AES key derivation: HKDF -> PBKDF2-HMAC-SHA256 600k iters + random salt
  (work factor against weak-key brute force; ciphertext format changed)
- fs_mkdir/copy/move/delete confined to ComfyUI input/output/temp + ~ by
  default; UTILITY_MEGAPACK_ALLOW_ARBITRARY_PATHS=1 to override

UX / correctness:
- combo settings now declare options array (themes dropdown was empty)
- LATENT default 1x4x8x8 zeros -> {} (avoids Flux/SD3 shape crashes)
- @op decorator rejects reserved widget names mode/theme at register time
- _pad_outputs docstring updated to match relaxed opaque-type behavior
2026-05-13 21:36:54 +05:30

19 lines
570 B
Python

"""ModelsSamplingNode — model intel, resolution helpers, seed/sampler ops."""
from mp_nodes._base import MegaPackNodeBase, OpRegistry
REGISTRY = OpRegistry()
op = REGISTRY.register
from mp_nodes.models_sampling.operations import ( # noqa: E402, F401
model_intel,
resolution,
seed_sampling,
)
class ModelsSamplingNode(MegaPackNodeBase):
REGISTRY = REGISTRY
RETURN_TYPES = ("MODEL", "CLIP", "VAE", "STRING", "STRING", "INT", "INT", "FLOAT", "DICT")
RETURN_NAMES = ("model", "clip", "vae", "name", "sampler", "seed", "dim", "cfg", "params")