@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
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
var StreamImpl = class e {
|
|
2
|
-
constructor(e, r) {
|
|
3
|
-
this.startFn = e, this.nextFn = r;
|
|
4
|
-
}
|
|
5
|
-
iterator() {
|
|
6
|
-
let e = {
|
|
7
|
-
state: this.startFn(),
|
|
8
|
-
next: () => this.nextFn(e.state),
|
|
9
|
-
[Symbol.iterator]: () => e
|
|
10
|
-
};
|
|
11
|
-
return e;
|
|
12
|
-
}
|
|
13
|
-
[Symbol.iterator]() {
|
|
14
|
-
return this.iterator();
|
|
15
|
-
}
|
|
16
|
-
isEmpty() {
|
|
17
|
-
return !!this.iterator().next().done;
|
|
18
|
-
}
|
|
19
|
-
count() {
|
|
20
|
-
let e = this.iterator(), r = 0, i = e.next();
|
|
21
|
-
for (; !i.done;) r++, i = e.next();
|
|
22
|
-
return r;
|
|
23
|
-
}
|
|
24
|
-
toArray() {
|
|
25
|
-
let e = [], r = this.iterator(), i;
|
|
26
|
-
do
|
|
27
|
-
i = r.next(), i.value !== void 0 && e.push(i.value);
|
|
28
|
-
while (!i.done);
|
|
29
|
-
return e;
|
|
30
|
-
}
|
|
31
|
-
toSet() {
|
|
32
|
-
return new Set(this);
|
|
33
|
-
}
|
|
34
|
-
toMap(e, r) {
|
|
35
|
-
let i = this.map((i) => [e ? e(i) : i, r ? r(i) : i]);
|
|
36
|
-
return new Map(i);
|
|
37
|
-
}
|
|
38
|
-
toString() {
|
|
39
|
-
return this.join();
|
|
40
|
-
}
|
|
41
|
-
concat(r) {
|
|
42
|
-
return new e(() => ({
|
|
43
|
-
first: this.startFn(),
|
|
44
|
-
firstDone: !1,
|
|
45
|
-
iterator: r[Symbol.iterator]()
|
|
46
|
-
}), (e) => {
|
|
47
|
-
let r;
|
|
48
|
-
if (!e.firstDone) {
|
|
49
|
-
do
|
|
50
|
-
if (r = this.nextFn(e.first), !r.done) return r;
|
|
51
|
-
while (!r.done);
|
|
52
|
-
e.firstDone = !0;
|
|
53
|
-
}
|
|
54
|
-
do
|
|
55
|
-
if (r = e.iterator.next(), !r.done) return r;
|
|
56
|
-
while (!r.done);
|
|
57
|
-
return DONE_RESULT;
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
join(e = ",") {
|
|
61
|
-
let i = this.iterator(), a = "", o, s = !1;
|
|
62
|
-
do
|
|
63
|
-
o = i.next(), o.done || (s && (a += e), a += toString(o.value)), s = !0;
|
|
64
|
-
while (!o.done);
|
|
65
|
-
return a;
|
|
66
|
-
}
|
|
67
|
-
indexOf(e, r = 0) {
|
|
68
|
-
let i = this.iterator(), a = 0, o = i.next();
|
|
69
|
-
for (; !o.done;) {
|
|
70
|
-
if (a >= r && o.value === e) return a;
|
|
71
|
-
o = i.next(), a++;
|
|
72
|
-
}
|
|
73
|
-
return -1;
|
|
74
|
-
}
|
|
75
|
-
every(e) {
|
|
76
|
-
let r = this.iterator(), i = r.next();
|
|
77
|
-
for (; !i.done;) {
|
|
78
|
-
if (!e(i.value)) return !1;
|
|
79
|
-
i = r.next();
|
|
80
|
-
}
|
|
81
|
-
return !0;
|
|
82
|
-
}
|
|
83
|
-
some(e) {
|
|
84
|
-
let r = this.iterator(), i = r.next();
|
|
85
|
-
for (; !i.done;) {
|
|
86
|
-
if (e(i.value)) return !0;
|
|
87
|
-
i = r.next();
|
|
88
|
-
}
|
|
89
|
-
return !1;
|
|
90
|
-
}
|
|
91
|
-
forEach(e) {
|
|
92
|
-
let r = this.iterator(), i = 0, a = r.next();
|
|
93
|
-
for (; !a.done;) e(a.value, i), a = r.next(), i++;
|
|
94
|
-
}
|
|
95
|
-
map(r) {
|
|
96
|
-
return new e(this.startFn, (e) => {
|
|
97
|
-
let { done: i, value: a } = this.nextFn(e);
|
|
98
|
-
return i ? DONE_RESULT : {
|
|
99
|
-
done: !1,
|
|
100
|
-
value: r(a)
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
filter(r) {
|
|
105
|
-
return new e(this.startFn, (e) => {
|
|
106
|
-
let i;
|
|
107
|
-
do
|
|
108
|
-
if (i = this.nextFn(e), !i.done && r(i.value)) return i;
|
|
109
|
-
while (!i.done);
|
|
110
|
-
return DONE_RESULT;
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
nonNullable() {
|
|
114
|
-
return this.filter((e) => e != null);
|
|
115
|
-
}
|
|
116
|
-
reduce(e, r) {
|
|
117
|
-
let i = this.iterator(), a = r, o = i.next();
|
|
118
|
-
for (; !o.done;) a = a === void 0 ? o.value : e(a, o.value), o = i.next();
|
|
119
|
-
return a;
|
|
120
|
-
}
|
|
121
|
-
reduceRight(e, r) {
|
|
122
|
-
return this.recursiveReduce(this.iterator(), e, r);
|
|
123
|
-
}
|
|
124
|
-
recursiveReduce(e, r, i) {
|
|
125
|
-
let a = e.next();
|
|
126
|
-
if (a.done) return i;
|
|
127
|
-
let o = this.recursiveReduce(e, r, i);
|
|
128
|
-
return o === void 0 ? a.value : r(o, a.value);
|
|
129
|
-
}
|
|
130
|
-
find(e) {
|
|
131
|
-
let r = this.iterator(), i = r.next();
|
|
132
|
-
for (; !i.done;) {
|
|
133
|
-
if (e(i.value)) return i.value;
|
|
134
|
-
i = r.next();
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
findIndex(e) {
|
|
138
|
-
let r = this.iterator(), i = 0, a = r.next();
|
|
139
|
-
for (; !a.done;) {
|
|
140
|
-
if (e(a.value)) return i;
|
|
141
|
-
a = r.next(), i++;
|
|
142
|
-
}
|
|
143
|
-
return -1;
|
|
144
|
-
}
|
|
145
|
-
includes(e) {
|
|
146
|
-
let r = this.iterator(), i = r.next();
|
|
147
|
-
for (; !i.done;) {
|
|
148
|
-
if (i.value === e) return !0;
|
|
149
|
-
i = r.next();
|
|
150
|
-
}
|
|
151
|
-
return !1;
|
|
152
|
-
}
|
|
153
|
-
flatMap(r) {
|
|
154
|
-
return new e(() => ({ this: this.startFn() }), (e) => {
|
|
155
|
-
do {
|
|
156
|
-
if (e.iterator) {
|
|
157
|
-
let r = e.iterator.next();
|
|
158
|
-
if (r.done) e.iterator = void 0;
|
|
159
|
-
else return r;
|
|
160
|
-
}
|
|
161
|
-
let { done: a, value: o } = this.nextFn(e.this);
|
|
162
|
-
if (!a) {
|
|
163
|
-
let a = r(o);
|
|
164
|
-
if (isIterable(a)) e.iterator = a[Symbol.iterator]();
|
|
165
|
-
else return {
|
|
166
|
-
done: !1,
|
|
167
|
-
value: a
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
} while (e.iterator);
|
|
171
|
-
return DONE_RESULT;
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
flat(r) {
|
|
175
|
-
if (r === void 0 && (r = 1), r <= 0) return this;
|
|
176
|
-
let a = r > 1 ? this.flat(r - 1) : this;
|
|
177
|
-
return new e(() => ({ this: a.startFn() }), (e) => {
|
|
178
|
-
do {
|
|
179
|
-
if (e.iterator) {
|
|
180
|
-
let r = e.iterator.next();
|
|
181
|
-
if (r.done) e.iterator = void 0;
|
|
182
|
-
else return r;
|
|
183
|
-
}
|
|
184
|
-
let { done: r, value: o } = a.nextFn(e.this);
|
|
185
|
-
if (!r) if (isIterable(o)) e.iterator = o[Symbol.iterator]();
|
|
186
|
-
else return {
|
|
187
|
-
done: !1,
|
|
188
|
-
value: o
|
|
189
|
-
};
|
|
190
|
-
} while (e.iterator);
|
|
191
|
-
return DONE_RESULT;
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
head() {
|
|
195
|
-
let e = this.iterator().next();
|
|
196
|
-
if (!e.done) return e.value;
|
|
197
|
-
}
|
|
198
|
-
tail(r = 1) {
|
|
199
|
-
return new e(() => {
|
|
200
|
-
let e = this.startFn();
|
|
201
|
-
for (let i = 0; i < r; i++) if (this.nextFn(e).done) return e;
|
|
202
|
-
return e;
|
|
203
|
-
}, this.nextFn);
|
|
204
|
-
}
|
|
205
|
-
limit(r) {
|
|
206
|
-
return new e(() => ({
|
|
207
|
-
size: 0,
|
|
208
|
-
state: this.startFn()
|
|
209
|
-
}), (e) => (e.size++, e.size > r ? DONE_RESULT : this.nextFn(e.state)));
|
|
210
|
-
}
|
|
211
|
-
distinct(r) {
|
|
212
|
-
return new e(() => ({
|
|
213
|
-
set: /* @__PURE__ */ new Set(),
|
|
214
|
-
internalState: this.startFn()
|
|
215
|
-
}), (e) => {
|
|
216
|
-
let i;
|
|
217
|
-
do
|
|
218
|
-
if (i = this.nextFn(e.internalState), !i.done) {
|
|
219
|
-
let a = r ? r(i.value) : i.value;
|
|
220
|
-
if (!e.set.has(a)) return e.set.add(a), i;
|
|
221
|
-
}
|
|
222
|
-
while (!i.done);
|
|
223
|
-
return DONE_RESULT;
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
exclude(e, r) {
|
|
227
|
-
let i = /* @__PURE__ */ new Set();
|
|
228
|
-
for (let a of e) {
|
|
229
|
-
let e = r ? r(a) : a;
|
|
230
|
-
i.add(e);
|
|
231
|
-
}
|
|
232
|
-
return this.filter((e) => {
|
|
233
|
-
let a = r ? r(e) : e;
|
|
234
|
-
return !i.has(a);
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
function toString(e) {
|
|
239
|
-
return typeof e == "string" ? e : e === void 0 ? "undefined" : typeof e.toString == "function" ? e.toString() : Object.prototype.toString.call(e);
|
|
240
|
-
}
|
|
241
|
-
function isIterable(e) {
|
|
242
|
-
return !!e && typeof e[Symbol.iterator] == "function";
|
|
243
|
-
}
|
|
244
|
-
const EMPTY_STREAM = new StreamImpl(() => void 0, () => DONE_RESULT), DONE_RESULT = Object.freeze({
|
|
245
|
-
done: !0,
|
|
246
|
-
value: void 0
|
|
247
|
-
});
|
|
248
|
-
function stream(...r) {
|
|
249
|
-
if (r.length === 1) {
|
|
250
|
-
let a = r[0];
|
|
251
|
-
if (a instanceof StreamImpl) return a;
|
|
252
|
-
if (isIterable(a)) return new StreamImpl(() => a[Symbol.iterator](), (e) => e.next());
|
|
253
|
-
if (typeof a.length == "number") return new StreamImpl(() => ({ index: 0 }), (e) => e.index < a.length ? {
|
|
254
|
-
done: !1,
|
|
255
|
-
value: a[e.index++]
|
|
256
|
-
} : DONE_RESULT);
|
|
257
|
-
}
|
|
258
|
-
return r.length > 1 ? new StreamImpl(() => ({
|
|
259
|
-
collIndex: 0,
|
|
260
|
-
arrIndex: 0
|
|
261
|
-
}), (e) => {
|
|
262
|
-
do {
|
|
263
|
-
if (e.iterator) {
|
|
264
|
-
let r = e.iterator.next();
|
|
265
|
-
if (!r.done) return r;
|
|
266
|
-
e.iterator = void 0;
|
|
267
|
-
}
|
|
268
|
-
if (e.array) {
|
|
269
|
-
if (e.arrIndex < e.array.length) return {
|
|
270
|
-
done: !1,
|
|
271
|
-
value: e.array[e.arrIndex++]
|
|
272
|
-
};
|
|
273
|
-
e.array = void 0, e.arrIndex = 0;
|
|
274
|
-
}
|
|
275
|
-
if (e.collIndex < r.length) {
|
|
276
|
-
let a = r[e.collIndex++];
|
|
277
|
-
isIterable(a) ? e.iterator = a[Symbol.iterator]() : a && typeof a.length == "number" && (e.array = a);
|
|
278
|
-
}
|
|
279
|
-
} while (e.iterator || e.array || e.collIndex < r.length);
|
|
280
|
-
return DONE_RESULT;
|
|
281
|
-
}) : EMPTY_STREAM;
|
|
282
|
-
}
|
|
283
|
-
var TreeStreamImpl = class extends StreamImpl {
|
|
284
|
-
constructor(e, r, i) {
|
|
285
|
-
super(() => ({
|
|
286
|
-
iterators: i?.includeRoot ? [[e][Symbol.iterator]()] : [r(e)[Symbol.iterator]()],
|
|
287
|
-
pruned: !1
|
|
288
|
-
}), (e) => {
|
|
289
|
-
for (e.pruned &&= (e.iterators.pop(), !1); e.iterators.length > 0;) {
|
|
290
|
-
let i = e.iterators[e.iterators.length - 1].next();
|
|
291
|
-
if (i.done) e.iterators.pop();
|
|
292
|
-
else return e.iterators.push(r(i.value)[Symbol.iterator]()), i;
|
|
293
|
-
}
|
|
294
|
-
return DONE_RESULT;
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
iterator() {
|
|
298
|
-
let e = {
|
|
299
|
-
state: this.startFn(),
|
|
300
|
-
next: () => this.nextFn(e.state),
|
|
301
|
-
prune: () => {
|
|
302
|
-
e.state.pruned = !0;
|
|
303
|
-
},
|
|
304
|
-
[Symbol.iterator]: () => e
|
|
305
|
-
};
|
|
306
|
-
return e;
|
|
307
|
-
}
|
|
308
|
-
}, Reduction;
|
|
309
|
-
(function(e) {
|
|
310
|
-
function r(e) {
|
|
311
|
-
return e.reduce((e, r) => e + r, 0);
|
|
312
|
-
}
|
|
313
|
-
e.sum = r;
|
|
314
|
-
function i(e) {
|
|
315
|
-
return e.reduce((e, r) => e * r, 0);
|
|
316
|
-
}
|
|
317
|
-
e.product = i;
|
|
318
|
-
function a(e) {
|
|
319
|
-
return e.reduce((e, r) => Math.min(e, r));
|
|
320
|
-
}
|
|
321
|
-
e.min = a;
|
|
322
|
-
function o(e) {
|
|
323
|
-
return e.reduce((e, r) => Math.max(e, r));
|
|
324
|
-
}
|
|
325
|
-
e.max = o;
|
|
326
|
-
})(Reduction ||= {});
|
|
327
|
-
export { DONE_RESULT, EMPTY_STREAM, Reduction, StreamImpl, TreeStreamImpl, stream };
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { URI, Utils } from "../../../vscode-uri/lib/esm/index.js";
|
|
2
|
-
var UriUtils;
|
|
3
|
-
(function(n) {
|
|
4
|
-
n.basename = Utils.basename, n.dirname = Utils.dirname, n.extname = Utils.extname, n.joinPath = Utils.joinPath, n.resolvePath = Utils.resolvePath;
|
|
5
|
-
let r = typeof process == "object" && process?.platform === "win32";
|
|
6
|
-
function i(e, t) {
|
|
7
|
-
return e?.toString() === t?.toString();
|
|
8
|
-
}
|
|
9
|
-
n.equals = i;
|
|
10
|
-
function a(t, n) {
|
|
11
|
-
let i = typeof t == "string" ? URI.parse(t).path : t.path, a = typeof n == "string" ? URI.parse(n).path : n.path, o = i.split("/").filter((e) => e.length > 0), s = a.split("/").filter((e) => e.length > 0);
|
|
12
|
-
if (r) {
|
|
13
|
-
let e = /^[A-Z]:$/;
|
|
14
|
-
if (o[0] && e.test(o[0]) && (o[0] = o[0].toLowerCase()), s[0] && e.test(s[0]) && (s[0] = s[0].toLowerCase()), o[0] !== s[0]) return a.substring(1);
|
|
15
|
-
}
|
|
16
|
-
let c = 0;
|
|
17
|
-
for (; c < o.length && o[c] === s[c]; c++);
|
|
18
|
-
return "../".repeat(o.length - c) + s.slice(c).join("/");
|
|
19
|
-
}
|
|
20
|
-
n.relative = a;
|
|
21
|
-
function o(t) {
|
|
22
|
-
return URI.parse(t.toString()).toString();
|
|
23
|
-
}
|
|
24
|
-
n.normalize = o;
|
|
25
|
-
function s(e, t) {
|
|
26
|
-
let n = typeof e == "string" ? e : e.path, r = typeof t == "string" ? t : t.path;
|
|
27
|
-
return r.charAt(r.length - 1) === "/" && (r = r.slice(0, -1)), n.charAt(n.length - 1) === "/" && (n = n.slice(0, -1)), r === n ? !0 : r.length < n.length || r.charAt(n.length) !== "/" ? !1 : r.startsWith(n);
|
|
28
|
-
}
|
|
29
|
-
n.contains = s;
|
|
30
|
-
})(UriUtils ||= {});
|
|
31
|
-
var UriTrie = class {
|
|
32
|
-
constructor() {
|
|
33
|
-
this.root = {
|
|
34
|
-
name: "",
|
|
35
|
-
children: /* @__PURE__ */ new Map()
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
normalizeUri(e) {
|
|
39
|
-
return UriUtils.normalize(e);
|
|
40
|
-
}
|
|
41
|
-
clear() {
|
|
42
|
-
this.root.children.clear();
|
|
43
|
-
}
|
|
44
|
-
insert(e, t) {
|
|
45
|
-
let n = this.getNode(this.normalizeUri(e), !0);
|
|
46
|
-
n.element = t;
|
|
47
|
-
}
|
|
48
|
-
delete(e) {
|
|
49
|
-
let t = this.getNode(this.normalizeUri(e), !1);
|
|
50
|
-
t?.parent && t.parent.children.delete(t.name);
|
|
51
|
-
}
|
|
52
|
-
has(e) {
|
|
53
|
-
return this.getNode(this.normalizeUri(e), !1)?.element !== void 0;
|
|
54
|
-
}
|
|
55
|
-
hasNode(e) {
|
|
56
|
-
return this.getNode(this.normalizeUri(e), !1) !== void 0;
|
|
57
|
-
}
|
|
58
|
-
find(e) {
|
|
59
|
-
return this.getNode(this.normalizeUri(e), !1)?.element;
|
|
60
|
-
}
|
|
61
|
-
findNode(t) {
|
|
62
|
-
let r = this.normalizeUri(t), i = this.getNode(r, !1);
|
|
63
|
-
if (i) return {
|
|
64
|
-
name: i.name,
|
|
65
|
-
uri: UriUtils.joinPath(URI.parse(r), i.name).toString(),
|
|
66
|
-
element: i.element
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
findChildren(t) {
|
|
70
|
-
let r = this.normalizeUri(t), i = this.getNode(r, !1);
|
|
71
|
-
return i ? Array.from(i.children.values()).map((t) => ({
|
|
72
|
-
name: t.name,
|
|
73
|
-
uri: UriUtils.joinPath(URI.parse(r), t.name).toString(),
|
|
74
|
-
element: t.element
|
|
75
|
-
})) : [];
|
|
76
|
-
}
|
|
77
|
-
all() {
|
|
78
|
-
return this.collectValues(this.root);
|
|
79
|
-
}
|
|
80
|
-
findAll(e) {
|
|
81
|
-
let t = this.getNode(UriUtils.normalize(e), !1);
|
|
82
|
-
return t ? this.collectValues(t) : [];
|
|
83
|
-
}
|
|
84
|
-
getNode(e, t) {
|
|
85
|
-
let n = e.split("/");
|
|
86
|
-
e.charAt(e.length - 1) === "/" && n.pop();
|
|
87
|
-
let r = this.root;
|
|
88
|
-
for (let e of n) {
|
|
89
|
-
let n = r.children.get(e);
|
|
90
|
-
if (!n) if (t) n = {
|
|
91
|
-
name: e,
|
|
92
|
-
children: /* @__PURE__ */ new Map(),
|
|
93
|
-
parent: r
|
|
94
|
-
}, r.children.set(e, n);
|
|
95
|
-
else return;
|
|
96
|
-
r = n;
|
|
97
|
-
}
|
|
98
|
-
return r;
|
|
99
|
-
}
|
|
100
|
-
collectValues(e) {
|
|
101
|
-
let t = [];
|
|
102
|
-
e.element && t.push(e.element);
|
|
103
|
-
for (let n of e.children.values()) t.push(...this.collectValues(n));
|
|
104
|
-
return t;
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
export { UriTrie, UriUtils };
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { streamAst } from "../utils/ast-utils.js";
|
|
2
|
-
import { tokenToRange } from "../utils/cst-utils.js";
|
|
3
|
-
import { findNodeForKeyword, findNodeForProperty } from "../utils/grammar-utils.js";
|
|
4
|
-
import { cancellation_exports } from "../utils/cancellation.js";
|
|
5
|
-
import { interruptAndCheck, isOperationCancelled } from "../utils/promise-utils.js";
|
|
6
|
-
import { diagnosticData } from "./validation-registry.js";
|
|
7
|
-
const VALIDATE_EACH_NODE = Object.freeze({
|
|
8
|
-
validateNode: !0,
|
|
9
|
-
validateChildren: !0
|
|
10
|
-
});
|
|
11
|
-
var DefaultDocumentValidator = class {
|
|
12
|
-
constructor(e) {
|
|
13
|
-
this.validationRegistry = e.validation.ValidationRegistry, this.metadata = e.LanguageMetaData, this.profiler = e.shared.profilers.LangiumProfiler, this.languageId = e.LanguageMetaData.languageId;
|
|
14
|
-
}
|
|
15
|
-
async validateDocument(e, s = {}, c = cancellation_exports.CancellationToken.None) {
|
|
16
|
-
let l = e.parseResult, p = [];
|
|
17
|
-
if (await interruptAndCheck(c), (!s.categories || s.categories.includes("built-in")) && (this.processLexingErrors(l, p, s), s.stopAfterLexingErrors && p.some((e) => e.data?.code === DocumentValidator.LexingError) || (this.processParsingErrors(l, p, s), s.stopAfterParsingErrors && p.some((e) => e.data?.code === DocumentValidator.ParsingError)) || (this.processLinkingErrors(e, p, s), s.stopAfterLinkingErrors && p.some((e) => e.data?.code === DocumentValidator.LinkingError)))) return p;
|
|
18
|
-
try {
|
|
19
|
-
p.push(...await this.validateAst(l.value, s, c));
|
|
20
|
-
} catch (e) {
|
|
21
|
-
if (isOperationCancelled(e)) throw e;
|
|
22
|
-
console.error("An error occurred during validation:", e);
|
|
23
|
-
}
|
|
24
|
-
return await interruptAndCheck(c), p;
|
|
25
|
-
}
|
|
26
|
-
processLexingErrors(e, s, c) {
|
|
27
|
-
let l = [...e.lexerErrors, ...e.lexerReport?.diagnostics ?? []];
|
|
28
|
-
for (let e of l) {
|
|
29
|
-
let c = e.severity ?? "error", l = {
|
|
30
|
-
severity: toDiagnosticSeverity(c),
|
|
31
|
-
range: {
|
|
32
|
-
start: {
|
|
33
|
-
line: e.line - 1,
|
|
34
|
-
character: e.column - 1
|
|
35
|
-
},
|
|
36
|
-
end: {
|
|
37
|
-
line: e.line - 1,
|
|
38
|
-
character: e.column + e.length - 1
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
message: e.message,
|
|
42
|
-
data: toDiagnosticData(c),
|
|
43
|
-
source: this.getSource()
|
|
44
|
-
};
|
|
45
|
-
s.push(l);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
processParsingErrors(e, c, l) {
|
|
49
|
-
for (let l of e.parserErrors) {
|
|
50
|
-
let e;
|
|
51
|
-
if (isNaN(l.token.startOffset)) {
|
|
52
|
-
if ("previousToken" in l) {
|
|
53
|
-
let s = l.previousToken;
|
|
54
|
-
if (isNaN(s.startOffset)) {
|
|
55
|
-
let s = {
|
|
56
|
-
line: 0,
|
|
57
|
-
character: 0
|
|
58
|
-
};
|
|
59
|
-
e = {
|
|
60
|
-
start: s,
|
|
61
|
-
end: s
|
|
62
|
-
};
|
|
63
|
-
} else {
|
|
64
|
-
let c = {
|
|
65
|
-
line: s.endLine - 1,
|
|
66
|
-
character: s.endColumn
|
|
67
|
-
};
|
|
68
|
-
e = {
|
|
69
|
-
start: c,
|
|
70
|
-
end: c
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
} else e = tokenToRange(l.token);
|
|
75
|
-
if (e) {
|
|
76
|
-
let s = {
|
|
77
|
-
severity: toDiagnosticSeverity("error"),
|
|
78
|
-
range: e,
|
|
79
|
-
message: l.message,
|
|
80
|
-
data: diagnosticData(DocumentValidator.ParsingError),
|
|
81
|
-
source: this.getSource()
|
|
82
|
-
};
|
|
83
|
-
c.push(s);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
processLinkingErrors(e, s, c) {
|
|
88
|
-
for (let c of e.references) {
|
|
89
|
-
let e = c.error;
|
|
90
|
-
if (e) {
|
|
91
|
-
let l = {
|
|
92
|
-
node: e.info.container,
|
|
93
|
-
range: c.$refNode?.range,
|
|
94
|
-
property: e.info.property,
|
|
95
|
-
index: e.info.index,
|
|
96
|
-
data: {
|
|
97
|
-
code: DocumentValidator.LinkingError,
|
|
98
|
-
containerType: e.info.container.$type,
|
|
99
|
-
property: e.info.property,
|
|
100
|
-
refText: e.info.reference.$refText
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
s.push(this.toDiagnostic("error", e.message, l));
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
async validateAst(e, s, c = cancellation_exports.CancellationToken.None) {
|
|
108
|
-
let l = [], d = (e, s, c) => {
|
|
109
|
-
l.push(this.toDiagnostic(e, s, c));
|
|
110
|
-
};
|
|
111
|
-
return await this.validateAstBefore(e, s, d, c), await this.validateAstNodes(e, s, d, c), await this.validateAstAfter(e, s, d, c), l;
|
|
112
|
-
}
|
|
113
|
-
async validateAstBefore(e, s, c, l = cancellation_exports.CancellationToken.None) {
|
|
114
|
-
let f = this.validationRegistry.checksBefore;
|
|
115
|
-
for (let u of f) await interruptAndCheck(l), await u(e, c, s.categories ?? [], l);
|
|
116
|
-
}
|
|
117
|
-
async validateAstNodes(s, c, l, f = cancellation_exports.CancellationToken.None) {
|
|
118
|
-
if (this.profiler?.isActive("validating")) {
|
|
119
|
-
let u = this.profiler.createTask("validating", this.languageId);
|
|
120
|
-
u.start();
|
|
121
|
-
try {
|
|
122
|
-
let d = streamAst(s).iterator();
|
|
123
|
-
for (let e of d) {
|
|
124
|
-
u.startSubTask(e.$type);
|
|
125
|
-
let s = this.validateSingleNodeOptions(e, c);
|
|
126
|
-
if (s.validateNode) try {
|
|
127
|
-
let s = this.validationRegistry.getChecks(e.$type, c.categories);
|
|
128
|
-
for (let c of s) await c(e, l, f);
|
|
129
|
-
} finally {
|
|
130
|
-
u.stopSubTask(e.$type);
|
|
131
|
-
}
|
|
132
|
-
s.validateChildren || d.prune();
|
|
133
|
-
}
|
|
134
|
-
} finally {
|
|
135
|
-
u.stop();
|
|
136
|
-
}
|
|
137
|
-
} else {
|
|
138
|
-
let u = streamAst(s).iterator();
|
|
139
|
-
for (let e of u) {
|
|
140
|
-
await interruptAndCheck(f);
|
|
141
|
-
let s = this.validateSingleNodeOptions(e, c);
|
|
142
|
-
if (s.validateNode) {
|
|
143
|
-
let s = this.validationRegistry.getChecks(e.$type, c.categories);
|
|
144
|
-
for (let c of s) await c(e, l, f);
|
|
145
|
-
}
|
|
146
|
-
s.validateChildren || u.prune();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
validateSingleNodeOptions(e, s) {
|
|
151
|
-
return VALIDATE_EACH_NODE;
|
|
152
|
-
}
|
|
153
|
-
async validateAstAfter(e, s, c, l = cancellation_exports.CancellationToken.None) {
|
|
154
|
-
let f = this.validationRegistry.checksAfter;
|
|
155
|
-
for (let u of f) await interruptAndCheck(l), await u(e, c, s.categories ?? [], l);
|
|
156
|
-
}
|
|
157
|
-
toDiagnostic(e, s, c) {
|
|
158
|
-
return {
|
|
159
|
-
message: s,
|
|
160
|
-
range: getDiagnosticRange(c),
|
|
161
|
-
severity: toDiagnosticSeverity(e),
|
|
162
|
-
code: c.code,
|
|
163
|
-
codeDescription: c.codeDescription,
|
|
164
|
-
tags: c.tags,
|
|
165
|
-
relatedInformation: c.relatedInformation,
|
|
166
|
-
data: c.data,
|
|
167
|
-
source: this.getSource()
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
getSource() {
|
|
171
|
-
return this.metadata.languageId;
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
function getDiagnosticRange(e) {
|
|
175
|
-
if (e.range) return e.range;
|
|
176
|
-
let s;
|
|
177
|
-
return typeof e.property == "string" ? s = findNodeForProperty(e.node.$cstNode, e.property, e.index) : typeof e.keyword == "string" && (s = findNodeForKeyword(e.node.$cstNode, e.keyword, e.index)), s ??= e.node.$cstNode, s ? s.range : {
|
|
178
|
-
start: {
|
|
179
|
-
line: 0,
|
|
180
|
-
character: 0
|
|
181
|
-
},
|
|
182
|
-
end: {
|
|
183
|
-
line: 0,
|
|
184
|
-
character: 0
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
function toDiagnosticSeverity(e) {
|
|
189
|
-
switch (e) {
|
|
190
|
-
case "error": return 1;
|
|
191
|
-
case "warning": return 2;
|
|
192
|
-
case "info": return 3;
|
|
193
|
-
case "hint": return 4;
|
|
194
|
-
default: throw Error("Invalid diagnostic severity: " + e);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function toDiagnosticData(e) {
|
|
198
|
-
switch (e) {
|
|
199
|
-
case "error": return diagnosticData(DocumentValidator.LexingError);
|
|
200
|
-
case "warning": return diagnosticData(DocumentValidator.LexingWarning);
|
|
201
|
-
case "info": return diagnosticData(DocumentValidator.LexingInfo);
|
|
202
|
-
case "hint": return diagnosticData(DocumentValidator.LexingHint);
|
|
203
|
-
default: throw Error("Invalid diagnostic severity: " + e);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
var DocumentValidator;
|
|
207
|
-
(function(e) {
|
|
208
|
-
e.LexingError = "lexing-error", e.LexingWarning = "lexing-warning", e.LexingInfo = "lexing-info", e.LexingHint = "lexing-hint", e.ParsingError = "parsing-error", e.LinkingError = "linking-error";
|
|
209
|
-
})(DocumentValidator ||= {});
|
|
210
|
-
export { DefaultDocumentValidator, DocumentValidator, VALIDATE_EACH_NODE, getDiagnosticRange, toDiagnosticData, toDiagnosticSeverity };
|