Commit Graph

461 Commits

Author SHA1 Message Date
lyzno1 e5e42bc483
fix: XSS vulnerability in block-input and support-var-input components (#24835) 2025-08-31 17:01:10 +08:00
zyileven 52e9bcbfdb
fix(web): improve floating UI positioning when scrolling (#24595) (#24782) 2025-08-29 16:49:13 +08:00
Joel fab5740778
fix: can not choose file type var in aggreggator node (#24689) 2025-08-28 14:28:46 +08:00
Joel dac72b078d
feat: support bool type variable frontend (#24437)
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
2025-08-26 18:16:05 +08:00
17hz 8af2ae973f
feat: Auto-associate variables in Jinja editor mode (#24561) 2025-08-26 17:54:16 +08:00
Davide Delbianco 0a2111f33d
Expose agent node usage (#24355) 2025-08-23 10:57:58 +08:00
Charles Lee 0c595c4745
style: replace `h-[1px]` with `h-px` to unify the writing format of Tailwind CSS (#24146) 2025-08-21 21:38:40 +08:00
Joel de9c5f10b3
feat: enchance prompt and code (#23633)
Co-authored-by: stream <stream@dify.ai>
Co-authored-by: Stream <1542763342@qq.com>
Co-authored-by: Stream <Stream_2@qq.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-18 12:29:12 +08:00
Rajhans Jadhao 8d47213529
fix(workflow/if-else): keep conditions in sync on variable rename (#23611)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: crazywoola <427733928@qq.com>
2025-08-14 19:55:18 +08:00
HyaCinth ff791efe18
fix: Optimize the event handling for inserting variable shortcuts, resolving incorrect blur issues (#22981) (#23707) 2025-08-11 11:08:12 +08:00
Matri Qi ea502d36a9
lint: fix sonarjs/no-dead-store issues (#23653) 2025-08-10 11:16:43 +08:00
Guangdong Liu 79a3c1618f
fix: support custom file types in workflow Start node (#23672)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-10 11:09:47 +08:00
Matri Qi cb5e2ad9b2
lint: fix tailwind lint issues (#23367)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-08-08 09:25:41 +08:00
Minamiyama 4934dbd0e6
feat(workflow): add relations panel to visualize dependencies (#21998)
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-08-05 15:08:23 +08:00
Matri Qi 75f722a959
lint: fix issue of no-unused-vars (#23375) 2025-08-05 11:12:30 +08:00
znn d470120a60
retention of data filled on tab switch for tool plugin (#23323) 2025-08-03 18:31:15 +08:00
Matri Qi 99a4bd82b5
chore: fix function name typo (#23306) 2025-08-03 10:09:26 +08:00
NeatGuyCoding ff9fd0cdb2
fix: fix wrong css class (#23299) 2025-08-02 17:36:15 +08:00
Matri Qi aac849d4f4
Fix/variable input validation issue (#23300) 2025-08-02 17:35:51 +08:00
zxhlyh f78b903a49
Chore/variable label (#23270) 2025-08-01 15:43:36 +08:00
NeatGuyCoding 759ded3e3a
minor fix: fix default for status of TidbAuthBinding in compatible with various versions (#22288) 2025-08-01 14:51:16 +08:00
HyaCinth f7016fd922
chore: Optimize component styles and interactions (#23250) (#23251) 2025-08-01 14:18:38 +08:00
lyzno1 1b2046da3f
fix: prevent client-side crashes from null/undefined plugin data in workflow (#23154) (#23182) 2025-07-31 10:03:33 +08:00
kenwoodjw 28478cdc41
feat: support metadata condition filter string array (#23111)
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
2025-07-30 16:13:45 +08:00
呆萌闷油瓶 11ec62ca70
fix: element of Array[string] and Array[number] and size attribution (#23074)
Co-authored-by: crazywoola <427733928@qq.com>
2025-07-30 15:21:50 +08:00
baonudesifeizhai 72a2c3decf
Fix/http node timeout validation#23077 (#23117)
Co-authored-by: crazywoola <427733928@qq.com>
2025-07-29 21:40:15 +08:00
lyzno1 6914c1c85e
fix(web): make iteration panel respect MAX_PARALLEL_LIMIT environment variable (#23083) (#23104) 2025-07-29 21:39:40 +08:00
KVOJJJin 84aa38586f
Fix: number input can display 0 (#23084) 2025-07-29 10:59:12 +08:00
znn a70d59d4a6
ability to click classifier during workflow execution (#23079) 2025-07-29 09:45:49 +08:00
Anton Kovalev 15757110cf
feat: default value option for select input fields (#21192)
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: GuanMu <ballmanjq@gmail.com>
2025-07-28 15:37:23 +08:00
呆萌闷油瓶 f72c03a174
feat: Support selecting variables in conditional filtering in list operations. (#23029)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: crazywoola <427733928@qq.com>
2025-07-28 13:59:34 +08:00
znn 177b0fb5e8
ability to select same type sub item by preserving children of both f… (#23002) 2025-07-28 10:04:31 +08:00
znn e0fe158f0b
node title number on copied iteration node (#23004) 2025-07-27 09:10:04 +08:00
Wu Tianwei ad472d59e0
fix: Refactor i18n config and fix plugin search box styling issue (#22945) 2025-07-25 15:01:28 +08:00
Yeuoly 9237976988
fix: refine handling of constant and mixed input types in ToolManager and ToolNodeData (#22903) 2025-07-24 16:14:08 +08:00
yijq eb06de0921
refactor: Modify the triggering method of the variable selector in the modification object subtree panel(#22237) (#22238) 2025-07-22 08:24:54 +08:00
lyzno1 b5599b2945
fix: prevent panel width localStorage pollution during viewport compression (#22745) (#22747) 2025-07-22 08:11:01 +08:00
Novice 17a8f1a0f1
fix: avoid using node_data.version for judgement tool node version (#22462)
Co-authored-by: JzoNg <jzongcode@gmail.com>
2025-07-21 09:28:47 +08:00
mudiko d37b6716cd
Fix #22508 (#22590) 2025-07-18 13:43:58 +08:00
znn 3826b57424
remove node-info for non mcp (#22595) 2025-07-18 09:25:57 +08:00
Kalo Chin 7a69b57823
Fix jinja2 variable naming inconsistencies (#22578) 2025-07-17 22:16:47 +08:00
Maries a4ef900916
Support OAuth Integration for Plugin Tools (#22550)
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: Yeuoly <admin@srmxy.cn>
2025-07-17 17:18:44 +08:00
znn 3cfba9e47b
updating icon (#22485) 2025-07-17 15:10:36 +08:00
Chieh Wang 30aa052a57
feat: Add Citations and Attributions to Agent Node (#18558)
Co-authored-by: oneness0 <2902216407@qq.com>
Co-authored-by: Novice <novice12185727@gmail.com>
2025-07-16 15:46:15 +08:00
Minamiyama 66cc1b4308
feat(variable-list): add drag-and-drop functionality for variables in code node (#22127) 2025-07-16 15:24:19 +08:00
QuantumGhost 2c1ab4879f
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025)
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025)

This PR addresses serialization issues in the VariablePool model by separating the `value_type` tags for `IntegerSegment`/`FloatSegment` and `IntegerVariable`/`FloatVariable`. Previously, both Integer and Float types shared the same `SegmentType.NUMBER` tag, causing conflicts during serialization.

Key changes:
- Introduce distinct `value_type` tags for Integer and Float segments/variables
- Add `VariableUnion` and `SegmentUnion` types for proper type discrimination
- Leverage Pydantic's discriminated union feature for seamless serialization/deserialization
- Enable accurate serialization of data structures containing these types

Closes #22024.
2025-07-16 12:31:37 +08:00
Kerwin Bryant 229b4d621e
Improve Tooltip UX by enabling delay by default (#21383) 2025-07-16 11:26:54 +08:00
yolofit 0dee41c074
fix: When var value changed, PromptEditor should be reset (#22219) 2025-07-16 11:22:54 +08:00
GuanMu b803eeb528
fix: Update condition items to support variable type acquisition (#22414) 2025-07-15 19:38:13 +08:00
GuanMu d427088ab5
fix: remove PickerPanel padding (#22419) 2025-07-15 15:37:13 +08:00
suntp 88537991d6
fix: Metadata filtering with Manual option in Agent mode does not take effect when specifying input variables. (#20362) 2025-07-15 10:47:20 +08:00
HyaCinth 8b1f428ead
Chore: Replace lodash/noop with lodash-es/noop (#22331) 2025-07-14 13:57:26 +08:00
Minamiyama 016ff0feae
fix(ui): prevent var icon hidden when only one var in list of start node (#22290) 2025-07-13 20:10:15 +08:00
非法操作 aa6cad5f1d
fix: tool's model selector and app selector not work (#22291) 2025-07-13 20:04:29 +08:00
yolofit 817071e448
fix: iteration itemType support conversation var (#22220) (#22236) 2025-07-11 19:16:30 +08:00
GuanMu f193e9764e
fix: Optimize the workspace panel width calculation (#22195) 2025-07-11 19:12:12 +08:00
Minamiyama 5f9628e027
feat(workflow): add drag-and-drop support for variable list items for start node (#22150) 2025-07-11 18:53:29 +08:00
Joel 11f9a897e8
chore: fix schema editor can not hover item (#22155) 2025-07-10 17:33:11 +08:00
Joel 5375d9bb27
feat: the frontend part of mcp (#22131)
Co-authored-by: jZonG <jzongcode@gmail.com>
Co-authored-by: Novice <novice12185727@gmail.com>
Co-authored-by: nite-knite <nkCoding@gmail.com>
Co-authored-by: Hanqing Zhao <sherry9277@gmail.com>
2025-07-10 14:14:02 +08:00
Minamiyama a9cc19f530
feat(question-classifier): add drag-and-drop sorting for topics list (#22066)
Co-authored-by: crazywoola <427733928@qq.com>
2025-07-10 10:03:11 +08:00
Davide Delbianco 1885426421
feat: Allow to change SSL verify in HTTP Node (#22052)
Co-authored-by: crazywoola <427733928@qq.com>
2025-07-09 15:53:24 +08:00
Minamiyama 3643ed1014
Feat: description field for env variables (#21556) 2025-07-09 15:18:23 +08:00
Davide Delbianco 816210d744
Expose LLM usage in workflows (#21766)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-07-08 21:18:00 +08:00
Minamiyama f925869f61
fix(variable): ensure unique variable names in var-list (#22038) 2025-07-08 15:41:27 +08:00
Minamiyama a4bdeba60d
feat(question-classifier): add instanceId to class-item editor (#22002) 2025-07-08 10:04:05 +08:00
Minamiyama 71385d594d
fix(variables): Improve `getNodeUsedVars` implementation details (#21987) 2025-07-08 09:33:13 +08:00
Minamiyama c48b32c9e3
ENH(ui): enhance check list (#21932)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-07 14:52:36 +08:00
heyszt a201e9faee
feat: Add Aliyun LLM Observability Integration (#21471) 2025-07-04 21:54:33 +08:00
Minamiyama 317d287458
fix(loop-variables): validate variable name input (#21888) 2025-07-03 23:30:56 +08:00
Joel ed54bd5121
fix: not search plugin if marketplace enabled (#21880) 2025-07-03 16:43:11 +08:00
Minamiyama a45aa1e505
feat(variables): auto replace spaces with underscores in variable name inputs (#21843) 2025-07-03 10:36:38 +08:00
HyaCinth a3654c8fe9
fix(web): adjust HTTP node method and input layout (#21834) (#21855) 2025-07-03 09:26:38 +08:00
zxhlyh 68f41bbaa8
Fix/workflow use nodes hooks (#21822) 2025-07-02 17:48:23 +08:00
Kalo Chin 1b99e44e99
feat: Retain LLM Configuration Settings When Changing Model (#21247) 2025-07-01 11:32:46 +08:00
Minamiyama 25de39d9c6
Feat: sync input variable names to main() function (#21667) 2025-07-01 10:57:07 +08:00
NFish 6013d90426
Fix/ serveral bugs fixed in enterprise (#21729) 2025-07-01 10:42:11 +08:00
Minamiyama 7c76458b18
fix: fix node valid detect (#21709) 2025-07-01 10:32:00 +08:00
Minamiyama 0f23e3d9ab
fix(ui): no hover effect in copy button of code node (#21671) 2025-06-29 14:49:10 +08:00
crazywoola 81fc49d78c
fix: value_selector will be empty string (#21598) 2025-06-27 10:38:22 +08:00
Yeuoly cea6522122
feat: add DYNAMIC_SELECT parameter type for dynamic options in parameter entities (#21425) 2025-06-26 17:44:14 +08:00
-LAN- 0f5417ab84
feat(web): Contains sys.files in the default template. (#21476) 2025-06-25 13:06:07 +08:00
crazywoola 8a20134a5b
fix: inputs.items is undefined (#21463) 2025-06-25 11:02:27 +08:00
Joel 1a1bfd4048
feat: last run frontend (#21369)
The frontend of feat: Persist Variables for Enhanced Debugging Workflow (#20699).

Co-authored-by: jZonG <jzongcode@gmail.com>
2025-06-24 09:10:30 +08:00
Good Wood 43f5b21852
feat: add config for max-tree-depth (#21291) 2025-06-23 13:55:57 +08:00
KVOJJJin 223448af18
Feat: support selecting model in auto generator (#21208) 2025-06-20 13:42:42 +08:00
HyaCinth 945d1569ee
fix(web): fix unique key issue (#20809) (#20810) 2025-06-18 10:04:18 +08:00
HyaCinth 21c2de2d7e
fix(code-editor): optimize the loading style of the CodeEditor component in dark mode (#21116) (#21120) 2025-06-17 17:49:44 +08:00
非法操作 7a2a8a2ffd
chore: check input variable key of code/template node is valid (#21057) 2025-06-17 16:27:51 +08:00
kurokobo df6451076b
fix: prevent nodes from being unintentionally deleted by pressing the backspace key. (#21023) 2025-06-17 16:11:30 +08:00
Wu Tianwei 59b89b9971
fix: update documentation links for various components to support localization (#21048) 2025-06-16 14:13:04 +08:00
Bowen Liang f4df759ba6
refactor: generalize method for getting doc link respecting locale and fix error link paths (#20801) 2025-06-13 10:58:43 +02:00
HyaCinth fc6e2d14a5
fix(web): optimize prompt change logic for LLM nodes (#20841) (#20865) 2025-06-10 09:04:10 +02:00
非法操作 ab62a9662c
fix: some dark mode display incorrect (#20788) 2025-06-09 16:09:27 +08:00
kenwoodjw 01d500db14
fix: autocorrect everything in web (#20605)
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
2025-06-04 14:12:24 +08:00
KVOJJJin d6b30efe2c
Fix/dark theme style issues (#20566) 2025-06-03 13:53:24 +08:00
kenwoodjw 23c9f1b444
fix ts5097 (#20543)
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
2025-06-02 18:02:50 +08:00
Wu Tianwei 9b47f9f786
fix(json-schema-editor): Add container reference for resize observer in CodeEditor; Update language hook and help doc URL in JsonSchemaConfig (#20488) 2025-05-30 13:54:12 +08:00
非法操作 dd2725be68
fix: import from curl not work for --data (#20471) 2025-05-30 10:52:38 +08:00
Joel abc32edf28
chore: enchance the copywriting of tool (#20294) 2025-05-27 16:40:11 +08:00
zxhlyh b12c28a984
fix: workflow http node (#20262) 2025-05-27 11:05:38 +08:00
Good Wood 84679f1a5b
fix: prevent save when default max_iteration has value in agent node (#20211) 2025-05-26 16:28:29 +08:00
wellCh4n 627911d4ff
feat: Move to node in workflow panel and fix help link hover style (#19998) 2025-05-21 11:29:24 +08:00
wellCh4n 276c02f341
feat: Variable click jumps to source node (#13623) 2025-05-19 23:17:18 +08:00
Junjie.M 2862631f03
fix: tool node number type constant field dark style (#19818) 2025-05-18 12:58:22 +08:00
GQ1994 e7659ecd9d
revert https://github.com/langgenius/dify/pull/19497 (19497) (#19807)
Co-authored-by: qingguo <qingguo@lexin.com>
2025-05-17 12:32:27 +08:00
CorrectRoad de2cfd2927
fix: fix metadata condition name overflow (#19812) 2025-05-16 14:33:14 +08:00
crazywoola 4dc06ee43f
revert: https://github.com/langgenius/dify/pull/18554 (#19787) 2025-05-15 22:39:35 +08:00
KVOJJJin aae80681f2
Fix: style of dataset item in chatbot configure with theme dark (#19761) 2025-05-15 17:36:05 +08:00
crazywoola 95467a3f0b
fix: broken behavior of rendering (#19732) 2025-05-15 14:37:00 +08:00
Joel 486a66be54
fix: item data type wrong in iteration (#19709) 2025-05-15 10:54:35 +08:00
董富宝 3c953cb0ef
fix:#18447:When variables in the workflow are deleted or modified, it is impossible to visually identify subsequent node errors (#18554)
Co-authored-by: crazywoola <427733928@qq.com>
2025-05-14 10:17:15 +08:00
KVOJJJin 3548c133e3
Feat: add theme switcher (#18093) 2025-05-14 09:06:14 +08:00
Good Wood b8e305f183
fix: fix can't config Nth item in list Node (#19618) 2025-05-13 19:46:26 +08:00
johnny0120 49af07f444
fix: use NextJS basePath and WEB_PREFIX to support custom prefix (#19497)
Co-authored-by: johnny0120 <15564476+johnny0120@users.noreply.github.com>
2025-05-12 13:44:41 +08:00
HyaCinth 736a064bac
fix(web): Add unique instanceId & key for AgentStrategy component (#18053) (#19386) 2025-05-08 16:20:51 +08:00
Good Wood d1c08a810b
feat: store mcp_config when switch agent strategy (#19291) 2025-05-07 14:49:28 +08:00
AllenWriter 3ecc1e0228
Fix: update docs link (#19278) 2025-05-06 17:02:01 +08:00
GeorgeCaoJ b979a8a707
feat: sort variables in the selector by x axis for most recent order (#19243) 2025-05-06 10:59:02 +08:00
crazywoola 9231c197a5
fix: s.filter is not a function (#19250) 2025-05-06 10:26:44 +08:00
-LAN- bcc95e520b
feat: support remove first and remove last in variable assigner (#19144)
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-04-30 15:50:00 +08:00
QuantumGhost bd1bbfee4b
Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
Joel 315436e43b
fix: classify remove always remove the last one (#18959) 2025-04-28 13:56:43 +08:00
crazywoola 03ac2d0f17
fix: i.find is not a function (#18945) 2025-04-28 11:09:54 +08:00
Joel eb92dd59f9
chore: disabled struct output not show model not support warning (#18909) 2025-04-27 18:30:45 +08:00
Junjie.M e3daef19e7
chatflow/workflow add field required (#18892) 2025-04-27 16:12:02 +08:00
Joel c6fb879cea
fix: select struct output root object show the wrong type (#18582) 2025-04-23 11:06:29 +08:00
allenZhang 94e22ba0fd
feat: add search input field (#18409) 2025-04-22 11:07:18 +08:00
Wu Tianwei 80f5ee1eb2
fix: fix workflow as a tool confirm dialog layout issue (#18494) 2025-04-22 09:59:14 +08:00
Joel 5d9c67e97e
fix: handle array item type error in struct output (#18452) 2025-04-21 14:15:38 +08:00
Joel 775dc47abe
feat: llm support struct output (#17994)
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
2025-04-18 16:53:43 +08:00
Wu Tianwei 1e7418095f
feat/TanStack-Form (#18346) 2025-04-18 15:54:22 +08:00
GuanMu 77fde04ef7
style: add left padding to editor component and remove unused CSS (#18247) 2025-04-17 11:47:59 +08:00
Joel 9d139fa306
fix: Could not load the logo of workflow as Tool in Agent Node (#18243) 2025-04-17 11:22:06 +08:00
Junjie.M b7e8517b31
feat: agent strategy parameter add help information (#18192) 2025-04-16 17:24:09 +08:00
Junjie.M da7c8621f7
fix: agent strategy string type parameter default value invalid (#18185) 2025-04-16 17:03:18 +08:00
yusheng chen 4c99e9dc73
refactor: type improvements that doesn't modify functionality (#17970) 2025-04-14 16:06:10 +08:00
Joel d80f4c7d3b
chore: eslint add sonar (#17989) 2025-04-14 15:28:20 +08:00
crazywoola 8f9cbe1c49
Chore/cleanup warnings (#17974) 2025-04-14 11:27:14 +08:00
GuanMu 0975c3c399
style(retry-on-node): add margin-bottom to the container (#17972) 2025-04-14 11:05:59 +08:00
crazywoola 4aecc9f090
fix: TypeError: a.variable_selector.join is not a function (#17950) 2025-04-14 09:27:08 +08:00
yusheng chen 7ca497f0d6
refactor & perf: improve type safety of component `PluginList` (#17498) 2025-04-13 10:52:54 +08:00
KVOJJJin 17a26da1e6
Feat: workflow dark mode (#17785) 2025-04-10 17:15:48 +08:00
Wu Tianwei 29720b7360
fix: adjust spacing in ViewHistory and Panel components (#17766) 2025-04-10 15:53:50 +08:00
zxhlyh 30f7118c7a
Chore/slice workflow utils (#17730) 2025-04-10 10:03:19 +08:00
yusheng chen f633d1ee92
chore: add `'no-empty-function': 'error'` to `eslint.config.mjs` (#17656) 2025-04-09 12:10:17 +08:00
Marcelo Díaz d796fcc0e7
feat: support select-type variables in Metadata Filtering (#17440 (#17445) 2025-04-08 11:15:07 +08:00
Good Wood 7b7ac7a495
fix: compatibility issues for currentStrategy.features is null (#17581) 2025-04-08 09:24:42 +08:00
yusheng chen dd4b03e812
refactor & perf of file `var-reference-vars.tsx` (#17444) 2025-04-07 10:13:22 +08:00
yusheng chen bf69b97639
refactor & perf: declare const object outside component `ConstantField` (#17495) 2025-04-07 10:12:35 +08:00
yusheng chen 6d59b8d85b
refactor: type improvement of component `AddVariablePopupWithPosition` (#17497) 2025-04-07 10:12:20 +08:00