@loopstack/loopstack-studio 0.24.0 → 0.25.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/api/config.js +3 -3
- package/dist/api/index.js +9 -13
- package/dist/api/processor.js +1 -1
- package/dist/api/workflows.js +7 -1
- package/dist/components/dynamic-form/CodeContent.js +3 -3
- package/dist/components/dynamic-form/fields/CodeViewField.js +36 -36
- package/dist/components/feedback/LoadingCentered.js +1 -1
- package/dist/components/layout/StudioSidebar.js +2 -2
- package/dist/components/loopstack-elements/link.js +77 -76
- package/dist/components/loopstack-elements/tool.js +171 -0
- package/dist/components/ui-widgets/UiActions.js +10 -4
- package/dist/components/ui-widgets/UiWidget.js +27 -36
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +8 -6
- package/dist/components/ui-widgets/widgets/SubmitButton.js +8 -6
- package/dist/features/code-explorer/components/FileContentViewer.js +87 -112
- package/dist/features/dashboard/RunItem.js +1 -1
- package/dist/features/debug/components/ConfigFlowViewer.js +2 -2
- package/dist/features/debug/components/{PipelineDebugHeader.js → WorkflowDebugHeader.js} +5 -5
- package/dist/features/debug/components/{PipelineDebugLegend.js → WorkflowDebugLegend.js} +2 -2
- package/dist/features/debug/components/{PipelineFlowViewer.js → WorkflowFlowViewer.js} +9 -9
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +46 -0
- package/dist/features/debug/index.js +2 -2
- package/dist/features/debug/lib/flow-utils.js +142 -150
- package/dist/features/documents/DocumentRenderer.js +66 -30
- package/dist/features/documents/components/DocumentItem.js +2 -2
- package/dist/features/documents/components/DocumentList.js +15 -12
- package/dist/features/documents/document-details/DocumentDetails.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +1 -1
- package/dist/features/documents/renderers/ChoicesRenderer.js +92 -0
- package/dist/features/documents/renderers/ClaudeMessage.js +1 -1
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +56 -0
- package/dist/features/documents/renderers/DocumentFormRenderer.js +95 -71
- package/dist/features/documents/renderers/LinkMessageRenderer.js +8 -10
- package/dist/features/documents/renderers/SecretInputRenderer.js +87 -0
- package/dist/features/documents/renderers/TextPromptRenderer.js +57 -0
- package/dist/features/documents/renderers/useDocumentTransition.js +30 -0
- package/dist/features/oauth/OAuthPromptRenderer.js +20 -20
- package/dist/features/runs/Runs.js +8 -8
- package/dist/features/workbench/Workbench.js +35 -35
- package/dist/features/workbench/WorkflowItem.js +10 -9
- package/dist/features/workbench/WorkflowList.js +56 -73
- package/dist/features/workbench/components/NewRunDialog.js +18 -18
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +1 -1
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +33 -72
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +27 -29
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +30 -42
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +2 -2
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +1 -1
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +16 -41
- package/dist/features/workbench/components/WorkflowForms.js +14 -13
- package/dist/features/workbench/components/WorkflowHistoryItem.js +60 -81
- package/dist/features/workbench/components/{PipelineHistoryList.js → WorkflowHistoryList.js} +5 -5
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +56 -54
- package/dist/features/workbench/hooks/useWorkflowData.js +10 -10
- package/dist/features/workbench/hooks/useWorkflowListState.js +8 -45
- package/dist/features/workbench/index.js +2 -3
- package/dist/features/workbench/providers/ScrollProvider.js +2 -2
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +4 -4
- package/dist/features/workspaces/Workspaces.js +1 -1
- package/dist/features/workspaces/components/CreateWorkspace.js +12 -12
- package/dist/features/workspaces/components/ExecutionTimeline.js +22 -21
- package/dist/features/workspaces/components/{NewPipelineRunDialog.js → NewWorkflowRunDialog.js} +6 -6
- package/dist/features/workspaces/components/{PipelineForm.js → WorkflowRunForm.js} +31 -31
- package/dist/features/workspaces/components/WorkspaceHomePage.js +11 -11
- package/dist/features/workspaces/components/{pipeline-form → workflow-form}/ArgumentsView.js +1 -1
- package/dist/features/workspaces/components/{pipeline-form → workflow-form}/SelectionView.js +16 -16
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/query-keys.js +31 -72
- package/dist/hooks/useConfig.js +5 -5
- package/dist/hooks/useProcessor.js +5 -5
- package/dist/hooks/useWorkflows.js +155 -68
- package/dist/index.d.ts +127 -128
- package/dist/index.js +5 -5
- package/dist/packages/contracts/dist/enums/index.js +11 -12
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +1 -1
- package/dist/pages/DebugWorkflowDetailsPage.js +8 -8
- package/dist/pages/DebugWorkflowsPage.js +10 -10
- package/dist/pages/EmbedWorkbenchPage.js +42 -52
- package/dist/pages/PreviewWorkbenchPage.js +130 -255
- package/dist/pages/RunsListPage.js +1 -1
- package/dist/pages/StudioLandingPage.js +13 -13
- package/dist/pages/WorkbenchPage.js +6 -6
- package/dist/pages/WorkflowDebugPage.js +114 -0
- package/dist/pages/WorkspacePage.js +4 -2
- package/dist/providers/InvalidationEventsProvider.js +19 -19
- package/dist/providers/SseProvider.js +0 -1
- package/dist/routing/LocalRouter.js +14 -17
- package/package.json +2 -2
- package/dist/api/namespaces.js +0 -7
- package/dist/api/pipelines.js +0 -13
- package/dist/components/ai-elements/tool.js +0 -158
- package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
- package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
- package/dist/features/workbench/NavigationItems.js +0 -52
- package/dist/features/workbench/WorkbenchNavigation.js +0 -38
- package/dist/features/workbench/components/NavigationItem.js +0 -68
- package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
- package/dist/hooks/useNamespaceTree.js +0 -27
- package/dist/hooks/useNamespaces.js +0 -25
- package/dist/hooks/usePipelines.js +0 -161
- package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
- package/dist/pages/PipelineDebugPage.js +0 -115
- /package/dist/features/debug/components/{pipeline-flow → workflow-flow}/StateNode.js +0 -0
- /package/dist/features/debug/components/{pipeline-flow → workflow-flow}/WorkflowTransitionEdge.js +0 -0
- /package/dist/features/workspaces/components/{pipeline-form → workflow-form}/HeaderSection.js +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useWorkflow } from "../hooks/useWorkflows.js";
|
|
2
2
|
import LoadingCentered_default from "../components/feedback/LoadingCentered.js";
|
|
3
3
|
import ErrorSnackbar_default from "../components/feedback/ErrorSnackbar.js";
|
|
4
4
|
import { require_enums } from "../packages/contracts/dist/enums/index.js";
|
|
5
|
-
import { useFetchWorkflowsByPipeline } from "../hooks/useWorkflows.js";
|
|
6
5
|
import WorkflowItem_default from "../features/workbench/WorkflowItem.js";
|
|
7
6
|
import { WorkbenchLayoutProvider } from "../features/workbench/providers/WorkbenchLayoutProvider.js";
|
|
8
7
|
import "../features/workbench/index.js";
|
|
@@ -13,67 +12,58 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
13
12
|
import { useParams } from "react-router-dom";
|
|
14
13
|
var import_enums = require_enums(), EMBED_MESSAGE_TYPE = "loopstack:embed:workflow-completed", EMBED_RESIZE_MESSAGE_TYPE = "loopstack:embed:resize";
|
|
15
14
|
function EmbedWorkbenchPage() {
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
!
|
|
15
|
+
let _ = c(20), v = useParams(), y;
|
|
16
|
+
_[0] === v ? y = _[1] : (y = requireParam(v, "workflowId"), _[0] = v, _[1] = y);
|
|
17
|
+
let b = y, x = useRef(null), S = useWorkflow(b), C = useRef(!1), w, T;
|
|
18
|
+
_[2] !== S.data || _[3] !== b ? (w = () => {
|
|
19
|
+
!S.data || C.current || S.data.status === import_enums.WorkflowState.Completed && window.parent !== window && (C.current = !0, window.parent.postMessage({
|
|
21
20
|
type: EMBED_MESSAGE_TYPE,
|
|
22
|
-
|
|
21
|
+
workflowId: b
|
|
23
22
|
}, window.location.origin));
|
|
24
|
-
},
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
if (window.parent === window || !
|
|
23
|
+
}, T = [S.data, b], _[2] = S.data, _[3] = b, _[4] = w, _[5] = T) : (w = _[4], T = _[5]), useEffect(w, T);
|
|
24
|
+
let E, D;
|
|
25
|
+
_[6] === b ? (E = _[7], D = _[8]) : (E = () => {
|
|
26
|
+
if (window.parent === window || !x.current) return;
|
|
28
27
|
let t = new ResizeObserver(() => {
|
|
29
|
-
if (!
|
|
28
|
+
if (!x.current) return;
|
|
30
29
|
let t = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight);
|
|
31
30
|
window.parent.postMessage({
|
|
32
31
|
type: EMBED_RESIZE_MESSAGE_TYPE,
|
|
33
|
-
|
|
32
|
+
workflowId: b,
|
|
34
33
|
height: t
|
|
35
34
|
}, window.location.origin);
|
|
36
35
|
});
|
|
37
|
-
return t.observe(
|
|
38
|
-
},
|
|
39
|
-
let
|
|
40
|
-
|
|
36
|
+
return t.observe(x.current), () => t.disconnect();
|
|
37
|
+
}, D = [b], _[6] = b, _[7] = E, _[8] = D), useEffect(E, D);
|
|
38
|
+
let O = _temp, k;
|
|
39
|
+
_[9] === Symbol.for("react.memo_cache_sentinel") ? (k = {
|
|
41
40
|
enableDebugMode: !1,
|
|
42
41
|
showFullMessageHistory: !1
|
|
43
|
-
},
|
|
44
|
-
let
|
|
45
|
-
|
|
46
|
-
let
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
scrollTo: A,
|
|
55
|
-
settings: M,
|
|
42
|
+
}, _[9] = k) : k = _[9];
|
|
43
|
+
let A = k, j;
|
|
44
|
+
_[10] === S.error ? j = _[11] : (j = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: S.error }), _[10] = S.error, _[11] = j);
|
|
45
|
+
let M;
|
|
46
|
+
_[12] === S.data ? M = _[13] : (M = S.data ? /* @__PURE__ */ jsx(WorkbenchLayoutProvider, {
|
|
47
|
+
workflow: S.data,
|
|
48
|
+
children: /* @__PURE__ */ jsx(WorkflowItem_default, {
|
|
49
|
+
workflow: S.data,
|
|
50
|
+
workflowId: S.data.id,
|
|
51
|
+
scrollTo: O,
|
|
52
|
+
settings: A,
|
|
56
53
|
embed: !0
|
|
57
|
-
}
|
|
58
|
-
}) : null,
|
|
59
|
-
let
|
|
60
|
-
|
|
61
|
-
loading:
|
|
62
|
-
children:
|
|
63
|
-
}),
|
|
64
|
-
let
|
|
65
|
-
return
|
|
66
|
-
ref:
|
|
67
|
-
className: "overflow-hidden
|
|
68
|
-
children: [
|
|
69
|
-
|
|
70
|
-
P,
|
|
71
|
-
L
|
|
72
|
-
]
|
|
73
|
-
}), v[20] = L, v[21] = N, v[22] = P, v[23] = R) : R = v[23], R;
|
|
74
|
-
}
|
|
75
|
-
function _temp2() {}
|
|
76
|
-
function _temp(t) {
|
|
77
|
-
return t.status === import_enums.WorkflowState.Completed;
|
|
54
|
+
})
|
|
55
|
+
}) : null, _[12] = S.data, _[13] = M);
|
|
56
|
+
let N;
|
|
57
|
+
_[14] !== S.isLoading || _[15] !== M ? (N = /* @__PURE__ */ jsx(LoadingCentered_default, {
|
|
58
|
+
loading: S.isLoading,
|
|
59
|
+
children: M
|
|
60
|
+
}), _[14] = S.isLoading, _[15] = M, _[16] = N) : N = _[16];
|
|
61
|
+
let P;
|
|
62
|
+
return _[17] !== j || _[18] !== N ? (P = /* @__PURE__ */ jsxs("div", {
|
|
63
|
+
ref: x,
|
|
64
|
+
className: "overflow-hidden pl-3 py-4",
|
|
65
|
+
children: [j, N]
|
|
66
|
+
}), _[17] = j, _[18] = N, _[19] = P) : P = _[19], P;
|
|
78
67
|
}
|
|
68
|
+
function _temp() {}
|
|
79
69
|
export { EmbedWorkbenchPage as default };
|