From 369c4b247bd5db0a0f7680f8928ed7a199896554 Mon Sep 17 00:00:00 2001 From: sd0ric4 <1286518974@qq.com> Date: Tue, 25 Mar 2025 18:42:23 +0800 Subject: [PATCH] feat: add realmode parameter to workflow dispatch and update interactive handling --- .../global/core/workflow/runtime/type.d.ts | 1 + .../service/core/workflow/dispatch/index.ts | 3 +- .../dispatch/interactive/formInput.ts | 4 +- .../dispatch/interactive/userSelect.ts | 4 +- .../app/src/pages/api/core/workflow/debug.ts | 254 +----------------- 5 files changed, 20 insertions(+), 246 deletions(-) diff --git a/packages/global/core/workflow/runtime/type.d.ts b/packages/global/core/workflow/runtime/type.d.ts index f5db3a89c..b2d6068cb 100644 --- a/packages/global/core/workflow/runtime/type.d.ts +++ b/packages/global/core/workflow/runtime/type.d.ts @@ -65,6 +65,7 @@ export type ModuleDispatchProps = ChatDispatchProps & { runtimeNodes: RuntimeNodeItemType[]; runtimeEdges: RuntimeEdgeItemType[]; params: T; + realmode?: 'test' | 'chat' | 'debug'; }; export type SystemVariablesType = { diff --git a/packages/service/core/workflow/dispatch/index.ts b/packages/service/core/workflow/dispatch/index.ts index 24b279f5c..ff3f9d4f4 100644 --- a/packages/service/core/workflow/dispatch/index.ts +++ b/packages/service/core/workflow/dispatch/index.ts @@ -581,7 +581,8 @@ export async function dispatchWorkFlow(data: Props): Promise