@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.
Files changed (114) hide show
  1. package/dist/_virtual/rolldown_runtime.js +3 -1
  2. package/dist/api/config.js +5 -4
  3. package/dist/api/environments.js +5 -1
  4. package/dist/api/processor.js +4 -1
  5. package/dist/app/EnvironmentEmbedRoot.js +22 -30
  6. package/dist/components/ai-elements/code-block.js +4 -4
  7. package/dist/components/dynamic-form/CodeContent.js +1 -1
  8. package/dist/components/dynamic-form/Form.js +31 -51
  9. package/dist/components/dynamic-form/FormBody.js +1 -1
  10. package/dist/components/motion/FadeIn.js +72 -0
  11. package/dist/components/motion/StreamingText.js +49 -0
  12. package/dist/components/ui/accordion.js +2 -2
  13. package/dist/components/ui-widgets/UiWidget.js +11 -10
  14. package/dist/components/ui-widgets/widgets/AiPromptInput.js +31 -28
  15. package/dist/events/sse-client-events.js +7 -1
  16. package/dist/features/code-explorer/components/FileContentViewer.js +2 -2
  17. package/dist/features/debug/components/WorkflowFlowViewer.js +49 -51
  18. package/dist/features/documents/DocumentRenderer.js +18 -17
  19. package/dist/features/documents/components/DocumentItem.js +42 -20
  20. package/dist/features/documents/components/DocumentList.js +34 -36
  21. package/dist/features/documents/components/DocumentMetadataPills.js +102 -49
  22. package/dist/features/documents/document-details/DocumentDetails.js +577 -377
  23. package/dist/features/documents/document-details/PromptDetails.js +118 -130
  24. package/dist/features/documents/document-details/document-debug-utils.js +100 -0
  25. package/dist/features/documents/renderers/ChoicesRenderer.js +41 -38
  26. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +31 -28
  27. package/dist/features/documents/renderers/DocumentFormRenderer.js +62 -70
  28. package/dist/features/documents/renderers/LlmMessage.js +52 -47
  29. package/dist/features/documents/renderers/TextPromptRenderer.js +32 -29
  30. package/dist/features/documents/renderers/useDocumentTransition.js +4 -4
  31. package/dist/features/feature-registry/FeatureRegistryProvider.js +32 -10
  32. package/dist/features/feature-registry/available-features.js +12 -0
  33. package/dist/features/feature-registry/index.js +2 -1
  34. package/dist/features/file-explorer/components/FileExplorerPanel.js +55 -51
  35. package/dist/features/git/components/GitBranchBadge.js +31 -0
  36. package/dist/features/git/components/GitCommitList.js +46 -0
  37. package/dist/features/git/components/GitRemoteStatus.js +84 -0
  38. package/dist/features/git/components/WorkbenchGitPanel.js +81 -0
  39. package/dist/features/git/git-feature.js +12 -0
  40. package/dist/features/git/hooks/useGit.js +78 -0
  41. package/dist/features/git/index.js +1 -0
  42. package/dist/features/oauth/OAuthPromptRenderer.js +137 -142
  43. package/dist/features/runs/Runs.js +4 -4
  44. package/dist/features/secrets/components/WorkbenchSecretsPanel.js +1 -1
  45. package/dist/features/secrets/renderers/SecretInputRenderer.js +30 -29
  46. package/dist/features/workbench/Workbench.js +25 -33
  47. package/dist/features/workbench/WorkflowItem.js +9 -9
  48. package/dist/features/workbench/WorkflowList.js +61 -62
  49. package/dist/features/workbench/components/NewRunDialog.js +237 -209
  50. package/dist/features/workbench/components/RecentRunItem.js +3 -3
  51. package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +8 -8
  52. package/dist/features/workbench/components/WorkbenchIconSidebar.js +1 -1
  53. package/dist/features/workbench/components/WorkbenchSidebarShell.js +3 -3
  54. package/dist/features/workbench/components/WorkflowForms.js +11 -10
  55. package/dist/features/workbench/components/WorkflowHistoryItem.js +16 -36
  56. package/dist/features/workbench/components/WorkflowHistoryList.js +19 -17
  57. package/dist/features/workbench/components/buttons/WorkflowButtons.js +3 -3
  58. package/dist/features/workbench/hooks/useLlmStreamingDocuments.js +159 -0
  59. package/dist/features/workbench/hooks/useWorkflowData.js +58 -31
  60. package/dist/features/workbench/index.js +2 -2
  61. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +53 -53
  62. package/dist/features/workspaces/Workspaces.js +134 -125
  63. package/dist/features/workspaces/components/CreateWorkspace.js +115 -107
  64. package/dist/features/workspaces/components/ExecutionTimeline.js +2 -2
  65. package/dist/features/workspaces/components/WorkflowRunForm.js +127 -104
  66. package/dist/features/workspaces/components/WorkspaceHomePage.js +6 -89
  67. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +1 -1
  68. package/dist/features/workspaces/components/workflow-form/SelectionView.js +15 -15
  69. package/dist/hooks/index.js +3 -2
  70. package/dist/hooks/query-keys.js +43 -30
  71. package/dist/hooks/useConfig.js +28 -22
  72. package/dist/hooks/useEnvironments.js +27 -2
  73. package/dist/hooks/useProcessor.js +14 -1
  74. package/dist/hooks/useWorkflows.js +4 -4
  75. package/dist/index.d.ts +116 -15
  76. package/dist/index.js +9 -8
  77. package/dist/node_modules/d3/src/index.js +13 -13
  78. package/dist/node_modules/d3-scale/src/continuous.js +16 -16
  79. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-3BPJPVTR.js +43 -43
  80. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.js +270 -270
  81. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.js +90 -90
  82. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3OPIFGDE.js +458 -458
  83. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +3 -3
  84. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5ZQYHXKU.js +37 -37
  85. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-727SXJPM.js +208 -208
  86. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KSCS5N6A.js +145 -145
  87. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ND2GUHAM.js +7 -7
  88. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.js +41 -41
  89. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WU5MYG2G.js +3 -3
  90. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +6 -6
  91. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +30 -30
  92. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OG6HWLK6.js +82 -82
  93. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-TEJ5UH35.js +65 -65
  94. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-I6XJVG4X.js +227 -227
  95. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-6RSMTGT7.js +104 -104
  96. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.js +104 -104
  97. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-JHISSGLW.js +49 -49
  98. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-W4KKPZXB.js +101 -101
  99. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-5OEKKPKP.js +20 -20
  100. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js +354 -354
  101. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-AJRCARHV.js +53 -53
  102. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-PNZ67QCA.js +113 -113
  103. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-CIIHVFJN.js +90 -90
  104. package/dist/node_modules/mermaid/dist/mermaid.core.js +156 -156
  105. package/dist/node_modules/motion/dist/es/react.js +9 -2
  106. package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
  107. package/dist/pages/DebugWorkflowsPage.js +76 -106
  108. package/dist/pages/EmbedWorkbenchPage.js +1 -1
  109. package/dist/pages/PreviewWorkbenchPage.js +6 -6
  110. package/dist/pages/WorkbenchPage.js +43 -47
  111. package/dist/pages/WorkflowDebugPage.js +6 -12
  112. package/dist/pages/WorkspacePage.js +40 -66
  113. package/dist/pages/WorkspaceRunsPage.js +24 -31
  114. 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(e) {
10
- let i = c(7), { workflow: a, breadcrumbData: u } = e, d;
11
- i[0] === u ? d = i[1] : (d = /* @__PURE__ */ jsx("div", {
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
- }), i[0] = u, i[1] = d);
16
+ }), o[0] = u, o[1] = d);
18
17
  let f;
19
- i[2] === a ? f = i[3] : (f = /* @__PURE__ */ jsx(ScrollProvider, { children: /* @__PURE__ */ jsx("div", {
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: a })
22
- }) }), i[2] = a, i[3] = f);
20
+ children: /* @__PURE__ */ jsx(WorkflowList_default, { workflow: l })
21
+ }) }), o[2] = l, o[3] = f);
23
22
  let p;
24
- return i[4] !== d || i[5] !== f ? (p = /* @__PURE__ */ jsx("div", {
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
- }), i[4] = d, i[5] = f, i[6] = p) : p = i[6], p;
32
+ }), o[4] = d, o[5] = f, o[6] = p) : p = o[6], p;
34
33
  }
35
- function Workbench(r) {
36
- let o = c(13), { workflow: s, breadcrumbData: l, getPreviewUrl: d, getEnvironmentPreviewUrl: f, environments: p } = r, m = s?.workspaceId, h = useWorkspace(m), g;
37
- o[0] === h.data ? g = o[1] : (g = h.data ? {
38
- volumes: h.data.volumes,
39
- features: h.data.features
40
- } : void 0, o[0] = h.data, o[1] = g);
41
- let _ = g, v = p ?? h.data?.environments, y;
42
- o[2] !== l || o[3] !== s ? (y = /* @__PURE__ */ jsx(WorkbenchSidebarShell, { children: /* @__PURE__ */ jsx(WorkbenchContent, {
43
- workflow: s,
44
- breadcrumbData: l
45
- }) }), o[2] = l, o[3] = s, o[4] = y) : y = o[4];
46
- let b;
47
- return o[5] !== f || o[6] !== d || o[7] !== v || o[8] !== y || o[9] !== s || o[10] !== _ || o[11] !== m ? (b = /* @__PURE__ */ jsx(WorkbenchLayoutProvider, {
48
- workspaceId: m,
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] !== P || g[30] !== y || g[31] !== b || g[32] !== _ || g[33] !== O ? (Y = O && E && /* @__PURE__ */ jsx(DocumentList_default, {
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
- isLoading: P
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[35] === P ? X = g[36] : (X = /* @__PURE__ */ jsx(LoadingCentered_default, { loading: P }), g[35] = P, g[36] = X);
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[37] !== V || g[38] !== E?.hasError || g[39] !== U || g[40] !== w.isPending || g[41] !== k ? (Z = k && E?.hasError && /* @__PURE__ */ jsxs("div", {
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[37] = V, g[38] = E?.hasError, g[39] = U, g[40] = w.isPending, g[41] = k, g[42] = Z) : Z = g[42];
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[43] !== E || g[44] !== F || g[45] !== _ ? (Q = !!E && /* @__PURE__ */ jsx("div", {
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[43] = E, g[44] = F, g[45] = _, g[46] = Q) : Q = g[46];
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 = (C) => {
18
- let w = c(40), { workflow: T } = C, [E, D] = useState(!1), O;
19
- w[0] === Symbol.for("react.memo_cache_sentinel") ? (O = {
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
- }, w[0] = O) : O = w[0];
23
- let [k, A] = useState(O), { listRef: j, scrollTo: M, canScrollDown: N, scrollToBottom: P } = useWorkflowListState(), F = useWorkflowConfigByName(T.className ?? void 0), I = useChildWorkflows(T.id), L;
24
- w[1] === I.data ? L = w[2] : (L = I.data ?? [], w[1] = I.data, w[2] = L);
25
- let R = L, z;
26
- w[3] !== N || w[4] !== P ? (z = N && /* @__PURE__ */ jsx(Button, {
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: P,
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
- }), w[3] = N, w[4] = P, w[5] = z) : z = w[5];
33
- let B = F.data?.title ?? T.alias, V;
34
- w[6] === B ? V = w[7] : (V = /* @__PURE__ */ jsx("span", {
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: B
37
- }), w[6] = B, w[7] = V);
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
- w[8] === T ? H = w[9] : (H = /* @__PURE__ */ jsx(WorkflowButtons_default, {
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" })] }), w[10] = U) : U = w[10];
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
- w[11] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Run Log" }) }), w[11] = W) : W = w[11];
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: [W, /* @__PURE__ */ jsx("div", {
61
+ children: [U, /* @__PURE__ */ jsx("div", {
62
62
  className: "flex-1 overflow-auto",
63
- children: /* @__PURE__ */ jsx(WorkflowHistoryList_default, { workflow: T })
63
+ children: /* @__PURE__ */ jsx(WorkflowHistoryList_default, { workflow: w })
64
64
  })]
65
- })] }), w[12] = T, w[13] = G);
66
- let K;
67
- w[14] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
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" })] }), w[14] = K) : K = w[14];
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
- w[15] === Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Graph" }) }), w[15] = q) : q = w[15];
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
- w[16] !== R || w[17] !== F.data || w[18] !== T.id ? (J = /* @__PURE__ */ jsxs(Dialog, { children: [K, /* @__PURE__ */ jsxs(DialogContent, {
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: [q, /* @__PURE__ */ jsx("div", {
86
+ children: [K, /* @__PURE__ */ jsx("div", {
85
87
  className: "flex-1 overflow-hidden",
86
- children: R.length > 0 ? /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @__PURE__ */ jsx(WorkflowFlowViewer_default, {
87
- workflowId: T.id,
88
- workflows: R,
89
- workflowConfig: F.data
90
- }) }) : /* @__PURE__ */ jsx("div", {
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
- })] }), w[16] = R, w[17] = F.data, w[18] = T.id, w[19] = J) : J = w[19];
94
+ })] }), C[19] = P.data, C[20] = q, C[21] = w.id, C[22] = J) : J = C[22];
96
95
  let Y;
97
- w[20] !== E || w[21] !== k ? (Y = /* @__PURE__ */ jsx(WorkbenchSettingsModal_default, {
98
- settings: k,
99
- onSettingsChange: A,
100
- open: E,
101
- onOpenChange: D
102
- }), w[20] = E, w[21] = k, w[22] = Y) : Y = w[22];
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
- w[23] !== J || w[24] !== Y || w[25] !== V || w[26] !== H || w[27] !== G ? (X = /* @__PURE__ */ jsx("div", {
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
- H,
111
- G,
110
+ W,
112
111
  J,
113
112
  Y
114
113
  ]
115
114
  })
116
- }), w[23] = J, w[24] = Y, w[25] = V, w[26] = H, w[27] = G, w[28] = X) : X = w[28];
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
- w[29] !== M || w[30] !== k || w[31] !== T ? (Z = /* @__PURE__ */ jsx("div", {
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: T,
122
- workflowId: T.id,
123
- scrollTo: M,
124
- settings: k
120
+ workflow: w,
121
+ workflowId: w.id,
122
+ scrollTo: j,
123
+ settings: O
125
124
  })
126
- }), w[29] = M, w[30] = k, w[31] = T, w[32] = Z) : Z = w[32];
125
+ }), C[32] = j, C[33] = O, C[34] = w, C[35] = Z) : Z = C[35];
127
126
  let Q;
128
- w[33] !== j || w[34] !== X || w[35] !== Z ? (Q = /* @__PURE__ */ jsxs("div", {
127
+ C[36] !== A || C[37] !== X || C[38] !== Z ? (Q = /* @__PURE__ */ jsxs("div", {
129
128
  className: "mb-10",
130
- ref: j,
129
+ ref: A,
131
130
  children: [X, Z]
132
- }), w[33] = j, w[34] = X, w[35] = Z, w[36] = Q) : Q = w[36];
131
+ }), C[36] = A, C[37] = X, C[38] = Z, C[39] = Q) : Q = C[39];
133
132
  let $;
134
- return w[37] !== Q || w[38] !== z ? ($ = /* @__PURE__ */ jsxs("div", { children: [z, Q] }), w[37] = Q, w[38] = z, w[39] = $) : $ = w[39], $;
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 };