@loopstack/loopstack-studio 0.29.4 → 0.30.0
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/_virtual/rolldown_runtime.js +3 -1
- package/dist/api/config.js +5 -4
- package/dist/api/environments.js +5 -1
- package/dist/api/processor.js +4 -1
- package/dist/app/EnvironmentEmbedRoot.js +22 -30
- package/dist/components/ai-elements/code-block.js +4 -4
- package/dist/components/dynamic-form/CodeContent.js +1 -1
- package/dist/components/dynamic-form/Form.js +31 -51
- package/dist/components/dynamic-form/FormBody.js +1 -1
- package/dist/components/motion/FadeIn.js +72 -0
- package/dist/components/motion/StreamingText.js +49 -0
- package/dist/components/ui/accordion.js +2 -2
- package/dist/components/ui-widgets/UiWidget.js +11 -10
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +31 -28
- package/dist/events/sse-client-events.js +7 -1
- package/dist/features/code-explorer/components/FileContentViewer.js +2 -2
- package/dist/features/debug/components/WorkflowFlowViewer.js +49 -51
- package/dist/features/documents/DocumentRenderer.js +18 -17
- package/dist/features/documents/components/DocumentItem.js +42 -20
- package/dist/features/documents/components/DocumentList.js +34 -36
- package/dist/features/documents/components/DocumentMetadataPills.js +102 -49
- package/dist/features/documents/document-details/DocumentDetails.js +577 -377
- package/dist/features/documents/document-details/PromptDetails.js +118 -130
- package/dist/features/documents/document-details/document-debug-utils.js +100 -0
- package/dist/features/documents/renderers/ChoicesRenderer.js +41 -38
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +31 -28
- package/dist/features/documents/renderers/DocumentFormRenderer.js +62 -70
- package/dist/features/documents/renderers/LlmMessage.js +52 -47
- package/dist/features/documents/renderers/TextPromptRenderer.js +32 -29
- package/dist/features/documents/renderers/useDocumentTransition.js +4 -4
- package/dist/features/feature-registry/FeatureRegistryProvider.js +32 -10
- package/dist/features/feature-registry/available-features.js +12 -0
- package/dist/features/feature-registry/index.js +2 -1
- package/dist/features/file-explorer/components/FileExplorerPanel.js +55 -51
- package/dist/features/git/components/GitBranchBadge.js +31 -0
- package/dist/features/git/components/GitCommitList.js +46 -0
- package/dist/features/git/components/GitRemoteStatus.js +84 -0
- package/dist/features/git/components/WorkbenchGitPanel.js +81 -0
- package/dist/features/git/git-feature.js +12 -0
- package/dist/features/git/hooks/useGit.js +78 -0
- package/dist/features/git/index.js +1 -0
- package/dist/features/oauth/OAuthPromptRenderer.js +137 -142
- package/dist/features/runs/Runs.js +4 -4
- package/dist/features/secrets/components/WorkbenchSecretsPanel.js +1 -1
- package/dist/features/secrets/renderers/SecretInputRenderer.js +30 -29
- package/dist/features/workbench/Workbench.js +25 -33
- package/dist/features/workbench/WorkflowItem.js +9 -9
- package/dist/features/workbench/WorkflowList.js +61 -62
- package/dist/features/workbench/components/NewRunDialog.js +237 -209
- package/dist/features/workbench/components/RecentRunItem.js +3 -3
- package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +8 -8
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +1 -1
- package/dist/features/workbench/components/WorkbenchSidebarShell.js +3 -3
- package/dist/features/workbench/components/WorkflowForms.js +11 -10
- package/dist/features/workbench/components/WorkflowHistoryItem.js +16 -36
- package/dist/features/workbench/components/WorkflowHistoryList.js +19 -17
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +3 -3
- package/dist/features/workbench/hooks/useLlmStreamingDocuments.js +159 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +58 -31
- package/dist/features/workbench/index.js +2 -2
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +53 -53
- package/dist/features/workspaces/Workspaces.js +134 -125
- package/dist/features/workspaces/components/CreateWorkspace.js +115 -107
- package/dist/features/workspaces/components/ExecutionTimeline.js +2 -2
- package/dist/features/workspaces/components/WorkflowRunForm.js +127 -104
- package/dist/features/workspaces/components/WorkspaceHomePage.js +6 -89
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +1 -1
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +15 -15
- package/dist/hooks/index.js +3 -2
- package/dist/hooks/query-keys.js +43 -30
- package/dist/hooks/useConfig.js +28 -22
- package/dist/hooks/useEnvironments.js +27 -2
- package/dist/hooks/useProcessor.js +14 -1
- package/dist/hooks/useWorkflows.js +4 -4
- package/dist/index.d.ts +116 -15
- package/dist/index.js +9 -8
- package/dist/node_modules/d3/src/index.js +13 -13
- package/dist/node_modules/d3-scale/src/continuous.js +16 -16
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-3BPJPVTR.js +43 -43
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.js +270 -270
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.js +90 -90
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3OPIFGDE.js +458 -458
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5ZQYHXKU.js +37 -37
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-727SXJPM.js +208 -208
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KSCS5N6A.js +145 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ND2GUHAM.js +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.js +41 -41
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WU5MYG2G.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +6 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +30 -30
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OG6HWLK6.js +82 -82
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-TEJ5UH35.js +65 -65
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-I6XJVG4X.js +227 -227
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-6RSMTGT7.js +104 -104
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.js +104 -104
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-JHISSGLW.js +49 -49
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-W4KKPZXB.js +101 -101
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-5OEKKPKP.js +20 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js +354 -354
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-AJRCARHV.js +53 -53
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-PNZ67QCA.js +113 -113
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-CIIHVFJN.js +90 -90
- package/dist/node_modules/mermaid/dist/mermaid.core.js +156 -156
- package/dist/node_modules/motion/dist/es/react.js +9 -2
- package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
- package/dist/pages/DebugWorkflowsPage.js +76 -106
- package/dist/pages/EmbedWorkbenchPage.js +1 -1
- package/dist/pages/PreviewWorkbenchPage.js +6 -6
- package/dist/pages/WorkbenchPage.js +43 -47
- package/dist/pages/WorkflowDebugPage.js +6 -12
- package/dist/pages/WorkspacePage.js +40 -66
- package/dist/pages/WorkspaceRunsPage.js +24 -31
- package/package.json +2 -2
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { useWorkspace } from "../../hooks/useWorkspaces.js";
|
|
2
1
|
import PageBreadcrumbs_default from "../../components/page/PageBreadcrumbs.js";
|
|
3
|
-
import { WorkbenchLayoutProvider } from "./providers/WorkbenchLayoutProvider.js";
|
|
4
|
-
import { WorkbenchSidebarShell } from "./components/WorkbenchSidebarShell.js";
|
|
5
2
|
import WorkflowList_default from "./WorkflowList.js";
|
|
6
3
|
import { ScrollProvider } from "./providers/ScrollProvider.js";
|
|
4
|
+
import { WorkbenchLayoutProvider } from "./providers/WorkbenchLayoutProvider.js";
|
|
5
|
+
import { WorkbenchSidebarShell } from "./components/WorkbenchSidebarShell.js";
|
|
7
6
|
import { c } from "react/compiler-runtime";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
function WorkbenchContent(
|
|
10
|
-
let
|
|
11
|
-
|
|
8
|
+
function WorkbenchContent(a) {
|
|
9
|
+
let o = c(7), { workflow: l, breadcrumbData: u } = a, d;
|
|
10
|
+
o[0] === u ? d = o[1] : (d = /* @__PURE__ */ jsx("div", {
|
|
12
11
|
className: "border-b flex h-12 shrink-0 items-center",
|
|
13
12
|
children: u ? /* @__PURE__ */ jsx(PageBreadcrumbs_default, { breadcrumbData: u }) : /* @__PURE__ */ jsx("span", {
|
|
14
13
|
className: "px-3 text-sm font-medium",
|
|
15
14
|
children: "Workflows"
|
|
16
15
|
})
|
|
17
|
-
}),
|
|
16
|
+
}), o[0] = u, o[1] = d);
|
|
18
17
|
let f;
|
|
19
|
-
|
|
18
|
+
o[2] === l ? f = o[3] : (f = /* @__PURE__ */ jsx(ScrollProvider, { children: /* @__PURE__ */ jsx("div", {
|
|
20
19
|
className: "flex-1 overflow-auto",
|
|
21
|
-
children: /* @__PURE__ */ jsx(WorkflowList_default, { workflow:
|
|
22
|
-
}) }),
|
|
20
|
+
children: /* @__PURE__ */ jsx(WorkflowList_default, { workflow: l })
|
|
21
|
+
}) }), o[2] = l, o[3] = f);
|
|
23
22
|
let p;
|
|
24
|
-
return
|
|
23
|
+
return o[4] !== d || o[5] !== f ? (p = /* @__PURE__ */ jsx("div", {
|
|
25
24
|
className: "flex h-full flex-col",
|
|
26
25
|
children: /* @__PURE__ */ jsx("div", {
|
|
27
26
|
className: "flex flex-1 gap-4 overflow-hidden md:flex-row flex-col",
|
|
@@ -30,28 +29,21 @@ function WorkbenchContent(e) {
|
|
|
30
29
|
children: [d, f]
|
|
31
30
|
})
|
|
32
31
|
})
|
|
33
|
-
}),
|
|
32
|
+
}), o[4] = d, o[5] = f, o[6] = p) : p = o[6], p;
|
|
34
33
|
}
|
|
35
|
-
function Workbench(
|
|
36
|
-
let
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
let
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
workflow: s,
|
|
50
|
-
workspaceConfig: _,
|
|
51
|
-
getPreviewUrl: d,
|
|
52
|
-
getEnvironmentPreviewUrl: f,
|
|
53
|
-
environments: v,
|
|
54
|
-
children: y
|
|
55
|
-
}), o[5] = f, o[6] = d, o[7] = v, o[8] = y, o[9] = s, o[10] = _, o[11] = m, o[12] = b) : b = o[12], b;
|
|
34
|
+
function Workbench(e) {
|
|
35
|
+
let r = c(9), { workflow: i, breadcrumbData: s, getPreviewUrl: u, getEnvironmentPreviewUrl: d } = e, f = i?.workspaceId, p;
|
|
36
|
+
r[0] !== s || r[1] !== i ? (p = /* @__PURE__ */ jsx(WorkbenchSidebarShell, { children: /* @__PURE__ */ jsx(WorkbenchContent, {
|
|
37
|
+
workflow: i,
|
|
38
|
+
breadcrumbData: s
|
|
39
|
+
}) }), r[0] = s, r[1] = i, r[2] = p) : p = r[2];
|
|
40
|
+
let m;
|
|
41
|
+
return r[3] !== d || r[4] !== u || r[5] !== p || r[6] !== i || r[7] !== f ? (m = /* @__PURE__ */ jsx(WorkbenchLayoutProvider, {
|
|
42
|
+
workspaceId: f,
|
|
43
|
+
workflow: i,
|
|
44
|
+
getPreviewUrl: u,
|
|
45
|
+
getEnvironmentPreviewUrl: d,
|
|
46
|
+
children: p
|
|
47
|
+
}), r[3] = d, r[4] = u, r[5] = p, r[6] = i, r[7] = f, r[8] = m) : m = r[8], m;
|
|
56
48
|
}
|
|
57
49
|
export { Workbench as default };
|
|
@@ -50,18 +50,17 @@ var WorkflowItem_default = (h) => {
|
|
|
50
50
|
let J;
|
|
51
51
|
g[25] === N ? J = g[26] : (J = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: N }), g[25] = N, g[26] = J);
|
|
52
52
|
let Y;
|
|
53
|
-
g[27] !== E || g[28] !== A || g[29] !==
|
|
53
|
+
g[27] !== E || g[28] !== A || g[29] !== y || g[30] !== b || g[31] !== _ || g[32] !== O ? (Y = O && E && /* @__PURE__ */ jsx(DocumentList_default, {
|
|
54
54
|
workflow: _,
|
|
55
55
|
childWorkflow: E,
|
|
56
56
|
documents: A,
|
|
57
57
|
scrollTo: y,
|
|
58
|
-
settings: b
|
|
59
|
-
|
|
60
|
-
}), g[27] = E, g[28] = A, g[29] = P, g[30] = y, g[31] = b, g[32] = _, g[33] = O, g[34] = Y) : Y = g[34];
|
|
58
|
+
settings: b
|
|
59
|
+
}), g[27] = E, g[28] = A, g[29] = y, g[30] = b, g[31] = _, g[32] = O, g[33] = Y) : Y = g[33];
|
|
61
60
|
let X;
|
|
62
|
-
g[
|
|
61
|
+
g[34] === P ? X = g[35] : (X = /* @__PURE__ */ jsx(LoadingCentered_default, { loading: P }), g[34] = P, g[35] = X);
|
|
63
62
|
let Z;
|
|
64
|
-
g[
|
|
63
|
+
g[36] !== V || g[37] !== E?.hasError || g[38] !== U || g[39] !== w.isPending || g[40] !== k ? (Z = k && E?.hasError && /* @__PURE__ */ jsxs("div", {
|
|
65
64
|
className: "mt-3 flex items-center gap-2 px-1",
|
|
66
65
|
children: [
|
|
67
66
|
/* @__PURE__ */ jsx(AlertCircle, { className: "text-destructive h-4 w-4 shrink-0" }),
|
|
@@ -77,16 +76,17 @@ var WorkflowItem_default = (h) => {
|
|
|
77
76
|
children: [w.isPending ? /* @__PURE__ */ jsx("div", { className: "mr-1 h-3.5 w-3.5 animate-spin rounded-full border-2 border-current border-t-transparent" }) : /* @__PURE__ */ jsx(RefreshCw, { className: "mr-1 h-3.5 w-3.5" }), "Retry"]
|
|
78
77
|
})
|
|
79
78
|
]
|
|
80
|
-
}), g[
|
|
79
|
+
}), g[36] = V, g[37] = E?.hasError, g[38] = U, g[39] = w.isPending, g[40] = k, g[41] = Z) : Z = g[41];
|
|
81
80
|
let Q;
|
|
82
|
-
g[
|
|
81
|
+
g[42] !== E || g[43] !== F || g[44] !== P || g[45] !== _ ? (Q = !!E && /* @__PURE__ */ jsx("div", {
|
|
83
82
|
className: "mt-6",
|
|
84
83
|
children: /* @__PURE__ */ jsx(WorkflowForms_default, {
|
|
85
84
|
workflow: E,
|
|
86
85
|
parentWorkflow: _,
|
|
86
|
+
isLoading: P,
|
|
87
87
|
onSubmit: F
|
|
88
88
|
})
|
|
89
|
-
}), g[
|
|
89
|
+
}), g[42] = E, g[43] = F, g[44] = P, g[45] = _, g[46] = Q) : Q = g[46];
|
|
90
90
|
let $;
|
|
91
91
|
return g[47] !== J || g[48] !== Y || g[49] !== X || g[50] !== Z || g[51] !== Q || g[52] !== G || g[53] !== q ? ($ = /* @__PURE__ */ jsxs("div", {
|
|
92
92
|
className: G,
|
|
@@ -14,34 +14,34 @@ import { c } from "react/compiler-runtime";
|
|
|
14
14
|
import React, { useState } from "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { ArrowDownIcon, ListOrdered, Workflow } from "lucide-react";
|
|
17
|
-
var WorkflowList_default = (
|
|
18
|
-
let
|
|
19
|
-
|
|
17
|
+
var WorkflowList_default = (S) => {
|
|
18
|
+
let C = c(43), { workflow: w } = S, [T, E] = useState(!1), D;
|
|
19
|
+
C[0] === Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
20
20
|
enableDebugMode: !1,
|
|
21
21
|
showFullMessageHistory: !1
|
|
22
|
-
},
|
|
23
|
-
let [
|
|
24
|
-
|
|
25
|
-
let
|
|
26
|
-
|
|
22
|
+
}, C[0] = D) : D = C[0];
|
|
23
|
+
let [O, k] = useState(D), { listRef: A, scrollTo: j, canScrollDown: M, scrollToBottom: N } = useWorkflowListState(), P = useWorkflowConfigByName(w.workflowName), F = useChildWorkflows(w.id), I;
|
|
24
|
+
C[1] === F.data ? I = C[2] : (I = F.data ?? [], C[1] = F.data, C[2] = I);
|
|
25
|
+
let L = I, R;
|
|
26
|
+
C[3] !== M || C[4] !== N ? (R = M && /* @__PURE__ */ jsx(Button, {
|
|
27
27
|
variant: "outline",
|
|
28
28
|
size: "icon",
|
|
29
|
-
onClick:
|
|
29
|
+
onClick: N,
|
|
30
30
|
className: "bg-background/80 fixed right-[calc(var(--sidebar-width)+1.5rem)] bottom-6 z-50 rounded-full shadow-md backdrop-blur-sm",
|
|
31
31
|
children: /* @__PURE__ */ jsx(ArrowDownIcon, { className: "size-4" })
|
|
32
|
-
}),
|
|
33
|
-
let
|
|
34
|
-
|
|
32
|
+
}), C[3] = M, C[4] = N, C[5] = R) : R = C[5];
|
|
33
|
+
let z = P.data?.title ?? w.workflowName, B;
|
|
34
|
+
C[6] === z ? B = C[7] : (B = /* @__PURE__ */ jsx("span", {
|
|
35
35
|
className: "flex-1 truncate text-sm",
|
|
36
|
-
children:
|
|
37
|
-
}),
|
|
36
|
+
children: z
|
|
37
|
+
}), C[6] = z, C[7] = B);
|
|
38
|
+
let V;
|
|
39
|
+
C[8] === w ? V = C[9] : (V = /* @__PURE__ */ jsx(WorkflowButtons_default, {
|
|
40
|
+
workflow: w,
|
|
41
|
+
workflowId: w.id
|
|
42
|
+
}), C[8] = w, C[9] = V);
|
|
38
43
|
let H;
|
|
39
|
-
|
|
40
|
-
workflow: T,
|
|
41
|
-
workflowId: T.id
|
|
42
|
-
}), w[8] = T, w[9] = H);
|
|
43
|
-
let U;
|
|
44
|
-
w[10] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
44
|
+
C[10] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
45
45
|
asChild: !0,
|
|
46
46
|
children: /* @__PURE__ */ jsx(DialogTrigger, {
|
|
47
47
|
asChild: !0,
|
|
@@ -52,19 +52,19 @@ var WorkflowList_default = (C) => {
|
|
|
52
52
|
children: /* @__PURE__ */ jsx(ListOrdered, { className: "h-5 w-5" })
|
|
53
53
|
})
|
|
54
54
|
})
|
|
55
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Run Log" })] }),
|
|
55
|
+
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Run Log" })] }), C[10] = H) : H = C[10];
|
|
56
|
+
let U;
|
|
57
|
+
C[11] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Run Log" }) }), C[11] = U) : U = C[11];
|
|
56
58
|
let W;
|
|
57
|
-
|
|
58
|
-
let G;
|
|
59
|
-
w[12] === T ? G = w[13] : (G = /* @__PURE__ */ jsxs(Dialog, { children: [U, /* @__PURE__ */ jsxs(DialogContent, {
|
|
59
|
+
C[12] === w ? W = C[13] : (W = /* @__PURE__ */ jsxs(Dialog, { children: [H, /* @__PURE__ */ jsxs(DialogContent, {
|
|
60
60
|
className: "sm:max-w-lg max-h-[80vh] overflow-hidden flex flex-col",
|
|
61
|
-
children: [
|
|
61
|
+
children: [U, /* @__PURE__ */ jsx("div", {
|
|
62
62
|
className: "flex-1 overflow-auto",
|
|
63
|
-
children: /* @__PURE__ */ jsx(WorkflowHistoryList_default, { workflow:
|
|
63
|
+
children: /* @__PURE__ */ jsx(WorkflowHistoryList_default, { workflow: w })
|
|
64
64
|
})]
|
|
65
|
-
})] }),
|
|
66
|
-
let
|
|
67
|
-
|
|
65
|
+
})] }), C[12] = w, C[13] = W);
|
|
66
|
+
let G;
|
|
67
|
+
C[14] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
68
68
|
asChild: !0,
|
|
69
69
|
children: /* @__PURE__ */ jsx(DialogTrigger, {
|
|
70
70
|
asChild: !0,
|
|
@@ -75,62 +75,61 @@ var WorkflowList_default = (C) => {
|
|
|
75
75
|
children: /* @__PURE__ */ jsx(Workflow, { className: "h-5 w-5" })
|
|
76
76
|
})
|
|
77
77
|
})
|
|
78
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Graph" })] }),
|
|
78
|
+
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Graph" })] }), C[14] = G) : G = C[14];
|
|
79
|
+
let K;
|
|
80
|
+
C[15] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Graph" }) }), C[15] = K) : K = C[15];
|
|
79
81
|
let q;
|
|
80
|
-
|
|
82
|
+
C[16] !== L || C[17] !== w ? (q = [w, ...L], C[16] = L, C[17] = w, C[18] = q) : q = C[18];
|
|
81
83
|
let J;
|
|
82
|
-
|
|
84
|
+
C[19] !== P.data || C[20] !== q || C[21] !== w.id ? (J = /* @__PURE__ */ jsxs(Dialog, { children: [G, /* @__PURE__ */ jsxs(DialogContent, {
|
|
83
85
|
className: "sm:max-w-4xl h-[70vh] overflow-hidden flex flex-col",
|
|
84
|
-
children: [
|
|
86
|
+
children: [K, /* @__PURE__ */ jsx("div", {
|
|
85
87
|
className: "flex-1 overflow-hidden",
|
|
86
|
-
children:
|
|
87
|
-
workflowId:
|
|
88
|
-
workflows:
|
|
89
|
-
workflowConfig:
|
|
90
|
-
}) })
|
|
91
|
-
className: "text-muted-foreground flex h-full items-center justify-center text-sm",
|
|
92
|
-
children: "No workflows found"
|
|
93
|
-
})
|
|
88
|
+
children: /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @__PURE__ */ jsx(WorkflowFlowViewer_default, {
|
|
89
|
+
workflowId: w.id,
|
|
90
|
+
workflows: q,
|
|
91
|
+
workflowConfig: P.data
|
|
92
|
+
}) })
|
|
94
93
|
})]
|
|
95
|
-
})] }),
|
|
94
|
+
})] }), C[19] = P.data, C[20] = q, C[21] = w.id, C[22] = J) : J = C[22];
|
|
96
95
|
let Y;
|
|
97
|
-
|
|
98
|
-
settings:
|
|
99
|
-
onSettingsChange:
|
|
100
|
-
open:
|
|
101
|
-
onOpenChange:
|
|
102
|
-
}),
|
|
96
|
+
C[23] !== T || C[24] !== O ? (Y = /* @__PURE__ */ jsx(WorkbenchSettingsModal_default, {
|
|
97
|
+
settings: O,
|
|
98
|
+
onSettingsChange: k,
|
|
99
|
+
open: T,
|
|
100
|
+
onOpenChange: E
|
|
101
|
+
}), C[23] = T, C[24] = O, C[25] = Y) : Y = C[25];
|
|
103
102
|
let X;
|
|
104
|
-
|
|
103
|
+
C[26] !== J || C[27] !== Y || C[28] !== B || C[29] !== V || C[30] !== W ? (X = /* @__PURE__ */ jsx("div", {
|
|
105
104
|
className: "bg-background/95 supports-[backdrop-filter]:bg-background/60 sticky top-0 z-10 backdrop-blur",
|
|
106
105
|
children: /* @__PURE__ */ jsxs("div", {
|
|
107
106
|
className: "flex w-full items-center gap-2 rounded-md p-2 px-3 text-left text-sm font-medium",
|
|
108
107
|
children: [
|
|
108
|
+
B,
|
|
109
109
|
V,
|
|
110
|
-
|
|
111
|
-
G,
|
|
110
|
+
W,
|
|
112
111
|
J,
|
|
113
112
|
Y
|
|
114
113
|
]
|
|
115
114
|
})
|
|
116
|
-
}),
|
|
115
|
+
}), C[26] = J, C[27] = Y, C[28] = B, C[29] = V, C[30] = W, C[31] = X) : X = C[31];
|
|
117
116
|
let Z;
|
|
118
|
-
|
|
117
|
+
C[32] !== j || C[33] !== O || C[34] !== w ? (Z = /* @__PURE__ */ jsx("div", {
|
|
119
118
|
className: "max-w-4xl py-1",
|
|
120
119
|
children: /* @__PURE__ */ jsx(WorkflowItem_default, {
|
|
121
|
-
workflow:
|
|
122
|
-
workflowId:
|
|
123
|
-
scrollTo:
|
|
124
|
-
settings:
|
|
120
|
+
workflow: w,
|
|
121
|
+
workflowId: w.id,
|
|
122
|
+
scrollTo: j,
|
|
123
|
+
settings: O
|
|
125
124
|
})
|
|
126
|
-
}),
|
|
125
|
+
}), C[32] = j, C[33] = O, C[34] = w, C[35] = Z) : Z = C[35];
|
|
127
126
|
let Q;
|
|
128
|
-
|
|
127
|
+
C[36] !== A || C[37] !== X || C[38] !== Z ? (Q = /* @__PURE__ */ jsxs("div", {
|
|
129
128
|
className: "mb-10",
|
|
130
|
-
ref:
|
|
129
|
+
ref: A,
|
|
131
130
|
children: [X, Z]
|
|
132
|
-
}),
|
|
131
|
+
}), C[36] = A, C[37] = X, C[38] = Z, C[39] = Q) : Q = C[39];
|
|
133
132
|
let $;
|
|
134
|
-
return
|
|
133
|
+
return C[40] !== Q || C[41] !== R ? ($ = /* @__PURE__ */ jsxs("div", { children: [R, Q] }), C[40] = Q, C[41] = R, C[42] = $) : $ = C[42], $;
|
|
135
134
|
};
|
|
136
135
|
export { WorkflowList_default as default };
|