Commit Graph

5 Commits

Author SHA1 Message Date
John Pollock
e47cc074b3 feat(isolation): sandbox support — host policy and bwrap configuration
Adds host_policy.py for loading sandbox config from pyproject.toml:
sandbox_mode, network access, writable/readonly paths, node whitelist.
Sealed-worker RO import paths. Policy validation against forbidden
path set. pyproject.toml [tool.comfy.host] section with default policy.
2026-04-07 11:17:14 -05:00
John Pollock
ace8e9fdbf feat(isolation): sealed worker data types and custom node serializers
Adds torch-free serializers for sealed workers: ndarray (base64), PLY
(point clouds), NPZ (depth frames), TRIMESH (meshes), SKELETON (geometry).
comfy_api_sealed_worker package for V1-style sealed node type definitions.
SaveNPZ/SavePLY nodes. comfy_api _ui.py child-process detection.
2026-04-07 11:17:14 -05:00
John Pollock
0e990a31a6 feat(isolation): advanced RPC proxies — ModelPatcher, CLIP, VAE, ModelSampling
Adds complex model proxies that handle cross-process model operations:
ModelPatcherProxy/Registry with VRAM headroom pre-allocation, CLIPProxy
with tokenizer/cond-stage sub-proxies, VAEProxy with encode/decode,
ModelSamplingProxy with sigma conversion. Hook serialization for LoRA
and weight patches.
2026-04-07 08:02:37 -05:00
John Pollock
94720c0c02 feat(isolation): singleton proxies for ComfyUI services
Adds proxy infrastructure for cross-process service access: BaseRegistry/
BaseProxy pattern, FolderPaths, ModelManagement, PromptServer, Progress,
Utils, HelperProxies, and WebDirectory proxies. These provide transparent
RPC access to host-side ComfyUI services from isolated child processes.
2026-04-07 08:02:37 -05:00
John Pollock
7d512fa9c3 feat(isolation): core infrastructure and pyisolate integration
Adds the isolation system foundation: ComfyUIAdapter, extension loader,
manifest discovery, child/host process hooks, RPC bridge, runtime helpers,
SHM forensics, and the --use-process-isolation CLI flag.

pyisolate added to requirements.txt. .pyisolate_venvs/ added to .gitignore.
2026-04-07 08:02:37 -05:00