Commit Graph
3 Commits
Author SHA1 Message Date
benjcooley ccf67659b1 feat(sdk): custom-node SDK seam — refs, ctx, provider registry, overlay loader
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.
2026-08-31 12:49:36 -07:00
Alexander Piskun 43e0d4e3cc comfy_api: remove usage of "Type","List" and "Dict" types (#11238) 2025-12-15 16:01:10 -08:00
guill 0a3d062e06 ComfyAPI Core v0.0.2 (#8962)
* ComfyAPI Core v0.0.2

* Respond to PR feedback

* Fix Python 3.9 errors

* Fix missing backward compatibility proxy

* Reorganize types a bit

The input types, input impls, and utility types are now all available in
the versioned API. See the change in `comfy_extras/nodes_video.py` for
an example of their usage.

* Remove the need for `--generate-api-stubs`

* Fix generated stubs differing by Python version

* Fix ruff formatting issues
2025-07-29 22:17:22 -04:00