@fudanda/workflow 2.20261024.1-beta.1 → 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.
- package/LICENSE +21 -21
- package/README.md +114 -114
- package/THIRD-PARTY-NOTICES.md +57 -57
- package/dist/{ai-markdown-esl-I5ck.js → ai-markdown--SqEglSn.js} +1 -2
- package/dist/chrome.js +46 -53
- package/dist/core.js +3 -3
- package/dist/flowgram-designer.d.ts +1 -1
- package/dist/graph-scope.d.ts +3 -3
- package/dist/{header-shortcuts-BQZuNfpA.js → header-shortcuts-BcwVJV2g.js} +1 -2
- package/dist/index.js +926 -1001
- package/dist/observation-types.d.ts +1 -1
- package/dist/prompt-kit.d.ts +1 -1
- package/dist/{schema-tree-CTM6hEdm.js → schema-tree-B4yoWS9A.js} +5 -10
- package/dist/{start-form-L6xw9phk.js → start-form-DWlAhZhs.js} +169 -335
- package/dist/styles.css +1 -1
- package/dist/templates.d.ts +1 -1
- package/dist/{test-input-validation-CkORPCfm.js → test-input-validation-Ch9pS4X8.js} +1 -2
- package/package.json +20 -17
- package/vendor/coze/LICENSE-APACHE +177 -177
- package/vendor/coze/UPSTREAM.json +8 -8
- package/vendor/coze/original/base-test-button.tsx +22 -22
- package/vendor/coze/original/comment-container.tsx +68 -68
- package/vendor/coze/original/condition-container.tsx +60 -60
- package/vendor/coze/original/condition-tag.tsx +58 -58
- package/vendor/coze/original/coze-global.less +234 -234
- package/vendor/coze/original/create-loop-function-json.ts +134 -134
- package/vendor/coze/original/create-loop-function.ts +56 -56
- package/vendor/coze/original/end-registry.ts +41 -41
- package/vendor/coze/original/execute-result-panel.less +97 -97
- package/vendor/coze/original/execute-result-panel.tsx +171 -171
- package/vendor/coze/original/form-item.less +39 -39
- package/vendor/coze/original/form-item.tsx +200 -200
- package/vendor/coze/original/http-api-field.tsx +42 -42
- package/vendor/coze/original/http-form-render.tsx +102 -102
- package/vendor/coze/original/icon-add.svg +3 -3
- package/vendor/coze/original/icon-arrow-left.svg +3 -3
- package/vendor/coze/original/icon-auto-layout.svg +18 -18
- package/vendor/coze/original/icon-code.svg +13 -13
- package/vendor/coze/original/icon-condition.svg +12 -12
- package/vendor/coze/original/icon-database.svg +18 -18
- package/vendor/coze/original/icon-delete.svg +5 -5
- package/vendor/coze/original/icon-fullscreen.svg +9 -9
- package/vendor/coze/original/icon-more.svg +11 -11
- package/vendor/coze/original/icon-play-round-outlined.svg +8 -8
- package/vendor/coze/original/icon-plugin-tool.svg +6 -6
- package/vendor/coze/original/icon-standard-copy.svg +8 -8
- package/vendor/coze/original/icon-unknown.svg +7 -7
- package/vendor/coze/original/icon-var.svg +6 -6
- package/vendor/coze/original/icon-workflow-end.svg +5 -5
- package/vendor/coze/original/icon-workflow-start.svg +5 -5
- package/vendor/coze/original/icon-workflow.svg +21 -21
- package/vendor/coze/original/icon-workflows.svg +5 -5
- package/vendor/coze/original/if-form-meta.tsx +88 -88
- package/vendor/coze/original/logic-display.tsx +33 -33
- package/vendor/coze/original/mouse-icon.tsx +35 -35
- package/vendor/coze/original/mouse-pad-selector.tsx +180 -180
- package/vendor/coze/original/node-card.tsx +77 -77
- package/vendor/coze/original/node-category-panel.less +4 -4
- package/vendor/coze/original/node-category-panel.tsx +53 -53
- package/vendor/coze/original/node-config-form.tsx +67 -67
- package/vendor/coze/original/node-header.less +165 -165
- package/vendor/coze/original/node-header.tsx +552 -552
- package/vendor/coze/original/node-panel.less +183 -183
- package/vendor/coze/original/node-render.less +20 -20
- package/vendor/coze/original/node-side-sheet.less +57 -57
- package/vendor/coze/original/node-side-sheet.tsx +214 -214
- package/vendor/coze/original/node-wrapper.tsx +71 -71
- package/vendor/coze/original/pad-icon.tsx +45 -45
- package/vendor/coze/original/resizable-side-panel-constants.ts +18 -18
- package/vendor/coze/original/resizable-side-panel.tsx +42 -42
- package/vendor/coze/original/start-registry.ts +53 -53
- package/vendor/coze/original/sub-canvas-background.less +4 -4
- package/vendor/coze/original/sub-canvas-background.tsx +48 -48
- package/vendor/coze/original/sub-canvas-container.less +16 -16
- package/vendor/coze/original/sub-canvas-container.tsx +97 -97
- package/vendor/coze/original/sub-canvas-header.less +75 -75
- package/vendor/coze/original/sub-canvas-header.tsx +95 -95
- package/vendor/coze/original/test-form-sheet-header.tsx +82 -82
- package/vendor/coze/original/test-form-sheet.less +178 -178
- package/vendor/coze/original/toolbar-add-node.tsx +68 -68
- package/vendor/coze/original/toolbar-auto-layout.tsx +61 -61
- package/vendor/coze/original/toolbar-comment.tsx +121 -121
- package/vendor/coze/original/toolbar-container.tsx +42 -42
- package/vendor/coze/original/toolbar-interactive.tsx +98 -98
- package/vendor/coze/original/toolbar-minimap-switch.tsx +41 -41
- package/vendor/coze/original/toolbar-tools.less +46 -46
- package/vendor/coze/original/toolbar-tools.tsx +89 -89
- package/vendor/coze/original/toolbar-zoom.tsx +134 -134
- package/vendor/coze/original/tree-variable-selector.less +291 -291
- package/vendor/coze/original/tree-variable-selector.tsx +298 -298
- package/vendor/coze/original/workflow-document-custom-options.ts +151 -151
- package/vendor/coze/original/workflow-header.less +65 -65
- package/vendor/coze/original/workflow-header.tsx +85 -85
- package/vendor/coze/source/agent-models/model-option/index.module.less +18 -18
- package/vendor/coze/source/agent-models/model-option/index.tsx +321 -321
- package/vendor/coze/source/agent-models/model-option-avatar/index.tsx +175 -175
- package/vendor/coze/source/agent-models/model-option-group/index.tsx +87 -87
- package/vendor/coze/source/agent-models/model-option-thumb/index.tsx +41 -41
- package/vendor/coze/source/agent-models/model-select-ui/index.tsx +238 -238
- package/vendor/coze/source/agent-models/popover-model-list-view/index.tsx +146 -146
- package/vendor/coze/source/components/code-editor/text-editor.tsx +71 -71
- package/vendor/coze/source/components/comment/components/editor/block.tsx +117 -117
- package/vendor/coze/source/components/comment/components/editor/leaf.tsx +64 -64
- package/vendor/coze/source/components/comment/components/toolbar.tsx +366 -366
- package/vendor/coze/source/components/comment/constant.ts +94 -94
- package/vendor/coze/source/components/editor-container/expand-editor/index.module.less +107 -107
- package/vendor/coze/source/components/editor-container/expand-editor/index.tsx +117 -117
- package/vendor/coze/source/components/model-select/components/model-setting.tsx +300 -300
- package/vendor/coze/source/components/model-select/components/settings.tsx +144 -144
- package/vendor/coze/source/components/model-select/index.module.less +34 -34
- package/vendor/coze/source/components/model-select/utils/index.tsx +100 -100
- package/vendor/coze/source/components/node-render/node-render-new/fields/constants.tsx +79 -79
- package/vendor/coze/source/components/node-render/node-render-new/fields/field-empty.module.less +12 -12
- package/vendor/coze/source/components/node-render/node-render-new/fields/field-empty.tsx +37 -37
- package/vendor/coze/source/components/node-render/node-render-new/fields/field.module.less +19 -19
- package/vendor/coze/source/components/node-render/node-render-new/fields/field.tsx +52 -52
- package/vendor/coze/source/components/node-render/node-render-new/fields/http-api-field/index.tsx +42 -42
- package/vendor/coze/source/components/node-render/node-render-new/fields/overflow-tag-list.module.less +47 -47
- package/vendor/coze/source/components/node-render/node-render-new/fields/overflow-tag-list.tsx +162 -162
- package/vendor/coze/source/components/node-render/node-render-new/fields/variable-tag-list.module.less +48 -48
- package/vendor/coze/source/components/node-render/node-render-new/fields/variable-tag-list.tsx +126 -126
- package/vendor/coze/source/components/node-wrapper/execute-result-panel/index.module.less +97 -97
- package/vendor/coze/source/components/node-wrapper/execute-result-panel/index.tsx +171 -171
- package/vendor/coze/source/components/sub-canvas/components/background/index.module.less +4 -4
- package/vendor/coze/source/components/sub-canvas/components/header/index.module.less +75 -75
- package/vendor/coze/source/components/test-run/test-run-button/single-node.tsx +158 -158
- package/vendor/coze/source/execution-panel/panel.module.less +48 -48
- package/vendor/coze/source/execution-panel/panel.tsx +99 -99
- package/vendor/coze/source/execution-panel/use-resize.ts +79 -79
- package/vendor/coze/source/external/features/log/components/data-viewer/constants.ts +28 -28
- package/vendor/coze/source/external/features/log/components/data-viewer/context/context.ts +21 -21
- package/vendor/coze/source/external/features/log/components/data-viewer/context/create-store.ts +48 -48
- package/vendor/coze/source/external/features/log/components/data-viewer/context/index.ts +19 -19
- package/vendor/coze/source/external/features/log/components/data-viewer/context/provider.tsx +50 -50
- package/vendor/coze/source/external/features/log/components/data-viewer/data-viewer.module.less +26 -26
- package/vendor/coze/source/external/features/log/components/data-viewer/data-viewer.tsx +79 -79
- package/vendor/coze/source/external/features/log/components/data-viewer/hooks/index.ts +18 -18
- package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-data-viewer-store.ts +29 -29
- package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-expand.ts +35 -35
- package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-value.tsx +66 -66
- package/vendor/coze/source/external/features/log/components/data-viewer/index.tsx +21 -21
- package/vendor/coze/source/external/features/log/components/data-viewer/json-field/index.tsx +186 -186
- package/vendor/coze/source/external/features/log/components/data-viewer/json-field/json-field.module.less +79 -79
- package/vendor/coze/source/external/features/log/components/data-viewer/types.ts +50 -50
- package/vendor/coze/source/external/features/log/components/data-viewer/utils/big-number.ts +35 -35
- package/vendor/coze/source/external/features/log/components/data-viewer/utils/generate-field.ts +104 -104
- package/vendor/coze/source/external/features/log/components/log-parser/log-wrap.module.less +27 -27
- package/vendor/coze/source/external/features/log/components/log-parser/log-wrap.tsx +109 -109
- package/vendor/coze/source/external/features/log/components/node-status-bar/node-status-bar.module.less +52 -52
- package/vendor/coze/source/external/features/log/components/node-status-bar/node-status-bar.tsx +113 -113
- package/vendor/coze/source/form/components/field-empty.tsx +45 -45
- package/vendor/coze/source/form/components/section.tsx +91 -91
- package/vendor/coze/source/form-extensions/components/add-item-button/index.tsx +64 -64
- package/vendor/coze/source/form-extensions/components/form-card/index.module.less +131 -131
- package/vendor/coze/source/form-extensions/components/form-card/index.tsx +309 -309
- package/vendor/coze/source/form-extensions/components/form-item/index.module.less +39 -39
- package/vendor/coze/source/form-extensions/components/form-item/index.tsx +200 -200
- package/vendor/coze/source/form-extensions/components/form-item-feedback/index.module.less +7 -7
- package/vendor/coze/source/form-extensions/components/form-item-feedback/index.tsx +39 -39
- package/vendor/coze/source/form-extensions/components/level-line/index.module.less +346 -346
- package/vendor/coze/source/form-extensions/components/level-line/index.ts +17 -17
- package/vendor/coze/source/form-extensions/components/level-line/level-line.tsx +460 -460
- package/vendor/coze/source/form-extensions/components/level-line/types.ts +38 -38
- package/vendor/coze/source/form-extensions/components/level-line/utils.ts +60 -60
- package/vendor/coze/source/form-extensions/components/literal-value-input/constants.ts +61 -61
- package/vendor/coze/source/form-extensions/components/literal-value-input/input-boolean.tsx +80 -80
- package/vendor/coze/source/form-extensions/components/literal-value-input/input-integer.tsx +68 -68
- package/vendor/coze/source/form-extensions/components/literal-value-input/input-number.tsx +62 -62
- package/vendor/coze/source/form-extensions/components/literal-value-input/input-select.tsx +59 -59
- package/vendor/coze/source/form-extensions/components/literal-value-input/input-string.tsx +55 -55
- package/vendor/coze/source/form-extensions/components/literal-value-input/literal-value-input.tsx +35 -35
- package/vendor/coze/source/form-extensions/components/literal-value-input/styles.module.less +46 -46
- package/vendor/coze/source/form-extensions/components/literal-value-input/type.ts +61 -61
- package/vendor/coze/source/form-extensions/components/literal-value-input/utils.tsx +117 -117
- package/vendor/coze/source/form-extensions/components/node-header/components/close-button.tsx +44 -44
- package/vendor/coze/source/form-extensions/components/node-header/description-display.tsx +52 -52
- package/vendor/coze/source/form-extensions/components/node-header/description.tsx +131 -131
- package/vendor/coze/source/form-extensions/components/node-header/index.module.less +165 -165
- package/vendor/coze/source/form-extensions/components/node-header/index.tsx +552 -552
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-btn/index.tsx +43 -43
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/default-value-input.tsx +276 -276
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/index.module.less +124 -124
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/index.tsx +131 -131
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/types.ts +32 -32
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-name/index.module.less +38 -38
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-name/index.tsx +101 -101
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-operator/index.module.less +51 -51
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-operator/index.tsx +107 -107
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-required/index.module.less +17 -17
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-required/index.tsx +53 -53
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/constants.tsx +77 -77
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/index.module.less +97 -97
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/index.tsx +155 -155
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/constants.ts +38 -38
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/index.module.less +138 -138
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/index.tsx +360 -360
- package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/type.ts +88 -88
- package/vendor/coze/source/form-extensions/components/output-tree/components/header/index.module.less +36 -36
- package/vendor/coze/source/form-extensions/components/output-tree/components/header/index.tsx +104 -104
- package/vendor/coze/source/form-extensions/components/output-tree/constants.ts +22 -22
- package/vendor/coze/source/form-extensions/components/output-tree/context.ts +28 -28
- package/vendor/coze/source/form-extensions/components/output-tree/hooks/use-columns-style.ts +39 -39
- package/vendor/coze/source/form-extensions/components/output-tree/index.module.less +83 -83
- package/vendor/coze/source/form-extensions/components/output-tree/index.tsx +692 -692
- package/vendor/coze/source/form-extensions/components/output-tree/utils.ts +185 -185
- package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/index.tsx +97 -97
- package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/option-item.tsx +30 -30
- package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/types.ts +23 -23
- package/vendor/coze/source/form-extensions/components/setting-on-error/components/retry-times/index.tsx +45 -45
- package/vendor/coze/source/form-extensions/components/setting-on-error/components/timeout/index.tsx +102 -102
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select-option.tsx +167 -167
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select-tree-panel.tsx +165 -165
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select.module.less +96 -96
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select.tsx +265 -265
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/context.tsx +42 -42
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/expand-icon.tsx +30 -30
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/index.module.less +291 -291
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/node-variable-tree.module.less +48 -48
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/node-variable-tree.tsx +149 -149
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/utils.tsx +500 -500
- package/vendor/coze/source/form-extensions/components/tree-variable-selector/value-display.tsx +130 -130
- package/vendor/coze/source/form-extensions/components/value-expression-input/const.ts +68 -68
- package/vendor/coze/source/form-extensions/components/value-expression-input/context.ts +27 -27
- package/vendor/coze/source/form-extensions/components/value-expression-input/index.module.less +144 -144
- package/vendor/coze/source/form-extensions/components/value-expression-input/value-expression-input.tsx +418 -418
- package/vendor/coze/source/form-extensions/components/variable-type-selector/constants.tsx +77 -77
- package/vendor/coze/source/form-extensions/components/variable-type-selector/index.module.less +31 -31
- package/vendor/coze/source/form-extensions/components/variable-type-selector/index.tsx +17 -17
- package/vendor/coze/source/form-extensions/components/variable-type-selector/utils.tsx +298 -298
- package/vendor/coze/source/form-extensions/components/variable-type-selector/variable-type-selector.tsx +235 -235
- package/vendor/coze/source/form-extensions/components/variable-type-tag/index.tsx +54 -54
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-branch.module.less +9 -9
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-branch.tsx +249 -249
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-header.tsx +50 -50
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-item-logic.module.less +13 -13
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-item-logic.tsx +73 -73
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/delete/index.module.less +10 -10
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/delete/index.tsx +42 -42
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/index.module.less +9 -9
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/index.tsx +254 -254
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/operator/index.module.less +7 -7
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/operator/index.tsx +144 -144
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/value-expression-with-state/index.tsx +69 -69
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/context.ts +36 -36
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/condition-branch-preview.tsx +44 -44
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/condition-branch.tsx +152 -152
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/container.tsx +19 -19
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/custom-drag-layer.tsx +117 -117
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/types.ts +18 -18
- package/vendor/coze/source/form-extensions/setters/condition/multi-condition/types.ts +58 -58
- package/vendor/coze/source/node-registries/end/components/terminate-plan-field.tsx +29 -29
- package/vendor/coze/source/node-registries/end/constants.ts +34 -34
- package/vendor/coze/source/node-registries/end/form.tsx +66 -66
- package/vendor/coze/source/node-registries/end/types.ts +45 -45
- package/vendor/coze/source/node-registries/http/components/base-editor/raw-text-editor.tsx +80 -80
- package/vendor/coze/source/node-registries/http/constants.ts +80 -80
- package/vendor/coze/source/node-registries/http/fields/json-import-editor/index.module.less +191 -191
- package/vendor/coze/source/node-registries/http/fields/json-import-editor/json-import-components/json-expand-editor.tsx +141 -141
- package/vendor/coze/source/node-registries/http/fields/json-import-editor/json-import-components/json-import.tsx +99 -99
- package/vendor/coze/source/node-registries/http/form-render.tsx +102 -102
- package/vendor/coze/source/node-registries/http/setters/api/curl-expand-editor.tsx +161 -161
- package/vendor/coze/source/node-registries/http/setters/api/curl-import.tsx +96 -96
- package/vendor/coze/source/node-registries/http/setters/api/index.module.less +199 -199
- package/vendor/coze/source/node-registries/http/setters/api/index.tsx +149 -149
- package/vendor/coze/source/node-registries/http/setters/api/utils.ts +41 -41
- package/vendor/coze/source/node-registries/http/setters/body/index.tsx +201 -201
- package/vendor/coze/source/node-registries/http/setters/constants.ts +83 -83
- package/vendor/coze/source/node-registries/if/components/else/index.tsx +41 -41
- package/vendor/coze/source/node-registries/intent/components/intents/index.module.less +14 -14
- package/vendor/coze/source/node-registries/intent/components/intents/option-item/index.tsx +189 -189
- package/vendor/coze/source/node-registries/json-stringify/constants.ts +32 -32
- package/vendor/coze/source/node-registries/json-stringify/form.tsx +46 -46
- package/vendor/coze/source/node-registries/loop/constants.ts +43 -43
- package/vendor/coze/source/node-registries/loop/loop-fields/loop-settings-section/index.tsx +48 -48
- package/vendor/coze/source/node-registries/loop/loop-fields/loop-type/index.tsx +81 -81
- package/vendor/coze/source/node-registries/loop/loop-fields/loop-type/options.ts +34 -34
- package/vendor/coze/source/node-registries/start/form.tsx +209 -209
- package/vendor/coze/source/node-registries/text-process/components/method-selector/index.tsx +46 -46
- package/vendor/coze/source/node-registries/text-process/constants.ts +132 -132
- package/vendor/coze/source/nodes-v2/components/form-item-feedback/index.module.less +7 -7
- package/vendor/coze/source/nodes-v2/components/form-item-feedback/index.tsx +47 -47
- package/vendor/coze/source/nodes-v2/components/system-prompt/index.module.less +66 -66
- package/vendor/coze/source/nodes-v2/components/system-prompt/prompt-kit-bar.tsx +129 -129
- package/vendor/coze/source/nodes-v2/components/system-prompt/system-prompt-editor.tsx +110 -110
- package/vendor/coze/source/nodes-v2/llm/user-prompt/index.tsx +64 -64
- package/vendor/coze/source/prompt-kit/input-config-popover/index.tsx +80 -80
- package/vendor/coze/source/prompt-kit/input-slot-widget/index.css +34 -34
- package/vendor/coze/source/prompt-kit/input-slot-widget/index.ts +169 -169
- package/vendor/coze/source/prompt-kit/library-item.tsx +141 -141
- package/vendor/coze/source/prompt-kit/prompt-info-input.tsx +90 -90
- package/vendor/coze/source/ui-components/add-operation/index.module.less +19 -19
- package/vendor/coze/source/ui-components/add-operation/index.tsx +67 -67
- package/vendor/coze/source/ui-components/auto-size-tooltip/index.module.less +39 -39
- package/vendor/coze/source/ui-components/auto-size-tooltip/index.tsx +74 -74
- package/vendor/coze/source/ui-components/workflow-sl-input/index.module.less +36 -36
- package/vendor/coze/source/ui-components/workflow-sl-input/index.tsx +194 -194
- package/vendor/coze/source/utils/create-slots/index.tsx +126 -126
- package/vendor/coze/source/utils/create-slots/use-force-update.ts +23 -23
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 iwangbowen
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 iwangbowen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
# @fudanda/workflow
|
|
2
|
-
|
|
3
|
-
独立的 ArcBase Graph v1/v2 编辑器。FlowGram 自由布局编辑器及背景、吸附、小地图插件固定为 **1.0.15**;Coze Studio 组件固定取自 `fefb05ff27be1da939612fbf9faf5db62583b8ae`。
|
|
4
|
-
|
|
5
|
-
```tsx
|
|
6
|
-
import { ArcBaseWorkflowDesigner } from '@fudanda/workflow';
|
|
7
|
-
import '@fudanda/workflow/styles.css';
|
|
8
|
-
import '@douyinfe/semi-ui/react19-adapter';
|
|
9
|
-
|
|
10
|
-
<ArcBaseWorkflowDesigner
|
|
11
|
-
value={graph}
|
|
12
|
-
catalog={catalog.nodes}
|
|
13
|
-
onChange={setGraph}
|
|
14
|
-
sources={catalog.sources.map(source => source.name)}
|
|
15
|
-
sourceSchemas={Object.fromEntries(catalog.sources.map(source => [source.name, source.schema]))}
|
|
16
|
-
credentials={credentialMetadata}
|
|
17
|
-
models={catalog.models}
|
|
18
|
-
theme="light"
|
|
19
|
-
height={740}
|
|
20
|
-
onNodeSelect={setSelectedNodeId}
|
|
21
|
-
onValidationChange={setDiagnostics}
|
|
22
|
-
/>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
`value`、`catalog` 为必需属性;其余可选。`credentials` 仅传入 `{id,name,kind?}` 元数据,禁止传入秘密。接口触发的输入结构可以通过 `sourceSchemas={{trigger:inputSchema}}` 传入;提供 `onInputSchemaChange` 后,开始节点通过原版 OutputTree 编辑嵌套输入的名称、类型、必填、默认值和描述。无法安全编辑的 schema 保留原结构并只读展示;宿主注册的事件 schema 只读。重名、空名称和无效 JSON 默认值会通过校验回调阻止保存。
|
|
26
|
-
|
|
27
|
-
页面组件移植覆盖 Coze 的节点拖拽外壳、标题与操作菜单、浮动节点选择面板、
|
|
28
|
-
居中分组工具栏、表单分区、变量树及输入输出结果面板;相关 LESS 展开为实例范围内的 CSS。
|
|
29
|
-
“添加节点”打开分类面板;选中或添加节点后关闭分类面板,右侧打开配置。
|
|
30
|
-
节点及工具栏使用固定源码中的本地 SVG,不加载 Coze 的远程资源。
|
|
31
|
-
|
|
32
|
-
`toolbarExtra` 允许宿主把真实测试等操作放入底部独立操作组;组件自身不执行请求。
|
|
33
|
-
`minimapVisible` 与 `onMinimapVisibleChange` 可由宿主控制小地图开关并持久化偏好;未传入时仍使用实例内状态,初始关闭。管理台按部署标识和当前账号保存开关,设计器与运行检查页面共用;刷新后恢复显示或隐藏,不写入流程图或发布版本。独立设计器本身不读取浏览器存储。
|
|
34
|
-
工具条沿用 Coze 的交互方式、缩放、注释、自动整理、小地图、添加节点顺序及尺寸;缩放菜单向上打开,添加节点支持短暂悬停展开,小地图居中显示在工具条上方。`WorkflowTestRunButton` 从 `@fudanda/workflow/chrome` 导出,宿主传入 `disabled` 和 `onClick` 接通真实试运行。
|
|
35
|
-
|
|
36
|
-
注释保存为 Graph v1/v2 的可选 `annotations` 展示数据,每个图最多 100 条,每条最多 5000 字符;保留文本、ID 和图内坐标。可创建、编辑、拖动标题、删除、撤销及复制粘贴,运行快照只读展示。注释不成为执行节点、变量来源或 DBOS 持久操作,不改变旧流程的执行顺序。本轮使用纯文本编辑,尚未移植 Coze 的富文本注释工具。
|
|
37
|
-
`@fudanda/workflow/chrome` 提供轻量 `WorkflowHeader`(`info`、`actions` 属性)
|
|
38
|
-
与 `WorkflowControlIcon`,宿主可复用标题栏而无需提前加载 FlowGram。
|
|
39
|
-
|
|
40
|
-
每实例有独立的 FlowGram Provider、内存存储、历史、复制缓冲及弹层容器。样式和主题以 `.arc-workflow-designer` 为边界,不修改宿主 body。组件不导入 Client/Web/Admin,不请求 API、不读取会话或全局存储;没有 iframe。宿主负责 Cookie、CSRF、保存、发布、测试和查询。
|
|
41
|
-
|
|
42
|
-
支持拖拽节点和连线、条件与 Switch 动态端口、撤销重做、框选、复制粘贴、自动整理、小地图和从参数面板在连线上插入节点。参数面板支持输入绑定、上游变量、可选分支输入、JSON 固定值、输出结构及配置诊断。宿主自定义节点按目录版本注册,提供 JSON 配置编辑;未知节点保留配置和绑定并提示不可用。
|
|
43
|
-
|
|
44
|
-
`readOnly` + `nodeRuns` 展示运行快照和节点结果。流程与画布的双向适配保留节点和连线 ID、版本、配置、绑定、坐标、空值及未知节点;**FlowGram 文档不得发往 API 或入库**。
|
|
45
|
-
|
|
46
|
-
宿主可传入 `diagnostics` 展示服务端安全诊断,并通过 `selectedNodeId` 与 `onNodeSelect`
|
|
47
|
-
控制检查节点;点击字段诊断定位参数。非法 JSON 暂存在当前实例,在关闭参数面板后仍保留,
|
|
48
|
-
通过 `onValidationChange` 返回 `json_invalid`。宿主必须在修正前阻止保存、发布和测试,避免提交旧值。
|
|
49
|
-
|
|
50
|
-
旧 WorkflowBuilder 参考目录只作历史源码保留,不参与 TypeScript、运行入口和 npm 包;
|
|
51
|
-
iframe 协议、构建入口及专属运行依赖已退出。构建会检查 Coze 来源哈希、版权和 FlowGram 固定版本。
|
|
52
|
-
|
|
53
|
-
```sh
|
|
54
|
-
npm run build -w @fudanda/workflow
|
|
55
|
-
npm run test -w @fudanda/workflow
|
|
56
|
-
npm run pack:packages
|
|
57
|
-
npm run test:automation:external
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
最后一条命令在仓库外安装本地归档,通过真实 Go API 验证完整工作台及 `/dash/designer.html` 的双实例示例。完整责任边界见 [改造计划](../../docs/plan/arcbase-workflow-coze-flowgram.md)。本阶段不发布 npm。
|
|
61
|
-
|
|
62
|
-
Coze 采用选择性源码移植;原始文件、SHA256、上游路径、修改说明和许可证见 `vendor/coze/UPSTREAM.json`、`vendor/coze/original` 及 `THIRD-PARTY-NOTICES.md`。本包构建不需要参考源码目录;`npm run vendor:coze -w @fudanda/workflow` 仅在重新核对固定源码时使用。
|
|
63
|
-
|
|
64
|
-
本包包含逐步移植的 Coze 设计器界面,不包含整个 Coze Studio 或 Coze 后端。
|
|
65
|
-
可选 Eino 大模型节点由宿主模型目录启用;`models` 只传安全元数据,不能传地址或密钥。
|
|
66
|
-
只迁入工作流。智能体、应用、知识库和插件不在当前范围;节点与执行能力见[工作流迁移清单](../../docs/plan/arcbase-coze-product-parity.md)。
|
|
67
|
-
|
|
68
|
-
节点参数面板采用 Coze 的 360–546px 可调宽布局,支持拖动左边缘和键盘方向键。
|
|
69
|
-
小地图默认关闭,通过工具栏按实例切换;居中显示在工具条上方,随工具条换行调整位置,不随图坐标滚动,支持点击及拖动导航。节点面板在工具栏上方弹出。
|
|
70
|
-
画布图标使用上游实际节点注册图标(JPEG),执行追踪 SVG 属于另一套资源。
|
|
71
|
-
宿主可传 `sidePanel` 装配测试输入与运行结果,通过 `workflow/chrome` 的
|
|
72
|
-
`WorkflowSidePanel` 复用侧栏外壳;设计器仍不调用 API。选择节点后由宿主切回参数面板。
|
|
73
|
-
|
|
74
|
-
本地 Coze 实页面对照和部署说明见 [Coze 参考环境](../../docs/guide/coze-reference.md)。
|
|
75
|
-
|
|
76
|
-
当前复制 206 个固定提交的组件、样式和类型文件,新增 Coze 注释 Leaf、Block、Toolbar 和格式常量。复制脚本为 `scripts/copy-coze-source.mjs`;原文件在 `vendor/coze/source`,执行副本在 `src/coze/source`,两者 SHA256 均在 manifest 校验。`compat` 和 `scripts/ports` 负责 React 19、Graph v1/v2、可用变量、InputSlot CodeMirror 桥接和实例状态适配;设计器仍无请求和会话。条件排序保留分支端口和连线,作为一次历史操作提交;拖拽管理器与 JSON 草稿按实例隔离。
|
|
77
|
-
|
|
78
|
-
宿主可传 `initialViewport` / `onViewportChange` 保存缩放与位置,使用 `interactionMode` / `onInteractionModeChange` 保存鼠标或触控板方式;设计器自己不访问 localStorage。管理台按部署、账号、流程保存画布偏好和最近运行 ID,在对应修订可用时从授权接口恢复结果。
|
|
79
|
-
|
|
80
|
-
注释的可选 `richText` 保存 Coze Slate JSON,`text` 保持旧宿主兼容。支持标题、引用、列表、加粗、斜体、下划线、删除线和受限链接;粘贴按纯文本处理,服务端校验结构和大小。不改变数据库结构或 DBOS 操作顺序。完整结果复制与下载在浏览器后台序列化,不裁剪持久化数据;宿主 CSP 若限制 Worker,需允许 `worker-src 'self' blob:`,失败显示可重试错误。
|
|
81
|
-
|
|
82
|
-
模型参数采用原版精确/平衡/创意/自定义交互。JSON 模式提供显式输出 Schema,供 Go 运行时校验并生成下游变量结构。提示词复用原 SystemPromptEditor、CodeMirror 与 ExpandEditorContainer,通过 React 19 适配支持展开编辑、光标位置插入变量、键盘补全、有效/无效引用高亮;更改输入别名立即更新引用诊断。文本模板候选仅使用当前节点已绑定的输入名;意图描述关闭变量插值。展开修改立即同步到宿主草稿,仍需显式保存;弹层、键盘、主题与补全按实例隔离。工作流范围内的 Prompt Kit 已接通组织提示词库、版本、比较、填写块与真实 Eino 优化;技能、多模态及部分高级模型参数不在本阶段。独立示例中的“示例模型(仅编辑,不执行 AI)”仅验证组件交互,真实模型验收必须配置服务后执行。
|
|
83
|
-
|
|
84
|
-
宿主可传 `onNodeTest(nodeId)` 打开真实顶层单节点测试;设计器不访问接口。批处理和循环使用同一 Provider 的原生内嵌子画布,内部编辑、连线、复制粘贴和撤销重做仍通过 `config.body` 返回 ArcBase 图;不会保存 FlowGram 文档。只读结果可按迭代查看,宿主传入嵌套运行记录 ID 时自动定位内部节点和所属迭代。子流程快照通过只读内部查看器检查。
|
|
85
|
-
|
|
86
|
-
顶层 `onNodeSelect` 仍返回原节点 ID;内部选择返回不持久化的画布标识。宿主可通过 `resolveWorkflowSelection(graph, id)` 得到 `{node, graph, path}`,不要把画布标识作为业务节点 ID 调用接口。`selectedNodeId` 接受上述画布标识或实际运行记录的 `nodeId`。
|
|
87
|
-
|
|
88
|
-
可选 `onNodeRunSelect(recordId)` 在选中节点/切换迭代且有真实运行记录时发出持久记录 ID,供宿主同步底部选中状态。`onSidePanelClose()` 在 Escape 关闭宿主 `sidePanel` 时回调;变量弹层先消费 Escape,输入编辑、IME、只读和弹层不会触发图形复制/删除/撤销。画布支持 Ctrl/Cmd+Z、Shift+Z 和 Ctrl/Cmd+Y。
|
|
89
|
-
|
|
90
|
-
`workflow/chrome` 提供 `WorkflowExecutionPanel({header,children,onClose})`,使用固定版 Coze BottomPanel 源码。宿主传入记录内容,不提供网络和缓存。高度为每实例状态,支持指针拖动及 ArrowUp/ArrowDown/Home/End;默认 200px,范围 120–420px,并为画布保留空间。
|
|
91
|
-
|
|
92
|
-
宿主更新 `value` 时,设计器会删除不再存在的节点和辅助画布,并清除旧历史;正常 `onChange` 回传保持历史。辅助容器与连接只存在于 FlowGram 文档中,API 图仍使用本地节点 ID 和 `config.body`。流程体定位与适应画布会避开当前实例的参数面板。
|
|
93
|
-
|
|
94
|
-
`workflow/chrome` 新增纯展示组件 `WorkflowTestInput`,属性为 `schema`、JSON 字符串 `value`、`onChange`、`onValidityChange` 和可选 `description`。有字段定义时默认表单,支持 JSON 切换、类型及必填校验;没有安全字段定义时保留 JSON 编辑。宿主根据有效状态控制真实测试按钮。发布历史、语义对比与恢复仍由 admin/automation 装配。来源、能力和差异见 `docs/plan/arcbase-workflow-node-inventory.md`。
|
|
95
|
-
|
|
96
|
-
`workflow/chrome` 同时导出 `WorkflowInputFields({schema,onChange,onValidation,readOnly})`,供宿主设置面板复用开始节点字段编辑器。每实例拥有独立弹层容器;调用方控制 Schema、错误及保存,不访问会话或 API。高级 JSON Schema 约束仍由宿主及 Go 校验。
|
|
97
|
-
|
|
98
|
-
Coze 组件自行导入的 CSS 也在构建时限制于 `.arc-workflow-designer`,不会覆盖宿主 Semi 弹层。输入字段编辑器同时提供 Semi 和设计器弹层边界;SDK 构建检查实际产物,防止全局下拉背景规则重新泄漏。
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
2026-10-04 后续更新:循环体展示、工作流 Prompt Kit 和持久断点已接入。提示词库由宿主回调提供;断点使用独立 DBOS V3 名称和持久继续命令,旧 Graph v1/v2 恢复入口保持不变。本次新增显式 automation 迁移版本 2,详情与架构见[循环体、Prompt Kit 与断点](../../docs/guide/workflow-debug-prompt-kit.md)。历史段落的“尚未实现”描述以本次更新为准,不代表整个 Coze 产品已 1:1 完成。
|
|
102
|
-
|
|
103
|
-
`nodeRuns[].preview` 显示有界流式预览,最终结果仍在 `output`。`dataOmitted` 表示宿主尚未加载完整结果;可选 `onNodeResultRequest(recordId)` 由宿主查询后回传。大结果树有展示预算,提供完整复制与下载。纯展示组件不自行订阅或请求,详见[流式运行与性能](../../docs/guide/workflow-stream-performance.md)。
|
|
104
|
-
|
|
105
|
-
选择节点和调整参数面板宽度保留用户缩放,只移动被遮挡的节点。初次适应画布最多 100%;显式“适应画布”和“编辑流程体”按可视区域定位,大型流程体可缩小到编辑器限制。原 Coze 类型摘要及模型名称使用宿主传入的真实目录,不改变图数据。8091 的真实对照和剩余差异见[工作流界面对照](../../docs/guide/workflow-ui-parity.md)。
|
|
106
|
-
|
|
107
|
-
单出口动作的异常表单使用原 Coze 超时、重试和处理方式控件,通过可选 `node.execution` 回传宿主,支持中断、设定输出和 `error` 分支;Go 执行其实际语义。缺少该字段时保持旧行为。单节点播放按钮位于原标题,仍通过 `onNodeTest` 回调开启宿主的真实测试。已处理异常的运行结果保留错误和尝试次数。
|
|
108
|
-
|
|
109
|
-
大模型 JSON 输出字段使用原 `OutputTree`,保留复杂 Schema;`outputLayout: 'fields'` 提供顶层字段和 `$model` 元数据,旧输出默认仍为 `structured`。文本支持 `textOutputName`。字段树未完成的编辑按实例保留,返回 `schema_invalid`,宿主必须像 `json_invalid` 一样阻止保存/发布/测试;关闭参数面板不能将旧值当作有效提交。
|
|
110
|
-
|
|
111
|
-
大图画布节点仅挂载摘要,参数表单在检查面板按需挂载,避免为每张卡片初始化表单引擎。ArcBase 元数据仍通过双向适配保存,配置更新进入该实例原有的 FlowGram 事务历史;节点新增、复制、移动和参数编辑继续支持撤销重做。外部 `value` 替换清理旧历史,正常 `onChange` 回传保留历史。完整结果后台处理完成后,还会核对当前节点和组件状态,离开原结果后不复制或下载旧内容。公共属性及持久图格式保持兼容。
|
|
112
|
-
## 宿主主题颜色
|
|
113
|
-
|
|
114
|
-
`theme` 控制明暗模式,`themeColors` 可传入宿主的语义颜色:`primary`、`primaryHover`、`primaryActive`、`primaryLight`、`primaryLightHover`、`primaryLightActive`、`background`、`surface`、`text`、`muted`、`border`、`fill`。管理台自动从现有 Semi UI 主题同步这些颜色,节点选中、连线、按钮和参数弹层保持一致;节点类别图标仍保留各自的识别色。独立宿主通过属性提供颜色,设计器不读取全局主题、会话或存储。未传入时保留独立设计器默认配色。
|
|
1
|
+
# @fudanda/workflow
|
|
2
|
+
|
|
3
|
+
独立的 ArcBase Graph v1/v2 编辑器。FlowGram 自由布局编辑器及背景、吸附、小地图插件固定为 **1.0.15**;Coze Studio 组件固定取自 `fefb05ff27be1da939612fbf9faf5db62583b8ae`。
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import { ArcBaseWorkflowDesigner } from '@fudanda/workflow';
|
|
7
|
+
import '@fudanda/workflow/styles.css';
|
|
8
|
+
import '@douyinfe/semi-ui/react19-adapter';
|
|
9
|
+
|
|
10
|
+
<ArcBaseWorkflowDesigner
|
|
11
|
+
value={graph}
|
|
12
|
+
catalog={catalog.nodes}
|
|
13
|
+
onChange={setGraph}
|
|
14
|
+
sources={catalog.sources.map(source => source.name)}
|
|
15
|
+
sourceSchemas={Object.fromEntries(catalog.sources.map(source => [source.name, source.schema]))}
|
|
16
|
+
credentials={credentialMetadata}
|
|
17
|
+
models={catalog.models}
|
|
18
|
+
theme="light"
|
|
19
|
+
height={740}
|
|
20
|
+
onNodeSelect={setSelectedNodeId}
|
|
21
|
+
onValidationChange={setDiagnostics}
|
|
22
|
+
/>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`value`、`catalog` 为必需属性;其余可选。`credentials` 仅传入 `{id,name,kind?}` 元数据,禁止传入秘密。接口触发的输入结构可以通过 `sourceSchemas={{trigger:inputSchema}}` 传入;提供 `onInputSchemaChange` 后,开始节点通过原版 OutputTree 编辑嵌套输入的名称、类型、必填、默认值和描述。无法安全编辑的 schema 保留原结构并只读展示;宿主注册的事件 schema 只读。重名、空名称和无效 JSON 默认值会通过校验回调阻止保存。
|
|
26
|
+
|
|
27
|
+
页面组件移植覆盖 Coze 的节点拖拽外壳、标题与操作菜单、浮动节点选择面板、
|
|
28
|
+
居中分组工具栏、表单分区、变量树及输入输出结果面板;相关 LESS 展开为实例范围内的 CSS。
|
|
29
|
+
“添加节点”打开分类面板;选中或添加节点后关闭分类面板,右侧打开配置。
|
|
30
|
+
节点及工具栏使用固定源码中的本地 SVG,不加载 Coze 的远程资源。
|
|
31
|
+
|
|
32
|
+
`toolbarExtra` 允许宿主把真实测试等操作放入底部独立操作组;组件自身不执行请求。
|
|
33
|
+
`minimapVisible` 与 `onMinimapVisibleChange` 可由宿主控制小地图开关并持久化偏好;未传入时仍使用实例内状态,初始关闭。管理台按部署标识和当前账号保存开关,设计器与运行检查页面共用;刷新后恢复显示或隐藏,不写入流程图或发布版本。独立设计器本身不读取浏览器存储。
|
|
34
|
+
工具条沿用 Coze 的交互方式、缩放、注释、自动整理、小地图、添加节点顺序及尺寸;缩放菜单向上打开,添加节点支持短暂悬停展开,小地图居中显示在工具条上方。`WorkflowTestRunButton` 从 `@fudanda/workflow/chrome` 导出,宿主传入 `disabled` 和 `onClick` 接通真实试运行。
|
|
35
|
+
|
|
36
|
+
注释保存为 Graph v1/v2 的可选 `annotations` 展示数据,每个图最多 100 条,每条最多 5000 字符;保留文本、ID 和图内坐标。可创建、编辑、拖动标题、删除、撤销及复制粘贴,运行快照只读展示。注释不成为执行节点、变量来源或 DBOS 持久操作,不改变旧流程的执行顺序。本轮使用纯文本编辑,尚未移植 Coze 的富文本注释工具。
|
|
37
|
+
`@fudanda/workflow/chrome` 提供轻量 `WorkflowHeader`(`info`、`actions` 属性)
|
|
38
|
+
与 `WorkflowControlIcon`,宿主可复用标题栏而无需提前加载 FlowGram。
|
|
39
|
+
|
|
40
|
+
每实例有独立的 FlowGram Provider、内存存储、历史、复制缓冲及弹层容器。样式和主题以 `.arc-workflow-designer` 为边界,不修改宿主 body。组件不导入 Client/Web/Admin,不请求 API、不读取会话或全局存储;没有 iframe。宿主负责 Cookie、CSRF、保存、发布、测试和查询。
|
|
41
|
+
|
|
42
|
+
支持拖拽节点和连线、条件与 Switch 动态端口、撤销重做、框选、复制粘贴、自动整理、小地图和从参数面板在连线上插入节点。参数面板支持输入绑定、上游变量、可选分支输入、JSON 固定值、输出结构及配置诊断。宿主自定义节点按目录版本注册,提供 JSON 配置编辑;未知节点保留配置和绑定并提示不可用。
|
|
43
|
+
|
|
44
|
+
`readOnly` + `nodeRuns` 展示运行快照和节点结果。流程与画布的双向适配保留节点和连线 ID、版本、配置、绑定、坐标、空值及未知节点;**FlowGram 文档不得发往 API 或入库**。
|
|
45
|
+
|
|
46
|
+
宿主可传入 `diagnostics` 展示服务端安全诊断,并通过 `selectedNodeId` 与 `onNodeSelect`
|
|
47
|
+
控制检查节点;点击字段诊断定位参数。非法 JSON 暂存在当前实例,在关闭参数面板后仍保留,
|
|
48
|
+
通过 `onValidationChange` 返回 `json_invalid`。宿主必须在修正前阻止保存、发布和测试,避免提交旧值。
|
|
49
|
+
|
|
50
|
+
旧 WorkflowBuilder 参考目录只作历史源码保留,不参与 TypeScript、运行入口和 npm 包;
|
|
51
|
+
iframe 协议、构建入口及专属运行依赖已退出。构建会检查 Coze 来源哈希、版权和 FlowGram 固定版本。
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
npm run build -w @fudanda/workflow
|
|
55
|
+
npm run test -w @fudanda/workflow
|
|
56
|
+
npm run pack:packages
|
|
57
|
+
npm run test:automation:external
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
最后一条命令在仓库外安装本地归档,通过真实 Go API 验证完整工作台及 `/dash/designer.html` 的双实例示例。完整责任边界见 [改造计划](../../docs/plan/arcbase-workflow-coze-flowgram.md)。本阶段不发布 npm。
|
|
61
|
+
|
|
62
|
+
Coze 采用选择性源码移植;原始文件、SHA256、上游路径、修改说明和许可证见 `vendor/coze/UPSTREAM.json`、`vendor/coze/original` 及 `THIRD-PARTY-NOTICES.md`。本包构建不需要参考源码目录;`npm run vendor:coze -w @fudanda/workflow` 仅在重新核对固定源码时使用。
|
|
63
|
+
|
|
64
|
+
本包包含逐步移植的 Coze 设计器界面,不包含整个 Coze Studio 或 Coze 后端。
|
|
65
|
+
可选 Eino 大模型节点由宿主模型目录启用;`models` 只传安全元数据,不能传地址或密钥。
|
|
66
|
+
只迁入工作流。智能体、应用、知识库和插件不在当前范围;节点与执行能力见[工作流迁移清单](../../docs/plan/arcbase-coze-product-parity.md)。
|
|
67
|
+
|
|
68
|
+
节点参数面板采用 Coze 的 360–546px 可调宽布局,支持拖动左边缘和键盘方向键。
|
|
69
|
+
小地图默认关闭,通过工具栏按实例切换;居中显示在工具条上方,随工具条换行调整位置,不随图坐标滚动,支持点击及拖动导航。节点面板在工具栏上方弹出。
|
|
70
|
+
画布图标使用上游实际节点注册图标(JPEG),执行追踪 SVG 属于另一套资源。
|
|
71
|
+
宿主可传 `sidePanel` 装配测试输入与运行结果,通过 `workflow/chrome` 的
|
|
72
|
+
`WorkflowSidePanel` 复用侧栏外壳;设计器仍不调用 API。选择节点后由宿主切回参数面板。
|
|
73
|
+
|
|
74
|
+
本地 Coze 实页面对照和部署说明见 [Coze 参考环境](../../docs/guide/coze-reference.md)。
|
|
75
|
+
|
|
76
|
+
当前复制 206 个固定提交的组件、样式和类型文件,新增 Coze 注释 Leaf、Block、Toolbar 和格式常量。复制脚本为 `scripts/copy-coze-source.mjs`;原文件在 `vendor/coze/source`,执行副本在 `src/coze/source`,两者 SHA256 均在 manifest 校验。`compat` 和 `scripts/ports` 负责 React 19、Graph v1/v2、可用变量、InputSlot CodeMirror 桥接和实例状态适配;设计器仍无请求和会话。条件排序保留分支端口和连线,作为一次历史操作提交;拖拽管理器与 JSON 草稿按实例隔离。
|
|
77
|
+
|
|
78
|
+
宿主可传 `initialViewport` / `onViewportChange` 保存缩放与位置,使用 `interactionMode` / `onInteractionModeChange` 保存鼠标或触控板方式;设计器自己不访问 localStorage。管理台按部署、账号、流程保存画布偏好和最近运行 ID,在对应修订可用时从授权接口恢复结果。
|
|
79
|
+
|
|
80
|
+
注释的可选 `richText` 保存 Coze Slate JSON,`text` 保持旧宿主兼容。支持标题、引用、列表、加粗、斜体、下划线、删除线和受限链接;粘贴按纯文本处理,服务端校验结构和大小。不改变数据库结构或 DBOS 操作顺序。完整结果复制与下载在浏览器后台序列化,不裁剪持久化数据;宿主 CSP 若限制 Worker,需允许 `worker-src 'self' blob:`,失败显示可重试错误。
|
|
81
|
+
|
|
82
|
+
模型参数采用原版精确/平衡/创意/自定义交互。JSON 模式提供显式输出 Schema,供 Go 运行时校验并生成下游变量结构。提示词复用原 SystemPromptEditor、CodeMirror 与 ExpandEditorContainer,通过 React 19 适配支持展开编辑、光标位置插入变量、键盘补全、有效/无效引用高亮;更改输入别名立即更新引用诊断。文本模板候选仅使用当前节点已绑定的输入名;意图描述关闭变量插值。展开修改立即同步到宿主草稿,仍需显式保存;弹层、键盘、主题与补全按实例隔离。工作流范围内的 Prompt Kit 已接通组织提示词库、版本、比较、填写块与真实 Eino 优化;技能、多模态及部分高级模型参数不在本阶段。独立示例中的“示例模型(仅编辑,不执行 AI)”仅验证组件交互,真实模型验收必须配置服务后执行。
|
|
83
|
+
|
|
84
|
+
宿主可传 `onNodeTest(nodeId)` 打开真实顶层单节点测试;设计器不访问接口。批处理和循环使用同一 Provider 的原生内嵌子画布,内部编辑、连线、复制粘贴和撤销重做仍通过 `config.body` 返回 ArcBase 图;不会保存 FlowGram 文档。只读结果可按迭代查看,宿主传入嵌套运行记录 ID 时自动定位内部节点和所属迭代。子流程快照通过只读内部查看器检查。
|
|
85
|
+
|
|
86
|
+
顶层 `onNodeSelect` 仍返回原节点 ID;内部选择返回不持久化的画布标识。宿主可通过 `resolveWorkflowSelection(graph, id)` 得到 `{node, graph, path}`,不要把画布标识作为业务节点 ID 调用接口。`selectedNodeId` 接受上述画布标识或实际运行记录的 `nodeId`。
|
|
87
|
+
|
|
88
|
+
可选 `onNodeRunSelect(recordId)` 在选中节点/切换迭代且有真实运行记录时发出持久记录 ID,供宿主同步底部选中状态。`onSidePanelClose()` 在 Escape 关闭宿主 `sidePanel` 时回调;变量弹层先消费 Escape,输入编辑、IME、只读和弹层不会触发图形复制/删除/撤销。画布支持 Ctrl/Cmd+Z、Shift+Z 和 Ctrl/Cmd+Y。
|
|
89
|
+
|
|
90
|
+
`workflow/chrome` 提供 `WorkflowExecutionPanel({header,children,onClose})`,使用固定版 Coze BottomPanel 源码。宿主传入记录内容,不提供网络和缓存。高度为每实例状态,支持指针拖动及 ArrowUp/ArrowDown/Home/End;默认 200px,范围 120–420px,并为画布保留空间。
|
|
91
|
+
|
|
92
|
+
宿主更新 `value` 时,设计器会删除不再存在的节点和辅助画布,并清除旧历史;正常 `onChange` 回传保持历史。辅助容器与连接只存在于 FlowGram 文档中,API 图仍使用本地节点 ID 和 `config.body`。流程体定位与适应画布会避开当前实例的参数面板。
|
|
93
|
+
|
|
94
|
+
`workflow/chrome` 新增纯展示组件 `WorkflowTestInput`,属性为 `schema`、JSON 字符串 `value`、`onChange`、`onValidityChange` 和可选 `description`。有字段定义时默认表单,支持 JSON 切换、类型及必填校验;没有安全字段定义时保留 JSON 编辑。宿主根据有效状态控制真实测试按钮。发布历史、语义对比与恢复仍由 admin/automation 装配。来源、能力和差异见 `docs/plan/arcbase-workflow-node-inventory.md`。
|
|
95
|
+
|
|
96
|
+
`workflow/chrome` 同时导出 `WorkflowInputFields({schema,onChange,onValidation,readOnly})`,供宿主设置面板复用开始节点字段编辑器。每实例拥有独立弹层容器;调用方控制 Schema、错误及保存,不访问会话或 API。高级 JSON Schema 约束仍由宿主及 Go 校验。
|
|
97
|
+
|
|
98
|
+
Coze 组件自行导入的 CSS 也在构建时限制于 `.arc-workflow-designer`,不会覆盖宿主 Semi 弹层。输入字段编辑器同时提供 Semi 和设计器弹层边界;SDK 构建检查实际产物,防止全局下拉背景规则重新泄漏。
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
2026-10-04 后续更新:循环体展示、工作流 Prompt Kit 和持久断点已接入。提示词库由宿主回调提供;断点使用独立 DBOS V3 名称和持久继续命令,旧 Graph v1/v2 恢复入口保持不变。本次新增显式 automation 迁移版本 2,详情与架构见[循环体、Prompt Kit 与断点](../../docs/guide/workflow-debug-prompt-kit.md)。历史段落的“尚未实现”描述以本次更新为准,不代表整个 Coze 产品已 1:1 完成。
|
|
102
|
+
|
|
103
|
+
`nodeRuns[].preview` 显示有界流式预览,最终结果仍在 `output`。`dataOmitted` 表示宿主尚未加载完整结果;可选 `onNodeResultRequest(recordId)` 由宿主查询后回传。大结果树有展示预算,提供完整复制与下载。纯展示组件不自行订阅或请求,详见[流式运行与性能](../../docs/guide/workflow-stream-performance.md)。
|
|
104
|
+
|
|
105
|
+
选择节点和调整参数面板宽度保留用户缩放,只移动被遮挡的节点。初次适应画布最多 100%;显式“适应画布”和“编辑流程体”按可视区域定位,大型流程体可缩小到编辑器限制。原 Coze 类型摘要及模型名称使用宿主传入的真实目录,不改变图数据。8091 的真实对照和剩余差异见[工作流界面对照](../../docs/guide/workflow-ui-parity.md)。
|
|
106
|
+
|
|
107
|
+
单出口动作的异常表单使用原 Coze 超时、重试和处理方式控件,通过可选 `node.execution` 回传宿主,支持中断、设定输出和 `error` 分支;Go 执行其实际语义。缺少该字段时保持旧行为。单节点播放按钮位于原标题,仍通过 `onNodeTest` 回调开启宿主的真实测试。已处理异常的运行结果保留错误和尝试次数。
|
|
108
|
+
|
|
109
|
+
大模型 JSON 输出字段使用原 `OutputTree`,保留复杂 Schema;`outputLayout: 'fields'` 提供顶层字段和 `$model` 元数据,旧输出默认仍为 `structured`。文本支持 `textOutputName`。字段树未完成的编辑按实例保留,返回 `schema_invalid`,宿主必须像 `json_invalid` 一样阻止保存/发布/测试;关闭参数面板不能将旧值当作有效提交。
|
|
110
|
+
|
|
111
|
+
大图画布节点仅挂载摘要,参数表单在检查面板按需挂载,避免为每张卡片初始化表单引擎。ArcBase 元数据仍通过双向适配保存,配置更新进入该实例原有的 FlowGram 事务历史;节点新增、复制、移动和参数编辑继续支持撤销重做。外部 `value` 替换清理旧历史,正常 `onChange` 回传保留历史。完整结果后台处理完成后,还会核对当前节点和组件状态,离开原结果后不复制或下载旧内容。公共属性及持久图格式保持兼容。
|
|
112
|
+
## 宿主主题颜色
|
|
113
|
+
|
|
114
|
+
`theme` 控制明暗模式,`themeColors` 可传入宿主的语义颜色:`primary`、`primaryHover`、`primaryActive`、`primaryLight`、`primaryLightHover`、`primaryLightActive`、`background`、`surface`、`text`、`muted`、`border`、`fill`。管理台自动从现有 Semi UI 主题同步这些颜色,节点选中、连线、按钮和参数弹层保持一致;节点类别图标仍保留各自的识别色。独立宿主通过属性提供颜色,设计器不读取全局主题、会话或存储。未传入时保留独立设计器默认配色。
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
# Third-party source attribution
|
|
2
|
-
|
|
3
|
-
## Coze Studio
|
|
4
|
-
|
|
5
|
-
Repository: https://github.com/coze-dev/coze-studio
|
|
6
|
-
|
|
7
|
-
Pinned commit: `fefb05ff27be1da939612fbf9faf5db62583b8ae`.
|
|
8
|
-
|
|
9
|
-
Copyright 2025 coze-dev Authors. Licensed under Apache License 2.0; the complete original license is included at `vendor/coze/LICENSE-APACHE`.
|
|
10
|
-
|
|
11
|
-
`vendor/coze/UPSTREAM.json` records each original path, SHA256, adapted source file and changes. `vendor/coze/original` retains earlier reference files; `vendor/coze/source` retains the newly copied original components and LESS. `src/coze/source` contains executable copies. Both original and executable hashes are checked. Adapted components preserve attribution in their own headers. No upstream NOTICE file exists at the pinned repository root.
|
|
12
|
-
|
|
13
|
-
The copy script installs 199 pinned files as executable source or associated styles/types. They include FormCard/Section, NodeHeader and descriptions, CompositeSelect/NodeVariableTree, draggable condition branches and condition parameter rows, operator selection, ValueExpressionInput and literal inputs, HTTP setters, cURL and JSON expanded editors, start/end forms, the complete OutputTree field renderer, VariableTypeSelector, VariableTagList/OverflowTagList, NodeStatusBar, LogWrap and the recursive DataViewer. The start form retains its open-source basic-input branch and nested name/type/required/default/description editing. Private account/project/scope stores, API clients, telemetry and backend execution imports are replaced by explicit per-instance adapters in `src/coze/compat`. This is a modified source subset, not an unchanged Coze application. Host-enabled Eino LLM nodes additionally use the original model-list cards, parameter settings and user-prompt form. Private model, account and premium services are replaced by per-instance host metadata. The copied timeout/retry/error-policy controls and single-node play button call host callbacks; ArcBase implements execution and validation. Scripting and Coze backend behavior are not exposed.
|
|
14
|
-
|
|
15
|
-
NodeStatusBar adds optional controlled expansion callbacks. ArcBase keeps expanded results in each designer instance so FlowGram renderer replacement during selection or dragging does not reset them; original uncontrolled behavior remains available.
|
|
16
|
-
|
|
17
|
-
The UI port also includes the node dragging wrapper, node header/title operations,
|
|
18
|
-
floating node card/category panel, grouped centered toolbar, vertical form sections,
|
|
19
|
-
tree variable selector and workflow header. Original component hierarchy and selected
|
|
20
|
-
LESS layouts are retained with scoped CSS and portable callbacks. Coze workflow and
|
|
21
|
-
control SVGs are copied unchanged and checked by SHA256. The source manifest
|
|
22
|
-
distinguishes adapted modules, original reference files and bundled assets.
|
|
23
|
-
The manifest uses `sha256-lf-text-v1`: text hashes normalize CRLF to LF for
|
|
24
|
-
Windows/Linux Git checkouts; all other text bytes and binary assets remain
|
|
25
|
-
covered. The recorded upstream revision and file paths are unchanged.
|
|
26
|
-
|
|
27
|
-
The right-side form/test shell also ports node-side-sheet, resizable-side-panel
|
|
28
|
-
and test-form-sheet-v2 header/layout sources. Width state and pointer/keyboard
|
|
29
|
-
resizing are instance-local. The canvas registry JPEG icons from
|
|
30
|
-
`docker/volumes/minio/default_icon/workflow_icon` are copied without modification;
|
|
31
|
-
they replace the visually different trace-span SVGs in node cards. Both original
|
|
32
|
-
and bundled assets are checked against the manifest hashes.
|
|
33
|
-
|
|
34
|
-
This is the ArcBase business-automation subset, not the complete Coze Studio product.
|
|
35
|
-
The grab/grabbing SVG cursors are extracted unchanged from the pinned
|
|
36
|
-
`workflow-document-custom-options.ts`. ArcBase adds a centered hotspot and native
|
|
37
|
-
fallbacks, sharing the same white fill and dark outline between FlowGram and
|
|
38
|
-
draggable cards; the source and generated adapter are checked by the manifest.
|
|
39
|
-
Coze agents, RAG nodes, plugins marketplace, collaboration, conversations, scripts and
|
|
40
|
-
the Coze runtime are not included. ArcBase's existing execution capabilities determine
|
|
41
|
-
the available nodes and operations.
|
|
42
|
-
|
|
43
|
-
## FlowGram
|
|
44
|
-
|
|
45
|
-
The npm free-layout editor and background, minimap and free-snap plugins are locked to 1.0.15. Their bundled JavaScript retains upstream copyright/license comments; the npm dependencies include their own license files. Copyright (c) 2025 Bytedance Ltd. and/or its affiliates; MIT License.
|
|
46
|
-
|
|
47
|
-
The previous Workflow Builder iframe sources remain historical reference files and are excluded from active builds and this package's published file list.
|
|
48
|
-
|
|
49
|
-
## Coze Design and CodeMirror
|
|
50
|
-
|
|
51
|
-
The public `@coze-arch/coze-design` package is fixed to `0.0.6-alpha.346d77`, the version used by the pinned source; npm declares ISC. Its original CSS is scoped to `.arc-workflow-designer`, with Tailwind utilities generated from copied source and no global preflight. Node headers, forms, menus, radios and icons use these components.
|
|
52
|
-
|
|
53
|
-
CodeMirror's `@codemirror/state`, view, commands, autocomplete and JSON packages are MIT dependencies with their original licenses. A React 19 lifecycle adapter replaces the upstream React 18-only `@coze-editor/editor/react` renderer. Coze's text editor theme/options and expanded editor UI are copied; ArcBase supplies available upstream variables and never executes imported cURL commands. Lodash ES, Zustand, ahooks and BigNumber.js retain their dependency licenses.
|
|
54
|
-
|
|
55
|
-
React DnD, its HTML5 backend, dnd-core and nanoid are MIT dependencies with their original licenses. Each condition editor creates a drag manager scoped to its own panel root, preserving independent designers and avoiding the upstream application's global drag provider.
|
|
56
|
-
|
|
57
|
-
HTTP credentials remain encrypted ArcBase credential references, and protected headers are managed by the host. File/binary bodies and streaming text output are not shown because the current Go node does not support them. These are explicit capability differences; source provenance and engineering tests alone do not establish pixel-for-pixel parity with every Coze release.
|
|
1
|
+
# Third-party source attribution
|
|
2
|
+
|
|
3
|
+
## Coze Studio
|
|
4
|
+
|
|
5
|
+
Repository: https://github.com/coze-dev/coze-studio
|
|
6
|
+
|
|
7
|
+
Pinned commit: `fefb05ff27be1da939612fbf9faf5db62583b8ae`.
|
|
8
|
+
|
|
9
|
+
Copyright 2025 coze-dev Authors. Licensed under Apache License 2.0; the complete original license is included at `vendor/coze/LICENSE-APACHE`.
|
|
10
|
+
|
|
11
|
+
`vendor/coze/UPSTREAM.json` records each original path, SHA256, adapted source file and changes. `vendor/coze/original` retains earlier reference files; `vendor/coze/source` retains the newly copied original components and LESS. `src/coze/source` contains executable copies. Both original and executable hashes are checked. Adapted components preserve attribution in their own headers. No upstream NOTICE file exists at the pinned repository root.
|
|
12
|
+
|
|
13
|
+
The copy script installs 199 pinned files as executable source or associated styles/types. They include FormCard/Section, NodeHeader and descriptions, CompositeSelect/NodeVariableTree, draggable condition branches and condition parameter rows, operator selection, ValueExpressionInput and literal inputs, HTTP setters, cURL and JSON expanded editors, start/end forms, the complete OutputTree field renderer, VariableTypeSelector, VariableTagList/OverflowTagList, NodeStatusBar, LogWrap and the recursive DataViewer. The start form retains its open-source basic-input branch and nested name/type/required/default/description editing. Private account/project/scope stores, API clients, telemetry and backend execution imports are replaced by explicit per-instance adapters in `src/coze/compat`. This is a modified source subset, not an unchanged Coze application. Host-enabled Eino LLM nodes additionally use the original model-list cards, parameter settings and user-prompt form. Private model, account and premium services are replaced by per-instance host metadata. The copied timeout/retry/error-policy controls and single-node play button call host callbacks; ArcBase implements execution and validation. Scripting and Coze backend behavior are not exposed.
|
|
14
|
+
|
|
15
|
+
NodeStatusBar adds optional controlled expansion callbacks. ArcBase keeps expanded results in each designer instance so FlowGram renderer replacement during selection or dragging does not reset them; original uncontrolled behavior remains available.
|
|
16
|
+
|
|
17
|
+
The UI port also includes the node dragging wrapper, node header/title operations,
|
|
18
|
+
floating node card/category panel, grouped centered toolbar, vertical form sections,
|
|
19
|
+
tree variable selector and workflow header. Original component hierarchy and selected
|
|
20
|
+
LESS layouts are retained with scoped CSS and portable callbacks. Coze workflow and
|
|
21
|
+
control SVGs are copied unchanged and checked by SHA256. The source manifest
|
|
22
|
+
distinguishes adapted modules, original reference files and bundled assets.
|
|
23
|
+
The manifest uses `sha256-lf-text-v1`: text hashes normalize CRLF to LF for
|
|
24
|
+
Windows/Linux Git checkouts; all other text bytes and binary assets remain
|
|
25
|
+
covered. The recorded upstream revision and file paths are unchanged.
|
|
26
|
+
|
|
27
|
+
The right-side form/test shell also ports node-side-sheet, resizable-side-panel
|
|
28
|
+
and test-form-sheet-v2 header/layout sources. Width state and pointer/keyboard
|
|
29
|
+
resizing are instance-local. The canvas registry JPEG icons from
|
|
30
|
+
`docker/volumes/minio/default_icon/workflow_icon` are copied without modification;
|
|
31
|
+
they replace the visually different trace-span SVGs in node cards. Both original
|
|
32
|
+
and bundled assets are checked against the manifest hashes.
|
|
33
|
+
|
|
34
|
+
This is the ArcBase business-automation subset, not the complete Coze Studio product.
|
|
35
|
+
The grab/grabbing SVG cursors are extracted unchanged from the pinned
|
|
36
|
+
`workflow-document-custom-options.ts`. ArcBase adds a centered hotspot and native
|
|
37
|
+
fallbacks, sharing the same white fill and dark outline between FlowGram and
|
|
38
|
+
draggable cards; the source and generated adapter are checked by the manifest.
|
|
39
|
+
Coze agents, RAG nodes, plugins marketplace, collaboration, conversations, scripts and
|
|
40
|
+
the Coze runtime are not included. ArcBase's existing execution capabilities determine
|
|
41
|
+
the available nodes and operations.
|
|
42
|
+
|
|
43
|
+
## FlowGram
|
|
44
|
+
|
|
45
|
+
The npm free-layout editor and background, minimap and free-snap plugins are locked to 1.0.15. Their bundled JavaScript retains upstream copyright/license comments; the npm dependencies include their own license files. Copyright (c) 2025 Bytedance Ltd. and/or its affiliates; MIT License.
|
|
46
|
+
|
|
47
|
+
The previous Workflow Builder iframe sources remain historical reference files and are excluded from active builds and this package's published file list.
|
|
48
|
+
|
|
49
|
+
## Coze Design and CodeMirror
|
|
50
|
+
|
|
51
|
+
The public `@coze-arch/coze-design` package is fixed to `0.0.6-alpha.346d77`, the version used by the pinned source; npm declares ISC. Its original CSS is scoped to `.arc-workflow-designer`, with Tailwind utilities generated from copied source and no global preflight. Node headers, forms, menus, radios and icons use these components.
|
|
52
|
+
|
|
53
|
+
CodeMirror's `@codemirror/state`, view, commands, autocomplete and JSON packages are MIT dependencies with their original licenses. A React 19 lifecycle adapter replaces the upstream React 18-only `@coze-editor/editor/react` renderer. Coze's text editor theme/options and expanded editor UI are copied; ArcBase supplies available upstream variables and never executes imported cURL commands. Lodash ES, Zustand, ahooks and BigNumber.js retain their dependency licenses.
|
|
54
|
+
|
|
55
|
+
React DnD, its HTML5 backend, dnd-core and nanoid are MIT dependencies with their original licenses. Each condition editor creates a drag manager scoped to its own panel root, preserving independent designers and avoiding the upstream application's global drag provider.
|
|
56
|
+
|
|
57
|
+
HTTP credentials remain encrypted ArcBase credential references, and protected headers are managed by the host. File/binary bodies and streaming text output are not shown because the current Go node does not support them. These are explicit capability differences; source provenance and engineering tests alone do not establish pixel-for-pixel parity with every Coze release.
|