@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,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCreateWorkflow } from "../../../hooks/useWorkflows.js";
|
|
1
|
+
import { useAppsConfig } from "../../../hooks/useConfig.js";
|
|
3
2
|
import { useFilterWorkspaces } from "../../../hooks/useWorkspaces.js";
|
|
4
3
|
import { useComponentOverrides } from "../../../providers/ComponentOverridesProvider.js";
|
|
5
4
|
import { Button } from "../../../components/ui/button.js";
|
|
@@ -8,322 +7,351 @@ import { Dialog, DialogContent, DialogTitle } from "../../../components/ui/dialo
|
|
|
8
7
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../components/ui/select.js";
|
|
9
8
|
import ErrorSnackbar_default from "../../../components/feedback/ErrorSnackbar.js";
|
|
10
9
|
import CreateWorkspace_default from "../../workspaces/components/CreateWorkspace.js";
|
|
10
|
+
import { useStartWorkflow } from "../../../hooks/useProcessor.js";
|
|
11
11
|
import Form_default from "../../../components/dynamic-form/Form.js";
|
|
12
|
-
import { useRunWorkflow } from "../../../hooks/useProcessor.js";
|
|
13
12
|
import "../../workspaces/index.js";
|
|
14
13
|
import { c } from "react/compiler-runtime";
|
|
15
|
-
import {
|
|
14
|
+
import { useEffect, useMemo, useState } from "react";
|
|
16
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
16
|
import { Check, CheckIcon, ChevronDown, Loader2, Plus } from "lucide-react";
|
|
18
17
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
19
18
|
import { useForm } from "react-hook-form";
|
|
20
19
|
function NewRunDialog(e) {
|
|
21
|
-
let t = c(8), { open: n, onOpenChange: r, onSuccess:
|
|
22
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
23
|
-
let
|
|
24
|
-
t[1] !==
|
|
20
|
+
let t = c(8), { open: n, onOpenChange: r, onSuccess: ce } = e, i;
|
|
21
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ jsx(DialogTitle, { children: "New Run" }), t[0] = i) : i = t[0];
|
|
22
|
+
let a;
|
|
23
|
+
t[1] !== ce || t[2] !== n ? (a = /* @__PURE__ */ jsxs(DialogContent, {
|
|
25
24
|
className: "max-h-[80vh] min-h-[300px] !max-w-2xl",
|
|
26
|
-
children: [
|
|
25
|
+
children: [i, /* @__PURE__ */ jsx(NewRunDialogContent, {
|
|
27
26
|
open: n,
|
|
28
|
-
onSuccess:
|
|
27
|
+
onSuccess: ce
|
|
29
28
|
})]
|
|
30
|
-
}), t[1] =
|
|
31
|
-
let
|
|
32
|
-
return t[4] !== r || t[5] !== n || t[6] !==
|
|
29
|
+
}), t[1] = ce, t[2] = n, t[3] = a) : a = t[3];
|
|
30
|
+
let u;
|
|
31
|
+
return t[4] !== r || t[5] !== n || t[6] !== a ? (u = /* @__PURE__ */ jsx(Dialog, {
|
|
33
32
|
open: n,
|
|
34
33
|
onOpenChange: r,
|
|
35
|
-
children:
|
|
36
|
-
}), t[4] = r, t[5] = n, t[6] =
|
|
34
|
+
children: a
|
|
35
|
+
}), t[4] = r, t[5] = n, t[6] = a, t[7] = u) : u = t[7], u;
|
|
37
36
|
}
|
|
38
|
-
function NewRunDialogContent(
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
let
|
|
42
|
-
|
|
43
|
-
let
|
|
44
|
-
if (
|
|
37
|
+
function NewRunDialogContent(ce) {
|
|
38
|
+
let i = c(116), { open: a, onSuccess: o } = ce, [s, l] = useState("workspace"), [d, h] = useState(!1), [_, v] = useState(""), [y, x] = useState(""), { CreateWorkspace: C } = useComponentOverrides(), w = C ?? CreateWorkspace_default, T = useAppsConfig(), he;
|
|
39
|
+
i[0] === Symbol.for("react.memo_cache_sentinel") ? (he = {}, i[0] = he) : he = i[0];
|
|
40
|
+
let E = useFilterWorkspaces(void 0, he, "title", "ASC", 0, 100), ge;
|
|
41
|
+
i[1] === E.data?.data ? ge = i[2] : (ge = E.data?.data ?? [], i[1] = E.data?.data, i[2] = ge);
|
|
42
|
+
let D = ge, _e;
|
|
43
|
+
if (i[3] !== _ || i[4] !== D) {
|
|
45
44
|
let e;
|
|
46
|
-
|
|
47
|
-
} else
|
|
48
|
-
let
|
|
49
|
-
s[8] === w.data ? Ce = s[9] : (Ce = w.data ?? [], s[8] = w.data, s[9] = Ce);
|
|
50
|
-
let T = Ce, E = useCreateWorkflow(), D = useRunWorkflow(), O = E.isPending || D.isPending, k;
|
|
51
|
-
s[10] === Symbol.for("react.memo_cache_sentinel") ? (k = {
|
|
52
|
-
defaultValues: {},
|
|
53
|
-
mode: "onChange"
|
|
54
|
-
}, s[10] = k) : k = s[10];
|
|
55
|
-
let A = useForm(k), we;
|
|
45
|
+
i[6] === _ ? e = i[7] : (e = (e) => e.id === _, i[6] = _, i[7] = e), _e = D.find(e), i[3] = _, i[4] = D, i[5] = _e;
|
|
46
|
+
} else _e = i[5];
|
|
47
|
+
let O = _e, ve;
|
|
56
48
|
bb0: {
|
|
57
|
-
if (!
|
|
58
|
-
|
|
49
|
+
if (!O || !T.data) {
|
|
50
|
+
ve = void 0;
|
|
59
51
|
break bb0;
|
|
60
52
|
}
|
|
61
53
|
let e;
|
|
62
|
-
if (
|
|
54
|
+
if (i[8] !== T.data || i[9] !== O) {
|
|
55
|
+
let t;
|
|
56
|
+
i[11] === O ? t = i[12] : (t = (e) => e.appName === O.appName, i[11] = O, i[12] = t), e = T.data.find(t), i[8] = T.data, i[9] = O, i[10] = e;
|
|
57
|
+
} else e = i[10];
|
|
58
|
+
ve = e;
|
|
59
|
+
}
|
|
60
|
+
let ye = ve, be;
|
|
61
|
+
bb1: {
|
|
62
|
+
if (!ye) {
|
|
63
|
+
let e;
|
|
64
|
+
i[13] === Symbol.for("react.memo_cache_sentinel") ? (e = [], i[13] = e) : e = i[13], be = e;
|
|
65
|
+
break bb1;
|
|
66
|
+
}
|
|
67
|
+
be = ye.workflows;
|
|
68
|
+
}
|
|
69
|
+
let k = be, xe;
|
|
70
|
+
bb2: {
|
|
71
|
+
if (!T.data) {
|
|
72
|
+
let e;
|
|
73
|
+
i[14] === Symbol.for("react.memo_cache_sentinel") ? (e = [], i[14] = e) : e = i[14], xe = e;
|
|
74
|
+
break bb2;
|
|
75
|
+
}
|
|
76
|
+
let e;
|
|
77
|
+
i[15] === T.data ? e = i[16] : (e = T.data.map(_temp), i[15] = T.data, i[16] = e), xe = e;
|
|
78
|
+
}
|
|
79
|
+
let Se = xe, A = useStartWorkflow(), j = A.isPending, M;
|
|
80
|
+
i[17] === Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
81
|
+
defaultValues: {},
|
|
82
|
+
mode: "onChange"
|
|
83
|
+
}, i[17] = M) : M = i[17];
|
|
84
|
+
let N = useForm(M), Ce;
|
|
85
|
+
bb3: {
|
|
86
|
+
if (!y) {
|
|
87
|
+
Ce = void 0;
|
|
88
|
+
break bb3;
|
|
89
|
+
}
|
|
90
|
+
let e;
|
|
91
|
+
if (i[18] !== k || i[19] !== y) {
|
|
63
92
|
let t;
|
|
64
|
-
|
|
65
|
-
} else e =
|
|
66
|
-
|
|
93
|
+
i[21] === y ? t = i[22] : (t = (e) => e.workflowName === y, i[21] = y, i[22] = t), e = k.find(t), i[18] = k, i[19] = y, i[20] = e;
|
|
94
|
+
} else e = i[20];
|
|
95
|
+
Ce = e;
|
|
67
96
|
}
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
let F, Te;
|
|
75
|
-
s[23] !== y || s[24] !== T ? (Te = () => {
|
|
76
|
-
T.length > 0 && !T.find((e) => e.alias === y) && he(T[0].alias);
|
|
77
|
-
}, F = [T, y], s[23] = y, s[24] = T, s[25] = F, s[26] = Te) : (F = s[25], Te = s[26]), useEffect(Te, F);
|
|
97
|
+
let P = Ce, F = P?.schema, I = !!F, we;
|
|
98
|
+
i[23] === k ? we = i[24] : (we = k.map(_temp2), i[23] = k, i[24] = we);
|
|
99
|
+
let L = we, Te;
|
|
100
|
+
i[25] !== _ || i[26] !== D[0] || i[27] !== D.length ? (Te = () => {
|
|
101
|
+
!_ && D.length > 0 && v(D[0].id);
|
|
102
|
+
}, i[25] = _, i[26] = D[0], i[27] = D.length, i[28] = Te) : Te = i[28];
|
|
78
103
|
let Ee;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
let
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
let
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
s[52] === Symbol.for("react.memo_cache_sentinel") ? (Re = (e) => {
|
|
122
|
-
f((t) => t === e ? null : e);
|
|
123
|
-
}, s[52] = Re) : Re = s[52];
|
|
124
|
-
let ze = Re, Be = !!v, L = !!y, R = Be, Ve = L && M, z;
|
|
125
|
-
s[53] === E.error ? z = s[54] : (z = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: E.error }), s[53] = E.error, s[54] = z);
|
|
126
|
-
let B;
|
|
127
|
-
s[55] === D.error ? B = s[56] : (B = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: D.error }), s[55] = D.error, s[56] = B);
|
|
128
|
-
let He = Se?.title, Ue = d === "workspace", We = Be && d !== "workspace", Ge;
|
|
129
|
-
s[57] === Symbol.for("react.memo_cache_sentinel") ? (Ge = () => ze("workspace"), s[57] = Ge) : Ge = s[57];
|
|
104
|
+
i[29] !== _ || i[30] !== D ? (Ee = [D, _], i[29] = _, i[30] = D, i[31] = Ee) : Ee = i[31], useEffect(Te, Ee);
|
|
105
|
+
let De, Oe;
|
|
106
|
+
i[32] !== y || i[33] !== L ? (De = () => {
|
|
107
|
+
L.length > 0 && !L.find((e) => e.key === y) && x(L[0].key);
|
|
108
|
+
}, Oe = [L, y], i[32] = y, i[33] = L, i[34] = De, i[35] = Oe) : (De = i[34], Oe = i[35]), useEffect(De, Oe);
|
|
109
|
+
let ke;
|
|
110
|
+
i[36] !== N || i[37] !== a || i[38] !== A ? (ke = () => {
|
|
111
|
+
a || (l("workspace"), h(!1), v(""), x(""), N.reset({}), A.reset());
|
|
112
|
+
}, i[36] = N, i[37] = a, i[38] = A, i[39] = ke) : ke = i[39];
|
|
113
|
+
let Ae;
|
|
114
|
+
i[40] === a ? Ae = i[41] : (Ae = [a], i[40] = a, i[41] = Ae), useEffect(ke, Ae);
|
|
115
|
+
let je;
|
|
116
|
+
i[42] === Symbol.for("react.memo_cache_sentinel") ? (je = (e) => {
|
|
117
|
+
v(e), x(""), l("automation");
|
|
118
|
+
}, i[42] = je) : je = i[42];
|
|
119
|
+
let Me = je, Ne;
|
|
120
|
+
i[43] === N ? Ne = i[44] : (Ne = (e) => {
|
|
121
|
+
x(e), N.reset({});
|
|
122
|
+
}, i[43] = N, i[44] = Ne);
|
|
123
|
+
let Pe = Ne, Fe, Ie;
|
|
124
|
+
i[45] !== I || i[46] !== y ? (Fe = () => {
|
|
125
|
+
y && I && l("config");
|
|
126
|
+
}, Ie = [y, I], i[45] = I, i[46] = y, i[47] = Fe, i[48] = Ie) : (Fe = i[47], Ie = i[48]), useEffect(Fe, Ie);
|
|
127
|
+
let Le;
|
|
128
|
+
i[49] !== N || i[50] !== I || i[51] !== o || i[52] !== P || i[53] !== _ || i[54] !== A ? (Le = () => {
|
|
129
|
+
let e = (e) => {
|
|
130
|
+
!_ || !P || A.mutate({ payload: {
|
|
131
|
+
workflowName: P.workflowName,
|
|
132
|
+
workspaceId: _,
|
|
133
|
+
args: e ?? {}
|
|
134
|
+
} }, { onSuccess: (e) => o(e.workflowId) });
|
|
135
|
+
};
|
|
136
|
+
I ? N.handleSubmit((t) => e(t))() : e();
|
|
137
|
+
}, i[49] = N, i[50] = I, i[51] = o, i[52] = P, i[53] = _, i[54] = A, i[55] = Le) : Le = i[55];
|
|
138
|
+
let Re = Le, ze = !!_ && !!y, Be;
|
|
139
|
+
i[56] === Symbol.for("react.memo_cache_sentinel") ? (Be = (e) => {
|
|
140
|
+
l((t) => t === e ? null : e);
|
|
141
|
+
}, i[56] = Be) : Be = i[56];
|
|
142
|
+
let Ve = Be, He = !!_, R = !!y, z = He, Ue = R && I, B;
|
|
143
|
+
i[57] === A.error ? B = i[58] : (B = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: A.error }), i[57] = A.error, i[58] = B);
|
|
144
|
+
let We = O?.title, Ge = s === "workspace", Ke = He && s !== "workspace", qe;
|
|
145
|
+
i[59] === Symbol.for("react.memo_cache_sentinel") ? (qe = () => Ve("workspace"), i[59] = qe) : qe = i[59];
|
|
130
146
|
let V;
|
|
131
|
-
|
|
147
|
+
i[60] !== w || i[61] !== Se || i[62] !== _ || i[63] !== d || i[64] !== D ? (V = d ? /* @__PURE__ */ jsx("div", {
|
|
132
148
|
className: "pt-2",
|
|
133
|
-
children: /* @__PURE__ */ jsx(
|
|
134
|
-
types:
|
|
149
|
+
children: /* @__PURE__ */ jsx(w, {
|
|
150
|
+
types: Se,
|
|
135
151
|
onSuccess: () => {
|
|
136
|
-
|
|
152
|
+
h(!1);
|
|
137
153
|
}
|
|
138
154
|
})
|
|
139
155
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
140
156
|
className: "flex gap-2 pt-2",
|
|
141
157
|
children: [/* @__PURE__ */ jsxs(Select, {
|
|
142
|
-
value:
|
|
143
|
-
onValueChange:
|
|
158
|
+
value: _,
|
|
159
|
+
onValueChange: Me,
|
|
144
160
|
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
145
161
|
id: "workspace",
|
|
146
162
|
className: "flex-1",
|
|
147
163
|
children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select a workspace..." })
|
|
148
|
-
}), /* @__PURE__ */ jsx(SelectContent, { children:
|
|
164
|
+
}), /* @__PURE__ */ jsx(SelectContent, { children: D.map(_temp3) })]
|
|
149
165
|
}), /* @__PURE__ */ jsx(Button, {
|
|
150
166
|
variant: "outline",
|
|
151
|
-
onClick: () =>
|
|
167
|
+
onClick: () => h(!0),
|
|
152
168
|
className: "px-3",
|
|
153
169
|
title: "Create new workspace",
|
|
154
170
|
children: /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" })
|
|
155
171
|
})]
|
|
156
|
-
}),
|
|
172
|
+
}), i[60] = w, i[61] = Se, i[62] = _, i[63] = d, i[64] = D, i[65] = V) : V = i[65];
|
|
157
173
|
let H;
|
|
158
|
-
|
|
174
|
+
i[66] !== E.isLoading || i[67] !== We || i[68] !== Ge || i[69] !== Ke || i[70] !== V ? (H = /* @__PURE__ */ jsx(StepSection, {
|
|
159
175
|
step: 1,
|
|
160
176
|
title: "Select Workspace",
|
|
161
|
-
summary:
|
|
162
|
-
isActive:
|
|
163
|
-
isComplete:
|
|
177
|
+
summary: We,
|
|
178
|
+
isActive: Ge,
|
|
179
|
+
isComplete: Ke,
|
|
164
180
|
isEnabled: !0,
|
|
165
|
-
isLoading:
|
|
166
|
-
onToggle:
|
|
181
|
+
isLoading: E.isLoading,
|
|
182
|
+
onToggle: qe,
|
|
167
183
|
children: V
|
|
168
|
-
}),
|
|
184
|
+
}), i[66] = E.isLoading, i[67] = We, i[68] = Ge, i[69] = Ke, i[70] = V, i[71] = H) : H = i[71];
|
|
169
185
|
let U;
|
|
170
|
-
|
|
171
|
-
let
|
|
172
|
-
|
|
173
|
-
let
|
|
174
|
-
|
|
186
|
+
i[72] !== R || i[73] !== y || i[74] !== L ? (U = R ? L.find((e) => e.key === y)?.title ?? y : void 0, i[72] = R, i[73] = y, i[74] = L, i[75] = U) : U = i[75];
|
|
187
|
+
let Je = s === "automation", Ye = R && s !== "automation", Xe = T.isLoading, W;
|
|
188
|
+
i[76] === z ? W = i[77] : (W = () => z && Ve("automation"), i[76] = z, i[77] = W);
|
|
189
|
+
let G;
|
|
190
|
+
i[78] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ jsx(SelectTrigger, {
|
|
175
191
|
id: "automation",
|
|
176
192
|
className: "w-full",
|
|
177
193
|
children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select a workflow..." })
|
|
178
|
-
}),
|
|
179
|
-
let G;
|
|
180
|
-
s[77] === T ? G = s[78] : (G = T.map(_temp2), s[77] = T, s[78] = G);
|
|
194
|
+
}), i[78] = G) : G = i[78];
|
|
181
195
|
let K;
|
|
182
|
-
|
|
196
|
+
i[79] === L ? K = i[80] : (K = L.map(_temp4), i[79] = L, i[80] = K);
|
|
183
197
|
let q;
|
|
184
|
-
|
|
198
|
+
i[81] === K ? q = i[82] : (q = /* @__PURE__ */ jsx(SelectContent, { children: K }), i[81] = K, i[82] = q);
|
|
199
|
+
let J;
|
|
200
|
+
i[83] !== Pe || i[84] !== j || i[85] !== y || i[86] !== q ? (J = /* @__PURE__ */ jsx("div", {
|
|
185
201
|
className: "pt-2",
|
|
186
202
|
children: /* @__PURE__ */ jsxs(Select, {
|
|
187
203
|
value: y,
|
|
188
|
-
onValueChange:
|
|
189
|
-
disabled:
|
|
190
|
-
children: [
|
|
204
|
+
onValueChange: Pe,
|
|
205
|
+
disabled: j,
|
|
206
|
+
children: [G, q]
|
|
191
207
|
})
|
|
192
|
-
}),
|
|
193
|
-
let
|
|
194
|
-
|
|
208
|
+
}), i[83] = Pe, i[84] = j, i[85] = y, i[86] = q, i[87] = J) : J = i[87];
|
|
209
|
+
let Y;
|
|
210
|
+
i[88] !== z || i[89] !== T.isLoading || i[90] !== U || i[91] !== Je || i[92] !== Ye || i[93] !== W || i[94] !== J ? (Y = /* @__PURE__ */ jsx(StepSection, {
|
|
195
211
|
step: 2,
|
|
196
212
|
title: "Select Workflow",
|
|
197
213
|
summary: U,
|
|
198
|
-
isActive:
|
|
199
|
-
isComplete:
|
|
200
|
-
isEnabled:
|
|
201
|
-
isLoading:
|
|
214
|
+
isActive: Je,
|
|
215
|
+
isComplete: Ye,
|
|
216
|
+
isEnabled: z,
|
|
217
|
+
isLoading: Xe,
|
|
202
218
|
onToggle: W,
|
|
203
|
-
children:
|
|
204
|
-
}),
|
|
205
|
-
let
|
|
206
|
-
|
|
219
|
+
children: J
|
|
220
|
+
}), i[88] = z, i[89] = T.isLoading, i[90] = U, i[91] = Je, i[92] = Ye, i[93] = W, i[94] = J, i[95] = Y) : Y = i[95];
|
|
221
|
+
let X;
|
|
222
|
+
i[96] !== s || i[97] !== Ue || i[98] !== N || i[99] !== I || i[100] !== F ? (X = I && /* @__PURE__ */ jsx(StepSection, {
|
|
207
223
|
step: 3,
|
|
208
224
|
title: "Configuration",
|
|
209
|
-
isActive:
|
|
225
|
+
isActive: s === "config",
|
|
210
226
|
isComplete: !1,
|
|
211
|
-
isEnabled:
|
|
212
|
-
onToggle: () =>
|
|
227
|
+
isEnabled: Ue,
|
|
228
|
+
onToggle: () => Ue && Ve("config"),
|
|
213
229
|
children: /* @__PURE__ */ jsx("div", {
|
|
214
230
|
className: "max-h-72 overflow-y-auto pt-2",
|
|
215
|
-
children:
|
|
216
|
-
form:
|
|
217
|
-
schema:
|
|
218
|
-
ui: j.ui,
|
|
231
|
+
children: F && /* @__PURE__ */ jsx(Form_default, {
|
|
232
|
+
form: N,
|
|
233
|
+
schema: F,
|
|
219
234
|
disabled: !1,
|
|
220
235
|
viewOnly: !1
|
|
221
236
|
})
|
|
222
237
|
})
|
|
223
|
-
}),
|
|
224
|
-
let
|
|
225
|
-
|
|
238
|
+
}), i[96] = s, i[97] = Ue, i[98] = N, i[99] = I, i[100] = F, i[101] = X) : X = i[101];
|
|
239
|
+
let Z;
|
|
240
|
+
i[102] !== H || i[103] !== Y || i[104] !== X ? (Z = /* @__PURE__ */ jsxs("div", {
|
|
226
241
|
className: "space-y-2",
|
|
227
242
|
children: [
|
|
228
243
|
H,
|
|
229
|
-
|
|
230
|
-
|
|
244
|
+
Y,
|
|
245
|
+
X
|
|
231
246
|
]
|
|
232
|
-
}),
|
|
233
|
-
let
|
|
234
|
-
|
|
235
|
-
let
|
|
236
|
-
|
|
247
|
+
}), i[102] = H, i[103] = Y, i[104] = X, i[105] = Z) : Z = i[105];
|
|
248
|
+
let Ze = !ze || j, Q;
|
|
249
|
+
i[106] === j ? Q = i[107] : (Q = j && /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }), i[106] = j, i[107] = Q);
|
|
250
|
+
let $;
|
|
251
|
+
i[108] !== Re || i[109] !== Ze || i[110] !== Q ? ($ = /* @__PURE__ */ jsx("div", {
|
|
237
252
|
className: "mt-4 flex justify-end border-t pt-4",
|
|
238
253
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
239
254
|
variant: "default",
|
|
240
|
-
disabled:
|
|
241
|
-
onClick:
|
|
255
|
+
disabled: Ze,
|
|
256
|
+
onClick: Re,
|
|
242
257
|
size: "lg",
|
|
243
258
|
className: "font-medium",
|
|
244
|
-
children: [
|
|
259
|
+
children: [Q, "Run Now"]
|
|
245
260
|
})
|
|
246
|
-
}),
|
|
247
|
-
let
|
|
248
|
-
return
|
|
261
|
+
}), i[108] = Re, i[109] = Ze, i[110] = Q, i[111] = $) : $ = i[111];
|
|
262
|
+
let Qe;
|
|
263
|
+
return i[112] !== B || i[113] !== Z || i[114] !== $ ? (Qe = /* @__PURE__ */ jsxs("div", {
|
|
249
264
|
className: "mt-2 overflow-y-auto",
|
|
250
265
|
children: [
|
|
251
|
-
z,
|
|
252
266
|
B,
|
|
253
|
-
|
|
254
|
-
|
|
267
|
+
Z,
|
|
268
|
+
$
|
|
255
269
|
]
|
|
256
|
-
}),
|
|
270
|
+
}), i[112] = B, i[113] = Z, i[114] = $, i[115] = Qe) : Qe = i[115], Qe;
|
|
257
271
|
}
|
|
258
|
-
function
|
|
272
|
+
function _temp4(e) {
|
|
259
273
|
return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
|
|
260
|
-
value: e.
|
|
274
|
+
value: e.key,
|
|
261
275
|
className: "focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-pointer flex-col gap-0.5 rounded-sm py-2 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
262
276
|
children: [
|
|
263
277
|
/* @__PURE__ */ jsx("span", {
|
|
264
278
|
className: "absolute right-2 top-2.5 flex size-3.5 items-center justify-center",
|
|
265
279
|
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
|
|
266
280
|
}),
|
|
267
|
-
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children: e.title
|
|
281
|
+
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children: e.title }),
|
|
268
282
|
e.description && /* @__PURE__ */ jsx("span", {
|
|
269
283
|
className: "text-muted-foreground text-xs leading-snug",
|
|
270
284
|
children: e.description
|
|
271
285
|
})
|
|
272
286
|
]
|
|
273
|
-
}, e.
|
|
287
|
+
}, e.key);
|
|
274
288
|
}
|
|
275
|
-
function
|
|
289
|
+
function _temp3(e) {
|
|
276
290
|
return /* @__PURE__ */ jsx(SelectItem, {
|
|
277
291
|
value: e.id,
|
|
278
292
|
children: e.title
|
|
279
293
|
}, e.id);
|
|
280
294
|
}
|
|
295
|
+
function _temp2(e) {
|
|
296
|
+
return {
|
|
297
|
+
key: e.workflowName,
|
|
298
|
+
title: e.title ?? e.workflowName,
|
|
299
|
+
description: e.description
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function _temp(e) {
|
|
303
|
+
return {
|
|
304
|
+
appName: e.appName,
|
|
305
|
+
title: e.title,
|
|
306
|
+
environments: e.extensions?.environments ?? []
|
|
307
|
+
};
|
|
308
|
+
}
|
|
281
309
|
function StepSection(e) {
|
|
282
|
-
let t = c(35), { step: n, title: r, summary:
|
|
283
|
-
t[0] ===
|
|
284
|
-
let
|
|
285
|
-
t[2] !==
|
|
286
|
-
let
|
|
287
|
-
t[5] !==
|
|
288
|
-
className:
|
|
289
|
-
children:
|
|
290
|
-
}), t[5] =
|
|
291
|
-
let
|
|
292
|
-
t[8] !==
|
|
293
|
-
className:
|
|
310
|
+
let t = c(35), { step: n, title: r, summary: o, isActive: s, isComplete: l, isEnabled: u, isLoading: le, onToggle: d, children: ue } = e, f;
|
|
311
|
+
t[0] === d ? f = t[1] : (f = () => d(), t[0] = d, t[1] = f);
|
|
312
|
+
let de = `flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left transition-colors ${u ? "hover:bg-muted/50 cursor-pointer" : "cursor-not-allowed opacity-50"}`, fe = !u, pe = `flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-full text-xs font-semibold ${l ? "bg-primary text-primary-foreground" : s ? "border-primary text-primary border-2" : "border-border text-muted-foreground border"}`, p;
|
|
313
|
+
t[2] !== l || t[3] !== n ? (p = l ? /* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5" }) : n, t[2] = l, t[3] = n, t[4] = p) : p = t[4];
|
|
314
|
+
let m;
|
|
315
|
+
t[5] !== pe || t[6] !== p ? (m = /* @__PURE__ */ jsx("div", {
|
|
316
|
+
className: pe,
|
|
317
|
+
children: p
|
|
318
|
+
}), t[5] = pe, t[6] = p, t[7] = m) : m = t[7];
|
|
319
|
+
let h = `flex-1 text-sm font-medium ${u ? "text-foreground" : "text-muted-foreground"}`, g;
|
|
320
|
+
t[8] !== h || t[9] !== r ? (g = /* @__PURE__ */ jsx("span", {
|
|
321
|
+
className: h,
|
|
294
322
|
children: r
|
|
295
|
-
}), t[8] =
|
|
296
|
-
let _;
|
|
297
|
-
t[11] !== a || t[12] !== u || t[13] !== i ? (_ = !a && u && i && /* @__PURE__ */ jsx("span", {
|
|
298
|
-
className: "text-muted-foreground mr-1 max-w-48 truncate text-sm",
|
|
299
|
-
children: i
|
|
300
|
-
}), t[11] = a, t[12] = u, t[13] = i, t[14] = _) : _ = t[14];
|
|
323
|
+
}), t[8] = h, t[9] = r, t[10] = g) : g = t[10];
|
|
301
324
|
let v;
|
|
302
|
-
t[
|
|
303
|
-
|
|
304
|
-
|
|
325
|
+
t[11] !== s || t[12] !== l || t[13] !== o ? (v = !s && l && o && /* @__PURE__ */ jsx("span", {
|
|
326
|
+
className: "text-muted-foreground mr-1 max-w-48 truncate text-sm",
|
|
327
|
+
children: o
|
|
328
|
+
}), t[11] = s, t[12] = l, t[13] = o, t[14] = v) : v = t[14];
|
|
305
329
|
let b;
|
|
306
|
-
t[
|
|
307
|
-
|
|
308
|
-
|
|
330
|
+
t[15] !== s || t[16] !== le ? (b = le && s && /* @__PURE__ */ jsx(Loader2, { className: "text-muted-foreground h-4 w-4 animate-spin" }), t[15] = s, t[16] = le, t[17] = b) : b = t[17];
|
|
331
|
+
let x = `text-muted-foreground h-4 w-4 transition-transform ${s ? "rotate-180" : ""}`, S;
|
|
332
|
+
t[18] === x ? S = t[19] : (S = /* @__PURE__ */ jsx(ChevronDown, { className: x }), t[18] = x, t[19] = S);
|
|
333
|
+
let C;
|
|
334
|
+
t[20] !== b || t[21] !== S || t[22] !== de || t[23] !== fe || t[24] !== m || t[25] !== g || t[26] !== v ? (C = /* @__PURE__ */ jsxs(CollapsibleTrigger, {
|
|
335
|
+
className: de,
|
|
336
|
+
disabled: fe,
|
|
309
337
|
children: [
|
|
310
|
-
|
|
338
|
+
m,
|
|
311
339
|
g,
|
|
312
|
-
_,
|
|
313
340
|
v,
|
|
314
|
-
|
|
341
|
+
b,
|
|
342
|
+
S
|
|
315
343
|
]
|
|
316
|
-
}), t[20] =
|
|
317
|
-
let
|
|
318
|
-
t[28] ===
|
|
344
|
+
}), t[20] = b, t[21] = S, t[22] = de, t[23] = fe, t[24] = m, t[25] = g, t[26] = v, t[27] = C) : C = t[27];
|
|
345
|
+
let w;
|
|
346
|
+
t[28] === ue ? w = t[29] : (w = /* @__PURE__ */ jsx(CollapsibleContent, {
|
|
319
347
|
className: "px-3 pb-3 pl-13",
|
|
320
|
-
children:
|
|
321
|
-
}), t[28] =
|
|
322
|
-
let
|
|
323
|
-
return t[30] !==
|
|
324
|
-
open:
|
|
325
|
-
onOpenChange:
|
|
326
|
-
children: [
|
|
327
|
-
}), t[30] =
|
|
348
|
+
children: ue
|
|
349
|
+
}), t[28] = ue, t[29] = w);
|
|
350
|
+
let me;
|
|
351
|
+
return t[30] !== s || t[31] !== f || t[32] !== C || t[33] !== w ? (me = /* @__PURE__ */ jsxs(Collapsible, {
|
|
352
|
+
open: s,
|
|
353
|
+
onOpenChange: f,
|
|
354
|
+
children: [C, w]
|
|
355
|
+
}), t[30] = s, t[31] = f, t[32] = C, t[33] = w, t[34] = me) : me = t[34], me;
|
|
328
356
|
}
|
|
329
357
|
export { NewRunDialog };
|
|
@@ -13,15 +13,15 @@ function RecentRunItem(a) {
|
|
|
13
13
|
let o = c(17), { workflow: s, onClick: l } = a, u = `h-1.5 w-1.5 shrink-0 rounded-full ${STATUS_DOT_COLORS[s.status] ?? "bg-muted-foreground"}`, d;
|
|
14
14
|
o[0] === u ? d = o[1] : (d = /* @__PURE__ */ jsx("span", { className: u }), o[0] = u, o[1] = d);
|
|
15
15
|
let f;
|
|
16
|
-
o[2] !== s.
|
|
16
|
+
o[2] !== s.run || o[3] !== s.workflowName ? (f = /* @__PURE__ */ jsxs("span", {
|
|
17
17
|
className: "truncate text-sm font-medium",
|
|
18
18
|
children: [
|
|
19
19
|
"Run #",
|
|
20
20
|
s.run,
|
|
21
21
|
" · ",
|
|
22
|
-
s.
|
|
22
|
+
s.workflowName
|
|
23
23
|
]
|
|
24
|
-
}), o[2] = s.
|
|
24
|
+
}), o[2] = s.run, o[3] = s.workflowName, o[4] = f) : f = o[4];
|
|
25
25
|
let p;
|
|
26
26
|
o[5] !== d || o[6] !== f ? (p = /* @__PURE__ */ jsxs("div", {
|
|
27
27
|
className: "flex items-center gap-2",
|