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,246 @@
1
+ from src.utils.qt_compat import QtWidgets, QtCore, QtGui, QtSvg, Signal, exec_dialog
2
+
3
+ QDockWidget = QtWidgets.QDockWidget
4
+ QTreeWidget = QtWidgets.QTreeWidget
5
+ QTreeWidgetItem = QtWidgets.QTreeWidgetItem
6
+ QVBoxLayout = QtWidgets.QVBoxLayout
7
+ QWidget = QtWidgets.QWidget
8
+ QMenu = QtWidgets.QMenu
9
+ QAction = QtWidgets.QAction
10
+ QMessageBox = QtWidgets.QMessageBox
11
+ QStyle = QtWidgets.QStyle
12
+ QLineEdit = QtWidgets.QLineEdit
13
+ Qt = QtCore.Qt
14
+ QPoint = QtCore.QPoint
15
+ QSize = QtCore.QSize
16
+ QByteArray = QtCore.QByteArray
17
+ QIcon = QtGui.QIcon
18
+ QPixmap = QtGui.QPixmap
19
+ QPainter = QtGui.QPainter
20
+ QDrag = QtGui.QDrag
21
+ QMimeData = QtCore.QMimeData
22
+ QSvgRenderer = QtSvg.QSvgRenderer if QtSvg else None
23
+ from src.core.registry import NodeRegistry
24
+ from src.utils.paths import resource_path
25
+ import os
26
+ import re
27
+
28
+ class DraggableTreeWidget(QTreeWidget):
29
+ def __init__(self, parent=None):
30
+ super().__init__(parent)
31
+ self.setDragEnabled(True)
32
+ self._drag_start_pos = None
33
+
34
+ def mousePressEvent(self, event):
35
+ if event.button() == Qt.LeftButton:
36
+ self._drag_start_pos = event.pos()
37
+ super().mousePressEvent(event)
38
+
39
+ def mouseMoveEvent(self, event):
40
+ if not (event.buttons() & Qt.LeftButton):
41
+ return
42
+ if not self._drag_start_pos:
43
+ return
44
+ if (event.pos() - self._drag_start_pos).manhattanLength() < QtWidgets.QApplication.startDragDistance():
45
+ return
46
+
47
+ item = self.itemAt(self._drag_start_pos)
48
+ if not item:
49
+ return
50
+
51
+ node_id = item.data(0, Qt.UserRole)
52
+ if not node_id:
53
+ return
54
+
55
+ # Start Drag
56
+ drag = QDrag(self)
57
+ mime_data = QMimeData()
58
+ mime_data.setText(node_id)
59
+ mime_data.setData("application/x-node-id", QByteArray(node_id.encode("utf-8")))
60
+ drag.setMimeData(mime_data)
61
+
62
+ # Set a ghost icon for the drag
63
+ icon = item.icon(0)
64
+ if not icon.isNull():
65
+ pixmap = icon.pixmap(32, 32)
66
+ drag.setPixmap(pixmap)
67
+ drag.setHotSpot(QPoint(16, 16))
68
+
69
+ drag.exec_(Qt.CopyAction)
70
+
71
+ class LibraryPanel(QDockWidget):
72
+ # Signals
73
+ node_selected = Signal(str) # node_id
74
+ edit_requested = Signal(str) # node_id
75
+ delete_requested = Signal(str) # node_id
76
+
77
+ def __init__(self, parent=None):
78
+ super().__init__("Node Library", parent)
79
+ self.setObjectName("NodeLibraryDock")
80
+ self.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea)
81
+ self._is_dark_theme = True # Track current theme
82
+
83
+ self.container = QWidget()
84
+ self.layout = QVBoxLayout(self.container)
85
+
86
+ # Search Bar
87
+ self.search_bar = QLineEdit()
88
+ self.search_bar.setPlaceholderText("Search nodes...")
89
+ self.search_bar.textChanged.connect(self.refresh)
90
+ self.layout.addWidget(self.search_bar)
91
+
92
+ # Tree Widget for Categories
93
+ self.tree_widget = DraggableTreeWidget()
94
+ self.tree_widget.setHeaderHidden(True)
95
+ self.tree_widget.setIconSize(QSize(24, 24))
96
+ self.tree_widget.setContextMenuPolicy(Qt.CustomContextMenu)
97
+ self.tree_widget.customContextMenuRequested.connect(self._show_context_menu)
98
+ self.tree_widget.itemDoubleClicked.connect(self._on_item_double_clicked)
99
+
100
+ self.layout.addWidget(self.tree_widget)
101
+ self.setWidget(self.container)
102
+
103
+ self.refresh()
104
+ self.apply_theme(is_dark=True) # Default to dark theme as MainWindow does
105
+
106
+ def _load_svg_icon_with_color(self, svg_path, color):
107
+ """Load an SVG file and replace stroke color, return QIcon."""
108
+ if QSvgRenderer is None:
109
+ return None
110
+ try:
111
+ with open(svg_path, 'r', encoding='utf-8') as f:
112
+ svg_content = f.read()
113
+
114
+ # Replace stroke color (handles stroke="..." patterns)
115
+ svg_content = re.sub(r'stroke="[^"]*"', f'stroke="{color}"', svg_content)
116
+
117
+ # Create QIcon from modified SVG
118
+ svg_bytes = QByteArray(svg_content.encode('utf-8'))
119
+ renderer = QSvgRenderer(svg_bytes)
120
+
121
+ if renderer.isValid():
122
+ pixmap = QPixmap(24, 24)
123
+ pixmap.fill(Qt.transparent)
124
+ painter = QPainter(pixmap)
125
+ renderer.render(painter)
126
+ painter.end()
127
+ return QIcon(pixmap)
128
+ except Exception as e:
129
+ print(f"[ICON] Error loading SVG {svg_path}: {e}")
130
+
131
+ return None
132
+
133
+ def apply_theme(self, is_dark=True):
134
+ self._is_dark_theme = is_dark
135
+ if is_dark:
136
+ # Dark theme: background #2b2b2b (matches window background) or #3c3f41 (dark gray)
137
+ # Text: white/light-gray
138
+ self.container.setStyleSheet("background-color: #2b2b2b; color: white;")
139
+ self.tree_widget.setStyleSheet("""
140
+ QTreeWidget { background-color: #3c3f41; color: #ffffff; border: 1px solid #2b2b2b; }
141
+ QTreeWidget::item:hover { background-color: #4b4d4d; }
142
+ QTreeWidget::item:selected { background-color: #5c5e5e; }
143
+ """)
144
+ self.search_bar.setStyleSheet("background-color: #3c3f41; color: white; border: 1px solid #2b2b2b;")
145
+ else:
146
+ # Light theme: background light gray (#f0f0f0), text black
147
+ self.container.setStyleSheet("background-color: #f0f0f0; color: black;")
148
+ self.tree_widget.setStyleSheet("""
149
+ QTreeWidget { background-color: #ffffff; color: #000000; border: 1px solid #cccccc; }
150
+ QTreeWidget::item:hover { background-color: #e0e0e0; }
151
+ QTreeWidget::item:selected { background-color: #d0d0d0; }
152
+ """)
153
+ self.search_bar.setStyleSheet("background-color: #ffffff; color: black; border: 1px solid #cccccc;")
154
+
155
+ # Refresh icons with new theme color
156
+ self.refresh()
157
+
158
+ def refresh(self):
159
+ self.tree_widget.clear()
160
+ search_text = self.search_bar.text().lower()
161
+ node_ids = NodeRegistry.list_node_ids()
162
+
163
+ # Determine icon color based on theme
164
+ icon_color = "white" if self._is_dark_theme else "black"
165
+
166
+ categories = {} # category_name -> List of (node_id, icon)
167
+
168
+ for node_id in node_ids:
169
+ if search_text and search_text not in node_id.lower():
170
+ continue
171
+
172
+ defn = NodeRegistry.get_definition(node_id)
173
+ category = defn.category if defn else "General"
174
+
175
+ if category not in categories:
176
+ categories[category] = []
177
+
178
+ # Icon logic - use theme-appropriate color for SVG icons
179
+ icon = self.style().standardIcon(QStyle.SP_FileIcon)
180
+ if defn and defn.icon_path:
181
+ rp = resource_path(defn.icon_path)
182
+ abs_path = os.path.abspath(defn.icon_path)
183
+
184
+ icon_file = None
185
+ if os.path.exists(rp):
186
+ icon_file = rp
187
+ elif os.path.exists(abs_path):
188
+ icon_file = abs_path
189
+
190
+ if icon_file:
191
+ # For SVG files, load with theme-appropriate color
192
+ if icon_file.lower().endswith('.svg'):
193
+ custom_icon = self._load_svg_icon_with_color(icon_file, icon_color)
194
+ if custom_icon:
195
+ icon = custom_icon
196
+ else:
197
+ custom_icon = QIcon(icon_file)
198
+ if not custom_icon.isNull():
199
+ icon = custom_icon
200
+
201
+ categories[category].append((node_id, icon))
202
+
203
+ # Build Tree
204
+ for cat_name, nodes in sorted(categories.items()):
205
+ cat_item = QTreeWidgetItem(self.tree_widget)
206
+ cat_item.setText(0, cat_name)
207
+ cat_item.setIcon(0, self.style().standardIcon(QStyle.SP_DirIcon))
208
+ cat_item.setExpanded(True)
209
+
210
+ for node_id, icon in sorted(nodes):
211
+ node_item = QTreeWidgetItem(cat_item)
212
+ # Display the human-friendly name when available, and show description as tooltip
213
+ defn = NodeRegistry.get_definition(node_id)
214
+ # Normalize display name to Title Case for consistency
215
+ display_name = defn.name.title() if defn and getattr(defn, 'name', None) else node_id.title()
216
+ node_item.setText(0, display_name)
217
+ node_item.setIcon(0, icon)
218
+ node_item.setData(0, Qt.UserRole, node_id)
219
+ if defn and getattr(defn, 'description', None):
220
+ node_item.setToolTip(0, defn.description)
221
+
222
+ def _on_item_double_clicked(self, item, column):
223
+ node_id = item.data(0, Qt.UserRole)
224
+ if node_id:
225
+ self.node_selected.emit(node_id)
226
+
227
+ def _show_context_menu(self, pos):
228
+ item = self.tree_widget.itemAt(pos)
229
+ if not item:
230
+ return
231
+
232
+ node_id = item.data(0, Qt.UserRole)
233
+ if not node_id:
234
+ return
235
+
236
+ menu = QMenu()
237
+ edit_action = QAction("Edit Node", self)
238
+ edit_action.triggered.connect(lambda: self.edit_requested.emit(node_id))
239
+ menu.addAction(edit_action)
240
+
241
+ delete_action = QAction("Delete Node", self)
242
+ delete_action.triggered.connect(lambda: self.delete_requested.emit(node_id))
243
+ menu.addAction(delete_action)
244
+
245
+ _exec_menu = getattr(menu, 'exec', menu.exec_)
246
+ _exec_menu(self.tree_widget.mapToGlobal(pos))
src/ui/log_panel.py ADDED
@@ -0,0 +1,315 @@
1
+ from src.utils.qt_compat import QtWidgets, QtGui, QtCore, Signal, Slot
2
+
3
+ QDockWidget = QtWidgets.QDockWidget
4
+ QTextEdit = QtWidgets.QTextEdit
5
+ QWidget = QtWidgets.QWidget
6
+ QVBoxLayout = QtWidgets.QVBoxLayout
7
+ QPushButton = QtWidgets.QPushButton
8
+ QHBoxLayout = QtWidgets.QHBoxLayout
9
+ QToolBar = QtWidgets.QToolBar
10
+ QAction = QtWidgets.QAction
11
+ QStyle = QtWidgets.QStyle
12
+ QLineEdit = QtWidgets.QLineEdit
13
+ QCheckBox = QtWidgets.QCheckBox
14
+ QLabel = QtWidgets.QLabel
15
+ QFrame = QtWidgets.QFrame
16
+ QComboBox = QtWidgets.QComboBox
17
+ QTextCursor = QtGui.QTextCursor
18
+ QTextCharFormat = QtGui.QTextCharFormat
19
+ QColor = QtGui.QColor
20
+ QFont = QtGui.QFont
21
+ Qt = QtCore.Qt
22
+ from dataclasses import dataclass
23
+ from typing import Optional
24
+ import re
25
+
26
+ @dataclass
27
+ class LogEntry:
28
+ """Represents a single log entry with metadata."""
29
+ message: str
30
+ level: str
31
+ node_name: Optional[str] = None
32
+ entry_type: Optional[str] = None # 'input', 'output', 'execution', 'error', 'info'
33
+
34
+ class LogPanel(QDockWidget):
35
+ # Signal to allow thread-safe logging from background threads
36
+ log_signal = Signal(str, str)
37
+
38
+ def __init__(self, parent=None):
39
+ super().__init__("Event Log", parent)
40
+ self.setObjectName("EventLogDock")
41
+ self.setAllowedAreas(Qt.BottomDockWidgetArea | Qt.RightDockWidgetArea)
42
+
43
+ # Store all log entries
44
+ self._entries: list[LogEntry] = []
45
+ self._is_dark_theme = True
46
+
47
+ container = QWidget()
48
+ layout = QVBoxLayout(container)
49
+ layout.setContentsMargins(0, 0, 0, 0)
50
+ layout.setSpacing(2)
51
+
52
+ # === Filter Bar ===
53
+ filter_container = QWidget()
54
+ filter_layout = QHBoxLayout(filter_container)
55
+ filter_layout.setContentsMargins(4, 4, 4, 4)
56
+ filter_layout.setSpacing(8)
57
+
58
+ # Node name filter
59
+ filter_layout.addWidget(QLabel("Node:"))
60
+ self.node_filter = QLineEdit()
61
+ self.node_filter.setPlaceholderText("Filter by node name...")
62
+ self.node_filter.setMaximumWidth(200)
63
+ self.node_filter.textChanged.connect(self._apply_filters)
64
+ filter_layout.addWidget(self.node_filter)
65
+
66
+ # Separator
67
+ sep1 = QFrame()
68
+ sep1.setFrameShape(QFrame.VLine)
69
+ filter_layout.addWidget(sep1)
70
+
71
+ # Level filter checkboxes
72
+ filter_layout.addWidget(QLabel("Show:"))
73
+
74
+ self.filter_error = QCheckBox("Errors")
75
+ self.filter_error.setChecked(True)
76
+ self.filter_error.stateChanged.connect(self._apply_filters)
77
+ filter_layout.addWidget(self.filter_error)
78
+
79
+ self.filter_warning = QCheckBox("Warnings")
80
+ self.filter_warning.setChecked(True)
81
+ self.filter_warning.stateChanged.connect(self._apply_filters)
82
+ filter_layout.addWidget(self.filter_warning)
83
+
84
+ self.filter_info = QCheckBox("Info")
85
+ self.filter_info.setChecked(True)
86
+ self.filter_info.stateChanged.connect(self._apply_filters)
87
+ filter_layout.addWidget(self.filter_info)
88
+
89
+ self.filter_exec = QCheckBox("Execution")
90
+ self.filter_exec.setChecked(True)
91
+ self.filter_exec.stateChanged.connect(self._apply_filters)
92
+ filter_layout.addWidget(self.filter_exec)
93
+
94
+ self.filter_output = QCheckBox("Outputs")
95
+ self.filter_output.setChecked(True)
96
+ self.filter_output.stateChanged.connect(self._apply_filters)
97
+ filter_layout.addWidget(self.filter_output)
98
+
99
+ # Separator
100
+ sep2 = QFrame()
101
+ sep2.setFrameShape(QFrame.VLine)
102
+ filter_layout.addWidget(sep2)
103
+
104
+ # Silent Mode toggle
105
+ self.silent_mode = QCheckBox("Silent Mode")
106
+ self.silent_mode.setToolTip("Show only errors and warnings, hide info/execution/output messages")
107
+ self.silent_mode.setChecked(False)
108
+ self.silent_mode.stateChanged.connect(self._toggle_silent_mode)
109
+ filter_layout.addWidget(self.silent_mode)
110
+
111
+ # Separator
112
+ sep3 = QFrame()
113
+ sep3.setFrameShape(QFrame.VLine)
114
+ filter_layout.addWidget(sep3)
115
+
116
+ # Clear button
117
+ self.clear_btn = QPushButton("Clear")
118
+ self.clear_btn.setMaximumWidth(60)
119
+ self.clear_btn.clicked.connect(self.clear)
120
+ filter_layout.addWidget(self.clear_btn)
121
+
122
+ filter_layout.addStretch()
123
+
124
+ layout.addWidget(filter_container)
125
+
126
+ # === Log Area ===
127
+ self.log_area = QTextEdit()
128
+ self.log_area.setReadOnly(True)
129
+ self.log_area.setLineWrapMode(QTextEdit.NoWrap)
130
+
131
+ font = QFont("Courier New", 10)
132
+ self.log_area.setFont(font)
133
+
134
+ layout.addWidget(self.log_area)
135
+ self.setWidget(container)
136
+
137
+ # Connect signal to the internal handler
138
+ self.log_signal.connect(self._handle_log)
139
+
140
+ # Apply initial theme
141
+ self.apply_theme(is_dark=True)
142
+
143
+ def apply_theme(self, is_dark=True):
144
+ self._is_dark_theme = is_dark
145
+ bg_color = "#1e1e1e" if is_dark else "#ffffff"
146
+ text_color = "#d4d4d4" if is_dark else "#000000"
147
+ filter_bg = "#2b2b2b" if is_dark else "#f5f5f5"
148
+ input_bg = "#3c3f41" if is_dark else "#ffffff"
149
+ border_color = "#444" if is_dark else "#ccc"
150
+
151
+ self.log_area.setStyleSheet(f"background-color: {bg_color}; color: {text_color}; border: none;")
152
+
153
+ # Style filter container
154
+ filter_style = f"""
155
+ QWidget {{ background-color: {filter_bg}; color: {text_color}; }}
156
+ QLineEdit {{
157
+ background-color: {input_bg};
158
+ color: {text_color};
159
+ border: 1px solid {border_color};
160
+ padding: 2px 4px;
161
+ border-radius: 3px;
162
+ }}
163
+ QCheckBox {{ color: {text_color}; }}
164
+ QLabel {{ color: {text_color}; }}
165
+ QPushButton {{
166
+ background-color: {input_bg};
167
+ color: {text_color};
168
+ border: 1px solid {border_color};
169
+ padding: 2px 8px;
170
+ border-radius: 3px;
171
+ }}
172
+ QPushButton:hover {{
173
+ background-color: {"#4a4d4e" if is_dark else "#e0e0e0"};
174
+ }}
175
+ QFrame {{ color: {border_color}; }}
176
+ """
177
+ self.widget().findChild(QWidget).setStyleSheet(filter_style)
178
+ self.update()
179
+
180
+ def log(self, message: str, level: str = "info"):
181
+ """Thread-safe logging method."""
182
+ self.log_signal.emit(message, level)
183
+
184
+ def _extract_node_name(self, message: str) -> Optional[str]:
185
+ """Extract node name from log message."""
186
+ # Patterns like: "Node 'NodeName' ...", "[NodeName] ...", "Node 'NodeName'"
187
+ patterns = [
188
+ r"Node '([^']+)'",
189
+ r"\[([^\]]+)\]",
190
+ r"'([^']+)' (started|output|error|finished)",
191
+ ]
192
+ for pattern in patterns:
193
+ match = re.search(pattern, message)
194
+ if match:
195
+ return match.group(1)
196
+ return None
197
+
198
+ def _determine_entry_type(self, message: str, level: str) -> str:
199
+ """Determine the type of log entry for filtering."""
200
+ msg_lower = message.lower()
201
+ if level == "error":
202
+ return "error"
203
+ elif "output" in msg_lower or "->" in message:
204
+ return "output"
205
+ elif "input" in msg_lower:
206
+ return "input"
207
+ elif level == "execution" or "started" in msg_lower or "finished" in msg_lower:
208
+ return "execution"
209
+ else:
210
+ return "info"
211
+
212
+ @Slot(str, str)
213
+ def _handle_log(self, message: str, level: str):
214
+ """Store entry and update display."""
215
+ # Silent mode fast path: skip all processing for non-error/warning messages
216
+ if self.silent_mode.isChecked() and level not in ("error", "warning"):
217
+ return
218
+
219
+ node_name = self._extract_node_name(message)
220
+ entry_type = self._determine_entry_type(message, level)
221
+
222
+ entry = LogEntry(
223
+ message=message,
224
+ level=level,
225
+ node_name=node_name,
226
+ entry_type=entry_type
227
+ )
228
+ self._entries.append(entry)
229
+
230
+ # Check if entry passes current filters before adding
231
+ if self._entry_passes_filter(entry):
232
+ self._append_entry_to_display(entry)
233
+
234
+ def _entry_passes_filter(self, entry: LogEntry) -> bool:
235
+ """Check if an entry passes the current filters."""
236
+ # Node name filter
237
+ node_filter_text = self.node_filter.text().strip().lower()
238
+ if node_filter_text:
239
+ if entry.node_name is None:
240
+ return False
241
+ if node_filter_text not in entry.node_name.lower():
242
+ return False
243
+
244
+ # Level filters
245
+ if entry.level == "error" and not self.filter_error.isChecked():
246
+ return False
247
+ if entry.level == "warning" and not self.filter_warning.isChecked():
248
+ return False
249
+ if entry.level == "info" and not self.filter_info.isChecked():
250
+ return False
251
+ if entry.level == "execution" and not self.filter_exec.isChecked():
252
+ return False
253
+ if entry.level == "success" and entry.entry_type == "output" and not self.filter_output.isChecked():
254
+ return False
255
+
256
+ return True
257
+
258
+ def _append_entry_to_display(self, entry: LogEntry):
259
+ """Add a single entry to the log display."""
260
+ cursor = self.log_area.textCursor()
261
+ cursor.movePosition(QTextCursor.End)
262
+
263
+ format = QTextCharFormat()
264
+ if entry.level == "error":
265
+ format.setForeground(QColor("#ff5555")) # Red
266
+ prefix = "[ERROR] "
267
+ elif entry.level == "warning":
268
+ format.setForeground(QColor("#ffb86c")) # Orange
269
+ prefix = "[WARN] "
270
+ elif entry.level == "success":
271
+ format.setForeground(QColor("#50fa7b")) # Green
272
+ prefix = "[OK] "
273
+ elif entry.level == "execution":
274
+ format.setForeground(QColor("#8be9fd")) # Cyan
275
+ prefix = "[EXEC] "
276
+ else: # info
277
+ format.setForeground(QColor("#bd93f9")) # Purple
278
+ prefix = "[INFO] "
279
+
280
+ cursor.setCharFormat(format)
281
+ cursor.insertText(f"{prefix}{entry.message}\n")
282
+ self.log_area.setTextCursor(cursor)
283
+ self.log_area.ensureCursorVisible()
284
+
285
+ def _apply_filters(self):
286
+ """Re-render the log display based on current filters."""
287
+ self.log_area.clear()
288
+ for entry in self._entries:
289
+ if self._entry_passes_filter(entry):
290
+ self._append_entry_to_display(entry)
291
+
292
+ def clear(self):
293
+ """Clear all log entries."""
294
+ self._entries.clear()
295
+ self.log_area.clear()
296
+
297
+ def _toggle_silent_mode(self, state):
298
+ """Toggle silent mode: when active, disable and uncheck Info, Execution, Outputs.
299
+ When deactivated, re-enable and re-check them.
300
+ """
301
+ is_silent = state == Qt.Checked
302
+ if is_silent:
303
+ self.filter_info.setChecked(False)
304
+ self.filter_exec.setChecked(False)
305
+ self.filter_output.setChecked(False)
306
+ else:
307
+ self.filter_info.setChecked(True)
308
+ self.filter_exec.setChecked(True)
309
+ self.filter_output.setChecked(True)
310
+
311
+ self.filter_info.setEnabled(not is_silent)
312
+ self.filter_exec.setEnabled(not is_silent)
313
+ self.filter_output.setEnabled(not is_silent)
314
+ self._apply_filters()
315
+