@loopstack/loopstack-studio 0.23.1 → 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 +10 -12
- package/dist/api/processor.js +1 -1
- package/dist/api/secrets.js +16 -0
- package/dist/api/workflows.js +7 -1
- package/dist/components/dynamic-form/ArrayController.js +68 -64
- package/dist/components/dynamic-form/CodeContent.js +3 -3
- package/dist/components/dynamic-form/Form.js +46 -40
- package/dist/components/dynamic-form/FormElement.js +1 -1
- package/dist/components/dynamic-form/FormElementHeader.js +2 -2
- package/dist/components/dynamic-form/ObjectController.js +24 -21
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +1 -1
- package/dist/components/dynamic-form/fields/CodeViewField.js +36 -36
- package/dist/components/dynamic-form/fields/InputField.js +20 -19
- package/dist/components/dynamic-form/fields/RadioField.js +18 -18
- package/dist/components/dynamic-form/fields/SelectField.js +19 -19
- package/dist/components/dynamic-form/fields/TextareaField.js +17 -17
- package/dist/components/feedback/LoadingCentered.js +1 -1
- package/dist/components/layout/MainLayout.js +18 -31
- package/dist/components/layout/StudioSidebar.js +169 -109
- package/dist/components/loopstack-elements/link.js +77 -76
- package/dist/components/loopstack-elements/tool.js +171 -0
- package/dist/components/page/PageBreadcrumbs.js +79 -32
- package/dist/components/ui-widgets/UiActions.js +10 -4
- 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 +92 -100
- 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 +18 -11
- package/dist/features/documents/document-details/DocumentDetails.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +12 -12
- 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 -65
- 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 +33 -26
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +13 -44
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +27 -29
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +17 -17
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +2 -2
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +182 -0
- 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/RemoteFileExplorerProvider.js +132 -117
- 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 +34 -68
- package/dist/hooks/useConfig.js +5 -5
- package/dist/hooks/useProcessor.js +5 -5
- package/dist/hooks/useSecrets.js +69 -0
- package/dist/hooks/useWorkflows.js +155 -68
- package/dist/index.d.ts +158 -116
- 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/DashboardPage.js +87 -35
- package/dist/pages/DebugWorkflowDetailsPage.js +8 -8
- package/dist/pages/DebugWorkflowsPage.js +10 -10
- package/dist/pages/EmbedWorkbenchPage.js +39 -45
- 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/dist/types/ai.types.js +13 -0
- package/package.json +2 -3
- 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/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/node_modules/@ai-sdk/provider/dist/index.js +0 -65
- package/dist/node_modules/@ai-sdk/provider-utils/dist/index.js +0 -1008
- package/dist/node_modules/ai/dist/index.js +0 -1083
- package/dist/node_modules/zod/v3/ZodError.js +0 -79
- package/dist/node_modules/zod/v3/errors.js +0 -6
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +0 -5
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +0 -90
- package/dist/node_modules/zod/v3/helpers/util.js +0 -72
- package/dist/node_modules/zod/v3/locales/en.js +0 -58
- package/dist/node_modules/zod/v3/types.js +0 -2425
- package/dist/node_modules/zod/v4/classic/errors.js +0 -21
- package/dist/node_modules/zod/v4/classic/iso.js +0 -29
- package/dist/node_modules/zod/v4/classic/parse.js +0 -4
- package/dist/node_modules/zod/v4/classic/schemas.js +0 -392
- package/dist/node_modules/zod/v4/core/api.js +0 -532
- package/dist/node_modules/zod/v4/core/checks.js +0 -283
- package/dist/node_modules/zod/v4/core/core.js +0 -44
- package/dist/node_modules/zod/v4/core/doc.js +0 -21
- package/dist/node_modules/zod/v4/core/errors.js +0 -40
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -305
- package/dist/node_modules/zod/v4/core/parse.js +0 -66
- package/dist/node_modules/zod/v4/core/regexes.js +0 -28
- package/dist/node_modules/zod/v4/core/registries.js +0 -38
- package/dist/node_modules/zod/v4/core/schemas.js +0 -863
- package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -220
- package/dist/node_modules/zod/v4/core/util.js +0 -267
- package/dist/node_modules/zod/v4/core/versions.js +0 -6
- 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,84 +1,171 @@
|
|
|
1
|
-
import { getWorkflowCacheKey,
|
|
1
|
+
import { getChildWorkflowsCacheKey, getWorkflowCacheKey, getWorkflowConfigCacheKey, getWorkflowSourceCacheKey, getWorkflowsCacheKey } from "./query-keys.js";
|
|
2
2
|
import { useApiClient } from "./useApi.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
5
|
-
function useWorkflow(
|
|
6
|
-
let
|
|
7
|
-
|
|
5
|
+
function useWorkflow(e) {
|
|
6
|
+
let i = c(10), { envKey: a, api: o } = useApiClient(), s;
|
|
7
|
+
i[0] !== a || i[1] !== e ? (s = getWorkflowCacheKey(a, e), i[0] = a, i[1] = e, i[2] = s) : s = i[2];
|
|
8
8
|
let u;
|
|
9
|
-
|
|
10
|
-
let d = !!
|
|
11
|
-
return
|
|
12
|
-
queryKey:
|
|
9
|
+
i[3] !== o || i[4] !== e ? (u = () => o.workflows.getById({ id: e }), i[3] = o, i[4] = e, i[5] = u) : u = i[5];
|
|
10
|
+
let d = !!e, f;
|
|
11
|
+
return i[6] !== s || i[7] !== u || i[8] !== d ? (f = {
|
|
12
|
+
queryKey: s,
|
|
13
13
|
queryFn: u,
|
|
14
14
|
enabled: d
|
|
15
|
-
},
|
|
15
|
+
}, i[6] = s, i[7] = u, i[8] = d, i[9] = f) : f = i[9], useQuery(f);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
function useFilterWorkflows(e, r, i, a, s, u) {
|
|
18
|
+
let d = c(30), f = i === void 0 ? "id" : i, p = a === void 0 ? "DESC" : a, m = s === void 0 ? 0 : s, h = u === void 0 ? 10 : u, { envKey: g, api: _ } = useApiClient(), v = Object.keys(r).length > 0, y;
|
|
19
|
+
d[0] !== r || d[1] !== v ? (y = v ? JSON.stringify(r) : void 0, d[0] = r, d[1] = v, d[2] = y) : y = d[2];
|
|
20
|
+
let b = y, x;
|
|
21
|
+
d[3] === b ? x = d[4] : (x = b && { filter: b }, d[3] = b, d[4] = x);
|
|
22
|
+
let S;
|
|
23
|
+
d[5] !== p || d[6] !== f ? (S = JSON.stringify([{
|
|
24
|
+
field: f,
|
|
25
|
+
order: p
|
|
26
|
+
}]), d[5] = p, d[6] = f, d[7] = S) : S = d[7];
|
|
27
|
+
let C;
|
|
28
|
+
d[8] === e ? C = d[9] : (C = e && {
|
|
29
|
+
search: e,
|
|
30
|
+
searchColumns: JSON.stringify(["title", "model"])
|
|
31
|
+
}, d[8] = e, d[9] = C);
|
|
32
|
+
let w;
|
|
33
|
+
d[10] !== h || d[11] !== m || d[12] !== x || d[13] !== S || d[14] !== C ? (w = {
|
|
34
|
+
...x,
|
|
35
|
+
sortBy: S,
|
|
36
|
+
page: m,
|
|
37
|
+
limit: h,
|
|
38
|
+
...C
|
|
39
|
+
}, d[10] = h, d[11] = m, d[12] = x, d[13] = S, d[14] = C, d[15] = w) : w = d[15];
|
|
40
|
+
let T = w, E;
|
|
41
|
+
d[16] !== g || d[17] !== b || d[18] !== h || d[19] !== p || d[20] !== m || d[21] !== e || d[22] !== f ? (E = [
|
|
42
|
+
...getWorkflowsCacheKey(g),
|
|
43
|
+
"list",
|
|
44
|
+
e ?? "",
|
|
45
|
+
b ?? "",
|
|
46
|
+
f,
|
|
47
|
+
p,
|
|
48
|
+
m,
|
|
49
|
+
h
|
|
50
|
+
], d[16] = g, d[17] = b, d[18] = h, d[19] = p, d[20] = m, d[21] = e, d[22] = f, d[23] = E) : E = d[23];
|
|
51
|
+
let D;
|
|
52
|
+
d[24] !== _ || d[25] !== T ? (D = () => _.workflows.getAll(T), d[24] = _, d[25] = T, d[26] = D) : D = d[26];
|
|
53
|
+
let O;
|
|
54
|
+
return d[27] !== D || d[28] !== E ? (O = {
|
|
55
|
+
queryKey: E,
|
|
56
|
+
queryFn: D
|
|
57
|
+
}, d[27] = D, d[28] = E, d[29] = O) : O = d[29], useQuery(O);
|
|
58
|
+
}
|
|
59
|
+
function useCreateWorkflow() {
|
|
60
|
+
let e = c(8), { envKey: r, api: i } = useApiClient(), a = useQueryClient(), l;
|
|
61
|
+
e[0] === i ? l = e[1] : (l = (e) => i.workflows.create(e), e[0] = i, e[1] = l);
|
|
62
|
+
let d;
|
|
63
|
+
e[2] !== r || e[3] !== a ? (d = () => {
|
|
64
|
+
a.invalidateQueries({ queryKey: getWorkflowsCacheKey(r) });
|
|
65
|
+
}, e[2] = r, e[3] = a, e[4] = d) : d = e[4];
|
|
66
|
+
let f;
|
|
67
|
+
return e[5] !== l || e[6] !== d ? (f = {
|
|
68
|
+
mutationFn: l,
|
|
69
|
+
onSuccess: d
|
|
70
|
+
}, e[5] = l, e[6] = d, e[7] = f) : f = e[7], useMutation(f);
|
|
71
|
+
}
|
|
72
|
+
function useUpdateWorkflow() {
|
|
73
|
+
let e = c(8), { envKey: i, api: a } = useApiClient(), l = useQueryClient(), d;
|
|
74
|
+
e[0] === a ? d = e[1] : (d = (e) => a.workflows.update(e), e[0] = a, e[1] = d);
|
|
75
|
+
let f;
|
|
76
|
+
e[2] !== i || e[3] !== l ? (f = (e, a) => {
|
|
77
|
+
l.invalidateQueries({ queryKey: getWorkflowCacheKey(i, a.id) }), l.invalidateQueries({ queryKey: getWorkflowsCacheKey(i) });
|
|
78
|
+
}, e[2] = i, e[3] = l, e[4] = f) : f = e[4];
|
|
79
|
+
let p;
|
|
80
|
+
return e[5] !== d || e[6] !== f ? (p = {
|
|
81
|
+
mutationFn: d,
|
|
82
|
+
onSuccess: f
|
|
83
|
+
}, e[5] = d, e[6] = f, e[7] = p) : p = e[7], useMutation(p);
|
|
84
|
+
}
|
|
85
|
+
function useDeleteWorkflow() {
|
|
86
|
+
let e = c(8), { envKey: i, api: a } = useApiClient(), l = useQueryClient(), d;
|
|
87
|
+
e[0] === a ? d = e[1] : (d = (e) => a.workflows.delete({ id: e }), e[0] = a, e[1] = d);
|
|
25
88
|
let f;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
89
|
+
e[2] !== i || e[3] !== l ? (f = (e, a) => {
|
|
90
|
+
l.removeQueries({ queryKey: getWorkflowCacheKey(i, a) }), l.invalidateQueries({ queryKey: getWorkflowsCacheKey(i) });
|
|
91
|
+
}, e[2] = i, e[3] = l, e[4] = f) : f = e[4];
|
|
92
|
+
let p;
|
|
93
|
+
return e[5] !== d || e[6] !== f ? (p = {
|
|
94
|
+
mutationFn: d,
|
|
95
|
+
onSuccess: f
|
|
96
|
+
}, e[5] = d, e[6] = f, e[7] = p) : p = e[7], useMutation(p);
|
|
97
|
+
}
|
|
98
|
+
function useBatchDeleteWorkflows() {
|
|
99
|
+
let e = c(8), { envKey: r, api: i } = useApiClient(), a = useQueryClient(), l;
|
|
100
|
+
e[0] === i ? l = e[1] : (l = (e) => i.workflows.batchDelete({ ids: e }), e[0] = i, e[1] = l);
|
|
101
|
+
let d;
|
|
102
|
+
e[2] !== r || e[3] !== a ? (d = () => {
|
|
103
|
+
a.invalidateQueries({ queryKey: getWorkflowsCacheKey(r) });
|
|
104
|
+
}, e[2] = r, e[3] = a, e[4] = d) : d = e[4];
|
|
105
|
+
let f;
|
|
106
|
+
return e[5] !== l || e[6] !== d ? (f = {
|
|
107
|
+
mutationFn: l,
|
|
108
|
+
onSuccess: d
|
|
109
|
+
}, e[5] = l, e[6] = d, e[7] = f) : f = e[7], useMutation(f);
|
|
110
|
+
}
|
|
111
|
+
function useChildWorkflows(r, i) {
|
|
112
|
+
let a = c(10), o = i === void 0 ? !0 : i, { envKey: s, api: u } = useApiClient(), d;
|
|
113
|
+
a[0] !== s || a[1] !== r ? (d = getChildWorkflowsCacheKey(s, r), a[0] = s, a[1] = r, a[2] = d) : d = a[2];
|
|
114
|
+
let f;
|
|
115
|
+
a[3] !== u || a[4] !== r ? (f = () => u.workflows.getAll({
|
|
116
|
+
filter: JSON.stringify({ parentId: r }),
|
|
117
|
+
sortBy: JSON.stringify([{
|
|
118
|
+
field: "createdAt",
|
|
119
|
+
order: "ASC"
|
|
120
|
+
}]),
|
|
121
|
+
page: 0,
|
|
122
|
+
limit: 100
|
|
123
|
+
}), a[3] = u, a[4] = r, a[5] = f) : f = a[5];
|
|
124
|
+
let p = o && !!r, m;
|
|
125
|
+
return a[6] !== d || a[7] !== f || a[8] !== p ? (m = {
|
|
126
|
+
queryKey: d,
|
|
127
|
+
queryFn: f,
|
|
128
|
+
select: _temp,
|
|
129
|
+
enabled: p
|
|
130
|
+
}, a[6] = d, a[7] = f, a[8] = p, a[9] = m) : m = a[9], useQuery(m);
|
|
40
131
|
}
|
|
41
132
|
function _temp(e) {
|
|
42
133
|
return e.data;
|
|
43
134
|
}
|
|
44
|
-
function
|
|
45
|
-
let
|
|
46
|
-
|
|
135
|
+
function useWorkflowConfigByName(e) {
|
|
136
|
+
let r = c(10), { envKey: a, api: o } = useApiClient(), s;
|
|
137
|
+
r[0] !== e || r[1] !== a ? (s = getWorkflowConfigCacheKey(a, e), r[0] = e, r[1] = a, r[2] = s) : s = r[2];
|
|
47
138
|
let u;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
sortBy: u
|
|
56
|
-
}, t[3] = l, t[4] = d);
|
|
57
|
-
let f = d, m;
|
|
58
|
-
t[5] !== a || t[6] !== e ? (m = getWorkflowsCacheKey(a, e), t[5] = a, t[6] = e, t[7] = m) : m = t[7];
|
|
59
|
-
let h;
|
|
60
|
-
t[8] !== s || t[9] !== f ? (h = () => s.workflows.getAll(f), t[8] = s, t[9] = f, t[10] = h) : h = t[10];
|
|
61
|
-
let g;
|
|
62
|
-
return t[11] !== m || t[12] !== h ? (g = {
|
|
63
|
-
queryKey: m,
|
|
64
|
-
queryFn: h,
|
|
65
|
-
select: _temp2
|
|
66
|
-
}, t[11] = m, t[12] = h, t[13] = g) : g = t[13], useQuery(g);
|
|
139
|
+
r[3] !== e || r[4] !== o ? (u = () => o.config.getWorkflowConfig({ alias: e }), r[3] = e, r[4] = o, r[5] = u) : u = r[5];
|
|
140
|
+
let d = !!e, f;
|
|
141
|
+
return r[6] !== s || r[7] !== u || r[8] !== d ? (f = {
|
|
142
|
+
queryKey: s,
|
|
143
|
+
queryFn: u,
|
|
144
|
+
enabled: d
|
|
145
|
+
}, r[6] = s, r[7] = u, r[8] = d, r[9] = f) : f = r[9], useQuery(f);
|
|
67
146
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
147
|
+
function useWorkflowSource(e) {
|
|
148
|
+
let r = c(10), { envKey: i, api: o } = useApiClient(), s;
|
|
149
|
+
r[0] !== e || r[1] !== i ? (s = getWorkflowSourceCacheKey(i, e), r[0] = e, r[1] = i, r[2] = s) : s = r[2];
|
|
150
|
+
let u;
|
|
151
|
+
r[3] !== e || r[4] !== o ? (u = () => o.config.getWorkflowSource({ alias: e }), r[3] = e, r[4] = o, r[5] = u) : u = r[5];
|
|
152
|
+
let d = !!e, f;
|
|
153
|
+
return r[6] !== s || r[7] !== u || r[8] !== d ? (f = {
|
|
154
|
+
queryKey: s,
|
|
155
|
+
queryFn: u,
|
|
156
|
+
enabled: d
|
|
157
|
+
}, r[6] = s, r[7] = u, r[8] = d, r[9] = f) : f = r[9], useQuery(f);
|
|
70
158
|
}
|
|
71
|
-
function
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
let
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}, o[5] = f, o[6] = p, o[7] = m) : m = o[7], useMutation(m);
|
|
159
|
+
function useWorkflowCheckpoints(e) {
|
|
160
|
+
let i = c(10), { envKey: a, api: o } = useApiClient(), s;
|
|
161
|
+
i[0] !== a || i[1] !== e ? (s = [...getWorkflowCacheKey(a, e), "checkpoints"], i[0] = a, i[1] = e, i[2] = s) : s = i[2];
|
|
162
|
+
let u;
|
|
163
|
+
i[3] !== o || i[4] !== e ? (u = () => o.workflows.getCheckpoints({ id: e }), i[3] = o, i[4] = e, i[5] = u) : u = i[5];
|
|
164
|
+
let d = !!e, f;
|
|
165
|
+
return i[6] !== s || i[7] !== u || i[8] !== d ? (f = {
|
|
166
|
+
queryKey: s,
|
|
167
|
+
queryFn: u,
|
|
168
|
+
enabled: d
|
|
169
|
+
}, i[6] = s, i[7] = u, i[8] = d, i[9] = f) : f = i[9], useQuery(f);
|
|
83
170
|
}
|
|
84
|
-
export { useDeleteWorkflow,
|
|
171
|
+
export { useBatchDeleteWorkflows, useChildWorkflows, useCreateWorkflow, useDeleteWorkflow, useFilterWorkflows, useUpdateWorkflow, useWorkflow, useWorkflowCheckpoints, useWorkflowConfigByName, useWorkflowSource };
|