@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
package/dist/index.d.ts
CHANGED
|
@@ -23,21 +23,13 @@ import { FileExplorerNodeInterface } from '@loopstack/contracts/api';
|
|
|
23
23
|
import { HubLoginRequestInterface } from '@loopstack/contracts/api';
|
|
24
24
|
import { JSX } from 'react/jsx-runtime';
|
|
25
25
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
26
|
-
import { NamespaceInterface } from '@loopstack/contracts/api';
|
|
27
|
-
import { NamespaceItemInterface } from '@loopstack/contracts/api';
|
|
28
26
|
import { PaginatedInterface } from '@loopstack/contracts/api';
|
|
29
|
-
import { PipelineConfigInterface } from '@loopstack/contracts/api';
|
|
30
|
-
import { PipelineCreateInterface } from '@loopstack/contracts/api';
|
|
31
|
-
import { PipelineInterface } from '@loopstack/contracts/api';
|
|
32
|
-
import { PipelineItemInterface } from '@loopstack/contracts/api';
|
|
33
|
-
import { PipelineSourceInterface } from '@loopstack/contracts/api';
|
|
34
|
-
import { PipelineUpdateInterface } from '@loopstack/contracts/api';
|
|
35
27
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
36
28
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
37
29
|
import * as React_2 from 'react';
|
|
38
30
|
import { ReactElement } from 'react';
|
|
39
31
|
import { ReactNode } from 'react';
|
|
40
|
-
import {
|
|
32
|
+
import { RunWorkflowPayloadInterface } from '@loopstack/contracts/api';
|
|
41
33
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
42
34
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
43
35
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
@@ -49,8 +41,12 @@ import { useNavigate } from 'react-router-dom';
|
|
|
49
41
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
50
42
|
import { VariantProps } from 'class-variance-authority';
|
|
51
43
|
import { WorkerInfoInterface } from '@loopstack/contracts/api';
|
|
52
|
-
import {
|
|
44
|
+
import { WorkflowConfigInterface } from '@loopstack/contracts/api';
|
|
45
|
+
import { WorkflowCreateInterface } from '@loopstack/contracts/api';
|
|
46
|
+
import { WorkflowFullInterface } from '@loopstack/contracts/api';
|
|
53
47
|
import { WorkflowItemInterface } from '@loopstack/contracts/api';
|
|
48
|
+
import { WorkflowSourceInterface } from '@loopstack/contracts/api';
|
|
49
|
+
import { WorkflowUpdateInterface } from '@loopstack/contracts/api';
|
|
54
50
|
import { WorkspaceConfigInterface } from '@loopstack/contracts/api';
|
|
55
51
|
import { WorkspaceCreateInterface } from '@loopstack/contracts/api';
|
|
56
52
|
import { WorkspaceEnvironmentInterface } from '@loopstack/contracts/api';
|
|
@@ -256,17 +252,15 @@ declare function createApi(http: AxiosInstance): {
|
|
|
256
252
|
};
|
|
257
253
|
config: {
|
|
258
254
|
getWorkspaceTypes: () => Promise<WorkspaceConfigInterface[]>;
|
|
259
|
-
|
|
255
|
+
getWorkflowTypesByWorkspace: (params: {
|
|
260
256
|
workspaceBlockName: string;
|
|
261
|
-
}) => Promise<
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
pipelineName: string;
|
|
269
|
-
}) => Promise<PipelineSourceInterface>;
|
|
257
|
+
}) => Promise<WorkflowConfigInterface[]>;
|
|
258
|
+
getWorkflowConfig: (params: {
|
|
259
|
+
alias: string;
|
|
260
|
+
}) => Promise<WorkflowConfigInterface>;
|
|
261
|
+
getWorkflowSource: (params: {
|
|
262
|
+
alias: string;
|
|
263
|
+
}) => Promise<WorkflowSourceInterface>;
|
|
270
264
|
getAvailableEnvironments: () => Promise<AvailableEnvironmentInterface[]>;
|
|
271
265
|
};
|
|
272
266
|
dashboard: {
|
|
@@ -283,54 +277,10 @@ declare function createApi(http: AxiosInstance): {
|
|
|
283
277
|
limit?: number;
|
|
284
278
|
}) => Promise<PaginatedInterface<DocumentItemInterface>>;
|
|
285
279
|
};
|
|
286
|
-
namespaces: {
|
|
287
|
-
getById: (params: {
|
|
288
|
-
id: string;
|
|
289
|
-
}) => Promise<NamespaceInterface>;
|
|
290
|
-
getAll: (params?: {
|
|
291
|
-
filter?: string;
|
|
292
|
-
sortBy?: string;
|
|
293
|
-
page?: number;
|
|
294
|
-
limit?: number;
|
|
295
|
-
}) => Promise<PaginatedInterface<NamespaceItemInterface>>;
|
|
296
|
-
};
|
|
297
|
-
pipelines: {
|
|
298
|
-
getById: (params: {
|
|
299
|
-
id: string;
|
|
300
|
-
}) => Promise<PipelineInterface>;
|
|
301
|
-
getAll: (params?: {
|
|
302
|
-
filter?: string;
|
|
303
|
-
sortBy?: string;
|
|
304
|
-
page?: number;
|
|
305
|
-
limit?: number;
|
|
306
|
-
search?: string;
|
|
307
|
-
searchColumns?: string;
|
|
308
|
-
}) => Promise<PaginatedInterface<PipelineItemInterface>>;
|
|
309
|
-
create: (params: {
|
|
310
|
-
pipelineCreateDto: PipelineCreateInterface;
|
|
311
|
-
}) => Promise<PipelineInterface>;
|
|
312
|
-
update: (params: {
|
|
313
|
-
id: string;
|
|
314
|
-
pipelineUpdateDto: PipelineUpdateInterface;
|
|
315
|
-
}) => Promise<PipelineInterface>;
|
|
316
|
-
delete: (params: {
|
|
317
|
-
id: string;
|
|
318
|
-
}) => Promise<void>;
|
|
319
|
-
batchDelete: (params: {
|
|
320
|
-
ids: string[];
|
|
321
|
-
}) => Promise<void>;
|
|
322
|
-
getFileTree: (params: {
|
|
323
|
-
pipelineId: string;
|
|
324
|
-
}) => Promise<FileExplorerNodeInterface[]>;
|
|
325
|
-
getFileContent: (params: {
|
|
326
|
-
pipelineId: string;
|
|
327
|
-
filePath: string;
|
|
328
|
-
}) => Promise<FileContentInterface>;
|
|
329
|
-
};
|
|
330
280
|
processor: {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
281
|
+
runWorkflow: (params: {
|
|
282
|
+
workflowId: string;
|
|
283
|
+
runWorkflowPayloadDto: RunWorkflowPayloadInterface;
|
|
334
284
|
force?: boolean;
|
|
335
285
|
}) => Promise<void>;
|
|
336
286
|
};
|
|
@@ -372,16 +322,38 @@ declare function createApi(http: AxiosInstance): {
|
|
|
372
322
|
workflows: {
|
|
373
323
|
getById: (params: {
|
|
374
324
|
id: string;
|
|
375
|
-
}) => Promise<
|
|
325
|
+
}) => Promise<WorkflowFullInterface>;
|
|
376
326
|
getAll: (params?: {
|
|
377
327
|
filter?: string;
|
|
378
328
|
sortBy?: string;
|
|
379
329
|
page?: number;
|
|
380
330
|
limit?: number;
|
|
331
|
+
search?: string;
|
|
332
|
+
searchColumns?: string;
|
|
381
333
|
}) => Promise<PaginatedInterface<WorkflowItemInterface>>;
|
|
334
|
+
create: (params: {
|
|
335
|
+
workflowCreateDto: WorkflowCreateInterface;
|
|
336
|
+
}) => Promise<WorkflowFullInterface>;
|
|
337
|
+
update: (params: {
|
|
338
|
+
id: string;
|
|
339
|
+
workflowUpdateDto: WorkflowUpdateInterface;
|
|
340
|
+
}) => Promise<WorkflowFullInterface>;
|
|
382
341
|
delete: (params: {
|
|
383
342
|
id: string;
|
|
384
343
|
}) => Promise<void>;
|
|
344
|
+
batchDelete: (params: {
|
|
345
|
+
ids: string[];
|
|
346
|
+
}) => Promise<void>;
|
|
347
|
+
getFileTree: (params: {
|
|
348
|
+
workflowId: string;
|
|
349
|
+
}) => Promise<FileExplorerNodeInterface[]>;
|
|
350
|
+
getFileContent: (params: {
|
|
351
|
+
workflowId: string;
|
|
352
|
+
filePath: string;
|
|
353
|
+
}) => Promise<FileContentInterface>;
|
|
354
|
+
getCheckpoints: (params: {
|
|
355
|
+
id: string;
|
|
356
|
+
}) => Promise<WorkflowCheckpoint[]>;
|
|
385
357
|
};
|
|
386
358
|
workspaces: {
|
|
387
359
|
getById: (params: {
|
|
@@ -716,19 +688,19 @@ export declare type FilterOption = string | {
|
|
|
716
688
|
value: string;
|
|
717
689
|
};
|
|
718
690
|
|
|
719
|
-
export declare function getAllWorkflowsCacheKey(envKey: string): string[];
|
|
720
|
-
|
|
721
691
|
export declare function getAvailableEnvironmentsCacheKey(envKey: string): string[];
|
|
722
692
|
|
|
693
|
+
export declare function getChildWorkflowsCacheKey(envKey: string, parentId: string): string[];
|
|
694
|
+
|
|
723
695
|
export declare function getDashboardStatsCacheKey(envKey: string): string[];
|
|
724
696
|
|
|
725
697
|
export declare function getDocumentCacheKey(envKey: string, documentId: string): string[];
|
|
726
698
|
|
|
727
699
|
export declare function getDocumentsCacheKey(envKey: string, workflowId: string): string[];
|
|
728
700
|
|
|
729
|
-
export declare function getFileContentCacheKey(envKey: string,
|
|
701
|
+
export declare function getFileContentCacheKey(envKey: string, workflowId: string, filePath: string): string[];
|
|
730
702
|
|
|
731
|
-
export declare function getFileTreeCacheKey(envKey: string,
|
|
703
|
+
export declare function getFileTreeCacheKey(envKey: string, workflowId: string): string[];
|
|
732
704
|
|
|
733
705
|
export declare function getHealthCacheKey(envKey: string): string[];
|
|
734
706
|
|
|
@@ -737,36 +709,24 @@ export declare function getHealthCacheKey(envKey: string): string[];
|
|
|
737
709
|
*
|
|
738
710
|
* Conventions:
|
|
739
711
|
* - All keys start with a domain prefix, followed by envKey for environment scoping.
|
|
740
|
-
* - Singular keys (e.g. '
|
|
741
|
-
* - Plural keys (e.g. '
|
|
712
|
+
* - Singular keys (e.g. 'workflow') are for single-entity queries.
|
|
713
|
+
* - Plural keys (e.g. 'workflows') are for list/filter queries.
|
|
742
714
|
* - Mutations should invalidate the plural key to catch all list variations.
|
|
743
715
|
* - Use `select` (not `.then()` in queryFn) for response transformations.
|
|
744
716
|
*/
|
|
745
717
|
export declare function getMeCacheKey(envKey: string): string[];
|
|
746
718
|
|
|
747
|
-
export declare function
|
|
748
|
-
|
|
749
|
-
export declare function getNamespacesByPipelineCacheKey(envKey: string, pipelineId: string): string[];
|
|
750
|
-
|
|
751
|
-
export declare function getPipelineCacheKey(envKey: string, id: string): string[];
|
|
752
|
-
|
|
753
|
-
export declare function getPipelineConfigCacheKey(envKey: string, workspaceBlockName: string, pipelineBlockName: string): string[];
|
|
754
|
-
|
|
755
|
-
export declare function getPipelinesCacheKey(envKey: string): string[];
|
|
756
|
-
|
|
757
|
-
export declare function getPipelinesChildrenCacheKey(envKey: string, parentId: string): string[];
|
|
758
|
-
|
|
759
|
-
export declare function getPipelineSourceCacheKey(envKey: string, workspaceBlockName: string, pipelineBlockName: string): string[];
|
|
719
|
+
export declare function getSecretsCacheKey(envKey: string, workspaceId: string): string[];
|
|
760
720
|
|
|
761
|
-
export declare function
|
|
721
|
+
export declare function getWorkflowCacheKey(envKey: string, id: string): string[];
|
|
762
722
|
|
|
763
|
-
export declare function
|
|
723
|
+
export declare function getWorkflowConfigCacheKey(envKey: string, alias: string): string[];
|
|
764
724
|
|
|
765
|
-
export declare function
|
|
725
|
+
export declare function getWorkflowsCacheKey(envKey: string): string[];
|
|
766
726
|
|
|
767
|
-
export declare function
|
|
727
|
+
export declare function getWorkflowSourceCacheKey(envKey: string, alias: string): string[];
|
|
768
728
|
|
|
769
|
-
export declare function
|
|
729
|
+
export declare function getWorkflowTypesCacheKey(envKey: string, workspaceBlockName: string): string[];
|
|
770
730
|
|
|
771
731
|
export declare function getWorkspaceCacheKey(envKey: string, id: string): string[];
|
|
772
732
|
|
|
@@ -881,16 +841,15 @@ export declare class LocalRouter implements StudioRouter {
|
|
|
881
841
|
navigateToWorkspaces(): Promise<void>;
|
|
882
842
|
getWorkspace(workspaceId: string): string;
|
|
883
843
|
navigateToWorkspace(workspaceId: string): Promise<void>;
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
navigateToPipelineNamespace(workspaceId: string, pipelineId: string, namespaceId: string): Promise<void>;
|
|
844
|
+
getWorkflow(workflowId: string): string;
|
|
845
|
+
navigateToWorkflow(workflowId: string): Promise<void>;
|
|
846
|
+
getWorkflowDebug(workflowId: string): string;
|
|
847
|
+
navigateToWorkflowDebug(workflowId: string): Promise<void>;
|
|
848
|
+
navigateToChildWorkflow(workflowId: string, clickId: string | undefined): Promise<void>;
|
|
890
849
|
getWorkspaceRuns(workspaceId: string): string;
|
|
891
850
|
navigateToWorkspaceRuns(workspaceId: string): Promise<void>;
|
|
892
|
-
|
|
893
|
-
|
|
851
|
+
getEmbedWorkflow(workflowId: string): string;
|
|
852
|
+
getPreviewWorkflow(workflowId: string): string;
|
|
894
853
|
getCurrentEnvironmentId(): string;
|
|
895
854
|
getTheme(): 'local' | 'cloud';
|
|
896
855
|
}
|
|
@@ -946,8 +905,6 @@ declare interface PageBreadcrumbsProps {
|
|
|
946
905
|
breadcrumbData: BreadCrumbsData[];
|
|
947
906
|
}
|
|
948
907
|
|
|
949
|
-
export declare const PipelineDebugPage: default_2.FC;
|
|
950
|
-
|
|
951
908
|
export declare function Popover({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Root>): JSX.Element;
|
|
952
909
|
|
|
953
910
|
export declare function PopoverAnchor({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Anchor>): JSX.Element;
|
|
@@ -1172,16 +1129,15 @@ export declare interface StudioRouter {
|
|
|
1172
1129
|
navigateToWorkspaces(): Promise<void>;
|
|
1173
1130
|
getWorkspace(workspaceId: string): string;
|
|
1174
1131
|
navigateToWorkspace(workspaceId: string): Promise<void>;
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
navigateToPipelineNamespace(workspaceId: string, pipelineId: string, namespaceId: string): Promise<void>;
|
|
1132
|
+
getWorkflow(workflowId: string): string;
|
|
1133
|
+
navigateToWorkflow(workflowId: string): Promise<void>;
|
|
1134
|
+
getWorkflowDebug(workflowId: string): string;
|
|
1135
|
+
navigateToWorkflowDebug(workflowId: string): Promise<void>;
|
|
1136
|
+
navigateToChildWorkflow(workflowId: string, clickId: string | undefined): Promise<void>;
|
|
1181
1137
|
getWorkspaceRuns(workspaceId: string): string;
|
|
1182
1138
|
navigateToWorkspaceRuns(workspaceId: string): Promise<void>;
|
|
1183
|
-
|
|
1184
|
-
|
|
1139
|
+
getEmbedWorkflow(workflowId: string): string;
|
|
1140
|
+
getPreviewWorkflow(workflowId: string): string;
|
|
1185
1141
|
getCurrentEnvironmentId(): string;
|
|
1186
1142
|
getTheme(): 'local' | 'cloud';
|
|
1187
1143
|
}
|
|
@@ -1227,40 +1183,47 @@ export declare function useAvailableEnvironments(options?: {
|
|
|
1227
1183
|
enabled?: boolean;
|
|
1228
1184
|
}): UseQueryResult<AvailableEnvironmentInterface[], Error>;
|
|
1229
1185
|
|
|
1230
|
-
|
|
1186
|
+
/**
|
|
1187
|
+
* Batch delete workflows.
|
|
1188
|
+
*/
|
|
1189
|
+
export declare function useBatchDeleteWorkflows(): UseMutationResult<void, Error, string[], unknown>;
|
|
1231
1190
|
|
|
1232
1191
|
export declare function useBatchDeleteWorkspaces(): UseMutationResult<void, Error, string[], unknown>;
|
|
1233
1192
|
|
|
1234
|
-
|
|
1193
|
+
/**
|
|
1194
|
+
* Fetch child workflows by parentId.
|
|
1195
|
+
*/
|
|
1196
|
+
export declare function useChildWorkflows(parentId: string | undefined, enabled?: boolean): UseQueryResult<WorkflowItemInterface[], Error>;
|
|
1235
1197
|
|
|
1236
1198
|
export declare const useComponentOverrides: () => ComponentOverrides;
|
|
1237
1199
|
|
|
1238
|
-
|
|
1239
|
-
|
|
1200
|
+
/**
|
|
1201
|
+
* Create a new workflow.
|
|
1202
|
+
*/
|
|
1203
|
+
export declare function useCreateWorkflow(): UseMutationResult<WorkflowFullInterface, Error, {
|
|
1204
|
+
workflowCreateDto: WorkflowCreateInterface;
|
|
1240
1205
|
}, unknown>;
|
|
1241
1206
|
|
|
1242
1207
|
export declare function useCreateWorkspace(): UseMutationResult<WorkspaceInterface, Error, {
|
|
1243
1208
|
workspaceCreateDto: WorkspaceCreateInterface;
|
|
1244
1209
|
}, unknown>;
|
|
1245
1210
|
|
|
1246
|
-
|
|
1211
|
+
/**
|
|
1212
|
+
* Delete a single workflow.
|
|
1213
|
+
*/
|
|
1214
|
+
export declare function useDeleteWorkflow(): UseMutationResult<void, Error, string, unknown>;
|
|
1247
1215
|
|
|
1248
1216
|
export declare function useDeleteWorkspace(): UseMutationResult<void, Error, string, unknown>;
|
|
1249
1217
|
|
|
1250
|
-
|
|
1218
|
+
/**
|
|
1219
|
+
* Fetch a filtered, sorted, paginated list of workflows.
|
|
1220
|
+
*/
|
|
1221
|
+
export declare function useFilterWorkflows(searchTerm: string | undefined, filter: Record<string, string | null>, sortBy?: string, order?: string, page?: number, limit?: number): UseQueryResult<PaginatedInterface<WorkflowItemInterface>, Error>;
|
|
1251
1222
|
|
|
1252
1223
|
export declare function useFilterWorkspaces(searchTerm: string | undefined, filter: Record<string, string>, sortBy?: string, order?: string, page?: number, limit?: number): UseQueryResult<PaginatedInterface<WorkspaceItemInterface>, Error>;
|
|
1253
1224
|
|
|
1254
1225
|
export declare function useIsMobile(): boolean;
|
|
1255
1226
|
|
|
1256
|
-
export declare function usePipeline(id: string | undefined): UseQueryResult<PipelineInterface, Error>;
|
|
1257
|
-
|
|
1258
|
-
export declare function usePipelineConfig(workspaceBlockName: string | undefined): UseQueryResult<PipelineConfigInterface[], Error>;
|
|
1259
|
-
|
|
1260
|
-
export declare function usePipelineConfigByName(workspaceBlockName: string | undefined, pipelineBlockName: string | undefined): UseQueryResult<PipelineConfigInterface, Error>;
|
|
1261
|
-
|
|
1262
|
-
export declare function usePipelineSource(workspaceBlockName: string | undefined, pipelineBlockName: string | undefined): UseQueryResult<PipelineSourceInterface, Error>;
|
|
1263
|
-
|
|
1264
1227
|
export declare const useRouter: (envId: string, embedPrefix?: string) => StudioRouter;
|
|
1265
1228
|
|
|
1266
1229
|
export declare function useSetFavouriteWorkspace(): UseMutationResult<void, Error, {
|
|
@@ -1274,9 +1237,12 @@ export declare const useStudio: () => StudioContext;
|
|
|
1274
1237
|
|
|
1275
1238
|
export declare const useStudioOptional: () => StudioContext | null;
|
|
1276
1239
|
|
|
1277
|
-
|
|
1240
|
+
/**
|
|
1241
|
+
* Update an existing workflow.
|
|
1242
|
+
*/
|
|
1243
|
+
export declare function useUpdateWorkflow(): UseMutationResult<WorkflowFullInterface, Error, {
|
|
1278
1244
|
id: string;
|
|
1279
|
-
|
|
1245
|
+
workflowUpdateDto: WorkflowUpdateInterface;
|
|
1280
1246
|
}, unknown>;
|
|
1281
1247
|
|
|
1282
1248
|
export declare function useUpdateWorkspace(): UseMutationResult<WorkspaceInterface, Error, {
|
|
@@ -1284,6 +1250,28 @@ id: string;
|
|
|
1284
1250
|
workspaceUpdateDto: WorkspaceUpdateInterface;
|
|
1285
1251
|
}, unknown>;
|
|
1286
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* Fetch a single workflow (full details) by ID.
|
|
1255
|
+
*/
|
|
1256
|
+
export declare function useWorkflow(id: string | undefined): UseQueryResult<WorkflowFullInterface, Error>;
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Fetch checkpoints for a workflow run.
|
|
1260
|
+
*/
|
|
1261
|
+
export declare function useWorkflowCheckpoints(workflowId: string): UseQueryResult<WorkflowCheckpoint[], Error>;
|
|
1262
|
+
|
|
1263
|
+
export declare function useWorkflowConfig(workspaceBlockName: string | undefined): UseQueryResult<WorkflowConfigInterface[], Error>;
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Fetch workflow config by block name (class name).
|
|
1267
|
+
*/
|
|
1268
|
+
export declare function useWorkflowConfigByName(alias: string | undefined): UseQueryResult<WorkflowConfigInterface, Error>;
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* Fetch workflow source by block name (class name).
|
|
1272
|
+
*/
|
|
1273
|
+
export declare function useWorkflowSource(alias: string | undefined): UseQueryResult<WorkflowSourceInterface, Error>;
|
|
1274
|
+
|
|
1287
1275
|
export declare function useWorkspace(id: string | undefined): UseQueryResult<WorkspaceInterface, Error>;
|
|
1288
1276
|
|
|
1289
1277
|
export declare function useWorkspaceConfig(): UseQueryResult<WorkspaceConfigInterface[], Error>;
|
|
@@ -1292,11 +1280,22 @@ export declare function WorkbenchPage({ previewPanelOpen, onPreviewPanelOpenChan
|
|
|
1292
1280
|
previewPanelOpen?: boolean;
|
|
1293
1281
|
onPreviewPanelOpenChange?: (open: boolean) => void;
|
|
1294
1282
|
isDeveloperMode?: boolean;
|
|
1295
|
-
getPreviewUrl?: (
|
|
1296
|
-
getEnvironmentPreviewUrl?: (env: WorkspaceEnvironmentInterface,
|
|
1283
|
+
getPreviewUrl?: (workflowId: string) => string;
|
|
1284
|
+
getEnvironmentPreviewUrl?: (env: WorkspaceEnvironmentInterface, workflowId?: string) => string;
|
|
1297
1285
|
environments?: WorkspaceEnvironmentInterface[];
|
|
1298
1286
|
}): JSX.Element;
|
|
1299
1287
|
|
|
1288
|
+
declare interface WorkflowCheckpoint {
|
|
1289
|
+
id: string;
|
|
1290
|
+
place: string;
|
|
1291
|
+
transitionId: string | null;
|
|
1292
|
+
transitionFrom: string | null;
|
|
1293
|
+
version: number;
|
|
1294
|
+
createdAt: string;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
export declare const WorkflowDebugPage: default_2.FC;
|
|
1298
|
+
|
|
1300
1299
|
export declare const WorkspacePage: () => JSX.Element;
|
|
1301
1300
|
|
|
1302
1301
|
export declare const WorkspaceRunsPage: () => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAvailableEnvironmentsCacheKey, getChildWorkflowsCacheKey, getDashboardStatsCacheKey, getDocumentCacheKey, getDocumentsCacheKey, getFileContentCacheKey, getFileTreeCacheKey, getHealthCacheKey, getMeCacheKey, getSecretsCacheKey, getWorkflowCacheKey, getWorkflowConfigCacheKey, getWorkflowSourceCacheKey, getWorkflowTypesCacheKey, getWorkflowsCacheKey, getWorkspaceCacheKey, getWorkspaceTypesCacheKey, getWorkspacesCacheKey } from "./hooks/query-keys.js";
|
|
2
2
|
import { createApiClient } from "./services/createApiClient.js";
|
|
3
3
|
import { eventBus } from "./services/eventEmitter.js";
|
|
4
4
|
import "./services/index.js";
|
|
5
5
|
import { StudioProvider, useStudio, useStudioOptional } from "./providers/StudioProvider.js";
|
|
6
6
|
import { useApiClient } from "./hooks/useApi.js";
|
|
7
7
|
import { useIsMobile } from "./hooks/use-mobile.js";
|
|
8
|
-
import { useAvailableEnvironments,
|
|
9
|
-
import {
|
|
8
|
+
import { useAvailableEnvironments, useWorkflowConfig, useWorkspaceConfig } from "./hooks/useConfig.js";
|
|
9
|
+
import { useBatchDeleteWorkflows, useChildWorkflows, useCreateWorkflow, useDeleteWorkflow, useFilterWorkflows, useUpdateWorkflow, useWorkflow, useWorkflowCheckpoints, useWorkflowConfigByName, useWorkflowSource } from "./hooks/useWorkflows.js";
|
|
10
10
|
import { useBatchDeleteWorkspaces, useCreateWorkspace, useDeleteWorkspace, useFilterWorkspaces, useSetFavouriteWorkspace, useUpdateWorkspace, useWorkspace } from "./hooks/useWorkspaces.js";
|
|
11
11
|
import "./hooks/index.js";
|
|
12
12
|
import { ComponentOverridesProvider, useComponentOverrides } from "./providers/ComponentOverridesProvider.js";
|
|
@@ -70,7 +70,7 @@ import WorkspacePage_default from "./pages/WorkspacePage.js";
|
|
|
70
70
|
import WorkspaceRunsPage_default from "./pages/WorkspaceRunsPage.js";
|
|
71
71
|
import "./features/workspaces/index.js";
|
|
72
72
|
import WorkbenchPage from "./pages/WorkbenchPage.js";
|
|
73
|
-
import
|
|
73
|
+
import WorkflowDebugPage_default from "./pages/WorkflowDebugPage.js";
|
|
74
74
|
import DebugWorkflowsPage from "./pages/DebugWorkflowsPage.js";
|
|
75
75
|
import DebugWorkflowDetailsPage from "./pages/DebugWorkflowDetailsPage.js";
|
|
76
76
|
import EmbedWorkbenchPage from "./pages/EmbedWorkbenchPage.js";
|
|
@@ -82,4 +82,4 @@ import LocalHealthCheck_default from "./features/health/LocalHealthCheck.js";
|
|
|
82
82
|
import EnvironmentEmbedRoot from "./app/EnvironmentEmbedRoot.js";
|
|
83
83
|
import { StudioSidebar } from "./components/layout/StudioSidebar.js";
|
|
84
84
|
import "./features/health/index.js";
|
|
85
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, CompletionMessagePaper_default as CompletionMessagePaper, ComponentOverridesProvider, ConfirmDialog_default as ConfirmDialog, CreateWorkspace_default as CreateWorkspace, CustomListView_default as CustomItemListView, DashboardPage, DataList, DataTable, DataTableBatchAction_default as DataTableBatchActions, DataTableFilters_default as DataTableFilters, DataTablePagination_default as DataTablePagination, DataTableToolbar_default as DataTableToolbar, DebugPage_default as DebugPage, DebugWorkflowDetailsPage, DebugWorkflowsPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiscordLogo, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmbedWorkbenchPage, EnvironmentEmbedRoot, EnvironmentSlotSelector, ErrorAlert_default as ErrorAlert, ErrorBoundary, ErrorSnackbar_default as ErrorSnackbar, GoogleLogo, Input, InvalidationEventsProvider, ListView_default as ItemListView, Label, LoadingCentered_default as LoadingCentered, LocalHealthCheck_default as LocalHealthCheck, LocalRouter, MainLayout_default as MainLayout, PageBreadcrumbs_default as PageBreadcrumbs,
|
|
85
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, CompletionMessagePaper_default as CompletionMessagePaper, ComponentOverridesProvider, ConfirmDialog_default as ConfirmDialog, CreateWorkspace_default as CreateWorkspace, CustomListView_default as CustomItemListView, DashboardPage, DataList, DataTable, DataTableBatchAction_default as DataTableBatchActions, DataTableFilters_default as DataTableFilters, DataTablePagination_default as DataTablePagination, DataTableToolbar_default as DataTableToolbar, DebugPage_default as DebugPage, DebugWorkflowDetailsPage, DebugWorkflowsPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiscordLogo, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmbedWorkbenchPage, EnvironmentEmbedRoot, EnvironmentSlotSelector, ErrorAlert_default as ErrorAlert, ErrorBoundary, ErrorSnackbar_default as ErrorSnackbar, GoogleLogo, Input, InvalidationEventsProvider, ListView_default as ItemListView, Label, LoadingCentered_default as LoadingCentered, LocalHealthCheck_default as LocalHealthCheck, LocalRouter, MainLayout_default as MainLayout, PageBreadcrumbs_default as PageBreadcrumbs, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreviewWorkbenchPage, RadioGroup, RadioGroupItem, RunsListPage, RunsPage, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarInsetDiv, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDiv, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Snackbar_default as Snackbar, SseProvider, StudioLandingPage, StudioProvider, StudioSidebar, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, WorkbenchPage, WorkflowDebugPage_default as WorkflowDebugPage, WorkspacePage_default as WorkspacePage, WorkspaceRunsPage_default as WorkspaceRunsPage, WorkspacesPage, badgeVariants, buttonVariants, createApiClient, eventBus, getAvailableEnvironmentsCacheKey, getChildWorkflowsCacheKey, getDashboardStatsCacheKey, getDocumentCacheKey, getDocumentsCacheKey, getFileContentCacheKey, getFileTreeCacheKey, getHealthCacheKey, getMeCacheKey, getSecretsCacheKey, getWorkflowCacheKey, getWorkflowConfigCacheKey, getWorkflowSourceCacheKey, getWorkflowTypesCacheKey, getWorkflowsCacheKey, getWorkspaceCacheKey, getWorkspaceTypesCacheKey, getWorkspacesCacheKey, useApiClient, useAvailableEnvironments, useBatchDeleteWorkflows, useBatchDeleteWorkspaces, useChildWorkflows, useComponentOverrides, useCreateWorkflow, useCreateWorkspace, useDeleteWorkflow, useDeleteWorkspace, useFilterWorkflows, useFilterWorkspaces, useIsMobile, useRouter, useSetFavouriteWorkspace, useSidebar, useStudio, useStudioOptional, useUpdateWorkflow, useUpdateWorkspace, useWorkflow, useWorkflowCheckpoints, useWorkflowConfig, useWorkflowConfigByName, useWorkflowSource, useWorkspace, useWorkspaceConfig };
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_pipeline_state } from "./pipeline-state.js";
|
|
3
2
|
import { require_sort_order_enum } from "./sort-order.enum.js";
|
|
4
3
|
import { require_workflow_state_enum } from "./workflow-state.enum.js";
|
|
5
4
|
import { require_user_type_enum } from "./user-type.enum.js";
|
|
6
5
|
import { require_registry_enum } from "./registry.enum.js";
|
|
7
6
|
var require_enums = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
(!
|
|
7
|
+
var a = e && e.__createBinding || (Object.create ? function(e, t, n, r) {
|
|
8
|
+
r === void 0 && (r = n);
|
|
9
|
+
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
10
|
+
(!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
|
|
12
11
|
enumerable: !0,
|
|
13
12
|
get: function() {
|
|
14
|
-
return n
|
|
13
|
+
return t[n];
|
|
15
14
|
}
|
|
16
|
-
}), Object.defineProperty(e,
|
|
17
|
-
} : function(e, n, r
|
|
18
|
-
|
|
19
|
-
}),
|
|
20
|
-
for (var
|
|
15
|
+
}), Object.defineProperty(e, r, i);
|
|
16
|
+
} : function(e, t, n, r) {
|
|
17
|
+
r === void 0 && (r = n), e[r] = t[n];
|
|
18
|
+
}), o = e && e.__exportStar || function(e, t) {
|
|
19
|
+
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && a(t, e, n);
|
|
21
20
|
};
|
|
22
|
-
Object.defineProperty(e, "__esModule", { value: !0 }),
|
|
21
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), o(require_sort_order_enum(), e), o(require_workflow_state_enum(), e), o(require_user_type_enum(), e), o(require_registry_enum(), e);
|
|
23
22
|
}));
|
|
24
23
|
export default require_enums();
|
|
25
24
|
export { require_enums };
|
|
@@ -3,7 +3,7 @@ var require_workflow_state_enum = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
|
3
3
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.WorkflowState = void 0;
|
|
4
4
|
var t;
|
|
5
5
|
(function(e) {
|
|
6
|
-
e.Pending = "pending", e.Running = "running", e.Waiting = "waiting", e.Completed = "completed", e.Failed = "failed", e.Canceled = "canceled";
|
|
6
|
+
e.Pending = "pending", e.Running = "running", e.Paused = "paused", e.Waiting = "waiting", e.Completed = "completed", e.Failed = "failed", e.Canceled = "canceled";
|
|
7
7
|
})(t || (e.WorkflowState = t = {}));
|
|
8
8
|
}));
|
|
9
9
|
export default require_workflow_state_enum();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useStudio } from "../providers/StudioProvider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useWorkflowConfigByName, useWorkflowSource } from "../hooks/useWorkflows.js";
|
|
3
3
|
import MainLayout_default from "../components/layout/MainLayout.js";
|
|
4
4
|
import { ReactFlowProvider } from "../node_modules/@xyflow/react/dist/esm/index.js";
|
|
5
5
|
import ConfigFlowViewer_default from "../features/debug/components/ConfigFlowViewer.js";
|
|
@@ -28,7 +28,7 @@ function DebugWorkflowDetailsPage() {
|
|
|
28
28
|
let m;
|
|
29
29
|
h[3] === g ? m = h[4] : (m = ["default", g], h[3] = g, h[4] = m), v = m;
|
|
30
30
|
}
|
|
31
|
-
let [y, b] = v, { data: x, isLoading: S } =
|
|
31
|
+
let [y, b] = v, { data: x, isLoading: S } = useWorkflowConfigByName(b), { data: C, isLoading: w } = useWorkflowSource(b), T = S || w, E;
|
|
32
32
|
h[5] === _ ? E = h[6] : (E = _.getDashboard(), h[5] = _, h[6] = E);
|
|
33
33
|
let D;
|
|
34
34
|
h[7] === Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ jsx(Home, { className: "h-4 w-4" }), h[7] = D) : D = h[7];
|
|
@@ -45,7 +45,7 @@ function DebugWorkflowDetailsPage() {
|
|
|
45
45
|
label: "Debug Workflows",
|
|
46
46
|
href: k
|
|
47
47
|
}, h[12] = k, h[13] = A);
|
|
48
|
-
let j = x?.title || x?.
|
|
48
|
+
let j = x?.title || x?.alias || b || "Workflow Details", M;
|
|
49
49
|
h[14] === j ? M = h[15] : (M = {
|
|
50
50
|
label: j,
|
|
51
51
|
current: !0
|
|
@@ -57,7 +57,7 @@ function DebugWorkflowDetailsPage() {
|
|
|
57
57
|
M
|
|
58
58
|
], h[16] = O, h[17] = A, h[18] = M, h[19] = N) : N = h[19];
|
|
59
59
|
let P = N, F;
|
|
60
|
-
h[20] !== T || h[21] !==
|
|
60
|
+
h[20] !== T || h[21] !== C || h[22] !== b || h[23] !== x || h[24] !== y ? (F = T ? /* @__PURE__ */ jsxs("div", {
|
|
61
61
|
className: "flex items-center space-x-2",
|
|
62
62
|
children: [/* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }), /* @__PURE__ */ jsx("span", { children: "Loading..." })]
|
|
63
63
|
}) : x ? /* @__PURE__ */ jsxs("div", {
|
|
@@ -65,7 +65,7 @@ function DebugWorkflowDetailsPage() {
|
|
|
65
65
|
children: [
|
|
66
66
|
/* @__PURE__ */ jsx("h1", {
|
|
67
67
|
className: "text-3xl font-bold tracking-tight",
|
|
68
|
-
children: x.title || x.
|
|
68
|
+
children: x.title || x.alias
|
|
69
69
|
}),
|
|
70
70
|
/* @__PURE__ */ jsx("p", {
|
|
71
71
|
className: "text-muted-foreground",
|
|
@@ -81,7 +81,7 @@ function DebugWorkflowDetailsPage() {
|
|
|
81
81
|
}), /* @__PURE__ */ jsx("div", {
|
|
82
82
|
className: "flex-1 overflow-auto bg-[#1e1e1e]",
|
|
83
83
|
children: /* @__PURE__ */ jsx(Prism, {
|
|
84
|
-
language: C?.raw ? "
|
|
84
|
+
language: C?.raw ? "typescript" : "json",
|
|
85
85
|
style: vscDarkPlus,
|
|
86
86
|
customStyle: {
|
|
87
87
|
margin: 0,
|
|
@@ -108,10 +108,10 @@ function DebugWorkflowDetailsPage() {
|
|
|
108
108
|
}) : /* @__PURE__ */ jsxs("div", { children: [
|
|
109
109
|
"Workflow Type not found (Workspace: ",
|
|
110
110
|
y,
|
|
111
|
-
",
|
|
111
|
+
", Workflow: ",
|
|
112
112
|
b,
|
|
113
113
|
")"
|
|
114
|
-
] }), h[20] = T, h[21] =
|
|
114
|
+
] }), h[20] = T, h[21] = C, h[22] = b, h[23] = x, h[24] = y, h[25] = F) : F = h[25];
|
|
115
115
|
let I;
|
|
116
116
|
return h[26] !== P || h[27] !== F ? (I = /* @__PURE__ */ jsx(MainLayout_default, {
|
|
117
117
|
breadcrumbsData: P,
|
|
@@ -11,14 +11,14 @@ import { Home } from "lucide-react";
|
|
|
11
11
|
function DebugWorkflowsPage() {
|
|
12
12
|
let { router: f } = useStudio(), { envKey: p, api: m } = useApiClient(), { data: h, isLoading: g } = useWorkspaceConfig(), _ = useQueries({ queries: (h ?? []).map((e) => ({
|
|
13
13
|
queryKey: [
|
|
14
|
-
"
|
|
15
|
-
e.
|
|
14
|
+
"workflowTypes",
|
|
15
|
+
e.className,
|
|
16
16
|
p
|
|
17
17
|
],
|
|
18
18
|
queryFn: async () => {
|
|
19
|
-
let c = await m.config.
|
|
19
|
+
let c = await m.config.getWorkflowTypesByWorkspace({ workspaceBlockName: e.className });
|
|
20
20
|
return {
|
|
21
|
-
workspaceBlockName: e.
|
|
21
|
+
workspaceBlockName: e.className,
|
|
22
22
|
types: c
|
|
23
23
|
};
|
|
24
24
|
},
|
|
@@ -28,14 +28,14 @@ function DebugWorkflowsPage() {
|
|
|
28
28
|
let { workspaceBlockName: c, types: l } = e.data;
|
|
29
29
|
return (l ?? []).map((e) => ({
|
|
30
30
|
...e,
|
|
31
|
-
id: `${c}::${e.
|
|
31
|
+
id: `${c}::${e.alias}`,
|
|
32
32
|
workspaceBlockName: c
|
|
33
33
|
}));
|
|
34
|
-
}), [_, y]), [x, S] = useState(""), [C, w] = useState("
|
|
34
|
+
}), [_, y]), [x, S] = useState(""), [C, w] = useState("alias"), [T, E] = useState("ASC"), [D, O] = useState(0), [k, A] = useState(10), j = useMemo(() => {
|
|
35
35
|
let e = b;
|
|
36
36
|
if (x) {
|
|
37
37
|
let c = x.toLowerCase();
|
|
38
|
-
e = e.filter((e) => e.
|
|
38
|
+
e = e.filter((e) => e.alias?.toLowerCase().includes(c) || e.title?.toLowerCase().includes(c) || e.description?.toLowerCase().includes(c) || e.workspaceBlockName.toLowerCase().includes(c));
|
|
39
39
|
}
|
|
40
40
|
return e = [...e].sort((e, c) => {
|
|
41
41
|
let l = C, u = (e[l] || "").toLowerCase(), d = (c[l] || "").toLowerCase();
|
|
@@ -70,8 +70,8 @@ function DebugWorkflowsPage() {
|
|
|
70
70
|
data: M,
|
|
71
71
|
columns: [
|
|
72
72
|
{
|
|
73
|
-
id: "
|
|
74
|
-
label: "Type ID (
|
|
73
|
+
id: "alias",
|
|
74
|
+
label: "Type ID (Alias)",
|
|
75
75
|
sortable: !0,
|
|
76
76
|
minWidth: 200,
|
|
77
77
|
format: (e) => /* @__PURE__ */ jsx("span", {
|
|
@@ -83,7 +83,7 @@ function DebugWorkflowsPage() {
|
|
|
83
83
|
id: "title",
|
|
84
84
|
label: "Title",
|
|
85
85
|
sortable: !0,
|
|
86
|
-
format: (e, c) => /* @__PURE__ */ jsx("span", { children: String(e || c.
|
|
86
|
+
format: (e, c) => /* @__PURE__ */ jsx("span", { children: String(e || c.alias || "N/A") })
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
id: "workspaceBlockName",
|