@64mb/freelens-power 1.6.0 → 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 +116 -16
- package/out/renderer/power-logs.css.js.map +1 -1
- package/out/renderer/power-logs.js +1139 -348
- 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,190 @@
|
|
|
1
|
+
const require_identity = require("./nodes/identity.js");
|
|
2
|
+
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js
|
|
3
|
+
var BREAK = Symbol("break visit");
|
|
4
|
+
var SKIP = Symbol("skip children");
|
|
5
|
+
var REMOVE = Symbol("remove node");
|
|
6
|
+
/**
|
|
7
|
+
* Apply a visitor to an AST node or document.
|
|
8
|
+
*
|
|
9
|
+
* Walks through the tree (depth-first) starting from `node`, calling a
|
|
10
|
+
* `visitor` function with three arguments:
|
|
11
|
+
* - `key`: For sequence values and map `Pair`, the node's index in the
|
|
12
|
+
* collection. Within a `Pair`, `'key'` or `'value'`, correspondingly.
|
|
13
|
+
* `null` for the root node.
|
|
14
|
+
* - `node`: The current node.
|
|
15
|
+
* - `path`: The ancestry of the current node.
|
|
16
|
+
*
|
|
17
|
+
* The return value of the visitor may be used to control the traversal:
|
|
18
|
+
* - `undefined` (default): Do nothing and continue
|
|
19
|
+
* - `visit.SKIP`: Do not visit the children of this node, continue with next
|
|
20
|
+
* sibling
|
|
21
|
+
* - `visit.BREAK`: Terminate traversal completely
|
|
22
|
+
* - `visit.REMOVE`: Remove the current node, then continue with the next one
|
|
23
|
+
* - `Node`: Replace the current node, then continue by visiting it
|
|
24
|
+
* - `number`: While iterating the items of a sequence or map, set the index
|
|
25
|
+
* of the next step. This is useful especially if the index of the current
|
|
26
|
+
* node has changed.
|
|
27
|
+
*
|
|
28
|
+
* If `visitor` is a single function, it will be called with all values
|
|
29
|
+
* encountered in the tree, including e.g. `null` values. Alternatively,
|
|
30
|
+
* separate visitor functions may be defined for each `Map`, `Pair`, `Seq`,
|
|
31
|
+
* `Alias` and `Scalar` node. To define the same visitor function for more than
|
|
32
|
+
* one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar)
|
|
33
|
+
* and `Node` (alias, map, seq & scalar) targets. Of all these, only the most
|
|
34
|
+
* specific defined one will be used for each node.
|
|
35
|
+
*/
|
|
36
|
+
function visit(node, visitor) {
|
|
37
|
+
const visitor_ = initVisitor(visitor);
|
|
38
|
+
if (require_identity.isDocument(node)) {
|
|
39
|
+
if (visit_(null, node.contents, visitor_, Object.freeze([node])) === REMOVE) node.contents = null;
|
|
40
|
+
} else visit_(null, node, visitor_, Object.freeze([]));
|
|
41
|
+
}
|
|
42
|
+
/** Terminate visit traversal completely */
|
|
43
|
+
visit.BREAK = BREAK;
|
|
44
|
+
/** Do not visit the children of the current node */
|
|
45
|
+
visit.SKIP = SKIP;
|
|
46
|
+
/** Remove the current node */
|
|
47
|
+
visit.REMOVE = REMOVE;
|
|
48
|
+
function visit_(key, node, visitor, path) {
|
|
49
|
+
const ctrl = callVisitor(key, node, visitor, path);
|
|
50
|
+
if (require_identity.isNode(ctrl) || require_identity.isPair(ctrl)) {
|
|
51
|
+
replaceNode(key, path, ctrl);
|
|
52
|
+
return visit_(key, ctrl, visitor, path);
|
|
53
|
+
}
|
|
54
|
+
if (typeof ctrl !== "symbol") {
|
|
55
|
+
if (require_identity.isCollection(node)) {
|
|
56
|
+
path = Object.freeze(path.concat(node));
|
|
57
|
+
for (let i = 0; i < node.items.length; ++i) {
|
|
58
|
+
const ci = visit_(i, node.items[i], visitor, path);
|
|
59
|
+
if (typeof ci === "number") i = ci - 1;
|
|
60
|
+
else if (ci === BREAK) return BREAK;
|
|
61
|
+
else if (ci === REMOVE) {
|
|
62
|
+
node.items.splice(i, 1);
|
|
63
|
+
i -= 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
} else if (require_identity.isPair(node)) {
|
|
67
|
+
path = Object.freeze(path.concat(node));
|
|
68
|
+
const ck = visit_("key", node.key, visitor, path);
|
|
69
|
+
if (ck === BREAK) return BREAK;
|
|
70
|
+
else if (ck === REMOVE) node.key = null;
|
|
71
|
+
const cv = visit_("value", node.value, visitor, path);
|
|
72
|
+
if (cv === BREAK) return BREAK;
|
|
73
|
+
else if (cv === REMOVE) node.value = null;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return ctrl;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Apply an async visitor to an AST node or document.
|
|
80
|
+
*
|
|
81
|
+
* Walks through the tree (depth-first) starting from `node`, calling a
|
|
82
|
+
* `visitor` function with three arguments:
|
|
83
|
+
* - `key`: For sequence values and map `Pair`, the node's index in the
|
|
84
|
+
* collection. Within a `Pair`, `'key'` or `'value'`, correspondingly.
|
|
85
|
+
* `null` for the root node.
|
|
86
|
+
* - `node`: The current node.
|
|
87
|
+
* - `path`: The ancestry of the current node.
|
|
88
|
+
*
|
|
89
|
+
* The return value of the visitor may be used to control the traversal:
|
|
90
|
+
* - `Promise`: Must resolve to one of the following values
|
|
91
|
+
* - `undefined` (default): Do nothing and continue
|
|
92
|
+
* - `visit.SKIP`: Do not visit the children of this node, continue with next
|
|
93
|
+
* sibling
|
|
94
|
+
* - `visit.BREAK`: Terminate traversal completely
|
|
95
|
+
* - `visit.REMOVE`: Remove the current node, then continue with the next one
|
|
96
|
+
* - `Node`: Replace the current node, then continue by visiting it
|
|
97
|
+
* - `number`: While iterating the items of a sequence or map, set the index
|
|
98
|
+
* of the next step. This is useful especially if the index of the current
|
|
99
|
+
* node has changed.
|
|
100
|
+
*
|
|
101
|
+
* If `visitor` is a single function, it will be called with all values
|
|
102
|
+
* encountered in the tree, including e.g. `null` values. Alternatively,
|
|
103
|
+
* separate visitor functions may be defined for each `Map`, `Pair`, `Seq`,
|
|
104
|
+
* `Alias` and `Scalar` node. To define the same visitor function for more than
|
|
105
|
+
* one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar)
|
|
106
|
+
* and `Node` (alias, map, seq & scalar) targets. Of all these, only the most
|
|
107
|
+
* specific defined one will be used for each node.
|
|
108
|
+
*/
|
|
109
|
+
async function visitAsync(node, visitor) {
|
|
110
|
+
const visitor_ = initVisitor(visitor);
|
|
111
|
+
if (require_identity.isDocument(node)) {
|
|
112
|
+
if (await visitAsync_(null, node.contents, visitor_, Object.freeze([node])) === REMOVE) node.contents = null;
|
|
113
|
+
} else await visitAsync_(null, node, visitor_, Object.freeze([]));
|
|
114
|
+
}
|
|
115
|
+
/** Terminate visit traversal completely */
|
|
116
|
+
visitAsync.BREAK = BREAK;
|
|
117
|
+
/** Do not visit the children of the current node */
|
|
118
|
+
visitAsync.SKIP = SKIP;
|
|
119
|
+
/** Remove the current node */
|
|
120
|
+
visitAsync.REMOVE = REMOVE;
|
|
121
|
+
async function visitAsync_(key, node, visitor, path) {
|
|
122
|
+
const ctrl = await callVisitor(key, node, visitor, path);
|
|
123
|
+
if (require_identity.isNode(ctrl) || require_identity.isPair(ctrl)) {
|
|
124
|
+
replaceNode(key, path, ctrl);
|
|
125
|
+
return visitAsync_(key, ctrl, visitor, path);
|
|
126
|
+
}
|
|
127
|
+
if (typeof ctrl !== "symbol") {
|
|
128
|
+
if (require_identity.isCollection(node)) {
|
|
129
|
+
path = Object.freeze(path.concat(node));
|
|
130
|
+
for (let i = 0; i < node.items.length; ++i) {
|
|
131
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path);
|
|
132
|
+
if (typeof ci === "number") i = ci - 1;
|
|
133
|
+
else if (ci === BREAK) return BREAK;
|
|
134
|
+
else if (ci === REMOVE) {
|
|
135
|
+
node.items.splice(i, 1);
|
|
136
|
+
i -= 1;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
} else if (require_identity.isPair(node)) {
|
|
140
|
+
path = Object.freeze(path.concat(node));
|
|
141
|
+
const ck = await visitAsync_("key", node.key, visitor, path);
|
|
142
|
+
if (ck === BREAK) return BREAK;
|
|
143
|
+
else if (ck === REMOVE) node.key = null;
|
|
144
|
+
const cv = await visitAsync_("value", node.value, visitor, path);
|
|
145
|
+
if (cv === BREAK) return BREAK;
|
|
146
|
+
else if (cv === REMOVE) node.value = null;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return ctrl;
|
|
150
|
+
}
|
|
151
|
+
function initVisitor(visitor) {
|
|
152
|
+
if (typeof visitor === "object" && (visitor.Collection || visitor.Node || visitor.Value)) return Object.assign({
|
|
153
|
+
Alias: visitor.Node,
|
|
154
|
+
Map: visitor.Node,
|
|
155
|
+
Scalar: visitor.Node,
|
|
156
|
+
Seq: visitor.Node
|
|
157
|
+
}, visitor.Value && {
|
|
158
|
+
Map: visitor.Value,
|
|
159
|
+
Scalar: visitor.Value,
|
|
160
|
+
Seq: visitor.Value
|
|
161
|
+
}, visitor.Collection && {
|
|
162
|
+
Map: visitor.Collection,
|
|
163
|
+
Seq: visitor.Collection
|
|
164
|
+
}, visitor);
|
|
165
|
+
return visitor;
|
|
166
|
+
}
|
|
167
|
+
function callVisitor(key, node, visitor, path) {
|
|
168
|
+
if (typeof visitor === "function") return visitor(key, node, path);
|
|
169
|
+
if (require_identity.isMap(node)) return visitor.Map?.(key, node, path);
|
|
170
|
+
if (require_identity.isSeq(node)) return visitor.Seq?.(key, node, path);
|
|
171
|
+
if (require_identity.isPair(node)) return visitor.Pair?.(key, node, path);
|
|
172
|
+
if (require_identity.isScalar(node)) return visitor.Scalar?.(key, node, path);
|
|
173
|
+
if (require_identity.isAlias(node)) return visitor.Alias?.(key, node, path);
|
|
174
|
+
}
|
|
175
|
+
function replaceNode(key, path, node) {
|
|
176
|
+
const parent = path[path.length - 1];
|
|
177
|
+
if (require_identity.isCollection(parent)) parent.items[key] = node;
|
|
178
|
+
else if (require_identity.isPair(parent)) if (key === "key") parent.key = node;
|
|
179
|
+
else parent.value = node;
|
|
180
|
+
else if (require_identity.isDocument(parent)) parent.contents = node;
|
|
181
|
+
else {
|
|
182
|
+
const pt = require_identity.isAlias(parent) ? "alias" : "scalar";
|
|
183
|
+
throw new Error(`Cannot replace node with ${pt} parent`);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
//#endregion
|
|
187
|
+
exports.visit = visit;
|
|
188
|
+
exports.visitAsync = visitAsync;
|
|
189
|
+
|
|
190
|
+
//# sourceMappingURL=visit.js.map
|
package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visit.js","names":["isDocument","isNode","isPair","isCollection","isMap","isSeq","isScalar","isAlias"],"sources":["../../../../../../../../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js"],"sourcesContent":["import { isDocument, isNode, isPair, isCollection, isMap, isSeq, isScalar, isAlias } from './nodes/identity.js';\n\nconst BREAK = Symbol('break visit');\nconst SKIP = Symbol('skip children');\nconst REMOVE = Symbol('remove node');\n/**\n * Apply a visitor to an AST node or document.\n *\n * Walks through the tree (depth-first) starting from `node`, calling a\n * `visitor` function with three arguments:\n * - `key`: For sequence values and map `Pair`, the node's index in the\n * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly.\n * `null` for the root node.\n * - `node`: The current node.\n * - `path`: The ancestry of the current node.\n *\n * The return value of the visitor may be used to control the traversal:\n * - `undefined` (default): Do nothing and continue\n * - `visit.SKIP`: Do not visit the children of this node, continue with next\n * sibling\n * - `visit.BREAK`: Terminate traversal completely\n * - `visit.REMOVE`: Remove the current node, then continue with the next one\n * - `Node`: Replace the current node, then continue by visiting it\n * - `number`: While iterating the items of a sequence or map, set the index\n * of the next step. This is useful especially if the index of the current\n * node has changed.\n *\n * If `visitor` is a single function, it will be called with all values\n * encountered in the tree, including e.g. `null` values. Alternatively,\n * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`,\n * `Alias` and `Scalar` node. To define the same visitor function for more than\n * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar)\n * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most\n * specific defined one will be used for each node.\n */\nfunction visit(node, visitor) {\n const visitor_ = initVisitor(visitor);\n if (isDocument(node)) {\n const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));\n if (cd === REMOVE)\n node.contents = null;\n }\n else\n visit_(null, node, visitor_, Object.freeze([]));\n}\n// Without the `as symbol` casts, TS declares these in the `visit`\n// namespace using `var`, but then complains about that because\n// `unique symbol` must be `const`.\n/** Terminate visit traversal completely */\nvisit.BREAK = BREAK;\n/** Do not visit the children of the current node */\nvisit.SKIP = SKIP;\n/** Remove the current node */\nvisit.REMOVE = REMOVE;\nfunction visit_(key, node, visitor, path) {\n const ctrl = callVisitor(key, node, visitor, path);\n if (isNode(ctrl) || isPair(ctrl)) {\n replaceNode(key, path, ctrl);\n return visit_(key, ctrl, visitor, path);\n }\n if (typeof ctrl !== 'symbol') {\n if (isCollection(node)) {\n path = Object.freeze(path.concat(node));\n for (let i = 0; i < node.items.length; ++i) {\n const ci = visit_(i, node.items[i], visitor, path);\n if (typeof ci === 'number')\n i = ci - 1;\n else if (ci === BREAK)\n return BREAK;\n else if (ci === REMOVE) {\n node.items.splice(i, 1);\n i -= 1;\n }\n }\n }\n else if (isPair(node)) {\n path = Object.freeze(path.concat(node));\n const ck = visit_('key', node.key, visitor, path);\n if (ck === BREAK)\n return BREAK;\n else if (ck === REMOVE)\n node.key = null;\n const cv = visit_('value', node.value, visitor, path);\n if (cv === BREAK)\n return BREAK;\n else if (cv === REMOVE)\n node.value = null;\n }\n }\n return ctrl;\n}\n/**\n * Apply an async visitor to an AST node or document.\n *\n * Walks through the tree (depth-first) starting from `node`, calling a\n * `visitor` function with three arguments:\n * - `key`: For sequence values and map `Pair`, the node's index in the\n * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly.\n * `null` for the root node.\n * - `node`: The current node.\n * - `path`: The ancestry of the current node.\n *\n * The return value of the visitor may be used to control the traversal:\n * - `Promise`: Must resolve to one of the following values\n * - `undefined` (default): Do nothing and continue\n * - `visit.SKIP`: Do not visit the children of this node, continue with next\n * sibling\n * - `visit.BREAK`: Terminate traversal completely\n * - `visit.REMOVE`: Remove the current node, then continue with the next one\n * - `Node`: Replace the current node, then continue by visiting it\n * - `number`: While iterating the items of a sequence or map, set the index\n * of the next step. This is useful especially if the index of the current\n * node has changed.\n *\n * If `visitor` is a single function, it will be called with all values\n * encountered in the tree, including e.g. `null` values. Alternatively,\n * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`,\n * `Alias` and `Scalar` node. To define the same visitor function for more than\n * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar)\n * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most\n * specific defined one will be used for each node.\n */\nasync function visitAsync(node, visitor) {\n const visitor_ = initVisitor(visitor);\n if (isDocument(node)) {\n const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));\n if (cd === REMOVE)\n node.contents = null;\n }\n else\n await visitAsync_(null, node, visitor_, Object.freeze([]));\n}\n// Without the `as symbol` casts, TS declares these in the `visit`\n// namespace using `var`, but then complains about that because\n// `unique symbol` must be `const`.\n/** Terminate visit traversal completely */\nvisitAsync.BREAK = BREAK;\n/** Do not visit the children of the current node */\nvisitAsync.SKIP = SKIP;\n/** Remove the current node */\nvisitAsync.REMOVE = REMOVE;\nasync function visitAsync_(key, node, visitor, path) {\n const ctrl = await callVisitor(key, node, visitor, path);\n if (isNode(ctrl) || isPair(ctrl)) {\n replaceNode(key, path, ctrl);\n return visitAsync_(key, ctrl, visitor, path);\n }\n if (typeof ctrl !== 'symbol') {\n if (isCollection(node)) {\n path = Object.freeze(path.concat(node));\n for (let i = 0; i < node.items.length; ++i) {\n const ci = await visitAsync_(i, node.items[i], visitor, path);\n if (typeof ci === 'number')\n i = ci - 1;\n else if (ci === BREAK)\n return BREAK;\n else if (ci === REMOVE) {\n node.items.splice(i, 1);\n i -= 1;\n }\n }\n }\n else if (isPair(node)) {\n path = Object.freeze(path.concat(node));\n const ck = await visitAsync_('key', node.key, visitor, path);\n if (ck === BREAK)\n return BREAK;\n else if (ck === REMOVE)\n node.key = null;\n const cv = await visitAsync_('value', node.value, visitor, path);\n if (cv === BREAK)\n return BREAK;\n else if (cv === REMOVE)\n node.value = null;\n }\n }\n return ctrl;\n}\nfunction initVisitor(visitor) {\n if (typeof visitor === 'object' &&\n (visitor.Collection || visitor.Node || visitor.Value)) {\n return Object.assign({\n Alias: visitor.Node,\n Map: visitor.Node,\n Scalar: visitor.Node,\n Seq: visitor.Node\n }, visitor.Value && {\n Map: visitor.Value,\n Scalar: visitor.Value,\n Seq: visitor.Value\n }, visitor.Collection && {\n Map: visitor.Collection,\n Seq: visitor.Collection\n }, visitor);\n }\n return visitor;\n}\nfunction callVisitor(key, node, visitor, path) {\n if (typeof visitor === 'function')\n return visitor(key, node, path);\n if (isMap(node))\n return visitor.Map?.(key, node, path);\n if (isSeq(node))\n return visitor.Seq?.(key, node, path);\n if (isPair(node))\n return visitor.Pair?.(key, node, path);\n if (isScalar(node))\n return visitor.Scalar?.(key, node, path);\n if (isAlias(node))\n return visitor.Alias?.(key, node, path);\n return undefined;\n}\nfunction replaceNode(key, path, node) {\n const parent = path[path.length - 1];\n if (isCollection(parent)) {\n parent.items[key] = node;\n }\n else if (isPair(parent)) {\n if (key === 'key')\n parent.key = node;\n else\n parent.value = node;\n }\n else if (isDocument(parent)) {\n parent.contents = node;\n }\n else {\n const pt = isAlias(parent) ? 'alias' : 'scalar';\n throw new Error(`Cannot replace node with ${pt} parent`);\n }\n}\n\nexport { visit, visitAsync };\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_identity = require("./dist/nodes/identity.js");
|
|
2
|
+
const require_visit = require("./dist/visit.js");
|
|
3
|
+
require("./dist/nodes/Alias.js");
|
|
4
|
+
require("./dist/nodes/Scalar.js");
|
|
5
|
+
require("./dist/nodes/Pair.js");
|
|
6
|
+
require("./dist/nodes/YAMLMap.js");
|
|
7
|
+
require("./dist/nodes/YAMLSeq.js");
|
|
8
|
+
require("./dist/schema/Schema.js");
|
|
9
|
+
require("./dist/doc/Document.js");
|
|
10
|
+
require("./dist/errors.js");
|
|
11
|
+
require("./dist/compose/composer.js");
|
|
12
|
+
require("./dist/parse/lexer.js");
|
|
13
|
+
require("./dist/parse/line-counter.js");
|
|
14
|
+
require("./dist/parse/parser.js");
|
|
15
|
+
const require_public_api = require("./dist/public-api.js");
|
|
16
|
+
require("./dist/index.js");
|
|
17
|
+
exports.isAlias = require_identity.isAlias;
|
|
18
|
+
exports.isMap = require_identity.isMap;
|
|
19
|
+
exports.isNode = require_identity.isNode;
|
|
20
|
+
exports.isScalar = require_identity.isScalar;
|
|
21
|
+
exports.isSeq = require_identity.isSeq;
|
|
22
|
+
exports.parseAllDocuments = require_public_api.parseAllDocuments;
|
|
23
|
+
exports.parseDocument = require_public_api.parseDocument;
|
|
24
|
+
exports.visit = require_visit.visit;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.js","names":[],"sources":["../../package.json"],"sourcesContent":["{\n \"name\": \"@64mb/freelens-power\",\n \"version\": \"1.7.0\",\n \"description\": \"Power tools for Freelens Kubernetes IDE\",\n \"main\": \"out/main/index.js\",\n \"renderer\": \"out/renderer/index.js\",\n \"files\": [\n \"out/**/*\",\n \"!out/**/duckdb/**\",\n \"THIRD_PARTY_LICENSES\"\n ],\n \"engines\": {\n \"node\": \">= 22.0.0\",\n \"freelens\": \"^1.8.0\"\n },\n \"copyright\": \"© 2025-2026 Freelens Authors\",\n \"license\": \"Apache-2.0\",\n \"author\": \"64mb\",\n \"publishConfig\": {\n \"access\": \"public\",\n \"registry\": \"https://registry.npmjs.org/\"\n },\n \"scripts\": {\n \"biome\": \"pnpm dlx @biomejs/biome@2.5.1\",\n \"biome:check\": \"pnpm biome check\",\n \"biome:fix\": \"pnpm biome check --fix\",\n \"lint\": \"pnpm lint:check\",\n \"lint:check\": \"pnpm biome:check\",\n \"lint:fix\": \"pnpm biome:fix\",\n \"test\": \"pnpm test:unit\",\n \"test:unit\": \"vitest run\",\n \"type:check\": \"tsc --noEmit -p tsconfig.json --composite false\",\n \"prebuild\": \"pnpm type:check\",\n \"build\": \"electron-vite build\",\n \"build:production\": \"VITE_PRESERVE_MODULES=false electron-vite build\",\n \"bump-version\": \"pnpm version --no-commit-hooks --no-git-tag-version\",\n \"pack:dev\": \"pnpm build && pnpm pack\",\n \"clean\": \"pnpm clean:out\",\n \"clean:node_modules\": \"pnpm dlx shx@0.4.0 rm -rf node_modules\",\n \"clean:out\": \"pnpm dlx shx@0.4.0 rm -rf out\",\n \"clean:tgz\": \"pnpm dlx shx@0.4.0 rm -f \\\"*.tgz\\\"\",\n \"clean:all\": \"pnpm \\\"/^clean:(node_modules|out|tgz)\\\\$/\\\"\",\n \"dev\": \"electron-vite build --watch\",\n \"test:e2e\": \"playwright test --config e2e/playwright.config.ts\",\n \"test:e2e:provision\": \"node e2e/provision.mjs\",\n \"type:check:e2e\": \"tsc -p e2e/tsconfig.json\",\n \"test:packaging\": \"pnpm build && node --test build/power-logs-assets.test.mjs\"\n },\n \"devDependencies\": {\n \"@babel/plugin-proposal-decorators\": \"^8.0.2\",\n \"@electron-toolkit/tsconfig\": \"^2.0.0\",\n \"@freelensapp/extensions\": \"^1.10.2\",\n \"@playwright/test\": \"1.64.1\",\n \"@testing-library/react\": \"^12.1.5\",\n \"@types/node\": \"~24.12.4\",\n \"@types/react\": \"^17.0.93\",\n \"@types/ws\": \"^8.18.2\",\n \"@vitejs/plugin-react\": \"^6.0.3\",\n \"electron\": \"41.9.0\",\n \"electron-vite\": \"^5.0.0\",\n \"jsdom\": \"^29.1.1\",\n \"mobx\": \"6.13.7\",\n \"mobx-react\": \"7.6.0\",\n \"react\": \"17.0.2\",\n \"react-dom\": \"17.0.2\",\n \"typescript\": \"5.9.3\",\n \"vite\": \"^8.1.2\",\n \"vitest\": \"^4.1.9\"\n },\n \"keywords\": [\n \"extension\",\n \"freelensapp\",\n \"lens\",\n \"openlens\",\n \"freelens\"\n ],\n \"packageManager\": \"pnpm@10.34.4+sha512.8768be55200ae3f2226b6527fcca2687e14bc4e5f12d7721a0f25da3df47915177058648db4177baf348120fa0ba2752d8d8d93f6beaf1fe64ae18da8de961af\",\n \"dependencies\": {\n \"markdown-it\": \"15.0.2\",\n \"react-select\": \"5.10.2\",\n \"ws\": \"8.21.0\",\n \"yaml\": \"2.9.1\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/64mb/freelens-power.git\"\n },\n \"homepage\": \"https://github.com/64mb/freelens-power\",\n \"bugs\": {\n \"url\": \"https://github.com/64mb/freelens-power/issues\"\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const require_extensions = require("./_virtual/_global-external_@freelensapp/extensions.js");
|
|
2
|
+
const require__global_external_mobx = require("./_virtual/_global-external_mobx.js");
|
|
3
|
+
const require_power_preferences_store = require("./src/common/store/power-preferences-store.js");
|
|
4
|
+
const require_button_styles = require("./button-styles.js");
|
|
5
|
+
const require_floating_action_transitions = require("./floating-action-transitions.js");
|
|
6
|
+
const require_native_resource_removals = require("./native-resource-removals.js");
|
|
7
|
+
const require_pod_removal_confirmation = require("./pod-removal-confirmation.js");
|
|
8
|
+
const require_secret_dialog_customization = require("./secret-dialog-customization.js");
|
|
9
|
+
//#region src/renderer/pod-bulk-customization.ts
|
|
10
|
+
function startPodBulkCustomization() {
|
|
11
|
+
const preferences = require_power_preferences_store.PowerPreferencesStore.getInstanceOrCreate();
|
|
12
|
+
let stopButtons;
|
|
13
|
+
let stopTransitions;
|
|
14
|
+
let stopSecretDialog;
|
|
15
|
+
let stopConfirmation;
|
|
16
|
+
const dispose = () => {
|
|
17
|
+
stopTransitions?.();
|
|
18
|
+
stopTransitions = void 0;
|
|
19
|
+
stopSecretDialog?.();
|
|
20
|
+
stopSecretDialog = void 0;
|
|
21
|
+
stopConfirmation?.();
|
|
22
|
+
stopButtons?.();
|
|
23
|
+
stopConfirmation = void 0;
|
|
24
|
+
stopButtons = void 0;
|
|
25
|
+
};
|
|
26
|
+
const stop = require__global_external_mobx.reaction(() => preferences.nodeBulkActions !== false, (enabled) => {
|
|
27
|
+
dispose();
|
|
28
|
+
stopButtons = require_button_styles.startPowerButtonStyles(enabled);
|
|
29
|
+
stopTransitions = require_floating_action_transitions.startFloatingActionTransitions(enabled);
|
|
30
|
+
if (enabled) {
|
|
31
|
+
stopSecretDialog = require_secret_dialog_customization.startSecretDialogCustomization();
|
|
32
|
+
stopConfirmation = require_pod_removal_confirmation.startPodRemovalConfirmation({
|
|
33
|
+
getSelectedResourceNames: (root) => {
|
|
34
|
+
const key = require_native_resource_removals.nativeResourceRemovals[root]?.store;
|
|
35
|
+
if (!key) return;
|
|
36
|
+
return require_extensions.Renderer.K8sApi[key]?.selectedItems?.map((item) => item.getName());
|
|
37
|
+
},
|
|
38
|
+
getSelectedNames: () => require_extensions.Renderer.K8sApi.podsStore.selectedItems.map((pod) => pod.getName()),
|
|
39
|
+
getSelectedSecretNames: () => require_extensions.Renderer.K8sApi.secretsStore.selectedItems.map((secret) => secret.getName())
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}, { fireImmediately: true });
|
|
43
|
+
return () => {
|
|
44
|
+
stop();
|
|
45
|
+
dispose();
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.startPodBulkCustomization = startPodBulkCustomization;
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=pod-bulk-customization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pod-bulk-customization.js","names":[],"sources":["../../src/renderer/pod-bulk-customization.ts"],"sourcesContent":["import { Renderer } from \"@freelensapp/extensions\";\nimport { reaction } from \"mobx\";\nimport { PowerPreferencesStore } from \"../common/store/power-preferences-store\";\nimport { startPowerButtonStyles } from \"./button-styles\";\nimport { startFloatingActionTransitions } from \"./floating-action-transitions\";\nimport { nativeResourceRemovals } from \"./native-resource-removals\";\nimport { startPodRemovalConfirmation } from \"./pod-removal-confirmation\";\nimport { startSecretDialogCustomization } from \"./secret-dialog-customization\";\n\nexport function startPodBulkCustomization(): () => void {\n const preferences = PowerPreferencesStore.getInstanceOrCreate<PowerPreferencesStore>();\n let stopButtons: (() => void) | undefined;\n let stopTransitions: (() => void) | undefined;\n let stopSecretDialog: (() => void) | undefined;\n let stopConfirmation: (() => void) | undefined;\n const dispose = () => {\n stopTransitions?.();\n stopTransitions = undefined;\n stopSecretDialog?.();\n stopSecretDialog = undefined;\n stopConfirmation?.();\n stopButtons?.();\n stopConfirmation = undefined;\n stopButtons = undefined;\n };\n const stop = reaction(\n () => preferences.nodeBulkActions !== false,\n (enabled) => {\n dispose();\n stopButtons = startPowerButtonStyles(enabled);\n stopTransitions = startFloatingActionTransitions(enabled);\n if (enabled) {\n stopSecretDialog = startSecretDialogCustomization();\n stopConfirmation = startPodRemovalConfirmation({\n getSelectedResourceNames: (root) => {\n const key = nativeResourceRemovals[root]?.store;\n if (!key) return;\n const stores = Renderer.K8sApi as unknown as Record<\n string,\n { selectedItems?: { getName(): string }[] } | undefined\n >;\n return stores[key]?.selectedItems?.map((item) => item.getName());\n },\n getSelectedNames: () => Renderer.K8sApi.podsStore.selectedItems.map((pod) => pod.getName()),\n getSelectedSecretNames: () => Renderer.K8sApi.secretsStore.selectedItems.map((secret) => secret.getName()),\n });\n }\n },\n { fireImmediately: true },\n );\n return () => {\n stop();\n dispose();\n };\n}\n"],"mappings":";;;;;;;;;AASA,SAAgB,4BAAwC;CACtD,MAAM,cAAc,gCAAA,sBAAsB,oBAA2C;CACrF,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,MAAM,gBAAgB;EACpB,kBAAkB;EAClB,kBAAkB,KAAA;EAClB,mBAAmB;EACnB,mBAAmB,KAAA;EACnB,mBAAmB;EACnB,cAAc;EACd,mBAAmB,KAAA;EACnB,cAAc,KAAA;CAChB;CACA,MAAM,OAAO,8BAAA,eACL,YAAY,oBAAoB,QACrC,YAAY;EACX,QAAQ;EACR,cAAc,sBAAA,uBAAuB,OAAO;EAC5C,kBAAkB,oCAAA,+BAA+B,OAAO;EACxD,IAAI,SAAS;GACX,mBAAmB,oCAAA,+BAA+B;GAClD,mBAAmB,iCAAA,4BAA4B;IAC7C,2BAA2B,SAAS;KAClC,MAAM,MAAM,iCAAA,uBAAuB,KAAK,EAAE;KAC1C,IAAI,CAAC,KAAK;KAKV,OAJe,mBAAA,SAAS,OAIV,IAAI,EAAE,eAAe,KAAK,SAAS,KAAK,QAAQ,CAAC;IACjE;IACA,wBAAwB,mBAAA,SAAS,OAAO,UAAU,cAAc,KAAK,QAAQ,IAAI,QAAQ,CAAC;IAC1F,8BAA8B,mBAAA,SAAS,OAAO,aAAa,cAAc,KAAK,WAAW,OAAO,QAAQ,CAAC;GAC3G,CAAC;EACH;CACF,GACA,EAAE,iBAAiB,KAAK,CAC1B;CACA,aAAa;EACX,KAAK;EACL,QAAQ;CACV;AACF"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
const require_extensions = require("./_virtual/_global-external_@freelensapp/extensions.js");
|
|
2
|
+
const require__global_external_mobx = require("./_virtual/_global-external_mobx.js");
|
|
3
|
+
const require__global_external_react_dom = require("./_virtual/_global-external_react-dom.js");
|
|
4
|
+
const require_jsx_runtime = require("./_virtual/_global-external_react/jsx-runtime.js");
|
|
5
|
+
//#region src/renderer/pod-details-enhancements.tsx
|
|
6
|
+
var cellMarker = "data-power-pod-name";
|
|
7
|
+
var hoverMarker = "data-power-pod-name-hover";
|
|
8
|
+
var selector = ".KubeObjectDetails :is(.DeploymentDetails, .ReplicaSetDetails, .StatefulSetDetails, .DaemonSetDetails, .JobDetails, .CronJobDetails, .ReplicationControllerDetails) .PodDetailsList .TableRow .TableCell.name a[href]";
|
|
9
|
+
function podPath(link) {
|
|
10
|
+
try {
|
|
11
|
+
const path = new URL(link.href, window.location.href).searchParams.get("kube-details");
|
|
12
|
+
return path && /^\/api\/v1\/namespaces\/[^/]+\/pods\/[^/]+$/.test(path) ? path : void 0;
|
|
13
|
+
} catch {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function startPodDetailsEnhancements() {
|
|
18
|
+
if (process.isMainFrame !== false) return () => {};
|
|
19
|
+
const mounted = /* @__PURE__ */ new Map();
|
|
20
|
+
const style = document.createElement("style");
|
|
21
|
+
style.dataset.freelensPower = "pod-details-enhancements";
|
|
22
|
+
style.textContent = `
|
|
23
|
+
[${cellMarker}] > .power-pod-status { display:inline-flex;align-items:center;vertical-align:middle;margin-right:8px; }
|
|
24
|
+
[${cellMarker}] > .power-pod-status .StatusBrick { margin-right:0; }
|
|
25
|
+
[${hoverMarker}]:hover { background-color:transparent!important; }
|
|
26
|
+
`;
|
|
27
|
+
document.head.append(style);
|
|
28
|
+
let stopped = false;
|
|
29
|
+
let scheduled = false;
|
|
30
|
+
const remove = (link, item) => {
|
|
31
|
+
require__global_external_react_dom.default.unmountComponentAtNode(item.host);
|
|
32
|
+
item.host.remove();
|
|
33
|
+
item.cell.removeAttribute(cellMarker);
|
|
34
|
+
for (const badge of item.badges) badge.removeAttribute(hoverMarker);
|
|
35
|
+
mounted.delete(link);
|
|
36
|
+
};
|
|
37
|
+
const update = () => {
|
|
38
|
+
scheduled = false;
|
|
39
|
+
if (stopped) return;
|
|
40
|
+
const pods = new Map(require_extensions.Renderer.K8sApi.podsStore.items.map((pod) => [pod.selfLink, pod]));
|
|
41
|
+
const links = new Set(document.querySelectorAll(selector));
|
|
42
|
+
for (const [link, item] of mounted) if (!links.has(link) || !pods.has(podPath(link) ?? "")) remove(link, item);
|
|
43
|
+
for (const link of links) {
|
|
44
|
+
const path = podPath(link);
|
|
45
|
+
const pod = path ? pods.get(path) : void 0;
|
|
46
|
+
const cell = link.closest(".TableCell.name");
|
|
47
|
+
if (!pod || !cell) continue;
|
|
48
|
+
let item = mounted.get(link);
|
|
49
|
+
if (!item) {
|
|
50
|
+
const host = document.createElement("span");
|
|
51
|
+
host.className = "power-pod-status";
|
|
52
|
+
const badges = [link.parentElement, link.firstElementChild].filter((element) => !!element && element !== cell);
|
|
53
|
+
item = {
|
|
54
|
+
host,
|
|
55
|
+
cell,
|
|
56
|
+
badges,
|
|
57
|
+
signature: ""
|
|
58
|
+
};
|
|
59
|
+
cell.setAttribute(cellMarker, "");
|
|
60
|
+
for (const badge of badges) badge.setAttribute(hoverMarker, "");
|
|
61
|
+
cell.prepend(host);
|
|
62
|
+
mounted.set(link, item);
|
|
63
|
+
}
|
|
64
|
+
const status = pod.getStatus();
|
|
65
|
+
const message = pod.getStatusMessage();
|
|
66
|
+
const signature = JSON.stringify([
|
|
67
|
+
path,
|
|
68
|
+
status,
|
|
69
|
+
message
|
|
70
|
+
]);
|
|
71
|
+
if (signature === item.signature) continue;
|
|
72
|
+
item.signature = signature;
|
|
73
|
+
require__global_external_react_dom.default.render(/* @__PURE__ */ require_jsx_runtime.jsx(require_extensions.Renderer.Component.StatusBrick, {
|
|
74
|
+
className: status.toLowerCase(),
|
|
75
|
+
tooltip: message
|
|
76
|
+
}), item.host);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const schedule = () => {
|
|
80
|
+
if (scheduled || stopped) return;
|
|
81
|
+
scheduled = true;
|
|
82
|
+
queueMicrotask(update);
|
|
83
|
+
};
|
|
84
|
+
const observer = new MutationObserver(schedule);
|
|
85
|
+
observer.observe(document.body, {
|
|
86
|
+
subtree: true,
|
|
87
|
+
childList: true,
|
|
88
|
+
attributes: true,
|
|
89
|
+
attributeFilter: ["href"]
|
|
90
|
+
});
|
|
91
|
+
const stopReaction = require__global_external_mobx.reaction(() => [require_extensions.Renderer.Catalog.activeCluster.get()?.metadata.uid, require_extensions.Renderer.K8sApi.podsStore.items.map((pod) => [
|
|
92
|
+
pod.selfLink,
|
|
93
|
+
pod.getStatus(),
|
|
94
|
+
pod.getStatusMessage()
|
|
95
|
+
])], schedule, { fireImmediately: true });
|
|
96
|
+
return () => {
|
|
97
|
+
stopped = true;
|
|
98
|
+
observer.disconnect();
|
|
99
|
+
stopReaction();
|
|
100
|
+
for (const [link, item] of mounted) remove(link, item);
|
|
101
|
+
style.remove();
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
exports.startPodDetailsEnhancements = startPodDetailsEnhancements;
|
|
106
|
+
|
|
107
|
+
//# sourceMappingURL=pod-details-enhancements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pod-details-enhancements.js","names":[],"sources":["../../src/renderer/pod-details-enhancements.tsx"],"sourcesContent":["import { Renderer } from \"@freelensapp/extensions\";\nimport { reaction } from \"mobx\";\nimport ReactDOM from \"react-dom\";\n\nconst cellMarker = \"data-power-pod-name\";\nconst hoverMarker = \"data-power-pod-name-hover\";\nconst selector =\n \".KubeObjectDetails :is(.DeploymentDetails, .ReplicaSetDetails, .StatefulSetDetails, .DaemonSetDetails, .JobDetails, .CronJobDetails, .ReplicationControllerDetails) .PodDetailsList .TableRow .TableCell.name a[href]\";\n\ntype Mounted = {\n host: HTMLSpanElement;\n cell: HTMLElement;\n badges: Element[];\n signature: string;\n};\n\nfunction podPath(link: HTMLAnchorElement): string | undefined {\n try {\n const path = new URL(link.href, window.location.href).searchParams.get(\"kube-details\");\n return path && /^\\/api\\/v1\\/namespaces\\/[^/]+\\/pods\\/[^/]+$/.test(path) ? path : undefined;\n } catch {\n return;\n }\n}\n\nexport function startPodDetailsEnhancements(): () => void {\n if (process.isMainFrame !== false) return () => {};\n const mounted = new Map<HTMLAnchorElement, Mounted>();\n const style = document.createElement(\"style\");\n style.dataset.freelensPower = \"pod-details-enhancements\";\n style.textContent = `\n [${cellMarker}] > .power-pod-status { display:inline-flex;align-items:center;vertical-align:middle;margin-right:8px; }\n [${cellMarker}] > .power-pod-status .StatusBrick { margin-right:0; }\n [${hoverMarker}]:hover { background-color:transparent!important; }\n `;\n document.head.append(style);\n let stopped = false;\n let scheduled = false;\n const remove = (link: HTMLAnchorElement, item: Mounted) => {\n ReactDOM.unmountComponentAtNode(item.host);\n item.host.remove();\n item.cell.removeAttribute(cellMarker);\n for (const badge of item.badges) badge.removeAttribute(hoverMarker);\n mounted.delete(link);\n };\n const update = () => {\n scheduled = false;\n if (stopped) return;\n const pods = new Map(Renderer.K8sApi.podsStore.items.map((pod) => [pod.selfLink, pod]));\n const links = new Set(document.querySelectorAll<HTMLAnchorElement>(selector));\n for (const [link, item] of mounted) {\n if (!links.has(link) || !pods.has(podPath(link) ?? \"\")) remove(link, item);\n }\n for (const link of links) {\n const path = podPath(link);\n const pod = path ? pods.get(path) : undefined;\n const cell = link.closest<HTMLElement>(\".TableCell.name\");\n if (!pod || !cell) continue;\n let item = mounted.get(link);\n if (!item) {\n const host = document.createElement(\"span\");\n host.className = \"power-pod-status\";\n const badges = [link.parentElement, link.firstElementChild].filter(\n (element): element is HTMLElement => !!element && element !== cell,\n );\n item = { host, cell, badges, signature: \"\" };\n cell.setAttribute(cellMarker, \"\");\n for (const badge of badges) badge.setAttribute(hoverMarker, \"\");\n cell.prepend(host);\n mounted.set(link, item);\n }\n const status = pod.getStatus();\n const message = pod.getStatusMessage();\n const signature = JSON.stringify([path, status, message]);\n if (signature === item.signature) continue;\n item.signature = signature;\n ReactDOM.render(<Renderer.Component.StatusBrick className={status.toLowerCase()} tooltip={message} />, item.host);\n }\n };\n const schedule = () => {\n if (scheduled || stopped) return;\n scheduled = true;\n queueMicrotask(update);\n };\n const observer = new MutationObserver(schedule);\n observer.observe(document.body, { subtree: true, childList: true, attributes: true, attributeFilter: [\"href\"] });\n const stopReaction = reaction(\n () => [\n Renderer.Catalog.activeCluster.get()?.metadata.uid,\n Renderer.K8sApi.podsStore.items.map((pod) => [pod.selfLink, pod.getStatus(), pod.getStatusMessage()]),\n ],\n schedule,\n { fireImmediately: true },\n );\n return () => {\n stopped = true;\n observer.disconnect();\n stopReaction();\n for (const [link, item] of mounted) remove(link, item);\n style.remove();\n };\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
const require_native_resource_removals = require("./native-resource-removals.js");
|
|
2
|
+
//#region src/renderer/pod-removal-confirmation.ts
|
|
3
|
+
function summary(message) {
|
|
4
|
+
const bold = [...message.children];
|
|
5
|
+
if (bold.some((element) => element.tagName !== "B" || element.children.length)) return;
|
|
6
|
+
const count = bold.length === 1 ? 1 : Number(bold[0]?.textContent);
|
|
7
|
+
const names = (bold[count === 1 && bold.length === 1 ? 0 : 1]?.textContent ?? "").split(", ");
|
|
8
|
+
const remaining = bold.length === 3 ? Number(bold[2].textContent) : 0;
|
|
9
|
+
if (!Number.isSafeInteger(count) || count < 1 || !Number.isSafeInteger(remaining) || remaining < 0 || names.length + remaining !== count || names.some((name) => !name || name.length > 1024 || /[\u0000-\u001f\u007f]/.test(name))) return;
|
|
10
|
+
const expected = count === 1 ? `Remove item ${names[0]}?` : `Remove ${count} items ${names.join(", ")}${remaining ? `, and ${remaining} more` : ""}?`;
|
|
11
|
+
if (message.textContent !== expected) return;
|
|
12
|
+
return {
|
|
13
|
+
count,
|
|
14
|
+
names,
|
|
15
|
+
remaining
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function startPodRemovalConfirmation(options = {}) {
|
|
19
|
+
const style = document.createElement("style");
|
|
20
|
+
style.dataset.freelensPower = "pod-removal-confirmation";
|
|
21
|
+
const scope = ".ConfirmDialog:has(.power-pod-removal-summary)";
|
|
22
|
+
style.textContent = `
|
|
23
|
+
${scope} .power-pod-removal-original { display: none; }
|
|
24
|
+
${scope} > .box { max-width: min(720px,calc(100vw - 32px)); min-width: min(360px,calc(100vw - 32px)); }
|
|
25
|
+
${scope} .confirm-content { align-items: flex-start; gap: 12px; }
|
|
26
|
+
${scope} .confirm-content > .Icon { flex-shrink: 0; margin: 2px 0 0; }
|
|
27
|
+
.power-pod-removal-summary { min-width: 0; overflow-wrap: anywhere; }
|
|
28
|
+
.power-pod-removal-summary ul { list-style: disc; margin: 8px 0; padding-left: 24px; max-height: 40vh; overflow: auto; }
|
|
29
|
+
.power-pod-removal-summary li { display: list-item; margin: 4px 0; }
|
|
30
|
+
.power-pod-removal-toggle { appearance: none; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
|
|
31
|
+
.power-pod-removal-toggle:hover { text-decoration: underline; }
|
|
32
|
+
.power-pod-removal-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
|
|
33
|
+
.power-pod-removal-remaining { color: var(--colorError); }
|
|
34
|
+
:root ${scope} .Button.ok { display: inline-flex; align-items: center; gap: 6px; background: var(--colorError); color: #fff !important; }
|
|
35
|
+
:root ${scope} .Button.ok:hover { background: color-mix(in srgb,var(--colorError) 88%,black); }
|
|
36
|
+
.power-pod-removal-trash { --size: 18px; }
|
|
37
|
+
`;
|
|
38
|
+
document.head.append(style);
|
|
39
|
+
let selectedNames;
|
|
40
|
+
let armed = false;
|
|
41
|
+
let resource = require_native_resource_removals.nativeResourceRemovals.Pods;
|
|
42
|
+
let stopped = false;
|
|
43
|
+
let expiration;
|
|
44
|
+
let current;
|
|
45
|
+
const restore = () => {
|
|
46
|
+
if (!current) return;
|
|
47
|
+
current.message.classList.remove("power-pod-removal-original");
|
|
48
|
+
current.replacement.remove();
|
|
49
|
+
current.icon.remove();
|
|
50
|
+
current = void 0;
|
|
51
|
+
};
|
|
52
|
+
const reconcile = () => {
|
|
53
|
+
if (stopped) return;
|
|
54
|
+
const dialog = document.querySelector(".ConfirmDialog[data-testid=\"confirmation-dialog\"]");
|
|
55
|
+
if (current) {
|
|
56
|
+
if (current.dialog === dialog && current.message.isConnected && current.replacement.isConnected && current.text === current.message.textContent) return;
|
|
57
|
+
restore();
|
|
58
|
+
}
|
|
59
|
+
if (!armed || !dialog) return;
|
|
60
|
+
const message = dialog.querySelector(".confirm-content > p");
|
|
61
|
+
const button = dialog.querySelector(".confirm-buttons .Button.ok[data-testid=\"confirm\"]");
|
|
62
|
+
const parsed = message && summary(message);
|
|
63
|
+
if (!message || !button || button.textContent !== "Remove" || !parsed) return;
|
|
64
|
+
armed = false;
|
|
65
|
+
const replacement = document.createElement("div");
|
|
66
|
+
replacement.className = "power-pod-removal-summary";
|
|
67
|
+
const heading = document.createElement("p");
|
|
68
|
+
heading.textContent = `Remove ${parsed.count} ${parsed.count === 1 ? resource.singular : resource.plural}?`;
|
|
69
|
+
const list = document.createElement("ul");
|
|
70
|
+
list.id = "power-pod-removal-names";
|
|
71
|
+
const fullNames = selectedNames?.length === parsed.count && parsed.names.every((name, index) => selectedNames?.[index] === name) ? selectedNames : void 0;
|
|
72
|
+
selectedNames = void 0;
|
|
73
|
+
const renderNames = (names) => {
|
|
74
|
+
list.replaceChildren();
|
|
75
|
+
for (const name of names) {
|
|
76
|
+
const item = document.createElement("li");
|
|
77
|
+
const code = document.createElement("code");
|
|
78
|
+
code.textContent = name;
|
|
79
|
+
item.append(code);
|
|
80
|
+
list.append(item);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
renderNames(parsed.names);
|
|
84
|
+
replacement.append(heading, list);
|
|
85
|
+
if (parsed.remaining) {
|
|
86
|
+
const tail = document.createElement("p");
|
|
87
|
+
const number = document.createElement("b");
|
|
88
|
+
number.className = "power-pod-removal-remaining";
|
|
89
|
+
number.textContent = String(parsed.remaining);
|
|
90
|
+
tail.append("and ", number, " more");
|
|
91
|
+
if (fullNames) {
|
|
92
|
+
const toggle = document.createElement("button");
|
|
93
|
+
toggle.type = "button";
|
|
94
|
+
toggle.className = "power-pod-removal-toggle";
|
|
95
|
+
toggle.setAttribute("aria-expanded", "false");
|
|
96
|
+
toggle.setAttribute("aria-controls", list.id);
|
|
97
|
+
toggle.append(...tail.childNodes);
|
|
98
|
+
toggle.addEventListener("click", () => {
|
|
99
|
+
const expanded = toggle.getAttribute("aria-expanded") !== "true";
|
|
100
|
+
toggle.setAttribute("aria-expanded", String(expanded));
|
|
101
|
+
renderNames(expanded ? fullNames : parsed.names);
|
|
102
|
+
if (expanded) toggle.textContent = "Show fewer";
|
|
103
|
+
else toggle.replaceChildren("and ", number, " more");
|
|
104
|
+
});
|
|
105
|
+
tail.append(toggle);
|
|
106
|
+
}
|
|
107
|
+
replacement.append(tail);
|
|
108
|
+
}
|
|
109
|
+
const icon = document.createElement("span");
|
|
110
|
+
icon.className = "Icon material power-pod-removal-trash";
|
|
111
|
+
icon.setAttribute("aria-hidden", "true");
|
|
112
|
+
const glyph = document.createElement("span");
|
|
113
|
+
glyph.className = "icon";
|
|
114
|
+
glyph.textContent = "delete";
|
|
115
|
+
icon.append(glyph);
|
|
116
|
+
message.classList.add("power-pod-removal-original");
|
|
117
|
+
message.after(replacement);
|
|
118
|
+
button.prepend(icon);
|
|
119
|
+
current = {
|
|
120
|
+
dialog,
|
|
121
|
+
message,
|
|
122
|
+
text: message.textContent,
|
|
123
|
+
replacement,
|
|
124
|
+
icon
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
const arm = (event) => {
|
|
128
|
+
const target = event.target;
|
|
129
|
+
if (!(target instanceof Element)) return;
|
|
130
|
+
const button = target.closest(Object.keys(require_native_resource_removals.nativeResourceRemovals).map((root) => `.${root} .AddRemoveButtons .remove-button`).join(", "));
|
|
131
|
+
if (!button || button.disabled || button.classList.contains("disabled")) return;
|
|
132
|
+
try {
|
|
133
|
+
const root = Object.keys(require_native_resource_removals.nativeResourceRemovals).find((name) => button.closest(`.${name}`));
|
|
134
|
+
resource = require_native_resource_removals.nativeResourceRemovals[root];
|
|
135
|
+
const names = options.getSelectedResourceNames?.(root) ?? (root === "Secrets" ? options.getSelectedSecretNames?.() : root === "Pods" ? options.getSelectedNames?.() : void 0);
|
|
136
|
+
selectedNames = names ? [...names] : void 0;
|
|
137
|
+
} catch {
|
|
138
|
+
selectedNames = void 0;
|
|
139
|
+
}
|
|
140
|
+
armed = true;
|
|
141
|
+
window.clearTimeout(expiration);
|
|
142
|
+
expiration = window.setTimeout(() => {
|
|
143
|
+
expiration = void 0;
|
|
144
|
+
reconcile();
|
|
145
|
+
armed = false;
|
|
146
|
+
selectedNames = void 0;
|
|
147
|
+
}, 0);
|
|
148
|
+
};
|
|
149
|
+
document.addEventListener("click", arm, true);
|
|
150
|
+
const observer = new MutationObserver(reconcile);
|
|
151
|
+
observer.observe(document.body, {
|
|
152
|
+
childList: true,
|
|
153
|
+
subtree: true,
|
|
154
|
+
characterData: true,
|
|
155
|
+
attributes: true,
|
|
156
|
+
attributeFilter: ["data-testid"]
|
|
157
|
+
});
|
|
158
|
+
return () => {
|
|
159
|
+
stopped = true;
|
|
160
|
+
selectedNames = void 0;
|
|
161
|
+
armed = false;
|
|
162
|
+
window.clearTimeout(expiration);
|
|
163
|
+
document.removeEventListener("click", arm, true);
|
|
164
|
+
observer.disconnect();
|
|
165
|
+
restore();
|
|
166
|
+
style.remove();
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
//#endregion
|
|
170
|
+
exports.startPodRemovalConfirmation = startPodRemovalConfirmation;
|
|
171
|
+
|
|
172
|
+
//# sourceMappingURL=pod-removal-confirmation.js.map
|