Commit Graph
3524 Commits
Author SHA1 Message Date
github-actions[bot]andgithub-actions[bot] 65f68059f5 chore: bump @flowiseai/agentflow to 0.0.0-dev.11 (#6216)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-15 13:06:11 -07:00
Jocelyn Lin a77194c8c2 feat(agentflow): optional cavasActions to allow additional buttons next to validate (#6224)
* feat(agentflow): optional cavasActions to allow additional buttons next to validate

- Updated Agentflow component to support canvasActions prop for rendering additional action buttons in the canvas overlay.
- Enhanced type definitions to include canvasActions in AgentflowProps.
- Added tests to verify the rendering of canvasActions in the Agentflow component.
- Added a new example  demonstrating custom FABs alongside the validation button.

* update jsdoc to match actual implementation
2026-04-15 12:54:54 -07:00
Hoang DoanandHenry 62a5d1d59c feat: turn chatflow into MCP server (#5930)
* feat: turn chatflow into MCP server

- Added '@modelcontextprotocol/sdk' version 1.12.0
- Added 'zod' version 3.25.32
- Added migrations for MCP server config
- Added MCP endpoints (Streamable HTTP and SSE)
- Added MCP server configuration tab
- Added unit tests for MCP endpoints and services

* feat: Implement MCP endpoint service with SSE support

- Added a new MCP endpoint service to handle requests for chatflows, including support for SSE (Server-Sent Events) and stateless transport.
- Introduced functions for handling MCP requests, SSE connections, and message routing.
- Implemented error handling for service errors and session management for SSE.
- Created unit tests for the MCP server service, covering configuration CRUD operations and token management.
- Updated the MCP server configuration logic to ensure proper validation and error handling.
- Refactored the UI component to utilize a new API hook for fetching MCP server configuration.

* chore: handle error when get mcp server config

* - Introduced a new chat type 'MCP' in the ChatType enum, including UI filters and backend processing.
- Updated the zod dependency version specification to support both ^3.25.76 and ^4.
- Fix setHasExistingConfig

* fix: update chatflowCallback to enable chatflow building with active state for MCP

* refactor: remove deprecated SSE transport endpoints and related logic

- Removed handleGet and handleSseMessage methods from MCP endpoint controller.
- Updated MCP endpoint routes to eliminate SSE-related routes.
- Refactored service layer to remove SSE session management and related methods.
- Updated tests to remove references to deprecated SSE functionality.
- Adjusted UI component to remove SSE endpoint URL handling.

* chore: update MCP endpoint routes and references to align with new API structure

* chore: remove abortChatMessage when mcp request closed

* optimize mcpserver dialog for dark mode

* feat: implement form input schema generation for agentflow chatflows

---------

Co-authored-by: Henry <[email protected]>
2026-04-15 20:36:28 +01:00
Jocelyn Lin 96fca439c1 feat(agentflow): add client filtering for form input options in Start node (#6212)
- Enhanced Start node to include a client property for the form input option, allowing differentiation between 'agentflowv2' and 'agentflowsdk'.
- Added tests to verify that the 'formInput' option is correctly filtered based on the client type.
2026-04-14 11:07:55 -07:00
abdullah-workday 04b897adc3 Fix: Clean and Nuke Script (#6213) 2026-04-14 10:30:01 -07:00
Jocelyn Lin 32232c04c5 fix(agentflow): add onFlowChange notifications for deleteNode, deleteEdge, and duplicateNode actions (#6211)
* fix(agentflow): add onFlowChange notifications for deleteNode, deleteEdge, and duplicateNode actions

- Updated context state management to include viewport information during flow changes.
- Improved test coverage for flow change notifications to ensure correct behavior on node and edge modifications.

* address gemini comment
2026-04-14 08:19:56 -07:00
yau-wd 311a3f47d0 Fix clickjacking (#6185)
* fix(server): clickjacking

* fix(XSS.ts): handle CSV and null values in getAllowedIframeOrigins
2026-04-14 20:23:00 +08:00
Henry Hengandyau-wd 4114b3b506 Release/3.1.2 (#6215)
[email protected]

Co-authored-by: yau-wd <[email protected]>
[email protected] [email protected] [email protected]
2026-04-14 11:42:44 +01:00
Jocelyn Lin 7de9e3ecb6 fix/agentflow: Update default values and auto-add Start node for empty state (#6210)
- Implemented auto-add functionality for Start node in Agentflow when creating a new canvas.
- Updated default values for number and options types to return empty strings instead of zero or first option name.
- Adjusted MessagesInput and ArrayInput tests to reflect changes in default values.
2026-04-13 16:21:44 -07:00
jimmyzhuu faaaa11906 feat(components): add Baidu Qianfan embeddings node (#6147)
* feat(components): add Baidu Qianfan embeddings node

* fix(components): preserve explicit numeric values in Baidu embeddings

* Improve Qianfan embedding defaults and guidance
2026-04-13 22:35:39 +01:00
jimmyzhuu b27e8890a3 feat(components): improve Baidu Wenxin chat model configuration (#6140) 2026-04-13 22:34:14 +01:00
Henry Heng 0e528779f4 Bugfix/Silent fallback to vm2 for sandbox execution (#6206)
silent fallback to vm2 for sandbox execution
2026-04-13 16:47:16 +01:00
Henry Heng 6ba035ced9 Chore/include action metadata from API responses (#6204)
include action metadata from API responses
2026-04-13 16:22:43 +01:00
Henry Heng 4c0223a013 Bugfix/add groq sdk (#6194)
add groq sdk
2026-04-11 16:09:07 +01:00
Henry Heng d1a756625d Bugfix/add compact table transformer for NotionAPILoader (#6187)
* add compact table transformer for NotionAPILoader
.

* fix: improve table transformation logic in NotionAPILoader

* fix: improve table transformation logic in NotionAPILoader

* fix: improve table transformation logic in NotionAPILoader
2026-04-11 16:03:37 +01:00
j-sanaa dddfb3c90e Fix/agentflow - Fixes for minor UI issues in extracted canvas (#6190)
* Fix c=incorrect color for edit nodes

* Fix to ensure all input fields have same width

* Fix accordian having an extra line

* Fix gemini comment

* Test fix
2026-04-10 16:41:40 -07:00
Jocelyn Lin e733ebcfde refactor(api): update caching mechanism in deduplicatedClient to differentiate TTL for GET and load-method responses (#6188) 2026-04-10 14:21:04 -07:00
Ilangoandyau-wd fd48519f41 fix: remove basic auth (#5680)
Co-authored-by: yau-wd <[email protected]>
2026-04-10 19:49:44 +08:00
aviu16andHenry Heng 1cbae24ca7 fix(evaluations): correct DoesNotContainAny/All operator logic (#6182)
* fix(evaluations): correct DoesNotContainAny/All operator logic

DoesNotContainAny was returning Pass when values were found and Fail
when they weren't — the result was inverted.

DoesNotContainAll was using the same logic as DoesNotContainAny instead
of checking whether all values are present. Fixed to only fail when
every specified value exists in the output.

* remove redundant toLowerCase and filter empty split values

value is already lowercased at line 92, so the per-element toLowerCase
is unnecessary. Also filter out empty strings from trailing commas.

* Update EvaluatorRunner.ts

---------

Co-authored-by: Henry Heng <[email protected]>
2026-04-10 12:19:37 +01:00
Anderson Martínez ade5b95f05 feat: Browserless MCP integration (#6171)
* feat: Browserless MCP integration

* fix: rename Browserless_MCP class to BrowserlessMCP
2026-04-10 12:04:34 +01:00
aviu16 92f07974d7 fix(evaluations): use correct total_cost property in CostCalculator (#6183)
* fix(evaluations): use correct total_cost property in CostCalculator

The condition on line 28 checked costValues.total_price, but the
property is total_cost everywhere else (models.json, evaluation
runners, etc.). Since total_price is always undefined, the branch
never executed and models that only define a flat total_cost rate
fell through to the input_cost/output_cost path, producing NaN.

* guard against missing totalTokens to prevent NaN
2026-04-10 11:45:34 +01:00
j-sanaa 6ad18cc6b4 Fix/agentflow Integration and verification test fixes (#6175)
* Fix JSON inout button not appearing

* Fix to display icons for vector embeddings and tools in Agent node

* Add variable syntax support to condition node

* Clear out existing values when operation is changed in Condition node

* Loop node  to show ancestral nodes

* Fix position and styling of "See Example"

* Refactor AsyncInput to remove duplicate logic

* Fix gemini comments

* Addressed review comments
2026-04-09 15:49:00 -07:00
Ilango e765367fdc fix: flowise-317 (#6168)
* fix: flowise-317

* fix: review feedback

* fix: add permission check to execute button in custom function node
2026-04-09 11:09:03 +01:00
Sahil Yuvraj kamble edff15219e Feat/docstore rename delete actions (optimised for dark theme) (#6144)
* feat(ui): add document store rename/delete actions for cards and table

* refactor(docstore): inline action button styles into index.jsx
2026-04-07 20:35:54 +01:00
mmattu-wd deb1330727 update eslint-plugin-jsx-a11y and remove pinned version for es-iterat… (#6159)
update eslint-plugin-jsx-a11y and remove pinned version for es-iterator-helpers
2026-04-07 08:34:59 -07:00
Sahil Yuvraj kamble 140f1d35a0 feat(ui): add accessible show/hide password toggle on signin (#6098) 2026-04-07 14:27:58 +05:30
Jocelyn Lin 5f85387e38 chore: update GitHub Actions dependency version (#6165)
- also fix a type error on agentflow example app
2026-04-06 17:30:17 -07:00
ming1523 57ac7bee92 docs: fix Hugging Face deployment links (#6124) 2026-04-07 00:39:45 +01:00
Manoj Kumar b9b4827e8a fix(agentflow): $flow.state inaccessible inside iteration node execution (#6142)
fix(agentflow): Fix $flow.state inaccessible inside iteration node execution
2026-04-07 00:37:48 +01:00
github-actions[bot]andgithub-actions[bot] 567bfe3ffa chore: bump @flowiseai/agentflow to 0.0.0-dev.10 (#6162)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-06 14:52:18 -07:00
j-sanaa e2ecc0b0a6 Fix/agentflow Add support for XML tag in markdown input and render markdown conditionally (#6145)
* Changes to limit markdown

* Remove extra content

* Test changes

* Add support to escape XML tags

* FIx lint errors

* Revert changes to server file

* Fix Gemini comments

* Fix gemini comments

* Refactor to remove duplicated logic
2026-04-06 11:52:25 -07:00
michaell-workday 833f911220 Add barrel export and exports map to packages/components (#6130)
* add barrel export and exports map

* pin dep for pre commit hook

* remove catch all as no need to support dist imports
2026-04-06 10:08:47 -07:00
jchui-wdandClaude Sonnet 4.6 8985c5ec55 feat: add client-scoped filtering to node input params (#6107)
* feat: add client-scoped filtering to node input params

Adds a `client` field to `INodeParams` and `INodeOptionsValue` so node
authors can restrict params or dropdown options to specific clients
(agentflowv2 canvas or agentflowsdk). The server filters params before
responding based on a `?client=` query param passed by each client.

- Add `ClientType = 'agentflowv2' | 'agentflowsdk'` to Interface.ts
- Add `client?: Array<ClientType>` to INodeParams and INodeOptionsValue
- Server nodes service: add filterNodeByClient() applied to all node fetch paths
- Server nodes controller: read and forward ?client= query param
- packages/agentflow API: pass ?client=agentflowsdk on all node fetches
- packages/ui API: pass ?client=agentflowv2 on all node fetches
- Add tests for filterNodeByClient and update agentflow node API tests

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Made-with: Cursor

* refactor: move filterNodeByClient to bottom of nodes service

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* fix: address PR review comments on client-scoped node filtering

- Validate ?client= query param against allowlist before casting to ClientType
- Extract VALID_CLIENT_TYPES const to flowise-components Interface.ts as single source of truth
- Make filterNodeByClient pure by returning a new object instead of mutating node.inputs
- Add immutability test to nodes.test.ts

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>
2026-04-06 09:41:21 -07:00
Jocelyn Linandgemini-code-assist[bot] 2aeb9fff65 feat(agentflow): Add refresh button for Available Actions dropdown (#6134)
* feat(agentflow): Add refresh button for Available Actions dropdown

- Introduced a refresh button in AsyncInput and AsyncMultiOptionsInput components to allow users to re-fetch options dynamically.
- Updated InputParam interface to include a new `refresh` property.
- Enhanced tests to verify the visibility and functionality of the refresh button based on the `refresh` property.
- Adjusted loadMethodRegistry to ensure proper handling of credential and inputs for the `listActions` method.

This update improves user experience by providing a way to refresh options without needing to reload the entire component.

* wrap tests to a top layer describe

* Update packages/agentflow/src/features/node-editor/AsyncInput.tsx

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-04-06 08:45:08 -07:00
christopherholland-workdayandchristopherholland-workday f64047bdcf Fix Mass Assignment on Save Custom Template (#6129)
Co-authored-by: christopherholland-workday <[email protected]>
2026-04-06 21:07:12 +08:00
christopherholland-workdayandchristopherholland-workday 1cf247eab3 Fix Mass Assignment in Assistants Endpoints (#6128)
Co-authored-by: christopherholland-workday <[email protected]>
2026-04-06 20:27:47 +08:00
Sahil Yuvraj kamble 2555f10c11 feat(ui): add document store rename/delete actions for cards and table (#6041)
* feat(ui): add document store rename/delete actions for cards and table

* refactor(docstore): simplify local rename state update

* refactor(docstore): use DeleteDocStoreDialog in list delete flow and keep safe error fallback
2026-04-03 19:50:31 +08:00
Manoj Kumar 2827e01e06 fix(agentflow): resolve stale $flow.state reads in iteration node (#6099)
fix(agentflow): prioritize updated runtime state in iteration merge
2026-04-03 18:50:55 +08:00
cb1e1e3363 fix: better errors for sso login (#6113)
* add: logs for sso

* revert: logs but throw better login error for sso

* Update packages/server/src/enterprise/sso/SSOBase.ts

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* fix: lint issues

* revert: error type check in sso login

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: yau-wd <[email protected]>
2026-04-03 16:20:31 +05:30
j-sanaa 56f272a476 Feat/agentflow Port Markdown Editor & Edit/Source Toggle from legacy UI to agentflow (#6125)
* Initial flow

* Fix markdown import shape

* Add support to check for HTML or markdown

* Fix values not being persisted

* Make implementation similar to v2

* Add vairable syntax support to expandDialog

* Add variable syntax support to messageInput

* Test cases added

* Remove eslint-disable

* Add getHtml as a fallback

* Fixed gemini comments

* Fix test cases and lint warnings

* Fixed editorUtils.test to not have nested structure

* Fix review comments
2026-04-02 15:15:17 -07:00
Jocelyn LinandClaude Opus 4.6 fedc6ebc82 feat(agentflow): enhance state management with StateKeyValueInput and variable support (#6119)
* feat(agentflow): enhance state management with StateKeyValueInput and variable support

- Added StateKeyValueInput component for managing key-value pairs in flow state updates.
- Integrated VariableInput for value fields to support variable syntax.
- Updated MessagesInput and ExpandTextDialog to utilize variable items for enhanced user experience.
- Introduced new types for state updates in core types.
- Enhanced Jest tests to cover new functionality and ensure reliability.

This update improves the flexibility and usability of state management within the agentflow package.

* fix(agentflow): address PR #6119 review feedback

- Add autoFocus prop to VariableInput, apply in ExpandTextDialog for
  consistent focus behavior with RichTextEditor fallback
- Extract duplicated VariableItem→SuggestionItem mapping into shared
  toSuggestionItems utility, used by MessagesInput and NodeInputHandler
- Remove redundant default export from StateKeyValueInput

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* clear selected key and update dropdown when a state key is removed

* cleanup unused type

---------

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
2026-04-02 12:10:51 -07:00
christopherholland-workday 49a2259bf2 Merge branch 'flowise-323-dataset' of https://github.com/FlowiseAI/Flowise into flowise-323-dataset 2026-04-02 10:11:03 -07:00
christopherholland-workday 18bb02fcdc Fix Mass Assignment in Dataset and DatasetRow Operations 2026-04-02 10:10:07 -07:00
christopherholland-workday 7a744ea600 Fix Mass Assignment in Dataset and DatasetRow Operations 2026-04-02 09:39:35 -07:00
christopherholland-workday 106920010c Fix Mass Assignment in Dataset and DatasetRow Operations 2026-04-02 09:39:35 -07:00
Jocelyn Lin 7df6e95c40 fix(ui): allow XML tag for markdown rich input (#6095)
* fix(ui): allow XML tag for rich input

- Introduced utilities for escaping and unescaping non-standard XML/HTML tags to preserve them during markdown processing.
- Updated RichInput and ExpandRichInputDialog components to utilize the new XML tag utilities for handling custom tags.
- Added Jest configuration for the UI package and created tests for the XML tag utilities to ensure functionality.
- Updated package.json to include Jest as a dependency and added a test script.

* address code review comments from Gemini

* allow html tag in markdown editor

* add test case for markdown format

* update dependency in ui
2026-04-02 09:02:07 -07:00
yau-wd c4e689b97a Feature/Add Audit and Deletion (#5994)
* feat(audit): add emitEvent and file-based audit logging

* fix(sanitize.util.ts): correct IPv6 sanitization for audit log IP masking

* feat(account): add account deletion

* fix(sanitize.util.ts): add recursive sanitization for nested metadata

* fix(MainLayout/Header/Workspace): refresh workspace list when clicking dropdown

* feat(views/account): require typed confirmation for account deletion
2026-04-02 22:15:05 +08:00
Ilango 1707688e62 fix: streaming response due to high number of redis pub/sub channels, better handling of connection issues (#6114)
* fix: unsubscribe redis pubsub when connection closes during prediction or after successful response

* update: add heartbeat to keep connection alive and start/stop heartbeat on server start/stop

* refactor: redis pub/sub methods, add unsubscribe, await subscribe

* fix: redundant unsubscribe

* fix: use map to store clients list

* fix: update how thinking event is handled in redis pub/sub and sse

* fix: review feedback
2026-04-02 13:14:40 +05:30
jslim-23andjoonlim 14b6e4159e fix(components): reuse extracted response content for ConditionAgent JSON parsing (#6072)
* fix: normalize conditionagent response content before parsing

* fix(components): reuse normalized response content in ConditionAgent

---------

Co-authored-by: joonlim <[email protected]>
2026-04-02 06:46:28 +08:00
Henry Heng d16c97eb23 Fix: restore token-by-token streaming for chains using createTextOnlyOutputParser (#6086)
fix: restore token-by-token streaming for chains using createTextOnlyOutputParser
2026-04-02 06:45:53 +08:00