@digitalsee-ai/rcs 0.0.14 → 1.0.0
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/dist/components/digitalsee/workflow/Canvas/NextConfigModalWrapper.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvas.d.ts +4 -0
- package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvasHeader.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvas.d.ts +1 -12
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasBase.d.ts +4 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasHeader.d.ts +2 -1
- package/dist/components/digitalsee/workflow/Canvas/color.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Canvas/constants.d.ts +75 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/createNodeAddHandlerNext.d.ts +49 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useCanvasApi.d.ts +22 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useDataLoading.d.ts +21 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeAddCallback.d.ts +44 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeFormDraftCache.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useWorkflowCanvasState.d.ts +78 -0
- package/dist/components/digitalsee/workflow/Canvas/types.d.ts +91 -0
- package/dist/components/digitalsee/workflow/Edges/BaseEdge.d.ts +3 -2
- package/dist/components/digitalsee/workflow/Edges/EdgeFactory.d.ts +43 -0
- package/dist/components/digitalsee/workflow/NextNodesConfigModal/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/Nodes/ActionNode.d.ts +3 -3
- package/dist/components/digitalsee/workflow/Nodes/AgentNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/BrowserNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/CustomNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/NextNodeFactory.d.ts +11 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextActionNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextBaseNode.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextConditionNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextLoopNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextSwitchNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextTriggerNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/NodeFactory.d.ts +3 -12
- package/dist/components/digitalsee/workflow/Nodes/StickyNoteNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/SuperBaseNode.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Nodes/components/NextNodeDescription.d.ts +16 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NextNodeOperations.d.ts +11 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NodeOperations.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/ActionNodeConfig/index.d.ts +7 -1
- package/dist/components/digitalsee/workflow/NodesConfig/ConditionNodeConfig/index.d.ts +5 -4
- package/dist/components/digitalsee/workflow/NodesConfig/ErrorHandler.d.ts +17 -2
- package/dist/components/digitalsee/workflow/NodesConfig/LoopNodeConfig/index.d.ts +2 -3
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CreateCredentialModal.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CredentialSelect.d.ts +17 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/ModifyCredentialModal.d.ts +17 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/index.d.ts +15 -0
- package/dist/components/digitalsee/workflow/NodesConfig/SwitchNodeConfig/index.d.ts +6 -5
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CreateAccountModal/index.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CredentialAccountForm.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateTimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/ExtendObjectField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/FixedObjectField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/PasswordField/index.d.ts +2 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextAreaField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/ModifyAccountModal/index.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/index.d.ts +5 -3
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/components/AIFormField.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateTimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/FixedObjectField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMinuteField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/common-placeholder-theme.d.ts +11 -11
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavascriptTagEditorField/editor.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/interface.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/keywords.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/common-placeholder-theme.d.ts +11 -11
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/interface.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{MutilRowAIExtractConfigField → MultiRowAIExtractConfigField}/index.d.ts +2 -2
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/useVariableInfo.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextField/index.d.ts +2 -2
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/index.d.ts +3 -3
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/next-compatible.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/next-compatible.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeSettings.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeTest.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/index.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.d.ts +49 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/index.d.ts +2 -1
- package/dist/components/digitalsee/workflow/NodesConfig/context.d.ts +4 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/actions.d.ts +3 -3
- package/dist/components/digitalsee/workflow/NodesConfig/define/condition.d.ts +5 -58
- package/dist/components/digitalsee/workflow/NodesConfig/define/condition.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/flow.d.ts +1 -26
- package/dist/components/digitalsee/workflow/NodesConfig/index.d.ts +3 -6
- package/dist/components/digitalsee/workflow/NodesConfig/utils/credentialRequirement.d.ts +17 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryTabs.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/types.d.ts +17 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.d.ts +2 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/components/NodeListItem.d.ts +8 -0
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/hooks/useNodeList.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/index.d.ts +9 -0
- package/dist/components/digitalsee/workflow/api/dip.d.ts +311 -0
- package/dist/components/digitalsee/workflow/api/dip.types.d.ts +996 -0
- package/dist/components/digitalsee/workflow/api/index.d.ts +42 -13
- package/dist/components/digitalsee/workflow/api/index.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/builtin/controls/AuthTokenField/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/builtin/controls/ConfigSubflow/index.d.ts +10 -0
- package/dist/components/digitalsee/workflow/builtin/controls/ConfigSubflow/types.d.ts +81 -0
- package/dist/components/digitalsee/workflow/builtin/controls/MultiRowGuard/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/builtin/controls/MultiRowGuard/types.d.ts +98 -0
- package/dist/components/digitalsee/workflow/builtin/controls/MutilRowGuard/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/builtin/controls/SecretKeyField/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/builtin/controls/SelectOAuth2ClientField/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/index.d.ts +1 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/service.d.ts +8 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/service.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/types.d.ts +17 -0
- package/dist/components/digitalsee/workflow/constants/nextHandles.d.ts +1 -0
- package/dist/components/digitalsee/workflow/enums/canvas.d.ts +63 -0
- package/dist/components/digitalsee/workflow/enums/edge.d.ts +10 -0
- package/dist/components/digitalsee/workflow/enums/handle.d.ts +42 -0
- package/dist/components/digitalsee/workflow/enums/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/enums/node.d.ts +199 -0
- package/dist/components/digitalsee/workflow/enums/workflow.d.ts +90 -0
- package/dist/components/digitalsee/workflow/events/eventBus.d.ts +8 -2
- package/dist/components/digitalsee/workflow/hooks/use-before-unload.d.ts +1 -1
- package/dist/components/digitalsee/workflow/hooks/useCanvasLayout.d.ts +2 -1
- package/dist/components/digitalsee/workflow/hooks/useHandleConnections.d.ts +1 -1
- package/dist/components/digitalsee/workflow/hooks/usePanel.d.ts +26 -0
- package/dist/components/digitalsee/workflow/hooks/useVariables.d.ts +52 -0
- package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +3 -3
- package/dist/components/digitalsee/workflow/index.d.ts +11 -2
- package/dist/components/digitalsee/workflow/store/index.d.ts +17 -0
- package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +5 -5
- package/dist/components/digitalsee/workflow/store/workflowSlice.d.ts +44 -0
- package/dist/components/digitalsee/workflow/store/workflowSlice.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/types/Edge.d.ts +1 -3
- package/dist/components/digitalsee/workflow/types/Handle.d.ts +3 -29
- package/dist/components/digitalsee/workflow/types/Node.d.ts +25 -63
- package/dist/components/digitalsee/workflow/types/NodeProtocol.d.ts +1 -12
- package/dist/components/digitalsee/workflow/types/Workflow.d.ts +4 -26
- package/dist/components/digitalsee/workflow/types/engine.d.ts +4 -0
- package/dist/components/digitalsee/workflow/utils/common.d.ts +1 -0
- package/dist/components/digitalsee/workflow/utils/flowDataAdapterNext.d.ts +13 -0
- package/dist/components/digitalsee/workflow/utils/glob.d.ts +1 -1
- package/dist/components/digitalsee/workflow/utils/layoutUtils.d.ts +2 -3
- package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.d.ts +6 -0
- package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/utils/nodeDataFormatter.d.ts +1 -1
- package/dist/components/digitalsee/workflow/utils/nodeDataFormatterNext.d.ts +11 -0
- package/dist/components/digitalsee/workflow/utils/nodeSummaryAdapter.d.ts +15 -0
- package/dist/components/dynamic-form/DynamicForm.d.ts +8 -3
- package/dist/components/dynamic-form/DynamicForm.test.d.ts +1 -0
- package/dist/components/dynamic-form/DynamicFormContext.d.ts +4 -0
- package/dist/components/dynamic-form/FieldRenderer.d.ts +6 -2
- package/dist/components/dynamic-form/components/ValueModeWrapper/index.d.ts +7 -1
- package/dist/components/dynamic-form/components/VariableInput/index.d.ts +1 -0
- package/dist/components/dynamic-form/fields/complex/KeyValueField.test.d.ts +1 -0
- package/dist/components/dynamic-form/fields/index.d.ts +12 -0
- package/dist/components/dynamic-form/index.d.ts +6 -6
- package/dist/components/dynamic-form/registry/createFieldComponent.test.d.ts +1 -0
- package/dist/components/dynamic-form/registry/index.d.ts +2 -2
- package/dist/components/dynamic-form/types/field-component.d.ts +12 -3
- package/dist/locales/en-US/common.d.ts +8 -17
- package/dist/locales/en-US/components.d.ts +28 -0
- package/dist/locales/en-US/link/flow.d.ts +9 -5
- package/dist/locales/en-US.d.ts +42 -22
- package/dist/locales/index.d.ts +2 -714
- package/dist/locales/zh-CN/common.d.ts +8 -17
- package/dist/locales/zh-CN/components.d.ts +28 -0
- package/dist/locales/zh-CN/link/flow.d.ts +9 -5
- package/dist/locales/zh-CN.d.ts +42 -22
- package/dist/locales/zh-TW/common.d.ts +8 -17
- package/dist/locales/zh-TW/components.d.ts +28 -0
- package/dist/locales/zh-TW/link/flow.d.ts +9 -5
- package/dist/locales/zh-TW.d.ts +42 -22
- package/dist/postcss.config.js +1 -0
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +48332 -39258
- package/dist/rcs.es.js.map +1 -0
- package/dist/rcs.umd.js +71 -66
- package/dist/rcs.umd.js.map +1 -0
- package/package.json +36 -37
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMiniuteField/index.d.ts +0 -5
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/editor.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/define/config-form-item.d.ts +0 -34
- package/dist/components/digitalsee/workflow/de.d.ts +0 -1
- package/dist/components/digitalsee/workflow/types/SaveStatus.d.ts +0 -1
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/extensions.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/index.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/base-theme.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/custom-completions.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/functions.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/hint.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/placeholders.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/hooks/{use-wokflow-id.d.ts → use-workflow-id.d.ts} +0 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 节点相关枚举
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 节点渲染类型(ReactFlow 层概念)
|
|
6
|
+
*/
|
|
7
|
+
export declare enum NodeType {
|
|
8
|
+
/** 开始节点 */
|
|
9
|
+
START = "START",
|
|
10
|
+
/** 触发节点 */
|
|
11
|
+
TRIGGER = "StartEventNode",
|
|
12
|
+
/** 动作节点 */
|
|
13
|
+
ACTION = "ActionNode",
|
|
14
|
+
/** 条件节点 */
|
|
15
|
+
CONDITION = "ConditionNode",
|
|
16
|
+
/** 循环节点 */
|
|
17
|
+
LOOP = "LoopNode",
|
|
18
|
+
/** 自环节点 */
|
|
19
|
+
SELF_LOOP = "SelfLoopNode",
|
|
20
|
+
/** MCP服务节点 */
|
|
21
|
+
MCPServer = "MCPServerNode",
|
|
22
|
+
/** 内置MCP节点 */
|
|
23
|
+
BuiltinMCP = "BuiltinMCPNode",
|
|
24
|
+
/** 向量存储节点 */
|
|
25
|
+
VECTOR_STORE = "VectorStoreNode",
|
|
26
|
+
/** Agent节点 */
|
|
27
|
+
AGENT = "AgentNode",
|
|
28
|
+
/** 浏览器节点 */
|
|
29
|
+
BROWSER = "BrowserNode",
|
|
30
|
+
/** AI配置子节点 */
|
|
31
|
+
AI_SUB_NODE = "AISubNode",
|
|
32
|
+
/** MCP工具节点 */
|
|
33
|
+
MCP_TOOL = "MCPToolNode",
|
|
34
|
+
/** 多分支节点 */
|
|
35
|
+
SWITCH = "SwitchNode",
|
|
36
|
+
/** 便签节点 */
|
|
37
|
+
STICKY = "StickyNoteNode",
|
|
38
|
+
/**
|
|
39
|
+
* 自定义节点类型(内部扩展用)
|
|
40
|
+
*/
|
|
41
|
+
CUSTOM = "custom"
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 节点运行状态
|
|
45
|
+
*/
|
|
46
|
+
export declare enum NodeStatus {
|
|
47
|
+
/**
|
|
48
|
+
* 未发布 该节点配置不完整
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof NodeStatus
|
|
52
|
+
*/
|
|
53
|
+
INVALID = "INVALID",
|
|
54
|
+
/**
|
|
55
|
+
* 空闲状态
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof NodeStatus
|
|
59
|
+
*/
|
|
60
|
+
IDLE = "IDLE",
|
|
61
|
+
/**
|
|
62
|
+
* 运行中
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof NodeStatus
|
|
66
|
+
*/
|
|
67
|
+
RUNNING = "RUNNING",
|
|
68
|
+
/**
|
|
69
|
+
* 最近一次执行失败
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof NodeStatus
|
|
73
|
+
*/
|
|
74
|
+
FAILED = "FAILED",
|
|
75
|
+
/**
|
|
76
|
+
* 最近一次执行成功
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof NodeStatus
|
|
80
|
+
*/
|
|
81
|
+
SUCCESS = "SUCCESS",
|
|
82
|
+
/**
|
|
83
|
+
* 线上运行
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof NodeStatus
|
|
87
|
+
*/
|
|
88
|
+
RUNNABLE = "RUNNABLE",
|
|
89
|
+
/**
|
|
90
|
+
* 已激活
|
|
91
|
+
*/
|
|
92
|
+
ACTIVE = "ACTIVE",
|
|
93
|
+
/**
|
|
94
|
+
* 已停用
|
|
95
|
+
*/
|
|
96
|
+
DEACTIVATED = "DEACTIVATED",
|
|
97
|
+
/**
|
|
98
|
+
* 警告
|
|
99
|
+
*/
|
|
100
|
+
WARNING = "WARNING"
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* 节点协议类型
|
|
104
|
+
*/
|
|
105
|
+
export declare enum NodeProtocol {
|
|
106
|
+
AI_LANGUAGE_MODEL = "AI_LANGUAGE_MODEL",
|
|
107
|
+
AI_VECTOR_STORE = "AI_VECTORSTORE",
|
|
108
|
+
AI_MEMORY = "AI_MEMORY",
|
|
109
|
+
AI_DOCUMENT = "AI_DOCUMENT",
|
|
110
|
+
AI_TEXT_SPLITTER = "AI_TEXTSPLITTER",
|
|
111
|
+
AI_EMBEDDING = "AI_EMBEDDING",
|
|
112
|
+
AI_TOOL = "AI_TOOL",
|
|
113
|
+
MCP = "MCP",
|
|
114
|
+
BUILTIN_MCP = "BUILTIN_MCP",
|
|
115
|
+
MCP_SERVER = "MCP_SERVER"
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* 节点配置面板动态表单字段类型
|
|
119
|
+
*/
|
|
120
|
+
export declare enum DynamicFormFields {
|
|
121
|
+
HIDDEN = "HIDDEN",
|
|
122
|
+
LABEL = "LABEL",
|
|
123
|
+
TEXT = "TEXT",
|
|
124
|
+
TEXTAREA = "TEXTAREA",
|
|
125
|
+
DATE = "DATE",
|
|
126
|
+
TIME = "TIME",
|
|
127
|
+
DATETIME = "DATETIME",
|
|
128
|
+
SELECT = "SELECT",
|
|
129
|
+
API_SELECT = "API_SELECT",
|
|
130
|
+
FIXED_OBJ = "FIXED_OBJ",
|
|
131
|
+
JSON = "JSON",
|
|
132
|
+
EXTEND_OBJ = "EXTEND_OBJ",
|
|
133
|
+
PASSWORD = "PASSWORD",
|
|
134
|
+
MultiRowAIExtractConfig = "MULTI_ROW_EXTRACT",
|
|
135
|
+
MULTI_SELECT_LIST = "MULTI_SELECT_LIST",
|
|
136
|
+
SYNC_HOUR_MINUTE = "SYNC_HOUR_MINUTE",
|
|
137
|
+
AUTH_TOKEN = "AUTH_TOKEN",
|
|
138
|
+
SECRET_KEY = "SECRET_KEY",
|
|
139
|
+
SELECT_CLIENT = "SELECT_CLIENT"
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Guard 校验规则类型
|
|
143
|
+
*/
|
|
144
|
+
export declare enum GuardRuleType {
|
|
145
|
+
/**
|
|
146
|
+
* 必填校验
|
|
147
|
+
*/
|
|
148
|
+
REQUIRED = "required",
|
|
149
|
+
/**
|
|
150
|
+
* 数据类型校验
|
|
151
|
+
*/
|
|
152
|
+
TYPE = "type",
|
|
153
|
+
/**
|
|
154
|
+
* 枚举校验
|
|
155
|
+
*/
|
|
156
|
+
ENUM = "enum",
|
|
157
|
+
/**
|
|
158
|
+
* 数值范围校验
|
|
159
|
+
*/
|
|
160
|
+
RANGE = "range"
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Guard 失败处理方式
|
|
164
|
+
*/
|
|
165
|
+
export declare enum GuardSeverity {
|
|
166
|
+
/**
|
|
167
|
+
* Error - 终止流程
|
|
168
|
+
*/
|
|
169
|
+
ERROR = "Error",
|
|
170
|
+
/**
|
|
171
|
+
* Warning - 记录告警
|
|
172
|
+
*/
|
|
173
|
+
WARNING = "Warning"
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Guard 期望数据类型
|
|
177
|
+
*/
|
|
178
|
+
export declare enum GuardExpectedType {
|
|
179
|
+
/**
|
|
180
|
+
* 字符串
|
|
181
|
+
*/
|
|
182
|
+
STRING = "string",
|
|
183
|
+
/**
|
|
184
|
+
* 数字
|
|
185
|
+
*/
|
|
186
|
+
NUMBER = "number",
|
|
187
|
+
/**
|
|
188
|
+
* 布尔值
|
|
189
|
+
*/
|
|
190
|
+
BOOLEAN = "boolean",
|
|
191
|
+
/**
|
|
192
|
+
* 对象
|
|
193
|
+
*/
|
|
194
|
+
OBJECT = "object",
|
|
195
|
+
/**
|
|
196
|
+
* 数组
|
|
197
|
+
*/
|
|
198
|
+
ARRAY = "array"
|
|
199
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 工作流(Workflow)业务状态相关枚举
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 工作流操作状态
|
|
6
|
+
*/
|
|
7
|
+
export declare enum WorkflowOpStatus {
|
|
8
|
+
/** 未发布 */
|
|
9
|
+
UNPUBLISHED = "UNPUBLISHED",
|
|
10
|
+
/** 已上线 */
|
|
11
|
+
ONLINE = "ONLINE",
|
|
12
|
+
/** 已下线 */
|
|
13
|
+
OFFLINE = "OFFLINE",
|
|
14
|
+
/** 上线告警 */
|
|
15
|
+
ON_WARN = "ON_WARN",
|
|
16
|
+
/** 下线告警 */
|
|
17
|
+
OFF_WARN = "OFF_WARN",
|
|
18
|
+
/** 上线中 */
|
|
19
|
+
ONLINE_ING = "ONLINE_ING"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 条件节点比较操作符
|
|
23
|
+
*/
|
|
24
|
+
export declare enum ConditionCompare {
|
|
25
|
+
/**
|
|
26
|
+
* 等于
|
|
27
|
+
*/
|
|
28
|
+
eq = "eq",
|
|
29
|
+
/**
|
|
30
|
+
* 不等于
|
|
31
|
+
*/
|
|
32
|
+
ne = "ne",
|
|
33
|
+
/**
|
|
34
|
+
* 开头等于
|
|
35
|
+
*/
|
|
36
|
+
sw = "sw",
|
|
37
|
+
/**
|
|
38
|
+
* 开头不等于
|
|
39
|
+
*/
|
|
40
|
+
nsw = "nsw",
|
|
41
|
+
/**
|
|
42
|
+
* 结尾等于
|
|
43
|
+
*/
|
|
44
|
+
ew = "ew",
|
|
45
|
+
/**
|
|
46
|
+
* 结尾不等于
|
|
47
|
+
*/
|
|
48
|
+
ewn = "ewn",
|
|
49
|
+
/**
|
|
50
|
+
* 大于
|
|
51
|
+
*/
|
|
52
|
+
gt = "gt",
|
|
53
|
+
/**
|
|
54
|
+
* 大于或等于
|
|
55
|
+
*/
|
|
56
|
+
ge = "ge",
|
|
57
|
+
/**
|
|
58
|
+
* 小于
|
|
59
|
+
*/
|
|
60
|
+
lt = "lt",
|
|
61
|
+
/**
|
|
62
|
+
* 小于或等于
|
|
63
|
+
*/
|
|
64
|
+
le = "le",
|
|
65
|
+
/**
|
|
66
|
+
* 包含
|
|
67
|
+
*/
|
|
68
|
+
co = "co",
|
|
69
|
+
/**
|
|
70
|
+
* 不包含
|
|
71
|
+
*/
|
|
72
|
+
nco = "nco",
|
|
73
|
+
/**
|
|
74
|
+
* 在一个集合内
|
|
75
|
+
*/
|
|
76
|
+
in = "in",
|
|
77
|
+
/**
|
|
78
|
+
* 不在一个集合内
|
|
79
|
+
*/
|
|
80
|
+
nin = "nin",
|
|
81
|
+
/**
|
|
82
|
+
* 为空(null、undefined 或空字符串)
|
|
83
|
+
*/
|
|
84
|
+
is_null = "is_null",
|
|
85
|
+
/**
|
|
86
|
+
* 不为空
|
|
87
|
+
*/
|
|
88
|
+
is_not_null = "is_not_null"
|
|
89
|
+
}
|
|
90
|
+
export { CanvasLayoutSource, CanvasLayoutTarget, EngineMode, SaveStatus, } from './canvas';
|
|
@@ -15,8 +15,14 @@ export type NodeAddEvent = {
|
|
|
15
15
|
info: NodeAddInfo;
|
|
16
16
|
nodeType: NodeTypeItem;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
/** 简易事件发射器 */
|
|
19
|
+
interface SimpleEventEmitter<T> {
|
|
20
|
+
emit: (val: T) => void;
|
|
21
|
+
useSubscription: (callback: (val: T) => void) => void;
|
|
22
|
+
listeners: Set<(val: T) => void>;
|
|
23
|
+
}
|
|
24
|
+
export declare const nodeAddEventBus: SimpleEventEmitter<NodeAddEvent>;
|
|
19
25
|
export declare const canvasEventBus: {
|
|
20
|
-
nodeAdd:
|
|
26
|
+
nodeAdd: SimpleEventEmitter<NodeAddEvent>;
|
|
21
27
|
};
|
|
22
28
|
export default canvasEventBus;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CanvasLayoutResult
|
|
1
|
+
import { CanvasLayoutResult } from '../utils/layoutUtils';
|
|
2
|
+
import { CanvasLayoutTarget } from '../enums/workflow';
|
|
2
3
|
export declare const useCanvasLayout: (id?: string) => {
|
|
3
4
|
layout: (target?: CanvasLayoutTarget, shouldFitView?: boolean) => CanvasLayoutResult;
|
|
4
5
|
autoLayout: (shouldFitView?: boolean) => CanvasLayoutResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HandleDirection } from '../
|
|
1
|
+
import { HandleDirection } from '../enums/handle';
|
|
2
2
|
export declare function useHandleConnections(): {
|
|
3
3
|
getHandleConnections: (nodeId: string, handleId: string, handleType: HandleDirection) => import('@xyflow/react').Edge[];
|
|
4
4
|
handleStatus: (nodeId: string, handleId: string) => "default" | "connected";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ActionItem } from '../Panels/ModernNodeSelectorPanel/types';
|
|
2
|
+
export interface NodeAddInfo {
|
|
3
|
+
sourceNodeId?: string;
|
|
4
|
+
sourceHandle?: string;
|
|
5
|
+
targetNodeId?: string;
|
|
6
|
+
targetHandle?: string;
|
|
7
|
+
position?: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
edge?: any;
|
|
12
|
+
sourceNode?: any;
|
|
13
|
+
targetNode?: any;
|
|
14
|
+
trigger?: boolean;
|
|
15
|
+
protocol?: string;
|
|
16
|
+
refresh?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function usePanel(): {
|
|
19
|
+
nodeSelectorVisible: boolean;
|
|
20
|
+
nodeAddInfo: import('../store/panelSlice').NodeAddInfo;
|
|
21
|
+
openNodeSelector: (info: NodeAddInfo) => void;
|
|
22
|
+
closeNodeSelector: () => void;
|
|
23
|
+
handleNodeSelect: (nodeType: ActionItem) => void;
|
|
24
|
+
handleManualAdd: (info: any, nodeType: ActionItem) => void;
|
|
25
|
+
setNodeAddCallback: (callback: (info: NodeAddInfo, nodeType: ActionItem) => void) => void;
|
|
26
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { VarDatum } from '../NodesConfig/components/VariableModal/tree-help';
|
|
2
|
+
export declare enum GlobalVariableType {
|
|
3
|
+
TEXT = "TEXT",
|
|
4
|
+
NUMBER = "NUMBER",
|
|
5
|
+
JSON = "JSON"
|
|
6
|
+
}
|
|
7
|
+
export interface GlobalVariableDto {
|
|
8
|
+
id: number | string;
|
|
9
|
+
name: string;
|
|
10
|
+
display_name?: string;
|
|
11
|
+
var_type: GlobalVariableType;
|
|
12
|
+
var_value: unknown;
|
|
13
|
+
description?: string;
|
|
14
|
+
allow_flow_update?: 0 | 1;
|
|
15
|
+
create_time?: string;
|
|
16
|
+
update_time?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface EnhancedGlobalVariable extends GlobalVariableDto {
|
|
19
|
+
mappedType: 'STRING' | 'NUMBER' | 'OBJECT';
|
|
20
|
+
}
|
|
21
|
+
export interface EnhancedVarDatum extends VarDatum {
|
|
22
|
+
nodeIcon?: string;
|
|
23
|
+
isValid: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface UseVariablesOptions {
|
|
26
|
+
nodeId: string;
|
|
27
|
+
flowId: string;
|
|
28
|
+
enabled?: boolean;
|
|
29
|
+
includeGlobalVariables?: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface UseVariablesReturn {
|
|
32
|
+
globalVariables: EnhancedGlobalVariable[];
|
|
33
|
+
nodeVariables: EnhancedVarDatum[];
|
|
34
|
+
isLoading: boolean;
|
|
35
|
+
refresh: () => void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 加载 classic 变量面板需要展示的全局变量和节点变量。
|
|
39
|
+
*
|
|
40
|
+
* 处理逻辑:
|
|
41
|
+
* - `enabled` 为 false 或 `flowId` 为空:不请求后端,保持当前状态。
|
|
42
|
+
* - 开启全局变量:同时请求全局变量接口;关闭时使用空列表兜底。
|
|
43
|
+
* - 节点变量:后端变量树里的 `node_id` 使用旧版变量 token 语义,节点引用固定
|
|
44
|
+
* 带 `N` 前缀;匹配 React Flow 节点时需要先去掉这个前缀。
|
|
45
|
+
* - 匹配到节点:补充节点图标,并标记变量有效。
|
|
46
|
+
* - 未匹配到节点:保留变量数据但标记无效,避免错误绑定到其他节点。
|
|
47
|
+
*
|
|
48
|
+
* @param options 变量加载参数,包含当前节点 ID、流程 ID 和开关项。
|
|
49
|
+
* @returns 变量列表、加载状态和手动刷新函数。
|
|
50
|
+
*/
|
|
51
|
+
export declare const useVariables: (options: UseVariablesOptions) => UseVariablesReturn;
|
|
52
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Connection, Edge, Node, OnConnect, OnEdgesChange, OnNodesChange } from '@xyflow/react';
|
|
2
2
|
import { EdgeData } from '../types/Edge';
|
|
3
3
|
import { NodeData } from '../types/Node';
|
|
4
|
-
import {
|
|
4
|
+
import { FlowStatus } from '../NodesConfig/define/flow';
|
|
5
5
|
export interface UseWorkflowOptions {
|
|
6
6
|
initialNodes?: Node<NodeData>[];
|
|
7
7
|
initialEdges?: Edge<EdgeData>[];
|
|
@@ -9,7 +9,7 @@ export interface UseWorkflowOptions {
|
|
|
9
9
|
export declare function useWorkflow(id?: string): {
|
|
10
10
|
nodes: Node<NodeData>[];
|
|
11
11
|
edges: Edge<EdgeData>[];
|
|
12
|
-
op_status:
|
|
12
|
+
op_status: FlowStatus;
|
|
13
13
|
selectedNodes: Node<NodeData>[];
|
|
14
14
|
selectedEdges: Edge<EdgeData>[];
|
|
15
15
|
currentNodeConfigVisibleId: string;
|
|
@@ -25,7 +25,7 @@ export declare function useWorkflow(id?: string): {
|
|
|
25
25
|
setEdges: (newEdges: Edge[]) => void;
|
|
26
26
|
updateNode: (nodeId: string, nodeData: Partial<NodeData>) => void;
|
|
27
27
|
refreshFlow: () => void;
|
|
28
|
-
setFlowOpStatusAction: (opStatus:
|
|
28
|
+
setFlowOpStatusAction: (opStatus: FlowStatus) => void;
|
|
29
29
|
workflowId: string;
|
|
30
30
|
setNodeConfigVisible: (nodeId: string | null) => void;
|
|
31
31
|
isLocked: boolean;
|
|
@@ -3,6 +3,7 @@ import { default as defaultCanvasEngineConfig } from './config/defaultCanvasEngi
|
|
|
3
3
|
import { CanvasEngineConfig, HistoryNavigator, HttpClient } from './types/engine';
|
|
4
4
|
import { mergeConfig } from './utils/mergeConfig';
|
|
5
5
|
import { LocaleType } from '../../../locales';
|
|
6
|
+
import { EngineMode } from './enums/workflow';
|
|
6
7
|
/**
|
|
7
8
|
* DigitalseeWorkFlow 组件对外暴露的属性定义
|
|
8
9
|
*
|
|
@@ -81,6 +82,13 @@ export interface DigitalseeWorkFlowProps {
|
|
|
81
82
|
* @description 用于处理页面导航,可传入 React Router 的 history 对象
|
|
82
83
|
*/
|
|
83
84
|
history?: HistoryNavigator;
|
|
85
|
+
/**
|
|
86
|
+
* 引擎模式
|
|
87
|
+
*
|
|
88
|
+
* @description 'classic' 使用 ACM 后端,'next' 使用 DIP 后端 + DynamicForm
|
|
89
|
+
* @default 'classic'
|
|
90
|
+
*/
|
|
91
|
+
engineMode?: EngineMode;
|
|
84
92
|
}
|
|
85
93
|
/**
|
|
86
94
|
* DigitalseeWorkFlow 工作流画布组件
|
|
@@ -90,9 +98,10 @@ export interface DigitalseeWorkFlowProps {
|
|
|
90
98
|
declare const DigitalseeWorkFlow: React.FC<DigitalseeWorkFlowProps>;
|
|
91
99
|
export { DigitalseeWorkFlow };
|
|
92
100
|
export type { WorkflowHttpClient } from './api';
|
|
93
|
-
export type { CanvasEngineConfig, HistoryNavigator, HttpClient } from './types/engine';
|
|
101
|
+
export type { CanvasEngineConfig, HistoryNavigator, HttpClient, } from './types/engine';
|
|
102
|
+
export { EngineMode } from './enums/workflow';
|
|
94
103
|
export { defaultCanvasEngineConfig, mergeConfig };
|
|
95
|
-
export type { LocaleType as WorkflowLocale, TranslateFn as WorkflowTranslateFn } from '../../../locales';
|
|
104
|
+
export type { LocaleType as WorkflowLocale, TranslateFn as WorkflowTranslateFn, } from '../../../locales';
|
|
96
105
|
export { createTranslator } from '../../../locales';
|
|
97
106
|
export { configureWorkflow, getGlobalWorkflowConfig, resetGlobalWorkflowConfig, } from './config/globalConfig';
|
|
98
107
|
export * from './config/themeConfig';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
+
export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
3
|
+
workflow: import('./workflowSlice').WorkflowState;
|
|
4
|
+
panel: import('./panelSlice').PanelState;
|
|
5
|
+
}, import('@reduxjs/toolkit').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('@reduxjs/toolkit').StoreEnhancer<{
|
|
6
|
+
dispatch: import('@reduxjs/toolkit').ThunkDispatch<{
|
|
7
|
+
workflow: import('./workflowSlice').WorkflowState;
|
|
8
|
+
panel: import('./panelSlice').PanelState;
|
|
9
|
+
}, undefined, import('@reduxjs/toolkit').UnknownAction>;
|
|
10
|
+
}>, import('@reduxjs/toolkit').StoreEnhancer]>>;
|
|
11
|
+
export type RootState = ReturnType<typeof store.getState>;
|
|
12
|
+
export type AppDispatch = typeof store.dispatch;
|
|
13
|
+
export declare const useAppDispatch: () => import('@reduxjs/toolkit').ThunkDispatch<{
|
|
14
|
+
workflow: import('./workflowSlice').WorkflowState;
|
|
15
|
+
panel: import('./panelSlice').PanelState;
|
|
16
|
+
}, undefined, import('@reduxjs/toolkit').UnknownAction> & import('@reduxjs/toolkit').Dispatch<import('@reduxjs/toolkit').UnknownAction>;
|
|
17
|
+
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { NodeTypeItem } from '../Panels/ModernNodeSelectorPanel/types';
|
|
3
|
-
interface NodeAddInfo {
|
|
2
|
+
import { ActionItem, NodeTypeItem } from '../Panels/ModernNodeSelectorPanel/types';
|
|
3
|
+
export interface NodeAddInfo {
|
|
4
4
|
sourceNodeId: string;
|
|
5
5
|
sourceHandle: string;
|
|
6
6
|
targetNodeId?: string;
|
|
@@ -12,8 +12,8 @@ interface NodeAddInfo {
|
|
|
12
12
|
trigger?: boolean;
|
|
13
13
|
protocol?: string;
|
|
14
14
|
}
|
|
15
|
-
type NodeAddCallback = ((info: NodeAddInfo, nodeType:
|
|
16
|
-
interface PanelState {
|
|
15
|
+
type NodeAddCallback = ((info: NodeAddInfo, nodeType: ActionItem) => void) | null;
|
|
16
|
+
export interface PanelState {
|
|
17
17
|
nodeSelectorVisible: boolean;
|
|
18
18
|
nodeAddInfo: NodeAddInfo | null;
|
|
19
19
|
nodeAddCallback: NodeAddCallback;
|
|
@@ -84,6 +84,6 @@ export declare const panelSlice: import('@reduxjs/toolkit').Slice<PanelState, {
|
|
|
84
84
|
nodeAddCallback: NodeAddCallback;
|
|
85
85
|
}, action: PayloadAction<NodeTypeItem>) => void;
|
|
86
86
|
}, "panel", "panel", import('@reduxjs/toolkit').SliceSelectors<PanelState>>;
|
|
87
|
-
export declare const openNodeSelector: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<NodeAddInfo, "panel/openNodeSelector">, closeNodeSelector: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"panel/closeNodeSelector">, setNodeAddCallback: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<(info: NodeAddInfo, nodeType:
|
|
87
|
+
export declare const openNodeSelector: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<NodeAddInfo, "panel/openNodeSelector">, closeNodeSelector: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"panel/closeNodeSelector">, setNodeAddCallback: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<(info: NodeAddInfo, nodeType: ActionItem) => void, "panel/setNodeAddCallback">, executeNodeAddCallback: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<NodeTypeItem, "panel/executeNodeAddCallback">;
|
|
88
88
|
declare const _default: import('@reduxjs/toolkit').Reducer<PanelState>;
|
|
89
89
|
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { FlowStatus } from '../NodesConfig/define/flow';
|
|
2
|
+
import { EdgeData } from '../types/Edge';
|
|
3
|
+
import { NodeData, NodeType } from '../types/Node';
|
|
4
|
+
import { Connection, Edge, EdgeChange, Node, NodeChange } from '@xyflow/react';
|
|
5
|
+
export interface ExecutionControlState {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
timeout_value: number;
|
|
8
|
+
timeout_unit: 'SECONDS' | 'MINUTES' | 'HOURS';
|
|
9
|
+
max_node_executions: number;
|
|
10
|
+
webhook_url?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface WorkflowState {
|
|
13
|
+
nodes: Node<NodeData>[];
|
|
14
|
+
edges: Edge<EdgeData>[];
|
|
15
|
+
selectedNodes: Node<NodeData>[];
|
|
16
|
+
selectedEdges: Edge<EdgeData>[];
|
|
17
|
+
workflowId?: string;
|
|
18
|
+
workflowName: string;
|
|
19
|
+
op_status?: FlowStatus;
|
|
20
|
+
refreshWorkFlowNum: number;
|
|
21
|
+
autoSaveWatchNum: number;
|
|
22
|
+
currentNodeConfigVisibleId: string | null;
|
|
23
|
+
isLocked: boolean;
|
|
24
|
+
executionControl: ExecutionControlState | null;
|
|
25
|
+
}
|
|
26
|
+
export declare const setWorkflowId: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string, "workflow/setWorkflowId">, setWorkflowName: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string, "workflow/setWorkflowName">, applyNodesChanges: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<NodeChange[], "workflow/applyNodesChanges">, applyEdgesChanges: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<EdgeChange[], "workflow/applyEdgesChanges">, addConnection: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Connection, "workflow/addConnection">, addNode: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
27
|
+
type: NodeType;
|
|
28
|
+
position: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
};
|
|
32
|
+
data: NodeData;
|
|
33
|
+
}, "workflow/addNode">, addNodes: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Node<NodeData>[], "workflow/addNodes">, addEdges: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Edge<EdgeData>[], "workflow/addEdges">, removeNodes: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string[], "workflow/removeNodes">, removeEdges: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string[], "workflow/removeEdges">, setSelection: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
34
|
+
nodes: Node<NodeData>[];
|
|
35
|
+
edges: Edge<EdgeData>[];
|
|
36
|
+
}, "workflow/setSelection">, updateEdge: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
37
|
+
oldEdge: Edge<EdgeData>;
|
|
38
|
+
newConnection: Connection;
|
|
39
|
+
}, "workflow/updateEdge">, setNodes: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Node<NodeData>[], "workflow/setNodes">, setEdges: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Edge<EdgeData>[], "workflow/setEdges">, updateNode: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
40
|
+
id: string;
|
|
41
|
+
data: Partial<NodeData>;
|
|
42
|
+
}, "workflow/updateNode">, setFlowOpStatus: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<FlowStatus, "workflow/setFlowOpStatus">, refreshFlow: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"workflow/refreshFlow">, setCurrentNodeConfigVisibleId: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string, "workflow/setCurrentNodeConfigVisibleId">, setLocked: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<boolean, "workflow/setLocked">, setExecutionControl: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ExecutionControlState, "workflow/setExecutionControl">, resetFlow: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"workflow/resetFlow">, executeAutoSave: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"workflow/executeAutoSave">;
|
|
43
|
+
declare const _default: import('@reduxjs/toolkit').Reducer<WorkflowState>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,36 +1,10 @@
|
|
|
1
1
|
import { Position } from '@xyflow/react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
TARGET = "target"
|
|
5
|
-
}
|
|
6
|
-
export declare enum HandleType {
|
|
7
|
-
SOURCE = "source",
|
|
8
|
-
TARGET = "target"
|
|
9
|
-
}
|
|
10
|
-
export declare enum HandleConnectionType {
|
|
11
|
-
INPUT = "input",
|
|
12
|
-
OUTPUT = "output",
|
|
13
|
-
CHAT_MODEL = "chat_model",
|
|
14
|
-
DONE = "done",
|
|
15
|
-
LOOP = "loop",
|
|
16
|
-
FALSE = "false",
|
|
17
|
-
TRUE = "true",
|
|
18
|
-
MEMORY = "memory",
|
|
19
|
-
TOOLS = "tools",
|
|
20
|
-
BUILTIN_MCP = "builtin_mcp"
|
|
21
|
-
}
|
|
22
|
-
export type HandleDirection = 'input' | 'output';
|
|
23
|
-
export declare enum HandleStatus {
|
|
24
|
-
DEFAULT = "default",
|
|
25
|
-
VALID = "valid",
|
|
26
|
-
INVALID = "invalid",
|
|
27
|
-
CONNECTING = "connecting",
|
|
28
|
-
FULL = "full"
|
|
29
|
-
}
|
|
2
|
+
import { HandleType, HandleStatus } from '../enums/handle';
|
|
3
|
+
export { HandleType, HandleConnectionType, HandleDirection, HandleStatus, } from '../enums/handle';
|
|
30
4
|
export interface HandleData {
|
|
31
5
|
id: string;
|
|
32
6
|
label?: string;
|
|
33
|
-
type:
|
|
7
|
+
type: HandleType;
|
|
34
8
|
position: Position;
|
|
35
9
|
isMain?: boolean;
|
|
36
10
|
maxConnections?: number;
|