Commit graph

12,331 commits

Author SHA1 Message Date
Lucas Oliveira
0e6fc94dad
fix: added check to upload .md files correctly (#8017)
Added check to upload file type if file.type does not exist
2025-05-13 19:50:53 +00:00
Edwin Jose
d2919f228d
feat: add default user agent in api request component (#7631)
* Update api_request.py

* Update api_request.py

* Update api_request.py

* [autofix.ci] apply automated fixes

* Update src/backend/base/langflow/components/data/api_request.py

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* Update src/backend/base/langflow/components/data/api_request.py

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* Update api_request.py

* [autofix.ci] apply automated fixes

* fix format

* fix format issues

* [autofix.ci] apply automated fixes

* Template Update

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-13 19:36:40 +00:00
Lucas Oliveira
9ee4df696e
feat: add bulk download and delete flows (#7849)
* update input to have h-fit

* Update McpServerTab text size

* Update Tools Component

* Update header text sizes

* Update list component to match design

* Update home page paddings

* Update home page to use ListComponent in both views

* Delete Grid

* Update skeleton to match design

* Remove old grid reference

* Implemented different border on checkbox

* Added selected flows

* Added selected flows action buttons

* Added flow selection on list component

* Added get download flows

* Added download and delete functions

* change download flows to download one flow directly

* implement shift selection

* Fix ctrl and meta behavior on selection

* remove selected flows if they dont exist

* added control just if its not mac

* Updated deletion modal

* Fixed delete confirmation modal taking up space in grid

* Fixed data-testids and success messages

* Added bulk actions test and fixed actionsMainPage

* added max width to home page

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-13 18:58:02 +00:00
Will
327c0fd791
feat: Twelve Labs Bundle (#7837)
* feat: add twelve labs components

* fix: fix uv.lock for twelve labs components
2025-05-13 18:56:29 +00:00
Deon Sanchez
63e70a54e9
fix: edit flow name settings not to be empty (#8020)
* Revert "feat: enhance flow settings with minimum length validation and default naming (#7970)"

This reverts commit 116bee825c.

* feat: enhance flow settings with minimum length validation and default naming (#7970)

* feat: enhance flow settings with minimum length validation and default naming

* fix: remove console log from getFlowToAddToCanvas function

* test: add delay before filling flow name input to ensure stability

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-05-13 18:38:40 +00:00
Cristhian Zanforlin Lousa
056440842a
fix: revert #7970 and add tags to tests (#8019) 2025-05-13 12:41:05 -03:00
Gabriel Luiz Freitas Almeida
482aa5a7c4
fix: Use async file operations for error log management in MCPStdioClient (#8012) 2025-05-13 09:31:30 -03:00
jeevi cao
4ce5a4228c
feat: endpoint basic examples add cache Increase interface speed (#7124)
* Update py_autofix.yml

* feat: endpoint basic_examples add cache

* Revert "Update py_autofix.yml"

This reverts commit 7aed45e98602f57c2d6d33532080bad30cf02507.

* resolve conflicts

* refactor: update response handling in read_basic_examples function

---------

Co-authored-by: tianzhipeng <tzpabc@gmail.com>
Co-authored-by: caojianwei-jk <caojianwei-jk@360shuke.com>
2025-05-13 06:35:23 +00:00
Mike Fortman
f9b9598599
fix: File manager rerenders (#7999)
* Fix infinite rerender issue

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-12 20:16:54 +00:00
Deon Sanchez
b277058f0d
fix: add endpoint name support in API code generation (#7947)
* feat: add endpoint name support in API code generation

* fix: ensure endpoint_name is properly handled in flow saving and API tabs

* fix: simplify endpoint_name handling in useSaveFlow hook

* feat: add streaming support to code options in APITabsComponent

* fix: remove unused setCurrentFlow call in FlowSettingsModal
2025-05-12 20:09:50 +00:00
Edwin Jose
d461074107
feat: add validation for node js for npx based mcp command (#7907)
* add validation for node js for npx based packages

* [autofix.ci] apply automated fixes

* Update mcp_component.py

* Update mcp_component.py

* Update mcp_component.py

* Update util.py

* [autofix.ci] apply automated fixes

* Update util.py

* fix format errors

* merge

* fix async and format issues

* wacky idea

* bug: error on match only

* [autofix.ci] apply automated fixes

* fix error: Name "env" already defined on line 225  [no-redef]

* refactor: update MCPStdioClient to use async file handling for stderr logging

- Replaced synchronous tempfile usage with async version using aiofiles.
- Ensured proper type casting for the temporary file name.
- Updated flush operation to be asynchronous for improved performance.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: phact <estevezsebastian@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-12 19:51:40 +00:00
Edwin Jose
65c3aa478e
feat: add user agents to URL Component header (#7590)
* Update url.py

* Update url.py

* format fix

* added dataframe table input for header.

* Update url.py

* [autofix.ci] apply automated fixes

* Update url.py

* Update url.py

* remove unused variables

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-12 18:55:16 +00:00
Deon Sanchez
116bee825c
feat: enhance flow settings with minimum length validation and default naming (#7970)
* feat: enhance flow settings with minimum length validation and default naming

* fix: remove console log from getFlowToAddToCanvas function
2025-05-12 16:43:37 +00:00
github-actions[bot]
12c937ab40
chore: update test durations (#7989)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2025-05-12 09:10:38 -03:00
Mendon Kissling
62104258da
templates: update gmail template to use Gmail component instead of Composio (#7925)
* update-gmail-agent-component

* click-connect

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-05-09 21:39:17 +00:00
Lucas Democh
06a74bdffd
feat: Add multiline input to python REPL component (#7712)
* Update python_repl_core.py

Changed the input type to MultilineInput to allow code to be received from another component.

* [autofix.ci] apply automated fixes

* Update python_repl_core.py

* Update python_repl_core.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-05-09 21:36:19 +00:00
jeevi cao
5026124953
fix: Runflow component output error (#6942)
Co-authored-by: caojianwei-jk <caojianwei-jk@360shuke.com>
2025-05-09 20:35:47 +00:00
Akash Joshi
1b4b53d60d
feat: New custom component to execute google BigQuery(BQ) SQLs (#7922)
* adding a google bq component and unit tests

* [autofix.ci] apply automated fixes

* resolved conflicts

* Update test_google_bq_sql_executor_component.py

* [autofix.ci] apply automated fixes

* dataframe output to component

* Update google_bq_sql_executor.py

* [autofix.ci] apply automated fixes

* replacing tests for dataframes

* [autofix.ci] apply automated fixes

* adding capability to extract SQL statement from a text blob

* resolving test errors

* [autofix.ci] apply automated fixes

* resolving conflicts

* resolve conflicts

* resolving conflicts

* issue with json input test

* [autofix.ci] apply automated fixes

* fix format issues ruff

* Update google_bq_sql_executor.py

* Update google_bq_sql_executor.py

* Updating unit tests after clean query changes

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-05-09 20:35:23 +00:00
Mike Fortman
2efb7a6cad
refactor: move caching logic to styleUtils (#7968)
move caching logic to style utils
2025-05-09 18:19:09 +00:00
Lucas Oliveira
79e35834b5
feat: add breaking change update modal, refactor dismissed updates (#7882)
* fix: add optional method property to OutputFieldType

* feat: Enhance GenericNode with breaking change detection

- Added state management for breaking changes in GenericNode.
- Updated useCheckCodeValidity hook to evaluate breaking changes based on outputs and template keys.
- Improved node status color logic to reflect breaking changes and outdated code.
- Enhanced UI feedback for users with appropriate alerts and dismiss options.

* refactor: Improve breaking change handling in useCheckCodeValidity hook

- Simplified logic for detecting breaking changes and outdated code.
- Updated state management to ensure accurate status updates based on user inputs and templates.
- Enhanced readability by consolidating related checks into a single conditional structure.

* Fix outdated check

* Componentized breaking change

* Updated design of update handle on node

* Added small-update to modal sizes

* updated duplicate flow hook to duplicate just a flow

* Added update component modal with updating for single component

* Added new duplicateFlow on dropdown on main page

* use new update code modal on generic node

* delete check code validity

* add new check code vaildity util function

* removed unused sets from update node code

* Make componentsToUpdate contain breaking info

* Make Generic Node use Components to Update

* Change border in Node Status

* Stop propagation on node update

* Update update all components to have changes from figma

* updated flow store type and added components to update

* Update update component modal

* added icon on outdatedNodes

* Added id filtering on update components

* Added table with components to update

* Update styling

* Update update component modal to use table component

* Updated styles

* filter map

* Update select to not allow selecting texts on backup flow

* Update cursor for label

* Update text of backup flow

* Try to update selection

* Fix selection of components on opening modal

* Insert Update button on node toolbar if dismissed

* Added new parameters of node toolbar

* Added new types of node toolbar

* Removed update button from node status

* Updated shadcn theme

* Added dismiss by node, added dismissing to local storage, added correct update display

* Clarified update warnings in the UpdateComponentModal to better inform users about potential breaking changes and the need to reconnect components.

* Refactored update component visibility logic in GenericNode to use a memoized value for improved performance and readability.

* Updated test for outdated components to reflect changes in button selectors and improved visibility assertions for update notifications.

* Simplified visibility assertion in outdated components test to check for a more concise update message.

* Fixed edges not coming back after undoing

* Fixed breaking change check to not be checked if code is the same

* Fixed imports

* removed unused functions

* updated icon color

* updated test id

* updated for function to foreach

* updated data testid

* updated outdated flow

* removed flowToCanvas that caused bug when going from main page to flow page

* [autofix.ci] apply automated fixes

* Fixed outdated actions test

* fixed timeouts

* Added check for Backup

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-09 12:30:32 +00:00
Lucas Oliveira
c608a4fd5d
fix: make icon color follow dark mode, make name render correctly when passing flow from folder to another, add cache to icon (#7959)
* fixed icon color

* fixed id

* Fixed name not being resized

* Update isEmptyFlow when currentFlowId changes

* Adds cache to ForwardedIconComponent

* Updated cache to come from styleUtils

---------

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-05-08 22:00:09 +00:00
Lucas Oliveira
be1caf2b61
fix: reorder playground messages, fix scroll behavior (#7928)
* updated vite-env to stop svg loading lint errors

* added scroll direction package

* added new Chat Scroll Anchor

* removed scroll handling from chat message

* added scroll handling on chat view

* removed console.log

* Removed validator from table and added on messagebase

* removed validator from model

* changed to scroll down after error

* [autofix.ci] apply automated fixes

* fixed not scrolling to bottom

* fix constant

* refactor: update MessageTable model configuration for validation and type allowance

* refactor: update properties type in MessageTable model and adjust validation logic

* refactor: update content_blocks type in MessageTable model to allow dict or ContentBlock

* Fix playground failing when it's Run Flow

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-05-08 19:41:54 +00:00
Edwin Jose
5f900c9296
fix: make project id as a required field in watsonx components (#7937)
add required for project id
2025-05-08 19:12:53 +00:00
Gabriel Luiz Freitas Almeida
23664552c9
chore: Bump version to 1.4.1 for langflow and langflow-base (#7954)
chore: bump version to 1.4.1 for langflow and langflow-base

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-05-08 18:58:47 +00:00
Lucas Oliveira
4fbc2af92d
fix: add search functionality to code editor (#7949)
* Updated packages

* added external searchbox to not cause conflicts on run-cli and desktop

* Fixed lint error in code area modal
2025-05-08 16:13:55 +00:00
Nicholas Freybler
66fb4d471a
fix: voice mode progress response queue (#7938)
* progress update nudge

* progress update nudge

* nick's fix

* progress toggle

* typo

* fix auth and ws thread safety

* [autofix.ci] apply automated fixes

* fix deadlock

* delete commented function

* fix duplicate events

* [autofix.ci] apply automated fixes

* merge

* clean up log_event

* queues not locks

* response ids for 11L flow

* async bug

* Fix awaits

* ElevenLabsResponse -> Response

* queues not locks

* response_q

* comment

* small fix

* new response queue mechanism

* ignore duplicate events

* event logging

* process_text_deltas refactor to be a single thread/task and use AsyncElevenLabs. No longer need a text chunker. Significantly more stable.

* return the chunking

* reliable function calling and de-duplicating

* fix shadowed var names

* fix shadowed var names

* cleanup

* fix response id in response.audio.done

* FunctionCall

* [autofix.ci] apply automated fixes

* mypy

* 3.10 exceptions

---------

Co-authored-by: phact <estevezsebastian@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-08 00:02:17 +00:00
Lucas Oliveira
ad82222ecc
fix: update hide outputs behavior to show current state, update disabled button UI (#7917)
* Fixed hidden to be output.hidden

* Fixed disabled Hide button to look disabled

* Fixed lastInput being true to all fields

* Changed text

* fixed multiple renders

* fixed show hidden
2025-05-07 23:20:50 +00:00
Edwin Jose
ee706073db
fix: MCP Tool mode issue (#7944)
* refactor to ensure proper initiallisations

* [autofix.ci] apply automated fixes

* fix lint

* add comment on lint issue

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-07 21:42:28 +00:00
Edwin Jose
fbcb3ddf35
feat: Update mcp_component add advanced True for env and headers (#7909)
Update mcp_component.py
2025-05-07 20:48:45 +00:00
Cristhian Zanforlin Lousa
4995a19609
test: improve test reliability with updated selectors and utility functions (#7943)
 (auto-login-off.spec.ts): update text selector to match new welcome message for improved test accuracy
♻️ (user-flow-state-cleanup.spec.ts): refactor test to use the new welcome message selector for consistency and accuracy
📝 (autoLogin.spec.ts): add import statement for awaitBootstrapTest utility function to fix test failures due to missing import
2025-05-07 20:13:56 +00:00
Sebastián Estévez
d84ae71e7d
fix: mcp anyOf support (#7941)
* improve anyOf support

* explicitly handle simple nullable types

* mypy
2025-05-07 16:46:29 +00:00
Bar Nuri
2bfb2c02c3
chore: bump langchain and langsmith dependencies (#7934)
langchain-langsmith-bump-safer
2025-05-07 14:46:26 +00:00
Mike Fortman
d887646383
refactor: performance improvements for canvas controls/toolbar (#7930)
* performance improvements for canvas controls/toolbar

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-07 14:12:22 +00:00
Gabriel Luiz Freitas Almeida
8c0813f3d8
fix: make tool mode updates possible (#7931)
* refactor: streamline node update logic in setup.py

Simplified the conditions for updating project components by consolidating checks for tool mode and output types. This enhances readability and maintainability of the code while ensuring that updates are applied correctly based on the latest component versions.

* fix: refine field removal logic in update_projects_components_with_latest_component_versions

* feat: add 'description' to NODE_FORMAT_ATTRIBUTES in constants.py

Enhanced the NODE_FORMAT_ATTRIBUTES list by including 'description' to improve metadata handling for nodes.

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-05-07 12:45:07 +00:00
Lucas Oliveira
4f36583601
fix: removed gradient from icon when component is tool mode (#7929)
removed gradient from tool mode components
2025-05-06 23:38:54 +00:00
May Ramati Kroitero
8cabedae55
feat: Add Tavily search API parameters and Tavily Extract API component (#7644)
* Add Tavily search parameters and Extract API component

* [autofix.ci] apply automated fixes

* Fix style issues flagged by Ruff

* fix Ruff Style Check issues

* [autofix.ci] apply automated fixes

* Fix linting issue reported by Ruff

* fix inlcude and exclude domains

* Fix linting issue reported by Ruff

* fix: update descriptions and input types across multiple starter project JSON files

- Changed "Tavily AI" to "Tavily Search" in descriptions for consistency.
- Updated input types for several API keys to be empty arrays instead of containing "Message".
- Added new fields such as "chunks_per_source", "days", "exclude_domains", "include_domains", and "include_raw_content" to enhance functionality in various projects.
- Adjusted the "description" field in the "Youtube Analysis" project for clarity.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-06 22:38:14 +00:00
Jordan Frazier
793e5784d5
fix: suppress migration warnings on flow table (#7920)
Surpress migration warnings on flow table
2025-05-06 22:28:13 +00:00
Pedro Pacheco
12f35a0edc
fix: improvement to ollama component to allow for dynamic filtering based on model capabilities (#7696)
* Updated model filtering to avoid hard coding of named based exclusions

* Stylistic adjustments

* Remove accidentally added package-lock.json from PR

* revert removal of package lock

* Modifications to the UT and changed component to be more async

* [autofix.ci] apply automated fixes

* Lint

---------

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>
2025-05-06 17:10:32 +00:00
Mike Fortman
710b6f99b5
refactor: Reduce Sidebar Rerenders (#7699)
* menubar and hook optimizations

* sidebar optimizations

* [autofix.ci] apply automated fixes

* cleanup

* [autofix.ci] apply automated fixes

* sidebare button optimization

* 🐛 (typescript_test.yml): increase the maximum shard count to 40 to improve test distribution and performance

* Get state on focus instead of on keypress

* revert test shard change

* [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>
2025-05-06 16:11:47 +00:00
Sebastián Estévez
a04e5f56b8
feat: update sql component to support toolkit (#7652)
* update sql component

* cache

* Update src/backend/base/langflow/components/data/sql_executor.py

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* Update src/backend/base/langflow/components/data/sql_executor.py

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* [autofix.ci] apply automated fixes

* fix: sql query component (#7700)

* feat: Sql toolkit tests (#7842)

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gustavo Costa <gsantosaero@gmail.com>
2025-05-06 16:08:33 +00:00
Garrett George
986c4bcf24
Feature: Adds additional azure openai api versions (#7105)
* Adds additional azure openai api versions

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Garrett George <ggeorge@pros.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-06 13:58:57 +00:00
Jordan Frazier
e0ae3f69c2
fix: wait on loguru to flush async logs from services (#7908)
Allow loguru to flush async logs from services
2025-05-06 00:05:03 +00:00
Jordan Frazier
2c6ea9c98f
fix: truncate transaction and vertex messages (#7893)
* add pyinstrument and fastapi wrapper

* Truncate vertex build responses

* Truncate vertex response and transactions

* [autofix.ci] apply automated fixes

* Update test for vertex response structure to reflect new truncation logic

* Refactor profiling middleware to use environment variable for configuration

* Update test for vertex response structure to correct truncation logic

* move pyinstrument to dev dependencies

* Update serialization test to include max_items parameter for list truncation

* remove profiling from this PR, fix constants

* [autofix.ci] apply automated fixes

* Add asyncio configuration options to pyproject.toml

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-06 00:03:13 +00:00
Gabriel Luiz Freitas Almeida
304e28b48a
feat: event polling can process more than one event at a time (#7858)
* refactor: enhance event polling to retrieve all available events and return in NDJSON format

Updated the event polling logic to collect all available events from the queue instead of just one. The response format has been changed to NDJSON, allowing multiple events to be returned in a single response. Improved error handling for timeouts by returning an empty response instead of raising an error.

* refactor: improve NDJSON event processing in build polling

Enhanced the event polling logic to handle NDJSON responses by processing multiple events in a single fetch. Updated the response handling to read the response as text, split it into individual JSON objects, and process each event accordingly. This change improves the efficiency of event handling and maintains a consistent polling interval.

* fix: change event list type from list[str] to list in get_flow_events_response

* refactor: enhance event stream consumption with timeout and error handling

Updated the consume_and_assert_stream function to include a timeout for processing events and improved error handling for JSON parsing failures. Added logging for better debugging and tracking of processed events. Adjusted the event validation logic to ensure both the first and last expected events are present.

* refactor: enhance event polling logic with improved limits and JSON validation

Updated the event polling mechanism to include configurable limits for total events and empty polls, along with a timeout for requests. Enhanced JSON validation for individual events and added logging for better debugging of polling behavior. This refactor aims to improve robustness and maintainability of the event consumption process.

* refactor: update polling interval and streamline event handling

Modified the polling interval constant to improve responsiveness and adjusted event handling logic in the get_flow_events_response function to simplify the processing of event values. This change enhances the efficiency of event consumption and maintains a consistent approach to handling NDJSON responses.

* refactor: simplify event retrieval in get_flow_events_response

Removed unused event_id and put_time variables from the event retrieval logic in the get_flow_events_response function. This change streamlines the code and enhances readability while maintaining the functionality of event handling.

* refactor: update consume_and_assert_stream to use asyncio.wait_for for timeout handling

Modified the consume_and_assert_stream function to utilize asyncio.wait_for for managing timeouts in event processing. This change improves compatibility with Python 3.10 and enhances the robustness of the event consumption logic while maintaining existing functionality.
2025-05-05 22:20:04 +00:00
Lucas Oliveira
75deddd102
fix: re-add name and description editing on tool mode except for Composio, fix MCP server code (#7901)
* Changed backend to contain readonly props for tools

* Show name editing for not readonly tools

* Fixed edit-tools test

* Updated command to use "uvx" instead of "npx" for stability

* Fixed mcp code for authentication on auto_login=false

* removed args from component desc

* [autofix.ci] apply automated fixes

* making tool mode inputs the priority.

* fix: Clean up comments and whitespace in component_tool.py

* Fix column name

* update the dispaly name in composio

* fix format

*  (get-started-progress.tsx): add data-testid attribute to improve testability and accessibility
🔧 (user-progress-track.spec.ts): update test assertions to use the new data-testid attribute for get started progress title

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[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: cristhianzl <cristhian.lousa@gmail.com>
2025-05-05 21:20:19 +00:00
Bar Nuri
21f9182a82
fix: flow_runner better run_id and support stream (#7892)
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-05 19:16:07 -03:00
Edwin Jose
c5306643bb
fix: anthropic Model component base url empty issue (#7872)
* Update anthropic.py

* updates to templates

* [autofix.ci] apply automated fixes

* update the templates

* Refactor Anthropic API URL handling to use a constant. Introduced DEFAULT_ANTHROPIC_API_URL in anthropic_constants.py and updated references in anthropic.py for improved maintainability and clarity.

* [autofix.ci] apply automated fixes

* Refactor AnthropicModelComponent to streamline API URL handling. Removed unnecessary base_url checks and ensured consistent use of DEFAULT_ANTHROPIC_API_URL for improved clarity and maintainability.

* [autofix.ci] apply automated fixes

* Fix base_url check in update_build_config to ensure key existence before accessing value

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-05 19:23:57 +00:00
Edwin Jose
99d9a52bd9
fix: Deprecate Google Components (#7880)
deprecate components
2025-05-05 19:02:46 +00:00
Cristhian Zanforlin Lousa
051a6c2ae5
feat: Enhance main interface by ensuring persistent navbar visibility (#7889)
* ♻️ (appHeaderComponent/index.tsx): remove unused variables and condition for isEmpty to simplify the code and improve readability

* 📝 (empty-page.tsx): Update page title and descriptions to reflect the new branding and messaging for Langflow
🗑️ (github-bg.png): Delete unused background image file from the frontend assets folder

* 📝 (empty-page.tsx): update text size class from text-xs to text-sm for better readability

* 📝 (empty-page.tsx): Update EMPTY_PAGE_DESCRIPTION to remove extra period for consistency
📝 (empty-page.tsx): Increase font size for text elements for better readability and user experience
2025-05-05 15:54:57 +00:00
github-actions[bot]
463ce105f0
chore: update test durations (#7896)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2025-05-05 09:08:23 -03:00