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

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 (293) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +114 -114
  3. package/THIRD-PARTY-NOTICES.md +57 -57
  4. package/dist/{ai-markdown-esl-I5ck.js → ai-markdown--SqEglSn.js} +1 -2
  5. package/dist/chrome.js +46 -53
  6. package/dist/core.js +3 -3
  7. package/dist/{header-shortcuts-BQZuNfpA.js → header-shortcuts-BcwVJV2g.js} +1 -2
  8. package/dist/index.js +925 -1000
  9. package/dist/{schema-tree-CTM6hEdm.js → schema-tree-B4yoWS9A.js} +5 -10
  10. package/dist/{start-form-L6xw9phk.js → start-form-DWlAhZhs.js} +169 -335
  11. package/dist/styles.css +1 -1
  12. package/dist/{test-input-validation-CkORPCfm.js → test-input-validation-Ch9pS4X8.js} +1 -2
  13. package/package.json +108 -106
  14. package/vendor/coze/LICENSE-APACHE +177 -177
  15. package/vendor/coze/UPSTREAM.json +8 -8
  16. package/vendor/coze/original/base-test-button.tsx +22 -22
  17. package/vendor/coze/original/comment-container.tsx +68 -68
  18. package/vendor/coze/original/condition-container.tsx +60 -60
  19. package/vendor/coze/original/condition-tag.tsx +58 -58
  20. package/vendor/coze/original/coze-global.less +234 -234
  21. package/vendor/coze/original/create-loop-function-json.ts +134 -134
  22. package/vendor/coze/original/create-loop-function.ts +56 -56
  23. package/vendor/coze/original/end-registry.ts +41 -41
  24. package/vendor/coze/original/execute-result-panel.less +97 -97
  25. package/vendor/coze/original/execute-result-panel.tsx +171 -171
  26. package/vendor/coze/original/form-item.less +39 -39
  27. package/vendor/coze/original/form-item.tsx +200 -200
  28. package/vendor/coze/original/http-api-field.tsx +42 -42
  29. package/vendor/coze/original/http-form-render.tsx +102 -102
  30. package/vendor/coze/original/icon-add.svg +3 -3
  31. package/vendor/coze/original/icon-arrow-left.svg +3 -3
  32. package/vendor/coze/original/icon-auto-layout.svg +18 -18
  33. package/vendor/coze/original/icon-code.svg +13 -13
  34. package/vendor/coze/original/icon-condition.svg +12 -12
  35. package/vendor/coze/original/icon-database.svg +18 -18
  36. package/vendor/coze/original/icon-delete.svg +5 -5
  37. package/vendor/coze/original/icon-fullscreen.svg +9 -9
  38. package/vendor/coze/original/icon-more.svg +11 -11
  39. package/vendor/coze/original/icon-play-round-outlined.svg +8 -8
  40. package/vendor/coze/original/icon-plugin-tool.svg +6 -6
  41. package/vendor/coze/original/icon-standard-copy.svg +8 -8
  42. package/vendor/coze/original/icon-unknown.svg +7 -7
  43. package/vendor/coze/original/icon-var.svg +6 -6
  44. package/vendor/coze/original/icon-workflow-end.svg +5 -5
  45. package/vendor/coze/original/icon-workflow-start.svg +5 -5
  46. package/vendor/coze/original/icon-workflow.svg +21 -21
  47. package/vendor/coze/original/icon-workflows.svg +5 -5
  48. package/vendor/coze/original/if-form-meta.tsx +88 -88
  49. package/vendor/coze/original/logic-display.tsx +33 -33
  50. package/vendor/coze/original/mouse-icon.tsx +35 -35
  51. package/vendor/coze/original/mouse-pad-selector.tsx +180 -180
  52. package/vendor/coze/original/node-card.tsx +77 -77
  53. package/vendor/coze/original/node-category-panel.less +4 -4
  54. package/vendor/coze/original/node-category-panel.tsx +53 -53
  55. package/vendor/coze/original/node-config-form.tsx +67 -67
  56. package/vendor/coze/original/node-header.less +165 -165
  57. package/vendor/coze/original/node-header.tsx +552 -552
  58. package/vendor/coze/original/node-panel.less +183 -183
  59. package/vendor/coze/original/node-render.less +20 -20
  60. package/vendor/coze/original/node-side-sheet.less +57 -57
  61. package/vendor/coze/original/node-side-sheet.tsx +214 -214
  62. package/vendor/coze/original/node-wrapper.tsx +71 -71
  63. package/vendor/coze/original/pad-icon.tsx +45 -45
  64. package/vendor/coze/original/resizable-side-panel-constants.ts +18 -18
  65. package/vendor/coze/original/resizable-side-panel.tsx +42 -42
  66. package/vendor/coze/original/start-registry.ts +53 -53
  67. package/vendor/coze/original/sub-canvas-background.less +4 -4
  68. package/vendor/coze/original/sub-canvas-background.tsx +48 -48
  69. package/vendor/coze/original/sub-canvas-container.less +16 -16
  70. package/vendor/coze/original/sub-canvas-container.tsx +97 -97
  71. package/vendor/coze/original/sub-canvas-header.less +75 -75
  72. package/vendor/coze/original/sub-canvas-header.tsx +95 -95
  73. package/vendor/coze/original/test-form-sheet-header.tsx +82 -82
  74. package/vendor/coze/original/test-form-sheet.less +178 -178
  75. package/vendor/coze/original/toolbar-add-node.tsx +68 -68
  76. package/vendor/coze/original/toolbar-auto-layout.tsx +61 -61
  77. package/vendor/coze/original/toolbar-comment.tsx +121 -121
  78. package/vendor/coze/original/toolbar-container.tsx +42 -42
  79. package/vendor/coze/original/toolbar-interactive.tsx +98 -98
  80. package/vendor/coze/original/toolbar-minimap-switch.tsx +41 -41
  81. package/vendor/coze/original/toolbar-tools.less +46 -46
  82. package/vendor/coze/original/toolbar-tools.tsx +89 -89
  83. package/vendor/coze/original/toolbar-zoom.tsx +134 -134
  84. package/vendor/coze/original/tree-variable-selector.less +291 -291
  85. package/vendor/coze/original/tree-variable-selector.tsx +298 -298
  86. package/vendor/coze/original/workflow-document-custom-options.ts +151 -151
  87. package/vendor/coze/original/workflow-header.less +65 -65
  88. package/vendor/coze/original/workflow-header.tsx +85 -85
  89. package/vendor/coze/source/agent-models/model-option/index.module.less +18 -18
  90. package/vendor/coze/source/agent-models/model-option/index.tsx +321 -321
  91. package/vendor/coze/source/agent-models/model-option-avatar/index.tsx +175 -175
  92. package/vendor/coze/source/agent-models/model-option-group/index.tsx +87 -87
  93. package/vendor/coze/source/agent-models/model-option-thumb/index.tsx +41 -41
  94. package/vendor/coze/source/agent-models/model-select-ui/index.tsx +238 -238
  95. package/vendor/coze/source/agent-models/popover-model-list-view/index.tsx +146 -146
  96. package/vendor/coze/source/components/code-editor/text-editor.tsx +71 -71
  97. package/vendor/coze/source/components/comment/components/editor/block.tsx +117 -117
  98. package/vendor/coze/source/components/comment/components/editor/leaf.tsx +64 -64
  99. package/vendor/coze/source/components/comment/components/toolbar.tsx +366 -366
  100. package/vendor/coze/source/components/comment/constant.ts +94 -94
  101. package/vendor/coze/source/components/editor-container/expand-editor/index.module.less +107 -107
  102. package/vendor/coze/source/components/editor-container/expand-editor/index.tsx +117 -117
  103. package/vendor/coze/source/components/model-select/components/model-setting.tsx +300 -300
  104. package/vendor/coze/source/components/model-select/components/settings.tsx +144 -144
  105. package/vendor/coze/source/components/model-select/index.module.less +34 -34
  106. package/vendor/coze/source/components/model-select/utils/index.tsx +100 -100
  107. package/vendor/coze/source/components/node-render/node-render-new/fields/constants.tsx +79 -79
  108. package/vendor/coze/source/components/node-render/node-render-new/fields/field-empty.module.less +12 -12
  109. package/vendor/coze/source/components/node-render/node-render-new/fields/field-empty.tsx +37 -37
  110. package/vendor/coze/source/components/node-render/node-render-new/fields/field.module.less +19 -19
  111. package/vendor/coze/source/components/node-render/node-render-new/fields/field.tsx +52 -52
  112. package/vendor/coze/source/components/node-render/node-render-new/fields/http-api-field/index.tsx +42 -42
  113. package/vendor/coze/source/components/node-render/node-render-new/fields/overflow-tag-list.module.less +47 -47
  114. package/vendor/coze/source/components/node-render/node-render-new/fields/overflow-tag-list.tsx +162 -162
  115. package/vendor/coze/source/components/node-render/node-render-new/fields/variable-tag-list.module.less +48 -48
  116. package/vendor/coze/source/components/node-render/node-render-new/fields/variable-tag-list.tsx +126 -126
  117. package/vendor/coze/source/components/node-wrapper/execute-result-panel/index.module.less +97 -97
  118. package/vendor/coze/source/components/node-wrapper/execute-result-panel/index.tsx +171 -171
  119. package/vendor/coze/source/components/sub-canvas/components/background/index.module.less +4 -4
  120. package/vendor/coze/source/components/sub-canvas/components/header/index.module.less +75 -75
  121. package/vendor/coze/source/components/test-run/test-run-button/single-node.tsx +158 -158
  122. package/vendor/coze/source/execution-panel/panel.module.less +48 -48
  123. package/vendor/coze/source/execution-panel/panel.tsx +99 -99
  124. package/vendor/coze/source/execution-panel/use-resize.ts +79 -79
  125. package/vendor/coze/source/external/features/log/components/data-viewer/constants.ts +28 -28
  126. package/vendor/coze/source/external/features/log/components/data-viewer/context/context.ts +21 -21
  127. package/vendor/coze/source/external/features/log/components/data-viewer/context/create-store.ts +48 -48
  128. package/vendor/coze/source/external/features/log/components/data-viewer/context/index.ts +19 -19
  129. package/vendor/coze/source/external/features/log/components/data-viewer/context/provider.tsx +50 -50
  130. package/vendor/coze/source/external/features/log/components/data-viewer/data-viewer.module.less +26 -26
  131. package/vendor/coze/source/external/features/log/components/data-viewer/data-viewer.tsx +79 -79
  132. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/index.ts +18 -18
  133. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-data-viewer-store.ts +29 -29
  134. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-expand.ts +35 -35
  135. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-value.tsx +66 -66
  136. package/vendor/coze/source/external/features/log/components/data-viewer/index.tsx +21 -21
  137. package/vendor/coze/source/external/features/log/components/data-viewer/json-field/index.tsx +186 -186
  138. package/vendor/coze/source/external/features/log/components/data-viewer/json-field/json-field.module.less +79 -79
  139. package/vendor/coze/source/external/features/log/components/data-viewer/types.ts +50 -50
  140. package/vendor/coze/source/external/features/log/components/data-viewer/utils/big-number.ts +35 -35
  141. package/vendor/coze/source/external/features/log/components/data-viewer/utils/generate-field.ts +104 -104
  142. package/vendor/coze/source/external/features/log/components/log-parser/log-wrap.module.less +27 -27
  143. package/vendor/coze/source/external/features/log/components/log-parser/log-wrap.tsx +109 -109
  144. package/vendor/coze/source/external/features/log/components/node-status-bar/node-status-bar.module.less +52 -52
  145. package/vendor/coze/source/external/features/log/components/node-status-bar/node-status-bar.tsx +113 -113
  146. package/vendor/coze/source/form/components/field-empty.tsx +45 -45
  147. package/vendor/coze/source/form/components/section.tsx +91 -91
  148. package/vendor/coze/source/form-extensions/components/add-item-button/index.tsx +64 -64
  149. package/vendor/coze/source/form-extensions/components/form-card/index.module.less +131 -131
  150. package/vendor/coze/source/form-extensions/components/form-card/index.tsx +309 -309
  151. package/vendor/coze/source/form-extensions/components/form-item/index.module.less +39 -39
  152. package/vendor/coze/source/form-extensions/components/form-item/index.tsx +200 -200
  153. package/vendor/coze/source/form-extensions/components/form-item-feedback/index.module.less +7 -7
  154. package/vendor/coze/source/form-extensions/components/form-item-feedback/index.tsx +39 -39
  155. package/vendor/coze/source/form-extensions/components/level-line/index.module.less +346 -346
  156. package/vendor/coze/source/form-extensions/components/level-line/index.ts +17 -17
  157. package/vendor/coze/source/form-extensions/components/level-line/level-line.tsx +460 -460
  158. package/vendor/coze/source/form-extensions/components/level-line/types.ts +38 -38
  159. package/vendor/coze/source/form-extensions/components/level-line/utils.ts +60 -60
  160. package/vendor/coze/source/form-extensions/components/literal-value-input/constants.ts +61 -61
  161. package/vendor/coze/source/form-extensions/components/literal-value-input/input-boolean.tsx +80 -80
  162. package/vendor/coze/source/form-extensions/components/literal-value-input/input-integer.tsx +68 -68
  163. package/vendor/coze/source/form-extensions/components/literal-value-input/input-number.tsx +62 -62
  164. package/vendor/coze/source/form-extensions/components/literal-value-input/input-select.tsx +59 -59
  165. package/vendor/coze/source/form-extensions/components/literal-value-input/input-string.tsx +55 -55
  166. package/vendor/coze/source/form-extensions/components/literal-value-input/literal-value-input.tsx +35 -35
  167. package/vendor/coze/source/form-extensions/components/literal-value-input/styles.module.less +46 -46
  168. package/vendor/coze/source/form-extensions/components/literal-value-input/type.ts +61 -61
  169. package/vendor/coze/source/form-extensions/components/literal-value-input/utils.tsx +117 -117
  170. package/vendor/coze/source/form-extensions/components/node-header/components/close-button.tsx +44 -44
  171. package/vendor/coze/source/form-extensions/components/node-header/description-display.tsx +52 -52
  172. package/vendor/coze/source/form-extensions/components/node-header/description.tsx +131 -131
  173. package/vendor/coze/source/form-extensions/components/node-header/index.module.less +165 -165
  174. package/vendor/coze/source/form-extensions/components/node-header/index.tsx +552 -552
  175. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-btn/index.tsx +43 -43
  176. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/default-value-input.tsx +276 -276
  177. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/index.module.less +124 -124
  178. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/index.tsx +131 -131
  179. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/types.ts +32 -32
  180. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-name/index.module.less +38 -38
  181. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-name/index.tsx +101 -101
  182. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-operator/index.module.less +51 -51
  183. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-operator/index.tsx +107 -107
  184. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-required/index.module.less +17 -17
  185. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-required/index.tsx +53 -53
  186. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/constants.tsx +77 -77
  187. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/index.module.less +97 -97
  188. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/index.tsx +155 -155
  189. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/constants.ts +38 -38
  190. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/index.module.less +138 -138
  191. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/index.tsx +360 -360
  192. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/type.ts +88 -88
  193. package/vendor/coze/source/form-extensions/components/output-tree/components/header/index.module.less +36 -36
  194. package/vendor/coze/source/form-extensions/components/output-tree/components/header/index.tsx +104 -104
  195. package/vendor/coze/source/form-extensions/components/output-tree/constants.ts +22 -22
  196. package/vendor/coze/source/form-extensions/components/output-tree/context.ts +28 -28
  197. package/vendor/coze/source/form-extensions/components/output-tree/hooks/use-columns-style.ts +39 -39
  198. package/vendor/coze/source/form-extensions/components/output-tree/index.module.less +83 -83
  199. package/vendor/coze/source/form-extensions/components/output-tree/index.tsx +692 -692
  200. package/vendor/coze/source/form-extensions/components/output-tree/utils.ts +185 -185
  201. package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/index.tsx +97 -97
  202. package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/option-item.tsx +30 -30
  203. package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/types.ts +23 -23
  204. package/vendor/coze/source/form-extensions/components/setting-on-error/components/retry-times/index.tsx +45 -45
  205. package/vendor/coze/source/form-extensions/components/setting-on-error/components/timeout/index.tsx +102 -102
  206. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select-option.tsx +167 -167
  207. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select-tree-panel.tsx +165 -165
  208. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select.module.less +96 -96
  209. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select.tsx +265 -265
  210. package/vendor/coze/source/form-extensions/components/tree-variable-selector/context.tsx +42 -42
  211. package/vendor/coze/source/form-extensions/components/tree-variable-selector/expand-icon.tsx +30 -30
  212. package/vendor/coze/source/form-extensions/components/tree-variable-selector/index.module.less +291 -291
  213. package/vendor/coze/source/form-extensions/components/tree-variable-selector/node-variable-tree.module.less +48 -48
  214. package/vendor/coze/source/form-extensions/components/tree-variable-selector/node-variable-tree.tsx +149 -149
  215. package/vendor/coze/source/form-extensions/components/tree-variable-selector/utils.tsx +500 -500
  216. package/vendor/coze/source/form-extensions/components/tree-variable-selector/value-display.tsx +130 -130
  217. package/vendor/coze/source/form-extensions/components/value-expression-input/const.ts +68 -68
  218. package/vendor/coze/source/form-extensions/components/value-expression-input/context.ts +27 -27
  219. package/vendor/coze/source/form-extensions/components/value-expression-input/index.module.less +144 -144
  220. package/vendor/coze/source/form-extensions/components/value-expression-input/value-expression-input.tsx +418 -418
  221. package/vendor/coze/source/form-extensions/components/variable-type-selector/constants.tsx +77 -77
  222. package/vendor/coze/source/form-extensions/components/variable-type-selector/index.module.less +31 -31
  223. package/vendor/coze/source/form-extensions/components/variable-type-selector/index.tsx +17 -17
  224. package/vendor/coze/source/form-extensions/components/variable-type-selector/utils.tsx +298 -298
  225. package/vendor/coze/source/form-extensions/components/variable-type-selector/variable-type-selector.tsx +235 -235
  226. package/vendor/coze/source/form-extensions/components/variable-type-tag/index.tsx +54 -54
  227. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-branch.module.less +9 -9
  228. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-branch.tsx +249 -249
  229. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-header.tsx +50 -50
  230. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-item-logic.module.less +13 -13
  231. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-item-logic.tsx +73 -73
  232. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/delete/index.module.less +10 -10
  233. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/delete/index.tsx +42 -42
  234. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/index.module.less +9 -9
  235. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/index.tsx +254 -254
  236. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/operator/index.module.less +7 -7
  237. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/operator/index.tsx +144 -144
  238. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/value-expression-with-state/index.tsx +69 -69
  239. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/context.ts +36 -36
  240. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/condition-branch-preview.tsx +44 -44
  241. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/condition-branch.tsx +152 -152
  242. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/container.tsx +19 -19
  243. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/custom-drag-layer.tsx +117 -117
  244. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/types.ts +18 -18
  245. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/types.ts +58 -58
  246. package/vendor/coze/source/node-registries/end/components/terminate-plan-field.tsx +29 -29
  247. package/vendor/coze/source/node-registries/end/constants.ts +34 -34
  248. package/vendor/coze/source/node-registries/end/form.tsx +66 -66
  249. package/vendor/coze/source/node-registries/end/types.ts +45 -45
  250. package/vendor/coze/source/node-registries/http/components/base-editor/raw-text-editor.tsx +80 -80
  251. package/vendor/coze/source/node-registries/http/constants.ts +80 -80
  252. package/vendor/coze/source/node-registries/http/fields/json-import-editor/index.module.less +191 -191
  253. package/vendor/coze/source/node-registries/http/fields/json-import-editor/json-import-components/json-expand-editor.tsx +141 -141
  254. package/vendor/coze/source/node-registries/http/fields/json-import-editor/json-import-components/json-import.tsx +99 -99
  255. package/vendor/coze/source/node-registries/http/form-render.tsx +102 -102
  256. package/vendor/coze/source/node-registries/http/setters/api/curl-expand-editor.tsx +161 -161
  257. package/vendor/coze/source/node-registries/http/setters/api/curl-import.tsx +96 -96
  258. package/vendor/coze/source/node-registries/http/setters/api/index.module.less +199 -199
  259. package/vendor/coze/source/node-registries/http/setters/api/index.tsx +149 -149
  260. package/vendor/coze/source/node-registries/http/setters/api/utils.ts +41 -41
  261. package/vendor/coze/source/node-registries/http/setters/body/index.tsx +201 -201
  262. package/vendor/coze/source/node-registries/http/setters/constants.ts +83 -83
  263. package/vendor/coze/source/node-registries/if/components/else/index.tsx +41 -41
  264. package/vendor/coze/source/node-registries/intent/components/intents/index.module.less +14 -14
  265. package/vendor/coze/source/node-registries/intent/components/intents/option-item/index.tsx +189 -189
  266. package/vendor/coze/source/node-registries/json-stringify/constants.ts +32 -32
  267. package/vendor/coze/source/node-registries/json-stringify/form.tsx +46 -46
  268. package/vendor/coze/source/node-registries/loop/constants.ts +43 -43
  269. package/vendor/coze/source/node-registries/loop/loop-fields/loop-settings-section/index.tsx +48 -48
  270. package/vendor/coze/source/node-registries/loop/loop-fields/loop-type/index.tsx +81 -81
  271. package/vendor/coze/source/node-registries/loop/loop-fields/loop-type/options.ts +34 -34
  272. package/vendor/coze/source/node-registries/start/form.tsx +209 -209
  273. package/vendor/coze/source/node-registries/text-process/components/method-selector/index.tsx +46 -46
  274. package/vendor/coze/source/node-registries/text-process/constants.ts +132 -132
  275. package/vendor/coze/source/nodes-v2/components/form-item-feedback/index.module.less +7 -7
  276. package/vendor/coze/source/nodes-v2/components/form-item-feedback/index.tsx +47 -47
  277. package/vendor/coze/source/nodes-v2/components/system-prompt/index.module.less +66 -66
  278. package/vendor/coze/source/nodes-v2/components/system-prompt/prompt-kit-bar.tsx +129 -129
  279. package/vendor/coze/source/nodes-v2/components/system-prompt/system-prompt-editor.tsx +110 -110
  280. package/vendor/coze/source/nodes-v2/llm/user-prompt/index.tsx +64 -64
  281. package/vendor/coze/source/prompt-kit/input-config-popover/index.tsx +80 -80
  282. package/vendor/coze/source/prompt-kit/input-slot-widget/index.css +34 -34
  283. package/vendor/coze/source/prompt-kit/input-slot-widget/index.ts +169 -169
  284. package/vendor/coze/source/prompt-kit/library-item.tsx +141 -141
  285. package/vendor/coze/source/prompt-kit/prompt-info-input.tsx +90 -90
  286. package/vendor/coze/source/ui-components/add-operation/index.module.less +19 -19
  287. package/vendor/coze/source/ui-components/add-operation/index.tsx +67 -67
  288. package/vendor/coze/source/ui-components/auto-size-tooltip/index.module.less +39 -39
  289. package/vendor/coze/source/ui-components/auto-size-tooltip/index.tsx +74 -74
  290. package/vendor/coze/source/ui-components/workflow-sl-input/index.module.less +36 -36
  291. package/vendor/coze/source/ui-components/workflow-sl-input/index.tsx +194 -194
  292. package/vendor/coze/source/utils/create-slots/index.tsx +126 -126
  293. package/vendor/coze/source/utils/create-slots/use-force-update.ts +23 -23
@@ -1,35 +1,35 @@
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 BigNumber from 'bignumber.js';
18
-
19
- /**
20
- * Is it a big number?
21
- * @param value
22
- * @returns
23
- */
24
- export function isBigNumber(value: unknown): value is BigNumber {
25
- return !!(value && value instanceof BigNumber);
26
- }
27
-
28
- /**
29
- * Large number to string
30
- * @param value
31
- * @returns
32
- */
33
- export function bigNumberToString(value: BigNumber): string {
34
- return value.toFixed();
35
- }
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 BigNumber from 'bignumber.js';
18
+
19
+ /**
20
+ * Is it a big number?
21
+ * @param value
22
+ * @returns
23
+ */
24
+ export function isBigNumber(value: unknown): value is BigNumber {
25
+ return !!(value && value instanceof BigNumber);
26
+ }
27
+
28
+ /**
29
+ * Large number to string
30
+ * @param value
31
+ * @returns
32
+ */
33
+ export function bigNumberToString(value: BigNumber): string {
34
+ return value.toFixed();
35
+ }
@@ -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
- import { isObject } from 'lodash-es';
18
-
19
- import { LineStatus, type JsonValueType, type Field } from '../types';
20
- import { isBigNumber } from './big-number';
21
-
22
- /**
23
- * Push through the line state of the parent element to the line state of the child element
24
- */
25
- const getLineByParent2Child = (pLine: LineStatus): LineStatus => {
26
- switch (pLine) {
27
- /** It means that the parent node is also drilled from the parent node, and the sub-node here only needs to continue the line. */
28
- case LineStatus.Visible:
29
- return LineStatus.Half;
30
- /** Indicates that the parent node is the last node of the parent node, and the sub-node does not need to continue, just render blank. */
31
- case LineStatus.Last:
32
- return LineStatus.Hidden;
33
- /** Other cases fully inherit the line of the parent node */
34
- default:
35
- return pLine;
36
- }
37
- };
38
-
39
- /**
40
- * Parse objects into fields that can be cycled
41
- * 1. If object is not a complex type, fields of length 1 are returned to render only one item
42
- * 2. If object = {}, fields of length 0 are returned, and the rendering layer needs to be well covered
43
- */
44
- const generateFields = (object: JsonValueType): Field[] => {
45
- /** If the object is not a complex type */
46
- if (!isObject(object) || isBigNumber(object)) {
47
- return [
48
- {
49
- path: [],
50
- lines: [],
51
- value: object,
52
- isObj: false,
53
- children: [],
54
- },
55
- ];
56
- }
57
-
58
- /** Cache the calculated line during recursive calculation, which is meaningless and reduces some time complexity */
59
- const lineMap = new Map<string[], LineStatus[]>();
60
-
61
- /** Recursive parsing of object as fields */
62
- const dfs = ($object: object, $parentPath: string[] = []): Field[] => {
63
- // If it is not an object, return an empty array directly to cover the exception
64
- if (!isObject($object)) {
65
- return [];
66
- }
67
-
68
- // If it is a large number, return an empty array directly
69
- if (isBigNumber($object)) {
70
- return [];
71
- }
72
-
73
- const parentLines = lineMap.get($parentPath) || [];
74
-
75
- const keys = Object.keys($object);
76
-
77
- return keys.map((key, idx) => {
78
- const value = $object[key];
79
- const path = $parentPath.concat(key);
80
- const last = idx === keys.length - 1;
81
- /**
82
- * Derive the sub-node's line from the parent's line
83
- */
84
- const lines = parentLines
85
- .map<LineStatus>(getLineByParent2Child)
86
- /**
87
- * Finally, splice the sub-node's own line, and the last node is distinguished from the ordinary node by style.
88
- */
89
- .concat(last ? LineStatus.Last : LineStatus.Visible);
90
- lineMap.set(path, lines);
91
- return {
92
- path,
93
- lines,
94
- value,
95
- children: dfs(value, path),
96
- isObj: isObject(value) && !isBigNumber(value),
97
- };
98
- });
99
- };
100
-
101
- return dfs(object);
102
- };
103
-
104
- export { generateFields };
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 { isObject } from 'lodash-es';
18
+
19
+ import { LineStatus, type JsonValueType, type Field } from '../types';
20
+ import { isBigNumber } from './big-number';
21
+
22
+ /**
23
+ * Push through the line state of the parent element to the line state of the child element
24
+ */
25
+ const getLineByParent2Child = (pLine: LineStatus): LineStatus => {
26
+ switch (pLine) {
27
+ /** It means that the parent node is also drilled from the parent node, and the sub-node here only needs to continue the line. */
28
+ case LineStatus.Visible:
29
+ return LineStatus.Half;
30
+ /** Indicates that the parent node is the last node of the parent node, and the sub-node does not need to continue, just render blank. */
31
+ case LineStatus.Last:
32
+ return LineStatus.Hidden;
33
+ /** Other cases fully inherit the line of the parent node */
34
+ default:
35
+ return pLine;
36
+ }
37
+ };
38
+
39
+ /**
40
+ * Parse objects into fields that can be cycled
41
+ * 1. If object is not a complex type, fields of length 1 are returned to render only one item
42
+ * 2. If object = {}, fields of length 0 are returned, and the rendering layer needs to be well covered
43
+ */
44
+ const generateFields = (object: JsonValueType): Field[] => {
45
+ /** If the object is not a complex type */
46
+ if (!isObject(object) || isBigNumber(object)) {
47
+ return [
48
+ {
49
+ path: [],
50
+ lines: [],
51
+ value: object,
52
+ isObj: false,
53
+ children: [],
54
+ },
55
+ ];
56
+ }
57
+
58
+ /** Cache the calculated line during recursive calculation, which is meaningless and reduces some time complexity */
59
+ const lineMap = new Map<string[], LineStatus[]>();
60
+
61
+ /** Recursive parsing of object as fields */
62
+ const dfs = ($object: object, $parentPath: string[] = []): Field[] => {
63
+ // If it is not an object, return an empty array directly to cover the exception
64
+ if (!isObject($object)) {
65
+ return [];
66
+ }
67
+
68
+ // If it is a large number, return an empty array directly
69
+ if (isBigNumber($object)) {
70
+ return [];
71
+ }
72
+
73
+ const parentLines = lineMap.get($parentPath) || [];
74
+
75
+ const keys = Object.keys($object);
76
+
77
+ return keys.map((key, idx) => {
78
+ const value = $object[key];
79
+ const path = $parentPath.concat(key);
80
+ const last = idx === keys.length - 1;
81
+ /**
82
+ * Derive the sub-node's line from the parent's line
83
+ */
84
+ const lines = parentLines
85
+ .map<LineStatus>(getLineByParent2Child)
86
+ /**
87
+ * Finally, splice the sub-node's own line, and the last node is distinguished from the ordinary node by style.
88
+ */
89
+ .concat(last ? LineStatus.Last : LineStatus.Visible);
90
+ lineMap.set(path, lines);
91
+ return {
92
+ path,
93
+ lines,
94
+ value,
95
+ children: dfs(value, path),
96
+ isObj: isObject(value) && !isBigNumber(value),
97
+ };
98
+ });
99
+ };
100
+
101
+ return dfs(object);
102
+ };
103
+
104
+ export { generateFields };
@@ -1,27 +1,27 @@
1
- .flow-log-detail-label {
2
- display: flex;
3
- align-items: center;
4
- font-size: 14px;
5
- margin-bottom: 4px;
6
- column-gap: 4px;
7
- height: 20px;
8
- margin-left: 2px;
9
-
10
- .label-text {
11
- color: var(--coz-fg-plus);
12
- font-weight: 500;
13
- word-break: keep-all;
14
- height: 20px;
15
- line-height: 20px;
16
- }
17
-
18
- :global {
19
- .coz-icon-button-mini {
20
- line-height: 0px;
21
- }
22
- }
23
- }
24
-
25
- .wrapper {
26
- padding: 8px 6px;
27
- }
1
+ .flow-log-detail-label {
2
+ display: flex;
3
+ align-items: center;
4
+ font-size: 14px;
5
+ margin-bottom: 4px;
6
+ column-gap: 4px;
7
+ height: 20px;
8
+ margin-left: 2px;
9
+
10
+ .label-text {
11
+ color: var(--coz-fg-plus);
12
+ font-weight: 500;
13
+ word-break: keep-all;
14
+ height: 20px;
15
+ line-height: 20px;
16
+ }
17
+
18
+ :global {
19
+ .coz-icon-button-mini {
20
+ line-height: 0px;
21
+ }
22
+ }
23
+ }
24
+
25
+ .wrapper {
26
+ padding: 8px 6px;
27
+ }
@@ -1,109 +1,109 @@
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 React, { useCallback, useMemo, useState, type ReactNode } from 'react';
18
-
19
- import { isObject, toString, isNil } from 'lodash-es';
20
- import copy from 'copy-to-clipboard';
21
- import { logger } from '@coze-arch/logger';
22
- import { I18n } from '@coze-arch/i18n';
23
- import { IconCozCopy, IconCozCheckMark } from '@coze-arch/coze-design/icons';
24
- import { IconButton, Toast, Tooltip } from '@coze-arch/coze-design';
25
-
26
- import { type LogValueType } from '../../types';
27
-
28
- import styles from './log-wrap.module.less';
29
-
30
- const SPACE = 2;
31
-
32
- export const LogWrap: React.FC<
33
- React.PropsWithChildren<{
34
- label: string;
35
- copyable?: boolean;
36
- source?: LogValueType;
37
- copyTooltip?: string;
38
- labelExtra?: ReactNode;
39
- extra?: ReactNode;
40
- labelStyle?: React.CSSProperties;
41
- }>
42
- > = ({
43
- label,
44
- copyable = true,
45
- source,
46
- copyTooltip,
47
- children,
48
- labelExtra,
49
- extra,
50
- labelStyle,
51
- }) => {
52
- const [isSuccess, setSuccess] = useState(false);
53
-
54
- const innerCopyable = useMemo(
55
- () => copyable && !isNil(source),
56
- [copyable, source],
57
- );
58
- const handleCopy = useCallback(() => {
59
- try {
60
- const text = isObject(source)
61
- ? JSON.stringify(source, undefined, SPACE)
62
- : toString(source);
63
- copy(text);
64
- Toast.success({ content: I18n.t('copy_success'), showClose: false });
65
- setSuccess(true);
66
- setTimeout(() => {
67
- setSuccess(false);
68
- }, 1000);
69
- } catch (e) {
70
- logger.error(e);
71
- Toast.error(I18n.t('copy_failed'));
72
- setSuccess(false);
73
- }
74
- }, [source]);
75
-
76
- const renderCopyButton = () =>
77
- isSuccess ? (
78
- <Tooltip content={I18n.t('Duplicate_success')}>
79
- <IconButton
80
- className={'w-[20px] h-[20px] p-[2px]'}
81
- size={'mini'}
82
- color={'secondary'}
83
- icon={<IconCozCheckMark color={'rgba(107, 109, 117, 1)'} />}
84
- />
85
- </Tooltip>
86
- ) : (
87
- <Tooltip content={copyTooltip || I18n.t('Copy')}>
88
- <IconButton
89
- className={'!w-[20px] !h-[20px] !p-[2px] !text-[16px]'}
90
- size={'mini'}
91
- color={'secondary'}
92
- onClick={handleCopy}
93
- icon={<IconCozCopy color={'rgba(107, 109, 117, 1)'} />}
94
- />
95
- </Tooltip>
96
- );
97
-
98
- return (
99
- <div>
100
- <div style={labelStyle} className={styles['flow-log-detail-label']}>
101
- <span className={styles['label-text']}>{label}</span>
102
- {innerCopyable ? renderCopyButton() : null}
103
- {labelExtra}
104
- {extra ? <div className="flex flex-1 justify-end">{extra}</div> : null}
105
- </div>
106
- <div>{children}</div>
107
- </div>
108
- );
109
- };
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 React, { useCallback, useMemo, useState, type ReactNode } from 'react';
18
+
19
+ import { isObject, toString, isNil } from 'lodash-es';
20
+ import copy from 'copy-to-clipboard';
21
+ import { logger } from '@coze-arch/logger';
22
+ import { I18n } from '@coze-arch/i18n';
23
+ import { IconCozCopy, IconCozCheckMark } from '@coze-arch/coze-design/icons';
24
+ import { IconButton, Toast, Tooltip } from '@coze-arch/coze-design';
25
+
26
+ import { type LogValueType } from '../../types';
27
+
28
+ import styles from './log-wrap.module.less';
29
+
30
+ const SPACE = 2;
31
+
32
+ export const LogWrap: React.FC<
33
+ React.PropsWithChildren<{
34
+ label: string;
35
+ copyable?: boolean;
36
+ source?: LogValueType;
37
+ copyTooltip?: string;
38
+ labelExtra?: ReactNode;
39
+ extra?: ReactNode;
40
+ labelStyle?: React.CSSProperties;
41
+ }>
42
+ > = ({
43
+ label,
44
+ copyable = true,
45
+ source,
46
+ copyTooltip,
47
+ children,
48
+ labelExtra,
49
+ extra,
50
+ labelStyle,
51
+ }) => {
52
+ const [isSuccess, setSuccess] = useState(false);
53
+
54
+ const innerCopyable = useMemo(
55
+ () => copyable && !isNil(source),
56
+ [copyable, source],
57
+ );
58
+ const handleCopy = useCallback(() => {
59
+ try {
60
+ const text = isObject(source)
61
+ ? JSON.stringify(source, undefined, SPACE)
62
+ : toString(source);
63
+ copy(text);
64
+ Toast.success({ content: I18n.t('copy_success'), showClose: false });
65
+ setSuccess(true);
66
+ setTimeout(() => {
67
+ setSuccess(false);
68
+ }, 1000);
69
+ } catch (e) {
70
+ logger.error(e);
71
+ Toast.error(I18n.t('copy_failed'));
72
+ setSuccess(false);
73
+ }
74
+ }, [source]);
75
+
76
+ const renderCopyButton = () =>
77
+ isSuccess ? (
78
+ <Tooltip content={I18n.t('Duplicate_success')}>
79
+ <IconButton
80
+ className={'w-[20px] h-[20px] p-[2px]'}
81
+ size={'mini'}
82
+ color={'secondary'}
83
+ icon={<IconCozCheckMark color={'rgba(107, 109, 117, 1)'} />}
84
+ />
85
+ </Tooltip>
86
+ ) : (
87
+ <Tooltip content={copyTooltip || I18n.t('Copy')}>
88
+ <IconButton
89
+ className={'!w-[20px] !h-[20px] !p-[2px] !text-[16px]'}
90
+ size={'mini'}
91
+ color={'secondary'}
92
+ onClick={handleCopy}
93
+ icon={<IconCozCopy color={'rgba(107, 109, 117, 1)'} />}
94
+ />
95
+ </Tooltip>
96
+ );
97
+
98
+ return (
99
+ <div>
100
+ <div style={labelStyle} className={styles['flow-log-detail-label']}>
101
+ <span className={styles['label-text']}>{label}</span>
102
+ {innerCopyable ? renderCopyButton() : null}
103
+ {labelExtra}
104
+ {extra ? <div className="flex flex-1 justify-end">{extra}</div> : null}
105
+ </div>
106
+ <div>{children}</div>
107
+ </div>
108
+ );
109
+ };
@@ -1,52 +1,52 @@
1
- .node-status-bar {
2
- border: 1px solid var(--coz-stroke-plus);
3
- border-radius: 8px;
4
- background-color: var(--coz-bg-max);
5
-
6
- position: absolute;
7
- top: calc(100% + 8px);
8
- left: 0;
9
-
10
- width: 100%;
11
- }
12
-
13
- .status-header {
14
- display: flex;
15
- align-items: center;
16
- justify-content: space-between;
17
- padding: 6px;
18
-
19
- &-opened {
20
- padding-bottom: 0;
21
- }
22
-
23
- .status-title {
24
- display: flex;
25
- align-items: center;
26
- column-gap: 8px;
27
- min-width: 0;
28
-
29
- :global {
30
- .coz-tag {
31
- height: 20px;
32
- }
33
- .semi-tag-content {
34
- font-weight: 500;
35
- line-height: 16px;
36
- font-size: 12px;
37
- }
38
- .semi-tag-suffix-icon >div{
39
- font-size: 14px;
40
- }
41
- }
42
- }
43
- .status-btns {
44
- display: flex;
45
- align-items: center;
46
- column-gap: 4px;
47
- }
48
-
49
- .is-show-detail {
50
- transform: rotate(180deg)
51
- }
52
- }
1
+ .node-status-bar {
2
+ border: 1px solid var(--coz-stroke-plus);
3
+ border-radius: 8px;
4
+ background-color: var(--coz-bg-max);
5
+
6
+ position: absolute;
7
+ top: calc(100% + 8px);
8
+ left: 0;
9
+
10
+ width: 100%;
11
+ }
12
+
13
+ .status-header {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ padding: 6px;
18
+
19
+ &-opened {
20
+ padding-bottom: 0;
21
+ }
22
+
23
+ .status-title {
24
+ display: flex;
25
+ align-items: center;
26
+ column-gap: 8px;
27
+ min-width: 0;
28
+
29
+ :global {
30
+ .coz-tag {
31
+ height: 20px;
32
+ }
33
+ .semi-tag-content {
34
+ font-weight: 500;
35
+ line-height: 16px;
36
+ font-size: 12px;
37
+ }
38
+ .semi-tag-suffix-icon >div{
39
+ font-size: 14px;
40
+ }
41
+ }
42
+ }
43
+ .status-btns {
44
+ display: flex;
45
+ align-items: center;
46
+ column-gap: 4px;
47
+ }
48
+
49
+ .is-show-detail {
50
+ transform: rotate(180deg)
51
+ }
52
+ }