@digitalsee-ai/rcs 2.0.0-beta7 → 2.0.0-beta8
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/Panels/ModernNodeSelectorPanel/hooks/useConnectableNodeSelector.d.ts +3 -3
- package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +64 -0
- package/dist/components/digitalsee/workflow/types/NodeAddContext.d.ts +1 -1
- package/dist/{index-trJRukGS.mjs → index-DBoa8kIP.mjs} +22 -25
- package/dist/{index-Dy43iMlV.mjs → index-DJvNGsCf.mjs} +10394 -10567
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +1 -1
- package/dist/rcs.umd.js +64 -64
- package/package.json +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/filterEdgeInsertActions.d.ts +0 -62
package/package.json
CHANGED
|
@@ -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 {};
|