@loopstack/loopstack-studio 0.21.0-rc.0 → 0.21.1
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 +28 -0
- 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/DataList.js +102 -102
- package/dist/components/data-table/DataTable.js +102 -99
- 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/dynamic-form/fields/RadioField.js +3 -3
- package/dist/components/dynamic-form/fields/SliderField.js +13 -13
- package/dist/components/dynamic-form/fields/SwitchField.js +1 -1
- package/dist/components/dynamic-form/fields/TextareaField.js +4 -4
- package/dist/components/index.js +45 -0
- 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/messages/CompletionMessagePaper.js +110 -0
- package/dist/components/snackbars/ErrorSnackbar.js +1 -1
- package/dist/components/ui/DiscordLogo.js +31 -0
- package/dist/components/ui/GoogleLogo.js +44 -0
- package/dist/components/ui/accordion.js +64 -0
- package/dist/components/ui/alert-dialog.js +91 -82
- package/dist/components/ui/alert.js +50 -0
- package/dist/components/ui/avatar.js +42 -0
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/breadcrumb.js +76 -56
- package/dist/components/ui/button-group.js +13 -0
- package/dist/components/ui/card.js +79 -19
- package/dist/components/ui/command.js +7 -0
- package/dist/components/ui/context-menu.js +63 -0
- package/dist/components/ui/dialog.js +89 -47
- package/dist/components/ui/drawer.js +122 -0
- package/dist/components/ui/dropdown-menu.js +190 -0
- package/dist/components/ui/hover-card.js +6 -0
- package/dist/components/ui/input-group.js +85 -0
- package/dist/components/ui/popover.js +47 -0
- package/dist/components/ui/scroll-area.js +50 -0
- package/dist/components/ui/select.js +115 -82
- package/dist/components/ui/separator.js +20 -0
- package/dist/components/ui/sheet.js +87 -57
- package/dist/components/ui/sidebar.js +557 -0
- package/dist/components/ui/skeleton.js +16 -0
- package/dist/components/ui/table.js +85 -61
- 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/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 +2 -2
- 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 +157 -90
- package/dist/features/workspaces/components/CreateWorkspace.js +104 -81
- package/dist/features/workspaces/components/ExecutionTimeline.js +2 -2
- package/dist/features/workspaces/components/PipelineForm.js +2 -2
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useApi.js +1 -1
- 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 +817 -9
- package/dist/index.js +55 -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/katex/dist/katex.js +717 -861
- 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/vaul/dist/index.js +912 -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/routing/LocalRouter.js +3 -0
- package/package.json +16 -16
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { VFileMessage } from "../../vfile-message/lib/index.js";
|
|
2
|
+
import { minpath } from "./minpath.browser.js";
|
|
3
|
+
import { minproc } from "./minproc.browser.js";
|
|
4
|
+
import { isUrl } from "./minurl.shared.js";
|
|
5
|
+
import { urlToPath } from "./minurl.browser.js";
|
|
6
|
+
var order = [
|
|
7
|
+
"history",
|
|
8
|
+
"path",
|
|
9
|
+
"basename",
|
|
10
|
+
"stem",
|
|
11
|
+
"extname",
|
|
12
|
+
"dirname"
|
|
13
|
+
], VFile = class {
|
|
14
|
+
constructor(e) {
|
|
15
|
+
let o;
|
|
16
|
+
o = e ? isUrl(e) ? { path: e } : typeof e == "string" || isUint8Array(e) ? { value: e } : e : {}, this.cwd = "cwd" in o ? "" : minproc.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
17
|
+
let l = -1;
|
|
18
|
+
for (; ++l < order.length;) {
|
|
19
|
+
let e = order[l];
|
|
20
|
+
e in o && o[e] !== void 0 && o[e] !== null && (this[e] = e === "history" ? [...o[e]] : o[e]);
|
|
21
|
+
}
|
|
22
|
+
let u;
|
|
23
|
+
for (u in o) order.includes(u) || (this[u] = o[u]);
|
|
24
|
+
}
|
|
25
|
+
get basename() {
|
|
26
|
+
return typeof this.path == "string" ? minpath.basename(this.path) : void 0;
|
|
27
|
+
}
|
|
28
|
+
set basename(e) {
|
|
29
|
+
assertNonEmpty(e, "basename"), assertPart(e, "basename"), this.path = minpath.join(this.dirname || "", e);
|
|
30
|
+
}
|
|
31
|
+
get dirname() {
|
|
32
|
+
return typeof this.path == "string" ? minpath.dirname(this.path) : void 0;
|
|
33
|
+
}
|
|
34
|
+
set dirname(e) {
|
|
35
|
+
assertPath(this.basename, "dirname"), this.path = minpath.join(e || "", this.basename);
|
|
36
|
+
}
|
|
37
|
+
get extname() {
|
|
38
|
+
return typeof this.path == "string" ? minpath.extname(this.path) : void 0;
|
|
39
|
+
}
|
|
40
|
+
set extname(e) {
|
|
41
|
+
if (assertPart(e, "extname"), assertPath(this.dirname, "extname"), e) {
|
|
42
|
+
if (e.codePointAt(0) !== 46) throw Error("`extname` must start with `.`");
|
|
43
|
+
if (e.includes(".", 1)) throw Error("`extname` cannot contain multiple dots");
|
|
44
|
+
}
|
|
45
|
+
this.path = minpath.join(this.dirname, this.stem + (e || ""));
|
|
46
|
+
}
|
|
47
|
+
get path() {
|
|
48
|
+
return this.history[this.history.length - 1];
|
|
49
|
+
}
|
|
50
|
+
set path(e) {
|
|
51
|
+
isUrl(e) && (e = urlToPath(e)), assertNonEmpty(e, "path"), this.path !== e && this.history.push(e);
|
|
52
|
+
}
|
|
53
|
+
get stem() {
|
|
54
|
+
return typeof this.path == "string" ? minpath.basename(this.path, this.extname) : void 0;
|
|
55
|
+
}
|
|
56
|
+
set stem(e) {
|
|
57
|
+
assertNonEmpty(e, "stem"), assertPart(e, "stem"), this.path = minpath.join(this.dirname || "", e + (this.extname || ""));
|
|
58
|
+
}
|
|
59
|
+
fail(e, o, s) {
|
|
60
|
+
let c = this.message(e, o, s);
|
|
61
|
+
throw c.fatal = !0, c;
|
|
62
|
+
}
|
|
63
|
+
info(e, o, s) {
|
|
64
|
+
let c = this.message(e, o, s);
|
|
65
|
+
return c.fatal = void 0, c;
|
|
66
|
+
}
|
|
67
|
+
message(o, s, c) {
|
|
68
|
+
let l = new VFileMessage(o, s, c);
|
|
69
|
+
return this.path && (l.name = this.path + ":" + l.name, l.file = this.path), l.fatal = !1, this.messages.push(l), l;
|
|
70
|
+
}
|
|
71
|
+
toString(e) {
|
|
72
|
+
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(e || void 0).decode(this.value);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
function assertPart(e, s) {
|
|
76
|
+
if (e && e.includes(minpath.sep)) throw Error("`" + s + "` cannot be a path: did not expect `" + minpath.sep + "`");
|
|
77
|
+
}
|
|
78
|
+
function assertNonEmpty(e, o) {
|
|
79
|
+
if (!e) throw Error("`" + o + "` cannot be empty");
|
|
80
|
+
}
|
|
81
|
+
function assertPath(e, o) {
|
|
82
|
+
if (!e) throw Error("Setting `" + o + "` requires `path` to be set too");
|
|
83
|
+
}
|
|
84
|
+
function isUint8Array(e) {
|
|
85
|
+
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
86
|
+
}
|
|
87
|
+
export { VFile };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const minpath = {
|
|
2
|
+
basename,
|
|
3
|
+
dirname,
|
|
4
|
+
extname,
|
|
5
|
+
join,
|
|
6
|
+
sep: "/"
|
|
7
|
+
};
|
|
8
|
+
function basename(e, t) {
|
|
9
|
+
if (t !== void 0 && typeof t != "string") throw TypeError("\"ext\" argument must be a string");
|
|
10
|
+
assertPath(e);
|
|
11
|
+
let n = 0, r = -1, i = e.length, a;
|
|
12
|
+
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
|
13
|
+
for (; i--;) if (e.codePointAt(i) === 47) {
|
|
14
|
+
if (a) {
|
|
15
|
+
n = i + 1;
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
} else r < 0 && (a = !0, r = i + 1);
|
|
19
|
+
return r < 0 ? "" : e.slice(n, r);
|
|
20
|
+
}
|
|
21
|
+
if (t === e) return "";
|
|
22
|
+
let o = -1, c = t.length - 1;
|
|
23
|
+
for (; i--;) if (e.codePointAt(i) === 47) {
|
|
24
|
+
if (a) {
|
|
25
|
+
n = i + 1;
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
} else o < 0 && (a = !0, o = i + 1), c > -1 && (e.codePointAt(i) === t.codePointAt(c--) ? c < 0 && (r = i) : (c = -1, r = o));
|
|
29
|
+
return n === r ? r = o : r < 0 && (r = e.length), e.slice(n, r);
|
|
30
|
+
}
|
|
31
|
+
function dirname(e) {
|
|
32
|
+
if (assertPath(e), e.length === 0) return ".";
|
|
33
|
+
let t = -1, n = e.length, r;
|
|
34
|
+
for (; --n;) if (e.codePointAt(n) === 47) {
|
|
35
|
+
if (r) {
|
|
36
|
+
t = n;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
} else r ||= !0;
|
|
40
|
+
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
41
|
+
}
|
|
42
|
+
function extname(e) {
|
|
43
|
+
assertPath(e);
|
|
44
|
+
let t = e.length, n = -1, r = 0, i = -1, a = 0, o;
|
|
45
|
+
for (; t--;) {
|
|
46
|
+
let s = e.codePointAt(t);
|
|
47
|
+
if (s === 47) {
|
|
48
|
+
if (o) {
|
|
49
|
+
r = t + 1;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
n < 0 && (o = !0, n = t + 1), s === 46 ? i < 0 ? i = t : a !== 1 && (a = 1) : i > -1 && (a = -1);
|
|
55
|
+
}
|
|
56
|
+
return i < 0 || n < 0 || a === 0 || a === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
57
|
+
}
|
|
58
|
+
function join(...e) {
|
|
59
|
+
let t = -1, n;
|
|
60
|
+
for (; ++t < e.length;) assertPath(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
61
|
+
return n === void 0 ? "." : normalize(n);
|
|
62
|
+
}
|
|
63
|
+
function normalize(e) {
|
|
64
|
+
assertPath(e);
|
|
65
|
+
let t = e.codePointAt(0) === 47, n = normalizeString(e, !t);
|
|
66
|
+
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
67
|
+
}
|
|
68
|
+
function normalizeString(e, t) {
|
|
69
|
+
let n = "", r = 0, i = -1, a = 0, o = -1, s, c;
|
|
70
|
+
for (; ++o <= e.length;) {
|
|
71
|
+
if (o < e.length) s = e.codePointAt(o);
|
|
72
|
+
else if (s === 47) break;
|
|
73
|
+
else s = 47;
|
|
74
|
+
if (s === 47) {
|
|
75
|
+
if (!(i === o - 1 || a === 1)) if (i !== o - 1 && a === 2) {
|
|
76
|
+
if (n.length < 2 || r !== 2 || n.codePointAt(n.length - 1) !== 46 || n.codePointAt(n.length - 2) !== 46) {
|
|
77
|
+
if (n.length > 2) {
|
|
78
|
+
if (c = n.lastIndexOf("/"), c !== n.length - 1) {
|
|
79
|
+
c < 0 ? (n = "", r = 0) : (n = n.slice(0, c), r = n.length - 1 - n.lastIndexOf("/")), i = o, a = 0;
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
} else if (n.length > 0) {
|
|
83
|
+
n = "", r = 0, i = o, a = 0;
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
t && (n = n.length > 0 ? n + "/.." : "..", r = 2);
|
|
88
|
+
} else n.length > 0 ? n += "/" + e.slice(i + 1, o) : n = e.slice(i + 1, o), r = o - i - 1;
|
|
89
|
+
i = o, a = 0;
|
|
90
|
+
} else s === 46 && a > -1 ? a++ : a = -1;
|
|
91
|
+
}
|
|
92
|
+
return n;
|
|
93
|
+
}
|
|
94
|
+
function assertPath(e) {
|
|
95
|
+
if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
96
|
+
}
|
|
97
|
+
export { minpath };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isUrl } from "./minurl.shared.js";
|
|
2
|
+
function urlToPath(t) {
|
|
3
|
+
if (typeof t == "string") t = new URL(t);
|
|
4
|
+
else if (!isUrl(t)) {
|
|
5
|
+
let e = /* @__PURE__ */ TypeError("The \"path\" argument must be of type string or an instance of URL. Received `" + t + "`");
|
|
6
|
+
throw e.code = "ERR_INVALID_ARG_TYPE", e;
|
|
7
|
+
}
|
|
8
|
+
if (t.protocol !== "file:") {
|
|
9
|
+
let e = /* @__PURE__ */ TypeError("The URL must be of scheme file");
|
|
10
|
+
throw e.code = "ERR_INVALID_URL_SCHEME", e;
|
|
11
|
+
}
|
|
12
|
+
return getPathFromURLPosix(t);
|
|
13
|
+
}
|
|
14
|
+
function getPathFromURLPosix(e) {
|
|
15
|
+
if (e.hostname !== "") {
|
|
16
|
+
let e = /* @__PURE__ */ TypeError("File URL host must be \"localhost\" or empty on darwin");
|
|
17
|
+
throw e.code = "ERR_INVALID_FILE_URL_HOST", e;
|
|
18
|
+
}
|
|
19
|
+
let t = e.pathname, n = -1;
|
|
20
|
+
for (; ++n < t.length;) if (t.codePointAt(n) === 37 && t.codePointAt(n + 1) === 50) {
|
|
21
|
+
let e = t.codePointAt(n + 2);
|
|
22
|
+
if (e === 70 || e === 102) {
|
|
23
|
+
let e = /* @__PURE__ */ TypeError("File URL path must not include encoded / characters");
|
|
24
|
+
throw e.code = "ERR_INVALID_FILE_URL_PATH", e;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return decodeURIComponent(t);
|
|
28
|
+
}
|
|
29
|
+
export { urlToPath };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
function location(e) {
|
|
2
|
+
let n = String(e), r = [];
|
|
3
|
+
return {
|
|
4
|
+
toOffset: a,
|
|
5
|
+
toPoint: i
|
|
6
|
+
};
|
|
7
|
+
function i(e) {
|
|
8
|
+
if (typeof e == "number" && e > -1 && e <= n.length) {
|
|
9
|
+
let i = 0;
|
|
10
|
+
for (;;) {
|
|
11
|
+
let a = r[i];
|
|
12
|
+
if (a === void 0) {
|
|
13
|
+
let e = next(n, r[i - 1]);
|
|
14
|
+
a = e === -1 ? n.length + 1 : e + 1, r[i] = a;
|
|
15
|
+
}
|
|
16
|
+
if (a > e) return {
|
|
17
|
+
line: i + 1,
|
|
18
|
+
column: e - (i > 0 ? r[i - 1] : 0) + 1,
|
|
19
|
+
offset: e
|
|
20
|
+
};
|
|
21
|
+
i++;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function a(e) {
|
|
26
|
+
if (e && typeof e.line == "number" && typeof e.column == "number" && !Number.isNaN(e.line) && !Number.isNaN(e.column)) {
|
|
27
|
+
for (; r.length < e.line;) {
|
|
28
|
+
let e = r[r.length - 1], i = next(n, e), a = i === -1 ? n.length + 1 : i + 1;
|
|
29
|
+
if (e === a) break;
|
|
30
|
+
r.push(a);
|
|
31
|
+
}
|
|
32
|
+
let i = (e.line > 1 ? r[e.line - 2] : 0) + e.column - 1;
|
|
33
|
+
if (i < r[e.line - 1]) return i;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function next(e, t) {
|
|
38
|
+
let n = e.indexOf("\r", t), r = e.indexOf("\n", t);
|
|
39
|
+
return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
|
|
40
|
+
}
|
|
41
|
+
export { location };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { stringifyPosition } from "../../unist-util-stringify-position/lib/index.js";
|
|
2
|
+
var VFileMessage = class extends Error {
|
|
3
|
+
constructor(t, n, r) {
|
|
4
|
+
super(), typeof n == "string" && (r = n, n = void 0);
|
|
5
|
+
let i = "", a = {}, o = !1;
|
|
6
|
+
if (n && (a = "line" in n && "column" in n || "start" in n && "end" in n ? { place: n } : "type" in n ? {
|
|
7
|
+
ancestors: [n],
|
|
8
|
+
place: n.position
|
|
9
|
+
} : { ...n }), typeof t == "string" ? i = t : !a.cause && t && (o = !0, i = t.message, a.cause = t), !a.ruleId && !a.source && typeof r == "string") {
|
|
10
|
+
let e = r.indexOf(":");
|
|
11
|
+
e === -1 ? a.ruleId = r : (a.source = r.slice(0, e), a.ruleId = r.slice(e + 1));
|
|
12
|
+
}
|
|
13
|
+
if (!a.place && a.ancestors && a.ancestors) {
|
|
14
|
+
let e = a.ancestors[a.ancestors.length - 1];
|
|
15
|
+
e && (a.place = e.position);
|
|
16
|
+
}
|
|
17
|
+
let s = a.place && "start" in a.place ? a.place.start : a.place;
|
|
18
|
+
this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = s ? s.line : void 0, this.name = stringifyPosition(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = o && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
VFileMessage.prototype.file = "", VFileMessage.prototype.name = "", VFileMessage.prototype.reason = "", VFileMessage.prototype.message = "", VFileMessage.prototype.stack = "", VFileMessage.prototype.column = void 0, VFileMessage.prototype.line = void 0, VFileMessage.prototype.ancestors = void 0, VFileMessage.prototype.cause = void 0, VFileMessage.prototype.fatal = void 0, VFileMessage.prototype.place = void 0, VFileMessage.prototype.ruleId = void 0, VFileMessage.prototype.source = void 0;
|
|
22
|
+
export { VFileMessage };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { util } from "./helpers/util.js";
|
|
2
|
+
const ZodIssueCode = util.arrayToEnum([
|
|
3
|
+
"invalid_type",
|
|
4
|
+
"invalid_literal",
|
|
5
|
+
"custom",
|
|
6
|
+
"invalid_union",
|
|
7
|
+
"invalid_union_discriminator",
|
|
8
|
+
"invalid_enum_value",
|
|
9
|
+
"unrecognized_keys",
|
|
10
|
+
"invalid_arguments",
|
|
11
|
+
"invalid_return_type",
|
|
12
|
+
"invalid_date",
|
|
13
|
+
"invalid_string",
|
|
14
|
+
"too_small",
|
|
15
|
+
"too_big",
|
|
16
|
+
"invalid_intersection_types",
|
|
17
|
+
"not_multiple_of",
|
|
18
|
+
"not_finite"
|
|
19
|
+
]);
|
|
20
|
+
var ZodError = class t extends Error {
|
|
21
|
+
get errors() {
|
|
22
|
+
return this.issues;
|
|
23
|
+
}
|
|
24
|
+
constructor(e) {
|
|
25
|
+
super(), this.issues = [], this.addIssue = (e) => {
|
|
26
|
+
this.issues = [...this.issues, e];
|
|
27
|
+
}, this.addIssues = (e = []) => {
|
|
28
|
+
this.issues = [...this.issues, ...e];
|
|
29
|
+
};
|
|
30
|
+
let t = new.target.prototype;
|
|
31
|
+
Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
|
|
32
|
+
}
|
|
33
|
+
format(e) {
|
|
34
|
+
let t = e || function(e) {
|
|
35
|
+
return e.message;
|
|
36
|
+
}, n = { _errors: [] }, r = (e) => {
|
|
37
|
+
for (let i of e.issues) if (i.code === "invalid_union") i.unionErrors.map(r);
|
|
38
|
+
else if (i.code === "invalid_return_type") r(i.returnTypeError);
|
|
39
|
+
else if (i.code === "invalid_arguments") r(i.argumentsError);
|
|
40
|
+
else if (i.path.length === 0) n._errors.push(t(i));
|
|
41
|
+
else {
|
|
42
|
+
let e = n, r = 0;
|
|
43
|
+
for (; r < i.path.length;) {
|
|
44
|
+
let n = i.path[r];
|
|
45
|
+
r === i.path.length - 1 ? (e[n] = e[n] || { _errors: [] }, e[n]._errors.push(t(i))) : e[n] = e[n] || { _errors: [] }, e = e[n], r++;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return r(this), n;
|
|
50
|
+
}
|
|
51
|
+
static assert(e) {
|
|
52
|
+
if (!(e instanceof t)) throw Error(`Not a ZodError: ${e}`);
|
|
53
|
+
}
|
|
54
|
+
toString() {
|
|
55
|
+
return this.message;
|
|
56
|
+
}
|
|
57
|
+
get message() {
|
|
58
|
+
return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
|
|
59
|
+
}
|
|
60
|
+
get isEmpty() {
|
|
61
|
+
return this.issues.length === 0;
|
|
62
|
+
}
|
|
63
|
+
flatten(e = (e) => e.message) {
|
|
64
|
+
let t = Object.create(null), n = [];
|
|
65
|
+
for (let r of this.issues) if (r.path.length > 0) {
|
|
66
|
+
let n = r.path[0];
|
|
67
|
+
t[n] = t[n] || [], t[n].push(e(r));
|
|
68
|
+
} else n.push(e(r));
|
|
69
|
+
return {
|
|
70
|
+
formErrors: n,
|
|
71
|
+
fieldErrors: t
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
get formErrors() {
|
|
75
|
+
return this.flatten();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
ZodError.create = (e) => new ZodError(e);
|
|
79
|
+
export { ZodError, ZodIssueCode };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import en_default from "../locales/en.js";
|
|
2
|
+
import { getErrorMap } from "../errors.js";
|
|
3
|
+
const makeIssue = (e) => {
|
|
4
|
+
let { data: i, path: a, errorMaps: o, issueData: s } = e, c = [...a, ...s.path || []], l = {
|
|
5
|
+
...s,
|
|
6
|
+
path: c
|
|
7
|
+
};
|
|
8
|
+
if (s.message !== void 0) return {
|
|
9
|
+
...s,
|
|
10
|
+
path: c,
|
|
11
|
+
message: s.message
|
|
12
|
+
};
|
|
13
|
+
let u = "", d = o.filter((e) => !!e).slice().reverse();
|
|
14
|
+
for (let e of d) u = e(l, {
|
|
15
|
+
data: i,
|
|
16
|
+
defaultError: u
|
|
17
|
+
}).message;
|
|
18
|
+
return {
|
|
19
|
+
...s,
|
|
20
|
+
path: c,
|
|
21
|
+
message: u
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
function addIssueToContext(o, s) {
|
|
25
|
+
let c = getErrorMap(), l = makeIssue({
|
|
26
|
+
issueData: s,
|
|
27
|
+
data: o.data,
|
|
28
|
+
path: o.path,
|
|
29
|
+
errorMaps: [
|
|
30
|
+
o.common.contextualErrorMap,
|
|
31
|
+
o.schemaErrorMap,
|
|
32
|
+
c,
|
|
33
|
+
c === en_default ? void 0 : en_default
|
|
34
|
+
].filter((e) => !!e)
|
|
35
|
+
});
|
|
36
|
+
o.common.issues.push(l);
|
|
37
|
+
}
|
|
38
|
+
var ParseStatus = class e {
|
|
39
|
+
constructor() {
|
|
40
|
+
this.value = "valid";
|
|
41
|
+
}
|
|
42
|
+
dirty() {
|
|
43
|
+
this.value === "valid" && (this.value = "dirty");
|
|
44
|
+
}
|
|
45
|
+
abort() {
|
|
46
|
+
this.value !== "aborted" && (this.value = "aborted");
|
|
47
|
+
}
|
|
48
|
+
static mergeArray(e, i) {
|
|
49
|
+
let a = [];
|
|
50
|
+
for (let o of i) {
|
|
51
|
+
if (o.status === "aborted") return INVALID;
|
|
52
|
+
o.status === "dirty" && e.dirty(), a.push(o.value);
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
status: e.value,
|
|
56
|
+
value: a
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
static async mergeObjectAsync(i, a) {
|
|
60
|
+
let o = [];
|
|
61
|
+
for (let e of a) {
|
|
62
|
+
let i = await e.key, a = await e.value;
|
|
63
|
+
o.push({
|
|
64
|
+
key: i,
|
|
65
|
+
value: a
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return e.mergeObjectSync(i, o);
|
|
69
|
+
}
|
|
70
|
+
static mergeObjectSync(e, i) {
|
|
71
|
+
let a = {};
|
|
72
|
+
for (let o of i) {
|
|
73
|
+
let { key: i, value: s } = o;
|
|
74
|
+
if (i.status === "aborted" || s.status === "aborted") return INVALID;
|
|
75
|
+
i.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), i.value !== "__proto__" && (s.value !== void 0 || o.alwaysSet) && (a[i.value] = s.value);
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
status: e.value,
|
|
79
|
+
value: a
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const INVALID = Object.freeze({ status: "aborted" }), DIRTY = (e) => ({
|
|
84
|
+
status: "dirty",
|
|
85
|
+
value: e
|
|
86
|
+
}), OK = (e) => ({
|
|
87
|
+
status: "valid",
|
|
88
|
+
value: e
|
|
89
|
+
}), isAborted = (e) => e.status === "aborted", isDirty = (e) => e.status === "dirty", isValid = (e) => e.status === "valid", isAsync = (e) => typeof Promise < "u" && e instanceof Promise;
|
|
90
|
+
export { DIRTY, INVALID, OK, ParseStatus, addIssueToContext, isAborted, isAsync, isDirty, isValid, makeIssue };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var util;
|
|
2
|
+
(function(e) {
|
|
3
|
+
e.assertEqual = (e) => {};
|
|
4
|
+
function t(e) {}
|
|
5
|
+
e.assertIs = t;
|
|
6
|
+
function n(e) {
|
|
7
|
+
throw Error();
|
|
8
|
+
}
|
|
9
|
+
e.assertNever = n, e.arrayToEnum = (e) => {
|
|
10
|
+
let t = {};
|
|
11
|
+
for (let n of e) t[n] = n;
|
|
12
|
+
return t;
|
|
13
|
+
}, e.getValidEnumValues = (t) => {
|
|
14
|
+
let n = e.objectKeys(t).filter((e) => typeof t[t[e]] != "number"), r = {};
|
|
15
|
+
for (let e of n) r[e] = t[e];
|
|
16
|
+
return e.objectValues(r);
|
|
17
|
+
}, e.objectValues = (t) => e.objectKeys(t).map(function(e) {
|
|
18
|
+
return t[e];
|
|
19
|
+
}), e.objectKeys = typeof Object.keys == "function" ? (e) => Object.keys(e) : (e) => {
|
|
20
|
+
let t = [];
|
|
21
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && t.push(n);
|
|
22
|
+
return t;
|
|
23
|
+
}, e.find = (e, t) => {
|
|
24
|
+
for (let n of e) if (t(n)) return n;
|
|
25
|
+
}, e.isInteger = typeof Number.isInteger == "function" ? (e) => Number.isInteger(e) : (e) => typeof e == "number" && Number.isFinite(e) && Math.floor(e) === e;
|
|
26
|
+
function r(e, t = " | ") {
|
|
27
|
+
return e.map((e) => typeof e == "string" ? `'${e}'` : e).join(t);
|
|
28
|
+
}
|
|
29
|
+
e.joinValues = r, e.jsonStringifyReplacer = (e, t) => typeof t == "bigint" ? t.toString() : t;
|
|
30
|
+
})(util ||= {});
|
|
31
|
+
var objectUtil;
|
|
32
|
+
(function(e) {
|
|
33
|
+
e.mergeShapes = (e, t) => ({
|
|
34
|
+
...e,
|
|
35
|
+
...t
|
|
36
|
+
});
|
|
37
|
+
})(objectUtil ||= {});
|
|
38
|
+
const ZodParsedType = util.arrayToEnum([
|
|
39
|
+
"string",
|
|
40
|
+
"nan",
|
|
41
|
+
"number",
|
|
42
|
+
"integer",
|
|
43
|
+
"float",
|
|
44
|
+
"boolean",
|
|
45
|
+
"date",
|
|
46
|
+
"bigint",
|
|
47
|
+
"symbol",
|
|
48
|
+
"function",
|
|
49
|
+
"undefined",
|
|
50
|
+
"null",
|
|
51
|
+
"array",
|
|
52
|
+
"object",
|
|
53
|
+
"unknown",
|
|
54
|
+
"promise",
|
|
55
|
+
"void",
|
|
56
|
+
"never",
|
|
57
|
+
"map",
|
|
58
|
+
"set"
|
|
59
|
+
]), getParsedType = (e) => {
|
|
60
|
+
switch (typeof e) {
|
|
61
|
+
case "undefined": return ZodParsedType.undefined;
|
|
62
|
+
case "string": return ZodParsedType.string;
|
|
63
|
+
case "number": return Number.isNaN(e) ? ZodParsedType.nan : ZodParsedType.number;
|
|
64
|
+
case "boolean": return ZodParsedType.boolean;
|
|
65
|
+
case "function": return ZodParsedType.function;
|
|
66
|
+
case "bigint": return ZodParsedType.bigint;
|
|
67
|
+
case "symbol": return ZodParsedType.symbol;
|
|
68
|
+
case "object": return Array.isArray(e) ? ZodParsedType.array : e === null ? ZodParsedType.null : e.then && typeof e.then == "function" && e.catch && typeof e.catch == "function" ? ZodParsedType.promise : typeof Map < "u" && e instanceof Map ? ZodParsedType.map : typeof Set < "u" && e instanceof Set ? ZodParsedType.set : typeof Date < "u" && e instanceof Date ? ZodParsedType.date : ZodParsedType.object;
|
|
69
|
+
default: return ZodParsedType.unknown;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
export { ZodParsedType, getParsedType, util };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ZodParsedType, util } from "../helpers/util.js";
|
|
2
|
+
import { ZodIssueCode } from "../ZodError.js";
|
|
3
|
+
var en_default = (r, i) => {
|
|
4
|
+
let a;
|
|
5
|
+
switch (r.code) {
|
|
6
|
+
case ZodIssueCode.invalid_type:
|
|
7
|
+
a = r.received === ZodParsedType.undefined ? "Required" : `Expected ${r.expected}, received ${r.received}`;
|
|
8
|
+
break;
|
|
9
|
+
case ZodIssueCode.invalid_literal:
|
|
10
|
+
a = `Invalid literal value, expected ${JSON.stringify(r.expected, util.jsonStringifyReplacer)}`;
|
|
11
|
+
break;
|
|
12
|
+
case ZodIssueCode.unrecognized_keys:
|
|
13
|
+
a = `Unrecognized key(s) in object: ${util.joinValues(r.keys, ", ")}`;
|
|
14
|
+
break;
|
|
15
|
+
case ZodIssueCode.invalid_union:
|
|
16
|
+
a = "Invalid input";
|
|
17
|
+
break;
|
|
18
|
+
case ZodIssueCode.invalid_union_discriminator:
|
|
19
|
+
a = `Invalid discriminator value. Expected ${util.joinValues(r.options)}`;
|
|
20
|
+
break;
|
|
21
|
+
case ZodIssueCode.invalid_enum_value:
|
|
22
|
+
a = `Invalid enum value. Expected ${util.joinValues(r.options)}, received '${r.received}'`;
|
|
23
|
+
break;
|
|
24
|
+
case ZodIssueCode.invalid_arguments:
|
|
25
|
+
a = "Invalid function arguments";
|
|
26
|
+
break;
|
|
27
|
+
case ZodIssueCode.invalid_return_type:
|
|
28
|
+
a = "Invalid function return type";
|
|
29
|
+
break;
|
|
30
|
+
case ZodIssueCode.invalid_date:
|
|
31
|
+
a = "Invalid date";
|
|
32
|
+
break;
|
|
33
|
+
case ZodIssueCode.invalid_string:
|
|
34
|
+
typeof r.validation == "object" ? "includes" in r.validation ? (a = `Invalid input: must include "${r.validation.includes}"`, typeof r.validation.position == "number" && (a = `${a} at one or more positions greater than or equal to ${r.validation.position}`)) : "startsWith" in r.validation ? a = `Invalid input: must start with "${r.validation.startsWith}"` : "endsWith" in r.validation ? a = `Invalid input: must end with "${r.validation.endsWith}"` : util.assertNever(r.validation) : a = r.validation === "regex" ? "Invalid" : `Invalid ${r.validation}`;
|
|
35
|
+
break;
|
|
36
|
+
case ZodIssueCode.too_small:
|
|
37
|
+
a = r.type === "array" ? `Array must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "more than"} ${r.minimum} element(s)` : r.type === "string" ? `String must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "over"} ${r.minimum} character(s)` : r.type === "number" || r.type === "bigint" ? `Number must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${r.minimum}` : r.type === "date" ? `Date must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(r.minimum))}` : "Invalid input";
|
|
38
|
+
break;
|
|
39
|
+
case ZodIssueCode.too_big:
|
|
40
|
+
a = r.type === "array" ? `Array must contain ${r.exact ? "exactly" : r.inclusive ? "at most" : "less than"} ${r.maximum} element(s)` : r.type === "string" ? `String must contain ${r.exact ? "exactly" : r.inclusive ? "at most" : "under"} ${r.maximum} character(s)` : r.type === "number" ? `Number must be ${r.exact ? "exactly" : r.inclusive ? "less than or equal to" : "less than"} ${r.maximum}` : r.type === "bigint" ? `BigInt must be ${r.exact ? "exactly" : r.inclusive ? "less than or equal to" : "less than"} ${r.maximum}` : r.type === "date" ? `Date must be ${r.exact ? "exactly" : r.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(r.maximum))}` : "Invalid input";
|
|
41
|
+
break;
|
|
42
|
+
case ZodIssueCode.custom:
|
|
43
|
+
a = "Invalid input";
|
|
44
|
+
break;
|
|
45
|
+
case ZodIssueCode.invalid_intersection_types:
|
|
46
|
+
a = "Intersection results could not be merged";
|
|
47
|
+
break;
|
|
48
|
+
case ZodIssueCode.not_multiple_of:
|
|
49
|
+
a = `Number must be a multiple of ${r.multipleOf}`;
|
|
50
|
+
break;
|
|
51
|
+
case ZodIssueCode.not_finite:
|
|
52
|
+
a = "Number must be finite";
|
|
53
|
+
break;
|
|
54
|
+
default: a = i.defaultError, util.assertNever(r);
|
|
55
|
+
}
|
|
56
|
+
return { message: a };
|
|
57
|
+
};
|
|
58
|
+
export { en_default as default };
|