@digitalsee-ai/rcs 1.1.8 → 2.0.0-beta10
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/README.md +6 -38
- package/README.npm.md +37 -0
- package/dist/components/digitalsee/JsonRenderer/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Canvas/FastOperationButtons.d.ts +5 -2
- package/dist/components/digitalsee/workflow/Canvas/FullscreenLoading.d.ts +10 -2
- package/dist/components/digitalsee/workflow/Canvas/MiniMap.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Canvas/NodePlaceholder.d.ts +12 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasHeader.d.ts +3 -6
- package/dist/components/digitalsee/workflow/Canvas/actionItemToNodeData.d.ts +1 -6
- package/dist/components/digitalsee/workflow/Canvas/constants.d.ts +25 -26
- package/dist/components/digitalsee/workflow/Canvas/hooks/{classicNodeAddConnection.d.ts → nodePackageAddConnection.d.ts} +3 -3
- package/dist/components/digitalsee/workflow/Canvas/hooks/useCanvasApi.d.ts +4 -2
- package/dist/components/digitalsee/workflow/Canvas/hooks/useDataLoading.d.ts +42 -5
- package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeAddCallback.d.ts +2 -3
- package/dist/components/digitalsee/workflow/Canvas/hooks/useWorkflowCanvasState.d.ts +22 -4
- package/dist/components/digitalsee/workflow/Canvas/types.d.ts +18 -6
- package/dist/components/digitalsee/workflow/Edges/BaseEdge.d.ts +2 -0
- package/dist/components/digitalsee/workflow/Edges/EdgeFactory.d.ts +3 -8
- package/dist/components/digitalsee/workflow/Edges/edgeLayout.d.ts +97 -0
- package/dist/components/digitalsee/workflow/Handles/CustomHandle.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Handles/customHandleConnectable.d.ts +28 -1
- package/dist/components/digitalsee/workflow/Nodes/DeclaredNode.d.ts +37 -0
- package/dist/components/digitalsee/workflow/Nodes/DynamicNode.d.ts +24 -0
- package/dist/components/digitalsee/workflow/Nodes/NodeFactory.d.ts +42 -4
- package/dist/components/digitalsee/workflow/Nodes/SuperBaseNode.d.ts +2 -1
- package/dist/components/digitalsee/workflow/Nodes/classicPortLayout.d.ts +51 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NodeStatusBadge.d.ts +11 -0
- package/dist/components/digitalsee/workflow/Nodes/{classicNodePackagePortLayout.d.ts → nodePackagePortLayout.d.ts} +4 -4
- package/dist/components/digitalsee/workflow/Nodes/nodeTypeRegistry.d.ts +131 -0
- package/dist/components/digitalsee/workflow/Nodes/useNodePackagePorts.d.ts +35 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NodePackageConfig/fieldSchemaAdapter.d.ts +14 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/help.d.ts +5 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextField/index.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/index.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NodeTest.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NodeTest.helpers.d.ts +11 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/tree-help.d.ts +5 -12
- package/dist/components/digitalsee/workflow/NodesConfig/context.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/submitPayload.d.ts +10 -17
- package/dist/components/digitalsee/workflow/NodesConfig/useClearVariableTargetOnFormMouseDown.d.ts +15 -0
- package/dist/components/digitalsee/workflow/NodesConfig/useVariableActiveTarget.d.ts +13 -0
- package/dist/components/digitalsee/workflow/Panels/CanvasConfigDebugger.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryItem.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryTabs.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeCard.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeItem.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/PanelHeader.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useConnectableNodeSelector.d.ts +5 -8
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/types.d.ts +10 -4
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/connectableDataSource.d.ts +6 -10
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/components/NodeListItem.d.ts +1 -1
- package/dist/components/digitalsee/workflow/api/dip.types.d.ts +30 -1
- package/dist/components/digitalsee/workflow/api/index.d.ts +3 -22
- package/dist/components/digitalsee/workflow/builtin/controls/ConfigSubflow/index.d.ts +2 -2
- package/dist/components/digitalsee/workflow/builtin/globalConfig/index.d.ts +5 -1
- package/dist/components/digitalsee/workflow/config/globalConfig.d.ts +1 -5
- package/dist/components/digitalsee/workflow/config/layerConfig.d.ts +14 -0
- package/dist/components/digitalsee/workflow/config/themeConfig.d.ts +20 -23
- package/dist/components/digitalsee/workflow/constants/nodePackageHandles.d.ts +10 -0
- package/dist/components/digitalsee/workflow/context/workflowTriggerContext.d.ts +22 -0
- package/dist/components/digitalsee/workflow/coverage/acceptanceManifest.d.ts +30 -0
- package/dist/components/digitalsee/workflow/coverage/runtimeCoverage.d.ts +34 -0
- package/dist/components/digitalsee/workflow/design-system/AiFlowNodeTestPanel.d.ts +24 -0
- package/dist/components/digitalsee/workflow/design-system/AiFlowVariableTree.d.ts +34 -0
- package/dist/components/digitalsee/workflow/design-system/index.d.ts +3 -0
- package/dist/components/digitalsee/workflow/design-system/tokens.d.ts +103 -0
- package/dist/components/digitalsee/workflow/enums/canvas.d.ts +0 -12
- package/dist/components/digitalsee/workflow/enums/edge.d.ts +4 -2
- package/dist/components/digitalsee/workflow/enums/node.d.ts +5 -6
- package/dist/components/digitalsee/workflow/enums/workflow.d.ts +1 -1
- package/dist/components/digitalsee/workflow/examples/global-config-example.d.ts +1 -1
- package/dist/components/digitalsee/workflow/hooks/state.hooks.d.ts +1 -7
- package/dist/components/digitalsee/workflow/hooks/use-flow-data-operation.d.ts +1 -1
- package/dist/components/digitalsee/workflow/hooks/useCanvasLayout.d.ts +1 -1
- package/dist/components/digitalsee/workflow/hooks/useCanvasMode.d.ts +8 -0
- package/dist/components/digitalsee/workflow/hooks/useCanvasNavigate.d.ts +10 -0
- package/dist/components/digitalsee/workflow/hooks/useHandleConnections.d.ts +11 -1
- package/dist/components/digitalsee/workflow/hooks/useVariables.d.ts +1 -0
- package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +1 -1
- package/dist/components/digitalsee/workflow/index.d.ts +39 -44
- package/dist/components/digitalsee/workflow/migration/umi.d.ts +1 -2
- package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +64 -0
- package/dist/components/digitalsee/workflow/store/workflowSlice.d.ts +5 -2
- package/dist/components/digitalsee/workflow/types/Node.d.ts +2 -0
- package/dist/components/digitalsee/workflow/types/NodeAddContext.d.ts +1 -1
- package/dist/components/digitalsee/workflow/types/Workflow.d.ts +1 -1
- package/dist/components/digitalsee/workflow/types/engine.d.ts +29 -12
- package/dist/components/digitalsee/workflow/types/flowVersion.d.ts +0 -30
- package/dist/components/digitalsee/workflow/utils/connectionCheck.d.ts +30 -0
- package/dist/components/digitalsee/workflow/utils/graphLoop.d.ts +12 -0
- package/dist/components/digitalsee/workflow/utils/layoutUtils.d.ts +2 -2
- package/dist/components/digitalsee/workflow/utils/mcpCanvas.d.ts +0 -40
- package/dist/components/digitalsee/workflow/utils/mode.d.ts +18 -0
- package/dist/components/digitalsee/workflow/utils/nodeAutoConnect.d.ts +24 -0
- package/dist/components/digitalsee/workflow/utils/nodeCommon.d.ts +5 -0
- package/dist/components/digitalsee/workflow/utils/nodeHandleLayout.d.ts +83 -0
- package/dist/components/digitalsee/workflow/utils/nodePackageConnection.d.ts +28 -0
- package/dist/components/digitalsee/workflow/utils/nodePackageGraphValidation.d.ts +29 -0
- package/dist/components/digitalsee/workflow/utils/nodePackageSchemaCache.d.ts +15 -0
- package/dist/components/digitalsee/workflow/utils/onNodeRemoveHook.d.ts +13 -0
- package/dist/components/digitalsee/workflow/utils/triggerNode.d.ts +13 -0
- package/dist/components/digitalsee/workflow/utils/workflowConnectionValidator.d.ts +1 -3
- package/dist/components/digitalsee/workflow/workflow.story-fixtures.d.ts +50 -0
- package/dist/components/dynamic-form/context/VariableSelectorContext.d.ts +17 -16
- package/dist/components/dynamic-form/index.d.ts +1 -4
- package/dist/index-B5ujKdXE.mjs +282 -0
- package/dist/{index-CRdKUD0G.mjs → index-BLqed5HY.mjs} +45697 -48347
- package/dist/locales/en-US/common.d.ts +29 -52
- package/dist/locales/en-US.d.ts +29 -52
- package/dist/locales/zh-CN/common.d.ts +29 -52
- package/dist/locales/zh-CN.d.ts +29 -52
- package/dist/locales/zh-TW/common.d.ts +29 -52
- package/dist/locales/zh-TW.d.ts +29 -52
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +36 -35
- package/dist/rcs.umd.js +131 -78
- package/package.json +38 -23
- package/dist/components/digitalsee/workflow/Canvas/FlowVersionManager.d.ts +0 -16
- package/dist/components/digitalsee/workflow/Canvas/NextConfigModalWrapper.d.ts +0 -9
- package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvas.d.ts +0 -4
- package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvasHeader.d.ts +0 -15
- package/dist/components/digitalsee/workflow/Canvas/hooks/createNodeAddHandlerNext.d.ts +0 -38
- package/dist/components/digitalsee/workflow/NextNodesConfigModal/index.d.ts +0 -13
- package/dist/components/digitalsee/workflow/Nodes/AISubNode.d.ts +0 -9
- package/dist/components/digitalsee/workflow/Nodes/ActionNode.d.ts +0 -13
- package/dist/components/digitalsee/workflow/Nodes/AgentNode.d.ts +0 -10
- package/dist/components/digitalsee/workflow/Nodes/BrowserNode.d.ts +0 -10
- package/dist/components/digitalsee/workflow/Nodes/BuiltinMCPNode.d.ts +0 -9
- package/dist/components/digitalsee/workflow/Nodes/ConditionNode.d.ts +0 -13
- package/dist/components/digitalsee/workflow/Nodes/CustomNode.d.ts +0 -15
- package/dist/components/digitalsee/workflow/Nodes/LoopNode.d.ts +0 -4
- package/dist/components/digitalsee/workflow/Nodes/MCPServerNode.d.ts +0 -9
- package/dist/components/digitalsee/workflow/Nodes/MCPToolNode.d.ts +0 -9
- package/dist/components/digitalsee/workflow/Nodes/NextNodeFactory.d.ts +0 -12
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextActionNode.d.ts +0 -9
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextBaseNode.d.ts +0 -16
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextConditionNode.d.ts +0 -10
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextLoopNode.d.ts +0 -10
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextSwitchNode.d.ts +0 -10
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextTriggerNode.d.ts +0 -9
- package/dist/components/digitalsee/workflow/Nodes/SelfLoopNode.d.ts +0 -4
- package/dist/components/digitalsee/workflow/Nodes/StartNode.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Nodes/SwitchNode.d.ts +0 -13
- package/dist/components/digitalsee/workflow/Nodes/TriggerNode.d.ts +0 -10
- package/dist/components/digitalsee/workflow/Nodes/components/NextNodeDescription.d.ts +0 -16
- package/dist/components/digitalsee/workflow/Nodes/components/NextNodeOperations.d.ts +0 -11
- package/dist/components/digitalsee/workflow/Nodes/useClassicNodePackagePorts.d.ts +0 -27
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CreateCredentialModal.d.ts +0 -13
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CredentialSelect.d.ts +0 -17
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/ModifyCredentialModal.d.ts +0 -17
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.d.ts +0 -10
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/index.d.ts +0 -17
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeSettings.d.ts +0 -6
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeTest.d.ts +0 -6
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/index.d.ts +0 -6
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.d.ts +0 -49
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/EntryTypeSelector.d.ts +0 -8
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeCardList.d.ts +0 -20
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNodeActionState.d.ts +0 -28
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNodeSelectorPresentation.d.ts +0 -25
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/filterEdgeInsertActions.d.ts +0 -62
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/queryParams.d.ts +0 -18
- package/dist/components/digitalsee/workflow/constants/nextHandles.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/classicNodePackageConnection.d.ts +0 -28
- package/dist/components/digitalsee/workflow/utils/classicNodePackageGraphValidation.d.ts +0 -29
- package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.d.ts +0 -14
- package/dist/components/digitalsee/workflow/utils/queuedNodeConfigOpen.d.ts +0 -12
- package/dist/components/dynamic-form/components/SelectWithExpression/index.d.ts +0 -25
- package/dist/components/dynamic-form/components/VariableInput/index.d.ts +0 -26
- package/dist/components/dynamic-form/components/VariableInput/utils.d.ts +0 -38
- package/dist/components/dynamic-form/components/VariableTextarea/index.d.ts +0 -10
- package/dist/index-CRdKUD0G.mjs.map +0 -1
- package/dist/index-rjDBrC08.mjs +0 -312
- package/dist/index-rjDBrC08.mjs.map +0 -1
- package/dist/postcss.config.js +0 -1
- package/dist/rcs.es.js.map +0 -1
- package/dist/rcs.umd.js.map +0 -1
- /package/dist/components/digitalsee/workflow/NodesConfig/{NextNodeConfig → NodePackageConfig}/WorkflowNodeSchemaFieldProvider.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/{NextNodeConfig → NodePackageConfig}/fields/WorkflowCodeField.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/{NextNodeConfig → NodePackageConfig}/fields/WorkflowProxyField.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/{NextNodeConfig → NodePackageConfig}/proxyField.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/{next-compatible.d.ts → nodePackage-compatible.d.ts} +0 -0
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
interface NextNodeTestProps {
|
|
2
|
-
nodeId: string;
|
|
3
|
-
beforeHook?: (isRunNodeTest?: boolean, ignore?: boolean, output?: string) => void;
|
|
4
|
-
}
|
|
5
|
-
declare const NextNodeTest: import('react').ForwardRefExoticComponent<NextNodeTestProps & import('react').RefAttributes<unknown>>;
|
|
6
|
-
export default NextNodeTest;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Edge, Node } from '@xyflow/react';
|
|
2
|
-
/** 变量树节点 */
|
|
3
|
-
export interface VariableTreeNode {
|
|
4
|
-
/** 唯一标识 */
|
|
5
|
-
key: string;
|
|
6
|
-
/** 显示文本 */
|
|
7
|
-
title: string;
|
|
8
|
-
/** 数据类型 */
|
|
9
|
-
type?: string;
|
|
10
|
-
/** 是否叶子节点(可选中插入) */
|
|
11
|
-
isLeaf: boolean;
|
|
12
|
-
/** 选中时生成的表达式 */
|
|
13
|
-
expression?: string;
|
|
14
|
-
/** 子节点 */
|
|
15
|
-
children?: VariableTreeNode[];
|
|
16
|
-
}
|
|
17
|
-
export interface AvailableSource {
|
|
18
|
-
node: Node;
|
|
19
|
-
outputMode: 'normal' | 'error';
|
|
20
|
-
}
|
|
21
|
-
/** 清除 Schema 缓存 */
|
|
22
|
-
export declare function clearSchemaCache(): void;
|
|
23
|
-
/** 获取当前节点的可确定上游节点(按拓扑路径顺序) */
|
|
24
|
-
export declare function getUpstreamNodes(currentNodeId: string, nodes: Node[], edges: Edge[]): Node[];
|
|
25
|
-
export declare function getUpstreamSources(currentNodeId: string, nodes: Node[], edges: Edge[]): AvailableSource[];
|
|
26
|
-
/**
|
|
27
|
-
* 将 Next 变量树节点转换为后端可解析的旧版变量表达式。
|
|
28
|
-
*
|
|
29
|
-
* 处理逻辑:
|
|
30
|
-
* - 节点 ID:先做首尾空白裁剪,再转换为旧版变量 token。
|
|
31
|
-
* - 旧版变量 token:固定使用 `N` 作为节点 ID 前缀;如果传入值已经以 `N`
|
|
32
|
-
* 开头,认为它已经是旧版 token,不重复补前缀。
|
|
33
|
-
* - 字段路径为空:返回 `{{N节点ID}}`,用于极端兜底场景。
|
|
34
|
-
* - 字段路径非空:返回 `{{N节点ID.字段路径}}`。
|
|
35
|
-
*
|
|
36
|
-
* @param nodeId React Flow 节点 ID。
|
|
37
|
-
* @param fieldPath 输出字段路径。
|
|
38
|
-
* @returns 旧版变量表达式。
|
|
39
|
-
*/
|
|
40
|
-
export declare function formatClassicVariableExpression(nodeId: string, fieldPath: string): string;
|
|
41
|
-
/**
|
|
42
|
-
* 构建当前节点可引用的变量树
|
|
43
|
-
*
|
|
44
|
-
* @param currentNodeId 当前正在配置的节点 ID
|
|
45
|
-
* @param nodes 画布中所有节点
|
|
46
|
-
* @param edges 画布中所有连线
|
|
47
|
-
* @returns 变量树根节点列表(每个上游节点一棵子树)
|
|
48
|
-
*/
|
|
49
|
-
export declare function buildVariableTree(currentNodeId: string, nodes: Node[], edges: Edge[]): Promise<VariableTreeNode[]>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type EntryMode = 'automation' | 'mcp' | null;
|
|
3
|
-
interface EntryTypeSelectorProps {
|
|
4
|
-
onSelect: (mode: Exclude<EntryMode, null>) => void;
|
|
5
|
-
}
|
|
6
|
-
/** @description 首节点入口类型选择。 */
|
|
7
|
-
declare const EntryTypeSelector: React.FC<EntryTypeSelectorProps>;
|
|
8
|
-
export default EntryTypeSelector;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NodeActionMeta } from '../hooks/useNodeActionState';
|
|
2
|
-
import { ActionItem, NodeTypeItem } from '../types';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
interface NodeCardListProps {
|
|
5
|
-
isSearching: boolean;
|
|
6
|
-
visibleNodes: NodeTypeItem[];
|
|
7
|
-
useConnectableDataSource: boolean;
|
|
8
|
-
expandedNodeIds: string[];
|
|
9
|
-
nodeActionsMap: Record<string, NodeActionMeta>;
|
|
10
|
-
searchText: string;
|
|
11
|
-
isInitialLoading: boolean;
|
|
12
|
-
isLoadingNodes: boolean;
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
onNodeToggle: (node: NodeTypeItem) => void;
|
|
15
|
-
onActionSelect: (node: NodeTypeItem, action: ActionItem) => void;
|
|
16
|
-
onLoadAllActions: (node: NodeTypeItem) => void;
|
|
17
|
-
}
|
|
18
|
-
/** @description 节点卡片集合及其加载、空态和分页尾部。 */
|
|
19
|
-
declare const NodeCardList: React.FC<NodeCardListProps>;
|
|
20
|
-
export default NodeCardList;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ActionItem, NodeTypeItem } from '../types';
|
|
2
|
-
export interface NodeActionMeta {
|
|
3
|
-
actions: ActionItem[];
|
|
4
|
-
loading: boolean;
|
|
5
|
-
source?: 'search-partial' | 'full';
|
|
6
|
-
}
|
|
7
|
-
interface UseNodeActionStateProps {
|
|
8
|
-
actionRequestContextKey: string;
|
|
9
|
-
contextMode?: string;
|
|
10
|
-
fetchNodeActions: (node: NodeTypeItem, options?: {
|
|
11
|
-
suppressLoading?: boolean;
|
|
12
|
-
}) => Promise<ActionItem[]>;
|
|
13
|
-
isMcpServerEntryMode: boolean;
|
|
14
|
-
visibleNodes: NodeTypeItem[];
|
|
15
|
-
searchText: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @description 管理连接器的展开状态、动作缓存,以及异步动作请求的竞态保护。
|
|
19
|
-
*/
|
|
20
|
-
export declare function useNodeActionState({ actionRequestContextKey, contextMode, fetchNodeActions, isMcpServerEntryMode, visibleNodes, searchText, }: UseNodeActionStateProps): {
|
|
21
|
-
expandedNodeIds: string[];
|
|
22
|
-
nodeActionsMap: Record<string, NodeActionMeta>;
|
|
23
|
-
handleNodeToggle: (node: NodeTypeItem) => Promise<void>;
|
|
24
|
-
handleLoadAllActions: (node: NodeTypeItem) => Promise<void>;
|
|
25
|
-
resetNodeActionState: () => void;
|
|
26
|
-
setExpandedNodeIds: import('react').Dispatch<import('react').SetStateAction<string[]>>;
|
|
27
|
-
};
|
|
28
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CategoryItem, LinkSearchParams, NodeTypeItem } from '../types';
|
|
2
|
-
import { NodeAddInfo } from '../../../types/NodeAddContext';
|
|
3
|
-
interface UseNodeSelectorPresentationProps {
|
|
4
|
-
effectiveNodeAddInfo?: NodeAddInfo | null;
|
|
5
|
-
isEntryTypeSelection: boolean;
|
|
6
|
-
activeCategoryId?: string;
|
|
7
|
-
currentCategory: CategoryItem | null;
|
|
8
|
-
categoryNodes: NodeTypeItem[];
|
|
9
|
-
searchResults: NodeTypeItem[];
|
|
10
|
-
searchText: string;
|
|
11
|
-
isRealTriggerMode: boolean;
|
|
12
|
-
workflowId?: string;
|
|
13
|
-
useConnectableDataSource?: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @description 汇总节点选择器的协议展示状态和列表/搜索派生参数。
|
|
17
|
-
*/
|
|
18
|
-
export declare function useNodeSelectorPresentation({ effectiveNodeAddInfo, isEntryTypeSelection, activeCategoryId, currentCategory, categoryNodes, searchResults, searchText, isRealTriggerMode, workflowId, useConnectableDataSource, }: UseNodeSelectorPresentationProps): {
|
|
19
|
-
panelTitle: string;
|
|
20
|
-
searchPlaceholder: string;
|
|
21
|
-
visibleNodes: NodeTypeItem[];
|
|
22
|
-
buildSearchParams: () => LinkSearchParams;
|
|
23
|
-
isMcpServerEntryMode: boolean;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { DipNodeSchema } from '../../../api/dip';
|
|
2
|
-
import { ActionItem, NodeFetchResult } from '../types';
|
|
3
|
-
import { PortConnectionEdge, PortConnectionNode } from '../../../utils/portConnectionValidator';
|
|
4
|
-
import { Edge, Node } from '@xyflow/react';
|
|
5
|
-
type SourceSchema = Pick<DipNodeSchema, 'outputs'>;
|
|
6
|
-
type TargetSchema = Pick<DipNodeSchema, 'inputs'>;
|
|
7
|
-
/** 边中插入候选动作执行双侧本地校验所需的稳定上下文。 */
|
|
8
|
-
export interface EdgeInsertActionFilterContext {
|
|
9
|
-
sourceNode: PortConnectionNode;
|
|
10
|
-
targetNode: PortConnectionNode;
|
|
11
|
-
sourceSchema: SourceSchema;
|
|
12
|
-
targetSchema: TargetSchema;
|
|
13
|
-
sourceHandle: string;
|
|
14
|
-
targetHandle: string;
|
|
15
|
-
edges?: readonly PortConnectionEdge[];
|
|
16
|
-
replacedEdgeId?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface EdgeInsertActionFilterStats {
|
|
19
|
-
contextReady: boolean;
|
|
20
|
-
serverActionCount: number;
|
|
21
|
-
compatibleActionCount: number;
|
|
22
|
-
filteredActionCount: number;
|
|
23
|
-
sourceCompatibleActionCount: number;
|
|
24
|
-
targetCompatibleActionCount: number;
|
|
25
|
-
missingActionSchemaCount: number;
|
|
26
|
-
}
|
|
27
|
-
export interface EdgeInsertActionFilterResult {
|
|
28
|
-
actions: ActionItem[];
|
|
29
|
-
stats: EdgeInsertActionFilterStats;
|
|
30
|
-
}
|
|
31
|
-
export interface EdgeInsertEndpointContext {
|
|
32
|
-
sourceId: string | number;
|
|
33
|
-
targetId: string | number;
|
|
34
|
-
sourceHandle: string;
|
|
35
|
-
targetHandle: string;
|
|
36
|
-
}
|
|
37
|
-
export type EdgeInsertActionFilterContextResolutionCode = 'READY' | 'SOURCE_NODE_NOT_FOUND' | 'TARGET_NODE_NOT_FOUND' | 'SOURCE_SCHEMA_NOT_READY' | 'TARGET_SCHEMA_NOT_READY';
|
|
38
|
-
export interface EdgeInsertActionFilterContextResolution {
|
|
39
|
-
code: EdgeInsertActionFilterContextResolutionCode;
|
|
40
|
-
context: EdgeInsertActionFilterContext | null;
|
|
41
|
-
}
|
|
42
|
-
export interface ResolveEdgeInsertActionFilterContextInput {
|
|
43
|
-
edgeContext: EdgeInsertEndpointContext;
|
|
44
|
-
nodes: readonly Node[];
|
|
45
|
-
edges: readonly Edge[];
|
|
46
|
-
replacedEdgeId?: string;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* 对边中插入动作执行 source→candidate 与 candidate→target 的本地求交。
|
|
50
|
-
*
|
|
51
|
-
* 后端明确禁止同时携带 source/target 端点,因此 target 侧使用动作响应中的完整
|
|
52
|
-
* NodeSchema 在前端二次过滤。
|
|
53
|
-
*/
|
|
54
|
-
export declare function filterEdgeInsertActions(actions: readonly ActionItem[], context: EdgeInsertActionFilterContext | null): EdgeInsertActionFilterResult;
|
|
55
|
-
/** 从当前 ReactFlow 快照解析候选过滤所需的原边两端。 */
|
|
56
|
-
export declare function resolveEdgeInsertActionFilterContext({ edgeContext, nodes, edges, replacedEdgeId, }: ResolveEdgeInsertActionFilterContextInput): EdgeInsertActionFilterContextResolution;
|
|
57
|
-
/** 对 connectable 连接器分页中的所有 matchedActions 执行双侧求交并汇总统计。 */
|
|
58
|
-
export declare function filterEdgeInsertNodePage(page: NodeFetchResult, context: EdgeInsertActionFilterContext | null): {
|
|
59
|
-
page: NodeFetchResult;
|
|
60
|
-
stats: EdgeInsertActionFilterStats;
|
|
61
|
-
};
|
|
62
|
-
export {};
|
package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/queryParams.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NodeProtocol } from '../../../types/NodeProtocol';
|
|
2
|
-
interface CanvasContextNode {
|
|
3
|
-
data?: {
|
|
4
|
-
__isMcpServerCanvas?: unknown;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
interface ResolveNodeSelectorProtocolParams {
|
|
8
|
-
protocol?: string;
|
|
9
|
-
sourceNode?: CanvasContextNode | null;
|
|
10
|
-
targetNode?: CanvasContextNode | null;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Resolve the protocol used by node-catalog requests without changing the
|
|
14
|
-
* selector's entry mode. MCP execution-node selectors have no entry protocol,
|
|
15
|
-
* so they fall back to the canvas marker carried by their source/target node.
|
|
16
|
-
*/
|
|
17
|
-
export declare const resolveNodeSelectorProtocol: ({ protocol, sourceNode, targetNode, }: ResolveNodeSelectorProtocolParams) => NodeProtocol.AI_LANGUAGE_MODEL | NodeProtocol.AI_MEMORY | NodeProtocol.MCP | NodeProtocol.MCP_SERVER;
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const NEXT_ERROR_HANDLE_ID = "error";
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { DipNodeSchema } from '../api/dip';
|
|
2
|
-
import { PortConnectionEdge, PortConnectionValidationCode } from './portConnectionValidator';
|
|
3
|
-
import { Node } from '@xyflow/react';
|
|
4
|
-
export type ClassicNodePackageConnectionCode = PortConnectionValidationCode | 'NOT_APPLICABLE' | 'SCHEMA_NOT_READY';
|
|
5
|
-
export interface ClassicNodePackageConnectionResult {
|
|
6
|
-
applicable: boolean;
|
|
7
|
-
valid: boolean;
|
|
8
|
-
code: ClassicNodePackageConnectionCode;
|
|
9
|
-
reason: string;
|
|
10
|
-
missingSchemaNodeIds?: string[];
|
|
11
|
-
}
|
|
12
|
-
export interface ValidateClassicNodePackageConnectionInput {
|
|
13
|
-
sourceNode?: Node | null;
|
|
14
|
-
targetNode?: Node | null;
|
|
15
|
-
sourceHandle?: string | null;
|
|
16
|
-
targetHandle?: string | null;
|
|
17
|
-
edges?: readonly PortConnectionEdge[];
|
|
18
|
-
}
|
|
19
|
-
/** 同步解析节点内联或已预加载的 CLASSIC nodepackage Schema。 */
|
|
20
|
-
export declare function resolveClassicNodePackageSchema(node?: Node | null): DipNodeSchema | null;
|
|
21
|
-
export declare function isClassicNodePackageNode(node?: Node | null): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* 校验两个 CLASSIC nodepackage 节点之间的端口连接。
|
|
24
|
-
*
|
|
25
|
-
* 混合 legacy/nodepackage 连接保留前端当前精确 handle 名称,并按后端虚拟端口契约
|
|
26
|
-
* 将 legacy 端口能力类型统一映射为 main。
|
|
27
|
-
*/
|
|
28
|
-
export declare function validateClassicNodePackageConnection({ sourceNode, targetNode, sourceHandle, targetHandle, edges, }: ValidateClassicNodePackageConnectionInput): ClassicNodePackageConnectionResult;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { PortConnectionValidationCode } from './portConnectionValidator';
|
|
2
|
-
import { Edge, Node } from '@xyflow/react';
|
|
3
|
-
export type ClassicNodePackageGraphIssueCode = PortConnectionValidationCode | 'REQUIRED_INPUT_MISSING' | 'SCHEMA_NOT_READY';
|
|
4
|
-
export interface ClassicNodePackageGraphIssue {
|
|
5
|
-
code: ClassicNodePackageGraphIssueCode;
|
|
6
|
-
reason: string;
|
|
7
|
-
blocking: boolean;
|
|
8
|
-
nodeId?: string;
|
|
9
|
-
portName?: string;
|
|
10
|
-
edgeId?: string;
|
|
11
|
-
sourceNodeId?: string;
|
|
12
|
-
targetNodeId?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ClassicNodePackageGraphValidationResult {
|
|
15
|
-
valid: boolean;
|
|
16
|
-
issues: ClassicNodePackageGraphIssue[];
|
|
17
|
-
blockingIssues: ClassicNodePackageGraphIssue[];
|
|
18
|
-
missingSchemaNodeIds: string[];
|
|
19
|
-
}
|
|
20
|
-
interface ValidateClassicNodePackageGraphInput {
|
|
21
|
-
nodes: readonly Node[];
|
|
22
|
-
edges: readonly Edge[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 保存前检查当前已知的 CLASSIC nodepackage 端口约束。
|
|
26
|
-
* Schema 尚未加载属于非阻塞 warning,最终交给 ACM 后端兜底;已知非法端口则阻止保存。
|
|
27
|
-
*/
|
|
28
|
-
export declare function validateClassicNodePackageGraph({ nodes, edges, }: ValidateClassicNodePackageGraphInput): ClassicNodePackageGraphValidationResult;
|
|
29
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DipNodeSchema } from '../api/dip';
|
|
2
|
-
export declare function clearNextNodeSchemaCache(): void;
|
|
3
|
-
export declare function setCachedNextNodeSchema(nodeKey: string, nodeVersion: number | undefined, schema: DipNodeSchema): void;
|
|
4
|
-
export declare function setCachedClassicNextNodeSchema(nodeKey: string, nodeVersion: number | undefined, schema: DipNodeSchema): void;
|
|
5
|
-
/**
|
|
6
|
-
* 同步读取已预加载的 CLASSIC nodepackage Schema,不触发网络请求。
|
|
7
|
-
*
|
|
8
|
-
* 手动拖线发生在 ReactFlow 的同步校验阶段,无法等待异步 Schema 请求;
|
|
9
|
-
* 因此画布加载/选择器转换阶段会先预热缓存,再由这里读取。缺失版本时与
|
|
10
|
-
* `getCachedClassicNextNodeSchema` 保持一致,按 ACM 版本 1 兜底。
|
|
11
|
-
*/
|
|
12
|
-
export declare function peekCachedClassicNextNodeSchema(nodeKey: string, nodeVersion?: number): DipNodeSchema | null;
|
|
13
|
-
export declare function getCachedClassicNextNodeSchema(nodeKey: string, nodeVersion?: number): Promise<DipNodeSchema | null>;
|
|
14
|
-
export declare function getCachedNextNodeSchema(nodeKey: string, nodeVersion?: number): Promise<DipNodeSchema | null>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 新增节点后「保存完成再打开配置弹窗」的排队状态。
|
|
3
|
-
*
|
|
4
|
-
* 历史实现挂在 window 上,保存成功时由 updateSaveStatus 消费。
|
|
5
|
-
* 若用户在保存完成前关闭弹窗,必须取消排队,否则会偶现再次自动打开。
|
|
6
|
-
*/
|
|
7
|
-
/** 排队:保存成功后打开指定节点配置 */
|
|
8
|
-
export declare function queueNodeConfigOpen(nodeId: string | null | undefined): void;
|
|
9
|
-
/** 取消排队(用户关闭配置弹窗时调用) */
|
|
10
|
-
export declare function cancelQueuedNodeConfigOpen(): void;
|
|
11
|
-
/** 消费排队并清空,返回待打开的节点 ID(无则空串) */
|
|
12
|
-
export declare function consumeQueuedNodeConfigOpen(): string;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { SelectProps as AntSelectProps } from 'antd/es/select';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
export type SelectValueMode = 'select' | 'expression';
|
|
4
|
-
export interface SelectWithExpressionProps extends Omit<AntSelectProps, 'value' | 'onChange'> {
|
|
5
|
-
/** 当前值 */
|
|
6
|
-
value?: string | string[] | number | number[];
|
|
7
|
-
/** 值变化回调 */
|
|
8
|
-
onChange?: (value: string | string[] | number | number[] | undefined) => void;
|
|
9
|
-
/** 是否允许表达式模式 */
|
|
10
|
-
allowExpression?: boolean;
|
|
11
|
-
/** 初始值模式 */
|
|
12
|
-
defaultValueMode?: SelectValueMode;
|
|
13
|
-
/** 当前值模式(受控) */
|
|
14
|
-
valueMode?: SelectValueMode;
|
|
15
|
-
/** 值模式变化回调 */
|
|
16
|
-
onValueModeChange?: (mode: SelectValueMode) => void;
|
|
17
|
-
/** 变量验证函数 */
|
|
18
|
-
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
19
|
-
/** 表达式模式的占位符 */
|
|
20
|
-
expressionPlaceholder?: string;
|
|
21
|
-
/** 隐藏模式切换器 */
|
|
22
|
-
hideModeSwitch?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare const SelectWithExpression: React.FC<SelectWithExpressionProps>;
|
|
25
|
-
export default SelectWithExpression;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface VariableInputProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
onChange?: (value: string) => void;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
readOnly?: boolean;
|
|
9
|
-
multiline?: boolean;
|
|
10
|
-
minRows?: number;
|
|
11
|
-
maxRows?: number;
|
|
12
|
-
className?: string;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
capturePattern?: RegExp;
|
|
15
|
-
onVariableClick?: (variable: string) => void;
|
|
16
|
-
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
17
|
-
renderVariableTag?: (variable: string, isValid: boolean) => React.ReactNode;
|
|
18
|
-
renderVariableTooltip?: (variable: string) => React.ReactNode;
|
|
19
|
-
showRemoveButton?: boolean;
|
|
20
|
-
/** 获得焦点时的回调 */
|
|
21
|
-
onFocus?: () => void;
|
|
22
|
-
/** 失去焦点时的回调 */
|
|
23
|
-
onBlur?: () => void;
|
|
24
|
-
}
|
|
25
|
-
export declare const VariableInput: React.FC<VariableInputProps>;
|
|
26
|
-
export { insertVariable } from './utils';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export type ParagraphElement = {
|
|
2
|
-
type: 'paragraph';
|
|
3
|
-
children: CustomText[];
|
|
4
|
-
};
|
|
5
|
-
export type VariableTagElement = {
|
|
6
|
-
type: 'variable-tag';
|
|
7
|
-
value: string;
|
|
8
|
-
children: CustomText[];
|
|
9
|
-
};
|
|
10
|
-
export type CustomElement = ParagraphElement | VariableTagElement;
|
|
11
|
-
export type CustomText = {
|
|
12
|
-
text: string;
|
|
13
|
-
};
|
|
14
|
-
export type CustomDescendant = CustomElement | CustomText;
|
|
15
|
-
export declare const DEFAULT_CAPTURE_PATTERN: RegExp;
|
|
16
|
-
/**
|
|
17
|
-
* 将字符串解析为 Slate 文档
|
|
18
|
-
* @param text 输入字符串
|
|
19
|
-
* @param pattern 变量捕获正则
|
|
20
|
-
* @returns Slate 文档结构
|
|
21
|
-
*/
|
|
22
|
-
export declare function parseInitValue(text: string, pattern?: RegExp): CustomElement[];
|
|
23
|
-
/**
|
|
24
|
-
* 将 Slate 文档序列化为字符串
|
|
25
|
-
* @param nodes Slate 文档节点
|
|
26
|
-
* @returns 字符串
|
|
27
|
-
*/
|
|
28
|
-
export declare function serializeToString(nodes: CustomElement[]): string;
|
|
29
|
-
/**
|
|
30
|
-
* 在 Slate 编辑器中插入变量标签
|
|
31
|
-
* @param editor Slate 编辑器实例
|
|
32
|
-
* @param variable 变量值(包含 {{}})
|
|
33
|
-
*/
|
|
34
|
-
export declare function insertVariable(editor: any, variable: string): void;
|
|
35
|
-
/**
|
|
36
|
-
* 检查元素是否为变量标签
|
|
37
|
-
*/
|
|
38
|
-
export declare function isVariableTagElement(element: any): element is VariableTagElement;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { VariableInputProps } from '../VariableInput';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
export type VariableTextareaProps = Omit<VariableInputProps, 'multiline'> & {
|
|
4
|
-
rows?: number;
|
|
5
|
-
autoSize?: boolean | {
|
|
6
|
-
minRows?: number;
|
|
7
|
-
maxRows?: number;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const VariableTextarea: React.FC<VariableTextareaProps>;
|