@loopstack/loopstack-studio 0.21.3 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/api/auth.js +10 -0
  2. package/dist/api/client.js +13 -0
  3. package/dist/api/config.js +10 -0
  4. package/dist/api/dashboard.js +4 -0
  5. package/dist/api/documents.js +7 -0
  6. package/dist/api/index.js +24 -0
  7. package/dist/api/namespaces.js +7 -0
  8. package/dist/api/pipelines.js +13 -0
  9. package/dist/api/processor.js +4 -0
  10. package/dist/api/workflows.js +8 -0
  11. package/dist/api/workspaces.js +12 -0
  12. package/dist/app/EnvironmentEmbedRoot.js +33 -0
  13. package/dist/components/data-table/DataTableFilters.js +74 -63
  14. package/dist/components/layout/MainLayout.js +7 -4
  15. package/dist/components/page/PageBreadcrumbs.js +1 -1
  16. package/dist/components/ui/sidebar.js +359 -359
  17. package/dist/components/ui-widgets/UiActions.js +22 -15
  18. package/dist/components/ui-widgets/UiWidget.js +31 -26
  19. package/dist/components/ui-widgets/widgets/AiPromptInput.js +27 -27
  20. package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +12 -12
  21. package/dist/components/ui-widgets/widgets/SandboxRun.js +32 -0
  22. package/dist/components/ui-widgets/widgets/SubmitButton.js +11 -11
  23. package/dist/features/code-explorer/utils/fileIcons.js +4 -7
  24. package/dist/features/oauth/OAuthPromptRenderer.js +1 -1
  25. package/dist/features/runs/Runs.js +197 -0
  26. package/dist/features/workbench/NavigationItems.js +1 -1
  27. package/dist/features/workbench/Workbench.js +109 -75
  28. package/dist/features/workbench/WorkflowItem.js +8 -11
  29. package/dist/features/workbench/WorkflowList.js +29 -20
  30. package/dist/features/workbench/components/DocumentList.js +20 -20
  31. package/dist/features/workbench/components/NewRunDialog.js +328 -0
  32. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +88 -0
  33. package/dist/features/workbench/components/WorkbenchFlowPanel.js +48 -0
  34. package/dist/features/workbench/components/WorkbenchIconSidebar.js +68 -0
  35. package/dist/features/workbench/components/WorkbenchPreviewPanel.js +128 -0
  36. package/dist/features/workbench/components/WorkflowForms.js +7 -6
  37. package/dist/features/workbench/components/WorkflowHistoryItem.js +68 -63
  38. package/dist/features/workbench/components/buttons/WorkflowButtons.js +79 -61
  39. package/dist/features/workbench/components/document-renderer/DocumentFormRenderer.js +6 -5
  40. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +77 -0
  41. package/dist/features/workspaces/Workspaces.js +2 -2
  42. package/dist/features/workspaces/components/CreateWorkspace.js +164 -81
  43. package/dist/features/workspaces/components/EnvironmentSlotSelector.js +63 -0
  44. package/dist/features/workspaces/components/ExecutionTimeline.js +69 -68
  45. package/dist/features/workspaces/components/PipelineForm.js +4 -4
  46. package/dist/hooks/index.js +2 -0
  47. package/dist/hooks/useApi.js +9 -33
  48. package/dist/hooks/useAuth.js +18 -38
  49. package/dist/hooks/useConfig.js +31 -33
  50. package/dist/hooks/useDashboard.js +1 -4
  51. package/dist/hooks/useDocuments.js +4 -8
  52. package/dist/hooks/useFiles.js +31 -41
  53. package/dist/hooks/useNamespaces.js +5 -8
  54. package/dist/hooks/usePipelines.js +98 -108
  55. package/dist/hooks/useProcessor.js +1 -4
  56. package/dist/hooks/useWorkflows.js +25 -41
  57. package/dist/hooks/useWorkspaces.js +45 -72
  58. package/dist/index.d.ts +266 -48
  59. package/dist/index.js +10 -2
  60. package/dist/packages/contracts/dist/enums/index.js +25 -0
  61. package/dist/packages/contracts/dist/enums/pipeline-state.js +10 -0
  62. package/dist/packages/contracts/dist/enums/registry.enum.js +20 -0
  63. package/dist/packages/contracts/dist/enums/sort-order.enum.js +10 -0
  64. package/dist/packages/contracts/dist/enums/user-type.enum.js +10 -0
  65. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +10 -0
  66. package/dist/pages/DebugPage.js +12 -14
  67. package/dist/pages/DebugWorkflowDetailsPage.js +1 -1
  68. package/dist/pages/DebugWorkflowsPage.js +3 -4
  69. package/dist/pages/EmbedWorkbenchPage.js +4 -3
  70. package/dist/pages/PipelineDebugPage.js +2 -2
  71. package/dist/pages/PreviewWorkbenchPage.js +416 -0
  72. package/dist/pages/RunsListPage.js +36 -0
  73. package/dist/pages/RunsPage.js +49 -0
  74. package/dist/pages/StudioLandingPage.js +145 -0
  75. package/dist/pages/WorkbenchPage.js +75 -51
  76. package/dist/providers/InvalidationEventsProvider.js +7 -7
  77. package/dist/providers/QueryProvider.js +21 -0
  78. package/dist/routing/LocalRouter.js +9 -0
  79. package/dist/services/createApiClient.js +4 -10
  80. package/dist/services/index.js +1 -1
  81. package/package.json +2 -3
  82. package/dist/features/code-explorer/CodeExplorer.js +0 -69
  83. package/dist/features/code-explorer/components/CodeExplorerTree.js +0 -43
  84. package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +0 -82
  85. package/dist/features/workbench/components/WorkbenchSidebar.js +0 -109
  86. package/dist/features/workbench/providers/WorkbenchContextProvider.js +0 -3
@@ -1,109 +0,0 @@
1
- import { useStudio } from "../../../providers/StudioProvider.js";
2
- import { Button } from "../../../components/ui/button.js";
3
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../../components/ui/tooltip.js";
4
- import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarMenu, SidebarTrigger, useSidebar } from "../../../components/ui/sidebar.js";
5
- import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../../components/ui/tabs.js";
6
- import { CodeExplorer } from "../../code-explorer/CodeExplorer.js";
7
- import WorkbenchNavigation_default from "../WorkbenchNavigation.js";
8
- import PipelineHistoryList_default from "./PipelineHistoryList.js";
9
- import { c } from "react/compiler-runtime";
10
- import { jsx, jsxs } from "react/jsx-runtime";
11
- import { Code, GitGraph } from "lucide-react";
12
- var WorkbenchSidebar_default = (O) => {
13
- let k = c(30), { namespaceTree: A, pipeline: j, workspaceConfig: M } = O, { router: N } = useStudio(), { open: P } = useSidebar(), F = M?.features, I = F?.sidebar?.enabled ?? !0, L = F?.debugWorkflow?.enabled ?? !0, R = F?.fileExplorer?.enabled ?? !1, z = F?.workflowNavigation?.enabled ?? !0, B = F?.workflowHistory?.enabled ?? !0;
14
- if (!I) return null;
15
- let V;
16
- k[0] !== R || k[1] !== B || k[2] !== z ? (V = () => R ? "codeExplorer" : z ? "pipelineNavigation" : B ? "pipelineHistory" : "codeExplorer", k[0] = R, k[1] = B, k[2] = z, k[3] = V) : V = k[3];
17
- let H = V, U;
18
- k[4] !== R || k[5] !== B || k[6] !== z ? (U = [
19
- R,
20
- z,
21
- B
22
- ].filter(Boolean), k[4] = R, k[5] = B, k[6] = z, k[7] = U) : U = k[7];
23
- let W = U.length, G;
24
- k[8] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ jsx(SidebarTrigger, { className: "flex h-8 w-8 items-center justify-center hover:cursor-pointer" }), k[8] = G) : G = k[8];
25
- let K;
26
- k[9] !== L || k[10] !== j || k[11] !== N ? (K = j && L && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
27
- asChild: !0,
28
- children: /* @__PURE__ */ jsx(Button, {
29
- variant: "ghost",
30
- size: "icon",
31
- className: "h-8 w-8",
32
- onClick: () => void N.navigateToPipelineDebug(j.id),
33
- children: /* @__PURE__ */ jsx(GitGraph, { className: "text-muted-foreground h-4 w-4" })
34
- })
35
- }), /* @__PURE__ */ jsx(TooltipContent, {
36
- side: "bottom",
37
- children: /* @__PURE__ */ jsx("p", { children: "Debug Pipeline Flow" })
38
- })] }) }), k[9] = L, k[10] = j, k[11] = N, k[12] = K) : K = k[12];
39
- let q;
40
- k[13] === K ? q = k[14] : (q = /* @__PURE__ */ jsx(SidebarHeader, {
41
- className: "border-sidebar-border w-full flex-row items-center justify-between border-b p-2",
42
- children: /* @__PURE__ */ jsxs("div", {
43
- className: "flex items-center gap-1",
44
- children: [G, K]
45
- })
46
- }), k[13] = K, k[14] = q);
47
- let J;
48
- k[15] !== W || k[16] !== R || k[17] !== H || k[18] !== A || k[19] !== P || k[20] !== j || k[21] !== B || k[22] !== z ? (J = P && /* @__PURE__ */ jsxs(Tabs, {
49
- defaultValue: H(),
50
- className: "flex h-full w-full flex-col",
51
- children: [
52
- W > 1 && /* @__PURE__ */ jsxs(TabsList, {
53
- className: "w-full shrink-0",
54
- children: [
55
- R && /* @__PURE__ */ jsxs(TabsTrigger, {
56
- value: "codeExplorer",
57
- className: "flex items-center gap-1.5",
58
- children: [/* @__PURE__ */ jsx(Code, { className: "h-3.5 w-3.5" }), "Files"]
59
- }),
60
- z && /* @__PURE__ */ jsx(TabsTrigger, {
61
- value: "pipelineNavigation",
62
- children: "Navigation"
63
- }),
64
- B && /* @__PURE__ */ jsx(TabsTrigger, {
65
- value: "pipelineHistory",
66
- children: "History"
67
- })
68
- ]
69
- }),
70
- R && /* @__PURE__ */ jsx(TabsContent, {
71
- value: "codeExplorer",
72
- className: "mt-2 flex min-h-0 flex-1 flex-col overflow-hidden",
73
- children: /* @__PURE__ */ jsx(CodeExplorer, {})
74
- }),
75
- z && /* @__PURE__ */ jsxs(TabsContent, {
76
- value: "pipelineNavigation",
77
- className: "mt-2",
78
- children: [/* @__PURE__ */ jsx(SidebarGroupLabel, { children: "Pipeline Navigation" }), /* @__PURE__ */ jsx(SidebarMenu, { children: j && A.length ? /* @__PURE__ */ jsx(WorkbenchNavigation_default, {
79
- namespaceTree: A,
80
- indent: 0
81
- }) : null })]
82
- }),
83
- B && /* @__PURE__ */ jsxs(TabsContent, {
84
- value: "pipelineHistory",
85
- className: "mt-2",
86
- children: [/* @__PURE__ */ jsx(SidebarGroupLabel, { children: "Run History" }), /* @__PURE__ */ jsx(SidebarMenu, { children: /* @__PURE__ */ jsx(PipelineHistoryList_default, { pipeline: j }) })]
87
- })
88
- ]
89
- }), k[15] = W, k[16] = R, k[17] = H, k[18] = A, k[19] = P, k[20] = j, k[21] = B, k[22] = z, k[23] = J) : J = k[23];
90
- let Y;
91
- k[24] === J ? Y = k[25] : (Y = /* @__PURE__ */ jsx(SidebarContent, { children: /* @__PURE__ */ jsx(SidebarGroup, {
92
- className: "flex h-full flex-col",
93
- children: J
94
- }) }), k[24] = J, k[25] = Y);
95
- let X;
96
- k[26] === Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ jsx(SidebarFooter, {}), k[26] = X) : X = k[26];
97
- let Z;
98
- return k[27] !== q || k[28] !== Y ? (Z = /* @__PURE__ */ jsxs(Sidebar, {
99
- side: "right",
100
- collapsible: "icon",
101
- className: "workbench-sidebar z-31",
102
- children: [
103
- q,
104
- Y,
105
- X
106
- ]
107
- }), k[27] = q, k[28] = Y, k[29] = Z) : Z = k[29], Z;
108
- };
109
- export { WorkbenchSidebar_default as default };
@@ -1,3 +0,0 @@
1
- import { createContext } from "react";
2
- const WorkbenchContextProvider = createContext(null);
3
- export { WorkbenchContextProvider };