Commit Graph

5 Commits

Author SHA1 Message Date
bymyself
3f18652588 refactor: process isolation support for node replacement API
- Move REGISTERED_NODE_REPLACEMENTS global to NodeReplaceManager instance state
- Add NodeReplacement class to ComfyAPI_latest with async register() method
- Deprecate module-level register_node_replacement() function
- Call register_replacements() from comfy_entrypoint()

This enables pyisolate compatibility where extensions run in separate
processes and communicate via RPC. The async API allows registration
calls to cross process boundaries.

Refs: TDD-002
Amp-Thread-ID: https://ampcode.com/threads/T-019c2b33-ac55-76a9-9c6b-0246a8625f21
2026-02-04 19:44:02 -08:00
Jedrzej Kosinski
04f89c75d1 Rename UseValue to SetValue 2026-02-04 19:41:23 -08:00
Jedrzej Kosinski
588bc6b257 Added old_widget_ids param to NodeReplace 2026-02-04 19:41:23 -08:00
Jedrzej Kosinski
c9dbe13c0c Add public register_node_replacement function to node_replace, add NodeReplaceManager + GET /api/node_replacements 2026-02-04 19:41:23 -08:00
Jedrzej Kosinski
7024486e37 Create helper classes for node replace registration 2026-02-04 19:41:23 -08:00