@loopstack/loopstack-studio 0.21.0 → 0.21.2
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/components/LoadingCentered.js +2 -2
- package/dist/components/ai-elements/code-block.js +96 -0
- package/dist/components/ai-elements/message.js +87 -0
- package/dist/components/ai-elements/prompt-input.js +321 -0
- package/dist/components/ai-elements/reasoning.js +124 -0
- package/dist/components/ai-elements/shimmer.js +37 -0
- package/dist/components/ai-elements/sources.js +65 -0
- package/dist/components/ai-elements/tool.js +158 -0
- package/dist/components/content/ErrorAlert.js +17 -0
- package/dist/components/data-table/DataTable.js +99 -96
- package/dist/components/dynamic-form/CodeContent.js +2 -2
- package/dist/components/dynamic-form/FormElement.js +3 -3
- package/dist/components/dynamic-form/FormElementHeader.js +2 -2
- package/dist/components/dynamic-form/ObjectController.js +2 -2
- package/dist/components/layout/MainLayout.js +0 -1
- package/dist/components/lists/ListView.js +62 -59
- package/dist/components/loopstack-elements/link.js +115 -0
- package/dist/components/ui/button-group.js +13 -0
- package/dist/components/ui/command.js +7 -0
- package/dist/components/ui/context-menu.js +63 -0
- package/dist/components/ui/hover-card.js +6 -0
- package/dist/components/ui/input-group.js +85 -0
- package/dist/components/ui/select.js +2 -2
- package/dist/components/ui/table.js +2 -2
- package/dist/components/ui/tabs.js +54 -0
- package/dist/components/ui-widgets/UiActions.js +24 -0
- package/dist/components/ui-widgets/UiWidget.js +43 -0
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +43 -0
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +23 -0
- package/dist/components/ui-widgets/widgets/SubmitButton.js +23 -0
- package/dist/events/sse-client-events.js +7 -0
- package/dist/features/code-explorer/CodeExplorer.js +69 -0
- package/dist/features/code-explorer/components/CodeExplorerTree.js +43 -0
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +82 -0
- package/dist/features/code-explorer/components/FileContentViewer.js +237 -0
- package/dist/features/code-explorer/components/FileTabsBar.js +191 -0
- package/dist/features/code-explorer/providers/CodeExplorerProvider.js +165 -0
- package/dist/features/code-explorer/utils/fileIcons.js +42 -0
- package/dist/features/dashboard/Dashboard.js +125 -0
- package/dist/features/dashboard/RunItem.js +76 -0
- package/dist/features/dashboard/RunList.js +32 -0
- package/dist/features/debug/components/ConfigFlowViewer.js +79 -0
- package/dist/features/debug/components/PipelineDebugHeader.js +48 -0
- package/dist/features/debug/components/PipelineDebugLegend.js +68 -0
- package/dist/features/debug/components/PipelineFlowViewer.js +109 -0
- package/dist/features/debug/components/pipeline-flow/StateNode.js +111 -0
- package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +41 -0
- package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +97 -0
- package/dist/features/debug/lib/edge-paths.js +47 -0
- package/dist/features/debug/lib/flow-utils.js +247 -0
- package/dist/features/health/LocalHealthCheck.js +80 -67
- package/dist/features/oauth/OAuthCallbackPage.js +2 -0
- package/dist/features/oauth/OAuthPromptRenderer.js +223 -0
- package/dist/features/oauth/index.js +3 -0
- package/dist/features/oauth/useOAuthPopup.js +83 -0
- package/dist/features/workbench/NavigationItems.js +52 -0
- package/dist/features/workbench/Workbench.js +101 -0
- package/dist/features/workbench/WorkbenchNavigation.js +38 -0
- package/dist/features/workbench/WorkflowItem.js +67 -0
- package/dist/features/workbench/WorkflowList.js +110 -0
- package/dist/features/workbench/components/DocumentItem.js +27 -0
- package/dist/features/workbench/components/DocumentList.js +40 -0
- package/dist/features/workbench/components/DocumentMetadataPills.js +63 -0
- package/dist/features/workbench/components/DocumentRenderer.js +54 -0
- package/dist/features/workbench/components/NavigationItem.js +68 -0
- package/dist/features/workbench/components/PipelineHistoryList.js +56 -0
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +89 -0
- package/dist/features/workbench/components/WorkbenchSidebar.js +109 -0
- package/dist/features/workbench/components/WorkflowForms.js +22 -0
- package/dist/features/workbench/components/WorkflowHistoryItem.js +144 -0
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +85 -0
- package/dist/features/workbench/components/document-details/DocumentDetails.js +425 -0
- package/dist/features/workbench/components/document-details/PromptDetails.js +146 -0
- package/dist/features/workbench/components/document-renderer/AiMessage.js +56 -0
- package/dist/features/workbench/components/document-renderer/AiMessageContent.js +174 -0
- package/dist/features/workbench/components/document-renderer/DocumentDebugRenderer.js +30 -0
- package/dist/features/workbench/components/document-renderer/DocumentFormRenderer.js +79 -0
- package/dist/features/workbench/components/document-renderer/DocumentMessageRenderer.js +10 -0
- package/dist/features/workbench/components/document-renderer/ErrorMessageRenderer.js +13 -0
- package/dist/features/workbench/components/document-renderer/LinkMessageRenderer.js +17 -0
- package/dist/features/workbench/components/document-renderer/MarkdownMessageRenderer.js +10 -0
- package/dist/features/workbench/components/document-renderer/PlainMessageRenderer.js +9 -0
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +29 -0
- package/dist/features/workbench/hooks/useIntersectionObserver.js +44 -0
- package/dist/features/workbench/hooks/useScrollToListItem.js +23 -0
- package/dist/features/workbench/providers/ScrollProvider.js +22 -0
- package/dist/features/workbench/providers/WorkbenchContextProvider.js +3 -0
- package/dist/features/workspaces/Workspaces.js +166 -99
- package/dist/features/workspaces/components/CreateWorkspace.js +101 -78
- package/dist/features/workspaces/components/ExecutionTimeline.js +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useAuth.js +25 -4
- package/dist/hooks/useDashboard.js +23 -0
- package/dist/hooks/useDocuments.js +45 -0
- package/dist/hooks/useFiles.js +63 -0
- package/dist/hooks/useNamespaceTree.js +27 -0
- package/dist/hooks/useNamespaces.js +34 -0
- package/dist/hooks/usePipelines.js +83 -6
- package/dist/hooks/useWorkflows.js +122 -0
- package/dist/hooks/useWorkspaces.js +49 -29
- package/dist/index.d.ts +88 -10
- package/dist/index.js +11 -1
- package/dist/lib/requireParam.js +6 -0
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@ai-sdk/provider/dist/index.js +65 -0
- package/dist/node_modules/@ai-sdk/provider-utils/dist/index.js +1008 -0
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1968 -0
- package/dist/node_modules/@shikijs/core/dist/index.js +1420 -0
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +236 -0
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/abap.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/ada.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +14 -0
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +16 -0
- package/dist/node_modules/@shikijs/langs/dist/apache.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/apex.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/apl.js +14 -0
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/ara.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/asm.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/astro.js +16 -0
- package/dist/node_modules/@shikijs/langs/dist/awk.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/bat.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/berry.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/blade.js +18 -0
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/c.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/c3.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/coq.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +10 -0
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +12 -0
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +16 -0
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/css.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/csv.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/cue.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/d.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/dart.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/dax.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/diff.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/docker.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/edge.js +10 -0
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/elm.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/erb.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +10 -0
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +10 -0
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +10 -0
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/fish.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/genie.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +12 -0
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +12 -0
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/gn.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/go.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +12 -0
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/hack.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/haml.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +12 -0
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/html.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/http.js +12 -0
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +10 -0
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/hy.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/imba.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/ini.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/java.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/jison.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/json.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/json5.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/julia.js +14 -0
- package/dist/node_modules/@shikijs/langs/dist/just.js +16 -0
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/latex.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/lean.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/less.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +12 -0
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/log.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/logo.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/lua.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/luau.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/make.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/marko.js +12 -0
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +10 -0
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/move.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/nim.js +18 -0
- package/dist/node_modules/@shikijs/langs/dist/nix.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/odin.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/perl.js +14 -0
- package/dist/node_modules/@shikijs/langs/dist/php.js +16 -0
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/po.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/polar.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/proto.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/pug.js +10 -0
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/python.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/qml.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/qss.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/r.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/racket.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/raku.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/razor.js +8 -0
- package/dist/node_modules/@shikijs/langs/dist/reg.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/rel.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/ron.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/rst.js +20 -0
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +28 -0
- package/dist/node_modules/@shikijs/langs/dist/rust.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/sas.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/sass.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/scala.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/scss.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/soy.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/sql.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/stata.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +12 -0
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/templ.js +10 -0
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/tex.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/toml.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +16 -0
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/twig.js +16 -0
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/typst.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/v.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/vala.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/vb.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/viml.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +16 -0
- package/dist/node_modules/@shikijs/langs/dist/vue.js +24 -0
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/wit.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/xml.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +3 -0
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +2 -0
- package/dist/node_modules/@shikijs/langs/dist/zig.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/houston.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/nord.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/red.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +2 -0
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +2 -0
- package/dist/node_modules/@shikijs/types/dist/index.js +6 -0
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +1580 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +51 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +4 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +91 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +2 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +3280 -0
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1839 -0
- package/dist/node_modules/ai/dist/index.js +1083 -0
- package/dist/node_modules/bail/index.js +4 -0
- package/dist/node_modules/character-entities-html4/index.js +255 -0
- package/dist/node_modules/character-entities-legacy/index.js +2 -0
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +6 -1
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +4 -10
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +56 -65
- package/dist/node_modules/classcat/index.js +8 -0
- package/dist/node_modules/comma-separated-tokens/index.js +5 -1
- package/dist/node_modules/d3/src/index.js +5 -0
- package/dist/node_modules/d3-drag/src/constant.js +2 -0
- package/dist/node_modules/d3-drag/src/drag.js +112 -0
- package/dist/node_modules/d3-drag/src/event.js +60 -0
- package/dist/node_modules/d3-drag/src/nodrag.js +13 -0
- package/dist/node_modules/d3-drag/src/noevent.js +11 -0
- package/dist/node_modules/d3-interpolate/src/zoom.js +39 -0
- package/dist/node_modules/d3-selection/src/pointer.js +16 -0
- package/dist/node_modules/d3-selection/src/sourceEvent.js +6 -0
- package/dist/node_modules/d3-zoom/src/constant.js +2 -0
- package/dist/node_modules/d3-zoom/src/event.js +26 -0
- package/dist/node_modules/d3-zoom/src/index.js +1 -1
- package/dist/node_modules/d3-zoom/src/noevent.js +7 -0
- package/dist/node_modules/d3-zoom/src/zoom.js +214 -1
- package/dist/node_modules/decode-named-character-reference/index.dom.js +8 -0
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +35 -0
- package/dist/node_modules/entities/dist/esm/decode.js +129 -0
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +2 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +5 -0
- package/dist/node_modules/extend/index.js +37 -0
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +121 -0
- package/dist/node_modules/hast-util-raw/lib/index.js +204 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +34 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +150 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +267 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +9 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +65 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +8 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +69 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1936 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +239 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +22 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +1451 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +75 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +155 -0
- package/dist/node_modules/hast-util-sanitize/lib/index.js +159 -0
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +73 -0
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -0
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -0
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +47 -0
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +27 -0
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +5 -0
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -0
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +6 -0
- package/dist/node_modules/hast-util-to-html/lib/index.js +46 -0
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +84 -0
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +8 -0
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +37 -0
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +12 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +251 -0
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +113 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +34 -0
- package/dist/node_modules/html-void-elements/index.js +23 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +88 -0
- package/dist/node_modules/lodash/_Symbol.js +7 -0
- package/dist/node_modules/lodash/_baseGetTag.js +13 -0
- package/dist/node_modules/lodash/_baseTrim.js +11 -0
- package/dist/node_modules/lodash/_freeGlobal.js +6 -0
- package/dist/node_modules/lodash/_getRawTag.js +17 -0
- package/dist/node_modules/lodash/_objectToString.js +10 -0
- package/dist/node_modules/lodash/_root.js +8 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +11 -0
- package/dist/node_modules/lodash/debounce.js +53 -0
- package/dist/node_modules/lodash/isObject.js +10 -0
- package/dist/node_modules/lodash/isObjectLike.js +9 -0
- package/dist/node_modules/lodash/isSymbol.js +12 -0
- package/dist/node_modules/lodash/now.js +10 -0
- package/dist/node_modules/lodash/toNumber.js +22 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +555 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +101 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +20 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +54 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +16 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +57 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +18 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +22 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +33 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +18 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +106 -0
- package/dist/node_modules/micromark/lib/constructs.js +79 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +175 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +32 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +101 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +23 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +84 -0
- package/dist/node_modules/micromark/lib/parse.js +27 -0
- package/dist/node_modules/micromark/lib/postprocess.js +6 -0
- package/dist/node_modules/micromark/lib/preprocess.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +112 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +41 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +36 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +15 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +27 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +88 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +41 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +46 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +59 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +15 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +65 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +140 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +98 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +157 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +21 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +12 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +77 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +57 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +23 -0
- package/dist/node_modules/micromark-factory-destination/index.js +24 -0
- package/dist/node_modules/micromark-factory-label/index.js +18 -0
- package/dist/node_modules/micromark-factory-title/index.js +22 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +10 -0
- package/dist/node_modules/micromark-util-character/index.js +6 -5
- package/dist/node_modules/micromark-util-chunked/index.js +4 -1
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +5 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +15 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +7 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +16 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +33 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +55 -0
- package/dist/node_modules/motion/dist/es/react.js +3 -0
- package/dist/node_modules/nanoid/index.browser.js +7 -0
- package/dist/node_modules/nanoid/url-alphabet/index.js +2 -0
- package/dist/node_modules/property-information/index.js +1 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +20 -0
- package/dist/node_modules/rehype-harden/dist/index.js +168 -0
- package/dist/node_modules/rehype-raw/lib/index.js +10 -0
- package/dist/node_modules/rehype-sanitize/lib/index.js +7 -0
- package/dist/node_modules/remark-parse/lib/index.js +14 -0
- package/dist/node_modules/remark-rehype/lib/index.js +16 -0
- package/dist/node_modules/remend/dist/index.js +459 -0
- package/dist/node_modules/shiki/dist/bundle-full.js +11 -0
- package/dist/node_modules/shiki/dist/langs.js +1278 -0
- package/dist/node_modules/shiki/dist/themes.js +393 -0
- package/dist/node_modules/shiki/dist/wasm.js +2 -0
- package/dist/node_modules/space-separated-tokens/index.js +4 -1
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +2189 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +33 -0
- package/dist/node_modules/streamdown/dist/index.js +2 -0
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +1421 -0
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +11 -0
- package/dist/node_modules/stringify-entities/lib/core.js +21 -0
- package/dist/node_modules/stringify-entities/lib/index.js +6 -0
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +12 -0
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -0
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -0
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +15 -0
- package/dist/node_modules/style-to-js/cjs/index.js +17 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +16 -0
- package/dist/node_modules/style-to-object/cjs/index.js +21 -0
- package/dist/node_modules/trim-lines/index.js +19 -0
- package/dist/node_modules/trough/lib/index.js +48 -0
- package/dist/node_modules/unified/lib/callable-instance.js +7 -0
- package/dist/node_modules/unified/lib/index.js +160 -0
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +6 -0
- package/dist/node_modules/unist-util-position/lib/index.js +20 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +13 -0
- package/dist/node_modules/vfile/lib/index.js +87 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +97 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +5 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +29 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +4 -0
- package/dist/node_modules/vfile-location/lib/index.js +41 -0
- package/dist/node_modules/vfile-message/lib/index.js +22 -0
- package/dist/node_modules/zod/v3/ZodError.js +79 -0
- package/dist/node_modules/zod/v3/errors.js +6 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +5 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +90 -0
- package/dist/node_modules/zod/v3/helpers/util.js +72 -0
- package/dist/node_modules/zod/v3/locales/en.js +58 -0
- package/dist/node_modules/zod/v3/types.js +2425 -0
- package/dist/node_modules/zod/v4/classic/errors.js +21 -0
- package/dist/node_modules/zod/v4/classic/iso.js +29 -0
- package/dist/node_modules/zod/v4/classic/parse.js +4 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +392 -0
- package/dist/node_modules/zod/v4/core/api.js +532 -0
- package/dist/node_modules/zod/v4/core/checks.js +283 -0
- package/dist/node_modules/zod/v4/core/core.js +44 -0
- package/dist/node_modules/zod/v4/core/doc.js +21 -0
- package/dist/node_modules/zod/v4/core/errors.js +40 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +305 -0
- package/dist/node_modules/zod/v4/core/parse.js +66 -0
- package/dist/node_modules/zod/v4/core/regexes.js +28 -0
- package/dist/node_modules/zod/v4/core/registries.js +38 -0
- package/dist/node_modules/zod/v4/core/schemas.js +863 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +220 -0
- package/dist/node_modules/zod/v4/core/util.js +267 -0
- package/dist/node_modules/zod/v4/core/versions.js +6 -0
- package/dist/node_modules/zwitch/index.js +14 -0
- package/dist/pages/DashboardPage.js +58 -0
- package/dist/pages/DebugWorkflowDetailsPage.js +121 -0
- package/dist/pages/DebugWorkflowsPage.js +130 -0
- package/dist/pages/EmbedWorkbenchPage.js +73 -0
- package/dist/pages/PipelineDebugPage.js +114 -0
- package/dist/pages/WorkbenchPage.js +67 -0
- package/dist/pages/WorkspacePage.js +1 -1
- package/dist/providers/ComponentOverridesProvider.js +12 -0
- package/dist/providers/InvalidationEventsProvider.js +43 -0
- package/dist/providers/SseProvider.js +44 -0
- package/dist/routing/LocalRouter.js +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { useStudio } from "../providers/StudioProvider.js";
|
|
2
|
+
import { useApiClient } from "../hooks/useApi.js";
|
|
3
|
+
import { Badge } from "../components/ui/badge.js";
|
|
4
|
+
import MainLayout_default from "../components/layout/MainLayout.js";
|
|
5
|
+
import { DataTable } from "../components/data-table/DataTable.js";
|
|
6
|
+
import { useWorkspaceConfig } from "../hooks/useConfig.js";
|
|
7
|
+
import { useMemo, useState } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { useQueries } from "@tanstack/react-query";
|
|
10
|
+
import { Home } from "lucide-react";
|
|
11
|
+
function DebugWorkflowsPage() {
|
|
12
|
+
let { router: f } = useStudio(), { envKey: p, api: m } = useApiClient(), { data: h, isLoading: g } = useWorkspaceConfig(), _ = useQueries({ queries: (h ?? []).map((e) => ({
|
|
13
|
+
queryKey: [
|
|
14
|
+
"pipeline-types",
|
|
15
|
+
e.blockName,
|
|
16
|
+
p
|
|
17
|
+
],
|
|
18
|
+
queryFn: async () => {
|
|
19
|
+
if (!m) throw Error("API not available");
|
|
20
|
+
let c = await m.ApiV1ConfigApi.configControllerGetPipelineTypesByWorkspace({ workspaceBlockName: e.blockName });
|
|
21
|
+
return {
|
|
22
|
+
workspaceBlockName: e.blockName,
|
|
23
|
+
types: c.data
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
enabled: !!h?.length
|
|
27
|
+
})) }), v = _.some((e) => e.isLoading), y = g || v, b = useMemo(() => y || !_ ? [] : _.flatMap((e) => {
|
|
28
|
+
if (!e.data) return [];
|
|
29
|
+
let { workspaceBlockName: c, types: l } = e.data;
|
|
30
|
+
return (l ?? []).map((e) => ({
|
|
31
|
+
...e,
|
|
32
|
+
id: `${c}::${e.blockName}`,
|
|
33
|
+
workspaceBlockName: c
|
|
34
|
+
}));
|
|
35
|
+
}), [_, y]), [x, S] = useState(""), [C, w] = useState("blockName"), [T, E] = useState("ASC"), [D, O] = useState(0), [k, A] = useState(10), j = useMemo(() => {
|
|
36
|
+
let e = b;
|
|
37
|
+
if (x) {
|
|
38
|
+
let c = x.toLowerCase();
|
|
39
|
+
e = e.filter((e) => e.blockName?.toLowerCase().includes(c) || e.title?.toLowerCase().includes(c) || e.description?.toLowerCase().includes(c) || e.workspaceBlockName.toLowerCase().includes(c));
|
|
40
|
+
}
|
|
41
|
+
return e = [...e].sort((e, c) => {
|
|
42
|
+
let l = C, u = (e[l] || "").toLowerCase(), d = (c[l] || "").toLowerCase();
|
|
43
|
+
return u < d ? T === "ASC" ? -1 : 1 : u > d ? T === "ASC" ? 1 : -1 : 0;
|
|
44
|
+
}), e;
|
|
45
|
+
}, [
|
|
46
|
+
b,
|
|
47
|
+
x,
|
|
48
|
+
C,
|
|
49
|
+
T
|
|
50
|
+
]), M = useMemo(() => {
|
|
51
|
+
let e = D * k;
|
|
52
|
+
return j.slice(e, e + k);
|
|
53
|
+
}, [
|
|
54
|
+
j,
|
|
55
|
+
D,
|
|
56
|
+
k
|
|
57
|
+
]);
|
|
58
|
+
return /* @__PURE__ */ jsxs(MainLayout_default, {
|
|
59
|
+
breadcrumbsData: [{
|
|
60
|
+
label: "Dashboard",
|
|
61
|
+
href: f.getDashboard(),
|
|
62
|
+
icon: /* @__PURE__ */ jsx(Home, { className: "h-4 w-4" })
|
|
63
|
+
}, {
|
|
64
|
+
label: "Debug Workflows",
|
|
65
|
+
current: !0
|
|
66
|
+
}],
|
|
67
|
+
children: [/* @__PURE__ */ jsx("h1", {
|
|
68
|
+
className: "mb-4 text-3xl font-bold tracking-tight",
|
|
69
|
+
children: "Workflow Types"
|
|
70
|
+
}), /* @__PURE__ */ jsx(DataTable, {
|
|
71
|
+
data: M,
|
|
72
|
+
columns: [
|
|
73
|
+
{
|
|
74
|
+
id: "blockName",
|
|
75
|
+
label: "Type ID (Block Name)",
|
|
76
|
+
sortable: !0,
|
|
77
|
+
minWidth: 200,
|
|
78
|
+
format: (e) => /* @__PURE__ */ jsx("span", {
|
|
79
|
+
className: "font-medium",
|
|
80
|
+
children: String(e)
|
|
81
|
+
})
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: "title",
|
|
85
|
+
label: "Title",
|
|
86
|
+
sortable: !0,
|
|
87
|
+
format: (e, c) => /* @__PURE__ */ jsx("span", { children: String(e || c.blockName || "N/A") })
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: "workspaceBlockName",
|
|
91
|
+
label: "Workspace Type",
|
|
92
|
+
sortable: !0,
|
|
93
|
+
format: (e) => /* @__PURE__ */ jsx(Badge, {
|
|
94
|
+
variant: "outline",
|
|
95
|
+
children: String(e)
|
|
96
|
+
})
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "description",
|
|
100
|
+
label: "Description",
|
|
101
|
+
sortable: !0,
|
|
102
|
+
format: (e) => /* @__PURE__ */ jsx("span", {
|
|
103
|
+
className: "text-muted-foreground max-w-xs truncate block",
|
|
104
|
+
children: String(e || "-")
|
|
105
|
+
})
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
loading: y,
|
|
109
|
+
totalItems: j.length,
|
|
110
|
+
searchTerm: x,
|
|
111
|
+
onSearchChange: S,
|
|
112
|
+
page: D,
|
|
113
|
+
pageSize: k,
|
|
114
|
+
onPageChange: (e) => O(e),
|
|
115
|
+
onPageSizeChange: (e) => {
|
|
116
|
+
A(e), O(0);
|
|
117
|
+
},
|
|
118
|
+
sortBy: C,
|
|
119
|
+
sortOrder: T,
|
|
120
|
+
onSortChange: (e, c) => {
|
|
121
|
+
w(e), E(c);
|
|
122
|
+
},
|
|
123
|
+
filters: {},
|
|
124
|
+
onFiltersChange: () => {},
|
|
125
|
+
enableBatchActions: !1,
|
|
126
|
+
onRowClick: (e) => void f.navigateToDebugWorkflow(e.id)
|
|
127
|
+
})]
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
export { DebugWorkflowsPage as default };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { useFetchWorkflowsByPipeline } from "../hooks/useWorkflows.js";
|
|
2
|
+
import ErrorSnackbar_default from "../components/snackbars/ErrorSnackbar.js";
|
|
3
|
+
import LoadingCentered_default from "../components/LoadingCentered.js";
|
|
4
|
+
import { usePipeline } from "../hooks/usePipelines.js";
|
|
5
|
+
import WorkflowItem_default from "../features/workbench/WorkflowItem.js";
|
|
6
|
+
import { requireParam } from "../lib/requireParam.js";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
8
|
+
import { useEffect, useRef } from "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { useParams } from "react-router-dom";
|
|
11
|
+
var EMBED_MESSAGE_TYPE = "loopstack:embed:workflow-completed", EMBED_RESIZE_MESSAGE_TYPE = "loopstack:embed:resize";
|
|
12
|
+
function EmbedWorkbenchPage() {
|
|
13
|
+
let _ = c(24), v = useParams(), y;
|
|
14
|
+
_[0] === v ? y = _[1] : (y = requireParam(v, "pipelineId"), _[0] = v, _[1] = y);
|
|
15
|
+
let b = y, x = useRef(null), S = usePipeline(b), C = useFetchWorkflowsByPipeline(b), w = useRef(!1), T, E;
|
|
16
|
+
_[2] !== C.data || _[3] !== b ? (T = () => {
|
|
17
|
+
!C.data || w.current || C.data.length > 0 && C.data.every(_temp) && window.parent !== window && (w.current = !0, window.parent.postMessage({
|
|
18
|
+
type: EMBED_MESSAGE_TYPE,
|
|
19
|
+
pipelineId: b
|
|
20
|
+
}, window.location.origin));
|
|
21
|
+
}, E = [C.data, b], _[2] = C.data, _[3] = b, _[4] = T, _[5] = E) : (T = _[4], E = _[5]), useEffect(T, E);
|
|
22
|
+
let D, O;
|
|
23
|
+
_[6] === b ? (D = _[7], O = _[8]) : (D = () => {
|
|
24
|
+
if (window.parent === window || !x.current) return;
|
|
25
|
+
let t = new ResizeObserver(() => {
|
|
26
|
+
if (!x.current) return;
|
|
27
|
+
let t = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight);
|
|
28
|
+
window.parent.postMessage({
|
|
29
|
+
type: EMBED_RESIZE_MESSAGE_TYPE,
|
|
30
|
+
pipelineId: b,
|
|
31
|
+
height: t
|
|
32
|
+
}, window.location.origin);
|
|
33
|
+
});
|
|
34
|
+
return t.observe(x.current), () => t.disconnect();
|
|
35
|
+
}, O = [b], _[6] = b, _[7] = D, _[8] = O), useEffect(D, O);
|
|
36
|
+
let k = _temp2, A;
|
|
37
|
+
_[9] === Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
38
|
+
enableDebugMode: !1,
|
|
39
|
+
showFullMessageHistory: !1
|
|
40
|
+
}, _[9] = A) : A = _[9];
|
|
41
|
+
let j = A, M;
|
|
42
|
+
_[10] === S.error ? M = _[11] : (M = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: S.error }), _[10] = S.error, _[11] = M);
|
|
43
|
+
let N;
|
|
44
|
+
_[12] === C.error ? N = _[13] : (N = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: C.error }), _[12] = C.error, _[13] = N);
|
|
45
|
+
let P = S.isLoading || C.isLoading, F;
|
|
46
|
+
_[14] !== S.data || _[15] !== C.data ? (F = S.data && C.data ? C.data.map((t) => /* @__PURE__ */ jsx(WorkflowItem_default, {
|
|
47
|
+
pipeline: S.data,
|
|
48
|
+
workflowId: t.id,
|
|
49
|
+
scrollTo: k,
|
|
50
|
+
settings: j,
|
|
51
|
+
embed: !0
|
|
52
|
+
}, t.id)) : null, _[14] = S.data, _[15] = C.data, _[16] = F) : F = _[16];
|
|
53
|
+
let I;
|
|
54
|
+
_[17] !== P || _[18] !== F ? (I = /* @__PURE__ */ jsx(LoadingCentered_default, {
|
|
55
|
+
loading: P,
|
|
56
|
+
children: F
|
|
57
|
+
}), _[17] = P, _[18] = F, _[19] = I) : I = _[19];
|
|
58
|
+
let L;
|
|
59
|
+
return _[20] !== I || _[21] !== M || _[22] !== N ? (L = /* @__PURE__ */ jsxs("div", {
|
|
60
|
+
ref: x,
|
|
61
|
+
className: "overflow-hidden px-6 py-4",
|
|
62
|
+
children: [
|
|
63
|
+
M,
|
|
64
|
+
N,
|
|
65
|
+
I
|
|
66
|
+
]
|
|
67
|
+
}), _[20] = I, _[21] = M, _[22] = N, _[23] = L) : L = _[23], L;
|
|
68
|
+
}
|
|
69
|
+
function _temp2() {}
|
|
70
|
+
function _temp(t) {
|
|
71
|
+
return t.status === "completed";
|
|
72
|
+
}
|
|
73
|
+
export { EmbedWorkbenchPage as default };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { useStudio } from "../providers/StudioProvider.js";
|
|
2
|
+
import { useWorkspace } from "../hooks/useWorkspaces.js";
|
|
3
|
+
import { useFetchWorkflowsByPipeline } from "../hooks/useWorkflows.js";
|
|
4
|
+
import MainLayout_default from "../components/layout/MainLayout.js";
|
|
5
|
+
import ErrorSnackbar_default from "../components/snackbars/ErrorSnackbar.js";
|
|
6
|
+
import { usePipeline, usePipelineConfig } from "../hooks/usePipelines.js";
|
|
7
|
+
import { ReactFlowProvider } from "../node_modules/@xyflow/react/dist/esm/index.js";
|
|
8
|
+
import { requireParam } from "../lib/requireParam.js";
|
|
9
|
+
import PipelineDebugHeader_default from "../features/debug/components/PipelineDebugHeader.js";
|
|
10
|
+
import PipelineFlowViewer_default from "../features/debug/components/PipelineFlowViewer.js";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
12
|
+
import React, { useMemo } from "react";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { useParams } from "react-router-dom";
|
|
15
|
+
import { Bug, Home, Loader2 } from "lucide-react";
|
|
16
|
+
var PipelineDebugPage_default = () => {
|
|
17
|
+
let v = c(54), { router: y } = useStudio(), b = useParams(), x;
|
|
18
|
+
v[0] === b ? x = v[1] : (x = requireParam(b, "pipelineId"), v[0] = b, v[1] = x);
|
|
19
|
+
let S = x, C = usePipeline(S), w = C.data?.workspaceId, T = useWorkspace(w), E = useFetchWorkflowsByPipeline(S), D;
|
|
20
|
+
v[2] === E.data ? D = v[3] : (D = E.data ?? [], v[2] = E.data, v[3] = D);
|
|
21
|
+
let O = D, k = T.data?.blockName, A = C.data?.blockName, j = usePipelineConfig(k, A), M;
|
|
22
|
+
v[4] === y ? M = v[5] : (M = y.getDashboard(), v[4] = y, v[5] = M);
|
|
23
|
+
let N;
|
|
24
|
+
v[6] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ jsx(Home, { className: "h-4 w-4" }), v[6] = N) : N = v[6];
|
|
25
|
+
let P;
|
|
26
|
+
v[7] === M ? P = v[8] : (P = {
|
|
27
|
+
label: "Dashboard",
|
|
28
|
+
href: M,
|
|
29
|
+
icon: N
|
|
30
|
+
}, v[7] = M, v[8] = P);
|
|
31
|
+
let F;
|
|
32
|
+
v[9] === y ? F = v[10] : (F = y.getWorkspaces(), v[9] = y, v[10] = F);
|
|
33
|
+
let I;
|
|
34
|
+
v[11] === F ? I = v[12] : (I = {
|
|
35
|
+
label: "Workspaces",
|
|
36
|
+
href: F
|
|
37
|
+
}, v[11] = F, v[12] = I);
|
|
38
|
+
let L = T.data?.title ?? "...", R;
|
|
39
|
+
v[13] !== y || v[14] !== w ? (R = w ? y.getWorkspace(w) : void 0, v[13] = y, v[14] = w, v[15] = R) : R = v[15];
|
|
40
|
+
let z;
|
|
41
|
+
v[16] !== L || v[17] !== R ? (z = {
|
|
42
|
+
label: L,
|
|
43
|
+
href: R
|
|
44
|
+
}, v[16] = L, v[17] = R, v[18] = z) : z = v[18];
|
|
45
|
+
let B = `Run #${C.data?.run ?? "..."}`, V;
|
|
46
|
+
v[19] !== S || v[20] !== y ? (V = y.getPipeline(S), v[19] = S, v[20] = y, v[21] = V) : V = v[21];
|
|
47
|
+
let H;
|
|
48
|
+
v[22] !== B || v[23] !== V ? (H = {
|
|
49
|
+
label: B,
|
|
50
|
+
href: V
|
|
51
|
+
}, v[22] = B, v[23] = V, v[24] = H) : H = v[24];
|
|
52
|
+
let U;
|
|
53
|
+
v[25] === Symbol.for("react.memo_cache_sentinel") ? (U = {
|
|
54
|
+
label: "Debug Flow",
|
|
55
|
+
icon: /* @__PURE__ */ jsx(Bug, { className: "h-4 w-4" })
|
|
56
|
+
}, v[25] = U) : U = v[25];
|
|
57
|
+
let W;
|
|
58
|
+
v[26] !== H || v[27] !== P || v[28] !== I || v[29] !== z ? (W = [
|
|
59
|
+
P,
|
|
60
|
+
I,
|
|
61
|
+
z,
|
|
62
|
+
H,
|
|
63
|
+
U
|
|
64
|
+
], v[26] = H, v[27] = P, v[28] = I, v[29] = z, v[30] = W) : W = v[30];
|
|
65
|
+
let G = W;
|
|
66
|
+
if (C.isLoading || E.isLoading || T.isLoading) {
|
|
67
|
+
let t;
|
|
68
|
+
v[31] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ jsx("div", {
|
|
69
|
+
className: "flex h-[calc(100vh-8rem)] items-center justify-center",
|
|
70
|
+
children: /* @__PURE__ */ jsx(Loader2, { className: "text-muted-foreground h-8 w-8 animate-spin" })
|
|
71
|
+
}), v[31] = t) : t = v[31];
|
|
72
|
+
let _;
|
|
73
|
+
return v[32] === G ? _ = v[33] : (_ = /* @__PURE__ */ jsx(MainLayout_default, {
|
|
74
|
+
breadcrumbsData: G,
|
|
75
|
+
children: t
|
|
76
|
+
}), v[32] = G, v[33] = _), _;
|
|
77
|
+
}
|
|
78
|
+
let K;
|
|
79
|
+
v[34] === C.error ? K = v[35] : (K = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: C.error }), v[34] = C.error, v[35] = K);
|
|
80
|
+
let q = C.data?.title ?? C.data?.blockName ?? "Pipeline", J = C.data?.run, Y;
|
|
81
|
+
v[36] !== S || v[37] !== y ? (Y = () => void y.navigateToPipeline(S), v[36] = S, v[37] = y, v[38] = Y) : Y = v[38];
|
|
82
|
+
let X;
|
|
83
|
+
v[39] !== q || v[40] !== J || v[41] !== Y ? (X = /* @__PURE__ */ jsx(PipelineDebugHeader_default, {
|
|
84
|
+
title: q,
|
|
85
|
+
runNumber: J,
|
|
86
|
+
onBack: Y
|
|
87
|
+
}), v[39] = q, v[40] = J, v[41] = Y, v[42] = X) : X = v[42];
|
|
88
|
+
let Z;
|
|
89
|
+
v[43] !== j || v[44] !== S || v[45] !== O ? (Z = /* @__PURE__ */ jsx("div", {
|
|
90
|
+
className: "bg-card border-border flex-1 overflow-hidden rounded-2xl border shadow-sm",
|
|
91
|
+
children: O.length > 0 ? /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @__PURE__ */ jsx(PipelineFlowViewer_default, {
|
|
92
|
+
pipelineId: S,
|
|
93
|
+
workflows: O,
|
|
94
|
+
pipelineConfig: j.data
|
|
95
|
+
}) }) : /* @__PURE__ */ jsx("div", {
|
|
96
|
+
className: "text-muted-foreground flex h-full items-center justify-center",
|
|
97
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
98
|
+
className: "font-medium",
|
|
99
|
+
children: "No workflows found for this pipeline"
|
|
100
|
+
})
|
|
101
|
+
})
|
|
102
|
+
}), v[43] = j, v[44] = S, v[45] = O, v[46] = Z) : Z = v[46];
|
|
103
|
+
let Q;
|
|
104
|
+
v[47] !== X || v[48] !== Z ? (Q = /* @__PURE__ */ jsxs("div", {
|
|
105
|
+
className: "flex h-[calc(100vh-8rem)] flex-col gap-6",
|
|
106
|
+
children: [X, Z]
|
|
107
|
+
}), v[47] = X, v[48] = Z, v[49] = Q) : Q = v[49];
|
|
108
|
+
let $;
|
|
109
|
+
return v[50] !== G || v[51] !== K || v[52] !== Q ? ($ = /* @__PURE__ */ jsxs(MainLayout_default, {
|
|
110
|
+
breadcrumbsData: G,
|
|
111
|
+
children: [K, Q]
|
|
112
|
+
}), v[50] = G, v[51] = K, v[52] = Q, v[53] = $) : $ = v[53], $;
|
|
113
|
+
};
|
|
114
|
+
export { PipelineDebugPage_default as default };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { useStudio } from "../providers/StudioProvider.js";
|
|
2
|
+
import { useWorkspace } from "../hooks/useWorkspaces.js";
|
|
3
|
+
import MainLayout_default from "../components/layout/MainLayout.js";
|
|
4
|
+
import ErrorSnackbar_default from "../components/snackbars/ErrorSnackbar.js";
|
|
5
|
+
import LoadingCentered_default from "../components/LoadingCentered.js";
|
|
6
|
+
import { usePipeline } from "../hooks/usePipelines.js";
|
|
7
|
+
import Workbench from "../features/workbench/Workbench.js";
|
|
8
|
+
import { requireParam } from "../lib/requireParam.js";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { useParams } from "react-router-dom";
|
|
12
|
+
import { Home } from "lucide-react";
|
|
13
|
+
function WorkbenchPage() {
|
|
14
|
+
let m = c(37), { router: h } = useStudio(), g = useParams(), _;
|
|
15
|
+
m[0] === g ? _ = m[1] : (_ = requireParam(g, "pipelineId"), m[0] = g, m[1] = _);
|
|
16
|
+
let v = usePipeline(_), y = v.data?.workspaceId, b = useWorkspace(y), x;
|
|
17
|
+
m[2] === h ? x = m[3] : (x = h.getDashboard(), m[2] = h, m[3] = x);
|
|
18
|
+
let S;
|
|
19
|
+
m[4] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ jsx(Home, { className: "h-4 w-4" }), m[4] = S) : S = m[4];
|
|
20
|
+
let C;
|
|
21
|
+
m[5] === x ? C = m[6] : (C = {
|
|
22
|
+
label: "Dashboard",
|
|
23
|
+
href: x,
|
|
24
|
+
icon: S
|
|
25
|
+
}, m[5] = x, m[6] = C);
|
|
26
|
+
let w;
|
|
27
|
+
m[7] === h ? w = m[8] : (w = h.getWorkspaces(), m[7] = h, m[8] = w);
|
|
28
|
+
let T;
|
|
29
|
+
m[9] === w ? T = m[10] : (T = {
|
|
30
|
+
label: "Workspaces",
|
|
31
|
+
href: w
|
|
32
|
+
}, m[9] = w, m[10] = T);
|
|
33
|
+
let E = b.data?.title ?? "", D;
|
|
34
|
+
m[11] !== h || m[12] !== y ? (D = y ? h.getWorkspace(y) : void 0, m[11] = h, m[12] = y, m[13] = D) : D = m[13];
|
|
35
|
+
let O;
|
|
36
|
+
m[14] !== E || m[15] !== D ? (O = {
|
|
37
|
+
label: E,
|
|
38
|
+
href: D
|
|
39
|
+
}, m[14] = E, m[15] = D, m[16] = O) : O = m[16];
|
|
40
|
+
let k = `Run #${v.data?.run}${v.data?.title ? ` (${v.data.title})` : ""}`, A;
|
|
41
|
+
m[17] === k ? A = m[18] : (A = { label: k }, m[17] = k, m[18] = A);
|
|
42
|
+
let j;
|
|
43
|
+
m[19] !== A || m[20] !== C || m[21] !== T || m[22] !== O ? (j = [
|
|
44
|
+
C,
|
|
45
|
+
T,
|
|
46
|
+
O,
|
|
47
|
+
A
|
|
48
|
+
], m[19] = A, m[20] = C, m[21] = T, m[22] = O, m[23] = j) : j = m[23];
|
|
49
|
+
let M = j, N;
|
|
50
|
+
m[24] === v.error ? N = m[25] : (N = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: v.error }), m[24] = v.error, m[25] = N);
|
|
51
|
+
let P;
|
|
52
|
+
m[26] !== v.data || m[27] !== v.error || m[28] !== v.isLoading ? (P = v.data ? /* @__PURE__ */ jsx(Workbench, { pipeline: v.data }) : !v.isLoading && !v.error ? /* @__PURE__ */ jsx("p", {
|
|
53
|
+
className: "text-muted-foreground py-8 text-center text-sm",
|
|
54
|
+
children: "Pipeline not found."
|
|
55
|
+
}) : null, m[26] = v.data, m[27] = v.error, m[28] = v.isLoading, m[29] = P) : P = m[29];
|
|
56
|
+
let F;
|
|
57
|
+
m[30] !== v.isLoading || m[31] !== P ? (F = /* @__PURE__ */ jsx(LoadingCentered_default, {
|
|
58
|
+
loading: v.isLoading,
|
|
59
|
+
children: P
|
|
60
|
+
}), m[30] = v.isLoading, m[31] = P, m[32] = F) : F = m[32];
|
|
61
|
+
let I;
|
|
62
|
+
return m[33] !== M || m[34] !== N || m[35] !== F ? (I = /* @__PURE__ */ jsxs(MainLayout_default, {
|
|
63
|
+
breadcrumbsData: M,
|
|
64
|
+
children: [N, F]
|
|
65
|
+
}), m[33] = M, m[34] = N, m[35] = F, m[36] = I) : I = m[36], I;
|
|
66
|
+
}
|
|
67
|
+
export { WorkbenchPage as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useStudio } from "../providers/StudioProvider.js";
|
|
2
|
+
import { useWorkspace } from "../hooks/useWorkspaces.js";
|
|
2
3
|
import MainLayout_default from "../components/layout/MainLayout.js";
|
|
3
4
|
import ErrorSnackbar_default from "../components/snackbars/ErrorSnackbar.js";
|
|
4
|
-
import { useWorkspace } from "../hooks/useWorkspaces.js";
|
|
5
5
|
import ExecutionTimeline_default from "../features/workspaces/components/ExecutionTimeline.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var ComponentOverridesContext = createContext({});
|
|
5
|
+
const ComponentOverridesProvider = (r) => {
|
|
6
|
+
let i = c(3), { children: a, overrides: o } = r, s;
|
|
7
|
+
return i[0] !== a || i[1] !== o ? (s = /* @__PURE__ */ jsx(ComponentOverridesContext.Provider, {
|
|
8
|
+
value: o,
|
|
9
|
+
children: a
|
|
10
|
+
}), i[0] = a, i[1] = o, i[2] = s) : s = i[2], s;
|
|
11
|
+
}, useComponentOverrides = () => useContext(ComponentOverridesContext);
|
|
12
|
+
export { ComponentOverridesProvider, useComponentOverrides };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { __toESM } from "../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { SseClientEvents } from "../events/sse-client-events.js";
|
|
3
|
+
import { eventBus } from "../services/eventEmitter.js";
|
|
4
|
+
import "../services/index.js";
|
|
5
|
+
import { useStudio } from "./StudioProvider.js";
|
|
6
|
+
import { require_debounce } from "../node_modules/lodash/debounce.js";
|
|
7
|
+
import { getDocumentsCacheKey } from "../hooks/useDocuments.js";
|
|
8
|
+
import { getNamespacesByPipelineCacheKey } from "../hooks/useNamespaces.js";
|
|
9
|
+
import { getWorkflowCacheKey, getWorkflowsByPipelineCacheKey, getWorkflowsCacheKey } from "../hooks/useWorkflows.js";
|
|
10
|
+
import { c } from "react/compiler-runtime";
|
|
11
|
+
import { useEffect, useRef } from "react";
|
|
12
|
+
import { useQueryClient } from "@tanstack/react-query";
|
|
13
|
+
var import_debounce = /* @__PURE__ */ __toESM(require_debounce(), 1), DEBOUNCE_MS = 300;
|
|
14
|
+
function createDebouncedInvalidator(e, u) {
|
|
15
|
+
return (0, import_debounce.default)(() => {
|
|
16
|
+
e.invalidateQueries({ queryKey: u });
|
|
17
|
+
}, DEBOUNCE_MS);
|
|
18
|
+
}
|
|
19
|
+
function InvalidationEventsProvider() {
|
|
20
|
+
let e = c(5), { environment: f } = useStudio(), _ = useQueryClient(), v;
|
|
21
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ new Map(), e[0] = v) : v = e[0];
|
|
22
|
+
let y = useRef(v), b, x;
|
|
23
|
+
return e[1] !== f.id || e[2] !== _ ? (b = () => {
|
|
24
|
+
if (!f.id) return;
|
|
25
|
+
let e = f.id, d = y.current, p = function(e) {
|
|
26
|
+
let u = JSON.stringify(e);
|
|
27
|
+
d.has(u) || d.set(u, createDebouncedInvalidator(_, e)), d.get(u)();
|
|
28
|
+
}, m = eventBus.on(SseClientEvents.WORKFLOW_CREATED, (u) => {
|
|
29
|
+
u.namespaceId && p(getWorkflowsCacheKey(e, u.namespaceId)), u.pipelineId && (p(getNamespacesByPipelineCacheKey(e, u.pipelineId)), p(getWorkflowsByPipelineCacheKey(e, u.pipelineId)));
|
|
30
|
+
}), h = eventBus.on(SseClientEvents.WORKFLOW_UPDATED, (u) => {
|
|
31
|
+
u.id && p(getWorkflowCacheKey(e, u.id)), u.namespaceId && p(getWorkflowsCacheKey(e, u.namespaceId)), u.pipelineId && (p(getNamespacesByPipelineCacheKey(e, u.pipelineId)), p(getWorkflowsByPipelineCacheKey(e, u.pipelineId)));
|
|
32
|
+
}), g = eventBus.on(SseClientEvents.DOCUMENT_CREATED, (u) => {
|
|
33
|
+
u.workflowId && p(getDocumentsCacheKey(e, u.workflowId));
|
|
34
|
+
});
|
|
35
|
+
return () => {
|
|
36
|
+
m(), h(), g(), d.forEach(_temp), d.clear();
|
|
37
|
+
};
|
|
38
|
+
}, x = [_, f.id], e[1] = f.id, e[2] = _, e[3] = b, e[4] = x) : (b = e[3], x = e[4]), useEffect(b, x), null;
|
|
39
|
+
}
|
|
40
|
+
function _temp(e) {
|
|
41
|
+
return e.cancel();
|
|
42
|
+
}
|
|
43
|
+
export { InvalidationEventsProvider };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { eventBus } from "../services/eventEmitter.js";
|
|
2
|
+
import "../services/index.js";
|
|
3
|
+
import { useStudio } from "./StudioProvider.js";
|
|
4
|
+
import { useMe } from "../hooks/useAuth.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { useEffect, useRef } from "react";
|
|
7
|
+
function SseProvider() {
|
|
8
|
+
let s = c(5), { environment: l } = useStudio(), { data: u, isSuccess: d } = useMe(), f = useRef(null), p, m;
|
|
9
|
+
return s[0] !== l.url || s[1] !== d || s[2] !== u ? (p = () => {
|
|
10
|
+
if (l.url && d && u) {
|
|
11
|
+
f.current &&= (f.current.close(), null);
|
|
12
|
+
let a = `${l.url}/api/v1/sse/stream`, o = new EventSource(a, { withCredentials: !0 });
|
|
13
|
+
return f.current = o, o.onopen = _temp, o.onerror = () => {
|
|
14
|
+
o.readyState === EventSource.CLOSED && console.warn("SSE connection closed. Refresh the page if it does not recover.");
|
|
15
|
+
}, [
|
|
16
|
+
"workflow.created",
|
|
17
|
+
"workflow.updated",
|
|
18
|
+
"document.created",
|
|
19
|
+
"pipeline.updated",
|
|
20
|
+
"workspace.updated"
|
|
21
|
+
].forEach((a) => {
|
|
22
|
+
o.addEventListener(a, (o) => {
|
|
23
|
+
try {
|
|
24
|
+
let a = JSON.parse(o.data);
|
|
25
|
+
eventBus.emit(a.type, a);
|
|
26
|
+
} catch (e) {
|
|
27
|
+
let o = e;
|
|
28
|
+
console.error(`Error parsing SSE event [${a}]:`, o);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}), () => {
|
|
32
|
+
o.close(), f.current = null;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}, m = [
|
|
36
|
+
l.url,
|
|
37
|
+
d,
|
|
38
|
+
u
|
|
39
|
+
], s[0] = l.url, s[1] = d, s[2] = u, s[3] = p, s[4] = m) : (p = s[3], m = s[4]), useEffect(p, m), null;
|
|
40
|
+
}
|
|
41
|
+
function _temp() {
|
|
42
|
+
console.log("SSE connection established");
|
|
43
|
+
}
|
|
44
|
+
export { SseProvider };
|
|
@@ -57,6 +57,9 @@ var LocalRouter = class {
|
|
|
57
57
|
async navigateToPipelineNamespace(e, t, n) {
|
|
58
58
|
await this.navigate(`/workspaces/${e}/pipelines/${t}/namespaces/${n}`);
|
|
59
59
|
}
|
|
60
|
+
getEmbedPipeline(e) {
|
|
61
|
+
return `/embed/pipelines/${e}`;
|
|
62
|
+
}
|
|
60
63
|
getCurrentEnvironmentId() {
|
|
61
64
|
return this.envId;
|
|
62
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopstack/loopstack-studio",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"repository": "loopstack-ai/loopstack-studio",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@fontsource/roboto": "^5.2.10",
|
|
28
28
|
"@hookform/resolvers": "^5.2.2",
|
|
29
|
-
"@loopstack/api-client": "^0.
|
|
30
|
-
"@loopstack/contracts": "^0.
|
|
29
|
+
"@loopstack/api-client": "^0.20.1",
|
|
30
|
+
"@loopstack/contracts": "^0.22.0",
|
|
31
31
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
32
32
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
33
33
|
"@radix-ui/react-avatar": "^1.1.11",
|