@digitalsee-ai/rcs 1.1.0 → 1.1.2
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/classicNodeCreate.d.ts +19 -0
- package/dist/components/digitalsee/workflow/Canvas/classicNodeCreate.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNavigation.d.ts +2 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/queryParams.d.ts +18 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/queryParams.test.d.ts +1 -0
- package/dist/rcs.es.js +7358 -7345
- package/dist/rcs.es.js.map +1 -1
- package/dist/rcs.umd.js +53 -53
- package/dist/rcs.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface CreatedNodeConnectorResponse {
|
|
2
|
+
connector_id?: string | number | null;
|
|
3
|
+
connectorId?: string | number | null;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* 生成创建节点响应中的连接器字段补丁。
|
|
7
|
+
*
|
|
8
|
+
* 旧版节点的创建接口可能没有回传 connector_id。此时不返回该字段,
|
|
9
|
+
* 让后续节点数据合并继续保留动作选择器中已有的 connector_id。
|
|
10
|
+
* NodePackage 节点仍显式使用 null,避免带入选择器的临时连接器标识。
|
|
11
|
+
*
|
|
12
|
+
* @param actionId 创建节点时提交的动作 ID。
|
|
13
|
+
* @param response 创建节点接口响应。
|
|
14
|
+
* @returns 合并到本地节点数据的连接器字段。
|
|
15
|
+
*/
|
|
16
|
+
export declare function getClassicCreatedConnectorPatch(actionId: unknown, response: CreatedNodeConnectorResponse): {
|
|
17
|
+
connector_id?: string | number | null;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNavigation.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CategoryItem, LinkSearchParams, NodeFetchResult, NodeTypeItem } from '../types';
|
|
2
|
+
import { NodeAddInfo } from '../../../store/panelSlice';
|
|
2
3
|
interface UseNavigationProps {
|
|
3
4
|
categories: CategoryItem[];
|
|
4
5
|
initialCategory?: string;
|
|
5
6
|
nodeSelectorVisible: boolean;
|
|
6
|
-
nodeAddInfo?:
|
|
7
|
+
nodeAddInfo?: NodeAddInfo | null;
|
|
7
8
|
onFetchNodesByCategory: (params?: LinkSearchParams) => Promise<NodeFetchResult>;
|
|
8
9
|
defaultPageSize?: number;
|
|
9
10
|
flowId?: string;
|
package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/queryParams.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|