* feat: filter out base components path in custom component loading
* revert changes to allow testing the function
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
📝 (langflow/__main__.py): add line breaks before printing banners for better readability and separation of content
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
* feat: update OpenAI model parameters handling for reasoning models
* feat: extend input_value type in LCModelComponent to support AsyncIterator and Iterator
* refactor: remove assert_streaming_sequence method and related checks from Graph class
* feat: add consume_iterator method to Message class for handling iterators
* test: add unit tests for OpenAIModelComponent functionality and integration
* feat: update OpenAIModelComponent to include temperature and seed parameters in build_model method
* feat: rename consume_iterator method to consume_iterator_in_text and update its implementation for handling text
* feat: add is_connected_to_chat_output method to Component class for improved message handling
* feat: refactor LCModelComponent methods to support asynchronous message handling and improve chat output integration
* refactor: remove consume_iterator_in_text method from Message class and clean up LCModelComponent input handling
* fix: update import paths for input components in multiple starter project JSON files
* fix: enhance error message formatting in ErrorMessage class to handle additional exception attributes
* refactor: remove validate_stream calls from generate_flow_events and Graph class to streamline flow processing
* fix: handle asyncio.CancelledError in aadd_messagetables to ensure proper session rollback and retry logic
* refactor: streamline message handling in LCModelComponent by replacing async invocation with synchronous calls and updating message text handling
* refactor: enhance message handling in LCModelComponent by introducing lf_message for improved return value management and updating properties for consistency
* feat: add _build_source method to Component class for enhanced source handling and flexibility in source object management
* feat: enhance LCModelComponent by adding _handle_stream method for improved streaming response handling and refactoring chat output integration
* feat: update MemoryComponent to enhance message retrieval and storage functionality, including new sender type handling and output options for text and dataframe formats
* test: refactor LanguageModelComponent tests to use ComponentTestBaseWithoutClient and add tests for Google model creation and error handling
* test: add fixtures for API keys and implement live API tests for OpenAI, Anthropic, and Google models
* fix: reorder JSON properties for consistency in starter projects
* Updated JSON files for various starter projects to ensure consistent ordering of properties, specifically moving "type" to follow "selected_output" for better readability and maintainability.
* Affected files: Basic Prompt Chaining.json, Blog Writer.json, Financial Report Parser.json, Hybrid Search RAG.json, SEO Keyword Generator.json.
* refactor: simplify input_value type in LCModelComponent
* Updated the input_value parameter in LCModelComponent to remove AsyncIterator and Iterator types, streamlining the input options to only str and Message for improved clarity and maintainability.
* This change enhances the documentation and understanding of the expected input types for the component.
* fix: clarify comment for handling source in Component class
* refactor: remove unnecessary mocking in OpenAI model integration tests
* refactor: remove unused property and state management from StateVertex class
* feat: extend next runnable vertices for activated vertices in state vertices
* refactor: simplify ListenComponent by removing unused methods and updating inheritance
* refactor: update NotifyComponent to use new input/output structure and improve context handling
* feat: add is_state attribute to StateVertex for improved state management
* refactor: update input validation to exclude custom attributes from reserved words
* refactor: enhance ListenComponent and NotifyComponent with improved input types and output caching
- Updated ListenComponent to include additional input types for context_key.
- Modified NotifyComponent to use HandleInput for input_value and added input types.
- Set cache to False for the output in NotifyComponent to ensure fresh data retrieval.
* refactor: update state management in Graph class to improve handling of state vertices
- Changed _is_state_vertices to be initialized as None and updated its type hint.
- Added a property is_state_vertices to lazily compute state vertices when accessed.
- Refactored activate_state_vertices method to utilize the new property for better clarity and performance.
* refactor: update ListenComponent to return Data with text instead of data
- Modified the build method in ListenComponent to return Data initialized with a text field instead of a data field, enhancing clarity in data handling.
* refactor: update NotifyComponent to use input_value for data handling
- Modified the build method in NotifyComponent to replace input_data with input_value for improved clarity and consistency in data processing.
- Ensured that the context handling and status updates reflect the changes in input handling.
* refactor: simplify context key check in Graph class for better readability
* refactor: enhance Graph class to include recursive predecessor retrieval and update edge handling
* 📝 Add docstrings to `try-to-fix-listen-notify` (#8326)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes
* refactor: clean up unused imports and improve docstring formatting across components
* refactor: rename build method to notify_components and improve input handling in NotifyComponent
* refactor: rename build method to listen_for_data in ListenComponent for clarity
* fix: correct status assignment logic in NotifyComponent to ensure accurate state updates
* fix: handle None input value in NotifyComponent to ensure default Data initialization
* Make context_key required
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* 📝 Add docstrings to `try-to-fix-listen-notify` (#8442)
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
fix: remove duplicated import statement in nvidia_ingest (#8439)
* ✨ Implement caching logic for Listen/Notify components and enhance docstring for edge retrieval
- Added `_set_cache_if_listen_notify_components` method to disable caching for all vertices if Listen/Notify components are present, ensuring proper real-time communication.
- Improved docstring for `_get_edges_as_list_of_tuples` to clarify the return value and structure.
* 🔧 Refactor Graph class by removing state management methods
- Removed `get_state` and `update_state` methods from the `Graph` class to streamline state management.
- This change simplifies the class structure and focuses on enhancing the overall design of the graph handling.
* fix(listen): restrict input types to "Message" for ListenComponent
* refactor: remove deprecated components from deactivated module
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* feat: Add version management to Makefile for streamlined updates
* Introduced a new `patch` target in the Makefile to update version numbers across all projects.
* The target updates `pyproject.toml` and `package.json` files, syncing backend and frontend dependencies.
* Includes error handling for missing version argument and cleanup of backup files after updates.
* refactor: Replace sed commands with Python scripts for version updates in Makefile
* Updated the `patch` target in the Makefile to use Python for modifying version numbers in `pyproject.toml` and `package.json`, enhancing readability and maintainability.
* Removed cleanup of backup files as they are no longer created with the new approach.
* chore: Update Makefile to remove frozen flag from uv sync command
* Modified the `patch` target in the Makefile to remove the `--frozen` flag from the `uv sync` command, allowing for more flexible dependency synchronization.
* This change enhances the update process for backend dependencies.
* chore: Enhance Makefile patch target with validation and parallel dependency syncing
* Updated the `patch` target in the Makefile to include validation checks for version changes in `pyproject.toml` and `package.json`.
* Implemented parallel execution for syncing backend and frontend dependencies to improve efficiency.
* Added final state validation to ensure expected files are modified after the update process.
* Improved user feedback during the version update process with clear success and error messages.
* update display time for very short operations and fix outputs and titles
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* cleanup
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* ✨ (custom-get-download-folders.ts): update default filename to include folderName variable to provide more context and improve user experience
* ✨ (custom-get-download-folders.ts): update folder name from "My Projects" to "Starter Project" for better clarity and consistency
* 🐛 (custom-get-download-folders.ts): fix issue where folderName could be undefined, causing incorrect filename for download folder
* fix: Clean up some more base templates
* Fix icons in Pokedex Agent
* Update Price Deal Finder.json
* Update Social Media Agent.json
* Update Social Media Agent.json
* Update Memory Chatbot.json
* Conflict fix
* Update Memory Chatbot.json
* fix: Clean up some more base templates
* update simple agent and research translation loop
* update travel planning agent
* update
* change outpu
* update translation loop
---------
Co-authored-by: Eric Hare <ericrhare@gmail.com>
* 🔧 (langflow/__main__.py): Initialize console with Windows-safe settings to handle Unicode encoding issues and disable emoji processing for Windows systems
🔧 (langflow/__main__.py): Add fallback mechanisms for Windows systems with encoding issues to display banners without emojis and Rich formatting
* 🔧 (langflow/__main__.py): refactor console initialization to use a more concise and readable ternary expression
📝 (langflow/__main__.py): update print_banner function to log messages using logger instead of print for better consistency and maintainability
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat(auth): update AUTO_LOGIN authentication to enforce API key or JWT requirement
* Removed deprecated warning messages and implemented explicit HTTP exceptions for missing API key or JWT in both API and WebSocket authentication methods.
* Enhanced error handling to ensure compliance with the new authentication requirements introduced in v1.5.
* fix(auth): refine error message for AUTO_LOGIN API key requirement
* Updated the error message in the API key security function to clarify that AUTO_LOGIN requires a valid API key, removing the mention of JWT for consistency with the latest authentication requirements.
* feat(auth): introduce SKIP_AUTH_AUTO_LOGIN setting for enhanced authentication flexibility
* Added a new configuration option `SKIP_AUTH_AUTO_LOGIN` to the AuthSettings class, allowing the application to bypass API key validation for auto login.
* Updated the API and WebSocket security functions to utilize this setting, improving error handling and providing a fallback for superuser credentials when authentication is skipped.
* refactor(auth): rename SKIP_AUTH_AUTO_LOGIN to skip_auth_auto_login for consistency
* Updated the `SKIP_AUTH_AUTO_LOGIN` setting in the `AuthSettings` class to `skip_auth_auto_login` to follow Python naming conventions.
* Adjusted references in the API and WebSocket security functions to use the new attribute name, ensuring consistent behavior across the authentication logic.
* feat(auth): add deprecation warning for SKIP_AUTH_AUTO_LOGIN removal
* Introduced a warning log in both API and WebSocket security functions to inform users that the `LANGFLOW_SKIP_AUTH_AUTO_LOGIN` feature will be removed in version 1.6, prompting necessary updates to authentication methods.
* feat(auth): enhance deprecation warnings for AUTO_LOGIN features
* Added constants for deprecation warning and error messages related to `LANGFLOW_SKIP_AUTH_AUTO_LOGIN` and `AUTO_LOGIN` requirements, improving code maintainability and clarity.
* Updated API and WebSocket security functions to utilize these constants for logging and exception handling, ensuring consistent messaging across authentication methods.
* fix(auth): update AUTO_LOGIN_ERROR message to include LANGFLOW_SKIP_AUTH_AUTO_LOGIN usage
* fix(auth): correct logic for API key validation in WebSocket security function
* Adjusted the conditional flow in the `ws_api_key_security` function to ensure that the API key is checked only when necessary, improving the clarity and correctness of the authentication logic.
* [autofix.ci] apply automated fixes
* feat(tests): add authentication token retrieval for starter projects integration tests
* Implemented a helper function to obtain a JWT token for API requests, enhancing the security of the integration tests.
* Updated the test for starter projects to include the token in API requests, ensuring proper authentication during testing.
* feat(auth): add MCP-specific user authentication and active user dependency
* Introduced `get_current_user_mcp` function for MCP-specific user authentication, allowing fallback to username lookup when no API key is provided.
* Added `get_current_active_user_mcp` dependency to manage active user checks for MCP, ensuring proper integration with the authentication flow.
* refactor(api): replace user dependency with CurrentActiveMCPUser in mcp project endpoints
* Updated project-related API endpoints to use CurrentActiveMCPUser for user authentication, enhancing clarity and consistency in user management.
* Removed unused imports and dependencies related to the previous user authentication method, streamlining the codebase.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* add new pages
* cut and paste
* break up examples page and do some minor cleanup
* notes
* get started w api page
* revert yarn
* mc
* coderabbit
* minor edit
* add quickstart link
* peer review
* rewrite build endpoints intro
* Fixed template content component search bar
* Fixed size of notenode not applying to some instances
* Fixed generic node description not having char limit
* Update Vector Store RAG.json
* fix: make starter projects auto refactor not remove selected output (#8400)
* Fixed bug where starter projects were refactored incorrectly
* fix: improve handling of selected outputs in custom component template builder
- Added checks to ensure selected output is valid before attempting to set its state.
- Enhanced code readability with comments explaining the logic for selecting outputs.
* Set selected output as the previous selected output
* Update base.py
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* fix: made clean edges clean after changing dropdown of output (#8460)
fixed output considering all outputs not just selected one
* refactor(docker): remove --extra deploy flag from uv sync commands (#8485)
🔧 (build_and_push_with_extras.Dockerfile): remove unnecessary uv sync command options to improve build efficiency and reduce redundancy
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* fix: refactor mcp and freeze tests to be less prone to flaky results (#8486)
* Fixed mcp test to be less prone to errors
* Fix freeze spec
* fix: made button disabled state more congruent, made edit flow details submit on enter (#8339)
* Changed textarea classes
* Changed flowsettingscomponent to use form
* changed edit flow settings to use form and to submit on enter
* Reset form data on close
* Updated disabled state to have lower opacity instead of to have set background
* Fixed loading state of button
* Fix: chat memory store issue and fix output types (#8463)
* fix chat memory
* update template
* update update outputs
* update update outputs
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* ci: update setup-uv to possibly fix caching (#8490)
* update templates
* update templates
* First round of template updates
* Update templates
* fix: Update SaaS, Social Media, and YouTube json file (#8441)
* update SaaS, Social Media, and YouTube json file
* fix: make starter projects auto refactor not remove selected output (#8400)
* Fixed bug where starter projects were refactored incorrectly
* fix: improve handling of selected outputs in custom component template builder
- Added checks to ensure selected output is valid before attempting to set its state.
- Enhanced code readability with comments explaining the logic for selecting outputs.
* Set selected output as the previous selected output
* Update base.py
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* fix: made clean edges clean after changing dropdown of output (#8460)
fixed output considering all outputs not just selected one
* refactor(docker): remove --extra deploy flag from uv sync commands (#8485)
🔧 (build_and_push_with_extras.Dockerfile): remove unnecessary uv sync command options to improve build efficiency and reduce redundancy
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* fix: refactor mcp and freeze tests to be less prone to flaky results (#8486)
* Fixed mcp test to be less prone to errors
* Fix freeze spec
* fix: made button disabled state more congruent, made edit flow details submit on enter (#8339)
* Changed textarea classes
* Changed flowsettingscomponent to use form
* changed edit flow settings to use form and to submit on enter
* Reset form data on close
* Updated disabled state to have lower opacity instead of to have set background
* Fixed loading state of button
* Fix: chat memory store issue and fix output types (#8463)
* fix chat memory
* update template
* update update outputs
* update update outputs
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* ci: update setup-uv to possibly fix caching (#8490)
* update json
* fix custom component
* revert change
---------
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
* fix: templates (#8499)
* basic-prompting-template-updated
* show-system-message
* names
* blog-writer-tested
* financial-report-parser
* image-sentiment-analysis
* seo-keyword-generator
* seo-keyword-generator
* Merge branch 'fix-vector-search-template' into mendons-template-branch
---------
Co-authored-by: Eric Hare <ericrhare@gmail.com>
* Update Basic Prompting.json
* Update Blog Writer.json
* Further template updates
* Update Image Sentiment Analysis.json
* Update templates
* Update Financial Report Parser.json
* Update Market Research.json
* Update Market Research.json
* update several templates
* Update Image Sentiment Analysis.json
* Update Market Research.json
* Update image sentiment analysis template
* Update Market Research.json
* Update Custom Component Maker.json
* Update Custom Component Maker.json
* Update Hybrid Search RAG.json
* Update Hybrid Search RAG.json
* Update Hybrid Search RAG.json
* More template updates
* Update Financial Report Parser.json
* updated templates
* change custom component maker
* Update Twitter Thread Generator.json
* updates from main
* change model
* Update Research Translation Loop.json
* expanded output component to fix tests
* update template
* autofix
* fix error
* fix change back
* change back
* ci: Skip truncated values test for refactoring (#8670)
* refactor: simplify init target by removing cache cleanup and adding pre-commit hook (#8590)
* build: add pyyaml dependency
* refactor: simplify init command by removing cache cleaning and langflow run call
* refactor: simplify init target by removing cache cleanup and adding pre-commit hook
* refactor: update langchain_core.prompts import paths to use specific modules
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* feat: update structured output to multiline input and revise system prompt (#8585)
* Update structured_output.py
* [autofix.ci] apply automated fixes
* Update structured_output.py
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* update to prompt
* template updates
* Update src/backend/base/langflow/components/processing/structured_output.py
* [autofix.ci] apply automated fixes
* Update src/backend/base/langflow/components/processing/structured_output.py
* Update src/backend/base/langflow/components/processing/structured_output.py
* Update src/backend/base/langflow/components/processing/structured_output.py
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: add sessions endpoint with session management enhancements (#8596)
* 📝 (monitor.py): Add endpoint to get sessions and handle session_id encoding for API requests
📝 (use-get-messages-mutation.ts): Implement a mutation function to fetch messages with query parameters and handle session_id encoding for API requests
📝 (use-get-messages-polling.ts): Ensure proper encoding of session_id for API requests in polling mutation
📝 (use-get-messages.ts): Handle session_id encoding for API requests in messages query
📝 (new-modal.tsx): Implement functions to handle session deletion and proper encoding of session_id for API requests
📝 (utils.ts): Add functions to encode, decode, validate, format, and prepare session IDs for API requests
* 📝 (constants.ts): Add SESSIONS constant to API URLs for monitoring sessions
🔧 (use-delete-messages.ts): Add queryClient to UseRequestProcessor to invalidate sessions query
✨ (use-get-sessions-from-flow.ts): Introduce useGetSessionsFromFlowQuery to fetch sessions from flow
🔧 (use-rename-session.ts): Change refetchQueries to invalidateQueries for useGetSessionsFromFlowQuery
🔧 (custom-new-modal.tsx): Update import path for IOModal to playground-modal
🔧 (session-selector.tsx): Add setActiveSession function to handle setting active session
🔧 (sidebar-open-view.tsx): Add setActiveSession function to handle setting active session
♻️ (new-modal.tsx): Refactor IOModal into playground-modal and update functionality
♻️ (playground-modal.tsx): Refactor IOModal to handle playground-specific functionality
⬆️ (flowStore.ts): Add newChatOnPlayground state and setNewChatOnPlayground function
⬆️ (index.ts): Update FlowStoreType to include newChatOnPlayground and setNewChatOnPlayground
* 🔧 (pyproject.toml): update testpaths to point to the correct directory for tests
✨ (test_session_endpoint.py): add unit tests for sessions endpoint with flow_id filtering
♻️ (session-selector.tsx): refactor to trim editedSession before setting it
♻️ (sidebar-open-view.tsx): refactor to set visibleSession instead of activeSession
* ✨ (use-get-sessions-from-flow.ts): Always include the flow ID as the default session if it's not already present
♻️ (playground-modal.tsx): Refactor setting sessions to include currentFlowId as the default session if not present, and handle visibility of sessions more efficiently
* ♻️ (use-get-messages-mutation.ts): remove unused imports and refactor code for better readability and maintainability
* ✨ (test_session_endpoint.py): refactor test function names for better clarity and consistency
* ✨ (create-new-session-name.ts): add function to generate a new session name based on the current date and time
🔧 (playground-modal.tsx): import createNewSessionName function to dynamically set a new session name when no session is visible
* [autofix.ci] apply automated fixes
* ✨ (monitor.py): rename get_sessions endpoint to get_message_sessions for clarity and consistency
🔧 (constants.ts): remove unused SESSIONS constant from API URLs
🔧 (use-delete-messages.ts): remove commented out code and unnecessary comments
✨ (use-delete-sessions.ts): add functionality to delete sessions in frontend
🔧 (use-get-sessions-from-flow.ts): update API endpoint for getting sessions to match backend changes
🔧 (playground-modal.tsx): add functionality to delete sessions and associated messages in the UI, update UI optimistically, and handle errors appropriately
* [autofix.ci] apply automated fixes
* 🐛 (monitor.py): Fix type hinting issue in delete_messages function
📝 (monitor.py): Add comments and improve readability in test_messages_endpoints.py
📝 (session_endpoint.py): Update endpoint paths for consistency and clarity in test_session_endpoint.py
* [autofix.ci] apply automated fixes
* fix: update SQL statement to use col() for session_id filtering in get_message_sessions function
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* fix: implemented cached values and temporary MCP servers on MCP component (#8628)
* Added actionCount to fetch only servers without actionCount
* Updated queries and uses to use servers without action data first, and then to fetch them
* removed comment
* updated constants
* Added loading dropdown
* Make options persist
* Implemented new value format for McpComponent and implemented saving and removing temp Mcp Server if config is existent
* Changed value type
* Implemented cache and saving the server config
* Fixed mcp server test
* fix backend formatting
* fixed lint
* Added await
* Fixed save button not appearing when no servers are available
* added condition to only show save button when options is not null
* template autofix
* change template
* update text sentiment analysis
* change basic prompt back
* change image sentiment back
* update text sentiment and twitter
* Update Twitter Thread Generator.json
* Add back the input for the chat
* add change
* fix text sentiment
* update research translation
* Update Research Translation Loop.json
---------
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* ✨ (custom-get-download-folders.ts): update default filename to include folderName variable to provide more context and improve user experience
* ✨ (custom-get-download-folders.ts): update folder name from "My Projects" to "Starter Project" for better clarity and consistency
* 📝 (.github/changes-filter.yaml): add new directory 'serialization' to components list for changes filtering
🐛 (general-bugs-truncate-results.spec.ts): fix typo in 'truncated' word and update timeout for better test reliability
* 🔧 (custom-get-download-folders.ts): Remove unnecessary conditional statement and update default filename for download to "flows.zip" for better clarity.
* ✨ Add IS_AUTO_LOGIN constant to handle auto login feature in NodeInputField and TableNodeCellRender components
🔧 Add loginLangflow utility function to facilitate login process in tests
* ✨ (NodeInputField/index.tsx): introduce useIsAutoLogin hook to simplify logic for determining auto login status
✨ (tableNodeCellRender/index.tsx): introduce useIsAutoLogin hook to simplify logic for determining auto login status
📝 (use-is-auto-login.ts): add custom hook useIsAutoLogin to encapsulate logic for determining auto login status
* ✨ (language_model.py): update the options_metadata in DropdownInput to include a new model provider "GoogleGenerativeAI" for better user experience
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* 📝 (handleRenderComponent/index.tsx): Add useShallow import for zustand/react/shallow to optimize re-renders
📝 (handleRenderComponent/index.tsx): Introduce isLocked state to handle locked flow functionality
📝 (handleRenderComponent/index.tsx): Update tooltip visibility based on isLocked state
📝 (handleRenderComponent/index.tsx): Update handle style based on isLocked state
📝 (PageComponent/index.tsx): Add useShallow import for zustand/react/shallow to optimize re-renders
📝 (PageComponent/index.tsx): Introduce isLocked state to handle locked flow functionality
📝 (PageComponent/index.tsx): Prevent edge click actions when flow is locked
📝 (PageComponent/index.tsx): Disable edge actions when flow is locked
📝 (PageComponent/index.tsx): Update edge actions based on isLocked state
📝 (lock-flow.spec.ts): Add test to simulate deleting edges when flow is locked
* ✨ (lock-flow.spec.ts): add functionality to try connecting nodes and handle edge cases when connecting nodes in the flow diagram.
* Clean up initialiation of uv run langflow run
* sigint fixes
* Log level fixes and gunicorn logs removal
* sqlalch contraints
* Add back banner for windows
* [autofix.ci] apply automated fixes
* handle sigint sigterms
* [autofix.ci] apply automated fixes
* handle multiple sigints
* more gracefully handle shutdown during init
* [autofix.ci] apply automated fixes
* swallow cancellation during log flush
* fix path import and cleanup
* [autofix.ci] apply automated fixes
* start with step logs
* 📝 (main.py): Comment out logger.info statement to prevent unnecessary logging of static files directory setup information.
* 💡 (langflow/__main__.py): Comment out logger.info message for initializing Langflow to reduce noise in logs and improve readability.
* uncomment logs, change to debug
* 📝 (langflow): remove redundant logger info messages in signal handlers and shutdown process
♻️ (langflow): refactor shutdown process to use a progress indicator for better visibility and control
♻️ (langflow): refactor initialization process to remove redundant logger info messages
📝 (langflow): add methods to print shutdown summary and farewell message after shutdown is complete
📝 (langflow): add method to create a progress indicator for shutdown steps
📝 (langflow): add predefined shutdown steps for Langflow shutdown process
📝 (langflow): add method to create a progress indicator with predefined Langflow initialization steps
📝 (langflow): add method to create a progress indicator with predefined Langflow shutdown steps
📝 (langflow): add predefined shutdown steps in reverse order of initialization
📝 (langflow): add predefined initialization steps for Langflow initialization process
📝 (langflow): add method to print a summary of all completed shutdown steps
* 📝 (api/v1/__init__.py): reorganize imports and include_router calls for better readability and maintainability
🔧 (api/v1/__init__.py): update __all__ list to explicitly include all routers for better module encapsulation
💡 (utils.py): add logging statement to indicate building custom components from specified paths
* Fix ordering of operations for windows builds
* use lowercase log levels for uvicorn
* converts log to lower if set from env var
* [autofix.ci] apply automated fixes
* use a subprocess for windows so progress step can complete
* [autofix.ci] apply automated fixes
* test subprocess for windows
* use subprocess for all architectures
* Clean up global vars and simplify shutdown
* [autofix.ci] apply automated fixes
* 📝 (progress.py): add platform check to use different characters and icons based on the operating system for better compatibility and user experience
* 📝 (langflow/__main__.py): use platform-specific characters for icons to prevent encoding issues and improve cross-platform compatibility
* test for windows
* remove print
* move windows blocking call outside of progres step
* [autofix.ci] apply automated fixes
* log cleanup and timeout of teardown
* remove seemingly unnecessary redirect
* [autofix.ci] apply automated fixes
* ruff
* Add init file to cli dir
* ruff:
:
* unused import
* mypy fixes
* mypy fixes
* [autofix.ci] apply automated fixes
* ruff
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes
* Try underscores so ci doesn't remove
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>