Commit graph

16,387 commits

Author SHA1 Message Date
Lucas Oliveira
41e101499a
fix: store mcp sse headers and use them on connection (#9148)
* Store mcp server headers

* Add headers on pre check url and is valid url

* adds validation of headers according to RFC 7230

* Fixed sanitized value

* Added backend tests for mcp util.py to increase coverage

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* make key pair input use flatmap id on data test ids

* added testids

* added random test names and added tests for persistence

* fix ruff lint

* [autofix.ci] apply automated fixes

* Fix mypy lint errors

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-26 01:16:18 +00:00
XiaochuanLyu
324caf486c
refactor: remove AsyncFileSink logger, add rotation support, and update docs (#9105)
* refactor(logs): remove asyncfilesink logger, add rotation support, and update docs

* refactor(logs): remove asyncfilesink logger, add rotation support, and update docs

---------

Co-authored-by: Harry Lyu <harrylyu@umich.edu>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-07-25 17:50:45 +00:00
Mendon Kissling
fe1e45ce2a
docs: refresh external postgresql database page (#9174)
* coming-back

* refresh-postgresql-page

* add-why

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* clarify-example-yml

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-25 13:24:21 +00:00
Lucas Oliveira
e484e74803
fix: refactor auth modal design for mcp composer (#9180)
* added biome config

* added classes on footer

* added new auth size

* changed auth modal design

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-24 21:53:28 +00:00
Mike Fortman
242cecea0b
fix: Mcp composer tool header fix (#9161)
* fix header and button alignment

* color enhancement

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-24 20:18:01 +00:00
Ítalo Johnny
b5b9d7e77e
deps: update langchain and langchain-community to support Perplexity (#9166) 2025-07-24 18:15:06 +00:00
Cristhian Zanforlin Lousa
264681bf32
fix: Add releaseStage-aware version comparison logic (#8998)
*  (AccountMenu/index.tsx): Add computeNonPrereleaseVersion function to calculate non-prerelease version for comparing versions
📝 (utils.ts): Add computeNonPrereleaseVersion function to extract non-prerelease version for version comparison in AccountMenu component

* refactor: replace computeNonPrereleaseVersion with stripReleaseStageFromVersion for version comparison in AccountMenu component

- Updated AccountMenu to utilize stripReleaseStageFromVersion for determining the latest version.
- Removed computeNonPrereleaseVersion function from utils and replaced it with stripReleaseStageFromVersion for clarity and consistency in version handling.

*  (strip-release-fn.test.ts): add standalone test for stripReleaseStageFromVersion function to avoid dependency issues in test environment

* 📝 (strip-release-fn.test.ts): add detailed documentation for the stripReleaseStageFromVersion function to explain its functionality and examples

* 🐛 (python_code_structured_tool.py): fix issue with handling default values in function arguments to prevent potential errors

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-24 01:17:53 +00:00
Lucas Oliveira
169b687ed0
fix: refactor bundle and component names (#9140)
* Changed Youtube to YouTube

* Updated AIML to AI/ML API

* Updated AI/ML Model name

* Changed Anthropic description

* updated arXiv name

* Set Astra Vectorize as legacy

* Updated get env var

* Updates firecrawl names

* Updated Icon for Google Gen AI embeddings

* Add Space on Home Assistant

* Updated Hugging Face name

* Updated Maritalk Name

* Updated Not Diamond name

* Updated ScrapeGraph names

* Changed SearchApi Name

* Changed TwelveLabs naming

* Updated AstraDB naming

* Updated VertexAI naming

* Updated Wolfram

* Updated Yahoo naming

* Updated Yahoo Finance name

* Updated Yahoo Finance

* [autofix.ci] apply automated fixes

* Update google serper bundle

* updated ai ml icon name

* Updated maritalk

* Changed ai ml api name

* removed openai from base url

* Revert components-bundles changes

* revert changes on components-vector-stores

* Revert changes on deployment-hugging-face-spaces

* Revert changes on integrations-nvidia-ingest

* Revert changes on release-notes

* Update changes on sequential agent

* [autofix.ci] apply automated fixes

* fixed filterSidebar test

* updated filter edge test

* updated shard 11 test with new sidebar names

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-23 23:06:45 +00:00
Mike Fortman
0ed47065f5
refactor: Update mcp composer json (#9158)
* json update

* fix json formatting

* linter fix

* lint round 2

* lint fix attempt 3

* ignore rule instead
2025-07-23 22:35:20 +00:00
April I. Murphy
63a7bebb44
docs: fix typo in left nav (#9160)
* fix typo

* restart build
2025-07-23 21:10:40 +00:00
April I. Murphy
f8d8ff4599
docs: Restructure navigation, refactor all component documentation, among many other things (#9115)
* reorg pt 1

* nav reorg pt 2

* update sidebar ad

* resolve comments and combine app pages

* playground and voice mode rewrite

* fix link

* add separate bundle pages

* add new pages to sidebar

* working on bundles

* moving content to new bundle pages

* move some sidebar items

* fix build

* nav labels

* small edits

* Working on helpers

* core components work

* wrapping up some more agent duplication

* aligning file management

* webhooks and file management

* data components

* address vector store and some legacy components

* finish logic params

* some work on processors

* remove unneeded pages and tidy some llm info

* progress on bundles pt 1

* bundles pt 2

* bundles pt 3

* finish looking at integrations

* it is done

* fix errors

* coderabbit and typos

* coderabbit pt 2

* resolving mcs pt 1

* separate agents and mcp

* still working on some memory stuff

* finish message history alignment

* incorporate PR 9138

* missed a link

* file management ui

* align w ui pr

* Apply suggestions from code review

* memory edits after discussion
2025-07-23 20:20:59 +00:00
Edwin Jose
31d37dff75
fix: Relax redis dependency version constraint (#9154)
Relax redis dependency version constraint

Changed the redis dependency in pyproject.toml from an exact version (5.2.1) to a minimum version (>=5.2.1) to allow for newer compatible releases.
2025-07-23 20:03:31 +00:00
Lucas Oliveira
e58879f10b
fix: make cleanlab evaluator outputs not be grouped (#9149)
* Added color to number

* Group cleanlab outputs

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-23 18:48:32 +00:00
Jordan Frazier
115b0f535f
ref: make superuser creation more multi-user friendly (#9019)
* Fix superuser creationg race condition

* remove now unnecessary race condition check

* Add tests

* [autofix.ci] apply automated fixes

* ruff

* [autofix.ci] apply automated fixes

* clean up tests

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-23 18:45:03 +00:00
Lucas Oliveira
e6ca374d07
fix: updated design of info button on files component (#9146)
* Updated design of info button

* [autofix.ci] apply automated fixes

---------

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>
2025-07-23 18:25:59 +00:00
Mendon Kissling
b519057df7
docs: reduce duplicate content in contributing.md (#9136)
reduce-duplicate-setup-content
2025-07-23 14:17:29 +00:00
Victor-w-Madeira
78a2ff69b6
docs: expand multiple outputs section to include group_outputs behavior (#9075)
* Expand multiple outputs section with group_outputs behavior

* Update docs/docs/Components/components-custom-components.mdx

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Components/components-custom-components.mdx

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-07-23 13:52:40 +00:00
Mendon Kissling
d59c890dce
docs: langflow 1.5 auto-login security doc (#9057)
* langflow-auto-login-security-doc

* trailing-space

* auto-not-auth

* clarify-new-behavior

* env-var-default

* security-md-and-var-names

* Apply suggestions from code review

* Update docs/docs/Configuration/environment-variables.mdx

* Update docs/docs/Configuration/configuration-authentication.mdx

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-23 13:48:46 +00:00
Lucas Oliveira
491af2ec77
fix: update text truncation limits to allow better visibility (#9147)
* Updated limits to triple

* removed update of items length
2025-07-23 13:41:44 +00:00
Lucas Oliveira
9e24202466
feat: adds authentication to mcp server under feature flag (#9095)
* init auth forms

* Add iam endpoint

* Add radix radio

* Add radio group UI element

* Add IAM endpoint to types

* Add auth modal

* Remove auth from tools component

* Add auth modal to mcp server tab

* Add placeholders to fields

* Add dynamic headers

* changed authentication name

* CHanged paddings

* Added header and button under feature flag

* [autofix.ci] apply automated fixes

* update api key form field

* add credential handling and fix feature flag

* Update autologin condition

* design update

* style updates

* ci details

* revert ci logs

* test update, ff name update, and username + pass -> basic

* restore ci

* default fix

* added iam endpoint

* add oauth

* remove secretstr

* updated backend test and schema

* updated test

* updated test user can update

* test fix

---------

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-22 20:04:47 +00:00
Cristhian Zanforlin Lousa
c1d417adf2
fix: Improve duplicate flow name handling and add comprehensive tests (#8962)
*  (flows.py): Improve flow naming logic to handle duplicate names more effectively and accurately
📝 (test_rename_flow_to_save.py): Add unit tests to ensure correct numbering and handling of duplicate flow names

* [autofix.ci] apply automated fixes

*  (test_rename_flow_to_save.py): refactor test functions to remove unnecessary session parameter and improve code readability

* 📝 (flows.py): improve regex pattern to extract numbers only from flows following a specific naming convention to avoid extracting numbers from the original flow name if it contains parentheses

* [autofix.ci] apply automated fixes

* 📝 (flows.py): improve comments for better readability and understanding of regex usage in extracting numbers from flow names

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-22 17:45:15 +00:00
April I. Murphy
bd8e3a162a
docs: Move small edits to reduce scope of PR 9115 (#9135)
port a few missed things
2025-07-22 16:39:57 +00:00
Mendon Kissling
8f84d9100d
docs: user feedback items (#9122)
* db-location-and-agent-memory

* cleanup

* postgresql-for-agent-memory

* postgresql-in-message-history

* remove-mcp-tutorial-note
2025-07-22 16:22:30 +00:00
Mendon Kissling
7b3c4b2c0d
docs: update integrations-docling.mdx (#9131)
Add apostophes for extra install.
2025-07-22 15:39:12 +00:00
April I. Murphy
2fa2a43f96
docs: Various edits related to style, syntax, and adding more detail to some pages (#9132)
* port unrelated changes from IA PR

* few more ports

* fix build

* edit to try to restart build
2025-07-22 15:20:31 +00:00
Rodrigo Nader
3bb22b29cc
feat: Add dual output support to Agent component with structured JSON parsing (#8836)
* feat: Add dual output support to Agent component with structured JSON parsing

## Summary
- Add "Structured Response" output alongside existing "Response" output
- Filter out conflicting json_mode field from OpenAI inputs
- Implement robust JSON parsing with fallback handling

## Changes Made
### Agent Component (agent.py)
- Add second output: "Structured Response" (Data type) with tool_mode=False
- Filter json_mode from OpenAI inputs to prevent UI conflicts
- Add json_response() method with multi-stage JSON parsing:
  - Direct JSON parsing for valid responses
  - Regex extraction for embedded JSON in text
  - Graceful error handling with diagnostic info
- Share execution between outputs (no duplicate agent runs)
- Fix model building to handle missing json_mode attribute

### Tests (test_agent_component.py)
- Add 9 comprehensive test cases covering:
  - Dual output structure validation
  - Input filtering verification
  - JSON parsing (valid, embedded, error cases)
  - Model building without json_mode
  - Shared execution efficiency
  - Frontend node structure
  - Component initialization

## Benefits
- Users get both Message and Data output types to choose from
- Clean UI without confusing duplicate JSON toggles
- Robust JSON parsing handles various response formats
- Efficient single-execution approach
- Maintains backward compatibility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* [autofix.ci] apply automated fixes

* update to templates with  model list update

* [autofix.ci] apply automated fixes

* Update test_agent_component.py

* update to the test and update to templates

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-07-21 16:33:30 +00:00
Mendon Kissling
400ff562c4
docs: update components-helpers.mdx (#9120) 2025-07-21 15:38:25 +00:00
Cristhian Zanforlin Lousa
16d34e0a99
feat: Add CustomMarkdownField wrapper component (#9042)
 (custom-markdown-field.tsx): create a new CustomMarkdownField component to encapsulate MarkdownField with additional props
♻️ (chat-message.tsx): refactor ChatMessage component to use CustomMarkdownField instead of MarkdownField for better customization and reusability
2025-07-21 14:24:58 +00:00
Eric Pinzur
65a977cba2
feat: added code coverage reporting (#9081)
* added code coverage reporting

* fix issues

* more cleanup

* fix action configs

* cleanup token debug

* added comments to codecov.yml config

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-07-21 14:03:34 +00:00
Gabriel Luiz Freitas Almeida
ca595ac7fb
feat: add module and code hash to component's metadata (#8737)
* feat: filter out base components path in custom component loading

* revert changes to allow testing the function

* feat: add module_name parameter to custom component template functions

* feat: include full module name in component template creation

* feat: add module metadata to various starter project JSON files

* feat: add code hash generation for custom component templates

* test: add unit tests for code hash and module metadata functionality

* feat: add code hash to metadata in various starter project JSON files

* feat: refactor code hash generation to accept source code and class name

* feat: implement loading strategy for custom components in settings service

* Update metadata for various starter project JSON files to include code hashes and module references for ChatInput and ChatOutput components. This enhances traceability and consistency across the project configurations.

* refactor: improve _generate_code_hash function for better error handling and clarity

- Simplified the logic to generate a SHA256 hash of the source code.
- Added explicit error handling for empty source code, encoding issues, and type errors.
- Updated docstring to reflect changes in argument descriptions and added information about raised exceptions.

* test: add unit tests for metadata functionality in custom utils

- Introduced tests for the _generate_code_hash function, covering basic hash generation, error handling for empty and None source, hash consistency, and uniqueness for different code.
- Added tests to verify metadata addition in template building functions, ensuring that module names and code hashes are correctly included in the metadata of custom components.

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-07-18 18:03:17 +00:00
namastex888
d9f3ced8b0
fix: enhance API snippet generation with file upload support and consistent authentication (#9018)
* feat: implement file upload API snippet generation

Add proper two-step file upload support for API code generation:
- Detect file tweaks in ChatInput (string), File/VideoFile (path/file_path)
- Generate step-based cURL commands with separate copy buttons
- Fix ChatInput to use correct /api/v1/run endpoint with tweaks structure
- Update JavaScript and Python generators with proper endpoints and payloads
- Support dynamic node IDs and processedPayload values
- Implement step parsing UI for cURL with proper formatting

Co-Authored-By: Automagik Genie <genie@namastex.ai>

* fix: update JavaScript API snippet generator for native Node.js

Replace browser-based FormData approach with native Node.js http module
- Use built-in fs, http, and path modules instead of browser APIs
- Manually construct multipart/form-data payloads
- Add proper error handling and HTTP request helpers
- Support both ChatInput and File/VideoFile upload scenarios
- Maintain authentication header support

Co-Authored-By: Automagik Genie <genie@namastex.ai>

* fix: include output_type, input_type, input_value in File component cURL snippets

File/VideoFile components were missing the required payload fields when
generating cURL commands, causing flows to fail execution. Added the missing
fields to match the working pattern used in Chat Input components.

Co-Authored-By: Automagik Genie <genie@namastex.ai>

* fix: include output_type, input_type, input_value in Python and JavaScript File component snippets

File/VideoFile components were missing the required payload fields in Python
and JavaScript generators, matching the fix applied to cURL snippets.

Co-Authored-By: Automagik Genie <genie@namastex.ai>

* fix: use 'path' field for File components instead of 'file_id'

File components require the 'path' field from v2 upload response as an array,
not 'file_id'. Updated all three generators:
- Changed file_id to file_path variable extraction
- Changed "file_id": value to "path": [value] in tweaks
- Updated placeholder text for consistency

This fixes the "No files to process" error in File components.

Co-Authored-By: Automagik Genie <genie@namastex.ai>

* fix: implement additive file upload API snippet generation

- Fixed UI parsing to handle multiple file components correctly
- Consolidated upload steps into single step with multiple commands
- All file components (ChatInput, File, VideoFile) now work additively
- Simplified UI to show only 2 steps: uploads and execution
- Improved scrolling for better debugging experience
- Removed debug console.log statements

* fix: enhance API snippet generation with file upload support and consistent authentication

- Add multi-step file upload handling for ChatInput, File, and VideoFile components
- Implement automatic session ID generation using UUIDs across all snippets
- Ensure API key is always required in generated code (Python, JavaScript, cURL)
- Remove unused isAuth parameter from code generation logic
- Add comprehensive unit tests for file detection and code generation
- Support both Unix/Linux and PowerShell platforms for cURL commands

* [autofix.ci] apply automated fixes

* 📝 CodeRabbit Chat: Fix curl file upload commands for ChatInput and File/VideoFile APIs

* fix: coderabit's feedbacks

* [autofix.ci] apply automated fixes

* fix: use curl.exe for PowerShell to avoid alias conflicts

- Change curl to curl.exe in PowerShell snippets to avoid conflicts with Invoke-WebRequest alias
- Remove unused hasChatFiles variable from all code generators
- Remove redundant edge case check in curl code generator
- Fix Python syntax error (|| to or)
- Fix JavaScript crypto.randomUUID() to generate at runtime
- Remove unused singleLinePayload variable in Unix branch
- Update tests to match new httpModule usage pattern

* [autofix.ci] apply automated fixes

* fix: remove duplicate API key declaration and add file existence validation

- Remove duplicate apiKey declaration from top-level generated code
- Keep only the apiKey declaration inside uploadAndExecuteFlow function
- Add fs.existsSync() validation before reading files in createFormData
- This prevents runtime errors when files don't exist
- Maintains 'YOUR_API_KEY_HERE' placeholder as requested

* fix: improve hostname/port extraction robustness in JavaScript generator

- Replace fragile string splitting with proper URL parsing
- Use URL constructor to reliably extract hostname and port
- Handle IPv6 addresses, URLs with authentication, and complex hostnames
- Apply fix to all three usage locations: ChatInput, File/VideoFile, and execution options
- Fallback to default ports (443 for HTTPS, 80 for HTTP) when port not specified

* [autofix.ci] apply automated fixes

* refactor: streamline code snippet generation for API calls

- Remove deprecated step parsing logic in favor of structured data handling
- Update getNewCurlCode function to return structured steps for curl commands
- Simplify rendering of steps in APITabsComponent to enhance readability and maintainability
- Ensure consistent handling of code snippets across different platforms

* [autofix.ci] apply automated fixes

* test: enhance API snippet generation tests for structured output

- Update tests for getNewCurlCode to validate structured steps output
- Ensure API key and session_id checks accommodate both string and object return types
- Improve clarity and maintainability of test cases for API snippet generation utilities

* fix: update session_id handling in curl code generation

- Replace dynamic session_id generation with a placeholder "YOUR_SESSION_ID_HERE" for both Unix and PowerShell environments.
- Update tests to reflect the change, ensuring they check for the new session_id placeholder instead of UUID generation commands.
- Enhance clarity in generated curl commands and maintain consistency across different platforms.

* 🔧 (frontend): refactor NodeInputField component to improve readability and maintainability
🔧 (frontend): refactor codeTabs component to add support for auto login feature
🔧 (frontend): refactor api-snippet-generation test to include tests for API key authentication
🔧 (frontend): refactor get-curl-code, get-js-api-code, and get-python-api-code to conditionally include API key based on shouldDisplayApiKey parameter

---------

Co-authored-by: Automagik Genie <genie@namastex.ai>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-07-17 23:33:16 +00:00
Edwin Jose
e20ae03c38
ref: refactor MCP-related functionality centralizing common utilities (#9059)
* reactor to have common mcp codes in mcp_support

* [autofix.ci] apply automated fixes

* Refactor MCP API argument passing and function signatures

Updated function calls in mcp_projects.py to use explicit keyword arguments for clarity. Refactored mcp_support.py to use more concise query assignment and added keyword-only arguments to handle_call_tool and handle_list_tools for improved code readability and maintainability.

* Rename mcp_support.py to mcp_utils.py and update imports

Renamed mcp_support.py to mcp_utils.py for clarity and updated all relevant import statements in mcp.py and mcp_projects.py to reflect the new module name.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-17 19:21:04 +00:00
Mendon Kissling
607cadfe17
docs: data types (#9074)
* data-data-type

* content

* cleanup

* why-to-use

* cleanup

* more-cleanup

* last-cleanup

* redirects

* remove-concepts-objects-and-add-redirects-and-fix-links

* edit data types page

---------

Co-authored-by: April M <april.murphy@datastax.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2025-07-17 16:30:42 +00:00
Mendon Kissling
ecf44e6908
docs: add mcp tutorial (#9022)
* minimal-working-code

* remove-old-files-and-add-new-content

* cleanup

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* intro-and-sidebars

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

* add-fake-resume

* docs: update chat-with-files tutorial to include Langflow API key and clarify file upload process

* docs: enhance chat-with-files tutorial to support multiple file uploads with example code

* move-file-and-fixpath

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* docs: update fake resume with new example details

* Apply suggestions from code review

* initial-content

* basic-app

* more

* more

* fix-screenshot

* cleanup

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* clarify-server-side-geolocation

* revise intro

* pt 2

* last part

* change file type

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
Co-authored-by: April M <april.murphy@datastax.com>
2025-07-17 13:55:43 +00:00
Mendon Kissling
b4fa86961d
docs: endquote in code alias (#9080)
endquote

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-17 12:12:29 +00:00
Mendon Kissling
4fa76768e6
docs: add deepwiki badge to readme (#9079)
Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
2025-07-16 21:04:43 -03:00
Mendon Kissling
dc6bc753bc
docs: clarify group components false behavior (#9046)
clarify-group-outputs-false
2025-07-16 21:42:37 +00:00
Mendon Kissling
c65ed4559e
docs: remove unused template (#9073)
remove-unused-template
2025-07-16 14:44:31 +00:00
Mike Fortman
f75d9a20e0
refactor: Update icon dark mode comparison (#9060)
* Update icon dark mode comparison

* [autofix.ci] apply automated fixes

* coderabbit fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-16 14:15:14 +00:00
Cristhian Zanforlin Lousa
9b3356e1c7
fix: Prevent Authorization header on external URLs (#9061)
🐛 (api.tsx): fix issue where Authorization header was not being set correctly for internal requests
💡 (api.tsx): improve logic to set Authorization header only for internal requests and add custom headers for all requests
2025-07-15 23:09:48 +00:00
Mike Fortman
0f89e39da1
feat: Move to Biome for linting and formatting (#8997)
* init biome

* lint

* format

* unused vars

* more unused vars

* error fixes

* import ordering

* test precommit hook

* add precommit hook

* [autofix.ci] apply automated fixes

* remove prettier and eslint and update gh actions

* pre-commit update

*  (Makefile): add new targets 'biome' and 'biome_check' to run biome check and format on frontend code.

* 🔧 (Makefile): rename 'biome' target to 'format_frontend' for clarity and consistency
🔧 (Makefile): rename 'biome_check' target to 'format_frontend_check' for clarity and consistency

* 📝 (biome.json): Update a11y rule in biome.json to turn off 'noStaticElementInteractions' warning
🔧 (apiModal/code-tabs.tsx): Remove unused 'autologin' variable in APITabsComponent
♻️ (global-variable-modal.tsx): Simplify GeneralGlobalVariableModal component by removing unused props definition

* 📝 (biome.json): Remove 'debug' from allowed console methods to improve code quality
🔧 (index.tsx): Replace console.debug with console.log for better logging consistency
♻️ (index.tsx): Refactor UpdateAllComponents function signature to remove unnecessary empty object parameter

* fix console rules

* 📝 (biome.json): update a11y rule to warn for noStaticElementInteractions to improve accessibility compliance.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-07-15 18:46:51 +00:00
Victor-w-Madeira
f07f0e26b7
Improve documentation: Component Overview section (#9056)
* Improve Component Overview: add image and expand grouping instructions

* Update docs/docs/Concepts/concepts-components.mdx

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* alternate-control

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-07-15 17:15:59 +00:00
Mendon Kissling
3ddc7009e2
docs: remove google oauth integrations (#9047)
* remove-oauth-integration-and-make-components-legacy

* link

* redirect-oauth-page

* legacy-version-and-recommendation
2025-07-15 17:14:47 +00:00
Gabriel Luiz Freitas Almeida
f1e95940a5
feat(database): add noop mode with config flag and update related tests (#9054)
* test: enhance agent component tests and add new fixture for database-less sessions

- Added `use_noop_session` fixture to facilitate testing without a database.
- Expanded `TestAgentComponent` with new tests for agent responses using the Calculator tool and validation across all OpenAI and Anthropic models.
- Updated `test_component.py` to include tests for message sending without a database, ensuring proper event handling and message integrity.
- Refactored existing tests for clarity and consistency.

* fix: enhance user retrieval logic in get_or_create_super_user and teardown_superuser functions

- Updated user retrieval in both functions to handle different result types from the database query, ensuring robustness against unexpected return values.
- Added checks for `first()` method and list type to improve error handling and maintainability.

* feat: add support for no-op database operations in settings

- Introduced `use_noop_database` configuration option to disable all database operations, controlled by the `LANGFLOW_USE_NOOP_DATABASE` environment variable.
- Updated the `use_noop_session` fixture to reflect the new environment variable for testing without a database.

* feat: implement NoopSession for database-less operations

- Added NoopSession class to provide a no-operation database session, allowing for testing and operation without a real database connection.
- Updated DatabaseService to utilize NoopSession when the `use_noop_database` setting is enabled, ensuring all database operations are disabled in this mode.
- Enhanced error handling and logging for session management, improving robustness in scenarios where the database is not in use.

* refactor: update import paths for NoopSession in test files

- Changed import path for NoopSession from `langflow.services.database.service` to `langflow.services.database.session` in both `test_agent_component.py` and `test_component.py`.
- This refactor improves code organization and aligns with recent changes in the project structure.

* feat: enhance NoopSession with result handling methods

- Added an internal _NoopResult class to the NoopSession, providing methods `first()`, `all()`, and `one_or_none()` for better handling of no-operation results.
- This enhancement improves the usability of NoopSession in testing scenarios by mimicking expected database query behaviors.

* refactor: improve logging for NOOP database session

- Changed the log level from warning to info for the NOOP database session message in the DatabaseService class.
- This adjustment enhances clarity in logging, indicating that all DB operations are disabled without implying an error condition.

* docs: improve docstring formatting for custom_component_update function

- Reformatted the docstring for the custom_component_update function to enhance readability by breaking long lines into multiple lines.
- This change improves documentation clarity, making it easier for developers to understand the function's purpose and behavior.

* docs: add LANGFLOW_USE_NOOP_DATABASE environment variable documentation

- Introduced documentation for the new LANGFLOW_USE_NOOP_DATABASE environment variable, which allows users to enable a no-op database mode, avoiding database connections and operations.
- This addition enhances the clarity of configuration options available for Langflow, aiding users in understanding how to run flows without a database.

* refactor: move NOOP database session logging to settings

- Removed the logging statement from the DatabaseService class and added it to the `set_use_noop_database` field validator in the Settings class.
- This change centralizes the logging for the NOOP database session, improving code organization and ensuring that the message is logged whenever the setting is applied.
2025-07-15 16:52:23 +00:00
Ronnie Miller
d8291131ab
docs: Add heading and codeblock events for segment (#9050)
* docs: Add heading and codeblock events for segment

* docs: Update scroll event names

* docs: improve capture of code block language

* docs: ensure code block language capture for mobile
2025-07-15 15:17:11 +00:00
github-actions[bot]
785830937f
docs: OpenAPI spec version upgraded from 1.4.3 to 1.5.0.post1 (#9049)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-07-15 12:25:45 +00:00
Gabriel Luiz Freitas Almeida
d1b3b99dcb
chore: update pre-commit configuration to use local ruff hooks (#9048) 2025-07-14 17:47:06 -03:00
Lucas Oliveira
1f6d10430d
fix: add truncation to error (#9026)
Added truncate to error
2025-07-14 18:15:29 +00:00
Gabriel Luiz Freitas Almeida
b17871bf44
refactor(api): update /config endpoint to use ConfigResponse.from_settings (#8674)
* refactor: update config response handling and import structure

- Moved EventManager import to the correct module path.
- Refactored get_config endpoint to utilize ConfigResponse.from_settings for improved clarity and maintainability.
- Updated ConfigResponse to include a class method for instantiating from Settings, enhancing the encapsulation of configuration logic.

* 📝 Add docstrings to `improve-docs-and-configsetup` (#8677)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

---------

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>
2025-07-14 17:23:37 +00:00
Mendon Kissling
e64e328257
docs: file loader output behavior (#9045)
* file-loader output

* remove-duplicate-info

* clarify-output

* Update docs/docs/Components/components-data.mdx

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-14 16:00:39 +00:00