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
20 lines
492 B
Python
20 lines
492 B
Python
"""IOWorkflowNode — filesystem, HTTP, save-with-manifest, sweeps, monitors."""
|
|
|
|
from mp_nodes._base import MegaPackNodeBase, OpRegistry
|
|
|
|
REGISTRY = OpRegistry()
|
|
op = REGISTRY.register
|
|
|
|
from mp_nodes.io_workflow.operations import ( # noqa: E402, F401
|
|
filesystem,
|
|
network,
|
|
workflow,
|
|
system,
|
|
)
|
|
|
|
|
|
class IOWorkflowNode(MegaPackNodeBase):
|
|
REGISTRY = REGISTRY
|
|
RETURN_TYPES = ("STRING", "DICT", "IMAGE", "INT")
|
|
RETURN_NAMES = ("text", "parsed", "image", "status_code")
|