@digitalsee-ai/rcs 1.0.14 → 1.0.16
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/hooks/createNodeAddHandlerNext.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeAddCallback.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Nodes/ActionNode.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Nodes/NodeFactory.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Nodes/SuperBaseNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/components/NextNodeOperations.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/ActionNodeConfig/index.d.ts +0 -2
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CredentialAccountForm.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/utils/credentialConnection.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/ActionItem.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useActions.d.ts +0 -2
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useCategories.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/types.d.ts +1 -3
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.d.ts +2 -2
- package/dist/components/digitalsee/workflow/api/dip.types.d.ts +4 -8
- package/dist/components/digitalsee/workflow/api/index.d.ts +1 -5
- package/dist/components/digitalsee/workflow/enums/node.d.ts +0 -4
- package/dist/components/digitalsee/workflow/hooks/use-nodes-interaction.d.ts +1 -1
- package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +0 -20
- package/dist/components/digitalsee/workflow/types/engine.d.ts +0 -2
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +15962 -16364
- package/dist/rcs.es.js.map +1 -1
- package/dist/rcs.umd.js +57 -57
- package/dist/rcs.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/submitPayload.d.ts +0 -10
- package/dist/components/digitalsee/workflow/utils/mcpCanvas.d.ts +0 -33
- package/dist/components/digitalsee/workflow/utils/mcpCanvas.test.d.ts +0 -1
- /package/dist/components/digitalsee/workflow/NodesConfig/{submitPayload.test.d.ts → utils/credentialConnection.test.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NodeData, NodeStatus } from '../types/Node';
|
|
2
1
|
import { Node, NodeProps } from '@xyflow/react';
|
|
3
2
|
import { default as React } from 'react';
|
|
3
|
+
import { NodeData, NodeStatus } from '../types/Node';
|
|
4
4
|
interface ActionNodeProps extends NodeProps<Node<NodeData>> {
|
|
5
5
|
status?: NodeStatus;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NodeData, NodeType } from '../types/Node';
|
|
2
1
|
import { Node, XYPosition } from '@xyflow/react';
|
|
3
2
|
import { ComponentType } from 'react';
|
|
3
|
+
import { NodeData, NodeType } from '../types/Node';
|
|
4
4
|
export type { NodeData } from '../types/Node';
|
|
5
5
|
export interface BackendNodeData {
|
|
6
6
|
node_type: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HandleType } from '../types/Handle';
|
|
2
|
-
import { NodeData, NodeStatus, NodeType } from '../types/Node';
|
|
3
1
|
import { Position } from '@xyflow/react';
|
|
4
2
|
import { default as React } from 'react';
|
|
3
|
+
import { HandleType } from '../types/Handle';
|
|
4
|
+
import { NodeData, NodeStatus, NodeType } from '../types/Node';
|
|
5
5
|
export interface HandleConfig {
|
|
6
6
|
id: string;
|
|
7
7
|
position: Position;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shouldShowCredentialTestConnection: (credentialType?: string | null) => credentialType is "RDBMS_ACCOUNT";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ActionItem as ActionItemType, NodeTypeItem } from '../types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ActionItem as ActionItemType, NodeTypeItem } from '../types';
|
|
3
3
|
interface ActionItemProps {
|
|
4
4
|
action: ActionItemType;
|
|
5
5
|
parentNode: NodeTypeItem;
|
package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useCategories.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CategoryItem
|
|
1
|
+
import { CategoryItem } from '../types';
|
|
2
2
|
interface UseCategoriesProps {
|
|
3
|
-
onFetchCategories: (type?:
|
|
3
|
+
onFetchCategories: (type?: 'trigger' | 'action' | 'tool' | 'mcp' | 'model' | 'memory') => Promise<CategoryItem[]>;
|
|
4
4
|
restrictToCategory?: string;
|
|
5
5
|
nodeSelectorVisible: boolean;
|
|
6
6
|
nodeAddInfo?: any;
|
|
@@ -119,12 +119,11 @@ export interface ApiActionItem {
|
|
|
119
119
|
/**
|
|
120
120
|
* 面板属性接口定义
|
|
121
121
|
*/
|
|
122
|
-
export type CategoryRequestType = 'trigger' | 'action' | 'tool' | 'mcp' | 'mcp_trigger' | 'model' | 'memory';
|
|
123
122
|
export interface ModernNodeSelectorProps {
|
|
124
123
|
availableCategories?: CategoryItem[];
|
|
125
124
|
initialCategory?: string;
|
|
126
125
|
onSearch?: (params?: LinkSearchParams) => Promise<NodeFetchResult>;
|
|
127
|
-
onFetchCategories?: (type?:
|
|
126
|
+
onFetchCategories?: (type?: 'trigger' | 'action' | 'tool' | 'mcp' | 'model' | 'memory') => Promise<CategoryItem[]>;
|
|
128
127
|
onFetchNodesByCategory?: (params?: LinkSearchParams) => Promise<NodeFetchResult>;
|
|
129
128
|
onFetchSubCategories?: (categoryId: string) => Promise<CategoryItem[]>;
|
|
130
129
|
restrictToCategory?: string;
|
|
@@ -137,7 +136,6 @@ export interface LinkSearchParams {
|
|
|
137
136
|
build_type?: string;
|
|
138
137
|
deployment_type?: string;
|
|
139
138
|
app_domain_category?: string;
|
|
140
|
-
action_type?: string;
|
|
141
139
|
page?: number;
|
|
142
140
|
size?: number;
|
|
143
141
|
type?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ActionItem, ApiActionItem,
|
|
1
|
+
import { ActionItem, ApiActionItem, ConnectorInfo, LinkSearchParams, NodeFetchResult } from '../types';
|
|
2
2
|
export declare const transformAction: (action: ApiActionItem, connector: ConnectorInfo) => ActionItem;
|
|
3
3
|
export declare const fetchNodesByCategory: (params?: LinkSearchParams) => Promise<NodeFetchResult>;
|
|
4
|
-
export declare const fetchCategories: (type?:
|
|
4
|
+
export declare const fetchCategories: (type?: "trigger" | "action" | "tool" | "mcp" | "model" | "memory") => Promise<import('../types').CategoryItem[] | {
|
|
5
5
|
id: any;
|
|
6
6
|
name: any;
|
|
7
7
|
description: any;
|
|
@@ -300,10 +300,10 @@ export interface DipWorkflowDefinition {
|
|
|
300
300
|
* | `SELECT` | 下拉选择 | Select |
|
|
301
301
|
* | `DATETIME` | 日期时间 | DatePicker |
|
|
302
302
|
* | `OBJECT` | 嵌套对象 | 递归渲染子字段 |
|
|
303
|
-
* | `ARRAY`
|
|
303
|
+
* | `ARRAY` | 数组/列表 | 动态增减表单项 |
|
|
304
304
|
* | `KEYVALUE` | 键值对列表 | Key-Value 编辑器 |
|
|
305
305
|
*/
|
|
306
|
-
export type DipFieldType = 'STRING' | 'TEXTAREA' | 'PASSWORD' | 'HIDDEN' | 'NUMBER' | 'BOOLEAN' | 'SELECT' | 'DATETIME' | 'OBJECT' | 'ARRAY' | '
|
|
306
|
+
export type DipFieldType = 'STRING' | 'TEXTAREA' | 'PASSWORD' | 'HIDDEN' | 'NUMBER' | 'BOOLEAN' | 'SELECT' | 'DATETIME' | 'OBJECT' | 'ARRAY' | 'KEYVALUE';
|
|
307
307
|
/**
|
|
308
308
|
* 数组元素类型
|
|
309
309
|
*
|
|
@@ -381,12 +381,8 @@ export interface DipFieldValidation {
|
|
|
381
381
|
pattern?: string;
|
|
382
382
|
/** 最小字符长度(STRING / TEXTAREA 类型) */
|
|
383
383
|
minLength?: number;
|
|
384
|
-
/** 最小字符长度(后端 snake_case 字段) */
|
|
385
|
-
min_length?: number;
|
|
386
384
|
/** 最大字符长度(STRING / TEXTAREA 类型) */
|
|
387
385
|
maxLength?: number;
|
|
388
|
-
/** 最大字符长度(后端 snake_case 字段) */
|
|
389
|
-
max_length?: number;
|
|
390
386
|
}
|
|
391
387
|
/**
|
|
392
388
|
* 字段 Schema 定义
|
|
@@ -397,7 +393,7 @@ export interface DipFieldValidation {
|
|
|
397
393
|
*
|
|
398
394
|
* 不同 {@link DipFieldType} 使用不同的可选字段:
|
|
399
395
|
* - `SELECT` → `options`
|
|
400
|
-
* - `ARRAY`
|
|
396
|
+
* - `ARRAY` → `item_type`, `item_schema`, `item_label`, `min_items`, `max_items`
|
|
401
397
|
* - `OBJECT` → `properties`
|
|
402
398
|
* - `KEYVALUE` → `key_placeholder`, `value_placeholder`
|
|
403
399
|
* - `DATETIME` → `picker_mode`
|
|
@@ -423,7 +419,7 @@ export interface DipFieldSchema {
|
|
|
423
419
|
example?: string;
|
|
424
420
|
/** 下拉选项列表(仅 type 为 SELECT 时使用) */
|
|
425
421
|
options?: DipSelectOption[];
|
|
426
|
-
/** 数组元素类型(仅 type 为 ARRAY
|
|
422
|
+
/** 数组元素类型(仅 type 为 ARRAY 时使用) */
|
|
427
423
|
item_type?: DipItemType;
|
|
428
424
|
/** 数组元素为 OBJECT 时的子字段 Schema(递归定义) */
|
|
429
425
|
item_schema?: DipFieldSchema[];
|
|
@@ -82,13 +82,9 @@ export declare const apiGetActions: (params: {
|
|
|
82
82
|
linkId?: string;
|
|
83
83
|
name?: string;
|
|
84
84
|
actionType?: string;
|
|
85
|
-
action_type?: string;
|
|
86
85
|
trigger?: boolean;
|
|
87
86
|
protocol?: string;
|
|
88
|
-
|
|
89
|
-
size?: number;
|
|
90
|
-
flow_id?: string;
|
|
91
|
-
flowId?: string;
|
|
87
|
+
flowId: string;
|
|
92
88
|
}) => Promise<any>;
|
|
93
89
|
export declare const apiGetActionNodeSchema: (nodeKey: string, version: number) => Promise<DipNodeSchema>;
|
|
94
90
|
export declare function apiCreateNode(data: any): Promise<unknown>;
|
|
@@ -19,8 +19,6 @@ export declare enum NodeType {
|
|
|
19
19
|
SELF_LOOP = "SelfLoopNode",
|
|
20
20
|
/** MCP服务节点 */
|
|
21
21
|
MCPServer = "MCPServerNode",
|
|
22
|
-
/** MCP网关触发节点 */
|
|
23
|
-
MCP_TRIGGER_NODE = "MCP_TRIGGER_NODE",
|
|
24
22
|
/** 内置MCP节点 */
|
|
25
23
|
BuiltinMCP = "BuiltinMCPNode",
|
|
26
24
|
/** 向量存储节点 */
|
|
@@ -33,8 +31,6 @@ export declare enum NodeType {
|
|
|
33
31
|
AI_SUB_NODE = "AISubNode",
|
|
34
32
|
/** MCP工具节点 */
|
|
35
33
|
MCP_TOOL = "MCPToolNode",
|
|
36
|
-
/** MCP网关工具列表节点 */
|
|
37
|
-
MCP_TOOLS_NODE = "MCP_TOOLS_NODE",
|
|
38
34
|
/** 多分支节点 */
|
|
39
35
|
SWITCH = "SwitchNode",
|
|
40
36
|
/** 便签节点 */
|
|
@@ -9,12 +9,8 @@ export interface NodeAddInfo {
|
|
|
9
9
|
x: number;
|
|
10
10
|
y: number;
|
|
11
11
|
};
|
|
12
|
-
edge?: any;
|
|
13
|
-
sourceNode?: any;
|
|
14
|
-
targetNode?: any;
|
|
15
12
|
trigger?: boolean;
|
|
16
13
|
protocol?: string;
|
|
17
|
-
refresh?: boolean;
|
|
18
14
|
}
|
|
19
15
|
type NodeAddCallback = ((info: NodeAddInfo, nodeType: ActionItem) => void) | null;
|
|
20
16
|
export interface PanelState {
|
|
@@ -34,12 +30,8 @@ export declare const panelSlice: import('@reduxjs/toolkit').Slice<PanelState, {
|
|
|
34
30
|
x: number;
|
|
35
31
|
y: number;
|
|
36
32
|
};
|
|
37
|
-
edge?: any;
|
|
38
|
-
sourceNode?: any;
|
|
39
|
-
targetNode?: any;
|
|
40
33
|
trigger?: boolean;
|
|
41
34
|
protocol?: string;
|
|
42
|
-
refresh?: boolean;
|
|
43
35
|
};
|
|
44
36
|
nodeAddCallback: NodeAddCallback;
|
|
45
37
|
}, action: PayloadAction<NodeAddInfo>) => void;
|
|
@@ -54,12 +46,8 @@ export declare const panelSlice: import('@reduxjs/toolkit').Slice<PanelState, {
|
|
|
54
46
|
x: number;
|
|
55
47
|
y: number;
|
|
56
48
|
};
|
|
57
|
-
edge?: any;
|
|
58
|
-
sourceNode?: any;
|
|
59
|
-
targetNode?: any;
|
|
60
49
|
trigger?: boolean;
|
|
61
50
|
protocol?: string;
|
|
62
|
-
refresh?: boolean;
|
|
63
51
|
};
|
|
64
52
|
nodeAddCallback: NodeAddCallback;
|
|
65
53
|
}) => void;
|
|
@@ -74,12 +62,8 @@ export declare const panelSlice: import('@reduxjs/toolkit').Slice<PanelState, {
|
|
|
74
62
|
x: number;
|
|
75
63
|
y: number;
|
|
76
64
|
};
|
|
77
|
-
edge?: any;
|
|
78
|
-
sourceNode?: any;
|
|
79
|
-
targetNode?: any;
|
|
80
65
|
trigger?: boolean;
|
|
81
66
|
protocol?: string;
|
|
82
|
-
refresh?: boolean;
|
|
83
67
|
};
|
|
84
68
|
nodeAddCallback: NodeAddCallback;
|
|
85
69
|
}, action: PayloadAction<NodeAddCallback>) => void;
|
|
@@ -94,12 +78,8 @@ export declare const panelSlice: import('@reduxjs/toolkit').Slice<PanelState, {
|
|
|
94
78
|
x: number;
|
|
95
79
|
y: number;
|
|
96
80
|
};
|
|
97
|
-
edge?: any;
|
|
98
|
-
sourceNode?: any;
|
|
99
|
-
targetNode?: any;
|
|
100
81
|
trigger?: boolean;
|
|
101
82
|
protocol?: string;
|
|
102
|
-
refresh?: boolean;
|
|
103
83
|
};
|
|
104
84
|
nodeAddCallback: NodeAddCallback;
|
|
105
85
|
}, action: PayloadAction<NodeTypeItem>) => void;
|