@loopstack/loopstack-studio 0.29.5 → 0.31.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/FormBody.js +1 -1
- package/dist/components/layout/StudioSidebar.js +116 -131
- package/dist/components/lists/ListView.js +46 -46
- 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/dashboard/AppLauncher.js +84 -0
- 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 +73 -73
- 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 +74 -109
- 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 +166 -136
- 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 +119 -18
- package/dist/index.js +10 -9
- 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/DashboardPage.js +20 -74
- 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/dist/routing/LocalRouter.js +1 -1
- package/package.json +2 -2
- package/dist/features/dashboard/Dashboard.js +0 -125
- package/dist/features/dashboard/RunItem.js +0 -78
- package/dist/features/dashboard/RunList.js +0 -32
- package/dist/hooks/useDashboard.js +0 -16
|
@@ -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 };
|