vibrante-node 2.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (487) hide show
  1. src/core/__init__.py +0 -0
  2. src/core/engine.py +484 -0
  3. src/core/events.py +32 -0
  4. src/core/graph.py +74 -0
  5. src/core/integrity.py +925 -0
  6. src/core/loader.py +56 -0
  7. src/core/manifest.py +910 -0
  8. src/core/models.py +59 -0
  9. src/core/persistence.py +27 -0
  10. src/core/python_to_workflow.py +182 -0
  11. src/core/registry.py +314 -0
  12. src/core/workflow_to_python.py +801 -0
  13. src/main.py +188 -0
  14. src/models/__init__.py +0 -0
  15. src/nodes/__init__.py +0 -0
  16. src/nodes/ai/__init__.py +1 -0
  17. src/nodes/base.py +174 -0
  18. src/nodes/builtins/__init__.py +0 -0
  19. src/nodes/builtins/group_node.py +210 -0
  20. src/nodes/builtins/nodes.py +452 -0
  21. src/nodes/print.py +19 -0
  22. src/nodes/test.py +19 -0
  23. src/ui/__init__.py +0 -0
  24. src/ui/canvas/__init__.py +0 -0
  25. src/ui/canvas/backdrop.py +223 -0
  26. src/ui/canvas/canvas_search_bar.py +222 -0
  27. src/ui/canvas/edge.py +98 -0
  28. src/ui/canvas/mini_map.py +138 -0
  29. src/ui/canvas/node_search_popup.py +270 -0
  30. src/ui/canvas/scene.py +1149 -0
  31. src/ui/canvas/sticky_note.py +123 -0
  32. src/ui/canvas/view.py +285 -0
  33. src/ui/code_editor.py +435 -0
  34. src/ui/export_python_dialog.py +490 -0
  35. src/ui/gemini_api_dialog.py +41 -0
  36. src/ui/gemini_chat.py +370 -0
  37. src/ui/import_python_dialog.py +122 -0
  38. src/ui/library_panel.py +246 -0
  39. src/ui/log_panel.py +315 -0
  40. src/ui/node_builder.py +841 -0
  41. src/ui/node_widget.py +1009 -0
  42. src/ui/port_widget.py +116 -0
  43. src/ui/script_editor.py +53 -0
  44. src/ui/scripting_console.py +270 -0
  45. src/ui/settings_window.py +575 -0
  46. src/ui/window.py +2012 -0
  47. src/utils/color_manager.py +50 -0
  48. src/utils/config_manager.py +71 -0
  49. src/utils/env_manager.py +232 -0
  50. src/utils/highlighter.py +110 -0
  51. src/utils/paths.py +30 -0
  52. src/utils/prism_config.py +300 -0
  53. src/utils/prism_core.py +80 -0
  54. src/utils/qt_compat.py +159 -0
  55. src/utils/runtime.py +80 -0
  56. vibrante_node/CLA.md +96 -0
  57. vibrante_node/COMMERCIAL_LICENSE.md +170 -0
  58. vibrante_node/LICENSE +178 -0
  59. vibrante_node/LICENSES/AGPL-3.0.txt +661 -0
  60. vibrante_node/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
  61. vibrante_node/LICENSES/CC-BY-4.0.txt +396 -0
  62. vibrante_node/LICENSES/GPL-3.0.txt +674 -0
  63. vibrante_node/LICENSES/LGPL-3.0.txt +165 -0
  64. vibrante_node/LICENSES/README.md +65 -0
  65. vibrante_node/THIRD_PARTY_NOTICES.txt +3277 -0
  66. vibrante_node/__init__.py +2 -0
  67. vibrante_node/app.py +60 -0
  68. vibrante_node/docs/AUTOMATION_API.html +785 -0
  69. vibrante_node/docs/DEVELOPER.html +891 -0
  70. vibrante_node/docs/DOCUMENTATION.html +2761 -0
  71. vibrante_node/docs/LICENSE.txt +35 -0
  72. vibrante_node/docs/NODE_BUILDER_API.html +1155 -0
  73. vibrante_node/docs/RELEASE_v1.0.5.html +140 -0
  74. vibrante_node/docs/RELEASE_v1.1.0.html +163 -0
  75. vibrante_node/docs/RELEASE_v1.1.5.html +286 -0
  76. vibrante_node/docs/RELEASE_v1.2.0.html +175 -0
  77. vibrante_node/docs/RELEASE_v1.3.0.html +168 -0
  78. vibrante_node/docs/RELEASE_v1.4.0.html +160 -0
  79. vibrante_node/docs/RELEASE_v1.5.0.html +432 -0
  80. vibrante_node/docs/RELEASE_v1.6.0.html +293 -0
  81. vibrante_node/docs/RELEASE_v1.6.1.html +171 -0
  82. vibrante_node/docs/RELEASE_v1.7.0.html +270 -0
  83. vibrante_node/docs/RELEASE_v1.8.0.html +201 -0
  84. vibrante_node/docs/RELEASE_v1.8.1.html +124 -0
  85. vibrante_node/docs/RELEASE_v1.8.2.html +119 -0
  86. vibrante_node/docs/RELEASE_v1.8.3.html +125 -0
  87. vibrante_node/docs/RELEASE_v1.8.4.html +210 -0
  88. vibrante_node/docs/RELEASE_v1.8.5.html +223 -0
  89. vibrante_node/docs/RELEASE_v2.0.0.html +284 -0
  90. vibrante_node/docs/RELEASE_v2.1.0.html +259 -0
  91. vibrante_node/docs/RELEASE_v2.1.1.html +156 -0
  92. vibrante_node/docs/RELEASE_v2.2.0.html +369 -0
  93. vibrante_node/docs/RELEASE_v2.2.1.html +168 -0
  94. vibrante_node/docs/RELEASE_v2.3.0.html +185 -0
  95. vibrante_node/docs/RELEASE_v2.4.0.html +446 -0
  96. vibrante_node/docs/RELEASE_v2.5.0.html +478 -0
  97. vibrante_node/docs/RELEASE_v2.5.1.html +190 -0
  98. vibrante_node/docs/USER_GUIDE.html +1407 -0
  99. vibrante_node/docs/index.html +103 -0
  100. vibrante_node/docs/portal/01_introduction.html +1177 -0
  101. vibrante_node/docs/portal/02_getting_started.html +1267 -0
  102. vibrante_node/docs/portal/03_user_guide.html +1736 -0
  103. vibrante_node/docs/portal/04_workflow_tutorials.html +1473 -0
  104. vibrante_node/docs/portal/05_node_development.html +1562 -0
  105. vibrante_node/docs/portal/06_backend_architecture.html +1373 -0
  106. vibrante_node/docs/portal/07_frontend_architecture.html +1588 -0
  107. vibrante_node/docs/portal/08_api_reference.html +2336 -0
  108. vibrante_node/docs/portal/09_advanced_topics.html +1664 -0
  109. vibrante_node/docs/portal/10_contribution_guide.html +1263 -0
  110. vibrante_node/docs/portal/11_troubleshooting.html +1108 -0
  111. vibrante_node/docs/portal/12_examples_library.html +1498 -0
  112. vibrante_node/docs/portal/13_general_purpose_automation.html +1472 -0
  113. vibrante_node/docs/portal/14_custom_nodes_api.html +1960 -0
  114. vibrante_node/docs/portal/index.html +605 -0
  115. vibrante_node/docs/portal/integrations_blender.html +605 -0
  116. vibrante_node/docs/portal/integrations_deadline.html +536 -0
  117. vibrante_node/docs/portal/integrations_houdini.html +787 -0
  118. vibrante_node/docs/portal/integrations_maya.html +675 -0
  119. vibrante_node/docs/portal/integrations_prism.html +628 -0
  120. vibrante_node/docs/portal/search.json +1 -0
  121. vibrante_node/docs/validation.json +333 -0
  122. vibrante_node/examples/arnold_lighting/orchestration_notes.md +45 -0
  123. vibrante_node/examples/arnold_lighting/prompt.md +47 -0
  124. vibrante_node/examples/automation/01_linear_chain.py +10 -0
  125. vibrante_node/examples/automation/02_batch_update_prefix.py +8 -0
  126. vibrante_node/examples/automation/03_reset_scene.py +5 -0
  127. vibrante_node/examples/automation/04_batch_execution.py +9 -0
  128. vibrante_node/examples/automation/05_git_backup.py +6 -0
  129. vibrante_node/examples/automation/06_reset_math_nodes.py +12 -0
  130. vibrante_node/examples/automation/07_stress_test_grid.py +8 -0
  131. vibrante_node/examples/automation/08_scene_summary.py +8 -0
  132. vibrante_node/examples/automation/09_toggle_bools.py +8 -0
  133. vibrante_node/examples/automation/10_session_report.py +7 -0
  134. vibrante_node/examples/automation/11_simple_math_node.py +7 -0
  135. vibrante_node/examples/cinematic_camera/orchestration_notes.md +56 -0
  136. vibrante_node/examples/cinematic_camera/prompt.md +50 -0
  137. vibrante_node/examples/cinematic_explosion/orchestration_notes.md +76 -0
  138. vibrante_node/examples/cinematic_explosion/prompt.md +47 -0
  139. vibrante_node/examples/cinematic_explosion/review.md +75 -0
  140. vibrante_node/examples/dust_wave/orchestration_notes.md +43 -0
  141. vibrante_node/examples/dust_wave/prompt.md +40 -0
  142. vibrante_node/examples/nodes/async_delay.py +21 -0
  143. vibrante_node/examples/nodes/connection_logger.py +25 -0
  144. vibrante_node/examples/nodes/data_filter.py +19 -0
  145. vibrante_node/examples/nodes/dict_merge.py +20 -0
  146. vibrante_node/examples/nodes/dict_summary.py +21 -0
  147. vibrante_node/examples/nodes/dropdown_selector.py +29 -0
  148. vibrante_node/examples/nodes/env_reader.py +18 -0
  149. vibrante_node/examples/nodes/list_item_picker.py +85 -0
  150. vibrante_node/examples/nodes/list_stats.py +27 -0
  151. vibrante_node/examples/nodes/logic_threshold.py +23 -0
  152. vibrante_node/examples/nodes/math_square.py +30 -0
  153. vibrante_node/examples/nodes/random_list.py +18 -0
  154. vibrante_node/examples/nodes/reactive_config.py +24 -0
  155. vibrante_node/examples/nodes/safety_reset.py +31 -0
  156. vibrante_node/examples/nodes/string_reverse.py +16 -0
  157. vibrante_node/icons/210429_DeadlineFreeOn10RenderMachines.jpg +0 -0
  158. vibrante_node/icons/README.md +39 -0
  159. vibrante_node/icons/blender_icon.png +0 -0
  160. vibrante_node/icons/braces.png +0 -0
  161. vibrante_node/icons/braces.svg +1 -0
  162. vibrante_node/icons/builder.png +0 -0
  163. vibrante_node/icons/check.png +0 -0
  164. vibrante_node/icons/check.svg +1 -0
  165. vibrante_node/icons/chevron-right.svg +3 -0
  166. vibrante_node/icons/code.png +0 -0
  167. vibrante_node/icons/code.svg +4 -0
  168. vibrante_node/icons/computer-window.png +0 -0
  169. vibrante_node/icons/data.png +0 -0
  170. vibrante_node/icons/data.svg +5 -0
  171. vibrante_node/icons/database-search.png +0 -0
  172. vibrante_node/icons/database-search.svg +5 -0
  173. vibrante_node/icons/database-zap.png +0 -0
  174. vibrante_node/icons/database-zap.svg +5 -0
  175. vibrante_node/icons/database.png +0 -0
  176. vibrante_node/icons/database.svg +5 -0
  177. vibrante_node/icons/dice.png +0 -0
  178. vibrante_node/icons/dice.svg +1 -0
  179. vibrante_node/icons/divide.svg +5 -0
  180. vibrante_node/icons/file-input.svg +6 -0
  181. vibrante_node/icons/file-plus.png +0 -0
  182. vibrante_node/icons/file-plus.svg +6 -0
  183. vibrante_node/icons/file-text.png +0 -0
  184. vibrante_node/icons/file-text.svg +7 -0
  185. vibrante_node/icons/folder-plus.png +0 -0
  186. vibrante_node/icons/folder-plus.svg +5 -0
  187. vibrante_node/icons/folder.png +0 -0
  188. vibrante_node/icons/folder.svg +3 -0
  189. vibrante_node/icons/gear.png +0 -0
  190. vibrante_node/icons/gear.svg +1 -0
  191. vibrante_node/icons/git-branch.svg +6 -0
  192. vibrante_node/icons/hash.png +0 -0
  193. vibrante_node/icons/hash.svg +1 -0
  194. vibrante_node/icons/houdini.svg +4 -0
  195. vibrante_node/icons/houdini_icon.png +0 -0
  196. vibrante_node/icons/http.png +0 -0
  197. vibrante_node/icons/list-check.png +0 -0
  198. vibrante_node/icons/list-check.svg +7 -0
  199. vibrante_node/icons/list-plus.svg +10 -0
  200. vibrante_node/icons/list.png +0 -0
  201. vibrante_node/icons/list.svg +8 -0
  202. vibrante_node/icons/logic.png +0 -0
  203. vibrante_node/icons/logic.svg +7 -0
  204. vibrante_node/icons/math.png +0 -0
  205. vibrante_node/icons/math.svg +4 -0
  206. vibrante_node/icons/maya_icon.jpg +0 -0
  207. vibrante_node/icons/message.png +0 -0
  208. vibrante_node/icons/message.svg +3 -0
  209. vibrante_node/icons/minus.svg +3 -0
  210. vibrante_node/icons/multiply.png +0 -0
  211. vibrante_node/icons/multiply.svg +1 -0
  212. vibrante_node/icons/online-library.png +0 -0
  213. vibrante_node/icons/percentage.svg +5 -0
  214. vibrante_node/icons/plus.png +0 -0
  215. vibrante_node/icons/plus.svg +1 -0
  216. vibrante_node/icons/print.png +0 -0
  217. vibrante_node/icons/print.svg +5 -0
  218. vibrante_node/icons/prism_icon.png +0 -0
  219. vibrante_node/icons/refresh.svg +6 -0
  220. vibrante_node/icons/repeat.svg +6 -0
  221. vibrante_node/icons/scales.png +0 -0
  222. vibrante_node/icons/scales.svg +1 -0
  223. vibrante_node/icons/shuffle.svg +7 -0
  224. vibrante_node/icons/string.png +0 -0
  225. vibrante_node/icons/string.svg +5 -0
  226. vibrante_node/icons/terminal.png +0 -0
  227. vibrante_node/icons/terminal.svg +1 -0
  228. vibrante_node/icons/timer.png +0 -0
  229. vibrante_node/icons/timer.svg +4 -0
  230. vibrante_node/icons/toggle-switch.svg +5 -0
  231. vibrante_node/icons/uppercase.png +0 -0
  232. vibrante_node/icons/uppercase.svg +1 -0
  233. vibrante_node/icons/variable-get.svg +4 -0
  234. vibrante_node/icons/variable-set.svg +6 -0
  235. vibrante_node/icons/variable.png +0 -0
  236. vibrante_node/icons/variable.svg +5 -0
  237. vibrante_node/icons/vibrante-node-icon.png +0 -0
  238. vibrante_node/icons/vibrante-node-logo.png +0 -0
  239. vibrante_node/icons/vibrante-node-main_logo.png +0 -0
  240. vibrante_node/icons/vibrante-node-resize_main_logo.png +0 -0
  241. vibrante_node/logo.png +0 -0
  242. vibrante_node/mcp_cli.py +36 -0
  243. vibrante_node/node_examples/Split_String.json +35 -0
  244. vibrante_node/node_examples/async_delay.json +32 -0
  245. vibrante_node/node_examples/delay_timer.json +29 -0
  246. vibrante_node/node_examples/file_reader.json +29 -0
  247. vibrante_node/node_examples/fruit_selector.json +37 -0
  248. vibrante_node/node_examples/json_parser.json +29 -0
  249. vibrante_node/node_examples/line_counter.json +29 -0
  250. vibrante_node/node_examples/list_append.json +32 -0
  251. vibrante_node/node_examples/list_images_recursive.json +55 -0
  252. vibrante_node/node_examples/logic_and.json +34 -0
  253. vibrante_node/node_examples/logic_compare.json +36 -0
  254. vibrante_node/node_examples/math_abs.json +29 -0
  255. vibrante_node/node_examples/math_add.json +32 -0
  256. vibrante_node/node_examples/reactive_config.json +28 -0
  257. vibrante_node/node_examples/string_uppercase.json +29 -0
  258. vibrante_node/nodes/Dropdown_Selector.json +27 -0
  259. vibrante_node/nodes/add_integers.json +34 -0
  260. vibrante_node/nodes/blender_action_bake_animation.json +23 -0
  261. vibrante_node/nodes/blender_action_custom.json +21 -0
  262. vibrante_node/nodes/blender_action_export_alembic.json +22 -0
  263. vibrante_node/nodes/blender_action_export_fbx.json +23 -0
  264. vibrante_node/nodes/blender_action_export_gltf.json +21 -0
  265. vibrante_node/nodes/blender_action_export_obj.json +19 -0
  266. vibrante_node/nodes/blender_action_export_usd.json +23 -0
  267. vibrante_node/nodes/blender_action_import_alembic.json +18 -0
  268. vibrante_node/nodes/blender_action_import_fbx.json +18 -0
  269. vibrante_node/nodes/blender_action_import_gltf.json +18 -0
  270. vibrante_node/nodes/blender_action_import_obj.json +18 -0
  271. vibrante_node/nodes/blender_action_new_blend.json +18 -0
  272. vibrante_node/nodes/blender_action_open_blend.json +18 -0
  273. vibrante_node/nodes/blender_action_render.json +23 -0
  274. vibrante_node/nodes/blender_action_save_blend.json +18 -0
  275. vibrante_node/nodes/blender_action_scene_info.json +17 -0
  276. vibrante_node/nodes/blender_action_set_frame_range.json +20 -0
  277. vibrante_node/nodes/blender_action_set_render_settings.json +27 -0
  278. vibrante_node/nodes/blender_get_action_result.json +22 -0
  279. vibrante_node/nodes/blender_headless.json +86 -0
  280. vibrante_node/nodes/compare.json +48 -0
  281. vibrante_node/nodes/console_print.json +29 -0
  282. vibrante_node/nodes/create_dictionary.json +18 -0
  283. vibrante_node/nodes/create_folder.json +17 -0
  284. vibrante_node/nodes/create_list.json +18 -0
  285. vibrante_node/nodes/deadline_blender_submit.json +38 -0
  286. vibrante_node/nodes/deadline_houdini_submit.json +38 -0
  287. vibrante_node/nodes/deadline_job_status.json +28 -0
  288. vibrante_node/nodes/deadline_maya_submit.json +40 -0
  289. vibrante_node/nodes/delay_timer.json +26 -0
  290. vibrante_node/nodes/example_random_float.json +35 -0
  291. vibrante_node/nodes/file_append.json +18 -0
  292. vibrante_node/nodes/file_write.json +18 -0
  293. vibrante_node/nodes/for_loop.json +46 -0
  294. vibrante_node/nodes/get_dict_value.json +19 -0
  295. vibrante_node/nodes/get_list_item.json +19 -0
  296. vibrante_node/nodes/houdini_action_bake_animation.json +20 -0
  297. vibrante_node/nodes/houdini_action_custom.json +20 -0
  298. vibrante_node/nodes/houdini_action_export_alembic.json +20 -0
  299. vibrante_node/nodes/houdini_action_export_camera_alembic.json +20 -0
  300. vibrante_node/nodes/houdini_action_export_fbx.json +18 -0
  301. vibrante_node/nodes/houdini_action_import_alembic.json +18 -0
  302. vibrante_node/nodes/houdini_action_import_camera.json +17 -0
  303. vibrante_node/nodes/houdini_action_import_fbx.json +18 -0
  304. vibrante_node/nodes/houdini_action_import_obj.json +18 -0
  305. vibrante_node/nodes/houdini_action_new_hip.json +16 -0
  306. vibrante_node/nodes/houdini_action_open_hip.json +17 -0
  307. vibrante_node/nodes/houdini_action_save_hip.json +17 -0
  308. vibrante_node/nodes/houdini_action_scene_info.json +16 -0
  309. vibrante_node/nodes/houdini_action_set_frame_range.json +18 -0
  310. vibrante_node/nodes/houdini_get_action_result.json +21 -0
  311. vibrante_node/nodes/houdini_headless.json +85 -0
  312. vibrante_node/nodes/houdini_scene_snapshot.json +41 -0
  313. vibrante_node/nodes/http_request.json +76 -0
  314. vibrante_node/nodes/if_condition.json +45 -0
  315. vibrante_node/nodes/list_directory.json +17 -0
  316. vibrante_node/nodes/list_images_recursive.json +41 -0
  317. vibrante_node/nodes/list_item_picker.json +41 -0
  318. vibrante_node/nodes/list_length.json +17 -0
  319. vibrante_node/nodes/logical_gate.json +45 -0
  320. vibrante_node/nodes/loop_body.json +62 -0
  321. vibrante_node/nodes/math_add.json +17 -0
  322. vibrante_node/nodes/math_divide.json +17 -0
  323. vibrante_node/nodes/math_modulo.json +17 -0
  324. vibrante_node/nodes/math_multiply.json +36 -0
  325. vibrante_node/nodes/math_subtract.json +17 -0
  326. vibrante_node/nodes/maya_action_assign_material.json +18 -0
  327. vibrante_node/nodes/maya_action_bake_animation.json +21 -0
  328. vibrante_node/nodes/maya_action_create_render_layer.json +19 -0
  329. vibrante_node/nodes/maya_action_custom.json +20 -0
  330. vibrante_node/nodes/maya_action_export_alembic.json +22 -0
  331. vibrante_node/nodes/maya_action_export_camera_alembic.json +20 -0
  332. vibrante_node/nodes/maya_action_export_fbx.json +18 -0
  333. vibrante_node/nodes/maya_action_import_alembic.json +17 -0
  334. vibrante_node/nodes/maya_action_import_camera.json +17 -0
  335. vibrante_node/nodes/maya_action_import_fbx.json +17 -0
  336. vibrante_node/nodes/maya_action_import_obj.json +17 -0
  337. vibrante_node/nodes/maya_action_list_references.json +16 -0
  338. vibrante_node/nodes/maya_action_new_scene.json +16 -0
  339. vibrante_node/nodes/maya_action_open_scene.json +18 -0
  340. vibrante_node/nodes/maya_action_playblast.json +22 -0
  341. vibrante_node/nodes/maya_action_reference_alembic.json +18 -0
  342. vibrante_node/nodes/maya_action_reference_scene.json +18 -0
  343. vibrante_node/nodes/maya_action_save_scene.json +18 -0
  344. vibrante_node/nodes/maya_action_scene_info.json +16 -0
  345. vibrante_node/nodes/maya_action_set_aovs.json +18 -0
  346. vibrante_node/nodes/maya_action_set_frame_range.json +18 -0
  347. vibrante_node/nodes/maya_action_set_render_settings.json +23 -0
  348. vibrante_node/nodes/maya_get_action_result.json +21 -0
  349. vibrante_node/nodes/maya_headless.json +27 -0
  350. vibrante_node/nodes/mcp_call_tool.json +19 -0
  351. vibrante_node/nodes/mcp_list_tools.json +18 -0
  352. vibrante_node/nodes/mcp_server_init.json +23 -0
  353. vibrante_node/nodes/message_node.json +32 -0
  354. vibrante_node/nodes/prism_add_integration.json +49 -0
  355. vibrante_node/nodes/prism_build_entity.json +45 -0
  356. vibrante_node/nodes/prism_change_project.json +37 -0
  357. vibrante_node/nodes/prism_core_info.json +37 -0
  358. vibrante_node/nodes/prism_core_init.json +46 -0
  359. vibrante_node/nodes/prism_create_category.json +44 -0
  360. vibrante_node/nodes/prism_create_entity.json +60 -0
  361. vibrante_node/nodes/prism_create_playblast.json +56 -0
  362. vibrante_node/nodes/prism_create_product_version.json +64 -0
  363. vibrante_node/nodes/prism_create_project.json +50 -0
  364. vibrante_node/nodes/prism_create_scene_from_preset.json +59 -0
  365. vibrante_node/nodes/prism_eval.json +42 -0
  366. vibrante_node/nodes/prism_get_aovs.json +29 -0
  367. vibrante_node/nodes/prism_get_asset_by_name.json +69 -0
  368. vibrante_node/nodes/prism_get_asset_type_by_name.json +62 -0
  369. vibrante_node/nodes/prism_get_asset_types_by_project.json +55 -0
  370. vibrante_node/nodes/prism_get_assets_by_project.json +41 -0
  371. vibrante_node/nodes/prism_get_assets_by_type.json +69 -0
  372. vibrante_node/nodes/prism_get_config.json +48 -0
  373. vibrante_node/nodes/prism_get_current_scene.json +37 -0
  374. vibrante_node/nodes/prism_get_departments.json +37 -0
  375. vibrante_node/nodes/prism_get_entity_info.json +69 -0
  376. vibrante_node/nodes/prism_get_entity_path.json +69 -0
  377. vibrante_node/nodes/prism_get_export_path.json +26 -0
  378. vibrante_node/nodes/prism_get_latest_product_path.json +34 -0
  379. vibrante_node/nodes/prism_get_media.json +29 -0
  380. vibrante_node/nodes/prism_get_media_versions.json +33 -0
  381. vibrante_node/nodes/prism_get_plugin.json +35 -0
  382. vibrante_node/nodes/prism_get_preset_scenes.json +35 -0
  383. vibrante_node/nodes/prism_get_product_versions.json +33 -0
  384. vibrante_node/nodes/prism_get_products.json +29 -0
  385. vibrante_node/nodes/prism_get_project_by_name.json +55 -0
  386. vibrante_node/nodes/prism_get_project_config_path.json +26 -0
  387. vibrante_node/nodes/prism_get_scene_files.json +45 -0
  388. vibrante_node/nodes/prism_get_scene_path.json +23 -0
  389. vibrante_node/nodes/prism_get_sequence_by_project.json +48 -0
  390. vibrante_node/nodes/prism_get_sequences_by_project.json +41 -0
  391. vibrante_node/nodes/prism_get_shot_by_name.json +62 -0
  392. vibrante_node/nodes/prism_get_shot_by_sequence.json +55 -0
  393. vibrante_node/nodes/prism_get_shot_info.json +69 -0
  394. vibrante_node/nodes/prism_get_shots.json +29 -0
  395. vibrante_node/nodes/prism_get_shots_by_project_sequence.json +48 -0
  396. vibrante_node/nodes/prism_get_shots_by_sequence.json +48 -0
  397. vibrante_node/nodes/prism_get_tasks.json +39 -0
  398. vibrante_node/nodes/prism_import_product.json +37 -0
  399. vibrante_node/nodes/prism_list_plugins.json +25 -0
  400. vibrante_node/nodes/prism_list_projects.json +25 -0
  401. vibrante_node/nodes/prism_login_token.json +33 -0
  402. vibrante_node/nodes/prism_monkey_patch.json +46 -0
  403. vibrante_node/nodes/prism_open_scene.json +33 -0
  404. vibrante_node/nodes/prism_popup.json +40 -0
  405. vibrante_node/nodes/prism_register_callback.json +58 -0
  406. vibrante_node/nodes/prism_save_scene_version.json +90 -0
  407. vibrante_node/nodes/prism_send_cmd.json +54 -0
  408. vibrante_node/nodes/prism_set_config.json +55 -0
  409. vibrante_node/nodes/prism_studio_assign_project.json +43 -0
  410. vibrante_node/nodes/prism_trigger_callback.json +42 -0
  411. vibrante_node/nodes/prism_usd_department_layer_path.json +35 -0
  412. vibrante_node/nodes/prism_usd_entity_path.json +29 -0
  413. vibrante_node/nodes/prism_usd_sublayer_path.json +41 -0
  414. vibrante_node/nodes/prism_usd_update_department_layer.json +33 -0
  415. vibrante_node/nodes/prism_usd_update_sublayer.json +33 -0
  416. vibrante_node/nodes/python_script.json +17 -0
  417. vibrante_node/nodes/scene_intent_extractor.json +25 -0
  418. vibrante_node/nodes/set_dict_value.json +20 -0
  419. vibrante_node/nodes/string_concat.json +47 -0
  420. vibrante_node/nodes/string_length.json +16 -0
  421. vibrante_node/nodes/string_lowercase.json +16 -0
  422. vibrante_node/nodes/string_replace.json +18 -0
  423. vibrante_node/nodes/string_split.json +17 -0
  424. vibrante_node/nodes/string_uppercase.json +16 -0
  425. vibrante_node/nodes/variable_node.json +42 -0
  426. vibrante_node/nodes/while_loop.json +18 -0
  427. vibrante_node/splash.png +0 -0
  428. vibrante_node/vfx_workflows/01_prism_project_overview.json +492 -0
  429. vibrante_node/vfx_workflows/02_maya_asset_publish.json +776 -0
  430. vibrante_node/vfx_workflows/03_multi_shot_alembic_export.json +856 -0
  431. vibrante_node/vfx_workflows/04_deadline_render_pipeline.json +994 -0
  432. vibrante_node/vfx_workflows/05_houdini_fx_pipeline.json +1056 -0
  433. vibrante_node/vfx_workflows/06_blender_multi_format_export.json +1206 -0
  434. vibrante_node/website_examples/database_query.json +69 -0
  435. vibrante_node/website_examples/email_notification.json +104 -0
  436. vibrante_node/website_examples/file_batch_processor.json +62 -0
  437. vibrante_node/website_examples/folder_monitor.json +55 -0
  438. vibrante_node/website_examples/hou_sop_chain.json +69 -0
  439. vibrante_node/website_examples/http_request.json +90 -0
  440. vibrante_node/website_examples/image_resizer.json +90 -0
  441. vibrante_node/website_examples/llm_text_generation.json +90 -0
  442. vibrante_node/website_examples/prism_multi_asset_publisher.json +76 -0
  443. vibrante_node/website_examples/regex_replace.json +69 -0
  444. vibrante_node/workflows/If_condition.json +134 -0
  445. vibrante_node/workflows/Maya_WorkFlow.json +464 -0
  446. vibrante_node/workflows/asset_intelligence_pipeline.json +259 -0
  447. vibrante_node/workflows/concat_string_with_loop.json +262 -0
  448. vibrante_node/workflows/delay_time.json +74 -0
  449. vibrante_node/workflows/example_workflow_maya_prism_demo.json +503 -0
  450. vibrante_node/workflows/example_workflow_prism_demo.json +276 -0
  451. vibrante_node/workflows/example_workflow_prism_demo_02.json +221 -0
  452. vibrante_node/workflows/extract_FPS_from_maya_scene.json +265 -0
  453. vibrante_node/workflows/for_each.json +260 -0
  454. vibrante_node/workflows/get_list_item.json +151 -0
  455. vibrante_node/workflows/hou_mcp_scene_context_demo.json +67 -0
  456. vibrante_node/workflows/list_recursive_images.json +103 -0
  457. vibrante_node/workflows/logic_if_example.json +262 -0
  458. vibrante_node/workflows/logic_if_with_variables.json +210 -0
  459. vibrante_node/workflows/loop_break_example.json +197 -0
  460. vibrante_node/workflows/loop_operation_example.json +382 -0
  461. vibrante_node/workflows/mcp_list_tools_demo.json +90 -0
  462. vibrante_node/workflows/prism_assets_workflow.json +131 -0
  463. vibrante_node/workflows/python_script_node.json +89 -0
  464. vibrante_node/workflows/run_in_sequence.json +158 -0
  465. vibrante_node/workflows/scene_intent_pipeline.json +134 -0
  466. vibrante_node/workflows/scene_planning_pipeline.json +258 -0
  467. vibrante_node/workflows/semantic_scene_intent.json +96 -0
  468. vibrante_node/workflows/setup_maya_scene.json +352 -0
  469. vibrante_node/workflows/tutorial_maya_headless_prism_pipeline.json +593 -0
  470. vibrante_node/workflows/two_way_switch.json +341 -0
  471. vibrante_node/workflows/while_loop_class_example.json +192 -0
  472. vibrante_node/workflows/while_loop_example.json +184 -0
  473. vibrante_node/workflows/while_loop_retry_example.json +276 -0
  474. vibrante_node-2.5.1.dist-info/METADATA +715 -0
  475. vibrante_node-2.5.1.dist-info/RECORD +487 -0
  476. vibrante_node-2.5.1.dist-info/WHEEL +5 -0
  477. vibrante_node-2.5.1.dist-info/entry_points.txt +3 -0
  478. vibrante_node-2.5.1.dist-info/licenses/CLA.md +96 -0
  479. vibrante_node-2.5.1.dist-info/licenses/COMMERCIAL_LICENSE.md +170 -0
  480. vibrante_node-2.5.1.dist-info/licenses/LICENSE +178 -0
  481. vibrante_node-2.5.1.dist-info/licenses/LICENSES/AGPL-3.0.txt +661 -0
  482. vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
  483. vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0.txt +396 -0
  484. vibrante_node-2.5.1.dist-info/licenses/LICENSES/GPL-3.0.txt +674 -0
  485. vibrante_node-2.5.1.dist-info/licenses/LICENSES/LGPL-3.0.txt +165 -0
  486. vibrante_node-2.5.1.dist-info/licenses/LICENSES/README.md +65 -0
  487. vibrante_node-2.5.1.dist-info/top_level.txt +2 -0
@@ -0,0 +1,1373 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <meta name="description" content="Vibrante-Node v2.5.1 — Backend Architecture">
7
+ <title>Backend Architecture — Vibrante-Node Docs</title>
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/styles/atom-one-dark.min.css">
9
+ <style>
10
+ /* ── Reset & Variables ─────────────────────────────────────────────────── */
11
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
12
+ :root {
13
+ --bg: #1e1e2e;
14
+ --surface: #181825;
15
+ --surface2: #11111b;
16
+ --border: #313244;
17
+ --text: #cdd6f4;
18
+ --subtext: #a6adc8;
19
+ --muted: #6c7086;
20
+ --lavender: #b4befe;
21
+ --blue: #89b4fa;
22
+ --teal: #94e2d5;
23
+ --green: #a6e3a1;
24
+ --yellow: #f9e2af;
25
+ --peach: #fab387;
26
+ --red: #f38ba8;
27
+ --pink: #f5c2e7;
28
+ --mauve: #cba6f7;
29
+ --sidebar-w: 260px;
30
+ --toc-w: 220px;
31
+ --header-h: 56px;
32
+ --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
33
+ --mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
34
+ }
35
+
36
+ /* ── Layout ─────────────────────────────────────────────────────────────── */
37
+ html { scroll-behavior: smooth; }
38
+ body {
39
+ font-family: var(--font);
40
+ background: var(--bg);
41
+ color: var(--text);
42
+ line-height: 1.7;
43
+ min-height: 100vh;
44
+ display: grid;
45
+ grid-template-rows: var(--header-h) 1fr;
46
+ grid-template-columns: var(--sidebar-w) 1fr var(--toc-w);
47
+ grid-template-areas:
48
+ "header header header"
49
+ "sidebar content toc";
50
+ }
51
+
52
+ /* ── Header ─────────────────────────────────────────────────────────────── */
53
+ .header {
54
+ grid-area: header;
55
+ position: sticky; top: 0; z-index: 200;
56
+ background: var(--surface2);
57
+ border-bottom: 1px solid var(--border);
58
+ display: flex; align-items: center; gap: 16px;
59
+ padding: 0 24px;
60
+ }
61
+ .header-logo {
62
+ font-weight: 700; font-size: 1.05em;
63
+ color: var(--mauve);
64
+ text-decoration: none;
65
+ white-space: nowrap;
66
+ }
67
+ .header-version {
68
+ font-size: .78em;
69
+ background: var(--border);
70
+ color: var(--subtext);
71
+ padding: 2px 8px; border-radius: 12px;
72
+ }
73
+ .header-spacer { flex: 1; }
74
+ .search-wrap { position: relative; }
75
+ #search-input {
76
+ background: var(--surface);
77
+ border: 1px solid var(--border);
78
+ border-radius: 8px;
79
+ color: var(--text);
80
+ font-family: var(--font);
81
+ font-size: .9em;
82
+ padding: 6px 14px 6px 36px;
83
+ width: 260px;
84
+ outline: none;
85
+ transition: border-color .15s;
86
+ }
87
+ #search-input:focus { border-color: var(--mauve); }
88
+ .search-icon {
89
+ position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
90
+ color: var(--muted); pointer-events: none; font-size: .9em;
91
+ }
92
+ #search-results {
93
+ position: absolute; top: calc(100% + 8px); right: 0;
94
+ width: 380px; max-height: 420px; overflow-y: auto;
95
+ background: var(--surface);
96
+ border: 1px solid var(--border);
97
+ border-radius: 10px;
98
+ box-shadow: 0 8px 32px rgba(0,0,0,.5);
99
+ display: none; z-index: 300;
100
+ }
101
+ #search-results.visible { display: block; }
102
+ .search-result-item {
103
+ padding: 10px 16px;
104
+ border-bottom: 1px solid var(--border);
105
+ cursor: pointer;
106
+ transition: background .1s;
107
+ }
108
+ .search-result-item:last-child { border-bottom: none; }
109
+ .search-result-item:hover { background: var(--bg); }
110
+ .search-result-title { color: var(--blue); font-weight: 600; font-size: .9em; }
111
+ .search-result-excerpt { color: var(--subtext); font-size: .82em; margin-top: 2px; line-height: 1.4; }
112
+ .search-no-results { padding: 16px; color: var(--muted); text-align: center; font-size: .9em; }
113
+
114
+ /* ── Sidebar ─────────────────────────────────────────────────────────────── */
115
+ .sidebar {
116
+ grid-area: sidebar;
117
+ position: sticky; top: var(--header-h);
118
+ height: calc(100vh - var(--header-h));
119
+ overflow-y: auto;
120
+ background: var(--surface);
121
+ border-right: 1px solid var(--border);
122
+ padding: 20px 0;
123
+ scrollbar-width: thin;
124
+ scrollbar-color: var(--border) transparent;
125
+ }
126
+ .sidebar::-webkit-scrollbar { width: 4px; }
127
+ .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
128
+
129
+ .sidebar-group { margin-bottom: 4px; }
130
+ .sidebar-group-title {
131
+ font-size: .7em;
132
+ text-transform: uppercase;
133
+ letter-spacing: .1em;
134
+ color: var(--muted);
135
+ padding: 10px 20px 4px;
136
+ font-weight: 600;
137
+ }
138
+ .sidebar-link {
139
+ display: flex; align-items: center; gap: 8px;
140
+ padding: 6px 20px;
141
+ color: var(--subtext);
142
+ text-decoration: none;
143
+ font-size: .88em;
144
+ border-left: 3px solid transparent;
145
+ transition: all .12s;
146
+ line-height: 1.3;
147
+ }
148
+ .sidebar-link:hover { color: var(--text); background: var(--bg); }
149
+ .sidebar-link.active {
150
+ color: var(--mauve);
151
+ border-left-color: var(--mauve);
152
+ background: rgba(180,190,254,.06);
153
+ font-weight: 600;
154
+ }
155
+ .sidebar-num {
156
+ font-size: .7em;
157
+ color: var(--muted);
158
+ background: var(--border);
159
+ border-radius: 4px;
160
+ padding: 1px 5px;
161
+ flex-shrink: 0;
162
+ }
163
+ .sidebar-divider {
164
+ border: none;
165
+ border-top: 1px solid var(--border);
166
+ margin: 12px 16px;
167
+ }
168
+
169
+ /* ── Content ─────────────────────────────────────────────────────────────── */
170
+ .content {
171
+ grid-area: content;
172
+ min-width: 0;
173
+ padding: 40px 48px 80px;
174
+ max-width: 860px;
175
+ }
176
+ .content-inner { max-width: 820px; }
177
+
178
+ /* Breadcrumb */
179
+ .breadcrumb {
180
+ font-size: .8em;
181
+ color: var(--muted);
182
+ margin-bottom: 28px;
183
+ display: flex; align-items: center; gap: 6px;
184
+ }
185
+ .breadcrumb a { color: var(--blue); text-decoration: none; }
186
+ .breadcrumb a:hover { text-decoration: underline; }
187
+ .breadcrumb-sep { color: var(--border); }
188
+
189
+ /* Typography */
190
+ h1 { font-size: 2em; color: var(--mauve); border-bottom: 2px solid var(--border); padding-bottom: 12px; margin: 20px 0 20px; }
191
+ h2 { font-size: 1.45em; color: var(--blue); margin: 40px 0 14px; padding-top: 8px; }
192
+ h3 { font-size: 1.15em; color: var(--teal); margin: 28px 0 10px; }
193
+ h4 { font-size: 1em; color: var(--pink); margin: 20px 0 8px; }
194
+ h5 { font-size: .95em; color: var(--yellow); margin: 16px 0 6px; }
195
+ p { margin-bottom: 16px; color: var(--text); }
196
+ a { color: var(--blue); }
197
+ a:hover { text-decoration: underline; }
198
+ strong { color: var(--peach); }
199
+ em { color: var(--yellow); font-style: italic; }
200
+
201
+ ul, ol { margin: 10px 0 16px 24px; }
202
+ li { margin-bottom: 6px; }
203
+ li > ul, li > ol { margin-top: 4px; margin-bottom: 4px; }
204
+
205
+ blockquote {
206
+ border-left: 4px solid var(--mauve);
207
+ padding: 10px 20px;
208
+ margin: 16px 0;
209
+ background: rgba(180,190,254,.05);
210
+ border-radius: 0 8px 8px 0;
211
+ color: var(--subtext);
212
+ }
213
+ blockquote strong { color: var(--mauve); }
214
+
215
+ hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
216
+
217
+ /* Code */
218
+ code {
219
+ background: var(--surface2);
220
+ color: var(--red);
221
+ padding: 2px 7px; border-radius: 5px;
222
+ font-family: var(--mono); font-size: .87em;
223
+ }
224
+ pre {
225
+ background: var(--surface2) !important;
226
+ border: 1px solid var(--border);
227
+ border-radius: 10px;
228
+ padding: 20px 22px;
229
+ overflow-x: auto;
230
+ margin: 16px 0 22px;
231
+ position: relative;
232
+ }
233
+ pre code {
234
+ background: none !important;
235
+ color: inherit !important;
236
+ padding: 0; font-size: .9em;
237
+ border-radius: 0;
238
+ }
239
+ /* Copy button */
240
+ .copy-btn {
241
+ position: absolute; top: 10px; right: 12px;
242
+ background: var(--border);
243
+ color: var(--subtext);
244
+ border: none; border-radius: 5px;
245
+ padding: 3px 10px; font-size: .75em;
246
+ cursor: pointer; transition: all .12s;
247
+ font-family: var(--font);
248
+ }
249
+ .copy-btn:hover { background: var(--mauve); color: var(--surface2); }
250
+ .copy-btn.copied { background: var(--green); color: var(--surface2); }
251
+
252
+ /* Tables */
253
+ table { border-collapse: collapse; width: 100%; margin: 16px 0 22px; font-size: .9em; }
254
+ th { background: var(--border); color: var(--mauve); padding: 10px 14px; text-align: left; font-weight: 600; }
255
+ td { border-top: 1px solid var(--border); padding: 9px 14px; color: var(--text); }
256
+ tr:nth-child(even) td { background: rgba(17,17,27,.4); }
257
+ td code { font-size: .85em; }
258
+
259
+ /* Callout boxes */
260
+ .callout {
261
+ border-radius: 8px;
262
+ padding: 14px 18px;
263
+ margin: 16px 0 22px;
264
+ border-left: 4px solid;
265
+ }
266
+ .callout-note { background: rgba(137,180,250,.08); border-color: var(--blue); }
267
+ .callout-tip { background: rgba(166,227,161,.08); border-color: var(--green); }
268
+ .callout-warning { background: rgba(249,226,175,.08); border-color: var(--yellow); }
269
+ .callout-danger { background: rgba(243,139,168,.08); border-color: var(--red); }
270
+ .callout-title { font-weight: 700; font-size: .85em; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
271
+ .callout-note .callout-title { color: var(--blue); }
272
+ .callout-tip .callout-title { color: var(--green); }
273
+ .callout-warning .callout-title { color: var(--yellow); }
274
+ .callout-danger .callout-title { color: var(--red); }
275
+
276
+ /* Validation badges */
277
+ .val-badge {
278
+ display: inline-block; font-size: .78em; font-weight: 600;
279
+ padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
280
+ border: 1px solid transparent; letter-spacing: .02em;
281
+ }
282
+ .val-badge-ok { background: rgba(166,227,161,.12); border-color: var(--green); color: var(--green); }
283
+ .val-badge-warn { background: rgba(249,226,175,.12); border-color: var(--yellow); color: var(--yellow); }
284
+ .val-badge-error { background: rgba(243,139,168,.12); border-color: var(--red); color: var(--red); }
285
+ .val-badge-unknown { background: rgba(108,112,134,.12); border-color: #6c7086; color: #6c7086; }
286
+
287
+ /* Prev/Next navigation */
288
+ .page-nav {
289
+ display: flex; justify-content: space-between;
290
+ margin-top: 60px; padding-top: 24px;
291
+ border-top: 1px solid var(--border);
292
+ gap: 16px;
293
+ }
294
+ .page-nav-link {
295
+ display: flex; flex-direction: column;
296
+ text-decoration: none;
297
+ padding: 14px 20px;
298
+ background: var(--surface);
299
+ border: 1px solid var(--border);
300
+ border-radius: 10px;
301
+ min-width: 200px;
302
+ transition: border-color .15s;
303
+ max-width: 48%;
304
+ }
305
+ .page-nav-link:hover { border-color: var(--mauve); }
306
+ .page-nav-label { font-size: .75em; color: var(--muted); margin-bottom: 4px; }
307
+ .page-nav-title { color: var(--blue); font-weight: 600; font-size: .95em; }
308
+ .page-nav-link.prev .page-nav-label::before { content: '← '; }
309
+ .page-nav-link.next { margin-left: auto; text-align: right; }
310
+ .page-nav-link.next .page-nav-label::after { content: ' →'; }
311
+
312
+ /* ── TOC (right panel) ───────────────────────────────────────────────────── */
313
+ .toc {
314
+ grid-area: toc;
315
+ position: sticky; top: var(--header-h);
316
+ height: calc(100vh - var(--header-h));
317
+ overflow-y: auto;
318
+ padding: 28px 16px 28px 8px;
319
+ scrollbar-width: thin;
320
+ scrollbar-color: var(--border) transparent;
321
+ }
322
+ .toc-title {
323
+ font-size: .72em;
324
+ text-transform: uppercase;
325
+ letter-spacing: .1em;
326
+ color: var(--muted);
327
+ font-weight: 600;
328
+ margin-bottom: 12px;
329
+ padding-left: 8px;
330
+ }
331
+ .toc-link {
332
+ display: block;
333
+ padding: 4px 8px;
334
+ color: var(--subtext);
335
+ text-decoration: none;
336
+ font-size: .82em;
337
+ border-left: 2px solid transparent;
338
+ border-radius: 0 4px 4px 0;
339
+ transition: all .12s;
340
+ line-height: 1.35;
341
+ margin-bottom: 1px;
342
+ }
343
+ .toc-link:hover { color: var(--text); border-left-color: var(--border); }
344
+ .toc-link.active { color: var(--mauve); border-left-color: var(--mauve); background: rgba(180,190,254,.05); }
345
+ .toc-link.toc-h3 { padding-left: 20px; font-size: .79em; }
346
+ .toc-link.toc-h4 { padding-left: 32px; font-size: .76em; color: var(--muted); }
347
+
348
+ /* ── Responsive ──────────────────────────────────────────────────────────── */
349
+ @media (max-width: 1100px) {
350
+ body { grid-template-columns: var(--sidebar-w) 1fr 0; }
351
+ .toc { display: none; }
352
+ }
353
+ @media (max-width: 760px) {
354
+ body { grid-template-columns: 0 1fr 0; grid-template-rows: var(--header-h) 1fr; }
355
+ .sidebar { display: none; }
356
+ .content { padding: 24px 20px 60px; }
357
+ #search-input { width: 180px; }
358
+ }
359
+
360
+ /* ── Index / landing page ────────────────────────────────────────────────── */
361
+ .hero { text-align: center; padding: 60px 0 48px; }
362
+ .hero h1 { border: none; font-size: 2.8em; }
363
+ .hero .tagline { color: var(--subtext); font-size: 1.15em; margin-top: 10px; }
364
+ .hero .version-badge {
365
+ display: inline-block;
366
+ background: var(--border); color: var(--mauve);
367
+ padding: 4px 14px; border-radius: 20px; font-size: .85em;
368
+ margin-top: 14px;
369
+ }
370
+ .group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 36px; }
371
+ .doc-card {
372
+ background: var(--surface);
373
+ border: 1px solid var(--border);
374
+ border-radius: 12px;
375
+ padding: 20px 24px;
376
+ text-decoration: none;
377
+ color: var(--text);
378
+ transition: border-color .15s, background .15s;
379
+ display: block;
380
+ }
381
+ .doc-card:hover { border-color: var(--mauve); background: rgba(180,190,254,.04); }
382
+ .doc-card-num { font-size: .72em; color: var(--muted); margin-bottom: 4px; }
383
+ .doc-card-title { color: var(--blue); font-weight: 700; font-size: 1em; margin-bottom: 6px; }
384
+ .doc-card-desc { color: var(--subtext); font-size: .85em; line-height: 1.5; }
385
+ .group-title { color: var(--teal); font-size: 1.1em; font-weight: 600; margin: 32px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
386
+ </style>
387
+ <span id="portal-base" data-base="" style="display:none"></span>
388
+ </head>
389
+ <body>
390
+
391
+ <!-- ── Header ─────────────────────────────────────────────────────────── -->
392
+ <header class="header">
393
+ <a class="header-logo" href="index.html">Vibrante-Node</a>
394
+ <span class="header-version">v2.5.1</span>
395
+ <div class="header-spacer"></div>
396
+ <div class="search-wrap">
397
+ <span class="search-icon">&#128269;</span>
398
+ <input id="search-input" type="text" placeholder="Search docs… (/)" autocomplete="off" spellcheck="false">
399
+ <div id="search-results"></div>
400
+ </div>
401
+ </header>
402
+
403
+ <!-- ── Sidebar ────────────────────────────────────────────────────────── -->
404
+ <nav class="sidebar">
405
+ <div class="sidebar-group">
406
+ <div class="sidebar-group-title">Overview</div>
407
+ <a class="sidebar-link" href="01_introduction.html"><span class="sidebar-num">01</span>Introduction</a>
408
+ <a class="sidebar-link" href="02_getting_started.html"><span class="sidebar-num">02</span>Getting Started</a>
409
+ </div>
410
+ <div class="sidebar-group">
411
+ <div class="sidebar-group-title">Using the App</div>
412
+ <a class="sidebar-link" href="03_user_guide.html"><span class="sidebar-num">03</span>User Guide</a>
413
+ <a class="sidebar-link" href="04_workflow_tutorials.html"><span class="sidebar-num">04</span>Workflow Tutorials</a>
414
+ </div>
415
+ <div class="sidebar-group">
416
+ <div class="sidebar-group-title">Developing Nodes</div>
417
+ <a class="sidebar-link" href="05_node_development.html"><span class="sidebar-num">05</span>Node Development Guide</a>
418
+ <a class="sidebar-link" href="14_custom_nodes_api.html"><span class="sidebar-num">14</span>Custom Nodes API</a>
419
+ <a class="sidebar-link" href="08_api_reference.html"><span class="sidebar-num">08</span>API Reference</a>
420
+ </div>
421
+ <div class="sidebar-group">
422
+ <div class="sidebar-group-title">Architecture</div>
423
+ <a class="sidebar-link active" href="06_backend_architecture.html"><span class="sidebar-num">06</span>Backend Architecture</a>
424
+ <a class="sidebar-link" href="07_frontend_architecture.html"><span class="sidebar-num">07</span>Frontend Architecture</a>
425
+ </div>
426
+ <div class="sidebar-group">
427
+ <div class="sidebar-group-title">Advanced</div>
428
+ <a class="sidebar-link" href="09_advanced_topics.html"><span class="sidebar-num">09</span>Advanced Topics</a>
429
+ <a class="sidebar-link" href="10_contribution_guide.html"><span class="sidebar-num">10</span>Contribution Guide</a>
430
+ </div>
431
+ <div class="sidebar-group">
432
+ <div class="sidebar-group-title">Reference</div>
433
+ <a class="sidebar-link" href="11_troubleshooting.html"><span class="sidebar-num">11</span>Troubleshooting</a>
434
+ <a class="sidebar-link" href="12_examples_library.html"><span class="sidebar-num">12</span>Examples Library</a>
435
+ <a class="sidebar-link" href="13_general_purpose_automation.html"><span class="sidebar-num">13</span>General Purpose Automation</a>
436
+ </div>
437
+
438
+ </nav>
439
+
440
+ <!-- ── Main content ───────────────────────────────────────────────────── -->
441
+ <main class="content">
442
+ <div class="content-inner">
443
+ <nav class="breadcrumb"><a href="index.html">Docs</a><span class="breadcrumb-sep">›</span><span>Backend Architecture</span></nav>
444
+ <div class="val-badge val-badge-warn" title="4 warning(s) — review recommended">&#9888; 4 warnings</div>
445
+ <p># 06 — Backend Architecture</p>
446
+ <p><strong>Vibrante-Node v2.5.0 — Technical Reference</strong></p>
447
+ <p>This document describes the execution engine, graph model, node registry, and all supporting subsystems that make up the Vibrante-Node backend. It is written for contributors, plugin authors, and advanced users who need to understand what happens between the moment the user clicks <strong>Run</strong> and the moment the last node finishes.</p>
448
+ <hr />
449
+ <h2 id="table-of-contents">Table of Contents</h2>
450
+ <ol>
451
+ <li><a href="#1-execution-engine-overview">Execution Engine Overview</a></li>
452
+ <li><a href="#2-event-loop-integration">Event Loop Integration</a></li>
453
+ <li><a href="#3-execution-flow-diagram">Execution Flow Diagram</a></li>
454
+ <li><a href="#4-entry-node-detection">Entry Node Detection</a></li>
455
+ <li><a href="#5-data-pull-recursion">Data-Pull Recursion</a></li>
456
+ <li><a href="#6-execution-order-guarantees">Execution Order Guarantees</a></li>
457
+ <li><a href="#7-loop-execution">Loop Execution</a></li>
458
+ <li><a href="#8-groupnode-sub-executor">GroupNode Sub-Executor</a></li>
459
+ <li><a href="#9-bypass-handling">Bypass Handling</a></li>
460
+ <li><a href="#10-init_priority-system">init_priority System</a></li>
461
+ <li><a href="#11-error-propagation">Error Propagation</a></li>
462
+ <li><a href="#12-cancellation">Cancellation</a></li>
463
+ <li><a href="#13-node_results-dictionary">node_results Dictionary</a></li>
464
+ <li><a href="#14-signal-catalogue">Signal Catalogue</a></li>
465
+ <li><a href="#15-state-management">State Management</a></li>
466
+ <li><a href="#16-graphmanager">GraphManager</a></li>
467
+ <li><a href="#17-noderegistry">NodeRegistry</a></li>
468
+ <li><a href="#18-basenode-contract">BaseNode Contract</a></li>
469
+ <li><a href="#19-saferuntime-and-error-isolation">SafeRuntime and Error Isolation</a></li>
470
+ <li><a href="#20-performance-considerations">Performance Considerations</a></li>
471
+ </ol>
472
+ <hr />
473
+ <h2 id="1-execution-engine-overview">1. Execution Engine Overview</h2>
474
+ <p><code>NetworkExecutor</code> (<code>src/core/engine.py</code>) is the central execution engine. It inherits from <code>QObject</code> so it can emit Qt signals from within async code. The engine operates entirely on the Qt main thread — there are no worker threads for node execution. Async I/O is achieved by running an <code>asyncio</code> event loop that is manually stepped by a zero-delay <code>QTimer</code>.</p>
475
+ <h3 id="what-networkexecutor-does">What NetworkExecutor does</h3>
476
+ <ol>
477
+ <li>Receives a <code>GraphManager</code> instance containing the full node graph.</li>
478
+ <li>Instantiates one <code>BaseNode</code> subclass per <code>NodeInstanceModel</code>, restoring its dynamic ports and parameter values from the saved workflow.</li>
479
+ <li>Determines which nodes are <em>entry nodes</em> and which are <em>data-pull nodes</em>.</li>
480
+ <li>Starts all entry nodes as concurrent asyncio tasks.</li>
481
+ <li>After each node's <code>execute()</code> returns, propagates outputs to downstream nodes' inputs reactively.</li>
482
+ <li>Triggers downstream execution via exec-port connections.</li>
483
+ <li>Emits Qt signals after every state transition so the UI stays in sync.</li>
484
+ </ol>
485
+ <h3 id="why-async">Why async</h3>
486
+ <p>Node <code>execute()</code> coroutines may perform I/O: reading files, making HTTP requests, talking to the Houdini command server over TCP, or calling subprocess-based DCCs. If these were synchronous, they would block the Qt event loop and freeze the entire UI. By using <code>asyncio</code>, multiple nodes can be waiting on I/O simultaneously without any threading overhead. A single OS thread handles everything; the event loop interleaves coroutines cooperatively.</p>
487
+ <p>The practical rule is: <strong>anything that blocks for more than a few milliseconds must use <code>await</code></strong>. CPU-bound work that cannot be split into coroutines should use <code>asyncio.to_thread()</code> to push it to a thread pool without blocking the event loop (see <a href="#20-performance-considerations">Performance Considerations</a>).</p>
488
+ <hr />
489
+ <h2 id="2-event-loop-integration">2. Event Loop Integration</h2>
490
+ <p>Qt and asyncio each expect to own the thread's event loop. Vibrante-Node bridges them with <code>_EventLoopRunner</code> (<code>src/ui/window.py</code>), a lightweight adapter that drives the asyncio loop from inside Qt's event loop.</p>
491
+ <h3 id="how-_eventlooprunner-works">How _EventLoopRunner works</h3>
492
+ <pre><code>QTimer(interval=0) ──► _EventLoopRunner._step()
493
+ │
494
+ ├─ loop.call_soon(loop.stop)
495
+ │ schedules a stop callback at end of ready queue
496
+ │
497
+ └─ loop.run_forever()
498
+ runs until the stop callback fires
499
+ (processes exactly one round of ready callbacks)
500
+ </code></pre>
501
+ <p><code>_step()</code> is called by Qt every time the event loop is idle (interval = 0). Each call to <code>_step()</code>:</p>
502
+ <ol>
503
+ <li>Queues a <code>loop.stop</code> at the back of the asyncio ready queue.</li>
504
+ <li>Calls <code>loop.run_forever()</code>. Because <code>loop.stop</code> was queued last, <code>run_forever</code> returns after draining all currently-ready callbacks — typically in microseconds.</li>
505
+ <li>Checks whether the main task is done, and if so calls <code>_cleanup()</code>.</li>
506
+ </ol>
507
+ <p>This scheme means:</p>
508
+ <ul>
509
+ <li>All <code>await</code> suspensions resume on the Qt main thread.</li>
510
+ <li>All Qt signals emitted from within <code>async</code> code are queued connections that deliver on the main thread — no cross-thread marshalling is ever needed.</li>
511
+ <li><code>QBasicTimer</code> warnings ("timer can only be used with threads started with QThread") cannot occur because the asyncio loop never runs on a background thread.</li>
512
+ </ul>
513
+ <h3 id="lifecycle">Lifecycle</h3>
514
+ <pre><code class="language-python">runner = _EventLoopRunner(executor)
515
+ runner.start() # creates asyncio task, starts QTimer
516
+ # ... Qt main loop runs ...
517
+ runner.stop() # calls executor.stop(); loop keeps pumping until task finishes
518
+ </code></pre>
519
+ <p><code>_EventLoopRunner</code> creates a brand-new <code>asyncio.new_event_loop()</code> for each run, so there are no stale tasks or leftover state between executions.</p>
520
+ <hr />
521
+ <h2 id="3-execution-flow-diagram">3. Execution Flow Diagram</h2>
522
+ <pre><code>User clicks Run
523
+ │
524
+ ▼
525
+ MainWindow.execute_pipeline()
526
+ │
527
+ ├─ Build GraphManager from WorkflowModel
528
+ ├─ Create NetworkExecutor(graph_manager)
529
+ ├─ Create _EventLoopRunner(executor)
530
+ └─ runner.start()
531
+ │
532
+ ▼
533
+ executor.run() [async coroutine]
534
+ │
535
+ ├─ 1. PRE-CALCULATE LOOKUP MAPS
536
+ │ _incoming_data_conns: {node_id → [ConnectionModel]}
537
+ │ _driven_by_flow: set of node_ids with exec_in connected
538
+ │
539
+ ├─ 2. PREPARE ALL NODES
540
+ │ for each NodeInstanceModel:
541
+ │ instantiate node_class()
542
+ │ restore_from_parameters() (dynamic ports)
543
+ │ sync parameters (skip ports with live data connections)
544
+ │ clear_outputs()
545
+ │ install _on_log, _on_output, _check_stopped hooks
546
+ │
547
+ ├─ 3. PRISM BOOTSTRAP (if prism_core_init present)
548
+ │
549
+ ├─ 4. INIT NODES (init_priority &gt; 0, descending order)
550
+ │ each init node's full exec chain completes before next
551
+ │
552
+ ├─ 5. ENTRY NODE DETECTION
553
+ │ exec_conns present?
554
+ │ YES → flow mode:
555
+ │ entry = nodes with exec_out but no connected exec_in
556
+ │ OR nodes with no exec pins at all
557
+ │ NO → data-flow mode:
558
+ │ layers = graph_manager.get_topological_sort()
559
+ │ execute layer by layer with asyncio.gather()
560
+ │
561
+ └─ 6. FLOW EXECUTION [per entry node, concurrent tasks]
562
+ _execute_flow(node_id)
563
+ │
564
+ ├─ BYPASS CHECK → short-circuit if bypassed
565
+ │
566
+ ├─ PULL UPSTREAM DATA NODES
567
+ │ for each input port (in port definition order):
568
+ │ if upstream node not in _driven_by_flow:
569
+ │ _run_single_node_impl(upstream, is_data_pull=True)
570
+ │
571
+ ├─ node_started signal
572
+ │
573
+ ├─ reset exec output parameters
574
+ │
575
+ ├─ sync all inputs from node_results cache
576
+ │
577
+ ├─ SafeRuntime.run_node_safe(instance.execute, inputs)
578
+ │
579
+ ├─ SUCCESS:
580
+ │ node_results[node_id].update(result)
581
+ │ node_output signal
582
+ │ node_finished(&quot;success&quot;) signal
583
+ │
584
+ └─ FAILURE:
585
+ node_error signal
586
+ node_finished(&quot;failed&quot;) signal
587
+ [exec chain stops here]
588
+
589
+ set_output(&quot;exec_out&quot;, True) called inside execute()
590
+ │
591
+ ├─ stores value in node_results
592
+ ├─ node_output signal (for live wire inspector)
593
+ ├─ REACTIVE DATA PROPAGATION:
594
+ │ for each data connection from this port:
595
+ │ target.parameters[to_port] = value
596
+ │ node_results[to_node][to_port] = value
597
+ │ if target not in _driven_by_flow:
598
+ │ discard from _executed_nodes (force re-run in loops)
599
+ │ await target.on_parameter_changed(port, value)
600
+ └─ FLOW ROUTING (if port type == 'exec' and value is truthy):
601
+ for each exec connection from this port:
602
+ await _execute_flow(to_node)
603
+ </code></pre>
604
+ <hr />
605
+ <h2 id="4-entry-node-detection">4. Entry Node Detection</h2>
606
+ <p>Entry node detection depends on whether the graph contains any exec connections.</p>
607
+ <h3 id="flow-mode-exec-connections-present">Flow Mode (exec connections present)</h3>
608
+ <p>A node is an entry node if <strong>either</strong> of these conditions is true:</p>
609
+ <ol>
610
+ <li><strong>No exec_in pin</strong> — the node has only data ports. Examples: <code>GetVariable</code>, constant value nodes, the <code>prism_core_init</code> node. These never need to be triggered by an upstream exec; they run when data-pulled.</li>
611
+ <li><strong>Has exec_in pin but no connection to it</strong> — the node is the start of an exec chain. This is the primary category: the first node the user wires up (e.g. a <code>Sequencer</code> or a Houdini node with <code>exec_in</code> connected to nothing).</li>
612
+ </ol>
613
+ <p>Both categories apply even within a single graph. A graph might have two independent exec chains, each starting their own entry node. Both are detected and tracked as concurrent tasks.</p>
614
+ <p>Nodes already executed by the init phase (<code>_executed_nodes</code>) are excluded from entry detection to avoid double-execution.</p>
615
+ <pre><code class="language-python"># From engine.py (simplified)
616
+ entry_nodes = []
617
+ for node_id, instance in self.node_instances.items():
618
+ if node_id not in connected_nodes: continue
619
+ if node_id in self._executed_nodes: continue
620
+
621
+ has_exec_in_pin = any(p.data_type == 'exec' for p in instance.inputs.values())
622
+
623
+ if not has_exec_in_pin:
624
+ entry_nodes.append(node_id)
625
+ elif node_id not in has_exec_in_conn:
626
+ entry_nodes.append(node_id)
627
+ </code></pre>
628
+ <h3 id="data-flow-mode-no-exec-connections">Data-Flow Mode (no exec connections)</h3>
629
+ <p>When the graph has no exec connections at all, the engine falls back to classic topological sort execution. Every node in the graph is placed in a dependency layer, and layers are executed in order using <code>asyncio.gather()</code>. This mode is provided for backward compatibility and for simple graphs that do not need flow control.</p>
630
+ <hr />
631
+ <h2 id="5-data-pull-recursion">5. Data-Pull Recursion</h2>
632
+ <p>Before executing any node, the engine recursively evaluates all upstream <em>data-only</em> nodes. This is called a data pull. Data-only nodes are those not in <code>_driven_by_flow</code> (i.e. no exec connection feeds into them).</p>
633
+ <h3 id="the-data-pull-algorithm">The data-pull algorithm</h3>
634
+ <pre><code class="language-python"># Pull in port-definition order so values arrive in a predictable sequence
635
+ for port_name in instance.inputs:
636
+ for conn in incoming:
637
+ if conn.to_port == port_name:
638
+ from_id = conn.from_node
639
+ is_driven_by_flow = from_id in self._driven_by_flow
640
+ if not is_driven_by_flow:
641
+ await self._run_single_node_impl(from_id, is_data_pull=True)
642
+ </code></pre>
643
+ <h3 id="guards-against-double-execution">Guards against double-execution</h3>
644
+ <p><code>_run_single_node_impl</code> has two guards:</p>
645
+ <ol>
646
+ <li><strong>Data-pull guard</strong> — if <code>is_data_pull=True</code> and the node is already in <code>_executed_nodes</code>, it is skipped immediately. A data node never needs to run twice within one chain of data pulls.</li>
647
+ <li><strong>Re-entrancy guard</strong> — if the node is in <code>_currently_executing</code>, the call returns immediately. This prevents infinite recursion if a cycle somehow survived DAG validation.</li>
648
+ </ol>
649
+ <h3 id="cache-invalidation-in-loops">Cache invalidation in loops</h3>
650
+ <p>When a node calls <code>set_output()</code> with a new value during loop iteration, the engine discards all downstream data-only nodes from <code>_executed_nodes</code>. This forces them to re-run and pick up the new value on the next iteration rather than serving a stale cached result. This is essential for patterns like <code>ForEach → GetListItem → SomeDataTransform → HoudiniNode</code>.</p>
651
+ <hr />
652
+ <h2 id="6-execution-order-guarantees">6. Execution Order Guarantees</h2>
653
+ <h3 id="exec-chain-order">Exec-chain order</h3>
654
+ <p>Within a single exec chain, nodes execute strictly sequentially. Node B does not start until node A's <code>execute()</code> coroutine returns and all reactive data propagation has completed. This is because <code>_execute_flow</code> is a single <code>await</code> chain: A calls <code>set_output("exec_out", True)</code>, which <code>await</code>s <code>_execute_flow(B)</code>, and so on.</p>
655
+ <h3 id="parallel-chains">Parallel chains</h3>
656
+ <p>Multiple independent exec chains (multiple entry nodes) are launched as concurrent asyncio tasks. They interleave at <code>await</code> points, which means I/O in one chain does not block progress in another. Shared state (e.g. <code>BaseNode.memory</code>) is not protected by a lock; if two chains write to the same variable key simultaneously, the result is non-deterministic. Design parallel chains to be independent or to use different variable namespaces.</p>
657
+ <h3 id="data-node-order">Data node order</h3>
658
+ <p>In data-flow mode (no exec connections), nodes in the same topological layer run concurrently via <code>asyncio.gather()</code>. Nodes in later layers are guaranteed to run after all nodes in earlier layers have completed.</p>
659
+ <p>In flow mode, data-only upstream nodes are pulled in port-definition order. The order in which ports were added to the node definition determines the order upstream data nodes are evaluated.</p>
660
+ <hr />
661
+ <h2 id="7-loop-execution">7. Loop Execution</h2>
662
+ <p>Two builtin nodes implement looping: <code>ForEachNode</code> and <code>WhileLoopNode</code>. Both use <code>set_output</code> to trigger exec flow from within a single <code>execute()</code> coroutine.</p>
663
+ <h3 id="foreach">ForEach</h3>
664
+ <p><code>ForEachNode.execute()</code> iterates over a list. For each element it:</p>
665
+ <ol>
666
+ <li>Calls <code>await self.set_output("current_item", element)</code> and <code>await self.set_output("current_index", i)</code>. This propagates the values to downstream data nodes and marks those nodes as stale in <code>_executed_nodes</code> (via the reactive propagation logic in the engine).</li>
667
+ <li>Calls <code>await self.set_output("exec_step", True)</code>. The engine sees an exec output become truthy and follows all exec connections from <code>exec_step</code>, executing the downstream chain to completion.</li>
668
+ <li>Repeats for the next element.</li>
669
+ </ol>
670
+ <p>After all elements are processed, <code>ForEachNode</code> calls <code>await self.set_output("exec_out", True)</code> to signal completion.</p>
671
+ <p>Because each <code>set_output("exec_step", True)</code> call awaits the full downstream chain before returning, iterations are strictly sequential — there is no concurrency between loop bodies.</p>
672
+ <h3 id="whileloop">WhileLoop</h3>
673
+ <p><code>WhileLoopNode.execute()</code> reads a <code>break_condition</code> input at the start of each iteration. The <code>break_condition</code> port is excluded from cycle detection in <code>GraphManager.get_topological_sort()</code> (via <code>ignore_ports=["break_condition"]</code>), which is what allows the feedback wire without triggering a <code>CircularDependencyError</code>.</p>
674
+ <p>On each iteration, <code>WhileLoopNode</code>:</p>
675
+ <ol>
676
+ <li>Checks <code>inputs.get("break_condition")</code>. If truthy, fires <code>exec_out</code> and returns.</li>
677
+ <li>Fires <code>exec_loop_body</code> to execute the loop body chain.</li>
678
+ <li>After the loop body completes, pulls the <code>break_condition</code> again (it was discarded from <code>_executed_nodes</code> by reactive propagation).</li>
679
+ <li>Repeats.</li>
680
+ </ol>
681
+ <p>The <code>is_stopped()</code> check should be called inside long-running while loops to respect cancellation:</p>
682
+ <pre><code class="language-python">while not self.is_stopped():
683
+ if inputs.get(&quot;break_condition&quot;):
684
+ break
685
+ await self.set_output(&quot;exec_loop_body&quot;, True)
686
+ inputs = self.parameters.copy() # re-read inputs after body
687
+ </code></pre>
688
+ <hr />
689
+ <h2 id="8-groupnode-sub-executor">8. GroupNode Sub-Executor</h2>
690
+ <p><code>GroupNode</code> (<code>src/nodes/builtins/group_node.py</code>) encapsulates a complete <code>WorkflowModel</code> and runs it with a nested <code>NetworkExecutor</code>.</p>
691
+ <h3 id="memory-preservation">Memory preservation</h3>
692
+ <p>The outer executor sets <code>BaseNode.memory</code> to the current shared variable state before the sub-executor runs. The sub-executor's <code>run()</code> clears <code>BaseNode.memory</code> at the start (as it does for every run). To prevent this from erasing the outer execution's variables, <code>GroupNode.execute()</code> saves and restores memory around the sub-execution:</p>
693
+ <pre><code class="language-python">saved_memory = dict(_BaseNode.memory)
694
+ sub_executor = NetworkExecutor(gm)
695
+ # ... connect signals ...
696
+ try:
697
+ await sub_executor.run()
698
+ finally:
699
+ _BaseNode.memory.clear()
700
+ _BaseNode.memory.update(saved_memory)
701
+ </code></pre>
702
+ <h3 id="input-injection">Input injection</h3>
703
+ <p>External input values are injected into <code>GroupInNode</code> instances via <code>parameters["_injected_value"]</code> rather than <code>parameters["value"]</code>. The <code>value</code> key is an output port; the engine's <code>clear_outputs()</code> resets it to <code>None</code> during node preparation, before <code>execute()</code> is called. Using a distinct internal key (<code>_injected_value</code>) avoids the wipe.</p>
704
+ <h3 id="output-collection">Output collection</h3>
705
+ <p>After the sub-executor finishes, <code>GroupNode</code> collects outputs by reading from <code>sub_executor.node_results</code> of the <em>source</em> nodes connected to each <code>GroupOutNode</code>'s <code>value</code> input, rather than from <code>GroupOutNode</code> itself. This avoids a timing issue where <code>GroupOutNode</code> (a data-entry node) might have executed before the exec chain populated its input.</p>
706
+ <h3 id="error-propagation">Error propagation</h3>
707
+ <p><code>GroupNode</code> has two exec output ports:</p>
708
+ <ul>
709
+ <li><code>exec_out</code> — fires when the inner graph completes with no unhandled exceptions.</li>
710
+ <li><code>exec_fail</code> — fires when the inner graph has at least one unhandled node exception (a <code>node_error</code> signal was emitted inside).</li>
711
+ </ul>
712
+ <p>Semantic failures (e.g. a Houdini node returning <code>success=False</code>) are not considered unhandled exceptions; they are the inner graph's responsibility to route via its own exec pins.</p>
713
+ <hr />
714
+ <h2 id="9-bypass-handling">9. Bypass Handling</h2>
715
+ <p>A node can be bypassed by right-clicking it and selecting <strong>Bypass</strong> (or pressing <strong>Ctrl+B</strong>). The <code>bypassed</code> flag is stored on <code>NodeInstanceModel.bypassed</code>.</p>
716
+ <p>When the engine encounters a bypassed node during exec-chain traversal:</p>
717
+ <ol>
718
+ <li><code>node_started</code> is emitted immediately.</li>
719
+ <li>The node's <code>execute()</code> is not called.</li>
720
+ <li><code>node_finished("success")</code> is emitted.</li>
721
+ <li>Every exec connection from this node is followed (all exec outputs fire), so the downstream chain continues uninterrupted.</li>
722
+ </ol>
723
+ <p>Data inputs are <strong>not</strong> propagated through bypassed nodes. If a downstream node depended on this node's data output, it receives whatever default value the port was initialized with. This is intentional — bypass is a flow control shortcut, not a data pass-through.</p>
724
+ <hr />
725
+ <h2 id="10-init_priority-system">10. init_priority System</h2>
726
+ <p><code>NodeInstanceModel.init_priority</code> is an integer field (default <code>0</code>). Any value greater than <code>0</code> marks the node as an initialisation node.</p>
727
+ <h3 id="execution-order">Execution order</h3>
728
+ <p>At the start of every run, before entry-node detection, the engine collects all nodes with <code>init_priority &gt; 0</code>, sorts them in descending order (higher number runs first), and executes each one's full exec chain to completion before starting the next:</p>
729
+ <pre><code class="language-python">init_node_ids = sorted(
730
+ [nid for nid, m in self.graph_manager.nodes.items() if m.init_priority &gt; 0],
731
+ key=lambda nid: self.graph_manager.nodes[nid].init_priority,
732
+ reverse=True,
733
+ )
734
+ for node_id in init_node_ids:
735
+ self._track_task(self._execute_flow(node_id))
736
+ # wait for all active tasks to finish before next init node
737
+ </code></pre>
738
+ <h3 id="use-cases">Use cases</h3>
739
+ <ul>
740
+ <li><code>prism_core_init</code> — must run before any <code>prism_*</code> node so <code>PrismCore</code> is available in shared memory.</li>
741
+ <li>Authentication nodes — log in to an API before the main pipeline starts.</li>
742
+ <li>Data-initialisation nodes — pre-load a large dataset so it is ready when fast processing nodes need it.</li>
743
+ </ul>
744
+ <h3 id="init_only-mode">init_only mode</h3>
745
+ <p><code>NetworkExecutor.run(init_only=True)</code> runs only the init phase and then emits <code>execution_finished(True)</code> without proceeding to the main graph. This mode is used immediately after a workflow is loaded, giving init nodes a chance to set up environment state without requiring the user to click Run.</p>
746
+ <hr />
747
+ <h2 id="11-error-propagation">11. Error Propagation</h2>
748
+ <p>When <code>SafeRuntime.run_node_safe()</code> catches an exception from <code>execute()</code>:</p>
749
+ <ol>
750
+ <li><code>node_error(node_id, error_message)</code> is emitted with the full traceback string.</li>
751
+ <li><code>node_finished(node_id, "failed")</code> is emitted.</li>
752
+ <li>The function returns <code>False</code>. The caller (<code>_run_single_node_impl</code>) discards control — it does <strong>not</strong> follow any exec connections from the failed node.</li>
753
+ <li>The exec chain stops at the failed node. All downstream nodes in that chain are never executed.</li>
754
+ </ol>
755
+ <p>The <code>node_error</code> signal is connected in <code>MainWindow</code> to the log panel, which displays the error in red with the node name.</p>
756
+ <h3 id="groupnode-error-propagation">GroupNode error propagation</h3>
757
+ <p>When a node inside a <code>GroupNode</code> fails, the sub-executor emits <code>node_error</code>. <code>GroupNode.execute()</code> catches this via a connected slot that appends to <code>inner_errors</code>. After the sub-executor finishes, if <code>inner_errors</code> is non-empty, <code>GroupNode</code> fires <code>exec_fail</code> instead of <code>exec_out</code> and calls <code>self.log_error()</code> to forward the messages to the parent executor's log.</p>
758
+ <h3 id="manual-error-handling-in-nodes">Manual error handling in nodes</h3>
759
+ <p>Nodes can signal errors without raising exceptions by calling <code>self.log_error(msg)</code>. This writes to the log panel at "error" level but does not stop the exec chain. The node should still return a valid dict (with <code>exec_out: True</code> if it wants execution to continue) or <code>exec_out: False</code> to halt the chain deliberately.</p>
760
+ <hr />
761
+ <h2 id="12-cancellation">12. Cancellation</h2>
762
+ <p>The user can stop a running pipeline by clicking the <strong>Stop</strong> button, which calls <code>_EventLoopRunner.stop()</code>, which calls <code>executor.stop()</code>.</p>
763
+ <p><code>NetworkExecutor.stop()</code>:</p>
764
+ <ol>
765
+ <li>Sets <code>self._is_stopped = True</code>.</li>
766
+ <li>Calls <code>task.cancel()</code> on every task in <code>self._active_tasks</code>. This injects <code>CancelledError</code> into any awaiting coroutine.</li>
767
+ <li>Sets <code>self._finished_event</code> so the wait loop in <code>run()</code> exits.</li>
768
+ </ol>
769
+ <h3 id="cooperative-cancellation-inside-long-nodes">Cooperative cancellation inside long nodes</h3>
770
+ <p>A node whose <code>execute()</code> runs a long synchronous loop should periodically check <code>self.is_stopped()</code>:</p>
771
+ <pre><code class="language-python">async def execute(self, inputs):
772
+ for frame in range(start, end):
773
+ if self.is_stopped():
774
+ self.log_info(&quot;Stopped by user.&quot;)
775
+ return {&quot;exec_out&quot;: False}
776
+ await self.set_output(&quot;current_frame&quot;, frame)
777
+ await self.set_output(&quot;exec_step&quot;, True)
778
+ return {&quot;exec_out&quot;: True}
779
+ </code></pre>
780
+ <p>For CPU-bound work offloaded with <code>asyncio.to_thread()</code>, cancellation of the outer task will cancel the <code>to_thread</code> call but the thread itself will continue running until Python's GIL allows it to be interrupted. Design threads to check a shared stop event if immediate termination is required.</p>
781
+ <hr />
782
+ <h2 id="13-node_results-dictionary">13. node_results Dictionary</h2>
783
+ <p><code>NetworkExecutor.node_results</code> is a <code>Dict[UUID, Dict[str, Any]]</code> that stores the most recent output values of every node in the current run.</p>
784
+ <pre><code class="language-python"># Structure
785
+ node_results = {
786
+ node_instance_id_1: {&quot;output_port_a&quot;: value, &quot;output_port_b&quot;: value},
787
+ node_instance_id_2: {&quot;result&quot;: value, &quot;exec_out&quot;: True},
788
+ # ... one entry per executed node ...
789
+ }
790
+ </code></pre>
791
+ <h3 id="population">Population</h3>
792
+ <p>Values enter <code>node_results</code> in two ways:</p>
793
+ <ol>
794
+ <li><strong>From <code>execute()</code> return value</strong> — after <code>SafeRuntime.run_node_safe()</code> returns successfully, the engine calls <code>self.node_results[node_id].update(result)</code>.</li>
795
+ <li><strong>From <code>set_output()</code> streaming</strong> — when a node calls <code>await self.set_output(name, value)</code>, the engine's output handler stores <code>self.node_results[node_id][name] = value</code> immediately, before the exec chain fires.</li>
796
+ </ol>
797
+ <h3 id="use-by-the-wire-value-inspector">Use by the wire value inspector</h3>
798
+ <p><code>MainWindow._on_node_output</code> is connected to <code>node_output</code>. When it fires, the handler calls <code>scene.update_edge_value(node_widget, port_name, value)</code> for every key in the result dict. <code>NodeScene.update_edge_value()</code> finds all <code>Edge</code> items whose <code>from_port</code> matches and calls <code>edge.set_live_value(value)</code>. This makes the value visible as a tooltip when hovering over the wire.</p>
799
+ <p><code>node_results</code> persists after execution completes, so users can inspect final wire values without re-running.</p>
800
+ <hr />
801
+ <h2 id="14-signal-catalogue">14. Signal Catalogue</h2>
802
+ <p>All signals are defined on <code>NetworkExecutor(QObject)</code>. They are all thread-safe because they originate from the Qt main thread (via <code>_EventLoopRunner</code>).</p>
803
+ <table>
804
+ <thead>
805
+ <tr>
806
+ <th>Signal</th>
807
+ <th>Parameters</th>
808
+ <th>When it fires</th>
809
+ </tr>
810
+ </thead>
811
+ <tbody>
812
+ <tr>
813
+ <td><code>node_started</code></td>
814
+ <td><code>UUID</code> node_id</td>
815
+ <td>Immediately before <code>execute()</code> is called (or immediately for bypassed nodes)</td>
816
+ </tr>
817
+ <tr>
818
+ <td><code>node_finished</code></td>
819
+ <td><code>UUID</code> node_id, <code>str</code> status</td>
820
+ <td>After <code>execute()</code> returns; status is <code>"success"</code> or <code>"failed"</code></td>
821
+ </tr>
822
+ <tr>
823
+ <td><code>node_error</code></td>
824
+ <td><code>UUID</code> node_id, <code>str</code> error_message</td>
825
+ <td>When <code>execute()</code> raises an unhandled exception; message includes full traceback</td>
826
+ </tr>
827
+ <tr>
828
+ <td><code>node_output</code></td>
829
+ <td><code>UUID</code> node_id, <code>dict</code> output_data</td>
830
+ <td>After <code>execute()</code> returns (with the full result dict), and also after each <code>set_output()</code> call (with a single-key dict)</td>
831
+ </tr>
832
+ <tr>
833
+ <td><code>node_log</code></td>
834
+ <td><code>UUID</code> node_id, <code>str</code> message, <code>str</code> level</td>
835
+ <td>When a node calls <code>log_info()</code>, <code>log_success()</code>, or <code>log_error()</code></td>
836
+ </tr>
837
+ <tr>
838
+ <td><code>execution_finished</code></td>
839
+ <td><code>bool</code> success</td>
840
+ <td>After all tasks complete or after <code>stop()</code> is called; <code>success=False</code> if stopped</td>
841
+ </tr>
842
+ </tbody>
843
+ </table>
844
+ <h3 id="connecting-to-signals-from-outside-the-executor">Connecting to signals from outside the executor</h3>
845
+ <pre><code class="language-python">executor = NetworkExecutor(graph_manager)
846
+ executor.node_started.connect(lambda nid: print(f&quot;Starting {nid}&quot;))
847
+ executor.node_log.connect(lambda nid, msg, lvl: print(f&quot;[{lvl}] {msg}&quot;))
848
+ executor.execution_finished.connect(lambda ok: print(f&quot;Done: {ok}&quot;))
849
+ </code></pre>
850
+ <hr />
851
+ <h2 id="15-state-management">15. State Management</h2>
852
+ <h3 id="what-is-reset-on-each-run">What is reset on each run</h3>
853
+ <ul>
854
+ <li><code>BaseNode.memory</code> — cleared at the start of <code>run()</code>. This is a class-level dict shared by all nodes.</li>
855
+ <li><code>node_results</code> — reset to <code>{}</code> at the start of <code>run()</code>.</li>
856
+ <li><code>node_instances</code> — re-instantiated from scratch each run.</li>
857
+ <li><code>_executed_nodes</code>, <code>_currently_executing</code> — cleared.</li>
858
+ <li><code>_is_stopped</code> — set to <code>False</code>.</li>
859
+ <li>All node output parameters — reset to their port defaults by <code>clear_outputs()</code>.</li>
860
+ </ul>
861
+ <h3 id="what-persists-between-runs">What persists between runs</h3>
862
+ <ul>
863
+ <li><code>NodeInstanceModel.parameters</code> — widget values entered by the user persist across runs. Only ports with an incoming data connection are reset to the port's default at run start (to prevent stale widget values from overriding live data).</li>
864
+ <li><code>NodeRegistry._classes</code> / <code>_definitions</code> — the node library is not re-scanned between runs.</li>
865
+ <li>File handles, external connections, and any Python-level state held by node instances are discarded because <code>node_instances</code> is rebuilt each run.</li>
866
+ </ul>
867
+ <h3 id="basenodememory">BaseNode.memory</h3>
868
+ <p><code>BaseNode.memory</code> is a class-level <code>Dict[str, Any]</code> that acts as a simple shared scratchpad. Nodes access it directly:</p>
869
+ <pre><code class="language-python"># SetVariable node
870
+ BaseNode.memory[&quot;my_var&quot;] = value
871
+
872
+ # GetVariable node
873
+ value = BaseNode.memory.get(&quot;my_var&quot;)
874
+ </code></pre>
875
+ <p>Memory is shared across all nodes in the current run, including nodes inside <code>GroupNode</code> sub-executors (with the save/restore mechanism described in section 8). It is <strong>not</strong> thread-safe for concurrent access from multiple parallel exec chains.</p>
876
+ <hr />
877
+ <h2 id="16-graphmanager">16. GraphManager</h2>
878
+ <p><code>GraphManager</code> (<code>src/core/graph.py</code>) is a lightweight container for the graph's node and connection data. It does not execute anything; it is purely a data structure.</p>
879
+ <h3 id="key-attributes">Key attributes</h3>
880
+ <table>
881
+ <thead>
882
+ <tr>
883
+ <th>Attribute</th>
884
+ <th>Type</th>
885
+ <th>Description</th>
886
+ </tr>
887
+ </thead>
888
+ <tbody>
889
+ <tr>
890
+ <td><code>nodes</code></td>
891
+ <td><code>Dict[UUID, NodeInstanceModel]</code></td>
892
+ <td>All nodes, keyed by instance UUID</td>
893
+ </tr>
894
+ <tr>
895
+ <td><code>connections</code></td>
896
+ <td><code>List[ConnectionModel]</code></td>
897
+ <td>All wires between ports</td>
898
+ </tr>
899
+ </tbody>
900
+ </table>
901
+ <h3 id="cycle-detection">Cycle detection</h3>
902
+ <p><code>add_connection()</code> calls <code>is_dag()</code> after tentatively appending the new connection. <code>is_dag()</code> runs <code>get_topological_sort()</code> which uses the <code>toposort</code> library. If a <code>CircularDependencyError</code> is raised, the connection is removed and <code>add_connection()</code> returns <code>False</code>.</p>
903
+ <p>The <code>break_condition</code> port is excluded from dependency calculation by default, allowing while-loop feedback wires without being flagged as cycles:</p>
904
+ <pre><code class="language-python">def get_topological_sort(self, ignore_ports=None):
905
+ if ignore_ports is None:
906
+ ignore_ports = [&quot;break_condition&quot;]
907
+ # ...
908
+ for conn in self.connections:
909
+ if conn.to_port in ignore_ports:
910
+ continue
911
+ data[conn.to_node].add(conn.from_node)
912
+ </code></pre>
913
+ <h3 id="serialization">Serialization</h3>
914
+ <p><code>to_model()</code> returns a <code>WorkflowModel</code> (a Pydantic model). <code>from_model(model)</code> reconstructs the graph from a <code>WorkflowModel</code>. Both operations are <code>O(n)</code> in the number of nodes and connections.</p>
915
+ <hr />
916
+ <h2 id="17-noderegistry">17. NodeRegistry</h2>
917
+ <p><code>NodeRegistry</code> (<code>src/core/registry.py</code>) is a class-level singleton that stores all node definitions and their compiled Python classes.</p>
918
+ <h3 id="three-storage-maps">Three storage maps</h3>
919
+ <table>
920
+ <thead>
921
+ <tr>
922
+ <th>Map</th>
923
+ <th>Key</th>
924
+ <th>Value</th>
925
+ </tr>
926
+ </thead>
927
+ <tbody>
928
+ <tr>
929
+ <td><code>_classes</code></td>
930
+ <td><code>node_id</code> (str)</td>
931
+ <td><code>Type[BaseNode]</code> subclass</td>
932
+ </tr>
933
+ <tr>
934
+ <td><code>_definitions</code></td>
935
+ <td><code>node_id</code> (str)</td>
936
+ <td><code>NodeDefinitionJSON</code> Pydantic model</td>
937
+ </tr>
938
+ <tr>
939
+ <td><code>_source_paths</code></td>
940
+ <td><code>node_id</code> (str)</td>
941
+ <td>Absolute path to the <code>.json</code> file on disk</td>
942
+ </tr>
943
+ </tbody>
944
+ </table>
945
+ <h3 id="loading-order-on-startup">Loading order on startup</h3>
946
+ <pre><code>NodeRegistry.load_all_with_extras(bundled_nodes)
947
+ │
948
+ ├─ register_builtins()
949
+ │ Registers Python-class nodes (ForEach, WhileLoop, etc.)
950
+ │ GroupInNode, GroupOutNode, GroupNode go into _classes only
951
+ │ (hidden from search popup, still executable)
952
+ │
953
+ ├─ _load_directory(bundled_nodes)
954
+ │ walks nodes/ recursively, calls load_node() for each .json
955
+ │
956
+ └─ extra_dirs from v_nodes_dir env var (OS path separator)
957
+ _load_directory(extra_dir) for each
958
+ </code></pre>
959
+ <h3 id="json-node-registration">JSON node registration</h3>
960
+ <p><code>register_definition(definition)</code> does two things:</p>
961
+ <ol>
962
+ <li>Normalises the definition: inserts <code>exec_in</code> / <code>exec_out</code> ports if <code>use_exec=True</code> and they are missing; applies the Prism auto-rewrite if <code>node_id</code> starts with <code>prism_</code>.</li>
963
+ <li>Compiles the <code>python_code</code> with <code>exec()</code> and extracts the node class via <code>register_node()</code> (preferred) or a bare <code>execute()</code> function (simplified format).</li>
964
+ </ol>
965
+ <h3 id="hot-reload">Hot-reload</h3>
966
+ <p><code>reload_node_definition(node_id)</code> re-reads the JSON from <code>_source_paths[node_id]</code> and re-registers. After calling this, any live <code>NodeWidget</code> instances bound to this <code>node_id</code> must be refreshed to pick up new ports or code. The Node Builder dialog calls this automatically after saving a node edit.</p>
967
+ <h3 id="prism-auto-rewrite">Prism auto-rewrite</h3>
968
+ <p>When <code>node_id.startswith("prism_")</code> and the code does not already import <code>resolve_prism_core</code>, the registry automatically prepends the import and rewrites:</p>
969
+ <pre><code class="language-python">core = inputs.get('core')
970
+ # becomes:
971
+ core = resolve_prism_core(inputs)
972
+ </code></pre>
973
+ <p>This means every prism node automatically resolves <code>PrismCore</code> from shared memory without the author needing to wire a <code>core</code> output between nodes.</p>
974
+ <hr />
975
+ <h2 id="18-basenode-contract">18. BaseNode Contract</h2>
976
+ <p>Every node class must inherit from <code>BaseNode</code> and implement <code>execute()</code>. The full contract:</p>
977
+ <h3 id="required">Required</h3>
978
+ <pre><code class="language-python">class MyNode(BaseNode):
979
+ name = &quot;my_node&quot; # must match node_id; used as class identifier
980
+
981
+ def __init__(self):
982
+ super().__init__() # adds exec_in, exec_out automatically
983
+ self.add_input(&quot;some_input&quot;, &quot;string&quot;, widget_type=&quot;text&quot;)
984
+ self.add_output(&quot;some_output&quot;, &quot;string&quot;)
985
+
986
+ async def execute(self, inputs: Dict[str, Any]) -&gt; Dict[str, Any]:
987
+ value = inputs.get(&quot;some_input&quot;, &quot;&quot;)
988
+ return {&quot;some_output&quot;: result, &quot;exec_out&quot;: True}
989
+
990
+ def register_node():
991
+ return MyNode
992
+ </code></pre>
993
+ <h3 id="optional-hooks">Optional hooks</h3>
994
+ <table>
995
+ <thead>
996
+ <tr>
997
+ <th>Method</th>
998
+ <th>When called</th>
999
+ <th>Notes</th>
1000
+ </tr>
1001
+ </thead>
1002
+ <tbody>
1003
+ <tr>
1004
+ <td><code>restore_from_parameters(params)</code></td>
1005
+ <td>By engine before each run</td>
1006
+ <td>Restore dynamic ports from saved workflow</td>
1007
+ </tr>
1008
+ <tr>
1009
+ <td><code>on_plug_sync(port, is_input, other, other_port)</code></td>
1010
+ <td>Synchronously when a wire is connected</td>
1011
+ <td>Called on the Qt main thread</td>
1012
+ </tr>
1013
+ <tr>
1014
+ <td><code>on_unplug_sync(port, is_input)</code></td>
1015
+ <td>Synchronously when a wire is removed</td>
1016
+ <td>Called on the Qt main thread</td>
1017
+ </tr>
1018
+ <tr>
1019
+ <td><code>async on_plug(port, is_input, other, other_port)</code></td>
1020
+ <td>Asynchronously when a wire is connected</td>
1021
+ <td>Use for async initialization</td>
1022
+ </tr>
1023
+ <tr>
1024
+ <td><code>async on_unplug(port, is_input)</code></td>
1025
+ <td>Asynchronously when a wire is removed</td>
1026
+ <td></td>
1027
+ </tr>
1028
+ <tr>
1029
+ <td><code>async on_parameter_changed(name, value)</code></td>
1030
+ <td>When reactive data propagation updates an input</td>
1031
+ <td>Re-run reactive nodes (TwoWaySwitch, GetVariable)</td>
1032
+ </tr>
1033
+ </tbody>
1034
+ </table>
1035
+ <h3 id="streaming-outputs">Streaming outputs</h3>
1036
+ <p><code>set_output(name, value)</code> is an async method that pushes a single output value during execution without waiting for <code>execute()</code> to return:</p>
1037
+ <pre><code class="language-python">async def execute(self, inputs):
1038
+ for i in range(10):
1039
+ await self.set_output(&quot;progress&quot;, i / 10.0)
1040
+ await asyncio.sleep(0.1) # simulate work
1041
+ return {&quot;result&quot;: &quot;done&quot;, &quot;exec_out&quot;: True}
1042
+ </code></pre>
1043
+ <p>Every call to <code>set_output()</code> triggers reactive data propagation and, if the port is an exec port with a truthy value, triggers downstream execution.</p>
1044
+ <hr />
1045
+ <h2 id="19-saferuntime-and-error-isolation">19. SafeRuntime and Error Isolation</h2>
1046
+ <p><code>SafeRuntime.run_node_safe()</code> wraps every <code>execute()</code> call in a <code>try/except</code>:</p>
1047
+ <pre><code class="language-python">@staticmethod
1048
+ async def run_node_safe(fn, inputs):
1049
+ try:
1050
+ result = await fn(inputs)
1051
+ return True, result, None
1052
+ except Exception as e:
1053
+ error_msg = f&quot;Node execution failed: {str(e)}\n{traceback.format_exc()}&quot;
1054
+ return False, None, error_msg
1055
+ </code></pre>
1056
+ <p>This means a bug in one node's <code>execute()</code> never crashes the engine process. The error is captured as a string, emitted via <code>node_error</code>, and execution of that branch halts cleanly.</p>
1057
+ <p><code>SafeRuntime</code> does not suppress <code>asyncio.CancelledError</code> — cancellation from <code>runner.stop()</code> propagates normally through <code>await</code> chains.</p>
1058
+ <hr />
1059
+ <h2 id="20-performance-considerations">20. Performance Considerations</h2>
1060
+ <h3 id="blocking-calls-are-dangerous">Blocking calls are dangerous</h3>
1061
+ <p>The asyncio event loop and the Qt event loop share the same OS thread. Any blocking call inside <code>execute()</code> — a synchronous <code>time.sleep()</code>, a blocking socket receive without timeout, a <code>subprocess.run()</code> call without async — will freeze the Qt UI for the duration of the block. No mouse events, no repaints, no signal deliveries.</p>
1062
+ <p>Rules:<br />
1063
+ - Use <code>await asyncio.sleep(n)</code> instead of <code>time.sleep(n)</code>.<br />
1064
+ - Use <code>asyncio.open_connection()</code> instead of blocking sockets.<br />
1065
+ - Use <code>asyncio.create_subprocess_exec()</code> for subprocesses.<br />
1066
+ - For blocking Python code that cannot be made async, use <code>asyncio.to_thread()</code>.</p>
1067
+ <h3 id="offloading-cpu-work">Offloading CPU work</h3>
1068
+ <pre><code class="language-python">import asyncio
1069
+
1070
+ async def execute(self, inputs):
1071
+ heavy_data = inputs.get(&quot;data&quot;)
1072
+ result = await asyncio.to_thread(self._cpu_intensive, heavy_data)
1073
+ return {&quot;output&quot;: result, &quot;exec_out&quot;: True}
1074
+
1075
+ def _cpu_intensive(self, data):
1076
+ # This runs in a thread pool — does not block the event loop
1077
+ return expensive_computation(data)
1078
+ </code></pre>
1079
+ <p><code>asyncio.to_thread()</code> is available in Python 3.9+. For older versions use <code>loop.run_in_executor(None, fn, *args)</code>.</p>
1080
+ <h3 id="houdini-bridge-latency">Houdini bridge latency</h3>
1081
+ <p>Each <code>HouBridge</code> RPC call involves: serialising JSON, a TCP round-trip to the local Houdini server, <code>hdefereval.executeDeferred()</code> scheduling on Houdini's main thread, execution, serialisation, and a TCP reply. On a local machine this is typically 1–5 ms per call (with <code>TCP_NODELAY</code> set). A node that makes 100 bridge calls will take ~100–500 ms. Batch multiple parameter sets with <code>bridge.set_parms()</code> and batch child queries with a single <code>bridge.run_code()</code> call where possible.</p>
1082
+ <h3 id="graph-size">Graph size</h3>
1083
+ <p>For graphs with 100+ nodes, the topological sort (<code>toposort</code> library) and connection lookup become measurable. The engine pre-calculates <code>_incoming_data_conns</code> and <code>_driven_by_flow</code> once per run to avoid per-node O(n) scans. The main loop is O(n + e) where n = node count and e = connection count. Execution time is dominated by <code>execute()</code> coroutine time, not engine overhead.</p>
1084
+ <h3 id="memory">Memory</h3>
1085
+ <p><code>node_results</code> stores every output value of every node. For nodes that output large data structures (big lists, numpy arrays, large strings), this can accumulate significant memory during a run. Values are discarded when <code>node_results</code> is reset at the next run's start. If memory is a concern, avoid storing large objects in <code>node_results</code> across the run — produce them, consume them, and release references.</p>
1086
+ <hr />
1087
+ <h2 id="21-runtime-layer-ai-orchestration-v240">21. Runtime Layer — AI Orchestration (v2.4.0+)</h2>
1088
+ <p><code>src/runtime/</code> is the seam between graph nodes (Layer 3) and DCC bridges / external MCP servers (Layer 5). Houdini AI nodes call this layer rather than calling the bridge directly. The Runtime Layer also operates <strong>fully headless</strong> as a standalone MCP server for Claude, Codex, and Cursor.</p>
1089
+ <h3 id="architecture-position">Architecture position</h3>
1090
+ <pre><code>NetworkExecutor → hou_mcp_* nodes → Runtime Layer → HouBridge → Houdini
1091
+ External AI → MCP stdio transport → Runtime Layer → HouBridge → Houdini
1092
+ </code></pre>
1093
+ <p>Both paths use the same <code>houdini_runtime</code>, <code>transaction_manager</code>, <code>validation_engine</code>, and <code>runtime_constraints</code>. Mutations are identical regardless of trigger source.</p>
1094
+ <h3 id="key-modules">Key modules</h3>
1095
+ <table>
1096
+ <thead>
1097
+ <tr>
1098
+ <th>Module</th>
1099
+ <th>Tier</th>
1100
+ <th>Responsibility</th>
1101
+ </tr>
1102
+ </thead>
1103
+ <tbody>
1104
+ <tr>
1105
+ <td><code>mcp_runtime.py</code></td>
1106
+ <td>1</td>
1107
+ <td>MCP client session registry (stdio + SSE)</td>
1108
+ </tr>
1109
+ <tr>
1110
+ <td><code>houdini_runtime.py</code></td>
1111
+ <td>1–2</td>
1112
+ <td><code>scene_context()</code>, <code>build_node_chain()</code>, <code>execute_operation()</code></td>
1113
+ </tr>
1114
+ <tr>
1115
+ <td><code>scene_cache.py</code></td>
1116
+ <td>1</td>
1117
+ <td>TTL cache + dirty tracking + visualization data</td>
1118
+ </tr>
1119
+ <tr>
1120
+ <td><code>transaction_manager.py</code></td>
1121
+ <td>2</td>
1122
+ <td><code>begin/record/commit/rollback</code> + rollback handler registry</td>
1123
+ </tr>
1124
+ <tr>
1125
+ <td><code>validation_engine.py</code></td>
1126
+ <td>2.5</td>
1127
+ <td>Structural + constraint pre-execution validator</td>
1128
+ </tr>
1129
+ <tr>
1130
+ <td><code>runtime_constraints.py</code></td>
1131
+ <td>2.75</td>
1132
+ <td>Policy-based gate (protected paths, forbidden ops, max ops)</td>
1133
+ </tr>
1134
+ <tr>
1135
+ <td><code>semantic_execution.py</code></td>
1136
+ <td>2.75</td>
1137
+ <td><code>SemanticRegistry → Constraints → ValidationEngine → Transaction</code></td>
1138
+ </tr>
1139
+ <tr>
1140
+ <td><code>ai_planner.py</code></td>
1141
+ <td>3</td>
1142
+ <td>Intent + context → validated execution plan</td>
1143
+ </tr>
1144
+ <tr>
1145
+ <td><code>approval_pipeline.py</code></td>
1146
+ <td>3</td>
1147
+ <td>Synchronous human-approval state machine</td>
1148
+ </tr>
1149
+ <tr>
1150
+ <td><code>mcp_tool_registry.py</code></td>
1151
+ <td>6</td>
1152
+ <td>All 14 semantic tool handlers</td>
1153
+ </tr>
1154
+ <tr>
1155
+ <td><code>mcp_transport.py</code></td>
1156
+ <td>6</td>
1157
+ <td>MCP stdio server (uses <code>mcp</code> SDK)</td>
1158
+ </tr>
1159
+ </tbody>
1160
+ </table>
1161
+ <h3 id="execution-safety-invariants">Execution safety invariants</h3>
1162
+ <p>Every path through the Runtime Layer enforces:</p>
1163
+ <ol>
1164
+ <li><code>ValidationEngine.validate_operations()</code> runs before any transaction begins.</li>
1165
+ <li><code>RuntimeConstraints.validate_transaction()</code> enforces policy gates (protected paths, max ops).</li>
1166
+ <li>Plans with <code>ok=False</code> are rejected before any bridge call.</li>
1167
+ <li>Plans with <code>requires_approval=True</code> block until <code>approver</code> is supplied.</li>
1168
+ <li><code>scene_cache.invalidate("scene_context::")</code> is called after every mutation.</li>
1169
+ <li>Rollback handlers never raise — exceptions are captured in <code>rollback_errors</code>.</li>
1170
+ </ol>
1171
+ <h3 id="running-the-mcp-server-standalone">Running the MCP server (standalone)</h3>
1172
+ <p>The MCP server is an optional extra. Install it and start the console entry point (or the source-checkout script):</p>
1173
+ <pre><code class="language-bash">pip install &quot;vibrante-node[mcp]&quot; # from a checkout: pip install &quot;.[mcp]&quot;
1174
+ vibrante-mcp # or: python scripts/run_vibrante_mcp.py
1175
+ </code></pre>
1176
+ <p>The server blocks on stdio until the client disconnects. All 14 semantic tools are available. Houdini-dependent tools connect to the live bridge automatically when port 18811 is reachable.</p>
1177
+ <nav class="page-nav">
1178
+ <a class="page-nav-link prev" href="05_node_development.html"><span class="page-nav-label">Previous</span><span class="page-nav-title">Node Development Guide</span></a>
1179
+ <a class="page-nav-link next" href="07_frontend_architecture.html"><span class="page-nav-label">Next</span><span class="page-nav-title">Frontend Architecture</span></a>
1180
+ </nav>
1181
+ <section class="licence-attribution" style="margin-top:40px;padding-top:14px;border-top:1px solid #313244;font-size:.82em;color:#a6adc8">
1182
+ <p>Documentation &amp;copy; 2024&amp;ndash;2026 Mahmoud Kamal (KamalTD), licensed under
1183
+ <a href="https://creativecommons.org/licenses/by/4.0/" rel="license">CC BY 4.0</a>.
1184
+ <a href="../LICENSE.txt">Full licence notice</a>.</p>
1185
+ <p>Search and syntax highlighting load <a href="https://lunrjs.com/">lunr.js</a> 2.3.9 (MIT)
1186
+ and <a href="https://highlightjs.org/">highlight.js</a> 11.9.0 (BSD-3-Clause) from
1187
+ cdn.jsdelivr.net at view time; neither library is redistributed with these files.</p>
1188
+ </section>
1189
+ </div>
1190
+ </main>
1191
+
1192
+ <!-- ── TOC ────────────────────────────────────────────────────────────── -->
1193
+ <aside class="toc">
1194
+ <div class="toc-title">On this page</div>
1195
+ <a class="toc-link toc-h2" href="#table-of-contents">Table of Contents</a>
1196
+ <a class="toc-link toc-h2" href="#1-execution-engine-overview">1. Execution Engine Overview</a>
1197
+ <a class="toc-link toc-h3" href="#what-networkexecutor-does">What NetworkExecutor does</a>
1198
+ <a class="toc-link toc-h3" href="#why-async">Why async</a>
1199
+ <a class="toc-link toc-h2" href="#2-event-loop-integration">2. Event Loop Integration</a>
1200
+ <a class="toc-link toc-h3" href="#how-_eventlooprunner-works">How _EventLoopRunner works</a>
1201
+ <a class="toc-link toc-h3" href="#lifecycle">Lifecycle</a>
1202
+ <a class="toc-link toc-h2" href="#3-execution-flow-diagram">3. Execution Flow Diagram</a>
1203
+ <a class="toc-link toc-h2" href="#4-entry-node-detection">4. Entry Node Detection</a>
1204
+ <a class="toc-link toc-h3" href="#flow-mode-exec-connections-present">Flow Mode (exec connections present)</a>
1205
+ <a class="toc-link toc-h3" href="#data-flow-mode-no-exec-connections">Data-Flow Mode (no exec connections)</a>
1206
+ <a class="toc-link toc-h2" href="#5-data-pull-recursion">5. Data-Pull Recursion</a>
1207
+ <a class="toc-link toc-h3" href="#the-data-pull-algorithm">The data-pull algorithm</a>
1208
+ <a class="toc-link toc-h3" href="#guards-against-double-execution">Guards against double-execution</a>
1209
+ <a class="toc-link toc-h3" href="#cache-invalidation-in-loops">Cache invalidation in loops</a>
1210
+ <a class="toc-link toc-h2" href="#6-execution-order-guarantees">6. Execution Order Guarantees</a>
1211
+ <a class="toc-link toc-h3" href="#exec-chain-order">Exec-chain order</a>
1212
+ <a class="toc-link toc-h3" href="#parallel-chains">Parallel chains</a>
1213
+ <a class="toc-link toc-h3" href="#data-node-order">Data node order</a>
1214
+ <a class="toc-link toc-h2" href="#7-loop-execution">7. Loop Execution</a>
1215
+ <a class="toc-link toc-h3" href="#foreach">ForEach</a>
1216
+ <a class="toc-link toc-h3" href="#whileloop">WhileLoop</a>
1217
+ <a class="toc-link toc-h2" href="#8-groupnode-sub-executor">8. GroupNode Sub-Executor</a>
1218
+ <a class="toc-link toc-h3" href="#memory-preservation">Memory preservation</a>
1219
+ <a class="toc-link toc-h3" href="#input-injection">Input injection</a>
1220
+ <a class="toc-link toc-h3" href="#output-collection">Output collection</a>
1221
+ <a class="toc-link toc-h3" href="#error-propagation">Error propagation</a>
1222
+ <a class="toc-link toc-h2" href="#9-bypass-handling">9. Bypass Handling</a>
1223
+ <a class="toc-link toc-h2" href="#10-init_priority-system">10. init_priority System</a>
1224
+ <a class="toc-link toc-h3" href="#execution-order">Execution order</a>
1225
+ <a class="toc-link toc-h3" href="#use-cases">Use cases</a>
1226
+ <a class="toc-link toc-h3" href="#init_only-mode">init_only mode</a>
1227
+ <a class="toc-link toc-h2" href="#11-error-propagation">11. Error Propagation</a>
1228
+ <a class="toc-link toc-h3" href="#groupnode-error-propagation">GroupNode error propagation</a>
1229
+ <a class="toc-link toc-h3" href="#manual-error-handling-in-nodes">Manual error handling in nodes</a>
1230
+ <a class="toc-link toc-h2" href="#12-cancellation">12. Cancellation</a>
1231
+ <a class="toc-link toc-h3" href="#cooperative-cancellation-inside-long-nodes">Cooperative cancellation inside long nodes</a>
1232
+ <a class="toc-link toc-h2" href="#13-node_results-dictionary">13. node_results Dictionary</a>
1233
+ <a class="toc-link toc-h3" href="#population">Population</a>
1234
+ <a class="toc-link toc-h3" href="#use-by-the-wire-value-inspector">Use by the wire value inspector</a>
1235
+ <a class="toc-link toc-h2" href="#14-signal-catalogue">14. Signal Catalogue</a>
1236
+ <a class="toc-link toc-h3" href="#connecting-to-signals-from-outside-the-executor">Connecting to signals from outside the executor</a>
1237
+ <a class="toc-link toc-h2" href="#15-state-management">15. State Management</a>
1238
+ <a class="toc-link toc-h3" href="#what-is-reset-on-each-run">What is reset on each run</a>
1239
+ <a class="toc-link toc-h3" href="#what-persists-between-runs">What persists between runs</a>
1240
+ <a class="toc-link toc-h3" href="#basenodememory">BaseNode.memory</a>
1241
+ <a class="toc-link toc-h2" href="#16-graphmanager">16. GraphManager</a>
1242
+ <a class="toc-link toc-h3" href="#key-attributes">Key attributes</a>
1243
+ <a class="toc-link toc-h3" href="#cycle-detection">Cycle detection</a>
1244
+ <a class="toc-link toc-h3" href="#serialization">Serialization</a>
1245
+ <a class="toc-link toc-h2" href="#17-noderegistry">17. NodeRegistry</a>
1246
+ <a class="toc-link toc-h3" href="#three-storage-maps">Three storage maps</a>
1247
+ <a class="toc-link toc-h3" href="#loading-order-on-startup">Loading order on startup</a>
1248
+ <a class="toc-link toc-h3" href="#json-node-registration">JSON node registration</a>
1249
+ <a class="toc-link toc-h3" href="#hot-reload">Hot-reload</a>
1250
+ <a class="toc-link toc-h3" href="#prism-auto-rewrite">Prism auto-rewrite</a>
1251
+ <a class="toc-link toc-h2" href="#18-basenode-contract">18. BaseNode Contract</a>
1252
+ <a class="toc-link toc-h3" href="#required">Required</a>
1253
+ <a class="toc-link toc-h3" href="#optional-hooks">Optional hooks</a>
1254
+ <a class="toc-link toc-h3" href="#streaming-outputs">Streaming outputs</a>
1255
+ <a class="toc-link toc-h2" href="#19-saferuntime-and-error-isolation">19. SafeRuntime and Error Isolation</a>
1256
+ <a class="toc-link toc-h2" href="#20-performance-considerations">20. Performance Considerations</a>
1257
+ <a class="toc-link toc-h3" href="#blocking-calls-are-dangerous">Blocking calls are dangerous</a>
1258
+ <a class="toc-link toc-h3" href="#offloading-cpu-work">Offloading CPU work</a>
1259
+ <a class="toc-link toc-h3" href="#houdini-bridge-latency">Houdini bridge latency</a>
1260
+ <a class="toc-link toc-h3" href="#graph-size">Graph size</a>
1261
+ <a class="toc-link toc-h3" href="#memory">Memory</a>
1262
+ <a class="toc-link toc-h2" href="#21-runtime-layer-ai-orchestration-v240">21. Runtime Layer — AI Orchestration (v2.4.0+)</a>
1263
+ <a class="toc-link toc-h3" href="#architecture-position">Architecture position</a>
1264
+ <a class="toc-link toc-h3" href="#key-modules">Key modules</a>
1265
+ <a class="toc-link toc-h3" href="#execution-safety-invariants">Execution safety invariants</a>
1266
+ <a class="toc-link toc-h3" href="#running-the-mcp-server-standalone">Running the MCP server (standalone)</a>
1267
+ </aside>
1268
+
1269
+ <script src="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/highlight.min.js"></script>
1270
+ <script src="https://cdn.jsdelivr.net/npm/lunr@2.3.9/lunr.min.js"></script>
1271
+ <script>
1272
+ // ── Search ──────────────────────────────────────────────────────────────
1273
+ let _idx = null, _docs = [];
1274
+
1275
+ async function initSearch() {
1276
+ try {
1277
+ const base = document.getElementById('portal-base').dataset.base;
1278
+ const resp = await fetch(base + 'search.json');
1279
+ _docs = await resp.json();
1280
+ _idx = lunr(function() {
1281
+ this.ref('id');
1282
+ this.field('title', { boost: 10 });
1283
+ this.field('body');
1284
+ _docs.forEach((d, i) => {
1285
+ this.add({ id: i, title: d.title, body: d.body });
1286
+ });
1287
+ });
1288
+ } catch(e) { console.warn('Search index not available', e); }
1289
+ }
1290
+
1291
+ function doSearch(q) {
1292
+ const box = document.getElementById('search-results');
1293
+ if (!q || q.length < 2) { box.classList.remove('visible'); return; }
1294
+ if (!_idx) { box.innerHTML = '<div class="search-no-results">Search index loading…</div>'; box.classList.add('visible'); return; }
1295
+ const results = _idx.search(q + '~1');
1296
+ if (!results.length) {
1297
+ box.innerHTML = '<div class="search-no-results">No results for "' + q + '"</div>';
1298
+ box.classList.add('visible'); return;
1299
+ }
1300
+ box.innerHTML = results.slice(0, 8).map(r => {
1301
+ const d = _docs[r.ref];
1302
+ const excerpt = d.body.substring(0, 140).replace(/[#*`]/g, '').trim() + '…';
1303
+ return `<a class="search-result-item" href="${d.url}">
1304
+ <div class="search-result-title">${d.title}</div>
1305
+ <div class="search-result-excerpt">${excerpt}</div>
1306
+ </a>`;
1307
+ }).join('');
1308
+ box.classList.add('visible');
1309
+ }
1310
+
1311
+ document.addEventListener('DOMContentLoaded', () => {
1312
+ initSearch();
1313
+ const inp = document.getElementById('search-input');
1314
+ if (inp) {
1315
+ inp.addEventListener('input', e => doSearch(e.target.value));
1316
+ inp.addEventListener('keydown', e => { if (e.key === 'Escape') { e.target.value=''; document.getElementById('search-results').classList.remove('visible'); }});
1317
+ }
1318
+ document.addEventListener('click', e => {
1319
+ if (!e.target.closest('.search-wrap')) document.getElementById('search-results')?.classList.remove('visible');
1320
+ });
1321
+ // Keyboard shortcut: / to focus search
1322
+ document.addEventListener('keydown', e => {
1323
+ if (e.key === '/' && !['INPUT','TEXTAREA'].includes(document.activeElement.tagName)) {
1324
+ e.preventDefault(); document.getElementById('search-input')?.focus();
1325
+ }
1326
+ });
1327
+
1328
+ // ── TOC active section ──────────────────────────────────────────────
1329
+ const tocLinks = document.querySelectorAll('.toc-link');
1330
+ const headings = document.querySelectorAll('h2[id],h3[id],h4[id]');
1331
+ if (tocLinks.length && headings.length) {
1332
+ const obs = new IntersectionObserver(entries => {
1333
+ entries.forEach(entry => {
1334
+ if (entry.isIntersecting) {
1335
+ tocLinks.forEach(l => l.classList.remove('active'));
1336
+ const link = document.querySelector(`.toc-link[href="#${entry.target.id}"]`);
1337
+ if (link) link.classList.add('active');
1338
+ }
1339
+ });
1340
+ }, { rootMargin: '-20% 0px -70% 0px' });
1341
+ headings.forEach(h => obs.observe(h));
1342
+ }
1343
+
1344
+ // ── Copy buttons ────────────────────────────────────────────────────
1345
+ document.querySelectorAll('pre').forEach(pre => {
1346
+ const btn = document.createElement('button');
1347
+ btn.className = 'copy-btn'; btn.textContent = 'Copy';
1348
+ btn.addEventListener('click', () => {
1349
+ const code = pre.querySelector('code');
1350
+ navigator.clipboard.writeText(code ? code.innerText : pre.innerText).then(() => {
1351
+ btn.textContent = 'Copied!'; btn.classList.add('copied');
1352
+ setTimeout(() => { btn.textContent = 'Copy'; btn.classList.remove('copied'); }, 2000);
1353
+ });
1354
+ });
1355
+ pre.style.position = 'relative';
1356
+ pre.appendChild(btn);
1357
+ });
1358
+
1359
+ // ── Sidebar active ──────────────────────────────────────────────────
1360
+ const cur = window.location.pathname.split('/').pop();
1361
+ document.querySelectorAll('.sidebar-link').forEach(l => {
1362
+ if (l.getAttribute('href') === cur || l.getAttribute('href').endsWith(cur)) l.classList.add('active');
1363
+ });
1364
+
1365
+ // ── highlight.js ────────────────────────────────────────────────────
1366
+ if (window.hljs) {
1367
+ hljs.configure({ ignoreUnescapedHTML: true });
1368
+ hljs.highlightAll();
1369
+ }
1370
+ });
1371
+ </script>
1372
+ </body>
1373
+ </html>