@digitalsee-ai/rcs 1.1.8 → 2.0.0-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/README.md +6 -38
  2. package/README.npm.md +37 -0
  3. package/dist/components/digitalsee/JsonRenderer/index.d.ts +1 -1
  4. package/dist/components/digitalsee/workflow/Canvas/FastOperationButtons.d.ts +5 -2
  5. package/dist/components/digitalsee/workflow/Canvas/FullscreenLoading.d.ts +10 -2
  6. package/dist/components/digitalsee/workflow/Canvas/MiniMap.d.ts +1 -1
  7. package/dist/components/digitalsee/workflow/Canvas/NodePlaceholder.d.ts +12 -0
  8. package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasHeader.d.ts +3 -6
  9. package/dist/components/digitalsee/workflow/Canvas/actionItemToNodeData.d.ts +1 -6
  10. package/dist/components/digitalsee/workflow/Canvas/constants.d.ts +6 -26
  11. package/dist/components/digitalsee/workflow/Canvas/hooks/{classicNodeAddConnection.d.ts → nodePackageAddConnection.d.ts} +3 -3
  12. package/dist/components/digitalsee/workflow/Canvas/hooks/useCanvasApi.d.ts +4 -2
  13. package/dist/components/digitalsee/workflow/Canvas/hooks/useDataLoading.d.ts +33 -4
  14. package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeAddCallback.d.ts +2 -3
  15. package/dist/components/digitalsee/workflow/Canvas/hooks/useWorkflowCanvasState.d.ts +22 -4
  16. package/dist/components/digitalsee/workflow/Canvas/types.d.ts +18 -6
  17. package/dist/components/digitalsee/workflow/Edges/BaseEdge.d.ts +2 -0
  18. package/dist/components/digitalsee/workflow/Edges/EdgeFactory.d.ts +3 -8
  19. package/dist/components/digitalsee/workflow/Edges/edgeLayout.d.ts +73 -0
  20. package/dist/components/digitalsee/workflow/Handles/CustomHandle.d.ts +1 -0
  21. package/dist/components/digitalsee/workflow/Handles/customHandleConnectable.d.ts +19 -0
  22. package/dist/components/digitalsee/workflow/Nodes/DeclaredNode.d.ts +33 -0
  23. package/dist/components/digitalsee/workflow/Nodes/DynamicNode.d.ts +24 -0
  24. package/dist/components/digitalsee/workflow/Nodes/NodeFactory.d.ts +42 -4
  25. package/dist/components/digitalsee/workflow/Nodes/SuperBaseNode.d.ts +2 -1
  26. package/dist/components/digitalsee/workflow/Nodes/classicPortLayout.d.ts +51 -0
  27. package/dist/components/digitalsee/workflow/Nodes/components/NodeStatusBadge.d.ts +11 -0
  28. package/dist/components/digitalsee/workflow/Nodes/{classicNodePackagePortLayout.d.ts → nodePackagePortLayout.d.ts} +4 -4
  29. package/dist/components/digitalsee/workflow/Nodes/nodeTypeRegistry.d.ts +131 -0
  30. package/dist/components/digitalsee/workflow/Nodes/useNodePackagePorts.d.ts +35 -0
  31. package/dist/components/digitalsee/workflow/NodesConfig/NodePackageConfig/fieldSchemaAdapter.d.ts +14 -0
  32. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/help.d.ts +5 -1
  33. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/index.d.ts +1 -0
  34. package/dist/components/digitalsee/workflow/NodesConfig/components/NodeTest.d.ts +2 -0
  35. package/dist/components/digitalsee/workflow/NodesConfig/components/NodeTest.helpers.d.ts +11 -0
  36. package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/tree-help.d.ts +5 -12
  37. package/dist/components/digitalsee/workflow/NodesConfig/submitPayload.d.ts +10 -17
  38. package/dist/components/digitalsee/workflow/Panels/CanvasConfigDebugger.d.ts +1 -1
  39. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryItem.d.ts +1 -1
  40. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryTabs.d.ts +1 -1
  41. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeCard.d.ts +1 -1
  42. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeItem.d.ts +1 -1
  43. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/PanelHeader.d.ts +1 -1
  44. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useConnectableNodeSelector.d.ts +2 -5
  45. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/types.d.ts +10 -4
  46. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/connectableDataSource.d.ts +6 -10
  47. package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/components/NodeListItem.d.ts +1 -1
  48. package/dist/components/digitalsee/workflow/api/dip.types.d.ts +30 -1
  49. package/dist/components/digitalsee/workflow/api/index.d.ts +3 -22
  50. package/dist/components/digitalsee/workflow/builtin/controls/ConfigSubflow/index.d.ts +2 -2
  51. package/dist/components/digitalsee/workflow/builtin/globalConfig/index.d.ts +5 -1
  52. package/dist/components/digitalsee/workflow/config/globalConfig.d.ts +1 -5
  53. package/dist/components/digitalsee/workflow/config/layerConfig.d.ts +14 -0
  54. package/dist/components/digitalsee/workflow/config/themeConfig.d.ts +19 -23
  55. package/dist/components/digitalsee/workflow/constants/nodePackageHandles.d.ts +10 -0
  56. package/dist/components/digitalsee/workflow/context/workflowTriggerContext.d.ts +22 -0
  57. package/dist/components/digitalsee/workflow/coverage/acceptanceManifest.d.ts +30 -0
  58. package/dist/components/digitalsee/workflow/coverage/runtimeCoverage.d.ts +34 -0
  59. package/dist/components/digitalsee/workflow/design-system/AiFlowNodeTestPanel.d.ts +24 -0
  60. package/dist/components/digitalsee/workflow/design-system/AiFlowVariableTree.d.ts +34 -0
  61. package/dist/components/digitalsee/workflow/design-system/index.d.ts +3 -0
  62. package/dist/components/digitalsee/workflow/design-system/tokens.d.ts +103 -0
  63. package/dist/components/digitalsee/workflow/enums/canvas.d.ts +0 -12
  64. package/dist/components/digitalsee/workflow/enums/edge.d.ts +4 -2
  65. package/dist/components/digitalsee/workflow/enums/node.d.ts +5 -6
  66. package/dist/components/digitalsee/workflow/enums/workflow.d.ts +1 -1
  67. package/dist/components/digitalsee/workflow/examples/global-config-example.d.ts +1 -1
  68. package/dist/components/digitalsee/workflow/hooks/state.hooks.d.ts +1 -7
  69. package/dist/components/digitalsee/workflow/hooks/use-flow-data-operation.d.ts +1 -1
  70. package/dist/components/digitalsee/workflow/hooks/useCanvasLayout.d.ts +1 -1
  71. package/dist/components/digitalsee/workflow/hooks/useCanvasMode.d.ts +8 -0
  72. package/dist/components/digitalsee/workflow/hooks/useHandleConnections.d.ts +9 -1
  73. package/dist/components/digitalsee/workflow/hooks/useVariables.d.ts +1 -0
  74. package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +1 -1
  75. package/dist/components/digitalsee/workflow/index.d.ts +18 -44
  76. package/dist/components/digitalsee/workflow/migration/umi.d.ts +1 -2
  77. package/dist/components/digitalsee/workflow/store/workflowSlice.d.ts +5 -2
  78. package/dist/components/digitalsee/workflow/types/Node.d.ts +2 -0
  79. package/dist/components/digitalsee/workflow/types/Workflow.d.ts +1 -1
  80. package/dist/components/digitalsee/workflow/types/engine.d.ts +21 -12
  81. package/dist/components/digitalsee/workflow/types/flowVersion.d.ts +0 -30
  82. package/dist/components/digitalsee/workflow/utils/connectionCheck.d.ts +30 -0
  83. package/dist/components/digitalsee/workflow/utils/layoutUtils.d.ts +2 -2
  84. package/dist/components/digitalsee/workflow/utils/mcpCanvas.d.ts +0 -40
  85. package/dist/components/digitalsee/workflow/utils/mode.d.ts +18 -0
  86. package/dist/components/digitalsee/workflow/utils/nodeAutoConnect.d.ts +24 -0
  87. package/dist/components/digitalsee/workflow/utils/nodeCommon.d.ts +5 -0
  88. package/dist/components/digitalsee/workflow/utils/nodeHandleLayout.d.ts +83 -0
  89. package/dist/components/digitalsee/workflow/utils/nodePackageConnection.d.ts +28 -0
  90. package/dist/components/digitalsee/workflow/utils/nodePackageGraphValidation.d.ts +29 -0
  91. package/dist/components/digitalsee/workflow/utils/nodePackageSchemaCache.d.ts +15 -0
  92. package/dist/components/digitalsee/workflow/utils/onNodeRemoveHook.d.ts +13 -0
  93. package/dist/components/digitalsee/workflow/utils/triggerNode.d.ts +13 -0
  94. package/dist/components/digitalsee/workflow/utils/workflowConnectionValidator.d.ts +1 -3
  95. package/dist/components/digitalsee/workflow/workflow.story-fixtures.d.ts +50 -0
  96. package/dist/components/dynamic-form/context/VariableSelectorContext.d.ts +17 -16
  97. package/dist/components/dynamic-form/index.d.ts +1 -1
  98. package/dist/index-CBoDAvhq.mjs +285 -0
  99. package/dist/{index-CRdKUD0G.mjs → index-zEq02rJh.mjs} +23582 -25697
  100. package/dist/locales/en-US/common.d.ts +29 -52
  101. package/dist/locales/en-US.d.ts +29 -52
  102. package/dist/locales/zh-CN/common.d.ts +29 -52
  103. package/dist/locales/zh-CN.d.ts +29 -52
  104. package/dist/locales/zh-TW/common.d.ts +29 -52
  105. package/dist/locales/zh-TW.d.ts +29 -52
  106. package/dist/rcs.css +1 -1
  107. package/dist/rcs.es.js +65 -61
  108. package/dist/rcs.umd.js +132 -72
  109. package/package.json +38 -23
  110. package/dist/components/digitalsee/workflow/Canvas/FlowVersionManager.d.ts +0 -16
  111. package/dist/components/digitalsee/workflow/Canvas/NextConfigModalWrapper.d.ts +0 -9
  112. package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvas.d.ts +0 -4
  113. package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvasHeader.d.ts +0 -15
  114. package/dist/components/digitalsee/workflow/Canvas/hooks/createNodeAddHandlerNext.d.ts +0 -38
  115. package/dist/components/digitalsee/workflow/NextNodesConfigModal/index.d.ts +0 -13
  116. package/dist/components/digitalsee/workflow/Nodes/AISubNode.d.ts +0 -9
  117. package/dist/components/digitalsee/workflow/Nodes/ActionNode.d.ts +0 -13
  118. package/dist/components/digitalsee/workflow/Nodes/AgentNode.d.ts +0 -10
  119. package/dist/components/digitalsee/workflow/Nodes/BrowserNode.d.ts +0 -10
  120. package/dist/components/digitalsee/workflow/Nodes/BuiltinMCPNode.d.ts +0 -9
  121. package/dist/components/digitalsee/workflow/Nodes/ConditionNode.d.ts +0 -13
  122. package/dist/components/digitalsee/workflow/Nodes/CustomNode.d.ts +0 -15
  123. package/dist/components/digitalsee/workflow/Nodes/LoopNode.d.ts +0 -4
  124. package/dist/components/digitalsee/workflow/Nodes/MCPServerNode.d.ts +0 -9
  125. package/dist/components/digitalsee/workflow/Nodes/MCPToolNode.d.ts +0 -9
  126. package/dist/components/digitalsee/workflow/Nodes/NextNodeFactory.d.ts +0 -12
  127. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextActionNode.d.ts +0 -9
  128. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextBaseNode.d.ts +0 -16
  129. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextConditionNode.d.ts +0 -10
  130. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextLoopNode.d.ts +0 -10
  131. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextSwitchNode.d.ts +0 -10
  132. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextTriggerNode.d.ts +0 -9
  133. package/dist/components/digitalsee/workflow/Nodes/SelfLoopNode.d.ts +0 -4
  134. package/dist/components/digitalsee/workflow/Nodes/StartNode.d.ts +0 -1
  135. package/dist/components/digitalsee/workflow/Nodes/SwitchNode.d.ts +0 -13
  136. package/dist/components/digitalsee/workflow/Nodes/TriggerNode.d.ts +0 -10
  137. package/dist/components/digitalsee/workflow/Nodes/components/NextNodeDescription.d.ts +0 -16
  138. package/dist/components/digitalsee/workflow/Nodes/components/NextNodeOperations.d.ts +0 -11
  139. package/dist/components/digitalsee/workflow/Nodes/useClassicNodePackagePorts.d.ts +0 -27
  140. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CreateCredentialModal.d.ts +0 -13
  141. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CredentialSelect.d.ts +0 -17
  142. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/ModifyCredentialModal.d.ts +0 -17
  143. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.d.ts +0 -10
  144. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/index.d.ts +0 -17
  145. package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeSettings.d.ts +0 -6
  146. package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeTest.d.ts +0 -6
  147. package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/index.d.ts +0 -6
  148. package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.d.ts +0 -49
  149. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/EntryTypeSelector.d.ts +0 -8
  150. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeCardList.d.ts +0 -20
  151. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNodeActionState.d.ts +0 -28
  152. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNodeSelectorPresentation.d.ts +0 -25
  153. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/queryParams.d.ts +0 -18
  154. package/dist/components/digitalsee/workflow/constants/nextHandles.d.ts +0 -1
  155. package/dist/components/digitalsee/workflow/utils/classicNodePackageConnection.d.ts +0 -28
  156. package/dist/components/digitalsee/workflow/utils/classicNodePackageGraphValidation.d.ts +0 -29
  157. package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.d.ts +0 -14
  158. package/dist/components/digitalsee/workflow/utils/queuedNodeConfigOpen.d.ts +0 -12
  159. package/dist/index-CRdKUD0G.mjs.map +0 -1
  160. package/dist/index-rjDBrC08.mjs +0 -312
  161. package/dist/index-rjDBrC08.mjs.map +0 -1
  162. package/dist/rcs.es.js.map +0 -1
  163. package/dist/rcs.umd.js.map +0 -1
  164. /package/dist/components/digitalsee/workflow/NodesConfig/{NextNodeConfig → NodePackageConfig}/WorkflowNodeSchemaFieldProvider.d.ts +0 -0
  165. /package/dist/components/digitalsee/workflow/NodesConfig/{NextNodeConfig → NodePackageConfig}/fields/WorkflowCodeField.d.ts +0 -0
  166. /package/dist/components/digitalsee/workflow/NodesConfig/{NextNodeConfig → NodePackageConfig}/fields/WorkflowProxyField.d.ts +0 -0
  167. /package/dist/components/digitalsee/workflow/NodesConfig/{NextNodeConfig → NodePackageConfig}/proxyField.d.ts +0 -0
  168. /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,6 +0,0 @@
1
- interface NextVariableModalProps {
2
- nodeId: string;
3
- open: boolean;
4
- }
5
- export declare const NextVariableModal: import('react').ForwardRefExoticComponent<NextVariableModalProps & import('react').RefAttributes<any>>;
6
- export {};
@@ -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,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;