From 84fe3aaa156c9fb6d9063191e4e9f8dcc7ead4fb Mon Sep 17 00:00:00 2001 From: KATO Kanryu Date: Sun, 24 May 2026 19:38:32 +0900 Subject: [PATCH] Feat: Reorganize node imports for improved structure and clarity --- __init__.py | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/__init__.py b/__init__.py index 7f991ef..0d3726b 100644 --- a/__init__.py +++ b/__init__.py @@ -14,14 +14,18 @@ _NODES = [] WEB_DIRECTORY = "web" # Import individual node modules (Snake Case naming convention) try: - # Import Single Prompt node - from .nodes import text_nodes_single_prompt - _NODES.append(text_nodes_single_prompt.SinglePrompt) - # Import Join Strings node from .nodes import text_nodes_join_strings _NODES.append(text_nodes_join_strings.JoinStrings) + # Import Math (Int) node + from .nodes import math_nodes_int + _NODES.append(math_nodes_int.MathInt) + + # Import Multi Prompts node + from .nodes import text_nodes_multi_prompts + _NODES.append(text_nodes_multi_prompts.MultiPromptsTextDriven) + # Import Prompt Line node from .nodes import text_nodes_prompt_line _NODES.append(text_nodes_prompt_line.PromptLine) @@ -30,13 +34,18 @@ try: from .nodes import text_nodes_resolution_selector _NODES.append(text_nodes_resolution_selector.ResolutionSelector) + # Import Single Prompt node + from .nodes import text_nodes_single_prompt + _NODES.append(text_nodes_single_prompt.SinglePrompt) + + # Import Text Line Prompt node + from .nodes import text_nodes_text_line_prompt + _NODES.append(text_nodes_text_line_prompt.TextLinePromptTextDriven) + # Import Text Line Selector node from .nodes import text_nodes_text_line_selector _NODES.append(text_nodes_text_line_selector.TextLineSelector) - # Import Math (Int) node - from .nodes import math_nodes_int - _NODES.append(math_nodes_int.MathInt) log.info(f"Successfully loaded {len(_NODES)} nodes.") except Exception as e: log.error(f"Failed to load nodes: {e}")