mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-09-13 12:34:19 +08:00
17ca834fd5
Establishes the open-source 'key Python API' for secure custom nodes: - comfy_api/latest/_sdk.py: opaque typed refs (ImageRef/ModelRef/AssetRef...), a brokered ctx surface (assets/progress/scratch/events/storage + stubs), and a Providers registry (ExecutionBackend/CtxProvider/RefResolver) with in-process DEFAULTS so OSS behaves exactly as today (a ref wraps the real object; ctx is a passthrough; zero-copy, zero-overhead). - load_overlay(): env-var (COMFY_OVERLAY_MODULE) path loader that lets a separable, proprietary cloud overlay register isolated implementations at the seam. Unset => pure OSS. Wired guarded into main.startup. - comfy_api/v0_0_3: new API version exposing sdk; registered in version_list. Nothing isolation-specific lives in OSS: this is the seam, not the engine.
14 lines
403 B
Python
14 lines
403 B
Python
from comfy_api.latest import ComfyAPI_latest
|
|
from comfy_api.v0_0_3 import ComfyAPIAdapter_v0_0_3
|
|
from comfy_api.v0_0_2 import ComfyAPIAdapter_v0_0_2
|
|
from comfy_api.v0_0_1 import ComfyAPIAdapter_v0_0_1
|
|
from comfy_api.internal import ComfyAPIBase
|
|
|
|
supported_versions: list[type[ComfyAPIBase]] = [
|
|
ComfyAPI_latest,
|
|
ComfyAPIAdapter_v0_0_3,
|
|
ComfyAPIAdapter_v0_0_2,
|
|
ComfyAPIAdapter_v0_0_1,
|
|
]
|
|
|