@digitalsee-ai/rcs 1.1.5 → 1.1.7
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/FlowVersionManager.d.ts +2 -1
- package/dist/components/digitalsee/workflow/Canvas/hooks/classicNodeAddConnection.d.ts +11 -0
- package/dist/components/digitalsee/workflow/Nodes/TriggerNode.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNodeActionState.d.ts +1 -3
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/connectableQuery.d.ts +2 -0
- package/dist/components/digitalsee/workflow/api/connectable.types.d.ts +3 -0
- package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +2 -2
- package/dist/components/digitalsee/workflow/utils/mcpCanvas.d.ts +1 -1
- package/dist/components/digitalsee/workflow/utils/queuedNodeConfigOpen.d.ts +12 -0
- package/dist/components/dynamic-form/index.d.ts +1 -1
- package/dist/components/dynamic-form/utils/validation.d.ts +5 -1
- package/dist/{index-C8aUQi22.mjs → index-B3ZrjegL.mjs} +11008 -10800
- package/dist/index-B3ZrjegL.mjs.map +1 -0
- package/dist/{index-CTWDrXXQ.mjs → index-DgHUyAIK.mjs} +2 -2
- package/dist/{index-CTWDrXXQ.mjs.map → index-DgHUyAIK.mjs.map} +1 -1
- package/dist/locales/en-US/common.d.ts +5 -0
- package/dist/locales/en-US.d.ts +5 -0
- package/dist/locales/zh-CN/common.d.ts +5 -0
- package/dist/locales/zh-CN.d.ts +5 -0
- package/dist/locales/zh-TW/common.d.ts +5 -0
- package/dist/locales/zh-TW.d.ts +5 -0
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +37 -36
- package/dist/rcs.umd.js +59 -59
- package/dist/rcs.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvas.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Canvas/classicNodeCreate.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Canvas/constants.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Canvas/hooks/classicNodeAddConnection.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Handles/customHandleConnectable.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Nodes/classicNodePackageNodes.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Nodes/classicNodePackagePortLayout.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Nodes/useClassicNodePackagePorts.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fields/WorkflowCodeField.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/index.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/proxyField.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CredentialAccountForm.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/index.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/next-compatible.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/NodeTest.helpers.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/NodeTest.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/helper/flowVariables.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/define/condition.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/submitPayload.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/utils/credentialConnection.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeCardList.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useCategories.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNavigation.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNodeSelectorPresentation.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/connectableActionLoader.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/connectableDataSource.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/connectableQuery.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/connectableResponse.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/filterEdgeInsertActions.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/nodeAddContext.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/queryParams.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/api/connectable.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/api/index.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/builtin/globalConfig/service.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/config/defaultCanvasEngineConfig.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/hooks/state.hooks.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/store/workflowSlice.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/classicNodeActionIdentity.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/classicNodePackageConnection.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/classicNodePackageGraphValidation.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/compatiblePortSelection.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/mcpCanvas.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/nodeDataFormatter.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/portConnectionValidationMessages.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/portConnectionValidator.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/switchNodePackage.test.d.ts +0 -1
- package/dist/components/digitalsee/workflow/utils/workflowConnectionValidator.test.d.ts +0 -1
- package/dist/components/dynamic-form/DynamicForm.test.d.ts +0 -1
- package/dist/components/dynamic-form/components/ValueModeWrapper/ValueModePolicy.test.d.ts +0 -1
- package/dist/components/dynamic-form/components/ValueModeWrapper/ValueModeWrapper.test.d.ts +0 -1
- package/dist/components/dynamic-form/components/VariableTextarea/VariableTextarea.test.d.ts +0 -1
- package/dist/components/dynamic-form/fields/complex/KeyValueField.test.d.ts +0 -1
- package/dist/components/dynamic-form/registry/createFieldComponent.test.d.ts +0 -1
- package/dist/components/dynamic-form/utils/__tests__/path-get.test.d.ts +0 -1
- package/dist/index-C8aUQi22.mjs.map +0 -1
|
@@ -2,6 +2,7 @@ import { CanvasAPI } from '../types/engine';
|
|
|
2
2
|
import { FlowDraftPayload } from '../types/flowVersion';
|
|
3
3
|
interface FlowVersionManagerProps {
|
|
4
4
|
flowId: string;
|
|
5
|
+
flowName?: string;
|
|
5
6
|
dirty: boolean;
|
|
6
7
|
canManage: boolean;
|
|
7
8
|
onSave?: () => Promise<FlowDraftPayload | undefined>;
|
|
@@ -11,5 +12,5 @@ interface FlowVersionManagerProps {
|
|
|
11
12
|
onUnsupported?: () => void;
|
|
12
13
|
}
|
|
13
14
|
/** 连接流版本发布、下线与历史管理。 */
|
|
14
|
-
declare const FlowVersionManager: ({ flowId, dirty, canManage, onSave, getFlowPayload, canvasApi, offlineApi, onUnsupported, }: FlowVersionManagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const FlowVersionManager: ({ flowId, flowName, dirty, canManage, onSave, getFlowPayload, canvasApi, offlineApi, onUnsupported, }: FlowVersionManagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default FlowVersionManager;
|
|
@@ -21,6 +21,17 @@ export interface TryConnectClassicNodePackageParams {
|
|
|
21
21
|
reportAmbiguousPorts: ReportAmbiguousPorts;
|
|
22
22
|
validateConnectionAgainstSnapshot: (edge: EdgeConfig, nodes: Node[], edges: Edge[]) => boolean;
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* 是否允许 CLASSIC connectable 按 NodeSchema 自动选口连线。
|
|
26
|
+
*
|
|
27
|
+
* 与 `shouldUseConnectableDataSource` 对齐:无 protocol 或 BUILTIN_MCP(MCP Server/Tool
|
|
28
|
+
* 画布)走 Schema 端口;AI_LANGUAGE_MODEL / AI_MEMORY 等专项 protocol 仍走 legacy handle。
|
|
29
|
+
* MCP Tool 下游新增也必须走这里,否则会写死 targetHandle=`input`,与 nodepackage 的 `main` 冲突。
|
|
30
|
+
*/
|
|
31
|
+
export declare function canUseClassicConnectablePorts(options: {
|
|
32
|
+
connectableEnabled: boolean;
|
|
33
|
+
protocol?: string | null;
|
|
34
|
+
}): boolean;
|
|
24
35
|
/**
|
|
25
36
|
* 尝试按 NodePackage Schema 连接新建节点。
|
|
26
37
|
*
|
|
@@ -2,6 +2,7 @@ import { NodeProps } from '@xyflow/react';
|
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* @description 触发节点,负责流程入口卡片及唯一右侧输出。
|
|
5
|
+
* nodepackage 触发器(如 Webhook)通过 Schema 动态输出端口;旧触发器保留 legacy output。
|
|
5
6
|
* @param {NodeProps} props React Flow 触发节点参数。
|
|
6
7
|
* @returns {JSX.Element} 渲染后的触发节点。
|
|
7
8
|
*/
|
|
@@ -12,14 +12,12 @@ interface UseNodeActionStateProps {
|
|
|
12
12
|
}) => Promise<ActionItem[]>;
|
|
13
13
|
isMcpServerEntryMode: boolean;
|
|
14
14
|
visibleNodes: NodeTypeItem[];
|
|
15
|
-
searchResults: NodeTypeItem[];
|
|
16
15
|
searchText: string;
|
|
17
|
-
activeCategoryId?: string;
|
|
18
16
|
}
|
|
19
17
|
/**
|
|
20
18
|
* @description 管理连接器的展开状态、动作缓存,以及异步动作请求的竞态保护。
|
|
21
19
|
*/
|
|
22
|
-
export declare function useNodeActionState({ actionRequestContextKey, contextMode, fetchNodeActions, isMcpServerEntryMode, visibleNodes,
|
|
20
|
+
export declare function useNodeActionState({ actionRequestContextKey, contextMode, fetchNodeActions, isMcpServerEntryMode, visibleNodes, searchText, }: UseNodeActionStateProps): {
|
|
23
21
|
expandedNodeIds: string[];
|
|
24
22
|
nodeActionsMap: Record<string, NodeActionMeta>;
|
|
25
23
|
handleNodeToggle: (node: NodeTypeItem) => Promise<void>;
|
|
@@ -14,6 +14,8 @@ export interface ConnectableNodePackageQueryBase {
|
|
|
14
14
|
categoryName?: string;
|
|
15
15
|
linkId?: string;
|
|
16
16
|
keyword?: string;
|
|
17
|
+
/** 当前工作流 ID,对应请求体 flow_id */
|
|
18
|
+
flowId?: string;
|
|
17
19
|
page?: number;
|
|
18
20
|
size?: number;
|
|
19
21
|
}
|
|
@@ -50,6 +52,7 @@ interface ConnectableNodePackageRequestBase {
|
|
|
50
52
|
category_name?: string;
|
|
51
53
|
link_id?: string;
|
|
52
54
|
keyword?: string;
|
|
55
|
+
flow_id?: string;
|
|
53
56
|
page?: number;
|
|
54
57
|
size?: number;
|
|
55
58
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlowStatus } from '../NodesConfig/define/flow';
|
|
2
2
|
import { EdgeData } from '../types/Edge';
|
|
3
3
|
import { NodeData } from '../types/Node';
|
|
4
|
-
import {
|
|
4
|
+
import { Connection, Edge, Node, OnConnect, OnEdgesChange, OnNodesChange } from '@xyflow/react';
|
|
5
5
|
export interface UseWorkflowOptions {
|
|
6
6
|
initialNodes?: Node<NodeData>[];
|
|
7
7
|
initialEdges?: Edge<EdgeData>[];
|
|
@@ -20,7 +20,7 @@ export declare const isMcpReturnVariableNode: (node?: (Pick<Node, "data"> & {
|
|
|
20
20
|
export declare const isMcpCanvas: (nodes: Array<Pick<Node, "type">>) => boolean;
|
|
21
21
|
export declare const isMcpServerCanvas: (nodes: McpNodeIdentity[]) => boolean;
|
|
22
22
|
export declare const markMcpServerCanvasNode: <T extends Node>(node: T) => T;
|
|
23
|
-
export declare const isMcpServerToolHandle: (handleId?: string | null) => handleId is HandleConnectionType.BUILTIN_MCP;
|
|
23
|
+
export declare const isMcpServerToolHandle: (handleId?: string | null) => handleId is "main" | HandleConnectionType.BUILTIN_MCP;
|
|
24
24
|
export declare const isMcpToolChainHandle: (handleId?: string | null) => handleId is "main" | HandleConnectionType.OUTPUT;
|
|
25
25
|
export declare const getDirectMcpToolCount: (serverId: string, nodes: Array<Pick<Node, "id" | "type">>, edges: Array<Pick<Edge, "source" | "target">>) => number;
|
|
26
26
|
export declare const canAddMoreMcpTools: (serverId: string, nodes: Array<Pick<Node, "id" | "type">>, edges: Array<Pick<Edge, "source" | "target">>) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -17,5 +17,5 @@ export type { DataLoader, DataLoaderContext, DataLoaderRegistry, DataSource, Dyn
|
|
|
17
17
|
export type { FieldComponentDefinition, FieldComponentMeta, FieldComponentProps, FieldRenderContext, IFieldRegistry, RegisterFieldOptions, } from './types/field-component';
|
|
18
18
|
export { evaluateCondition } from './utils/conditions';
|
|
19
19
|
export { useDataLoader } from './utils/useDataLoader';
|
|
20
|
-
export { jsonRulesToAntdRules } from './utils/validation';
|
|
20
|
+
export { createRequiredAntdRule, jsonRulesToAntdRules } from './utils/validation';
|
|
21
21
|
export { isFieldVisible, resolveBool } from './utils/visible';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { Rule } from 'antd/es/form';
|
|
2
1
|
import { DynamicFormField } from '../types/form-schema';
|
|
3
2
|
import { ValidationRule } from '../types/validation';
|
|
3
|
+
import { Rule } from 'antd/es/form';
|
|
4
|
+
/**
|
|
5
|
+
* 创建必填规则:兼容 `${...}` 表达式包装与文本模式 `\$` 转义。
|
|
6
|
+
*/
|
|
7
|
+
export declare function createRequiredAntdRule(message?: string): Rule;
|
|
4
8
|
/**
|
|
5
9
|
* 将 JSON 校验规则转换为 antd Form rules
|
|
6
10
|
*/
|