Commit Graph

428 Commits

Author SHA1 Message Date
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
yusheng chen e3dc9f3c31
refactor & perf: declare const object outside component `VarReferencePicker` (#17496) 2025-04-07 10:12:10 +08:00
yusheng chen c05e03fc09
refactor & perf: `import { noop } from 'lodash-es'` across `web` (#17439) 2025-04-06 17:56:08 +08:00
crazywoola da2113bde9
fix: client side error (#17428) 2025-04-04 15:59:02 +08:00
Novice dcdec98c8e
feat: agent node add memory (#15976) 2025-04-03 16:40:58 +08:00
Good Wood b3f4e90862
feat: remove file and file[] restriction in code node (#17382) 2025-04-03 16:23:19 +08:00
zxhlyh 78409dfec1
fix: loop single run log (#17329) 2025-04-02 15:22:24 +08:00
zxhlyh 713902dc47
Feat/loop break node (#17268) 2025-04-01 16:52:07 +08:00
HuDenghui 4b5ec242e7
fix: Fix lodash module not found issue (#16953) 2025-04-01 12:16:49 +08:00
Obada Khalili 6372cb7b41
Support variables in question classifier classes (#17227) 2025-04-01 11:19:36 +08:00
Joel 7df36fe9f5
fix: run frontend test failed and enable run test in CI (#17017) 2025-03-31 14:36:01 +08:00
Good Wood 42968cb945
fix: fix cannot select stream-tool-call in agent modal (#17015) 2025-03-29 14:47:28 +08:00
非法操作 91db2207b3
fix: tool's number and secet input display issue (#16834) 2025-03-26 21:17:04 +08:00
非法操作 d87d66ab88
fix missing agent node help link (#16841) 2025-03-26 16:28:32 +08:00
Joel 032d849f17
chore: handle Textarea component ref warning in react 19 (#16818) 2025-03-26 14:55:02 +08:00
Wu Tianwei 9701b573e0
feat: add datasets detail context and provider for improved data vali… (#16451) 2025-03-24 14:30:26 +08:00
zxhlyh 17b4d4c7b2
fix: workflow if-else node variable tag style (#16583) 2025-03-24 11:06:10 +08:00
Good Wood 7ce8faf176
fix: fix variable-aggregator cannot pass node check in group mode (#16439)
Co-authored-by: crazywoola <427733928@qq.com>
2025-03-24 09:49:33 +08:00
LiuBodong ae5d2ecf48
fix:weight_type missing when create document in dataset (#16503) 2025-03-22 20:21:57 +08:00
kenwoodjw 3306228840
fix: workflow file add related-id in iteration node (#16255)
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
2025-03-21 20:57:02 +08:00
Joel 7709d9df20
Chore: frontend infrastructure upgrade (#16420)
Co-authored-by: NFish <douxc512@gmail.com>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: jZonG <jzongcode@gmail.com>
2025-03-21 17:41:03 +08:00
GuanMu c1f3d968bf
fix: enhance React imports in LLM panel component #16282 (#16283) 2025-03-20 10:55:37 +08:00
Wu Tianwei 965bfc49dd
fix: update _dataset handling in knowledge retrieval config (#16218) 2025-03-19 17:48:49 +08:00
jimmyfen 425ea4e5b6
fix: model changed but completion params not change (#16156) 2025-03-19 17:48:18 +08:00
诗浓 0189a8b0f6
fix: agent node help link error in zh (#16194) 2025-03-19 16:04:17 +08:00
Wu Tianwei 411e332f1b
feat: dark mode for knowledge (#15236) 2025-03-19 11:19:57 +08:00
zxhlyh 20376ca951
feat: upgrade knowledge metadata (#16063)
Support filter knowledge by metadata.

Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: NFish <douxc512@gmail.com>
2025-03-18 11:01:06 +08:00
Joel f8f21ef7c0
fix: node use vision model may caused page crash (#15921) 2025-03-16 08:54:18 +08:00
zxhlyh b541792465
fix: workflow loop node break conditions (#15549) 2025-03-12 10:10:51 +08:00
Yuichiro Utsumi 71a57275ab
fix: improve selection of variable in workflow (#15484)
Signed-off-by: Yuichiro Utsumi <utsumi.yuichiro@fujitsu.com>
2025-03-11 16:57:45 +08:00
KVOJJJin 78d460a6d1
Feat: time period filter for workflow logs (#14271)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
2025-03-10 14:02:58 +08:00
Hantaek Lim f7e012d216
Fix: reranker OFF logic to preserve user setting (#15235)
Co-authored-by: crazywoola <427733928@qq.com>
2025-03-08 19:08:48 +08:00
Wu Tianwei 3ca1373274
feat: version tag (#14949) 2025-03-07 18:10:40 +08:00
Wood 2c17bb2c36
Feature/newnew workflow loop node (#14863)
Co-authored-by: arkunzz <4873204@qq.com>
2025-03-05 17:41:15 +08:00