@digitalsee-ai/rcs 1.1.6 → 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/hooks/useWorkflow.d.ts +1 -1
- package/dist/components/digitalsee/workflow/utils/mcpCanvas.d.ts +1 -1
- package/dist/components/dynamic-form/index.d.ts +1 -1
- package/dist/components/dynamic-form/utils/validation.d.ts +5 -1
- package/dist/{index-7gRAatVW.mjs → index-B3ZrjegL.mjs} +10071 -9911
- package/dist/{index-7gRAatVW.mjs.map → index-B3ZrjegL.mjs.map} +1 -1
- package/dist/{index-DZBm1v7J.mjs → index-DgHUyAIK.mjs} +2 -2
- package/dist/{index-DZBm1v7J.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 +58 -58
- 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/useNodeActionState.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/queuedNodeConfigOpen.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
|
@@ -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
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Connection, Edge, Node, OnConnect, OnEdgesChange, OnNodesChange } from '@xyflow/react';
|
|
2
1
|
import { FlowStatus } from '../NodesConfig/define/flow';
|
|
3
2
|
import { EdgeData } from '../types/Edge';
|
|
4
3
|
import { NodeData } from '../types/Node';
|
|
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;
|
|
@@ -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
|
*/
|