@loopstack/loopstack-studio 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +13 -15
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/config.js +6 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
- package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
- package/dist/features/debug/lib/edge-paths.js +45 -30
- package/dist/features/debug/lib/flow-types.js +2 -0
- package/dist/features/debug/lib/flow-utils.js +66 -64
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/workbench/WorkflowItem.js +4 -3
- package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
- package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
- package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
- package/dist/features/workbench/components/RecentRunItem.js +48 -0
- package/dist/features/workbench/components/WorkflowForms.js +4 -3
- package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
- package/dist/features/workbench/index.js +4 -0
- package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
- package/dist/node_modules/internmap/src/index.js +1 -1
- package/dist/node_modules/katex/dist/katex.js +379 -417
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
- package/dist/node_modules/lodash-es/_assignValue.js +1 -1
- package/dist/node_modules/lodash-es/_baseClone.js +9 -9
- package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
- package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
- package/dist/node_modules/lodash-es/_baseRest.js +1 -1
- package/dist/node_modules/lodash-es/_baseSet.js +1 -1
- package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
- package/dist/node_modules/lodash-es/_baseToString.js +2 -2
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createRange.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +3 -3
- package/dist/node_modules/lodash-es/_flatRest.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
- package/dist/node_modules/lodash-es/_getTag.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +2 -2
- package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
- package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
- package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
- package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
- package/dist/node_modules/lodash-es/_isKey.js +1 -1
- package/dist/node_modules/lodash-es/_setToString.js +1 -1
- package/dist/node_modules/lodash-es/defaults.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/forIn.js +1 -1
- package/dist/node_modules/lodash-es/isEmpty.js +2 -2
- package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
- package/dist/node_modules/lodash-es/map.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/merge.js +3 -3
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/lodash-es/toNumber.js +1 -1
- package/dist/node_modules/lodash-es/union.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
- package/dist/node_modules/stylis/src/Enum.js +2 -2
- package/dist/node_modules/stylis/src/Middleware.js +9 -0
- package/dist/node_modules/stylis/src/Parser.js +55 -44
- package/dist/node_modules/stylis/src/Utility.js +9 -12
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/contracts/dist/enums/index.js +4 -24
- package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
- package/dist/pages/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- package/package.json +2 -2
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
- package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/dist/node_modules/langium/lib/default-module.js +0 -85
- package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
- package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
- package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
- package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
- package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
- package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
- package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
- package/dist/node_modules/langium/lib/references/linker.js +0 -190
- package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
- package/dist/node_modules/langium/lib/references/references.js +0 -76
- package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
- package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
- package/dist/node_modules/langium/lib/references/scope.js +0 -73
- package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
- package/dist/node_modules/langium/lib/service-registry.js +0 -37
- package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
- package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
- package/dist/node_modules/langium/lib/utils/caching.js +0 -91
- package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
- package/dist/node_modules/langium/lib/utils/collections.js +0 -85
- package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
- package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
- package/dist/node_modules/langium/lib/utils/errors.js +0 -12
- package/dist/node_modules/langium/lib/utils/event.js +0 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
- package/dist/node_modules/langium/lib/utils/stream.js +0 -327
- package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
- package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
- package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
- package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
- package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
- package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
- package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
- package/dist/node_modules/lodash-es/flatMap.js +0 -7
- package/dist/node_modules/lodash-es/uniqBy.js +0 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
- package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
- package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
- /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
|
@@ -2,17 +2,14 @@ var abs = Math.abs, from = String.fromCharCode;
|
|
|
2
2
|
function trim(e) {
|
|
3
3
|
return e.trim();
|
|
4
4
|
}
|
|
5
|
-
function replace(e,
|
|
6
|
-
return e.replace(
|
|
5
|
+
function replace(e, s, c) {
|
|
6
|
+
return e.replace(s, c);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
return e.
|
|
8
|
+
function charat(e, s) {
|
|
9
|
+
return e.charCodeAt(s) | 0;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
return e.
|
|
13
|
-
}
|
|
14
|
-
function substr(e, c, l) {
|
|
15
|
-
return e.slice(c, l);
|
|
11
|
+
function substr(e, s, c) {
|
|
12
|
+
return e.slice(s, c);
|
|
16
13
|
}
|
|
17
14
|
function strlen(e) {
|
|
18
15
|
return e.length;
|
|
@@ -20,7 +17,7 @@ function strlen(e) {
|
|
|
20
17
|
function sizeof(e) {
|
|
21
18
|
return e.length;
|
|
22
19
|
}
|
|
23
|
-
function append(e,
|
|
24
|
-
return
|
|
20
|
+
function append(e, s) {
|
|
21
|
+
return s.push(e), e;
|
|
25
22
|
}
|
|
26
|
-
export { abs, append, charat, from,
|
|
23
|
+
export { abs, append, charat, from, replace, sizeof, strlen, substr, trim };
|
|
@@ -2,7 +2,7 @@ import { __toESM } from "../../../_virtual/rolldown_runtime.js";
|
|
|
2
2
|
import { ok } from "../../devlop/lib/default.js";
|
|
3
3
|
import { bail } from "../../bail/index.js";
|
|
4
4
|
import { require_extend } from "../../extend/index.js";
|
|
5
|
-
import isPlainObject from "
|
|
5
|
+
import isPlainObject from "../../is-plain-obj/index.js";
|
|
6
6
|
import { trough } from "../../trough/lib/index.js";
|
|
7
7
|
import { VFile } from "../../vfile/lib/index.js";
|
|
8
8
|
import { CallableInstance } from "./callable-instance.js";
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { require_registry_enum } from "./registry.enum.js";
|
|
6
|
-
var require_enums = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
7
|
-
var a = e && e.__createBinding || (Object.create ? function(e, t, n, r) {
|
|
8
|
-
r === void 0 && (r = n);
|
|
9
|
-
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
10
|
-
(!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
|
|
11
|
-
enumerable: !0,
|
|
12
|
-
get: function() {
|
|
13
|
-
return t[n];
|
|
14
|
-
}
|
|
15
|
-
}), Object.defineProperty(e, r, i);
|
|
16
|
-
} : function(e, t, n, r) {
|
|
17
|
-
r === void 0 && (r = n), e[r] = t[n];
|
|
18
|
-
}), o = e && e.__exportStar || function(e, t) {
|
|
19
|
-
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && a(t, e, n);
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), o(require_sort_order_enum(), e), o(require_workflow_state_enum(), e), o(require_user_type_enum(), e), o(require_registry_enum(), e);
|
|
22
|
-
}));
|
|
23
|
-
export default require_enums();
|
|
24
|
-
export { require_enums };
|
|
1
|
+
import { SortOrder } from "./sort-order.enum.js";
|
|
2
|
+
import { WorkflowState } from "./workflow-state.enum.js";
|
|
3
|
+
import { UserTypeEnum } from "./user-type.enum.js";
|
|
4
|
+
import { RegistryEntryCategory, RegistryEntryStatus } from "./registry.enum.js";
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
e.TOOLS = "tools", e.EXAMPLES = "examples", e.BUNDLES = "bundles", e.MODULES = "modules", e.INTEGRATIONS = "integrations";
|
|
11
|
-
})(n || (e.RegistryEntryCategory = n = {})), e.REGISTRY_CATEGORIES = [
|
|
12
|
-
n.TOOLS,
|
|
13
|
-
n.EXAMPLES,
|
|
14
|
-
n.BUNDLES,
|
|
15
|
-
n.MODULES,
|
|
16
|
-
n.INTEGRATIONS
|
|
17
|
-
];
|
|
18
|
-
}));
|
|
19
|
-
export default require_registry_enum();
|
|
20
|
-
export { require_registry_enum };
|
|
1
|
+
var RegistryEntryStatus;
|
|
2
|
+
(function(e) {
|
|
3
|
+
e.DRAFT = "draft", e.PENDING = "pending", e.ACTIVE = "active", e.INACTIVE = "inactive";
|
|
4
|
+
})(RegistryEntryStatus ||= {});
|
|
5
|
+
var RegistryEntryCategory;
|
|
6
|
+
(function(e) {
|
|
7
|
+
e.TOOLS = "tools", e.EXAMPLES = "examples", e.BUNDLES = "bundles", e.MODULES = "modules", e.INTEGRATIONS = "integrations";
|
|
8
|
+
})(RegistryEntryCategory ||= {}), RegistryEntryCategory.TOOLS, RegistryEntryCategory.EXAMPLES, RegistryEntryCategory.BUNDLES, RegistryEntryCategory.MODULES, RegistryEntryCategory.INTEGRATIONS;
|
|
9
|
+
export { RegistryEntryCategory, RegistryEntryStatus };
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
e.ASC = "ASC", e.DESC = "DESC";
|
|
7
|
-
})(t || (e.SortOrder = t = {}));
|
|
8
|
-
}));
|
|
9
|
-
export default require_sort_order_enum();
|
|
10
|
-
export { require_sort_order_enum };
|
|
1
|
+
var SortOrder;
|
|
2
|
+
(function(e) {
|
|
3
|
+
e.ASC = "ASC", e.DESC = "DESC";
|
|
4
|
+
})(SortOrder ||= {});
|
|
5
|
+
export { SortOrder };
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
e.Local = "local", e.Cloud = "cloud";
|
|
7
|
-
})(t || (e.UserTypeEnum = t = {}));
|
|
8
|
-
}));
|
|
9
|
-
export default require_user_type_enum();
|
|
10
|
-
export { require_user_type_enum };
|
|
1
|
+
var UserTypeEnum;
|
|
2
|
+
(function(e) {
|
|
3
|
+
e.Local = "local", e.Cloud = "cloud";
|
|
4
|
+
})(UserTypeEnum ||= {});
|
|
5
|
+
export { UserTypeEnum };
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
e.Pending = "pending", e.Running = "running", e.Paused = "paused", e.Waiting = "waiting", e.Completed = "completed", e.Failed = "failed", e.Canceled = "canceled";
|
|
7
|
-
})(t || (e.WorkflowState = t = {}));
|
|
8
|
-
}));
|
|
9
|
-
export default require_workflow_state_enum();
|
|
10
|
-
export { require_workflow_state_enum };
|
|
1
|
+
var WorkflowState;
|
|
2
|
+
(function(e) {
|
|
3
|
+
e.Pending = "pending", e.Running = "running", e.Paused = "paused", e.Waiting = "waiting", e.Completed = "completed", e.Failed = "failed", e.Canceled = "canceled";
|
|
4
|
+
})(WorkflowState ||= {});
|
|
5
|
+
export { WorkflowState };
|
|
@@ -2,7 +2,8 @@ import { useWorkflow } from "../hooks/useWorkflows.js";
|
|
|
2
2
|
import LoadingCentered_default from "../components/feedback/LoadingCentered.js";
|
|
3
3
|
import ErrorSnackbar_default from "../components/feedback/ErrorSnackbar.js";
|
|
4
4
|
import { WorkbenchLayoutProvider } from "../features/workbench/providers/WorkbenchLayoutProvider.js";
|
|
5
|
-
import {
|
|
5
|
+
import { WorkflowState } from "../packages/contracts/dist/enums/workflow-state.enum.js";
|
|
6
|
+
import "../packages/contracts/dist/enums/index.js";
|
|
6
7
|
import WorkflowItem_default from "../features/workbench/WorkflowItem.js";
|
|
7
8
|
import "../features/workbench/index.js";
|
|
8
9
|
import { requireParam } from "../lib/requireParam.js";
|
|
@@ -10,13 +11,13 @@ import { c } from "react/compiler-runtime";
|
|
|
10
11
|
import { useEffect, useRef } from "react";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
import { useParams } from "react-router-dom";
|
|
13
|
-
var
|
|
14
|
+
var EMBED_MESSAGE_TYPE = "loopstack:embed:workflow-completed", EMBED_RESIZE_MESSAGE_TYPE = "loopstack:embed:resize";
|
|
14
15
|
function EmbedWorkbenchPage() {
|
|
15
16
|
let _ = c(20), v = useParams(), y;
|
|
16
17
|
_[0] === v ? y = _[1] : (y = requireParam(v, "workflowId"), _[0] = v, _[1] = y);
|
|
17
18
|
let b = y, x = useRef(null), S = useWorkflow(b), C = useRef(!1), w, T;
|
|
18
19
|
_[2] !== S.data || _[3] !== b ? (w = () => {
|
|
19
|
-
!S.data || C.current || S.data.status ===
|
|
20
|
+
!S.data || C.current || S.data.status === WorkflowState.Completed && window.parent !== window && (C.current = !0, window.parent.postMessage({
|
|
20
21
|
type: EMBED_MESSAGE_TYPE,
|
|
21
22
|
workflowId: b
|
|
22
23
|
}, window.location.origin));
|
|
@@ -3,7 +3,8 @@ import { useFilterWorkflows, useWorkflow, useWorkflowConfigByName } from "../hoo
|
|
|
3
3
|
import { Button } from "../components/ui/button.js";
|
|
4
4
|
import LoadingCentered_default from "../components/feedback/LoadingCentered.js";
|
|
5
5
|
import ErrorSnackbar_default from "../components/feedback/ErrorSnackbar.js";
|
|
6
|
-
import {
|
|
6
|
+
import { WorkflowState } from "../packages/contracts/dist/enums/workflow-state.enum.js";
|
|
7
|
+
import "../packages/contracts/dist/enums/index.js";
|
|
7
8
|
import { ReactFlowProvider } from "../node_modules/@xyflow/react/dist/esm/index.js";
|
|
8
9
|
import WorkflowFlowViewer_default from "../features/debug/components/WorkflowFlowViewer.js";
|
|
9
10
|
import "../features/debug/index.js";
|
|
@@ -11,6 +12,7 @@ import WorkflowItem_default from "../features/workbench/WorkflowItem.js";
|
|
|
11
12
|
import WorkflowHistoryList_default from "../features/workbench/components/WorkflowHistoryList.js";
|
|
12
13
|
import { NewRunDialog } from "../features/workbench/components/NewRunDialog.js";
|
|
13
14
|
import "../features/workbench/index.js";
|
|
15
|
+
import config_default from "../config.js";
|
|
14
16
|
import { c } from "react/compiler-runtime";
|
|
15
17
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
16
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -18,7 +20,7 @@ import { useQuery } from "@tanstack/react-query";
|
|
|
18
20
|
import { useNavigate, useParams } from "react-router-dom";
|
|
19
21
|
import { ChevronDown, ListOrdered, Loader2, Play, RefreshCw, ScrollText, Workflow } from "lucide-react";
|
|
20
22
|
import { formatDistanceToNow } from "date-fns";
|
|
21
|
-
var
|
|
23
|
+
var EMBED_MESSAGE_TYPE = "loopstack:embed:workflow-completed", EMBED_RESIZE_MESSAGE_TYPE = "loopstack:embed:resize", EMBED_NEW_RUN_MESSAGE_TYPE = "loopstack:embed:new-run";
|
|
22
24
|
function PreviewWorkbenchPage() {
|
|
23
25
|
let e = c(5), { workflowId: t } = useParams(), [n, r] = useState(!1), i;
|
|
24
26
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = (e) => {
|
|
@@ -43,80 +45,80 @@ function PreviewWorkbenchPage() {
|
|
|
43
45
|
}), e[3] = t, e[4] = o), o;
|
|
44
46
|
}
|
|
45
47
|
function PreviewWorkbenchContent(e) {
|
|
46
|
-
let t = c(49), { workflowId:
|
|
47
|
-
t[0] !==
|
|
48
|
-
!
|
|
48
|
+
let t = c(49), { workflowId: m, onNewRunSuccess: h } = e, _ = useRef(null), [y, b] = useState("output"), [x, S] = useState(!1), w = useWorkflow(m), T = useRef(!1), O = useWorkflowConfigByName(w.data?.className ?? void 0), A, j;
|
|
49
|
+
t[0] !== w.data || t[1] !== m ? (A = () => {
|
|
50
|
+
!w.data || T.current || w.data.status === WorkflowState.Completed && window.parent !== window && (T.current = !0, window.parent.postMessage({
|
|
49
51
|
type: EMBED_MESSAGE_TYPE,
|
|
50
|
-
workflowId:
|
|
52
|
+
workflowId: m
|
|
51
53
|
}, window.location.origin));
|
|
52
|
-
},
|
|
53
|
-
let
|
|
54
|
-
t[4] ===
|
|
55
|
-
if (window.parent === window || !
|
|
54
|
+
}, j = [w.data, m], t[0] = w.data, t[1] = m, t[2] = A, t[3] = j) : (A = t[2], j = t[3]), useEffect(A, j);
|
|
55
|
+
let M, N;
|
|
56
|
+
t[4] === m ? (M = t[5], N = t[6]) : (M = () => {
|
|
57
|
+
if (window.parent === window || !_.current) return;
|
|
56
58
|
let e = new ResizeObserver(() => {
|
|
57
|
-
if (!
|
|
59
|
+
if (!_.current) return;
|
|
58
60
|
let e = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight);
|
|
59
61
|
window.parent.postMessage({
|
|
60
62
|
type: EMBED_RESIZE_MESSAGE_TYPE,
|
|
61
|
-
workflowId:
|
|
63
|
+
workflowId: m,
|
|
62
64
|
height: e
|
|
63
65
|
}, window.location.origin);
|
|
64
66
|
});
|
|
65
|
-
return e.observe(
|
|
66
|
-
},
|
|
67
|
-
let
|
|
68
|
-
t[7] ===
|
|
69
|
-
|
|
70
|
-
}, t[7] =
|
|
71
|
-
let
|
|
72
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
67
|
+
return e.observe(_.current), () => e.disconnect();
|
|
68
|
+
}, N = [m], t[4] = m, t[5] = M, t[6] = N), useEffect(M, N);
|
|
69
|
+
let P;
|
|
70
|
+
t[7] === h ? P = t[8] : (P = (e) => {
|
|
71
|
+
S(!1), h(e);
|
|
72
|
+
}, t[7] = h, t[8] = P);
|
|
73
|
+
let F = P, I = _temp, L;
|
|
74
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (L = {
|
|
73
75
|
enableDebugMode: !1,
|
|
74
76
|
showFullMessageHistory: !1
|
|
75
|
-
}, t[9] =
|
|
76
|
-
let
|
|
77
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
77
|
+
}, t[9] = L) : L = t[9];
|
|
78
|
+
let R = L, z;
|
|
79
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (z = {
|
|
78
80
|
value: "output",
|
|
79
81
|
label: "Output",
|
|
80
82
|
icon: /* @__PURE__ */ jsx(ScrollText, { className: "h-3.5 w-3.5" })
|
|
81
|
-
}, t[10] =
|
|
82
|
-
let
|
|
83
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
83
|
+
}, t[10] = z) : z = t[10];
|
|
84
|
+
let B;
|
|
85
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (B = {
|
|
84
86
|
value: "graph",
|
|
85
87
|
label: "Graph",
|
|
86
88
|
icon: /* @__PURE__ */ jsx(Workflow, { className: "h-3.5 w-3.5" })
|
|
87
|
-
}, t[11] =
|
|
88
|
-
let
|
|
89
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
89
|
+
}, t[11] = B) : B = t[11];
|
|
90
|
+
let V;
|
|
91
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (V = {
|
|
90
92
|
value: "run-log",
|
|
91
93
|
label: "Run Log",
|
|
92
94
|
icon: /* @__PURE__ */ jsx(ListOrdered, { className: "h-3.5 w-3.5" })
|
|
93
|
-
}, t[12] =
|
|
94
|
-
let
|
|
95
|
-
t[13] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
96
|
-
R,
|
|
95
|
+
}, t[12] = V) : V = t[12];
|
|
96
|
+
let H;
|
|
97
|
+
t[13] === Symbol.for("react.memo_cache_sentinel") ? (H = [
|
|
97
98
|
z,
|
|
98
99
|
B,
|
|
100
|
+
V,
|
|
99
101
|
{
|
|
100
102
|
value: "logs",
|
|
101
103
|
label: "Logs",
|
|
102
104
|
icon: /* @__PURE__ */ jsx(ScrollText, { className: "h-3.5 w-3.5" })
|
|
103
105
|
}
|
|
104
|
-
], t[13] =
|
|
105
|
-
let
|
|
106
|
-
t[14] ===
|
|
106
|
+
], t[13] = H) : H = t[13];
|
|
107
|
+
let ce = H, U;
|
|
108
|
+
t[14] === y ? U = t[15] : (U = /* @__PURE__ */ jsx("div", {
|
|
107
109
|
className: "bg-background flex items-center rounded-md border p-0.5",
|
|
108
|
-
children:
|
|
109
|
-
onClick: () =>
|
|
110
|
-
className: `flex items-center gap-1.5 rounded-sm px-2.5 py-1 text-xs font-medium transition-colors ${
|
|
110
|
+
children: ce.map((e) => /* @__PURE__ */ jsxs("button", {
|
|
111
|
+
onClick: () => b(e.value),
|
|
112
|
+
className: `flex items-center gap-1.5 rounded-sm px-2.5 py-1 text-xs font-medium transition-colors ${y === e.value ? "bg-foreground text-background shadow-sm" : "text-muted-foreground hover:text-foreground"}`,
|
|
111
113
|
children: [e.icon, e.label]
|
|
112
114
|
}, e.value))
|
|
113
|
-
}), t[14] =
|
|
115
|
+
}), t[14] = y, t[15] = U);
|
|
114
116
|
let W;
|
|
115
117
|
t[16] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ jsxs(Button, {
|
|
116
118
|
variant: "outline",
|
|
117
119
|
size: "sm",
|
|
118
120
|
className: "h-7 gap-1.5",
|
|
119
|
-
onClick: () =>
|
|
121
|
+
onClick: () => S(!0),
|
|
120
122
|
children: [/* @__PURE__ */ jsx(Play, { className: "h-3 w-3" }), "New Run"]
|
|
121
123
|
}), t[16] = W) : W = t[16];
|
|
122
124
|
let G;
|
|
@@ -125,29 +127,29 @@ function PreviewWorkbenchContent(e) {
|
|
|
125
127
|
children: [U, W]
|
|
126
128
|
}), t[17] = U, t[18] = G);
|
|
127
129
|
let K;
|
|
128
|
-
t[19] ===
|
|
130
|
+
t[19] === w.error ? K = t[20] : (K = /* @__PURE__ */ jsx(ErrorSnackbar_default, { error: w.error }), t[19] = w.error, t[20] = K);
|
|
129
131
|
let q;
|
|
130
|
-
t[21] !==
|
|
132
|
+
t[21] !== y || t[22] !== w.data || t[23] !== w.isLoading ? (q = y === "output" && /* @__PURE__ */ jsx("div", {
|
|
131
133
|
className: "px-4 py-3",
|
|
132
134
|
children: /* @__PURE__ */ jsx(LoadingCentered_default, {
|
|
133
|
-
loading:
|
|
134
|
-
children:
|
|
135
|
-
workflow:
|
|
136
|
-
workflowId:
|
|
137
|
-
scrollTo:
|
|
138
|
-
settings:
|
|
135
|
+
loading: w.isLoading,
|
|
136
|
+
children: w.data ? /* @__PURE__ */ jsx(WorkflowItem_default, {
|
|
137
|
+
workflow: w.data,
|
|
138
|
+
workflowId: w.data.id,
|
|
139
|
+
scrollTo: I,
|
|
140
|
+
settings: R
|
|
139
141
|
}) : null
|
|
140
142
|
})
|
|
141
|
-
}), t[21] =
|
|
143
|
+
}), t[21] = y, t[22] = w.data, t[23] = w.isLoading, t[24] = q) : q = t[24];
|
|
142
144
|
let J;
|
|
143
|
-
t[25] !==
|
|
145
|
+
t[25] !== y || t[26] !== w.data || t[27] !== w.isLoading || t[28] !== O || t[29] !== m ? (J = y === "graph" && /* @__PURE__ */ jsx("div", {
|
|
144
146
|
className: "h-full",
|
|
145
147
|
children: /* @__PURE__ */ jsx(LoadingCentered_default, {
|
|
146
|
-
loading:
|
|
147
|
-
children:
|
|
148
|
-
workflowId:
|
|
149
|
-
workflows: [
|
|
150
|
-
workflowConfig:
|
|
148
|
+
loading: w.isLoading,
|
|
149
|
+
children: w.data ? /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @__PURE__ */ jsx(WorkflowFlowViewer_default, {
|
|
150
|
+
workflowId: m,
|
|
151
|
+
workflows: [w.data],
|
|
152
|
+
workflowConfig: O.data,
|
|
151
153
|
direction: "TB"
|
|
152
154
|
}) }) : /* @__PURE__ */ jsx("div", {
|
|
153
155
|
className: "text-muted-foreground flex h-full items-center justify-center",
|
|
@@ -157,14 +159,14 @@ function PreviewWorkbenchContent(e) {
|
|
|
157
159
|
})
|
|
158
160
|
})
|
|
159
161
|
})
|
|
160
|
-
}), t[25] =
|
|
162
|
+
}), t[25] = y, t[26] = w.data, t[27] = w.isLoading, t[28] = O, t[29] = m, t[30] = J) : J = t[30];
|
|
161
163
|
let Y;
|
|
162
|
-
t[31] !==
|
|
164
|
+
t[31] !== y || t[32] !== w.data ? (Y = y === "run-log" && /* @__PURE__ */ jsx("div", {
|
|
163
165
|
className: "px-4",
|
|
164
|
-
children: /* @__PURE__ */ jsx(WorkflowHistoryList_default, { workflow:
|
|
165
|
-
}), t[31] =
|
|
166
|
+
children: /* @__PURE__ */ jsx(WorkflowHistoryList_default, { workflow: w.data })
|
|
167
|
+
}), t[31] = y, t[32] = w.data, t[33] = Y) : Y = t[33];
|
|
166
168
|
let X;
|
|
167
|
-
t[34] ===
|
|
169
|
+
t[34] === y ? X = t[35] : (X = y === "logs" && /* @__PURE__ */ jsx(EmbedLogsContent, {}), t[34] = y, t[35] = X);
|
|
168
170
|
let Z;
|
|
169
171
|
t[36] !== K || t[37] !== q || t[38] !== J || t[39] !== Y || t[40] !== X ? (Z = /* @__PURE__ */ jsxs("div", {
|
|
170
172
|
className: "flex-1 overflow-auto",
|
|
@@ -177,14 +179,14 @@ function PreviewWorkbenchContent(e) {
|
|
|
177
179
|
]
|
|
178
180
|
}), t[36] = K, t[37] = q, t[38] = J, t[39] = Y, t[40] = X, t[41] = Z) : Z = t[41];
|
|
179
181
|
let Q;
|
|
180
|
-
t[42] !==
|
|
181
|
-
open:
|
|
182
|
-
onOpenChange:
|
|
183
|
-
onSuccess:
|
|
184
|
-
}), t[42] =
|
|
182
|
+
t[42] !== F || t[43] !== x ? (Q = /* @__PURE__ */ jsx(NewRunDialog, {
|
|
183
|
+
open: x,
|
|
184
|
+
onOpenChange: S,
|
|
185
|
+
onSuccess: F
|
|
186
|
+
}), t[42] = F, t[43] = x, t[44] = Q) : Q = t[44];
|
|
185
187
|
let $;
|
|
186
188
|
return t[45] !== G || t[46] !== Z || t[47] !== Q ? ($ = /* @__PURE__ */ jsxs("div", {
|
|
187
|
-
ref:
|
|
189
|
+
ref: _,
|
|
188
190
|
className: "flex h-screen flex-col overflow-hidden",
|
|
189
191
|
children: [
|
|
190
192
|
G,
|
|
@@ -207,12 +209,12 @@ function PreviewEmptyState(n) {
|
|
|
207
209
|
r[0] === Symbol.for("react.memo_cache_sentinel") ? (m = { parentId: null }, r[0] = m) : m = r[0];
|
|
208
210
|
let h = useFilterWorkflows(void 0, m, "createdAt", "DESC", 0, d), g;
|
|
209
211
|
r[1] === h.data?.data ? g = r[2] : (g = h.data?.data ?? [], r[1] = h.data?.data, r[2] = g);
|
|
210
|
-
let _ = g,
|
|
212
|
+
let _ = g, se = h.data?.total ?? 0, y = _.length < se, x;
|
|
211
213
|
r[3] === o ? x = r[4] : (x = () => o(!0), r[3] = o, r[4] = x);
|
|
212
214
|
let C;
|
|
213
215
|
r[5] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ jsx(Play, { className: "h-3.5 w-3.5" }), r[5] = C) : C = r[5];
|
|
214
|
-
let
|
|
215
|
-
r[6] === x ?
|
|
216
|
+
let T;
|
|
217
|
+
r[6] === x ? T = r[7] : (T = /* @__PURE__ */ jsx("div", {
|
|
216
218
|
className: "flex justify-center",
|
|
217
219
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
218
220
|
variant: "secondary",
|
|
@@ -221,9 +223,9 @@ function PreviewEmptyState(n) {
|
|
|
221
223
|
onClick: x,
|
|
222
224
|
children: [C, "New Run"]
|
|
223
225
|
})
|
|
224
|
-
}), r[6] = x, r[7] =
|
|
225
|
-
let
|
|
226
|
-
r[8] !== h.isLoading || r[9] !== y || r[10] !== l || r[11] !== u || r[12] !== _ ? (
|
|
226
|
+
}), r[6] = x, r[7] = T);
|
|
227
|
+
let E;
|
|
228
|
+
r[8] !== h.isLoading || r[9] !== y || r[10] !== l || r[11] !== u || r[12] !== _ ? (E = h.isLoading && _.length === 0 ? /* @__PURE__ */ jsx("div", {
|
|
227
229
|
className: "flex justify-center py-4",
|
|
228
230
|
children: /* @__PURE__ */ jsx(Loader2, { className: "text-muted-foreground h-4 w-4 animate-spin" })
|
|
229
231
|
}) : _.length > 0 ? /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -246,23 +248,23 @@ function PreviewEmptyState(n) {
|
|
|
246
248
|
onClick: () => f(_temp2),
|
|
247
249
|
children: [/* @__PURE__ */ jsx(ChevronDown, { className: "h-3 w-3" }), "Load more"]
|
|
248
250
|
})
|
|
249
|
-
] }) : null, r[8] = h.isLoading, r[9] = y, r[10] = l, r[11] = u, r[12] = _, r[13] =
|
|
250
|
-
let E;
|
|
251
|
-
r[14] !== w || r[15] !== T ? (E = /* @__PURE__ */ jsxs("div", {
|
|
252
|
-
className: "w-full max-w-sm space-y-6 px-4",
|
|
253
|
-
children: [w, T]
|
|
254
|
-
}), r[14] = w, r[15] = T, r[16] = E) : E = r[16];
|
|
251
|
+
] }) : null, r[8] = h.isLoading, r[9] = y, r[10] = l, r[11] = u, r[12] = _, r[13] = E) : E = r[13];
|
|
255
252
|
let D;
|
|
256
|
-
r[
|
|
253
|
+
r[14] !== T || r[15] !== E ? (D = /* @__PURE__ */ jsxs("div", {
|
|
254
|
+
className: "w-full max-w-sm space-y-6 px-4",
|
|
255
|
+
children: [T, E]
|
|
256
|
+
}), r[14] = T, r[15] = E, r[16] = D) : D = r[16];
|
|
257
|
+
let O;
|
|
258
|
+
r[17] !== a || r[18] !== o || r[19] !== s ? (O = /* @__PURE__ */ jsx(NewRunDialog, {
|
|
257
259
|
open: a,
|
|
258
260
|
onOpenChange: o,
|
|
259
261
|
onSuccess: s
|
|
260
|
-
}), r[17] = a, r[18] = o, r[19] = s, r[20] =
|
|
261
|
-
let
|
|
262
|
-
return r[21] !==
|
|
262
|
+
}), r[17] = a, r[18] = o, r[19] = s, r[20] = O) : O = r[20];
|
|
263
|
+
let k;
|
|
264
|
+
return r[21] !== D || r[22] !== O ? (k = /* @__PURE__ */ jsxs("div", {
|
|
263
265
|
className: "flex h-screen flex-col items-center justify-center",
|
|
264
|
-
children: [
|
|
265
|
-
}), r[21] =
|
|
266
|
+
children: [D, O]
|
|
267
|
+
}), r[21] = D, r[22] = O, r[23] = k) : k = r[23], k;
|
|
266
268
|
}
|
|
267
269
|
function _temp2(e) {
|
|
268
270
|
return e + 5;
|
|
@@ -326,11 +328,11 @@ function LogLine(e) {
|
|
|
326
328
|
}), t[9] = l, t[10] = d, t[11] = p, t[12] = m) : m = t[12], m;
|
|
327
329
|
}
|
|
328
330
|
function EmbedLogsContent() {
|
|
329
|
-
let e = c(21), t = useRef(null),
|
|
330
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
331
|
+
let e = c(21), t = config_default.environment.url, n = useRef(null), r;
|
|
332
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
331
333
|
queryKey: ["remote-agent-app-logs"],
|
|
332
334
|
queryFn: async () => {
|
|
333
|
-
let e = await fetch(
|
|
335
|
+
let e = await fetch(`${t}/api/v1/app/logs?lines=200`, { credentials: "include" });
|
|
334
336
|
if (!e.ok) {
|
|
335
337
|
let t = await e.text();
|
|
336
338
|
throw Error(`Failed to fetch logs (${e.status}): ${t}`);
|
|
@@ -338,51 +340,51 @@ function EmbedLogsContent() {
|
|
|
338
340
|
return await e.json();
|
|
339
341
|
},
|
|
340
342
|
refetchInterval: 5e3
|
|
341
|
-
}, e[0] =
|
|
342
|
-
let
|
|
343
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
344
|
-
|
|
345
|
-
}, e[1] =
|
|
346
|
-
let a;
|
|
347
|
-
e[2] === r.data ? a = e[3] : (a = [r.data], e[2] = r.data, e[3] = a), useEffect(i, a);
|
|
343
|
+
}, e[0] = r) : r = e[0];
|
|
344
|
+
let i = useQuery(r), a;
|
|
345
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (a = () => {
|
|
346
|
+
n.current?.scrollIntoView({ behavior: "smooth" });
|
|
347
|
+
}, e[1] = a) : a = e[1];
|
|
348
348
|
let o;
|
|
349
|
-
|
|
349
|
+
e[2] === i.data ? o = e[3] : (o = [i.data], e[2] = i.data, e[3] = o), useEffect(a, o);
|
|
350
|
+
let s;
|
|
351
|
+
if (e[4] !== i.data) {
|
|
350
352
|
let t = [];
|
|
351
|
-
|
|
352
|
-
} else
|
|
353
|
-
let
|
|
354
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
353
|
+
i.data?.stdout && t.push(i.data.stdout), i.data?.stderr && t.push(i.data.stderr), s = t.join("\n").split("\n").filter(_temp3), e[4] = i.data, e[5] = s;
|
|
354
|
+
} else s = e[5];
|
|
355
|
+
let l = s, u;
|
|
356
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ jsx("span", {
|
|
355
357
|
className: "text-xs font-medium text-muted-foreground",
|
|
356
358
|
children: "Application Logs"
|
|
357
|
-
}), e[6] =
|
|
358
|
-
let
|
|
359
|
-
e[7] ===
|
|
360
|
-
let
|
|
361
|
-
e[9] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
362
|
-
let
|
|
363
|
-
e[10] !==
|
|
359
|
+
}), e[6] = u) : u = e[6];
|
|
360
|
+
let d;
|
|
361
|
+
e[7] === i ? d = e[8] : (d = () => void i.refetch(), e[7] = i, e[8] = d);
|
|
362
|
+
let f = `text-muted-foreground hover:text-foreground rounded-md p-1 transition-colors hover:cursor-pointer ${i.isFetching ? "animate-spin" : ""}`, p;
|
|
363
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ jsx(RefreshCw, { className: "h-3 w-3" }), e[9] = p) : p = e[9];
|
|
364
|
+
let h;
|
|
365
|
+
e[10] !== d || e[11] !== f ? (h = /* @__PURE__ */ jsxs("div", {
|
|
364
366
|
className: "flex h-9 shrink-0 items-center justify-between border-b bg-muted/30 px-3",
|
|
365
|
-
children: [
|
|
366
|
-
onClick:
|
|
367
|
-
className:
|
|
368
|
-
children:
|
|
367
|
+
children: [u, /* @__PURE__ */ jsx("button", {
|
|
368
|
+
onClick: d,
|
|
369
|
+
className: f,
|
|
370
|
+
children: p
|
|
369
371
|
})]
|
|
370
|
-
}), e[10] =
|
|
371
|
-
let
|
|
372
|
-
e[13] !==
|
|
372
|
+
}), e[10] = d, e[11] = f, e[12] = h) : h = e[12];
|
|
373
|
+
let _;
|
|
374
|
+
e[13] !== l || e[14] !== i.data || e[15] !== i.error || e[16] !== i.isLoading ? (_ = /* @__PURE__ */ jsx("div", {
|
|
373
375
|
className: "flex-1 overflow-auto bg-background",
|
|
374
|
-
children:
|
|
376
|
+
children: i.isLoading && !i.data ? /* @__PURE__ */ jsx("div", {
|
|
375
377
|
className: "flex justify-center py-8",
|
|
376
378
|
children: /* @__PURE__ */ jsx(Loader2, { className: "text-muted-foreground h-4 w-4 animate-spin" })
|
|
377
|
-
}) :
|
|
379
|
+
}) : i.error ? /* @__PURE__ */ jsx("div", {
|
|
378
380
|
className: "px-4 py-3",
|
|
379
381
|
children: /* @__PURE__ */ jsxs("p", {
|
|
380
382
|
className: "text-sm text-destructive",
|
|
381
|
-
children: ["Error: ",
|
|
383
|
+
children: ["Error: ", i.error.message]
|
|
382
384
|
})
|
|
383
|
-
}) :
|
|
385
|
+
}) : l.length > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
384
386
|
className: "font-mono",
|
|
385
|
-
children: [
|
|
387
|
+
children: [l.map(_temp4), /* @__PURE__ */ jsx("div", { ref: n })]
|
|
386
388
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
387
389
|
className: "flex flex-col items-center justify-center gap-2 py-8 text-muted-foreground",
|
|
388
390
|
children: [/* @__PURE__ */ jsx(ScrollText, { className: "h-5 w-5" }), /* @__PURE__ */ jsx("span", {
|
|
@@ -390,12 +392,12 @@ function EmbedLogsContent() {
|
|
|
390
392
|
children: "No logs available"
|
|
391
393
|
})]
|
|
392
394
|
})
|
|
393
|
-
}), e[13] =
|
|
394
|
-
let
|
|
395
|
-
return e[18] !==
|
|
395
|
+
}), e[13] = l, e[14] = i.data, e[15] = i.error, e[16] = i.isLoading, e[17] = _) : _ = e[17];
|
|
396
|
+
let v;
|
|
397
|
+
return e[18] !== h || e[19] !== _ ? (v = /* @__PURE__ */ jsxs("div", {
|
|
396
398
|
className: "flex h-full flex-col",
|
|
397
|
-
children: [
|
|
398
|
-
}), e[18] =
|
|
399
|
+
children: [h, _]
|
|
400
|
+
}), e[18] = h, e[19] = _, e[20] = v) : v = e[20], v;
|
|
399
401
|
}
|
|
400
402
|
function _temp4(e, t) {
|
|
401
403
|
return /* @__PURE__ */ jsx(LogLine, {
|