@reopt-ai/opt-workflow 0.1.1 → 0.1.3
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/CHANGELOG.md +13 -0
- package/dist/{branch-resolver-D_wM183Q.cjs → branch-resolver-BMbNYMjx.cjs} +41 -33
- package/dist/{branch-resolver-BDi6Wu6m.js → branch-resolver-d5DC_s2D.js} +41 -33
- package/dist/{core-z3nXmUBj.d.ts → core-9vFdaT2U.d.ts} +17 -1
- package/dist/{core-CtqBb-6v.d.cts → core-CG0cyIEY.d.cts} +17 -1
- package/dist/core.cjs +3 -2
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +3 -3
- package/dist/index.cjs +21 -16
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +22 -17
- package/dist/mock.cjs +1 -1
- package/dist/mock.js +1 -1
- package/dist/simulate.cjs +1 -1
- package/dist/simulate.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{test-executor-C2AvI73G.cjs → test-executor-DkBxQ-2s.cjs} +1 -1
- package/dist/{test-executor-DpT3qXIT.js → test-executor-hX0VIrtP.js} +1 -1
- package/dist/{workflow-preview-CZzXKXqK.cjs → workflow-preview-BtEThohd.cjs} +32 -1
- package/dist/{workflow-preview-B0kul6f-.js → workflow-preview-DP-VqUqM.js} +27 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21,13 +21,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
value: mod,
|
|
22
22
|
enumerable: true
|
|
23
23
|
}) : target, mod));
|
|
24
|
-
const require_branch_resolver = require("./branch-resolver-
|
|
24
|
+
const require_branch_resolver = require("./branch-resolver-BMbNYMjx.cjs");
|
|
25
25
|
const require_end_node_ids = require("./end-node-ids-D6WBaCLm.cjs");
|
|
26
26
|
const require_node_definitions = require("./node-definitions-pS1Zp1dK.cjs");
|
|
27
27
|
const require_step_type_for_node = require("./step-type-for-node-D9sdHfWA.cjs");
|
|
28
28
|
const require_ai_stream = require("./ai-stream-B_lk9_Rf.cjs");
|
|
29
|
-
const require_workflow_preview = require("./workflow-preview-
|
|
30
|
-
const require_test_executor = require("./test-executor-
|
|
29
|
+
const require_workflow_preview = require("./workflow-preview-BtEThohd.cjs");
|
|
30
|
+
const require_test_executor = require("./test-executor-DkBxQ-2s.cjs");
|
|
31
31
|
let react = require("react");
|
|
32
32
|
react = __toESM(react, 1);
|
|
33
33
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -390,6 +390,9 @@ const EN_MESSAGES = {
|
|
|
390
390
|
"스텝이 삭제되었습니다.": "Step deleted.",
|
|
391
391
|
"스텝이 수정되었습니다.": "Step updated.",
|
|
392
392
|
"스텝이 추가되고 자동으로 연결되었습니다.": "Step added and connected automatically.",
|
|
393
|
+
"스텝이 추가되고 참 분기로 연결되었습니다.": "Step added and connected on the true branch.",
|
|
394
|
+
"스텝이 추가되고 거짓 분기로 연결되었습니다.": "Step added and connected on the false branch.",
|
|
395
|
+
"스텝이 추가되고 기본 분기로 연결되었습니다.": "Step added and connected on the default branch.",
|
|
393
396
|
"스텝이 추가되었습니다.": "Step added.",
|
|
394
397
|
시간: "Hours",
|
|
395
398
|
"시간 단위": "Time unit",
|
|
@@ -4445,7 +4448,7 @@ function EditorSegmentedControl({ value, options, onChange, ariaLabel, disabled
|
|
|
4445
4448
|
}
|
|
4446
4449
|
// src/ui/dropdown-menu.tsx
|
|
4447
4450
|
const _excluded$6 = ["asChild", "children"];
|
|
4448
|
-
const _excluded2$3 = ["align"];
|
|
4451
|
+
const _excluded2$3 = ["align", "className"];
|
|
4449
4452
|
const _excluded3$1 = ["className"];
|
|
4450
4453
|
const _excluded4 = ["className"];
|
|
4451
4454
|
const _excluded5 = ["checked", "children"];
|
|
@@ -4464,10 +4467,11 @@ const DropdownMenuTrigger = react.forwardRef((_ref, ref) => {
|
|
|
4464
4467
|
DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
|
|
4465
4468
|
/** 메뉴 판 — opt-ui `DropdownContent`. */
|
|
4466
4469
|
function DropdownMenuContent(_ref2) {
|
|
4467
|
-
let { align: _align } = _ref2, props = require_end_node_ids._objectWithoutProperties(_ref2, _excluded2$3);
|
|
4470
|
+
let { align: _align, className } = _ref2, props = require_end_node_ids._objectWithoutProperties(_ref2, _excluded2$3);
|
|
4468
4471
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_reopt_ai_opt_ui_core.DropdownContent, require_end_node_ids._objectSpread2({
|
|
4469
4472
|
role: "menu",
|
|
4470
|
-
"data-opt-workflow-layer": ""
|
|
4473
|
+
"data-opt-workflow-layer": "",
|
|
4474
|
+
className: cn("max-h-[min(70dvh,32rem)]", className)
|
|
4471
4475
|
}, props));
|
|
4472
4476
|
}
|
|
4473
4477
|
function DropdownMenuItem(_ref3) {
|
|
@@ -7418,7 +7422,7 @@ function readTemplateFromFile(file) {
|
|
|
7418
7422
|
});
|
|
7419
7423
|
}
|
|
7420
7424
|
// src/components/grid/template-import-export-dialog.tsx
|
|
7421
|
-
function TemplateImportExportDialog({ isOpen, mode, onClose, currentDefinition, currentName, onImport }) {
|
|
7425
|
+
function TemplateImportExportDialog({ isOpen, mode, onClose, currentDefinition, currentName, onImport, prepareReturnFocus }) {
|
|
7422
7426
|
const t = useT();
|
|
7423
7427
|
const idScope = (0, react.useId)();
|
|
7424
7428
|
const [exportName, setExportName] = (0, react.useState)(currentName);
|
|
@@ -7513,6 +7517,7 @@ function TemplateImportExportDialog({ isOpen, mode, onClose, currentDefinition,
|
|
|
7513
7517
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Dialog, {
|
|
7514
7518
|
open: isOpen,
|
|
7515
7519
|
onOpenChange: (open) => !open && handleClose(),
|
|
7520
|
+
prepareReturnFocus,
|
|
7516
7521
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DialogContent, {
|
|
7517
7522
|
className: "max-w-2xl",
|
|
7518
7523
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DialogHeader, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogTitle, { children: mode === "export" ? t("워크플로우 내보내기") : t("워크플로우 가져오기") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogDescription, { children: mode === "export" ? t("다시 가져올 수 있는 JSON 템플릿이나, 읽고 공유하기 위한 요약 문서로 내보냅니다.") : t("JSON 파일에서 워크플로우를 가져옵니다.") })] }), mode === "export" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -9652,19 +9657,17 @@ function useStepMutations({ steps, connections, history, findAdjacentStep, setSe
|
|
|
9652
9657
|
const newStep = require_end_node_ids._objectSpread2(require_end_node_ids._objectSpread2({}, stepData), {}, { id: require_test_executor.createId() });
|
|
9653
9658
|
if (newStep.type !== "trigger") {
|
|
9654
9659
|
const adjacent = findAdjacentStep(newStep.position);
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
})) {
|
|
9659
|
-
const newConnection = {
|
|
9660
|
+
const plan = adjacent ? require_workflow_preview.planAutoConnection(adjacent.step, newStep, connections) : null;
|
|
9661
|
+
if (adjacent && plan) {
|
|
9662
|
+
const newConnection = require_end_node_ids._objectSpread2({
|
|
9660
9663
|
id: require_test_executor.createId(),
|
|
9661
9664
|
fromStepId: adjacent.step.id,
|
|
9662
9665
|
toStepId: newStep.id,
|
|
9663
9666
|
fromPosition: adjacent.step.position,
|
|
9664
9667
|
toPosition: newStep.position
|
|
9665
|
-
};
|
|
9668
|
+
}, plan.branchType ? { branchType: plan.branchType } : {});
|
|
9666
9669
|
addStep(newStep, newConnection);
|
|
9667
|
-
if (!silent) toast.success(t("스텝이 추가되고 자동으로 연결되었습니다."));
|
|
9670
|
+
if (!silent) toast.success(plan.branchType === "true" ? t("스텝이 추가되고 참 분기로 연결되었습니다.") : plan.branchType === "false" ? t("스텝이 추가되고 거짓 분기로 연결되었습니다.") : plan.branchType === "default" ? t("스텝이 추가되고 기본 분기로 연결되었습니다.") : t("스텝이 추가되고 자동으로 연결되었습니다."));
|
|
9668
9671
|
return {
|
|
9669
9672
|
steps: [...steps, newStep],
|
|
9670
9673
|
connections: [...connections, newConnection]
|
|
@@ -11527,17 +11530,19 @@ function GridWorkflowEditorInner({ workflowId, bridge, menuExtras, reserveLeadin
|
|
|
11527
11530
|
isOpen: ui.importExportDialog.isOpen,
|
|
11528
11531
|
mode: ui.importExportDialog.mode,
|
|
11529
11532
|
onClose: ui.closeImportExportDialog,
|
|
11530
|
-
currentDefinition: {
|
|
11533
|
+
currentDefinition: require_end_node_ids._objectSpread2({
|
|
11531
11534
|
steps,
|
|
11532
11535
|
connections,
|
|
11533
11536
|
gridSize: Math.max(bounds.rows, bounds.cols)
|
|
11534
|
-
},
|
|
11537
|
+
}, testParams ? { testParams } : {}),
|
|
11535
11538
|
currentName: workflowName,
|
|
11539
|
+
prepareReturnFocus: focusCanvas,
|
|
11536
11540
|
onImport: (definition, metadata) => {
|
|
11537
11541
|
initializeState({
|
|
11538
11542
|
steps: definition.steps,
|
|
11539
11543
|
connections: definition.connections
|
|
11540
11544
|
});
|
|
11545
|
+
setTestParams(definition.testParams);
|
|
11541
11546
|
if (metadata === null || metadata === void 0 ? void 0 : metadata.name) setWorkflowName(metadata.name);
|
|
11542
11547
|
toast.success(t("템플릿을 가져왔습니다."));
|
|
11543
11548
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as WorkflowExtensionContext, c as WorkflowHost, d as WorkflowRunsSource, f as WorkflowNotice, h as WorkflowToast, i as WorkflowEditorExtension, l as WorkflowRunDetail, m as WorkflowNoticeSink, n as RunRequestResult, o as WorkflowFieldRenderer, p as WorkflowNoticeKind, r as RunStartResult, s as WorkflowFieldRendererProps, t as RunEventStream, u as WorkflowRunner } from "./types-C5744w6f.cjs";
|
|
2
2
|
import { J as NodeDefinition, R as NodeContractRegistration, S as HistoryItem, Y as NodeOutputField, _ as GridStep, c as ConditionType, et as NodeIcon, f as GridCellState, h as GridPosition, l as ConnectionDirection, n as BranchType, p as GridConnection, v as GridStepType, y as GridWorkflowDefinition } from "./grid-workflow-dto-C86EArJP.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Nt as ViewportTransform, Ut as GridBounds, X as PreviewGraph, Z as WorkflowProposalOp, ut as OrderedPreviewSteps } from "./core-CG0cyIEY.cjs";
|
|
4
4
|
import { l as StepExecutionStatus, n as ExecutionEvent, s as StepExecutionRecord } from "./execution-context-DVeybULC.cjs";
|
|
5
5
|
import { s as WorkflowPreflightIssue, t as ExtendedWorkflowTemplate, y as WorkflowStepMetrics } from "./types-Bj0VWFny.cjs";
|
|
6
6
|
import * as React$1 from "react";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as WorkflowExtensionContext, c as WorkflowHost, d as WorkflowRunsSource, f as WorkflowNotice, h as WorkflowToast, i as WorkflowEditorExtension, l as WorkflowRunDetail, m as WorkflowNoticeSink, n as RunRequestResult, o as WorkflowFieldRenderer, p as WorkflowNoticeKind, r as RunStartResult, s as WorkflowFieldRendererProps, t as RunEventStream, u as WorkflowRunner } from "./types-dVHX2CyI.js";
|
|
2
2
|
import { J as NodeDefinition, R as NodeContractRegistration, S as HistoryItem, Y as NodeOutputField, _ as GridStep, c as ConditionType, et as NodeIcon, f as GridCellState, h as GridPosition, l as ConnectionDirection, n as BranchType, p as GridConnection, v as GridStepType, y as GridWorkflowDefinition } from "./grid-workflow-dto-C86EArJP.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Nt as ViewportTransform, Ut as GridBounds, X as PreviewGraph, Z as WorkflowProposalOp, ut as OrderedPreviewSteps } from "./core-9vFdaT2U.js";
|
|
4
4
|
import { l as StepExecutionStatus, n as ExecutionEvent, s as StepExecutionRecord } from "./execution-context-YFTRCj0y.js";
|
|
5
5
|
import { s as WorkflowPreflightIssue, t as ExtendedWorkflowTemplate, y as WorkflowStepMetrics } from "./types-DQcmIuAl.js";
|
|
6
6
|
import * as React$1 from "react";
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { b as lookupFormattedMessage, l as normalizeConditionConfig, y as formatMessage } from "./branch-resolver-
|
|
2
|
+
import { b as lookupFormattedMessage, l as normalizeConditionConfig, y as formatMessage } from "./branch-resolver-d5DC_s2D.js";
|
|
3
3
|
import { i as toPropertyKey, n as _objectWithoutProperties, r as _objectSpread2 } from "./end-node-ids-p85jFEcP.js";
|
|
4
4
|
import { c as registerNodeContracts, l as releaseNodeScope, o as getNodeCatalogVersion, s as listVisibleNodeDefinitions, u as subscribeNodeCatalog } from "./node-definitions-C-GMfjMm.js";
|
|
5
5
|
import { a as endDefinitions, i as conditionDefinitions, l as registerNodeOutputs, r as getStepNodeDefinition, t as NODE_ID_TO_STEP_TYPE } from "./step-type-for-node-Blf5DKrp.js";
|
|
6
|
-
import { C as BRANCH_TYPE_COLORS,
|
|
7
|
-
import { $ as
|
|
8
|
-
import { a as createId, n as analyzeExecutionPaths, r as executeTestMode } from "./test-executor-
|
|
6
|
+
import { C as BRANCH_TYPE_COLORS, N as STEP_TYPE_COLORS, P as getAdjacentPosition, R as isSamePosition, S as mergeBounds, a as EMPTY_GRID_WORKFLOW_DEFINITION, b as isWithinBounds, g as MAX_ROWS, h as MAX_COLS, o as parseGridWorkflowDefinition, r as isAiTextStreamData, y as deriveGridBounds } from "./ai-stream-APc3uCiQ.js";
|
|
7
|
+
import { $ as getStepsRect, A as routeConnection, B as cycleStepConnection, C as triageFailedStep, E as findBrokenStepRefs, F as visibleConfigFields, G as resolveConnectionFocus, H as getConnectionFarEnd, I as deriveRunPath, K as IDENTITY_TRANSFORM, L as maskPiiDeep, M as routeLabelPoint, N as getStepSummary, P as missingRequiredFields, Q as getContentSize, T as buildVariableTree, V as findStepInDirection, W as orderStepsByFlow, Y as getCellCenter, _ as aggregateStepMetrics, a as findNearestFreeCell, b as FAILURE_CAUSE_COPY, c as MULTI_OUTGOING_STEP_TYPES, et as viewportPointToCell, f as buildWorkflowBrief, h as serializeTemplate, j as routeLabelFallbackPoint, k as roundedPath, l as getWorkflowPreflight, m as importTemplate, n as selectAppliedGraph, o as planAutoConnection, q as cellToViewportRect, s as validateConnection, t as computePreviewGraph, v as formatDurationMs, w as VARIABLE_TOKEN_PATTERN, y as formatShare, z as orderStepsForPreview } from "./workflow-preview-DP-VqUqM.js";
|
|
8
|
+
import { a as createId, n as analyzeExecutionPaths, r as executeTestMode } from "./test-executor-hX0VIrtP.js";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { Component, createContext, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -368,6 +368,9 @@ const EN_MESSAGES = {
|
|
|
368
368
|
"스텝이 삭제되었습니다.": "Step deleted.",
|
|
369
369
|
"스텝이 수정되었습니다.": "Step updated.",
|
|
370
370
|
"스텝이 추가되고 자동으로 연결되었습니다.": "Step added and connected automatically.",
|
|
371
|
+
"스텝이 추가되고 참 분기로 연결되었습니다.": "Step added and connected on the true branch.",
|
|
372
|
+
"스텝이 추가되고 거짓 분기로 연결되었습니다.": "Step added and connected on the false branch.",
|
|
373
|
+
"스텝이 추가되고 기본 분기로 연결되었습니다.": "Step added and connected on the default branch.",
|
|
371
374
|
"스텝이 추가되었습니다.": "Step added.",
|
|
372
375
|
시간: "Hours",
|
|
373
376
|
"시간 단위": "Time unit",
|
|
@@ -4423,7 +4426,7 @@ function EditorSegmentedControl({ value, options, onChange, ariaLabel, disabled
|
|
|
4423
4426
|
}
|
|
4424
4427
|
// src/ui/dropdown-menu.tsx
|
|
4425
4428
|
const _excluded$6 = ["asChild", "children"];
|
|
4426
|
-
const _excluded2$3 = ["align"];
|
|
4429
|
+
const _excluded2$3 = ["align", "className"];
|
|
4427
4430
|
const _excluded3$1 = ["className"];
|
|
4428
4431
|
const _excluded4 = ["className"];
|
|
4429
4432
|
const _excluded5 = ["checked", "children"];
|
|
@@ -4442,10 +4445,11 @@ const DropdownMenuTrigger = React.forwardRef((_ref, ref) => {
|
|
|
4442
4445
|
DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
|
|
4443
4446
|
/** 메뉴 판 — opt-ui `DropdownContent`. */
|
|
4444
4447
|
function DropdownMenuContent(_ref2) {
|
|
4445
|
-
let { align: _align } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
4448
|
+
let { align: _align, className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
4446
4449
|
return /* @__PURE__ */ jsx(DropdownContent, _objectSpread2({
|
|
4447
4450
|
role: "menu",
|
|
4448
|
-
"data-opt-workflow-layer": ""
|
|
4451
|
+
"data-opt-workflow-layer": "",
|
|
4452
|
+
className: cn("max-h-[min(70dvh,32rem)]", className)
|
|
4449
4453
|
}, props));
|
|
4450
4454
|
}
|
|
4451
4455
|
function DropdownMenuItem(_ref3) {
|
|
@@ -7396,7 +7400,7 @@ function readTemplateFromFile(file) {
|
|
|
7396
7400
|
});
|
|
7397
7401
|
}
|
|
7398
7402
|
// src/components/grid/template-import-export-dialog.tsx
|
|
7399
|
-
function TemplateImportExportDialog({ isOpen, mode, onClose, currentDefinition, currentName, onImport }) {
|
|
7403
|
+
function TemplateImportExportDialog({ isOpen, mode, onClose, currentDefinition, currentName, onImport, prepareReturnFocus }) {
|
|
7400
7404
|
const t = useT();
|
|
7401
7405
|
const idScope = useId();
|
|
7402
7406
|
const [exportName, setExportName] = useState(currentName);
|
|
@@ -7491,6 +7495,7 @@ function TemplateImportExportDialog({ isOpen, mode, onClose, currentDefinition,
|
|
|
7491
7495
|
return /* @__PURE__ */ jsx(Dialog, {
|
|
7492
7496
|
open: isOpen,
|
|
7493
7497
|
onOpenChange: (open) => !open && handleClose(),
|
|
7498
|
+
prepareReturnFocus,
|
|
7494
7499
|
children: /* @__PURE__ */ jsxs(DialogContent, {
|
|
7495
7500
|
className: "max-w-2xl",
|
|
7496
7501
|
children: [/* @__PURE__ */ jsxs(DialogHeader, { children: [/* @__PURE__ */ jsx(DialogTitle, { children: mode === "export" ? t("워크플로우 내보내기") : t("워크플로우 가져오기") }), /* @__PURE__ */ jsx(DialogDescription$1, { children: mode === "export" ? t("다시 가져올 수 있는 JSON 템플릿이나, 읽고 공유하기 위한 요약 문서로 내보냅니다.") : t("JSON 파일에서 워크플로우를 가져옵니다.") })] }), mode === "export" ? /* @__PURE__ */ jsxs("div", {
|
|
@@ -9630,19 +9635,17 @@ function useStepMutations({ steps, connections, history, findAdjacentStep, setSe
|
|
|
9630
9635
|
const newStep = _objectSpread2(_objectSpread2({}, stepData), {}, { id: createId() });
|
|
9631
9636
|
if (newStep.type !== "trigger") {
|
|
9632
9637
|
const adjacent = findAdjacentStep(newStep.position);
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
})) {
|
|
9637
|
-
const newConnection = {
|
|
9638
|
+
const plan = adjacent ? planAutoConnection(adjacent.step, newStep, connections) : null;
|
|
9639
|
+
if (adjacent && plan) {
|
|
9640
|
+
const newConnection = _objectSpread2({
|
|
9638
9641
|
id: createId(),
|
|
9639
9642
|
fromStepId: adjacent.step.id,
|
|
9640
9643
|
toStepId: newStep.id,
|
|
9641
9644
|
fromPosition: adjacent.step.position,
|
|
9642
9645
|
toPosition: newStep.position
|
|
9643
|
-
};
|
|
9646
|
+
}, plan.branchType ? { branchType: plan.branchType } : {});
|
|
9644
9647
|
addStep(newStep, newConnection);
|
|
9645
|
-
if (!silent) toast.success(t("스텝이 추가되고 자동으로 연결되었습니다."));
|
|
9648
|
+
if (!silent) toast.success(plan.branchType === "true" ? t("스텝이 추가되고 참 분기로 연결되었습니다.") : plan.branchType === "false" ? t("스텝이 추가되고 거짓 분기로 연결되었습니다.") : plan.branchType === "default" ? t("스텝이 추가되고 기본 분기로 연결되었습니다.") : t("스텝이 추가되고 자동으로 연결되었습니다."));
|
|
9646
9649
|
return {
|
|
9647
9650
|
steps: [...steps, newStep],
|
|
9648
9651
|
connections: [...connections, newConnection]
|
|
@@ -11505,17 +11508,19 @@ function GridWorkflowEditorInner({ workflowId, bridge, menuExtras, reserveLeadin
|
|
|
11505
11508
|
isOpen: ui.importExportDialog.isOpen,
|
|
11506
11509
|
mode: ui.importExportDialog.mode,
|
|
11507
11510
|
onClose: ui.closeImportExportDialog,
|
|
11508
|
-
currentDefinition: {
|
|
11511
|
+
currentDefinition: _objectSpread2({
|
|
11509
11512
|
steps,
|
|
11510
11513
|
connections,
|
|
11511
11514
|
gridSize: Math.max(bounds.rows, bounds.cols)
|
|
11512
|
-
},
|
|
11515
|
+
}, testParams ? { testParams } : {}),
|
|
11513
11516
|
currentName: workflowName,
|
|
11517
|
+
prepareReturnFocus: focusCanvas,
|
|
11514
11518
|
onImport: (definition, metadata) => {
|
|
11515
11519
|
initializeState({
|
|
11516
11520
|
steps: definition.steps,
|
|
11517
11521
|
connections: definition.connections
|
|
11518
11522
|
});
|
|
11523
|
+
setTestParams(definition.testParams);
|
|
11519
11524
|
if (metadata === null || metadata === void 0 ? void 0 : metadata.name) setWorkflowName(metadata.name);
|
|
11520
11525
|
toast.success(t("템플릿을 가져왔습니다."));
|
|
11521
11526
|
}
|
package/dist/mock.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_test_executor = require("./test-executor-
|
|
2
|
+
const require_test_executor = require("./test-executor-DkBxQ-2s.cjs");
|
|
3
3
|
const require_ai_stream = require("./ai-stream-B_lk9_Rf.cjs");
|
|
4
4
|
const require_end_node_ids = require("./end-node-ids-D6WBaCLm.cjs");
|
|
5
5
|
const require_define_template = require("./define-template-Bmn96lF_.cjs");
|
package/dist/mock.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createId, r as executeTestMode } from "./test-executor-
|
|
1
|
+
import { a as createId, r as executeTestMode } from "./test-executor-hX0VIrtP.js";
|
|
2
2
|
import { s as parseGridWorkflowDefinitionStrict, t as AI_TEXT_STREAM_NAMESPACE } from "./ai-stream-APc3uCiQ.js";
|
|
3
3
|
import { r as _objectSpread2 } from "./end-node-ids-p85jFEcP.js";
|
|
4
4
|
import { t as defineTemplate } from "./define-template-BvGNB5Tv.js";
|
package/dist/simulate.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_test_executor = require("./test-executor-
|
|
2
|
+
const require_test_executor = require("./test-executor-DkBxQ-2s.cjs");
|
|
3
3
|
exports.TestExecutor = require_test_executor.TestExecutor;
|
|
4
4
|
exports.analyzeExecutionPaths = require_test_executor.analyzeExecutionPaths;
|
|
5
5
|
exports.executeTestMode = require_test_executor.executeTestMode;
|
package/dist/simulate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as TestExecutor, n as analyzeExecutionPaths, r as executeTestMode, i as validateWorkflow } from "./test-executor-
|
|
1
|
+
export { t as TestExecutor, n as analyzeExecutionPaths, r as executeTestMode, i as validateWorkflow } from "./test-executor-hX0VIrtP.js";
|