@64mb/freelens-power 1.6.1 → 1.7.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/README.md +56 -33
- package/THIRD_PARTY_LICENSES +74 -0
- package/out/main/_virtual/_rolldown/runtime.js +25 -0
- package/out/main/ai-answer-stream.js +96 -0
- package/out/main/ai-answer-stream.js.map +1 -0
- package/out/main/ai-api-key.js +95 -0
- package/out/main/ai-api-key.js.map +1 -0
- package/out/main/ai-codex-api.js +611 -0
- package/out/main/ai-codex-api.js.map +1 -0
- package/out/main/ai-ipc.js +42 -11
- package/out/main/ai-ipc.js.map +1 -1
- package/out/main/ai-logs.js +4 -3
- package/out/main/ai-logs.js.map +1 -1
- package/out/main/ai-models.js +23 -11
- package/out/main/ai-models.js.map +1 -1
- package/out/main/ai-pi-models.js +73 -0
- package/out/main/ai-pi-models.js.map +1 -0
- package/out/main/ai-pi.js +411 -0
- package/out/main/ai-pi.js.map +1 -0
- package/out/main/ai-references.js +1 -1
- package/out/main/ai-resources.js +166 -220
- package/out/main/ai-resources.js.map +1 -1
- package/out/main/ai.js +303 -142
- package/out/main/ai.js.map +1 -1
- package/out/main/cluster-icons-catalog.js +1 -1
- package/out/main/cluster-icons.js +4 -4
- package/out/main/dashboard-ai.js +29 -0
- package/out/main/dashboard-ai.js.map +1 -0
- package/out/main/dashboard-catalog.js +1 -1
- package/out/main/dashboard-picker.js +3 -3
- package/out/main/dashboard-views.js +102 -10
- package/out/main/dashboard-views.js.map +1 -1
- package/out/main/diagnostics-menu-order.js +1 -1
- package/out/main/dock-icon.js +1 -1
- package/out/main/extension-updates.js +151 -0
- package/out/main/extension-updates.js.map +1 -0
- package/out/main/helm-installed-chart.js +141 -0
- package/out/main/helm-installed-chart.js.map +1 -0
- package/out/main/helm-ipc.js +748 -0
- package/out/main/helm-ipc.js.map +1 -0
- package/out/main/helm-values.js +45 -0
- package/out/main/helm-values.js.map +1 -0
- package/out/main/helm.js +283 -0
- package/out/main/helm.js.map +1 -0
- package/out/main/index.js +20 -12
- package/out/main/index.js.map +1 -1
- package/out/main/monitoring-history.js +2 -2
- package/out/main/node-bulk.js +260 -0
- package/out/main/node-bulk.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js +99 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js +32 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js +242 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js +154 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js +60 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js +346 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js +479 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js +508 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js +127 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js +50 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js +201 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js +401 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js +1007 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js +23 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js +69 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js +56 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js +73 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js +214 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js +100 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js +187 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js +55 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js +47 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js +173 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js +218 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js +116 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js +38 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js +36 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js +23 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js +23 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js +302 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js +79 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js +49 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js +76 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js +177 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js +62 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js +74 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js +23 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js +111 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js +134 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js +47 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js +47 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js +40 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js +125 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js +122 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js +66 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js +59 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js +48 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js +281 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js +60 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js +100 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js +92 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js +542 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js +56 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js +875 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js +104 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js +43 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js +29 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js +26 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js +29 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js +26 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js +30 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js +53 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js +52 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js +41 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js +75 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js +110 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js +68 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js +38 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js +56 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js +86 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js +55 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js +78 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +74 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js +63 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js +81 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +94 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js +125 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js +122 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js +131 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js +29 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js +74 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js +30 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js +111 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js +236 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js +201 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js.map +1 -0
- package/out/main/package.js +6 -0
- package/out/main/package.js.map +1 -0
- package/out/main/power-logs-budget.js +1 -1
- package/out/main/power-logs-child.js +5 -4
- package/out/main/power-logs-child.js.map +1 -1
- package/out/main/power-logs-database.js +214 -8
- package/out/main/power-logs-database.js.map +1 -1
- package/out/main/power-logs-ipc.js +56 -7
- package/out/main/power-logs-ipc.js.map +1 -1
- package/out/main/power-logs-query-child.js +1 -1
- package/out/main/power-logs-query.js +6 -4
- package/out/main/power-logs-query.js.map +1 -1
- package/out/main/power-logs-worker.js +31 -9
- package/out/main/power-logs-worker.js.map +1 -1
- package/out/main/resource-search-database.js +9 -3
- package/out/main/resource-search-database.js.map +1 -1
- package/out/main/resource-search-worker.js +6 -2
- package/out/main/resource-search-worker.js.map +1 -1
- package/out/main/resource-search.js +4 -3
- package/out/main/resource-search.js.map +1 -1
- package/out/main/settings-export.js +3 -3
- package/out/main/settings-import.js +3 -3
- package/out/main/splash-accent.js +1 -1
- package/out/main/src/common/ai-attachments.js +36 -0
- package/out/main/src/common/ai-attachments.js.map +1 -0
- package/out/main/src/common/ai-extras.js.map +1 -0
- package/out/main/src/common/ai-models.js +81 -0
- package/out/main/src/common/ai-models.js.map +1 -0
- package/out/main/src/common/ai-prompts.js +46 -0
- package/out/main/src/common/ai-prompts.js.map +1 -0
- package/out/main/src/common/ai-resource-payload.js +308 -0
- package/out/main/src/common/ai-resource-payload.js.map +1 -0
- package/out/main/src/common/ai-shortcuts.js.map +1 -0
- package/out/main/src/common/ai-terminal-context.js +72 -0
- package/out/main/src/common/ai-terminal-context.js.map +1 -0
- package/out/main/{common → src/common}/ai.js +6 -0
- package/out/main/src/common/ai.js.map +1 -0
- package/out/main/src/common/cluster-icon-ipc.js.map +1 -0
- package/out/main/src/common/cluster-icons.js.map +1 -0
- package/out/main/src/common/dashboard-ai.js +64 -0
- package/out/main/src/common/dashboard-ai.js.map +1 -0
- package/out/main/src/common/dashboard-picker.js.map +1 -0
- package/out/main/src/common/dashboard-readiness.js.map +1 -0
- package/out/main/src/common/dashboard-selector.js.map +1 -0
- package/out/main/src/common/dashboard-views.js.map +1 -0
- package/out/main/src/common/dashboard.js.map +1 -0
- package/out/main/src/common/extension-info.js.map +1 -0
- package/out/main/src/common/extension-updates.js +13 -0
- package/out/main/src/common/extension-updates.js.map +1 -0
- package/out/main/src/common/helm-values-validation.js +56 -0
- package/out/main/src/common/helm-values-validation.js.map +1 -0
- package/out/main/src/common/helm.js +8 -0
- package/out/main/src/common/helm.js.map +1 -0
- package/out/main/src/common/monitoring-history.js.map +1 -0
- package/out/main/src/common/node-bulk.js +6 -0
- package/out/main/src/common/node-bulk.js.map +1 -0
- package/out/main/src/common/power-logs-limits.js.map +1 -0
- package/out/main/{common → src/common}/power-logs.js +6 -0
- package/out/main/src/common/power-logs.js.map +1 -0
- package/out/main/src/common/resource-search-kind-priority.js +23 -0
- package/out/main/src/common/resource-search-kind-priority.js.map +1 -0
- package/out/main/src/common/resource-search.js.map +1 -0
- package/out/main/src/common/settings-export.js.map +1 -0
- package/out/main/{common → src/common}/store/ai-preferences-store.js +50 -8
- package/out/main/src/common/store/ai-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/ai-shortcuts-store.js +2 -2
- package/out/main/src/common/store/ai-shortcuts-store.js.map +1 -0
- package/out/main/{common → src/common}/store/appearance-preferences-store.js +10 -5
- package/out/main/src/common/store/appearance-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/cluster-icons-store.js +2 -2
- package/out/main/src/common/store/cluster-icons-store.js.map +1 -0
- package/out/main/{common → src/common}/store/dashboard-preferences-store.js +2 -2
- package/out/main/src/common/store/dashboard-preferences-store.js.map +1 -0
- package/out/main/src/common/store/helm-preferences-store.js +26 -0
- package/out/main/src/common/store/helm-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/logs-preferences-store.js +7 -2
- package/out/main/src/common/store/logs-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/monitoring-preferences-store.js +2 -2
- package/out/main/src/common/store/monitoring-preferences-store.js.map +1 -0
- package/out/main/src/common/store/node-shell-preferences-store.js +44 -0
- package/out/main/src/common/store/node-shell-preferences-store.js.map +1 -0
- package/out/main/src/common/store/power-preferences-store.js +39 -0
- package/out/main/src/common/store/power-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/read-only-preferences-store.js +2 -2
- package/out/main/src/common/store/read-only-preferences-store.js.map +1 -0
- package/out/renderer/_virtual/_global-external_mobx.js +4 -2
- package/out/renderer/_virtual/_global-external_react-dom.js +4 -2
- package/out/renderer/_virtual/_global-external_react.js +4 -2
- package/out/renderer/ai-attachment-card.js +92 -0
- package/out/renderer/ai-attachment-card.js.map +1 -0
- package/out/renderer/ai-context-mutations.js +14 -0
- package/out/renderer/ai-context-mutations.js.map +1 -0
- package/out/renderer/ai-copy-answer.js +18 -15
- package/out/renderer/ai-copy-answer.js.map +1 -1
- package/out/renderer/ai-diagnostic-handoff.js +5 -2
- package/out/renderer/ai-diagnostic-handoff.js.map +1 -1
- package/out/renderer/ai-extras.js +95 -85
- package/out/renderer/ai-extras.js.map +1 -1
- package/out/renderer/ai-icon.js +26 -0
- package/out/renderer/ai-icon.js.map +1 -1
- package/out/renderer/ai-logs-sql.js +1 -0
- package/out/renderer/ai-logs-sql.js.map +1 -1
- package/out/renderer/ai-message.js +58 -41
- package/out/renderer/ai-message.js.map +1 -1
- package/out/renderer/ai-provider-icon.js +77 -32
- package/out/renderer/ai-provider-icon.js.map +1 -1
- package/out/renderer/ai-resize.js +40 -37
- package/out/renderer/ai-resize.js.map +1 -1
- package/out/renderer/ai-shortcuts.js +21 -17
- package/out/renderer/ai-shortcuts.js.map +1 -1
- package/out/renderer/ai-terminal-context.js +54 -81
- package/out/renderer/ai-terminal-context.js.map +1 -1
- package/out/renderer/ai.js +530 -172
- package/out/renderer/ai.js.map +1 -1
- package/out/renderer/appearance.js +59 -5
- package/out/renderer/appearance.js.map +1 -1
- package/out/renderer/assets/openai.js +6 -0
- package/out/renderer/assets/openai.js.map +1 -0
- package/out/renderer/assets/pi.js +6 -0
- package/out/renderer/assets/pi.js.map +1 -0
- package/out/renderer/button-styles.js +31 -2
- package/out/renderer/button-styles.js.map +1 -1
- package/out/renderer/cluster-icon-colors.js +10 -7
- package/out/renderer/cluster-icon-colors.js.map +1 -1
- package/out/renderer/cluster-icons.js +47 -40
- package/out/renderer/cluster-icons.js.map +1 -1
- package/out/renderer/dashboard.js +75 -14
- package/out/renderer/dashboard.js.map +1 -1
- package/out/renderer/details/resource-health-details.js +2 -2
- package/out/renderer/details/resource-health-details.js.map +1 -1
- package/out/renderer/details/service-diagnostics-details.js +25 -23
- package/out/renderer/details/service-diagnostics-details.js.map +1 -1
- package/out/renderer/diagnostic-explain-button.js +7 -4
- package/out/renderer/diagnostic-explain-button.js.map +1 -1
- package/out/renderer/diagnostics-screen-finding.js +52 -0
- package/out/renderer/diagnostics-screen-finding.js.map +1 -0
- package/out/renderer/diagnostics-state.js +37 -0
- package/out/renderer/diagnostics-state.js.map +1 -1
- package/out/renderer/diagnostics.css.js +17 -4
- package/out/renderer/diagnostics.css.js.map +1 -1
- package/out/renderer/diagnostics.js +457 -189
- package/out/renderer/diagnostics.js.map +1 -1
- package/out/renderer/extension-update-notifications.js +221 -0
- package/out/renderer/extension-update-notifications.js.map +1 -0
- package/out/renderer/extension-update.js +189 -0
- package/out/renderer/extension-update.js.map +1 -0
- package/out/renderer/floating-action-transitions.js +139 -0
- package/out/renderer/floating-action-transitions.js.map +1 -0
- package/out/renderer/helm-app-version.js +141 -0
- package/out/renderer/helm-app-version.js.map +1 -0
- package/out/renderer/helm-code-view.js +727 -0
- package/out/renderer/helm-code-view.js.map +1 -0
- package/out/renderer/helm-entrypoints.js +79 -0
- package/out/renderer/helm-entrypoints.js.map +1 -0
- package/out/renderer/helm-full-comparison.js +233 -0
- package/out/renderer/helm-full-comparison.js.map +1 -0
- package/out/renderer/helm-operations.js +541 -0
- package/out/renderer/helm-operations.js.map +1 -0
- package/out/renderer/helm-release-actions.js +296 -0
- package/out/renderer/helm-release-actions.js.map +1 -0
- package/out/renderer/helm-revision-delete.js +128 -0
- package/out/renderer/helm-revision-delete.js.map +1 -0
- package/out/renderer/helm-version-index.js +283 -0
- package/out/renderer/helm-version-index.js.map +1 -0
- package/out/renderer/helm.js +2383 -0
- package/out/renderer/helm.js.map +1 -0
- package/out/renderer/host-extensions.js +102 -0
- package/out/renderer/host-extensions.js.map +1 -0
- package/out/renderer/host-layout.js +59 -0
- package/out/renderer/host-layout.js.map +1 -0
- package/out/renderer/host-preferences.js +192 -0
- package/out/renderer/host-preferences.js.map +1 -0
- package/out/renderer/incident-copy-button.js +24 -21
- package/out/renderer/incident-copy-button.js.map +1 -1
- package/out/renderer/index.js +47 -5
- package/out/renderer/index.js.map +1 -1
- package/out/renderer/menus/secure-node-shell-menu.js +2 -1
- package/out/renderer/menus/secure-node-shell-menu.js.map +1 -1
- package/out/renderer/monitoring-collector.js +13 -8
- package/out/renderer/monitoring-collector.js.map +1 -1
- package/out/renderer/monitoring-history-view.js +1 -1
- package/out/renderer/monitoring-history-view.js.map +1 -1
- package/out/renderer/monitoring.js +130 -49
- package/out/renderer/monitoring.js.map +1 -1
- package/out/renderer/native-resource-removals.js +202 -0
- package/out/renderer/native-resource-removals.js.map +1 -0
- package/out/renderer/native-tooltip.js +22 -0
- package/out/renderer/native-tooltip.js.map +1 -0
- package/out/renderer/node-bulk-actions.js +527 -0
- package/out/renderer/node-bulk-actions.js.map +1 -0
- package/out/renderer/node-bulk-selection.js +203 -0
- package/out/renderer/node-bulk-selection.js.map +1 -0
- package/out/renderer/node-shell-entrypoints.js +65 -0
- package/out/renderer/node-shell-entrypoints.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js +52 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js +41 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js +88 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js +59 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js +195 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js +84 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +176 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +42 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js +38 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +155 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +206 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js +107 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js +29 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +27 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +12 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js +12 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js +279 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js +67 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js +40 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js +63 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js +165 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js +53 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/index.js +24 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js +8 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js +96 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js +121 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js +34 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js +32 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js +27 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js +109 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +106 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +51 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js +50 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-scalar.js +3 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js +91 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js +42 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js +531 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js +47 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js +861 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js +56 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js +29 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js +18 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js +18 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js +16 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js +42 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js +41 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js +25 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js +63 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js +84 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +54 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +27 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +45 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +75 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +43 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +63 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +60 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +41 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +68 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +83 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +116 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js +108 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +118 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +61 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +21 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js +97 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js +224 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js +190 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/index.js +24 -0
- package/out/renderer/package.js +6 -0
- package/out/renderer/package.js.map +1 -0
- package/out/renderer/pod-bulk-customization.js +51 -0
- package/out/renderer/pod-bulk-customization.js.map +1 -0
- package/out/renderer/pod-details-enhancements.js +107 -0
- package/out/renderer/pod-details-enhancements.js.map +1 -0
- package/out/renderer/pod-removal-confirmation.js +172 -0
- package/out/renderer/pod-removal-confirmation.js.map +1 -0
- package/out/renderer/power-log-column-widths.js +54 -0
- package/out/renderer/power-log-column-widths.js.map +1 -0
- package/out/renderer/power-log-columns.js +114 -0
- package/out/renderer/power-log-columns.js.map +1 -0
- package/out/renderer/power-log-json-cell.js +88 -0
- package/out/renderer/power-log-json-cell.js.map +1 -0
- package/out/renderer/power-log-json-fields.js +144 -0
- package/out/renderer/power-log-json-fields.js.map +1 -0
- package/out/renderer/power-log-json.js +252 -20
- package/out/renderer/power-log-json.js.map +1 -1
- package/out/renderer/power-log-message-tokens.js +60 -0
- package/out/renderer/power-log-message-tokens.js.map +1 -0
- package/out/renderer/power-log-message.js +26 -0
- package/out/renderer/power-log-message.js.map +1 -0
- package/out/renderer/power-log-sql-editor.js +120 -0
- package/out/renderer/power-log-sql-editor.js.map +1 -0
- package/out/renderer/power-logs-client.js +9 -0
- package/out/renderer/power-logs-client.js.map +1 -1
- package/out/renderer/power-logs-context.js +45 -0
- package/out/renderer/power-logs-context.js.map +1 -0
- package/out/renderer/power-logs-entrypoints.js +13 -36
- package/out/renderer/power-logs-entrypoints.js.map +1 -1
- package/out/renderer/power-logs-resource-stores.js +71 -0
- package/out/renderer/power-logs-resource-stores.js.map +1 -0
- package/out/renderer/power-logs-session.js +35 -0
- package/out/renderer/power-logs-session.js.map +1 -0
- package/out/renderer/power-logs-sql-drafts.js +76 -0
- package/out/renderer/power-logs-sql-drafts.js.map +1 -0
- package/out/renderer/power-logs-sql-row.js +5 -13
- package/out/renderer/power-logs-sql-row.js.map +1 -1
- package/out/renderer/power-logs-storage.js +11 -0
- package/out/renderer/power-logs-storage.js.map +1 -0
- package/out/renderer/power-logs.css.js +112 -13
- package/out/renderer/power-logs.css.js.map +1 -1
- package/out/renderer/power-logs.js +1120 -362
- package/out/renderer/power-logs.js.map +1 -1
- package/out/renderer/preferences/ai-preferences.js +264 -55
- package/out/renderer/preferences/ai-preferences.js.map +1 -1
- package/out/renderer/preferences/dashboard-preferences.js +42 -35
- package/out/renderer/preferences/dashboard-preferences.js.map +1 -1
- package/out/renderer/preferences/helm-preferences.js +22 -0
- package/out/renderer/preferences/helm-preferences.js.map +1 -0
- package/out/renderer/preferences/logs-preferences.js +287 -52
- package/out/renderer/preferences/logs-preferences.js.map +1 -1
- package/out/renderer/preferences/monitoring-preferences.js +21 -20
- package/out/renderer/preferences/monitoring-preferences.js.map +1 -1
- package/out/renderer/preferences/node-shell-preferences.js +10 -0
- package/out/renderer/preferences/node-shell-preferences.js.map +1 -1
- package/out/renderer/preferences/other-preferences.js +55 -0
- package/out/renderer/preferences/other-preferences.js.map +1 -0
- package/out/renderer/preferences/power-preferences.js +27 -10
- package/out/renderer/preferences/power-preferences.js.map +1 -1
- package/out/renderer/preferences/preferences.js +44 -13
- package/out/renderer/preferences/preferences.js.map +1 -1
- package/out/renderer/preferences/section-navigation.js +44 -0
- package/out/renderer/preferences/section-navigation.js.map +1 -0
- package/out/renderer/preferences/settings-icon-action.js +12 -11
- package/out/renderer/preferences/settings-icon-action.js.map +1 -1
- package/out/renderer/preferences/settings-modal.js +1 -1
- package/out/renderer/preferences/settings-modal.js.map +1 -1
- package/out/renderer/relationship-map-finding.js +54 -0
- package/out/renderer/relationship-map-finding.js.map +1 -0
- package/out/renderer/resource-relationships.css.js +11 -1
- package/out/renderer/resource-relationships.css.js.map +1 -1
- package/out/renderer/resource-relationships.js +104 -50
- package/out/renderer/resource-relationships.js.map +1 -1
- package/out/renderer/resource-search-client.js.map +1 -1
- package/out/renderer/resource-search-fields.js +2 -2
- package/out/renderer/resource-search-fields.js.map +1 -1
- package/out/renderer/resource-search-model.js +2 -1
- package/out/renderer/resource-search-model.js.map +1 -1
- package/out/renderer/resource-search-sync.js +1 -1
- package/out/renderer/resource-search-sync.js.map +1 -1
- package/out/renderer/resource-search.js +164 -108
- package/out/renderer/resource-search.js.map +1 -1
- package/out/renderer/secret-dialog-customization.js +142 -0
- package/out/renderer/secret-dialog-customization.js.map +1 -0
- package/out/renderer/src/common/ai-attachments.js +160 -0
- package/out/renderer/src/common/ai-attachments.js.map +1 -0
- package/out/renderer/src/common/ai-models.js +58 -0
- package/out/renderer/src/common/ai-models.js.map +1 -1
- package/out/renderer/src/common/ai-prompts.js +32 -2
- package/out/renderer/src/common/ai-prompts.js.map +1 -1
- package/out/renderer/src/common/ai-resource-payload.js +262 -0
- package/out/renderer/src/common/ai-resource-payload.js.map +1 -0
- package/out/renderer/src/common/ai-terminal-context.js +39 -18
- package/out/renderer/src/common/ai-terminal-context.js.map +1 -1
- package/out/renderer/src/common/ai.js +6 -0
- package/out/renderer/src/common/ai.js.map +1 -1
- package/out/renderer/src/common/dashboard-ai.js +22 -0
- package/out/renderer/src/common/dashboard-ai.js.map +1 -0
- package/out/renderer/src/common/extension-updates.js +33 -0
- package/out/renderer/src/common/extension-updates.js.map +1 -0
- package/out/renderer/src/common/gateway-relationships.js +8 -7
- package/out/renderer/src/common/gateway-relationships.js.map +1 -1
- package/out/renderer/src/common/helm-diff.js +312 -0
- package/out/renderer/src/common/helm-diff.js.map +1 -0
- package/out/renderer/src/common/helm-values-validation.js +59 -0
- package/out/renderer/src/common/helm-values-validation.js.map +1 -0
- package/out/renderer/src/common/helm.js +10 -0
- package/out/renderer/src/common/helm.js.map +1 -0
- package/out/renderer/src/common/node-bulk.js +6 -0
- package/out/renderer/src/common/node-bulk.js.map +1 -0
- package/out/renderer/src/common/power-log-field-filters.js +92 -0
- package/out/renderer/src/common/power-log-field-filters.js.map +1 -0
- package/out/renderer/src/common/power-log-json-filter-sql.js +118 -0
- package/out/renderer/src/common/power-log-json-filter-sql.js.map +1 -0
- package/out/renderer/src/common/power-log-json-preset.js +34 -0
- package/out/renderer/src/common/power-log-json-preset.js.map +1 -0
- package/out/renderer/src/common/power-log-level.js +172 -0
- package/out/renderer/src/common/power-log-level.js.map +1 -0
- package/out/renderer/src/common/power-log-parser.js +7 -29
- package/out/renderer/src/common/power-log-parser.js.map +1 -1
- package/out/renderer/src/common/power-log-sql-level.js +25 -0
- package/out/renderer/src/common/power-log-sql-level.js.map +1 -0
- package/out/renderer/src/common/power-logs-ai.js +11 -7
- package/out/renderer/src/common/power-logs-ai.js.map +1 -1
- package/out/renderer/src/common/power-logs.js +6 -0
- package/out/renderer/src/common/power-logs.js.map +1 -1
- package/out/renderer/src/common/resource-relationships.js +10 -8
- package/out/renderer/src/common/resource-relationships.js.map +1 -1
- package/out/renderer/src/common/resource-search-kind-priority.js +28 -0
- package/out/renderer/src/common/resource-search-kind-priority.js.map +1 -0
- package/out/renderer/src/common/resource-search.js.map +1 -1
- package/out/{main/common/ai-terminal-context.js → renderer/src/common/search-index-redaction.js} +4 -29
- package/out/renderer/src/common/search-index-redaction.js.map +1 -0
- package/out/renderer/src/common/store/ai-preferences-store.js +48 -6
- package/out/renderer/src/common/store/ai-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/appearance-preferences-store.js +8 -3
- package/out/renderer/src/common/store/appearance-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/helm-preferences-store.js +26 -0
- package/out/renderer/src/common/store/helm-preferences-store.js.map +1 -0
- package/out/renderer/src/common/store/logs-preferences-store.js +5 -0
- package/out/renderer/src/common/store/logs-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/node-shell-preferences-store.js +10 -6
- package/out/renderer/src/common/store/node-shell-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/power-preferences-store.js +19 -3
- package/out/renderer/src/common/store/power-preferences-store.js.map +1 -1
- package/out/renderer/welcome.js +29 -2
- package/out/renderer/welcome.js.map +1 -1
- package/package.json +5 -2
- package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
- package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
- package/out/main/common/ai-extras.js.map +0 -1
- package/out/main/common/ai-models.js +0 -6
- package/out/main/common/ai-models.js.map +0 -1
- package/out/main/common/ai-prompts.js +0 -16
- package/out/main/common/ai-prompts.js.map +0 -1
- package/out/main/common/ai-shortcuts.js.map +0 -1
- package/out/main/common/ai-terminal-context.js.map +0 -1
- package/out/main/common/ai.js.map +0 -1
- package/out/main/common/cluster-icon-ipc.js.map +0 -1
- package/out/main/common/cluster-icons.js.map +0 -1
- package/out/main/common/dashboard-picker.js.map +0 -1
- package/out/main/common/dashboard-readiness.js.map +0 -1
- package/out/main/common/dashboard-selector.js.map +0 -1
- package/out/main/common/dashboard-views.js.map +0 -1
- package/out/main/common/dashboard.js.map +0 -1
- package/out/main/common/extension-info.js.map +0 -1
- package/out/main/common/monitoring-history.js.map +0 -1
- package/out/main/common/power-logs-limits.js.map +0 -1
- package/out/main/common/power-logs.js.map +0 -1
- package/out/main/common/resource-search.js.map +0 -1
- package/out/main/common/settings-export.js.map +0 -1
- package/out/main/common/store/ai-preferences-store.js.map +0 -1
- package/out/main/common/store/ai-shortcuts-store.js.map +0 -1
- package/out/main/common/store/appearance-preferences-store.js.map +0 -1
- package/out/main/common/store/cluster-icons-store.js.map +0 -1
- package/out/main/common/store/dashboard-preferences-store.js.map +0 -1
- package/out/main/common/store/logs-preferences-store.js.map +0 -1
- package/out/main/common/store/monitoring-preferences-store.js.map +0 -1
- package/out/main/common/store/node-shell-preferences-store.js +0 -40
- package/out/main/common/store/node-shell-preferences-store.js.map +0 -1
- package/out/main/common/store/power-preferences-store.js +0 -23
- package/out/main/common/store/power-preferences-store.js.map +0 -1
- package/out/main/common/store/read-only-preferences-store.js.map +0 -1
- package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
- package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
- /package/out/main/{common → src/common}/ai-extras.js +0 -0
- /package/out/main/{common → src/common}/ai-shortcuts.js +0 -0
- /package/out/main/{common → src/common}/cluster-icon-ipc.js +0 -0
- /package/out/main/{common → src/common}/cluster-icons.js +0 -0
- /package/out/main/{common → src/common}/dashboard-picker.js +0 -0
- /package/out/main/{common → src/common}/dashboard-readiness.js +0 -0
- /package/out/main/{common → src/common}/dashboard-selector.js +0 -0
- /package/out/main/{common → src/common}/dashboard-views.js +0 -0
- /package/out/main/{common → src/common}/dashboard.js +0 -0
- /package/out/main/{common → src/common}/extension-info.js +0 -0
- /package/out/main/{common → src/common}/monitoring-history.js +0 -0
- /package/out/main/{common → src/common}/power-logs-limits.js +0 -0
- /package/out/main/{common → src/common}/resource-search.js +0 -0
- /package/out/main/{common → src/common}/settings-export.js +0 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
const require_identity = require("../nodes/identity.js");
|
|
2
|
+
const require_directives = require("../doc/directives.js");
|
|
3
|
+
const require_Document = require("../doc/Document.js");
|
|
4
|
+
const require_errors = require("../errors.js");
|
|
5
|
+
const require_resolve_end = require("./resolve-end.js");
|
|
6
|
+
const require_compose_doc = require("./compose-doc.js");
|
|
7
|
+
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js
|
|
8
|
+
function getErrorPos(src) {
|
|
9
|
+
if (typeof src === "number") return [src, src + 1];
|
|
10
|
+
if (Array.isArray(src)) return src.length === 2 ? src : [src[0], src[1]];
|
|
11
|
+
const { offset, source } = src;
|
|
12
|
+
return [offset, offset + (typeof source === "string" ? source.length : 1)];
|
|
13
|
+
}
|
|
14
|
+
function parsePrelude(prelude) {
|
|
15
|
+
let comment = "";
|
|
16
|
+
let atComment = false;
|
|
17
|
+
let afterEmptyLine = false;
|
|
18
|
+
for (let i = 0; i < prelude.length; ++i) {
|
|
19
|
+
const source = prelude[i];
|
|
20
|
+
switch (source[0]) {
|
|
21
|
+
case "#":
|
|
22
|
+
comment += (comment === "" ? "" : afterEmptyLine ? "\n\n" : "\n") + (source.substring(1) || " ");
|
|
23
|
+
atComment = true;
|
|
24
|
+
afterEmptyLine = false;
|
|
25
|
+
break;
|
|
26
|
+
case "%":
|
|
27
|
+
if (prelude[i + 1]?.[0] !== "#") i += 1;
|
|
28
|
+
atComment = false;
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
if (!atComment) afterEmptyLine = true;
|
|
32
|
+
atComment = false;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
comment,
|
|
37
|
+
afterEmptyLine
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Compose a stream of CST nodes into a stream of YAML Documents.
|
|
42
|
+
*
|
|
43
|
+
* ```ts
|
|
44
|
+
* import { Composer, Parser } from 'yaml'
|
|
45
|
+
*
|
|
46
|
+
* const src: string = ...
|
|
47
|
+
* const tokens = new Parser().parse(src)
|
|
48
|
+
* const docs = new Composer().compose(tokens)
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
var Composer = class {
|
|
52
|
+
constructor(options = {}) {
|
|
53
|
+
this.doc = null;
|
|
54
|
+
this.atDirectives = false;
|
|
55
|
+
this.prelude = [];
|
|
56
|
+
this.errors = [];
|
|
57
|
+
this.warnings = [];
|
|
58
|
+
this.onError = (source, code, message, warning) => {
|
|
59
|
+
const pos = getErrorPos(source);
|
|
60
|
+
if (warning) this.warnings.push(new require_errors.YAMLWarning(pos, code, message));
|
|
61
|
+
else this.errors.push(new require_errors.YAMLParseError(pos, code, message));
|
|
62
|
+
};
|
|
63
|
+
this.directives = new require_directives.Directives({ version: options.version || "1.2" });
|
|
64
|
+
this.options = options;
|
|
65
|
+
}
|
|
66
|
+
decorate(doc, afterDoc) {
|
|
67
|
+
const { comment, afterEmptyLine } = parsePrelude(this.prelude);
|
|
68
|
+
if (comment) {
|
|
69
|
+
const dc = doc.contents;
|
|
70
|
+
if (afterDoc) doc.comment = doc.comment ? `${doc.comment}\n${comment}` : comment;
|
|
71
|
+
else if (afterEmptyLine || doc.directives.docStart || !dc) doc.commentBefore = comment;
|
|
72
|
+
else if (require_identity.isCollection(dc) && !dc.flow && dc.items.length > 0) {
|
|
73
|
+
let it = dc.items[0];
|
|
74
|
+
if (require_identity.isPair(it)) it = it.key;
|
|
75
|
+
const cb = it.commentBefore;
|
|
76
|
+
it.commentBefore = cb ? `${comment}\n${cb}` : comment;
|
|
77
|
+
} else {
|
|
78
|
+
const cb = dc.commentBefore;
|
|
79
|
+
dc.commentBefore = cb ? `${comment}\n${cb}` : comment;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (afterDoc) {
|
|
83
|
+
for (let i = 0; i < this.errors.length; ++i) doc.errors.push(this.errors[i]);
|
|
84
|
+
for (let i = 0; i < this.warnings.length; ++i) doc.warnings.push(this.warnings[i]);
|
|
85
|
+
} else {
|
|
86
|
+
doc.errors = this.errors;
|
|
87
|
+
doc.warnings = this.warnings;
|
|
88
|
+
}
|
|
89
|
+
this.prelude = [];
|
|
90
|
+
this.errors = [];
|
|
91
|
+
this.warnings = [];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Current stream status information.
|
|
95
|
+
*
|
|
96
|
+
* Mostly useful at the end of input for an empty stream.
|
|
97
|
+
*/
|
|
98
|
+
streamInfo() {
|
|
99
|
+
return {
|
|
100
|
+
comment: parsePrelude(this.prelude).comment,
|
|
101
|
+
directives: this.directives,
|
|
102
|
+
errors: this.errors,
|
|
103
|
+
warnings: this.warnings
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Compose tokens into documents.
|
|
108
|
+
*
|
|
109
|
+
* @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
|
|
110
|
+
* @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
|
|
111
|
+
*/
|
|
112
|
+
*compose(tokens, forceDoc = false, endOffset = -1) {
|
|
113
|
+
for (const token of tokens) yield* this.next(token);
|
|
114
|
+
yield* this.end(forceDoc, endOffset);
|
|
115
|
+
}
|
|
116
|
+
/** Advance the composer by one CST token. */
|
|
117
|
+
*next(token) {
|
|
118
|
+
switch (token.type) {
|
|
119
|
+
case "directive":
|
|
120
|
+
this.directives.add(token.source, (offset, message, warning) => {
|
|
121
|
+
const pos = getErrorPos(token);
|
|
122
|
+
pos[0] += offset;
|
|
123
|
+
this.onError(pos, "BAD_DIRECTIVE", message, warning);
|
|
124
|
+
});
|
|
125
|
+
this.prelude.push(token.source);
|
|
126
|
+
this.atDirectives = true;
|
|
127
|
+
break;
|
|
128
|
+
case "document": {
|
|
129
|
+
const doc = require_compose_doc.composeDoc(this.options, this.directives, token, this.onError);
|
|
130
|
+
if (this.atDirectives && !doc.directives.docStart) this.onError(token, "MISSING_CHAR", "Missing directives-end/doc-start indicator line");
|
|
131
|
+
this.decorate(doc, false);
|
|
132
|
+
if (this.doc) yield this.doc;
|
|
133
|
+
this.doc = doc;
|
|
134
|
+
this.atDirectives = false;
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
case "byte-order-mark":
|
|
138
|
+
case "space": break;
|
|
139
|
+
case "comment":
|
|
140
|
+
case "newline":
|
|
141
|
+
this.prelude.push(token.source);
|
|
142
|
+
break;
|
|
143
|
+
case "error": {
|
|
144
|
+
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
|
145
|
+
const error = new require_errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
|
146
|
+
if (this.atDirectives || !this.doc) this.errors.push(error);
|
|
147
|
+
else this.doc.errors.push(error);
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
case "doc-end": {
|
|
151
|
+
if (!this.doc) {
|
|
152
|
+
this.errors.push(new require_errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", "Unexpected doc-end without preceding document"));
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
this.doc.directives.docEnd = true;
|
|
156
|
+
const end = require_resolve_end.resolveEnd(token.end, token.offset + token.source.length, this.doc.options.strict, this.onError);
|
|
157
|
+
this.decorate(this.doc, true);
|
|
158
|
+
if (end.comment) {
|
|
159
|
+
const dc = this.doc.comment;
|
|
160
|
+
this.doc.comment = dc ? `${dc}\n${end.comment}` : end.comment;
|
|
161
|
+
}
|
|
162
|
+
this.doc.range[2] = end.offset;
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
default: this.errors.push(new require_errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Call at end of input to yield any remaining document.
|
|
170
|
+
*
|
|
171
|
+
* @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
|
|
172
|
+
* @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
|
|
173
|
+
*/
|
|
174
|
+
*end(forceDoc = false, endOffset = -1) {
|
|
175
|
+
if (this.doc) {
|
|
176
|
+
this.decorate(this.doc, true);
|
|
177
|
+
yield this.doc;
|
|
178
|
+
this.doc = null;
|
|
179
|
+
} else if (forceDoc) {
|
|
180
|
+
const doc = new require_Document.Document(void 0, Object.assign({ _directives: this.directives }, this.options));
|
|
181
|
+
if (this.atDirectives) this.onError(endOffset, "MISSING_CHAR", "Missing directives-end indicator line");
|
|
182
|
+
doc.range = [
|
|
183
|
+
0,
|
|
184
|
+
endOffset,
|
|
185
|
+
endOffset
|
|
186
|
+
];
|
|
187
|
+
this.decorate(doc, false);
|
|
188
|
+
yield doc;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
//#endregion
|
|
193
|
+
exports.Composer = Composer;
|
|
194
|
+
|
|
195
|
+
//# sourceMappingURL=composer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composer.js","names":["YAMLWarning","YAMLParseError","Directives","isCollection","isPair","composeDoc","resolveEnd","Document"],"sources":["../../../../../../../../../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js"],"sourcesContent":["import { Directives } from '../doc/directives.js';\nimport { Document } from '../doc/Document.js';\nimport { YAMLWarning, YAMLParseError } from '../errors.js';\nimport { isCollection, isPair } from '../nodes/identity.js';\nimport { composeDoc } from './compose-doc.js';\nimport { resolveEnd } from './resolve-end.js';\n\nfunction getErrorPos(src) {\n if (typeof src === 'number')\n return [src, src + 1];\n if (Array.isArray(src))\n return src.length === 2 ? src : [src[0], src[1]];\n const { offset, source } = src;\n return [offset, offset + (typeof source === 'string' ? source.length : 1)];\n}\nfunction parsePrelude(prelude) {\n let comment = '';\n let atComment = false;\n let afterEmptyLine = false;\n for (let i = 0; i < prelude.length; ++i) {\n const source = prelude[i];\n switch (source[0]) {\n case '#':\n comment +=\n (comment === '' ? '' : afterEmptyLine ? '\\n\\n' : '\\n') +\n (source.substring(1) || ' ');\n atComment = true;\n afterEmptyLine = false;\n break;\n case '%':\n if (prelude[i + 1]?.[0] !== '#')\n i += 1;\n atComment = false;\n break;\n default:\n // This may be wrong after doc-end, but in that case it doesn't matter\n if (!atComment)\n afterEmptyLine = true;\n atComment = false;\n }\n }\n return { comment, afterEmptyLine };\n}\n/**\n * Compose a stream of CST nodes into a stream of YAML Documents.\n *\n * ```ts\n * import { Composer, Parser } from 'yaml'\n *\n * const src: string = ...\n * const tokens = new Parser().parse(src)\n * const docs = new Composer().compose(tokens)\n * ```\n */\nclass Composer {\n constructor(options = {}) {\n this.doc = null;\n this.atDirectives = false;\n this.prelude = [];\n this.errors = [];\n this.warnings = [];\n this.onError = (source, code, message, warning) => {\n const pos = getErrorPos(source);\n if (warning)\n this.warnings.push(new YAMLWarning(pos, code, message));\n else\n this.errors.push(new YAMLParseError(pos, code, message));\n };\n // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing\n this.directives = new Directives({ version: options.version || '1.2' });\n this.options = options;\n }\n decorate(doc, afterDoc) {\n const { comment, afterEmptyLine } = parsePrelude(this.prelude);\n //console.log({ dc: doc.comment, prelude, comment })\n if (comment) {\n const dc = doc.contents;\n if (afterDoc) {\n doc.comment = doc.comment ? `${doc.comment}\\n${comment}` : comment;\n }\n else if (afterEmptyLine || doc.directives.docStart || !dc) {\n doc.commentBefore = comment;\n }\n else if (isCollection(dc) && !dc.flow && dc.items.length > 0) {\n let it = dc.items[0];\n if (isPair(it))\n it = it.key;\n const cb = it.commentBefore;\n it.commentBefore = cb ? `${comment}\\n${cb}` : comment;\n }\n else {\n const cb = dc.commentBefore;\n dc.commentBefore = cb ? `${comment}\\n${cb}` : comment;\n }\n }\n if (afterDoc) {\n for (let i = 0; i < this.errors.length; ++i)\n doc.errors.push(this.errors[i]);\n for (let i = 0; i < this.warnings.length; ++i)\n doc.warnings.push(this.warnings[i]);\n }\n else {\n doc.errors = this.errors;\n doc.warnings = this.warnings;\n }\n this.prelude = [];\n this.errors = [];\n this.warnings = [];\n }\n /**\n * Current stream status information.\n *\n * Mostly useful at the end of input for an empty stream.\n */\n streamInfo() {\n return {\n comment: parsePrelude(this.prelude).comment,\n directives: this.directives,\n errors: this.errors,\n warnings: this.warnings\n };\n }\n /**\n * Compose tokens into documents.\n *\n * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.\n * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.\n */\n *compose(tokens, forceDoc = false, endOffset = -1) {\n for (const token of tokens)\n yield* this.next(token);\n yield* this.end(forceDoc, endOffset);\n }\n /** Advance the composer by one CST token. */\n *next(token) {\n switch (token.type) {\n case 'directive':\n this.directives.add(token.source, (offset, message, warning) => {\n const pos = getErrorPos(token);\n pos[0] += offset;\n this.onError(pos, 'BAD_DIRECTIVE', message, warning);\n });\n this.prelude.push(token.source);\n this.atDirectives = true;\n break;\n case 'document': {\n const doc = composeDoc(this.options, this.directives, token, this.onError);\n if (this.atDirectives && !doc.directives.docStart)\n this.onError(token, 'MISSING_CHAR', 'Missing directives-end/doc-start indicator line');\n this.decorate(doc, false);\n if (this.doc)\n yield this.doc;\n this.doc = doc;\n this.atDirectives = false;\n break;\n }\n case 'byte-order-mark':\n case 'space':\n break;\n case 'comment':\n case 'newline':\n this.prelude.push(token.source);\n break;\n case 'error': {\n const msg = token.source\n ? `${token.message}: ${JSON.stringify(token.source)}`\n : token.message;\n const error = new YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', msg);\n if (this.atDirectives || !this.doc)\n this.errors.push(error);\n else\n this.doc.errors.push(error);\n break;\n }\n case 'doc-end': {\n if (!this.doc) {\n const msg = 'Unexpected doc-end without preceding document';\n this.errors.push(new YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', msg));\n break;\n }\n this.doc.directives.docEnd = true;\n const end = resolveEnd(token.end, token.offset + token.source.length, this.doc.options.strict, this.onError);\n this.decorate(this.doc, true);\n if (end.comment) {\n const dc = this.doc.comment;\n this.doc.comment = dc ? `${dc}\\n${end.comment}` : end.comment;\n }\n this.doc.range[2] = end.offset;\n break;\n }\n default:\n this.errors.push(new YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', `Unsupported token ${token.type}`));\n }\n }\n /**\n * Call at end of input to yield any remaining document.\n *\n * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.\n * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.\n */\n *end(forceDoc = false, endOffset = -1) {\n if (this.doc) {\n this.decorate(this.doc, true);\n yield this.doc;\n this.doc = null;\n }\n else if (forceDoc) {\n const opts = Object.assign({ _directives: this.directives }, this.options);\n const doc = new Document(undefined, opts);\n if (this.atDirectives)\n this.onError(endOffset, 'MISSING_CHAR', 'Missing directives-end indicator line');\n doc.range = [0, endOffset, endOffset];\n this.decorate(doc, false);\n yield doc;\n }\n }\n}\n\nexport { Composer };\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const require_Pair = require("../nodes/Pair.js");
|
|
2
|
+
const require_YAMLMap = require("../nodes/YAMLMap.js");
|
|
3
|
+
const require_resolve_props = require("./resolve-props.js");
|
|
4
|
+
const require_util_contains_newline = require("./util-contains-newline.js");
|
|
5
|
+
const require_util_flow_indent_check = require("./util-flow-indent-check.js");
|
|
6
|
+
const require_util_map_includes = require("./util-map-includes.js");
|
|
7
|
+
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js
|
|
8
|
+
var startColMsg = "All mapping items must start at the same column";
|
|
9
|
+
function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError, tag) {
|
|
10
|
+
const map = new ((tag?.nodeClass) ?? require_YAMLMap.YAMLMap)(ctx.schema);
|
|
11
|
+
if (ctx.atRoot) ctx.atRoot = false;
|
|
12
|
+
let offset = bm.offset;
|
|
13
|
+
let commentEnd = null;
|
|
14
|
+
for (const collItem of bm.items) {
|
|
15
|
+
const { start, key, sep, value } = collItem;
|
|
16
|
+
const keyProps = require_resolve_props.resolveProps(start, {
|
|
17
|
+
indicator: "explicit-key-ind",
|
|
18
|
+
next: key ?? sep?.[0],
|
|
19
|
+
offset,
|
|
20
|
+
onError,
|
|
21
|
+
parentIndent: bm.indent,
|
|
22
|
+
startOnNewline: true
|
|
23
|
+
});
|
|
24
|
+
const implicitKey = !keyProps.found;
|
|
25
|
+
if (implicitKey) {
|
|
26
|
+
if (key) {
|
|
27
|
+
if (key.type === "block-seq") onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
|
28
|
+
else if ("indent" in key && key.indent !== bm.indent) onError(offset, "BAD_INDENT", startColMsg);
|
|
29
|
+
}
|
|
30
|
+
if (!keyProps.anchor && !keyProps.tag && !sep) {
|
|
31
|
+
commentEnd = keyProps.end;
|
|
32
|
+
if (keyProps.comment) if (map.comment) map.comment += "\n" + keyProps.comment;
|
|
33
|
+
else map.comment = keyProps.comment;
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
if (keyProps.newlineAfterProp || require_util_contains_newline.containsNewline(key)) onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
37
|
+
} else if (keyProps.found?.indent !== bm.indent) onError(offset, "BAD_INDENT", startColMsg);
|
|
38
|
+
ctx.atKey = true;
|
|
39
|
+
const keyStart = keyProps.end;
|
|
40
|
+
const keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
|
|
41
|
+
if (ctx.schema.compat) require_util_flow_indent_check.flowIndentCheck(bm.indent, key, onError);
|
|
42
|
+
ctx.atKey = false;
|
|
43
|
+
if (require_util_map_includes.mapIncludes(ctx, map.items, keyNode)) onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
44
|
+
const valueProps = require_resolve_props.resolveProps(sep ?? [], {
|
|
45
|
+
indicator: "map-value-ind",
|
|
46
|
+
next: value,
|
|
47
|
+
offset: keyNode.range[2],
|
|
48
|
+
onError,
|
|
49
|
+
parentIndent: bm.indent,
|
|
50
|
+
startOnNewline: !key || key.type === "block-scalar"
|
|
51
|
+
});
|
|
52
|
+
offset = valueProps.end;
|
|
53
|
+
if (valueProps.found) {
|
|
54
|
+
if (implicitKey) {
|
|
55
|
+
if (value?.type === "block-map" && !valueProps.hasNewline) onError(offset, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings");
|
|
56
|
+
if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024) onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
|
|
57
|
+
}
|
|
58
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep, null, valueProps, onError);
|
|
59
|
+
if (ctx.schema.compat) require_util_flow_indent_check.flowIndentCheck(bm.indent, value, onError);
|
|
60
|
+
offset = valueNode.range[2];
|
|
61
|
+
const pair = new require_Pair.Pair(keyNode, valueNode);
|
|
62
|
+
if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
|
|
63
|
+
map.items.push(pair);
|
|
64
|
+
} else {
|
|
65
|
+
if (implicitKey) onError(keyNode.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values");
|
|
66
|
+
if (valueProps.comment) if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
|
|
67
|
+
else keyNode.comment = valueProps.comment;
|
|
68
|
+
const pair = new require_Pair.Pair(keyNode);
|
|
69
|
+
if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
|
|
70
|
+
map.items.push(pair);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (commentEnd && commentEnd < offset) onError(commentEnd, "IMPOSSIBLE", "Map comment with trailing content");
|
|
74
|
+
map.range = [
|
|
75
|
+
bm.offset,
|
|
76
|
+
offset,
|
|
77
|
+
commentEnd ?? offset
|
|
78
|
+
];
|
|
79
|
+
return map;
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
exports.resolveBlockMap = resolveBlockMap;
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=resolve-block-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-block-map.js","names":["YAMLMap","resolveProps","containsNewline","mapIncludes","Pair"],"sources":["../../../../../../../../../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js"],"sourcesContent":["import { Pair } from '../nodes/Pair.js';\nimport { YAMLMap } from '../nodes/YAMLMap.js';\nimport { resolveProps } from './resolve-props.js';\nimport { containsNewline } from './util-contains-newline.js';\nimport { flowIndentCheck } from './util-flow-indent-check.js';\nimport { mapIncludes } from './util-map-includes.js';\n\nconst startColMsg = 'All mapping items must start at the same column';\nfunction resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError, tag) {\n const NodeClass = tag?.nodeClass ?? YAMLMap;\n const map = new NodeClass(ctx.schema);\n if (ctx.atRoot)\n ctx.atRoot = false;\n let offset = bm.offset;\n let commentEnd = null;\n for (const collItem of bm.items) {\n const { start, key, sep, value } = collItem;\n // key properties\n const keyProps = resolveProps(start, {\n indicator: 'explicit-key-ind',\n next: key ?? sep?.[0],\n offset,\n onError,\n parentIndent: bm.indent,\n startOnNewline: true\n });\n const implicitKey = !keyProps.found;\n if (implicitKey) {\n if (key) {\n if (key.type === 'block-seq')\n onError(offset, 'BLOCK_AS_IMPLICIT_KEY', 'A block sequence may not be used as an implicit map key');\n else if ('indent' in key && key.indent !== bm.indent)\n onError(offset, 'BAD_INDENT', startColMsg);\n }\n if (!keyProps.anchor && !keyProps.tag && !sep) {\n commentEnd = keyProps.end;\n if (keyProps.comment) {\n if (map.comment)\n map.comment += '\\n' + keyProps.comment;\n else\n map.comment = keyProps.comment;\n }\n continue;\n }\n if (keyProps.newlineAfterProp || containsNewline(key)) {\n onError(key ?? start[start.length - 1], 'MULTILINE_IMPLICIT_KEY', 'Implicit keys need to be on a single line');\n }\n }\n else if (keyProps.found?.indent !== bm.indent) {\n onError(offset, 'BAD_INDENT', startColMsg);\n }\n // key value\n ctx.atKey = true;\n const keyStart = keyProps.end;\n const keyNode = key\n ? composeNode(ctx, key, keyProps, onError)\n : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);\n if (ctx.schema.compat)\n flowIndentCheck(bm.indent, key, onError);\n ctx.atKey = false;\n if (mapIncludes(ctx, map.items, keyNode))\n onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique');\n // value properties\n const valueProps = resolveProps(sep ?? [], {\n indicator: 'map-value-ind',\n next: value,\n offset: keyNode.range[2],\n onError,\n parentIndent: bm.indent,\n startOnNewline: !key || key.type === 'block-scalar'\n });\n offset = valueProps.end;\n if (valueProps.found) {\n if (implicitKey) {\n if (value?.type === 'block-map' && !valueProps.hasNewline)\n onError(offset, 'BLOCK_AS_IMPLICIT_KEY', 'Nested mappings are not allowed in compact mappings');\n if (ctx.options.strict &&\n keyProps.start < valueProps.found.offset - 1024)\n onError(keyNode.range, 'KEY_OVER_1024_CHARS', 'The : indicator must be at most 1024 chars after the start of an implicit block mapping key');\n }\n // value value\n const valueNode = value\n ? composeNode(ctx, value, valueProps, onError)\n : composeEmptyNode(ctx, offset, sep, null, valueProps, onError);\n if (ctx.schema.compat)\n flowIndentCheck(bm.indent, value, onError);\n offset = valueNode.range[2];\n const pair = new Pair(keyNode, valueNode);\n if (ctx.options.keepSourceTokens)\n pair.srcToken = collItem;\n map.items.push(pair);\n }\n else {\n // key with no value\n if (implicitKey)\n onError(keyNode.range, 'MISSING_CHAR', 'Implicit map keys need to be followed by map values');\n if (valueProps.comment) {\n if (keyNode.comment)\n keyNode.comment += '\\n' + valueProps.comment;\n else\n keyNode.comment = valueProps.comment;\n }\n const pair = new Pair(keyNode);\n if (ctx.options.keepSourceTokens)\n pair.srcToken = collItem;\n map.items.push(pair);\n }\n }\n if (commentEnd && commentEnd < offset)\n onError(commentEnd, 'IMPOSSIBLE', 'Map comment with trailing content');\n map.range = [bm.offset, offset, commentEnd ?? offset];\n return map;\n}\n\nexport { resolveBlockMap };\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
const require_Scalar = require("../nodes/Scalar.js");
|
|
2
|
+
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js
|
|
3
|
+
function resolveBlockScalar(ctx, scalar, onError) {
|
|
4
|
+
const start = scalar.offset;
|
|
5
|
+
const header = parseBlockScalarHeader(scalar, ctx.options.strict, onError);
|
|
6
|
+
if (!header) return {
|
|
7
|
+
value: "",
|
|
8
|
+
type: null,
|
|
9
|
+
comment: "",
|
|
10
|
+
range: [
|
|
11
|
+
start,
|
|
12
|
+
start,
|
|
13
|
+
start
|
|
14
|
+
]
|
|
15
|
+
};
|
|
16
|
+
const type = header.mode === ">" ? require_Scalar.Scalar.BLOCK_FOLDED : require_Scalar.Scalar.BLOCK_LITERAL;
|
|
17
|
+
const lines = scalar.source ? splitLines(scalar.source) : [];
|
|
18
|
+
let chompStart = lines.length;
|
|
19
|
+
for (let i = lines.length - 1; i >= 0; --i) {
|
|
20
|
+
const content = lines[i][1];
|
|
21
|
+
if (content === "" || content === "\r") chompStart = i;
|
|
22
|
+
else break;
|
|
23
|
+
}
|
|
24
|
+
if (chompStart === 0) {
|
|
25
|
+
const value = header.chomp === "+" && lines.length > 0 ? "\n".repeat(Math.max(1, lines.length - 1)) : "";
|
|
26
|
+
let end = start + header.length;
|
|
27
|
+
if (scalar.source) end += scalar.source.length;
|
|
28
|
+
return {
|
|
29
|
+
value,
|
|
30
|
+
type,
|
|
31
|
+
comment: header.comment,
|
|
32
|
+
range: [
|
|
33
|
+
start,
|
|
34
|
+
end,
|
|
35
|
+
end
|
|
36
|
+
]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
let trimIndent = scalar.indent + header.indent;
|
|
40
|
+
let offset = scalar.offset + header.length;
|
|
41
|
+
let contentStart = 0;
|
|
42
|
+
for (let i = 0; i < chompStart; ++i) {
|
|
43
|
+
const [indent, content] = lines[i];
|
|
44
|
+
if (content === "" || content === "\r") {
|
|
45
|
+
if (header.indent === 0 && indent.length > trimIndent) trimIndent = indent.length;
|
|
46
|
+
} else {
|
|
47
|
+
if (indent.length < trimIndent) onError(offset + indent.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator");
|
|
48
|
+
if (header.indent === 0) trimIndent = indent.length;
|
|
49
|
+
contentStart = i;
|
|
50
|
+
if (trimIndent === 0 && !ctx.atRoot) onError(offset, "BAD_INDENT", "Block scalar values in collections must be indented");
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
offset += indent.length + content.length + 1;
|
|
54
|
+
}
|
|
55
|
+
for (let i = lines.length - 1; i >= chompStart; --i) if (lines[i][0].length > trimIndent) chompStart = i + 1;
|
|
56
|
+
let value = "";
|
|
57
|
+
let sep = "";
|
|
58
|
+
let prevMoreIndented = false;
|
|
59
|
+
for (let i = 0; i < contentStart; ++i) value += lines[i][0].slice(trimIndent) + "\n";
|
|
60
|
+
for (let i = contentStart; i < chompStart; ++i) {
|
|
61
|
+
let [indent, content] = lines[i];
|
|
62
|
+
offset += indent.length + content.length + 1;
|
|
63
|
+
const crlf = content[content.length - 1] === "\r";
|
|
64
|
+
if (crlf) content = content.slice(0, -1);
|
|
65
|
+
/* istanbul ignore if already caught in lexer */
|
|
66
|
+
if (content && indent.length < trimIndent) {
|
|
67
|
+
const message = `Block scalar lines must not be less indented than their ${header.indent ? "explicit indentation indicator" : "first line"}`;
|
|
68
|
+
onError(offset - content.length - (crlf ? 2 : 1), "BAD_INDENT", message);
|
|
69
|
+
indent = "";
|
|
70
|
+
}
|
|
71
|
+
if (type === require_Scalar.Scalar.BLOCK_LITERAL) {
|
|
72
|
+
value += sep + indent.slice(trimIndent) + content;
|
|
73
|
+
sep = "\n";
|
|
74
|
+
} else if (indent.length > trimIndent || content[0] === " ") {
|
|
75
|
+
if (sep === " ") sep = "\n";
|
|
76
|
+
else if (!prevMoreIndented && sep === "\n") sep = "\n\n";
|
|
77
|
+
value += sep + indent.slice(trimIndent) + content;
|
|
78
|
+
sep = "\n";
|
|
79
|
+
prevMoreIndented = true;
|
|
80
|
+
} else if (content === "") if (sep === "\n") value += "\n";
|
|
81
|
+
else sep = "\n";
|
|
82
|
+
else {
|
|
83
|
+
value += sep + content;
|
|
84
|
+
sep = " ";
|
|
85
|
+
prevMoreIndented = false;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
switch (header.chomp) {
|
|
89
|
+
case "-": break;
|
|
90
|
+
case "+":
|
|
91
|
+
for (let i = chompStart; i < lines.length; ++i) value += "\n" + lines[i][0].slice(trimIndent);
|
|
92
|
+
if (value[value.length - 1] !== "\n") value += "\n";
|
|
93
|
+
break;
|
|
94
|
+
default: value += "\n";
|
|
95
|
+
}
|
|
96
|
+
const end = start + header.length + scalar.source.length;
|
|
97
|
+
return {
|
|
98
|
+
value,
|
|
99
|
+
type,
|
|
100
|
+
comment: header.comment,
|
|
101
|
+
range: [
|
|
102
|
+
start,
|
|
103
|
+
end,
|
|
104
|
+
end
|
|
105
|
+
]
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function parseBlockScalarHeader({ offset, props }, strict, onError) {
|
|
109
|
+
/* istanbul ignore if should not happen */
|
|
110
|
+
if (props[0].type !== "block-scalar-header") {
|
|
111
|
+
onError(props[0], "IMPOSSIBLE", "Block scalar header not found");
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
const { source } = props[0];
|
|
115
|
+
const mode = source[0];
|
|
116
|
+
let indent = 0;
|
|
117
|
+
let chomp = "";
|
|
118
|
+
let error = -1;
|
|
119
|
+
for (let i = 1; i < source.length; ++i) {
|
|
120
|
+
const ch = source[i];
|
|
121
|
+
if (!chomp && (ch === "-" || ch === "+")) chomp = ch;
|
|
122
|
+
else {
|
|
123
|
+
const n = Number(ch);
|
|
124
|
+
if (!indent && n) indent = n;
|
|
125
|
+
else if (error === -1) error = offset + i;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (error !== -1) onError(error, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${source}`);
|
|
129
|
+
let hasSpace = false;
|
|
130
|
+
let comment = "";
|
|
131
|
+
let length = source.length;
|
|
132
|
+
for (let i = 1; i < props.length; ++i) {
|
|
133
|
+
const token = props[i];
|
|
134
|
+
switch (token.type) {
|
|
135
|
+
case "space": hasSpace = true;
|
|
136
|
+
case "newline":
|
|
137
|
+
length += token.source.length;
|
|
138
|
+
break;
|
|
139
|
+
case "comment":
|
|
140
|
+
if (strict && !hasSpace) onError(token, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
|
|
141
|
+
length += token.source.length;
|
|
142
|
+
comment = token.source.substring(1);
|
|
143
|
+
break;
|
|
144
|
+
case "error":
|
|
145
|
+
onError(token, "UNEXPECTED_TOKEN", token.message);
|
|
146
|
+
length += token.source.length;
|
|
147
|
+
break;
|
|
148
|
+
/* istanbul ignore next should not happen */
|
|
149
|
+
default: {
|
|
150
|
+
onError(token, "UNEXPECTED_TOKEN", `Unexpected token in block scalar header: ${token.type}`);
|
|
151
|
+
const ts = token.source;
|
|
152
|
+
if (ts && typeof ts === "string") length += ts.length;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
mode,
|
|
158
|
+
indent,
|
|
159
|
+
chomp,
|
|
160
|
+
comment,
|
|
161
|
+
length
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
/** @returns Array of lines split up as `[indent, content]` */
|
|
165
|
+
function splitLines(source) {
|
|
166
|
+
const split = source.split(/\n( *)/);
|
|
167
|
+
const first = split[0];
|
|
168
|
+
const m = first.match(/^( *)/);
|
|
169
|
+
const lines = [m?.[1] ? [m[1], first.slice(m[1].length)] : ["", first]];
|
|
170
|
+
for (let i = 1; i < split.length; i += 2) lines.push([split[i], split[i + 1]]);
|
|
171
|
+
return lines;
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
174
|
+
exports.resolveBlockScalar = resolveBlockScalar;
|
|
175
|
+
|
|
176
|
+
//# sourceMappingURL=resolve-block-scalar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-block-scalar.js","names":["Scalar"],"sources":["../../../../../../../../../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js"],"sourcesContent":["import { Scalar } from '../nodes/Scalar.js';\n\nfunction resolveBlockScalar(ctx, scalar, onError) {\n const start = scalar.offset;\n const header = parseBlockScalarHeader(scalar, ctx.options.strict, onError);\n if (!header)\n return { value: '', type: null, comment: '', range: [start, start, start] };\n const type = header.mode === '>' ? Scalar.BLOCK_FOLDED : Scalar.BLOCK_LITERAL;\n const lines = scalar.source ? splitLines(scalar.source) : [];\n // determine the end of content & start of chomping\n let chompStart = lines.length;\n for (let i = lines.length - 1; i >= 0; --i) {\n const content = lines[i][1];\n if (content === '' || content === '\\r')\n chompStart = i;\n else\n break;\n }\n // shortcut for empty contents\n if (chompStart === 0) {\n const value = header.chomp === '+' && lines.length > 0\n ? '\\n'.repeat(Math.max(1, lines.length - 1))\n : '';\n let end = start + header.length;\n if (scalar.source)\n end += scalar.source.length;\n return { value, type, comment: header.comment, range: [start, end, end] };\n }\n // find the indentation level to trim from start\n let trimIndent = scalar.indent + header.indent;\n let offset = scalar.offset + header.length;\n let contentStart = 0;\n for (let i = 0; i < chompStart; ++i) {\n const [indent, content] = lines[i];\n if (content === '' || content === '\\r') {\n if (header.indent === 0 && indent.length > trimIndent)\n trimIndent = indent.length;\n }\n else {\n if (indent.length < trimIndent) {\n const message = 'Block scalars with more-indented leading empty lines must use an explicit indentation indicator';\n onError(offset + indent.length, 'MISSING_CHAR', message);\n }\n if (header.indent === 0)\n trimIndent = indent.length;\n contentStart = i;\n if (trimIndent === 0 && !ctx.atRoot) {\n const message = 'Block scalar values in collections must be indented';\n onError(offset, 'BAD_INDENT', message);\n }\n break;\n }\n offset += indent.length + content.length + 1;\n }\n // include trailing more-indented empty lines in content\n for (let i = lines.length - 1; i >= chompStart; --i) {\n if (lines[i][0].length > trimIndent)\n chompStart = i + 1;\n }\n let value = '';\n let sep = '';\n let prevMoreIndented = false;\n // leading whitespace is kept intact\n for (let i = 0; i < contentStart; ++i)\n value += lines[i][0].slice(trimIndent) + '\\n';\n for (let i = contentStart; i < chompStart; ++i) {\n let [indent, content] = lines[i];\n offset += indent.length + content.length + 1;\n const crlf = content[content.length - 1] === '\\r';\n if (crlf)\n content = content.slice(0, -1);\n /* istanbul ignore if already caught in lexer */\n if (content && indent.length < trimIndent) {\n const src = header.indent\n ? 'explicit indentation indicator'\n : 'first line';\n const message = `Block scalar lines must not be less indented than their ${src}`;\n onError(offset - content.length - (crlf ? 2 : 1), 'BAD_INDENT', message);\n indent = '';\n }\n if (type === Scalar.BLOCK_LITERAL) {\n value += sep + indent.slice(trimIndent) + content;\n sep = '\\n';\n }\n else if (indent.length > trimIndent || content[0] === '\\t') {\n // more-indented content within a folded block\n if (sep === ' ')\n sep = '\\n';\n else if (!prevMoreIndented && sep === '\\n')\n sep = '\\n\\n';\n value += sep + indent.slice(trimIndent) + content;\n sep = '\\n';\n prevMoreIndented = true;\n }\n else if (content === '') {\n // empty line\n if (sep === '\\n')\n value += '\\n';\n else\n sep = '\\n';\n }\n else {\n value += sep + content;\n sep = ' ';\n prevMoreIndented = false;\n }\n }\n switch (header.chomp) {\n case '-':\n break;\n case '+':\n for (let i = chompStart; i < lines.length; ++i)\n value += '\\n' + lines[i][0].slice(trimIndent);\n if (value[value.length - 1] !== '\\n')\n value += '\\n';\n break;\n default:\n value += '\\n';\n }\n const end = start + header.length + scalar.source.length;\n return { value, type, comment: header.comment, range: [start, end, end] };\n}\nfunction parseBlockScalarHeader({ offset, props }, strict, onError) {\n /* istanbul ignore if should not happen */\n if (props[0].type !== 'block-scalar-header') {\n onError(props[0], 'IMPOSSIBLE', 'Block scalar header not found');\n return null;\n }\n const { source } = props[0];\n const mode = source[0];\n let indent = 0;\n let chomp = '';\n let error = -1;\n for (let i = 1; i < source.length; ++i) {\n const ch = source[i];\n if (!chomp && (ch === '-' || ch === '+'))\n chomp = ch;\n else {\n const n = Number(ch);\n if (!indent && n)\n indent = n;\n else if (error === -1)\n error = offset + i;\n }\n }\n if (error !== -1)\n onError(error, 'UNEXPECTED_TOKEN', `Block scalar header includes extra characters: ${source}`);\n let hasSpace = false;\n let comment = '';\n let length = source.length;\n for (let i = 1; i < props.length; ++i) {\n const token = props[i];\n switch (token.type) {\n case 'space':\n hasSpace = true;\n // fallthrough\n case 'newline':\n length += token.source.length;\n break;\n case 'comment':\n if (strict && !hasSpace) {\n const message = 'Comments must be separated from other tokens by white space characters';\n onError(token, 'MISSING_CHAR', message);\n }\n length += token.source.length;\n comment = token.source.substring(1);\n break;\n case 'error':\n onError(token, 'UNEXPECTED_TOKEN', token.message);\n length += token.source.length;\n break;\n /* istanbul ignore next should not happen */\n default: {\n const message = `Unexpected token in block scalar header: ${token.type}`;\n onError(token, 'UNEXPECTED_TOKEN', message);\n const ts = token.source;\n if (ts && typeof ts === 'string')\n length += ts.length;\n }\n }\n }\n return { mode, indent, chomp, comment, length };\n}\n/** @returns Array of lines split up as `[indent, content]` */\nfunction splitLines(source) {\n const split = source.split(/\\n( *)/);\n const first = split[0];\n const m = first.match(/^( *)/);\n const line0 = m?.[1]\n ? [m[1], first.slice(m[1].length)]\n : ['', first];\n const lines = [line0];\n for (let i = 1; i < split.length; i += 2)\n lines.push([split[i], split[i + 1]]);\n return lines;\n}\n\nexport { resolveBlockScalar };\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_YAMLSeq = require("../nodes/YAMLSeq.js");
|
|
2
|
+
const require_resolve_props = require("./resolve-props.js");
|
|
3
|
+
const require_util_flow_indent_check = require("./util-flow-indent-check.js");
|
|
4
|
+
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js
|
|
5
|
+
function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, tag) {
|
|
6
|
+
const seq = new ((tag?.nodeClass) ?? require_YAMLSeq.YAMLSeq)(ctx.schema);
|
|
7
|
+
if (ctx.atRoot) ctx.atRoot = false;
|
|
8
|
+
if (ctx.atKey) ctx.atKey = false;
|
|
9
|
+
let offset = bs.offset;
|
|
10
|
+
let commentEnd = null;
|
|
11
|
+
for (const { start, value } of bs.items) {
|
|
12
|
+
const props = require_resolve_props.resolveProps(start, {
|
|
13
|
+
indicator: "seq-item-ind",
|
|
14
|
+
next: value,
|
|
15
|
+
offset,
|
|
16
|
+
onError,
|
|
17
|
+
parentIndent: bs.indent,
|
|
18
|
+
startOnNewline: true
|
|
19
|
+
});
|
|
20
|
+
if (!props.found) if (props.anchor || props.tag || value) if (value?.type === "block-seq") onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
|
|
21
|
+
else onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
|
|
22
|
+
else {
|
|
23
|
+
commentEnd = props.end;
|
|
24
|
+
if (props.comment) seq.comment = props.comment;
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError);
|
|
28
|
+
if (ctx.schema.compat) require_util_flow_indent_check.flowIndentCheck(bs.indent, value, onError);
|
|
29
|
+
offset = node.range[2];
|
|
30
|
+
seq.items.push(node);
|
|
31
|
+
}
|
|
32
|
+
seq.range = [
|
|
33
|
+
bs.offset,
|
|
34
|
+
offset,
|
|
35
|
+
commentEnd ?? offset
|
|
36
|
+
];
|
|
37
|
+
return seq;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.resolveBlockSeq = resolveBlockSeq;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=resolve-block-seq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-block-seq.js","names":["YAMLSeq","resolveProps"],"sources":["../../../../../../../../../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js"],"sourcesContent":["import { YAMLSeq } from '../nodes/YAMLSeq.js';\nimport { resolveProps } from './resolve-props.js';\nimport { flowIndentCheck } from './util-flow-indent-check.js';\n\nfunction resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, tag) {\n const NodeClass = tag?.nodeClass ?? YAMLSeq;\n const seq = new NodeClass(ctx.schema);\n if (ctx.atRoot)\n ctx.atRoot = false;\n if (ctx.atKey)\n ctx.atKey = false;\n let offset = bs.offset;\n let commentEnd = null;\n for (const { start, value } of bs.items) {\n const props = resolveProps(start, {\n indicator: 'seq-item-ind',\n next: value,\n offset,\n onError,\n parentIndent: bs.indent,\n startOnNewline: true\n });\n if (!props.found) {\n if (props.anchor || props.tag || value) {\n if (value?.type === 'block-seq')\n onError(props.end, 'BAD_INDENT', 'All sequence items must start at the same column');\n else\n onError(offset, 'MISSING_CHAR', 'Sequence item without - indicator');\n }\n else {\n commentEnd = props.end;\n if (props.comment)\n seq.comment = props.comment;\n continue;\n }\n }\n const node = value\n ? composeNode(ctx, value, props, onError)\n : composeEmptyNode(ctx, props.end, start, null, props, onError);\n if (ctx.schema.compat)\n flowIndentCheck(bs.indent, value, onError);\n offset = node.range[2];\n seq.items.push(node);\n }\n seq.range = [bs.offset, offset, commentEnd ?? offset];\n return seq;\n}\n\nexport { resolveBlockSeq };\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,SAAS,gBAAgB,EAAE,aAAa,oBAAoB,KAAK,IAAI,SAAS,KAAK;CAE/E,MAAM,MAAM,MADM,KAAK,cAAaA,gBAAAA,SACV,IAAI,MAAM;CACpC,IAAI,IAAI,QACJ,IAAI,SAAS;CACjB,IAAI,IAAI,OACJ,IAAI,QAAQ;CAChB,IAAI,SAAS,GAAG;CAChB,IAAI,aAAa;CACjB,KAAK,MAAM,EAAE,OAAO,WAAW,GAAG,OAAO;EACrC,MAAM,QAAQC,sBAAAA,aAAa,OAAO;GAC9B,WAAW;GACX,MAAM;GACN;GACA;GACA,cAAc,GAAG;GACjB,gBAAgB;EACpB,CAAC;EACD,IAAI,CAAC,MAAM,OACP,IAAI,MAAM,UAAU,MAAM,OAAO,OAC7B,IAAI,OAAO,SAAS,aAChB,QAAQ,MAAM,KAAK,cAAc,kDAAkD;OAEnF,QAAQ,QAAQ,gBAAgB,mCAAmC;OAEtE;GACD,aAAa,MAAM;GACnB,IAAI,MAAM,SACN,IAAI,UAAU,MAAM;GACxB;EACJ;EAEJ,MAAM,OAAO,QACP,YAAY,KAAK,OAAO,OAAO,OAAO,IACtC,iBAAiB,KAAK,MAAM,KAAK,OAAO,MAAM,OAAO,OAAO;EAClE,IAAI,IAAI,OAAO,QACX,+BAAA,gBAAgB,GAAG,QAAQ,OAAO,OAAO;EAC7C,SAAS,KAAK,MAAM;EACpB,IAAI,MAAM,KAAK,IAAI;CACvB;CACA,IAAI,QAAQ;EAAC,GAAG;EAAQ;EAAQ,cAAc;CAAM;CACpD,OAAO;AACX"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js
|
|
2
|
+
function resolveEnd(end, offset, reqSpace, onError) {
|
|
3
|
+
let comment = "";
|
|
4
|
+
if (end) {
|
|
5
|
+
let hasSpace = false;
|
|
6
|
+
let sep = "";
|
|
7
|
+
for (const token of end) {
|
|
8
|
+
const { source, type } = token;
|
|
9
|
+
switch (type) {
|
|
10
|
+
case "space":
|
|
11
|
+
hasSpace = true;
|
|
12
|
+
break;
|
|
13
|
+
case "comment": {
|
|
14
|
+
if (reqSpace && !hasSpace) onError(token, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
|
|
15
|
+
const cb = source.substring(1) || " ";
|
|
16
|
+
if (!comment) comment = cb;
|
|
17
|
+
else comment += sep + cb;
|
|
18
|
+
sep = "";
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
case "newline":
|
|
22
|
+
if (comment) sep += source;
|
|
23
|
+
hasSpace = true;
|
|
24
|
+
break;
|
|
25
|
+
default: onError(token, "UNEXPECTED_TOKEN", `Unexpected ${type} at node end`);
|
|
26
|
+
}
|
|
27
|
+
offset += source.length;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
comment,
|
|
32
|
+
offset
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.resolveEnd = resolveEnd;
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=resolve-end.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-end.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js"],"sourcesContent":["function resolveEnd(end, offset, reqSpace, onError) {\n let comment = '';\n if (end) {\n let hasSpace = false;\n let sep = '';\n for (const token of end) {\n const { source, type } = token;\n switch (type) {\n case 'space':\n hasSpace = true;\n break;\n case 'comment': {\n if (reqSpace && !hasSpace)\n onError(token, 'MISSING_CHAR', 'Comments must be separated from other tokens by white space characters');\n const cb = source.substring(1) || ' ';\n if (!comment)\n comment = cb;\n else\n comment += sep + cb;\n sep = '';\n break;\n }\n case 'newline':\n if (comment)\n sep += source;\n hasSpace = true;\n break;\n default:\n onError(token, 'UNEXPECTED_TOKEN', `Unexpected ${type} at node end`);\n }\n offset += source.length;\n }\n }\n return { comment, offset };\n}\n\nexport { resolveEnd };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,WAAW,KAAK,QAAQ,UAAU,SAAS;CAChD,IAAI,UAAU;CACd,IAAI,KAAK;EACL,IAAI,WAAW;EACf,IAAI,MAAM;EACV,KAAK,MAAM,SAAS,KAAK;GACrB,MAAM,EAAE,QAAQ,SAAS;GACzB,QAAQ,MAAR;IACI,KAAK;KACD,WAAW;KACX;IACJ,KAAK,WAAW;KACZ,IAAI,YAAY,CAAC,UACb,QAAQ,OAAO,gBAAgB,wEAAwE;KAC3G,MAAM,KAAK,OAAO,UAAU,CAAC,KAAK;KAClC,IAAI,CAAC,SACD,UAAU;UAEV,WAAW,MAAM;KACrB,MAAM;KACN;IACJ;IACA,KAAK;KACD,IAAI,SACA,OAAO;KACX,WAAW;KACX;IACJ,SACI,QAAQ,OAAO,oBAAoB,cAAc,KAAK,aAAa;GAC3E;GACA,UAAU,OAAO;EACrB;CACJ;CACA,OAAO;EAAE;EAAS;CAAO;AAC7B"}
|