- Refactored PromptManagerAdvanced to introduce _PROMPT_MANAGER_RECIPE_KEY for better data handling.
- Changed input and output types in RecipeBuilder, WorkflowBuilder, and related classes to use MANAGER_DATA.
- Updated recipe_model_loader, recipe_relay, and recipe_renderer to accept and return MANAGER_DATA.
- Added new JavaScript file for Prompt Library Hub, enabling better management and interaction with saved prompts.
- Enhanced UI components for browsing, importing, and exporting prompts in the library hub.
- Added a new system prompt selector widget to the prompt generator.
- Integrated fetching and displaying of system prompts from the API.
- Implemented navigation through prompts with arrow buttons and a thumbnail browser.
- Enhanced user experience with improved styling and event handling.
refactor: Enhance error handling and logging in prompt_generator.py
- Introduced custom error classes for better error management.
- Added logging capabilities to capture startup errors and provide actionable feedback.
- Improved model selection logic to handle missing models and provide fallbacks.
test: Add comprehensive tests for prompt generator functionality
- Created tests for the new system prompt selector in prompt_generator_selector.test.mjs.
- Implemented unit tests for model selection and error handling in test_prompt_generator_models.py.
- Ensured coverage for various scenarios including fallback mechanisms and user interactions.
- Updated version number in pyproject.toml to 2.7.2.
- Introduced a new module `system_prompt_converter.py` for converting legacy system prompt formats to a new category-based structure.
- The converter supports in-place JSON file conversion with optional backup creation.
- Ensured that all system prompt categories are present in the converted data.
- Introduced Prompt Manager, Prompt Generator, Prompt Extractor, and Prompt Model Loader.
- Added Workflow Extractor, Builder, Renderer, and Manager for streamlined workflow management.
- Enhanced prompt saving with LoRA and trigger word support.
- Implemented dual LoRA stack functionality and improved metadata extraction from images and videos.
- Updated documentation to reflect new features and usage instructions.
- Version 2.0.0 release with significant improvements and new capabilities.
- Updated variable names, comments, and documentation to replace "workflow_data" with "recipe_data" across multiple files.
- Adjusted input and output types in nodes to reflect the new naming convention.
- Modified the functionality of nodes to ensure compatibility with the new "recipe_data" structure.
- Ensured that all references to workflow extraction and management are now aligned with the recipe terminology.
- Outline how ComfyUI handles tab switches and the lifecycle of node creation.
- Detail the serialization of node properties and the correct pattern for storing and restoring state.
- Emphasize critical rules for maintaining state and avoiding common pitfalls.
- Provide guidelines for DOM widget sizing and the use of flex properties to prevent layout issues.
- Include reference patterns and best practices for ensuring reliable UI behavior during tab persistence.