Files
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

23 lines
587 B
Python

"""ProgrammingNode — abstract programming primitives organized by category."""
from mp_nodes._base import ANY, MegaPackNodeBase, OpRegistry
REGISTRY = OpRegistry()
op = REGISTRY.register
from mp_nodes.programming.operations import ( # noqa: E402, F401
encoding,
logic_bits,
math_signals,
text,
data_struct,
control_flow,
crypto,
)
class ProgrammingNode(MegaPackNodeBase):
REGISTRY = REGISTRY
RETURN_TYPES = ("STRING", "INT", "FLOAT", "BOOLEAN", "LIST", "DICT", ANY)
RETURN_NAMES = ("string", "int", "float", "bool", "list", "dict", "any")