- Implemented a new prompt management system that allows users to save and manage prompts along with their associated LoRA stacks and trigger words.
- Introduced a user interface that mimics the legacy node's look, featuring a prompt bar, buttons for saving and creating new prompts, and a display for LoRA stacks.
- Added functionality to load, save, import, and delete prompts from a library, including handling of NSFW content.
- Implemented state management for edits to LoRAs and trigger words, ensuring changes are saved with prompts.
- Enhanced user experience with tooltips, context menus, and a responsive layout for managing LoRAs and trigger words.
Multi LoRA Relay takes lora_stacks (a MULTI_LORA_STACK, or a LORA_STACK as
slot A) and lora_stack_a..d, appends each slot input to its slot, and
outputs the set both ways, like Recipe Relay. Same results as Combine
followed by Splitter. Changelog: an Unreleased section for this and the
recent fixes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- nodes/prompt_library_routes.py: get-prompts, category and prompt create,
rename, delete, thumbnail, NSFW, import and the library file routes, each
answered at /prompt-manager/... and /prompt-manager-advanced/..., with one
error handler. Basic and Advanced had a copy each; the Basic node keeps
only its save route, Advanced its save and LoRA routes.
- Prompt rename finds the prompt whatever its case on both prefixes.
- py/prompt_metadata.py: the prompt a node output, recorded in the workflow
and API prompt save nodes embed; Basic now drops its llm_input link there
too, as Advanced does with its prompt link.
- Removed routes nothing calls: save-category-base-prompt,
save-category-prompt-prefix, get-prompt-data, list-checkpoints,
resolve-loras, and log-thumbnail with the browser call that only printed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- py/prompt_store.py: the one place prompt_manager_data.json is loaded,
seeded, sorted and saved, and the hidden category keys; Basic, Advanced,
Library Manager and startup use it instead of two class copies.
- Each load parsed the file about four times (the daily backup check ran on
every load); now once. The backup stays daily, at startup.
- An unreadable library with no readable backup loads empty instead of
being overwritten with the default prompts.
- First run no longer reports the file as missing or corrupt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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.
- Implemented a new node to create and manage MOSS-Image layouts.
- Added functionality to import and export layouts in various formats (JSON, percent, 0-1000).
- Introduced methods for cleaning and validating box data, converting between bounding boxes and layout formats.
- Integrated image background fitting and preview rendering capabilities.
- Enhanced user interface elements for layout management and visualization.
- Updated `prompt_manager_advanced.js` to support ComposerManager alongside existing managers.
- Modified node definitions to include ComposerManager and its specific functionalities.
- Enhanced workflow management to handle thumbnail images for ComposerManager.
- Introduced new `composer_manager.py` to manage recipe_data for Prompt Composer with thumbnail support.
- Updated `prompt_composer.py` to handle recipe_data payloads and synchronization modes.
- Improved `prompt_manager_adv.py` to accommodate recipe_data inputs and ensure compatibility with ComposerManager.
- 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.
- Implemented PromptMixerSelector to select and format prompt fragments with adjustable strength.
- Created PromptMixerStore for isolated JSON storage of prompt fragments, including loading, saving, and managing categories and prompts.
- Added API endpoints for retrieving, saving, renaming, and deleting prompts and categories.
- Introduced functionality for handling NSFW flags and thumbnail management for prompts.
- Renamed `PromptMixerStore` to `PromptComposerStore` in `prompt_composer_store.py` for consistency.
- Updated method names and comments to reflect the new naming convention.
- Added new JavaScript files: `prompt_composer_common.js` and `prompt_composer_manager.js` to handle prompt composer functionality.
- Implemented functions for loading, saving, deleting, and managing prompts in the composer.
- Enhanced UI components for prompt selection and management, including buttons for saving, creating, and deleting prompts.
- Integrated thumbnail preview functionality for prompts.
- Added JSON import/export capabilities for prompt data.
- Added a new PromptComposer node to compose prompt fragments from multiple selectable parts.
- Each part can store category, selected prompt names (multi-select), and strength.
- Introduced functions to normalize strength, format fragments, and resolve prompt prefixes.
- Enhanced prompt mixing functionality by allowing dynamic prompt selection based on user-defined parts.
- Added API endpoints for saving base prompts and prompt prefixes for categories.
- Updated UI components to support the new prompt composer features, including thumbnail zoom and context menus.
- Refactored existing code to improve handling of hidden category entries and prompt selection logic.
- Updated `prompt_mixer_manager.js` to handle both PromptMixerManager and PromptComposerManager.
- Changed export filename from `prompt_mixer_data.json` to `prompt_composer_data.json`.
- Modified `prompt_mixer_selector.js` to include a preview box in the mixer preview.
- Removed `prompt_mixer_manager.py` as it is no longer needed.
- Renamed `prompt_mixer_store.py` to `prompt_composer_store.py` and updated its functionality to support the new Prompt Composer structure.
- Added new `default_composer_prompts.json` for default prompts.
- Created `prompt_composer_manager.py` to manage Prompt Composer fragments.
- Updated server routes to handle Prompt Composer requests.
- Implemented PromptMixerManager for saving, loading, and editing prompt fragments.
- Created PromptMixerSelector for selecting prompt fragments with support for strength and random selection.
- Developed PromptMixerStore for managing isolated JSON storage of prompt fragments, including backup and restore functionality.
- Added API endpoints for managing prompt categories and fragments, including save, delete, rename, and toggle NSFW status.
- Implemented a new JavaScript module for the Expression Selector UI, allowing users to select and preview expressions stored in the Prompt Manager.
- Created a corresponding Python node to handle expression selection and substitution in prompts, including gender adaptations for pronouns.
- Integrated the expression selection functionality into the existing prompt management system, ensuring compatibility with current workflows.
- Added UI components for expression selection and preview, enhancing user experience and interaction.
- Introduced new utility functions in `path_browser.js` for media path classification and URL generation.
- Updated `prompt_extractor.js` to utilize new path handling functions for building preview URLs and resolving media sources.
- Improved image and video preview modals to use the new URL structure.
- Added support for browsing files from custom paths, including enhanced metadata extraction for media files.
- Refactored file listing and directory browsing in `prompt_extractor.py` to support new media types and improved error handling.
- Updated version to 2.5.3 in `pyproject.toml`.
- Introduced functions to ensure v2 recipe data structure and retrieve model blocks.
- Updated WorkflowManager to utilize new v2 model block structure for handling model_a and model_b.
- Refactored WorkflowRelay to accommodate model slot selection and improved handling of sampler and resolution settings.
- Enhanced RecipeRenderer to support rendering from specified model slots in v2 recipe data.
- Updated workflow_data_utils to normalize legacy recipe data into the new v2 format, preserving necessary fields.
- Improved handling of LoRA stacks and sampler configurations across different recipe data versions.
Co-authored-by: Copilot <copilot@github.com>
feat: Add Ernie family support in workflow components and update model handling
fix: Improve handling of missing injections in select rows and align family defaults