@fudanda/workflow 1.20261015.1-beta.1 → 2.20261024.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +114 -114
  3. package/THIRD-PARTY-NOTICES.md +57 -57
  4. package/dist/chrome.js +1 -1
  5. package/dist/flowgram-designer.d.ts +2 -1
  6. package/dist/graph-scope.d.ts +16 -85
  7. package/dist/index.js +3 -3
  8. package/dist/observation-types.d.ts +6 -0
  9. package/dist/prompt-kit.d.ts +1 -1
  10. package/dist/{start-form-D_J3UIoE.js → start-form-L6xw9phk.js} +125 -125
  11. package/dist/templates.d.ts +1 -1
  12. package/package.json +106 -105
  13. package/vendor/coze/LICENSE-APACHE +177 -177
  14. package/vendor/coze/UPSTREAM.json +2 -2
  15. package/vendor/coze/original/base-test-button.tsx +22 -22
  16. package/vendor/coze/original/comment-container.tsx +68 -68
  17. package/vendor/coze/original/condition-container.tsx +60 -60
  18. package/vendor/coze/original/condition-tag.tsx +58 -58
  19. package/vendor/coze/original/coze-global.less +234 -234
  20. package/vendor/coze/original/create-loop-function-json.ts +134 -134
  21. package/vendor/coze/original/create-loop-function.ts +56 -56
  22. package/vendor/coze/original/end-registry.ts +41 -41
  23. package/vendor/coze/original/execute-result-panel.less +97 -97
  24. package/vendor/coze/original/execute-result-panel.tsx +171 -171
  25. package/vendor/coze/original/form-item.less +39 -39
  26. package/vendor/coze/original/form-item.tsx +200 -200
  27. package/vendor/coze/original/http-api-field.tsx +42 -42
  28. package/vendor/coze/original/http-form-render.tsx +102 -102
  29. package/vendor/coze/original/icon-add.svg +3 -3
  30. package/vendor/coze/original/icon-arrow-left.svg +3 -3
  31. package/vendor/coze/original/icon-auto-layout.svg +18 -18
  32. package/vendor/coze/original/icon-code.svg +13 -13
  33. package/vendor/coze/original/icon-condition.svg +12 -12
  34. package/vendor/coze/original/icon-database.svg +18 -18
  35. package/vendor/coze/original/icon-delete.svg +5 -5
  36. package/vendor/coze/original/icon-fullscreen.svg +9 -9
  37. package/vendor/coze/original/icon-more.svg +11 -11
  38. package/vendor/coze/original/icon-play-round-outlined.svg +8 -8
  39. package/vendor/coze/original/icon-plugin-tool.svg +6 -6
  40. package/vendor/coze/original/icon-standard-copy.svg +8 -8
  41. package/vendor/coze/original/icon-unknown.svg +7 -7
  42. package/vendor/coze/original/icon-var.svg +6 -6
  43. package/vendor/coze/original/icon-workflow-end.svg +5 -5
  44. package/vendor/coze/original/icon-workflow-start.svg +5 -5
  45. package/vendor/coze/original/icon-workflow.svg +21 -21
  46. package/vendor/coze/original/icon-workflows.svg +5 -5
  47. package/vendor/coze/original/if-form-meta.tsx +88 -88
  48. package/vendor/coze/original/logic-display.tsx +33 -33
  49. package/vendor/coze/original/mouse-icon.tsx +35 -35
  50. package/vendor/coze/original/mouse-pad-selector.tsx +180 -180
  51. package/vendor/coze/original/node-card.tsx +77 -77
  52. package/vendor/coze/original/node-category-panel.less +4 -4
  53. package/vendor/coze/original/node-category-panel.tsx +53 -53
  54. package/vendor/coze/original/node-config-form.tsx +67 -67
  55. package/vendor/coze/original/node-header.less +165 -165
  56. package/vendor/coze/original/node-header.tsx +552 -552
  57. package/vendor/coze/original/node-panel.less +183 -183
  58. package/vendor/coze/original/node-render.less +20 -20
  59. package/vendor/coze/original/node-side-sheet.less +57 -57
  60. package/vendor/coze/original/node-side-sheet.tsx +214 -214
  61. package/vendor/coze/original/node-wrapper.tsx +71 -71
  62. package/vendor/coze/original/pad-icon.tsx +45 -45
  63. package/vendor/coze/original/resizable-side-panel-constants.ts +18 -18
  64. package/vendor/coze/original/resizable-side-panel.tsx +42 -42
  65. package/vendor/coze/original/start-registry.ts +53 -53
  66. package/vendor/coze/original/sub-canvas-background.less +4 -4
  67. package/vendor/coze/original/sub-canvas-background.tsx +48 -48
  68. package/vendor/coze/original/sub-canvas-container.less +16 -16
  69. package/vendor/coze/original/sub-canvas-container.tsx +97 -97
  70. package/vendor/coze/original/sub-canvas-header.less +75 -75
  71. package/vendor/coze/original/sub-canvas-header.tsx +95 -95
  72. package/vendor/coze/original/test-form-sheet-header.tsx +82 -82
  73. package/vendor/coze/original/test-form-sheet.less +178 -178
  74. package/vendor/coze/original/toolbar-add-node.tsx +68 -68
  75. package/vendor/coze/original/toolbar-auto-layout.tsx +61 -61
  76. package/vendor/coze/original/toolbar-comment.tsx +121 -121
  77. package/vendor/coze/original/toolbar-container.tsx +42 -42
  78. package/vendor/coze/original/toolbar-interactive.tsx +98 -98
  79. package/vendor/coze/original/toolbar-minimap-switch.tsx +41 -41
  80. package/vendor/coze/original/toolbar-tools.less +46 -46
  81. package/vendor/coze/original/toolbar-tools.tsx +89 -89
  82. package/vendor/coze/original/toolbar-zoom.tsx +134 -134
  83. package/vendor/coze/original/tree-variable-selector.less +291 -291
  84. package/vendor/coze/original/tree-variable-selector.tsx +298 -298
  85. package/vendor/coze/original/workflow-document-custom-options.ts +151 -151
  86. package/vendor/coze/original/workflow-header.less +65 -65
  87. package/vendor/coze/original/workflow-header.tsx +85 -85
  88. package/vendor/coze/source/agent-models/model-option/index.module.less +18 -18
  89. package/vendor/coze/source/agent-models/model-option/index.tsx +321 -321
  90. package/vendor/coze/source/agent-models/model-option-avatar/index.tsx +175 -175
  91. package/vendor/coze/source/agent-models/model-option-group/index.tsx +87 -87
  92. package/vendor/coze/source/agent-models/model-option-thumb/index.tsx +41 -41
  93. package/vendor/coze/source/agent-models/model-select-ui/index.tsx +238 -238
  94. package/vendor/coze/source/agent-models/popover-model-list-view/index.tsx +146 -146
  95. package/vendor/coze/source/components/code-editor/text-editor.tsx +71 -71
  96. package/vendor/coze/source/components/comment/components/editor/block.tsx +117 -117
  97. package/vendor/coze/source/components/comment/components/editor/leaf.tsx +64 -64
  98. package/vendor/coze/source/components/comment/components/toolbar.tsx +366 -366
  99. package/vendor/coze/source/components/comment/constant.ts +94 -94
  100. package/vendor/coze/source/components/editor-container/expand-editor/index.module.less +107 -107
  101. package/vendor/coze/source/components/editor-container/expand-editor/index.tsx +117 -117
  102. package/vendor/coze/source/components/model-select/components/model-setting.tsx +300 -300
  103. package/vendor/coze/source/components/model-select/components/settings.tsx +144 -144
  104. package/vendor/coze/source/components/model-select/index.module.less +34 -34
  105. package/vendor/coze/source/components/model-select/utils/index.tsx +100 -100
  106. package/vendor/coze/source/components/node-render/node-render-new/fields/constants.tsx +79 -79
  107. package/vendor/coze/source/components/node-render/node-render-new/fields/field-empty.module.less +12 -12
  108. package/vendor/coze/source/components/node-render/node-render-new/fields/field-empty.tsx +37 -37
  109. package/vendor/coze/source/components/node-render/node-render-new/fields/field.module.less +19 -19
  110. package/vendor/coze/source/components/node-render/node-render-new/fields/field.tsx +52 -52
  111. package/vendor/coze/source/components/node-render/node-render-new/fields/http-api-field/index.tsx +42 -42
  112. package/vendor/coze/source/components/node-render/node-render-new/fields/overflow-tag-list.module.less +47 -47
  113. package/vendor/coze/source/components/node-render/node-render-new/fields/overflow-tag-list.tsx +162 -162
  114. package/vendor/coze/source/components/node-render/node-render-new/fields/variable-tag-list.module.less +48 -48
  115. package/vendor/coze/source/components/node-render/node-render-new/fields/variable-tag-list.tsx +126 -126
  116. package/vendor/coze/source/components/node-wrapper/execute-result-panel/index.module.less +97 -97
  117. package/vendor/coze/source/components/node-wrapper/execute-result-panel/index.tsx +171 -171
  118. package/vendor/coze/source/components/sub-canvas/components/background/index.module.less +4 -4
  119. package/vendor/coze/source/components/sub-canvas/components/header/index.module.less +75 -75
  120. package/vendor/coze/source/components/test-run/test-run-button/single-node.tsx +158 -158
  121. package/vendor/coze/source/execution-panel/panel.module.less +48 -48
  122. package/vendor/coze/source/execution-panel/panel.tsx +99 -99
  123. package/vendor/coze/source/execution-panel/use-resize.ts +79 -79
  124. package/vendor/coze/source/external/features/log/components/data-viewer/constants.ts +28 -28
  125. package/vendor/coze/source/external/features/log/components/data-viewer/context/context.ts +21 -21
  126. package/vendor/coze/source/external/features/log/components/data-viewer/context/create-store.ts +48 -48
  127. package/vendor/coze/source/external/features/log/components/data-viewer/context/index.ts +19 -19
  128. package/vendor/coze/source/external/features/log/components/data-viewer/context/provider.tsx +50 -50
  129. package/vendor/coze/source/external/features/log/components/data-viewer/data-viewer.module.less +26 -26
  130. package/vendor/coze/source/external/features/log/components/data-viewer/data-viewer.tsx +79 -79
  131. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/index.ts +18 -18
  132. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-data-viewer-store.ts +29 -29
  133. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-expand.ts +35 -35
  134. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-value.tsx +66 -66
  135. package/vendor/coze/source/external/features/log/components/data-viewer/index.tsx +21 -21
  136. package/vendor/coze/source/external/features/log/components/data-viewer/json-field/index.tsx +186 -186
  137. package/vendor/coze/source/external/features/log/components/data-viewer/json-field/json-field.module.less +79 -79
  138. package/vendor/coze/source/external/features/log/components/data-viewer/types.ts +50 -50
  139. package/vendor/coze/source/external/features/log/components/data-viewer/utils/big-number.ts +35 -35
  140. package/vendor/coze/source/external/features/log/components/data-viewer/utils/generate-field.ts +104 -104
  141. package/vendor/coze/source/external/features/log/components/log-parser/log-wrap.module.less +27 -27
  142. package/vendor/coze/source/external/features/log/components/log-parser/log-wrap.tsx +109 -109
  143. package/vendor/coze/source/external/features/log/components/node-status-bar/node-status-bar.module.less +52 -52
  144. package/vendor/coze/source/external/features/log/components/node-status-bar/node-status-bar.tsx +113 -113
  145. package/vendor/coze/source/form/components/field-empty.tsx +45 -45
  146. package/vendor/coze/source/form/components/section.tsx +91 -91
  147. package/vendor/coze/source/form-extensions/components/add-item-button/index.tsx +64 -64
  148. package/vendor/coze/source/form-extensions/components/form-card/index.module.less +131 -131
  149. package/vendor/coze/source/form-extensions/components/form-card/index.tsx +309 -309
  150. package/vendor/coze/source/form-extensions/components/form-item/index.module.less +39 -39
  151. package/vendor/coze/source/form-extensions/components/form-item/index.tsx +200 -200
  152. package/vendor/coze/source/form-extensions/components/form-item-feedback/index.module.less +7 -7
  153. package/vendor/coze/source/form-extensions/components/form-item-feedback/index.tsx +39 -39
  154. package/vendor/coze/source/form-extensions/components/level-line/index.module.less +346 -346
  155. package/vendor/coze/source/form-extensions/components/level-line/index.ts +17 -17
  156. package/vendor/coze/source/form-extensions/components/level-line/level-line.tsx +460 -460
  157. package/vendor/coze/source/form-extensions/components/level-line/types.ts +38 -38
  158. package/vendor/coze/source/form-extensions/components/level-line/utils.ts +60 -60
  159. package/vendor/coze/source/form-extensions/components/literal-value-input/constants.ts +61 -61
  160. package/vendor/coze/source/form-extensions/components/literal-value-input/input-boolean.tsx +80 -80
  161. package/vendor/coze/source/form-extensions/components/literal-value-input/input-integer.tsx +68 -68
  162. package/vendor/coze/source/form-extensions/components/literal-value-input/input-number.tsx +62 -62
  163. package/vendor/coze/source/form-extensions/components/literal-value-input/input-select.tsx +59 -59
  164. package/vendor/coze/source/form-extensions/components/literal-value-input/input-string.tsx +55 -55
  165. package/vendor/coze/source/form-extensions/components/literal-value-input/literal-value-input.tsx +35 -35
  166. package/vendor/coze/source/form-extensions/components/literal-value-input/styles.module.less +46 -46
  167. package/vendor/coze/source/form-extensions/components/literal-value-input/type.ts +61 -61
  168. package/vendor/coze/source/form-extensions/components/literal-value-input/utils.tsx +117 -117
  169. package/vendor/coze/source/form-extensions/components/node-header/components/close-button.tsx +44 -44
  170. package/vendor/coze/source/form-extensions/components/node-header/description-display.tsx +52 -52
  171. package/vendor/coze/source/form-extensions/components/node-header/description.tsx +131 -131
  172. package/vendor/coze/source/form-extensions/components/node-header/index.module.less +165 -165
  173. package/vendor/coze/source/form-extensions/components/node-header/index.tsx +552 -552
  174. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-btn/index.tsx +43 -43
  175. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/default-value-input.tsx +276 -276
  176. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/index.module.less +124 -124
  177. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/index.tsx +131 -131
  178. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/types.ts +32 -32
  179. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-name/index.module.less +38 -38
  180. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-name/index.tsx +101 -101
  181. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-operator/index.module.less +51 -51
  182. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-operator/index.tsx +107 -107
  183. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-required/index.module.less +17 -17
  184. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-required/index.tsx +53 -53
  185. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/constants.tsx +77 -77
  186. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/index.module.less +97 -97
  187. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/index.tsx +155 -155
  188. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/constants.ts +38 -38
  189. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/index.module.less +138 -138
  190. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/index.tsx +360 -360
  191. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/type.ts +88 -88
  192. package/vendor/coze/source/form-extensions/components/output-tree/components/header/index.module.less +36 -36
  193. package/vendor/coze/source/form-extensions/components/output-tree/components/header/index.tsx +104 -104
  194. package/vendor/coze/source/form-extensions/components/output-tree/constants.ts +22 -22
  195. package/vendor/coze/source/form-extensions/components/output-tree/context.ts +28 -28
  196. package/vendor/coze/source/form-extensions/components/output-tree/hooks/use-columns-style.ts +39 -39
  197. package/vendor/coze/source/form-extensions/components/output-tree/index.module.less +83 -83
  198. package/vendor/coze/source/form-extensions/components/output-tree/index.tsx +692 -692
  199. package/vendor/coze/source/form-extensions/components/output-tree/utils.ts +185 -185
  200. package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/index.tsx +97 -97
  201. package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/option-item.tsx +30 -30
  202. package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/types.ts +23 -23
  203. package/vendor/coze/source/form-extensions/components/setting-on-error/components/retry-times/index.tsx +45 -45
  204. package/vendor/coze/source/form-extensions/components/setting-on-error/components/timeout/index.tsx +102 -102
  205. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select-option.tsx +167 -167
  206. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select-tree-panel.tsx +165 -165
  207. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select.module.less +96 -96
  208. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select.tsx +265 -265
  209. package/vendor/coze/source/form-extensions/components/tree-variable-selector/context.tsx +42 -42
  210. package/vendor/coze/source/form-extensions/components/tree-variable-selector/expand-icon.tsx +30 -30
  211. package/vendor/coze/source/form-extensions/components/tree-variable-selector/index.module.less +291 -291
  212. package/vendor/coze/source/form-extensions/components/tree-variable-selector/node-variable-tree.module.less +48 -48
  213. package/vendor/coze/source/form-extensions/components/tree-variable-selector/node-variable-tree.tsx +149 -149
  214. package/vendor/coze/source/form-extensions/components/tree-variable-selector/utils.tsx +500 -500
  215. package/vendor/coze/source/form-extensions/components/tree-variable-selector/value-display.tsx +130 -130
  216. package/vendor/coze/source/form-extensions/components/value-expression-input/const.ts +68 -68
  217. package/vendor/coze/source/form-extensions/components/value-expression-input/context.ts +27 -27
  218. package/vendor/coze/source/form-extensions/components/value-expression-input/index.module.less +144 -144
  219. package/vendor/coze/source/form-extensions/components/value-expression-input/value-expression-input.tsx +418 -418
  220. package/vendor/coze/source/form-extensions/components/variable-type-selector/constants.tsx +77 -77
  221. package/vendor/coze/source/form-extensions/components/variable-type-selector/index.module.less +31 -31
  222. package/vendor/coze/source/form-extensions/components/variable-type-selector/index.tsx +17 -17
  223. package/vendor/coze/source/form-extensions/components/variable-type-selector/utils.tsx +298 -298
  224. package/vendor/coze/source/form-extensions/components/variable-type-selector/variable-type-selector.tsx +235 -235
  225. package/vendor/coze/source/form-extensions/components/variable-type-tag/index.tsx +54 -54
  226. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-branch.module.less +9 -9
  227. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-branch.tsx +249 -249
  228. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-header.tsx +50 -50
  229. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-item-logic.module.less +13 -13
  230. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-item-logic.tsx +73 -73
  231. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/delete/index.module.less +10 -10
  232. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/delete/index.tsx +42 -42
  233. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/index.module.less +9 -9
  234. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/index.tsx +254 -254
  235. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/operator/index.module.less +7 -7
  236. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/operator/index.tsx +144 -144
  237. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/value-expression-with-state/index.tsx +69 -69
  238. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/context.ts +36 -36
  239. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/condition-branch-preview.tsx +44 -44
  240. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/condition-branch.tsx +152 -152
  241. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/container.tsx +19 -19
  242. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/custom-drag-layer.tsx +117 -117
  243. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/types.ts +18 -18
  244. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/types.ts +58 -58
  245. package/vendor/coze/source/node-registries/end/components/terminate-plan-field.tsx +29 -29
  246. package/vendor/coze/source/node-registries/end/constants.ts +34 -34
  247. package/vendor/coze/source/node-registries/end/form.tsx +66 -66
  248. package/vendor/coze/source/node-registries/end/types.ts +45 -45
  249. package/vendor/coze/source/node-registries/http/components/base-editor/raw-text-editor.tsx +80 -80
  250. package/vendor/coze/source/node-registries/http/constants.ts +80 -80
  251. package/vendor/coze/source/node-registries/http/fields/json-import-editor/index.module.less +191 -191
  252. package/vendor/coze/source/node-registries/http/fields/json-import-editor/json-import-components/json-expand-editor.tsx +141 -141
  253. package/vendor/coze/source/node-registries/http/fields/json-import-editor/json-import-components/json-import.tsx +99 -99
  254. package/vendor/coze/source/node-registries/http/form-render.tsx +102 -102
  255. package/vendor/coze/source/node-registries/http/setters/api/curl-expand-editor.tsx +161 -161
  256. package/vendor/coze/source/node-registries/http/setters/api/curl-import.tsx +96 -96
  257. package/vendor/coze/source/node-registries/http/setters/api/index.module.less +199 -199
  258. package/vendor/coze/source/node-registries/http/setters/api/index.tsx +149 -149
  259. package/vendor/coze/source/node-registries/http/setters/api/utils.ts +41 -41
  260. package/vendor/coze/source/node-registries/http/setters/body/index.tsx +201 -201
  261. package/vendor/coze/source/node-registries/http/setters/constants.ts +83 -83
  262. package/vendor/coze/source/node-registries/if/components/else/index.tsx +41 -41
  263. package/vendor/coze/source/node-registries/intent/components/intents/index.module.less +14 -14
  264. package/vendor/coze/source/node-registries/intent/components/intents/option-item/index.tsx +189 -189
  265. package/vendor/coze/source/node-registries/json-stringify/constants.ts +32 -32
  266. package/vendor/coze/source/node-registries/json-stringify/form.tsx +46 -46
  267. package/vendor/coze/source/node-registries/loop/constants.ts +43 -43
  268. package/vendor/coze/source/node-registries/loop/loop-fields/loop-settings-section/index.tsx +48 -48
  269. package/vendor/coze/source/node-registries/loop/loop-fields/loop-type/index.tsx +81 -81
  270. package/vendor/coze/source/node-registries/loop/loop-fields/loop-type/options.ts +34 -34
  271. package/vendor/coze/source/node-registries/start/form.tsx +209 -209
  272. package/vendor/coze/source/node-registries/text-process/components/method-selector/index.tsx +46 -46
  273. package/vendor/coze/source/node-registries/text-process/constants.ts +132 -132
  274. package/vendor/coze/source/nodes-v2/components/form-item-feedback/index.module.less +7 -7
  275. package/vendor/coze/source/nodes-v2/components/form-item-feedback/index.tsx +47 -47
  276. package/vendor/coze/source/nodes-v2/components/system-prompt/index.module.less +66 -66
  277. package/vendor/coze/source/nodes-v2/components/system-prompt/prompt-kit-bar.tsx +129 -129
  278. package/vendor/coze/source/nodes-v2/components/system-prompt/system-prompt-editor.tsx +110 -110
  279. package/vendor/coze/source/nodes-v2/llm/user-prompt/index.tsx +64 -64
  280. package/vendor/coze/source/prompt-kit/input-config-popover/index.tsx +80 -80
  281. package/vendor/coze/source/prompt-kit/input-slot-widget/index.css +34 -34
  282. package/vendor/coze/source/prompt-kit/input-slot-widget/index.ts +169 -169
  283. package/vendor/coze/source/prompt-kit/library-item.tsx +141 -141
  284. package/vendor/coze/source/prompt-kit/prompt-info-input.tsx +90 -90
  285. package/vendor/coze/source/ui-components/add-operation/index.module.less +19 -19
  286. package/vendor/coze/source/ui-components/add-operation/index.tsx +67 -67
  287. package/vendor/coze/source/ui-components/auto-size-tooltip/index.module.less +39 -39
  288. package/vendor/coze/source/ui-components/auto-size-tooltip/index.tsx +74 -74
  289. package/vendor/coze/source/ui-components/workflow-sl-input/index.module.less +36 -36
  290. package/vendor/coze/source/ui-components/workflow-sl-input/index.tsx +194 -194
  291. package/vendor/coze/source/utils/create-slots/index.tsx +126 -126
  292. package/vendor/coze/source/utils/create-slots/use-force-update.ts +23 -23
@@ -1,88 +1,88 @@
1
- /*
2
- * Copyright 2025 coze-dev Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import { type RecursedParamDefinition } from '@coze-workflow/base';
18
- import { type TreeNodeData } from '@coze-arch/bot-semi/Tree';
19
-
20
- import { type LiteralValueType } from '@/form-extensions/components/literal-value-input';
21
-
22
- import { type ChangeMode } from './constants';
23
-
24
- export type DefaultValueType = LiteralValueType;
25
-
26
- export type TreeNodeCustomData = TreeNodeData &
27
- Pick<
28
- RecursedParamDefinition,
29
- | 'name'
30
- | 'type'
31
- | 'isQuote'
32
- | 'fixedValue'
33
- | 'quotedValue'
34
- | 'fieldRandomKey'
35
- > & {
36
- // row unique value
37
- key: string;
38
- // Formed fields
39
- field: string;
40
- // Is it the first item?
41
- isFirst: boolean;
42
- // Is it the last item?
43
- isLast: boolean;
44
- // Is there only one item of data?
45
- isSingle: boolean;
46
- // The nesting level of the item, starting at 0
47
- level: number;
48
- // Fields displayed by the auxiliary line
49
- helpLineShow: Array<boolean>;
50
- children?: Array<TreeNodeCustomData>;
51
- // Variable descriptions, used as hidden bootstraps
52
- description?: string;
53
- // Is it required?
54
- required?: boolean;
55
- // Identifies that the parameter is a built-in parameter, and the default is false.
56
- isPreset?: boolean;
57
- // Identifies whether the parameter is enabled, the default is false
58
- enabled?: boolean;
59
- // default value
60
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
61
- defaultValue?: any;
62
- };
63
-
64
- export interface CustomTreeNodeFuncRef {
65
- data: TreeNodeCustomData;
66
- level: number;
67
- readonly: boolean;
68
- // General change method
69
- onChange: (mode: ChangeMode, param: TreeNodeCustomData) => void;
70
- // Customized type change method, mainly used for custom rendering
71
- // Add child item
72
- onAppend: () => void;
73
- // Delete this item
74
- onDelete: () => void;
75
- // Delete all children under this item
76
- onDeleteChildren: () => void;
77
- // The internal call method when the type changes, mainly used to delete all children when converting from the class Object type to other types
78
- onSelectChange: (
79
- val?: string | number | Array<unknown> | Record<string, unknown>,
80
- ) => void;
81
- }
82
-
83
- export interface ActiveMultiInfo {
84
- // Whether the current line is in a multi-line state, and the vertical line in the multi-line state needs to be extended
85
- activeMultiKey: string;
86
- // Is there an error message for the current row paramName data?
87
- withNameError?: boolean;
88
- }
1
+ /*
2
+ * Copyright 2025 coze-dev Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { type RecursedParamDefinition } from '@coze-workflow/base';
18
+ import { type TreeNodeData } from '@coze-arch/bot-semi/Tree';
19
+
20
+ import { type LiteralValueType } from '@/form-extensions/components/literal-value-input';
21
+
22
+ import { type ChangeMode } from './constants';
23
+
24
+ export type DefaultValueType = LiteralValueType;
25
+
26
+ export type TreeNodeCustomData = TreeNodeData &
27
+ Pick<
28
+ RecursedParamDefinition,
29
+ | 'name'
30
+ | 'type'
31
+ | 'isQuote'
32
+ | 'fixedValue'
33
+ | 'quotedValue'
34
+ | 'fieldRandomKey'
35
+ > & {
36
+ // row unique value
37
+ key: string;
38
+ // Formed fields
39
+ field: string;
40
+ // Is it the first item?
41
+ isFirst: boolean;
42
+ // Is it the last item?
43
+ isLast: boolean;
44
+ // Is there only one item of data?
45
+ isSingle: boolean;
46
+ // The nesting level of the item, starting at 0
47
+ level: number;
48
+ // Fields displayed by the auxiliary line
49
+ helpLineShow: Array<boolean>;
50
+ children?: Array<TreeNodeCustomData>;
51
+ // Variable descriptions, used as hidden bootstraps
52
+ description?: string;
53
+ // Is it required?
54
+ required?: boolean;
55
+ // Identifies that the parameter is a built-in parameter, and the default is false.
56
+ isPreset?: boolean;
57
+ // Identifies whether the parameter is enabled, the default is false
58
+ enabled?: boolean;
59
+ // default value
60
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
61
+ defaultValue?: any;
62
+ };
63
+
64
+ export interface CustomTreeNodeFuncRef {
65
+ data: TreeNodeCustomData;
66
+ level: number;
67
+ readonly: boolean;
68
+ // General change method
69
+ onChange: (mode: ChangeMode, param: TreeNodeCustomData) => void;
70
+ // Customized type change method, mainly used for custom rendering
71
+ // Add child item
72
+ onAppend: () => void;
73
+ // Delete this item
74
+ onDelete: () => void;
75
+ // Delete all children under this item
76
+ onDeleteChildren: () => void;
77
+ // The internal call method when the type changes, mainly used to delete all children when converting from the class Object type to other types
78
+ onSelectChange: (
79
+ val?: string | number | Array<unknown> | Record<string, unknown>,
80
+ ) => void;
81
+ }
82
+
83
+ export interface ActiveMultiInfo {
84
+ // Whether the current line is in a multi-line state, and the vertical line in the multi-line state needs to be extended
85
+ activeMultiKey: string;
86
+ // Is there an error message for the current row paramName data?
87
+ withNameError?: boolean;
88
+ }
@@ -1,36 +1,36 @@
1
- .header {
2
- display: flex;
3
- gap: 4px;
4
- align-items: center;
5
- padding: 0 4px;
6
-
7
- .name {
8
- flex: 1;
9
- }
10
-
11
- .type {
12
- flex: 0 0 120px;
13
- }
14
-
15
- .required {
16
- position: absolute;
17
- left: 0;
18
- }
19
-
20
- .description {
21
- width: 110px;
22
-
23
- .description-title {
24
- display: inline-flex;
25
- justify-content: center;
26
- }
27
- }
28
- }
29
-
30
- .text {
31
- font-size: 12px;
32
- font-weight: 400;
33
- font-style: normal;
34
- line-height: 16px;
35
- color: var(--light-usage-text-color-text-3, rgb(28 31 35 / 35%));
36
- }
1
+ .header {
2
+ display: flex;
3
+ gap: 4px;
4
+ align-items: center;
5
+ padding: 0 4px;
6
+
7
+ .name {
8
+ flex: 1;
9
+ }
10
+
11
+ .type {
12
+ flex: 0 0 120px;
13
+ }
14
+
15
+ .required {
16
+ position: absolute;
17
+ left: 0;
18
+ }
19
+
20
+ .description {
21
+ width: 110px;
22
+
23
+ .description-title {
24
+ display: inline-flex;
25
+ justify-content: center;
26
+ }
27
+ }
28
+ }
29
+
30
+ .text {
31
+ font-size: 12px;
32
+ font-weight: 400;
33
+ font-style: normal;
34
+ line-height: 16px;
35
+ color: var(--light-usage-text-color-text-3, rgb(28 31 35 / 35%));
36
+ }
@@ -1,104 +1,104 @@
1
- /*
2
- * Copyright 2025 coze-dev Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- /* eslint-disable @typescript-eslint/no-magic-numbers */
18
- import React from 'react';
19
-
20
- import { I18n } from '@coze-arch/i18n';
21
-
22
- import { useColumnsStyle } from '../../hooks/use-columns-style';
23
- import { TreeCollapseWidth } from '../../constants';
24
-
25
- import styles from './index.module.less';
26
-
27
- interface HeaderProps {
28
- readonly?: boolean;
29
- config: {
30
- hasObjectLike?: boolean;
31
- hasCollapse?: boolean;
32
- hasDescription?: boolean;
33
- hasRequired?: boolean;
34
- };
35
- columnsRatio?: string;
36
- }
37
-
38
- export default function Header({
39
- readonly,
40
- config,
41
- columnsRatio,
42
- }: HeaderProps) {
43
- const columnsStyle = useColumnsStyle(columnsRatio);
44
-
45
- if (readonly) {
46
- return null;
47
- }
48
- return (
49
- <div
50
- className={styles.header}
51
- style={{
52
- marginLeft: config.hasCollapse ? TreeCollapseWidth + 8 : 0,
53
- }}
54
- >
55
- {/* name */}
56
- <div className={styles.name} style={columnsStyle.name}>
57
- <span className={styles.text}>
58
- {I18n.t('workflow_detail_end_output_name')}
59
- </span>
60
- </div>
61
-
62
- {/* type */}
63
- <div className={styles.type} style={columnsStyle.type}>
64
- <span className={styles.text}>
65
- {I18n.t('workflow_detail_start_variable_type')}
66
- </span>
67
- </div>
68
-
69
- <div className="relative flex gap-1">
70
- {/* required label */}
71
- {config.hasRequired ? (
72
- <div className={styles.required}>
73
- <span className={styles.text}>{I18n.t('wf_20241206_001')}</span>
74
- </div>
75
- ) : null}
76
-
77
- {/* description */}
78
- {config.hasDescription ? (
79
- <div
80
- className={styles.description}
81
- style={{
82
- width: 24,
83
- }}
84
- >
85
- <div className={styles.descriptionTitle}>
86
- <span className={styles.text}>
87
- {/* {I18n.t('workflow_detail_llm_output_decription_title')} */}
88
- </span>
89
- </div>
90
- </div>
91
- ) : null}
92
-
93
- {/* Object operation placeholder */}
94
- {config.hasObjectLike ? <div className="w-6"></div> : null}
95
-
96
- {/* Required placeholder */}
97
- {config.hasRequired ? <div className="w-6"></div> : null}
98
-
99
- {/* Delete button placeholder */}
100
- <div className="w-6"></div>
101
- </div>
102
- </div>
103
- );
104
- }
1
+ /*
2
+ * Copyright 2025 coze-dev Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ /* eslint-disable @typescript-eslint/no-magic-numbers */
18
+ import React from 'react';
19
+
20
+ import { I18n } from '@coze-arch/i18n';
21
+
22
+ import { useColumnsStyle } from '../../hooks/use-columns-style';
23
+ import { TreeCollapseWidth } from '../../constants';
24
+
25
+ import styles from './index.module.less';
26
+
27
+ interface HeaderProps {
28
+ readonly?: boolean;
29
+ config: {
30
+ hasObjectLike?: boolean;
31
+ hasCollapse?: boolean;
32
+ hasDescription?: boolean;
33
+ hasRequired?: boolean;
34
+ };
35
+ columnsRatio?: string;
36
+ }
37
+
38
+ export default function Header({
39
+ readonly,
40
+ config,
41
+ columnsRatio,
42
+ }: HeaderProps) {
43
+ const columnsStyle = useColumnsStyle(columnsRatio);
44
+
45
+ if (readonly) {
46
+ return null;
47
+ }
48
+ return (
49
+ <div
50
+ className={styles.header}
51
+ style={{
52
+ marginLeft: config.hasCollapse ? TreeCollapseWidth + 8 : 0,
53
+ }}
54
+ >
55
+ {/* name */}
56
+ <div className={styles.name} style={columnsStyle.name}>
57
+ <span className={styles.text}>
58
+ {I18n.t('workflow_detail_end_output_name')}
59
+ </span>
60
+ </div>
61
+
62
+ {/* type */}
63
+ <div className={styles.type} style={columnsStyle.type}>
64
+ <span className={styles.text}>
65
+ {I18n.t('workflow_detail_start_variable_type')}
66
+ </span>
67
+ </div>
68
+
69
+ <div className="relative flex gap-1">
70
+ {/* required label */}
71
+ {config.hasRequired ? (
72
+ <div className={styles.required}>
73
+ <span className={styles.text}>{I18n.t('wf_20241206_001')}</span>
74
+ </div>
75
+ ) : null}
76
+
77
+ {/* description */}
78
+ {config.hasDescription ? (
79
+ <div
80
+ className={styles.description}
81
+ style={{
82
+ width: 24,
83
+ }}
84
+ >
85
+ <div className={styles.descriptionTitle}>
86
+ <span className={styles.text}>
87
+ {/* {I18n.t('workflow_detail_llm_output_decription_title')} */}
88
+ </span>
89
+ </div>
90
+ </div>
91
+ ) : null}
92
+
93
+ {/* Object operation placeholder */}
94
+ {config.hasObjectLike ? <div className="w-6"></div> : null}
95
+
96
+ {/* Required placeholder */}
97
+ {config.hasRequired ? <div className="w-6"></div> : null}
98
+
99
+ {/* Delete button placeholder */}
100
+ <div className="w-6"></div>
101
+ </div>
102
+ </div>
103
+ );
104
+ }
@@ -1,22 +1,22 @@
1
- /*
2
- * Copyright 2025 coze-dev Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- /* eslint-disable @typescript-eslint/naming-convention */
18
-
19
- /** Indent width of each level of tree */
20
- export const TreeIndentWidth = 15;
21
- /** Tree Node Expand Collapse Button Width */
22
- export const TreeCollapseWidth = 10;
1
+ /*
2
+ * Copyright 2025 coze-dev Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ /* eslint-disable @typescript-eslint/naming-convention */
18
+
19
+ /** Indent width of each level of tree */
20
+ export const TreeIndentWidth = 15;
21
+ /** Tree Node Expand Collapse Button Width */
22
+ export const TreeCollapseWidth = 10;
@@ -1,28 +1,28 @@
1
- /*
2
- * Copyright 2025 coze-dev Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import { createContext, useContext } from 'react';
18
-
19
- interface OutputTreeContext {
20
- testId?: string;
21
- }
22
-
23
- const outputTreeContext = createContext<OutputTreeContext>({});
24
-
25
- export const useOutputTreeContext = () => useContext(outputTreeContext);
26
-
27
- // eslint-disable-next-line @typescript-eslint/naming-convention
28
- export const OutputTreeContextProvider = outputTreeContext.Provider;
1
+ /*
2
+ * Copyright 2025 coze-dev Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { createContext, useContext } from 'react';
18
+
19
+ interface OutputTreeContext {
20
+ testId?: string;
21
+ }
22
+
23
+ const outputTreeContext = createContext<OutputTreeContext>({});
24
+
25
+ export const useOutputTreeContext = () => useContext(outputTreeContext);
26
+
27
+ // eslint-disable-next-line @typescript-eslint/naming-convention
28
+ export const OutputTreeContextProvider = outputTreeContext.Provider;
@@ -1,39 +1,39 @@
1
- /*
2
- * Copyright 2025 coze-dev Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import { TreeIndentWidth } from '../constants';
18
-
19
- interface ColumnsStyle {
20
- name: React.CSSProperties;
21
- type: React.CSSProperties;
22
- }
23
-
24
- export function useColumnsStyle(columnsRatio = '3:2', level = 0): ColumnsStyle {
25
- const [nameWidth, typeWidth] = columnsRatio.split(':').map(Number);
26
-
27
- return {
28
- name: {
29
- flex: `${nameWidth} ${nameWidth} 0`,
30
- },
31
- type: {
32
- flex: `${typeWidth} ${typeWidth} ${
33
- (level * TreeIndentWidth * typeWidth) / nameWidth
34
- }px`,
35
- minWidth: '80px',
36
- maxWidth: '135px',
37
- },
38
- };
39
- }
1
+ /*
2
+ * Copyright 2025 coze-dev Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { TreeIndentWidth } from '../constants';
18
+
19
+ interface ColumnsStyle {
20
+ name: React.CSSProperties;
21
+ type: React.CSSProperties;
22
+ }
23
+
24
+ export function useColumnsStyle(columnsRatio = '3:2', level = 0): ColumnsStyle {
25
+ const [nameWidth, typeWidth] = columnsRatio.split(':').map(Number);
26
+
27
+ return {
28
+ name: {
29
+ flex: `${nameWidth} ${nameWidth} 0`,
30
+ },
31
+ type: {
32
+ flex: `${typeWidth} ${typeWidth} ${
33
+ (level * TreeIndentWidth * typeWidth) / nameWidth
34
+ }px`,
35
+ minWidth: '80px',
36
+ maxWidth: '135px',
37
+ },
38
+ };
39
+ }