Commit Graph

9 Commits

Author SHA1 Message Date
Jedrzej Kosinski
5f409b6cd6 Call extension.on_load() in load_custom_node function, arttempt at using the public interface's node_replacement (not working currently, pushing to share) 2026-02-14 19:51:02 -08:00
Jedrzej Kosinski
07d1ee2ca9 Add a public API function for registering node replacements, refactor code accordingly 2026-02-14 19:28:02 -08:00
Jedrzej Kosinski
b1c69ed6f6 Improve NodeReplace docstring 2026-02-11 01:16:39 -08:00
Jedrzej Kosinski
9e758b5b0c Refactored _node_replace.py InputMap/OutputMap to use a TypedDict instead of objects, simplified the schema sent to the frontend, updated nodes_post_processing.py replacements to use new schema 2026-02-11 01:02:55 -08:00
Christian Byrne
a2d4c0f98b refactor: process isolation support for node replacement API (#12298)
* 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

* fix: remove whitespace and deprecation cruft

Amp-Thread-ID: https://ampcode.com/threads/T-019c2be8-0b34-747e-b1f7-20a1a1e6c9df
2026-02-05 12:21:03 -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