@64mb/freelens-power 1.7.0 → 2.20.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 +4 -2
- package/dist/ai-codex-api-CHt-EMIE.js +4403 -0
- package/dist/ai-codex-api-CHt-EMIE.js.map +1 -0
- package/dist/ai-codex-api.js +1 -0
- package/{out/main/dashboard-preload.js → dist/dashboard-preload.cjs} +6 -6
- package/dist/dashboard-preload.cjs.map +1 -0
- package/dist/main.js +14935 -0
- package/dist/main.js.map +1 -0
- package/dist/power-logs-D2eUB0f0.js +32 -0
- package/{out/main/src/common/power-logs.js.map → dist/power-logs-D2eUB0f0.js.map} +1 -1
- package/{out/main → dist}/power-logs-child.js +11 -11
- package/dist/power-logs-child.js.map +1 -0
- package/{out/main → dist}/power-logs-database.js +74 -75
- package/{out/main → dist}/power-logs-database.js.map +1 -1
- package/{out/renderer/src/common/power-logs-limits.js → dist/power-logs-limits-CdzRcMHg.js} +7 -10
- package/{out/main/src/common/power-logs-limits.js.map → dist/power-logs-limits-CdzRcMHg.js.map} +1 -1
- package/dist/power-logs-query-child.js +22 -0
- package/dist/power-logs-query-child.js.map +1 -0
- package/{out/main → dist}/power-logs-query.js +13 -14
- package/{out/main → dist}/power-logs-query.js.map +1 -1
- package/dist/renderer.js +43781 -0
- package/dist/renderer.js.map +1 -0
- package/package.json +39 -30
- package/out/main/_virtual/_global-external_@freelensapp/extensions.js +0 -9
- package/out/main/_virtual/_global-external_mobx.js +0 -77
- package/out/main/_virtual/_rolldown/runtime.js +0 -25
- package/out/main/ai-answer-stream.js +0 -96
- package/out/main/ai-answer-stream.js.map +0 -1
- package/out/main/ai-api-key.js +0 -95
- package/out/main/ai-api-key.js.map +0 -1
- package/out/main/ai-claude-policy.js +0 -141
- package/out/main/ai-claude-policy.js.map +0 -1
- package/out/main/ai-codex-api.js +0 -611
- package/out/main/ai-codex-api.js.map +0 -1
- package/out/main/ai-discovery.js +0 -61
- package/out/main/ai-discovery.js.map +0 -1
- package/out/main/ai-ipc.js +0 -175
- package/out/main/ai-ipc.js.map +0 -1
- package/out/main/ai-logs.js +0 -53
- package/out/main/ai-logs.js.map +0 -1
- package/out/main/ai-models.js +0 -94
- package/out/main/ai-models.js.map +0 -1
- package/out/main/ai-pi-models.js +0 -73
- package/out/main/ai-pi-models.js.map +0 -1
- package/out/main/ai-pi.js +0 -411
- package/out/main/ai-pi.js.map +0 -1
- package/out/main/ai-references.js +0 -20
- package/out/main/ai-references.js.map +0 -1
- package/out/main/ai-resources.js +0 -364
- package/out/main/ai-resources.js.map +0 -1
- package/out/main/ai.js +0 -688
- package/out/main/ai.js.map +0 -1
- package/out/main/cluster-icons-catalog.js +0 -28
- package/out/main/cluster-icons-catalog.js.map +0 -1
- package/out/main/cluster-icons.js +0 -125
- package/out/main/cluster-icons.js.map +0 -1
- package/out/main/dashboard-ai.js +0 -29
- package/out/main/dashboard-ai.js.map +0 -1
- package/out/main/dashboard-catalog.js +0 -29
- package/out/main/dashboard-catalog.js.map +0 -1
- package/out/main/dashboard-icon-cache.js +0 -63
- package/out/main/dashboard-icon-cache.js.map +0 -1
- package/out/main/dashboard-network.js +0 -104
- package/out/main/dashboard-network.js.map +0 -1
- package/out/main/dashboard-picker.js +0 -133
- package/out/main/dashboard-picker.js.map +0 -1
- package/out/main/dashboard-preload.js.map +0 -1
- package/out/main/dashboard-views.js +0 -902
- package/out/main/dashboard-views.js.map +0 -1
- package/out/main/diagnostics-menu-order.js +0 -57
- package/out/main/diagnostics-menu-order.js.map +0 -1
- package/out/main/dock-icon.js +0 -121
- package/out/main/dock-icon.js.map +0 -1
- package/out/main/extension-updates.js +0 -151
- package/out/main/extension-updates.js.map +0 -1
- package/out/main/helm-installed-chart.js +0 -141
- package/out/main/helm-installed-chart.js.map +0 -1
- package/out/main/helm-ipc.js +0 -748
- package/out/main/helm-ipc.js.map +0 -1
- package/out/main/helm-values.js +0 -45
- package/out/main/helm-values.js.map +0 -1
- package/out/main/helm.js +0 -283
- package/out/main/helm.js.map +0 -1
- package/out/main/index.js +0 -100
- package/out/main/index.js.map +0 -1
- package/out/main/monitoring-history-database.js +0 -103
- package/out/main/monitoring-history-database.js.map +0 -1
- package/out/main/monitoring-history-worker.js +0 -61
- package/out/main/monitoring-history-worker.js.map +0 -1
- package/out/main/monitoring-history.js +0 -110
- package/out/main/monitoring-history.js.map +0 -1
- package/out/main/node-bulk.js +0 -260
- package/out/main/node-bulk.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js +0 -99
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js +0 -32
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js +0 -242
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js +0 -154
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js +0 -60
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js +0 -346
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js +0 -479
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js +0 -508
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js +0 -127
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js +0 -50
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js +0 -201
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js +0 -401
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js +0 -1007
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js.map +0 -1
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js +0 -23
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js +0 -69
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js +0 -56
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js +0 -105
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js +0 -73
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js +0 -214
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js +0 -100
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js +0 -187
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js +0 -55
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js +0 -47
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js +0 -173
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js +0 -218
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js +0 -116
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js +0 -38
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js +0 -36
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js +0 -23
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js +0 -23
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js +0 -302
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js +0 -79
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js +0 -49
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js +0 -76
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js +0 -177
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js +0 -62
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js +0 -74
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js +0 -23
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js +0 -111
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js +0 -134
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js +0 -47
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js +0 -47
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js +0 -40
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js +0 -125
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js +0 -122
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js +0 -66
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js +0 -59
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js +0 -48
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js +0 -281
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js +0 -60
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js +0 -100
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js +0 -92
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js +0 -542
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js +0 -56
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js +0 -875
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js +0 -104
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js +0 -43
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js +0 -29
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js +0 -26
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js +0 -29
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js +0 -26
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js +0 -30
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js +0 -53
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js +0 -52
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js +0 -41
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js +0 -75
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js +0 -110
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js +0 -68
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js +0 -38
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js +0 -56
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js +0 -86
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js +0 -55
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js +0 -78
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +0 -74
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js +0 -63
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js +0 -81
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +0 -94
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js +0 -125
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js +0 -122
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js +0 -131
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js +0 -29
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js +0 -74
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js +0 -30
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js +0 -111
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js +0 -236
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js.map +0 -1
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js +0 -201
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js.map +0 -1
- package/out/main/package.js +0 -6
- package/out/main/package.js.map +0 -1
- package/out/main/power-logs-budget.js +0 -126
- package/out/main/power-logs-budget.js.map +0 -1
- package/out/main/power-logs-child.js.map +0 -1
- package/out/main/power-logs-ipc.js +0 -324
- package/out/main/power-logs-ipc.js.map +0 -1
- package/out/main/power-logs-query-child.js +0 -23
- package/out/main/power-logs-query-child.js.map +0 -1
- package/out/main/power-logs-worker.js +0 -237
- package/out/main/power-logs-worker.js.map +0 -1
- package/out/main/resource-search-database.js +0 -215
- package/out/main/resource-search-database.js.map +0 -1
- package/out/main/resource-search-worker.js +0 -60
- package/out/main/resource-search-worker.js.map +0 -1
- package/out/main/resource-search.js +0 -156
- package/out/main/resource-search.js.map +0 -1
- package/out/main/settings-export.js +0 -68
- package/out/main/settings-export.js.map +0 -1
- package/out/main/settings-import.js +0 -89
- package/out/main/settings-import.js.map +0 -1
- package/out/main/splash-accent.js +0 -84
- package/out/main/splash-accent.js.map +0 -1
- package/out/main/src/common/ai-attachments.js +0 -36
- package/out/main/src/common/ai-attachments.js.map +0 -1
- package/out/main/src/common/ai-extras.js +0 -68
- package/out/main/src/common/ai-extras.js.map +0 -1
- package/out/main/src/common/ai-models.js +0 -81
- package/out/main/src/common/ai-models.js.map +0 -1
- package/out/main/src/common/ai-prompts.js +0 -46
- package/out/main/src/common/ai-prompts.js.map +0 -1
- package/out/main/src/common/ai-resource-payload.js +0 -308
- package/out/main/src/common/ai-resource-payload.js.map +0 -1
- package/out/main/src/common/ai-shortcuts.js +0 -69
- package/out/main/src/common/ai-shortcuts.js.map +0 -1
- package/out/main/src/common/ai-terminal-context.js +0 -72
- package/out/main/src/common/ai-terminal-context.js.map +0 -1
- package/out/main/src/common/ai.js +0 -18
- package/out/main/src/common/ai.js.map +0 -1
- package/out/main/src/common/cluster-icon-ipc.js +0 -6
- package/out/main/src/common/cluster-icon-ipc.js.map +0 -1
- package/out/main/src/common/cluster-icons.js +0 -121
- package/out/main/src/common/cluster-icons.js.map +0 -1
- package/out/main/src/common/dashboard-ai.js +0 -64
- package/out/main/src/common/dashboard-ai.js.map +0 -1
- package/out/main/src/common/dashboard-picker.js +0 -133
- package/out/main/src/common/dashboard-picker.js.map +0 -1
- package/out/main/src/common/dashboard-readiness.js +0 -58
- package/out/main/src/common/dashboard-readiness.js.map +0 -1
- package/out/main/src/common/dashboard-selector.js +0 -124
- package/out/main/src/common/dashboard-selector.js.map +0 -1
- package/out/main/src/common/dashboard-views.js +0 -12
- package/out/main/src/common/dashboard-views.js.map +0 -1
- package/out/main/src/common/dashboard.js +0 -39
- package/out/main/src/common/dashboard.js.map +0 -1
- package/out/main/src/common/extension-info.js +0 -8
- package/out/main/src/common/extension-info.js.map +0 -1
- package/out/main/src/common/extension-updates.js +0 -13
- package/out/main/src/common/extension-updates.js.map +0 -1
- package/out/main/src/common/helm-values-validation.js +0 -56
- package/out/main/src/common/helm-values-validation.js.map +0 -1
- package/out/main/src/common/helm.js +0 -8
- package/out/main/src/common/helm.js.map +0 -1
- package/out/main/src/common/monitoring-history.js +0 -52
- package/out/main/src/common/monitoring-history.js.map +0 -1
- package/out/main/src/common/node-bulk.js +0 -6
- package/out/main/src/common/node-bulk.js.map +0 -1
- package/out/main/src/common/power-logs-limits.js +0 -227
- package/out/main/src/common/power-logs.js +0 -38
- package/out/main/src/common/resource-search-kind-priority.js +0 -23
- package/out/main/src/common/resource-search-kind-priority.js.map +0 -1
- package/out/main/src/common/resource-search.js +0 -61
- package/out/main/src/common/resource-search.js.map +0 -1
- package/out/main/src/common/settings-export.js +0 -83
- package/out/main/src/common/settings-export.js.map +0 -1
- package/out/main/src/common/store/ai-preferences-store.js +0 -143
- package/out/main/src/common/store/ai-preferences-store.js.map +0 -1
- package/out/main/src/common/store/ai-shortcuts-store.js +0 -40
- package/out/main/src/common/store/ai-shortcuts-store.js.map +0 -1
- package/out/main/src/common/store/appearance-preferences-store.js +0 -99
- package/out/main/src/common/store/appearance-preferences-store.js.map +0 -1
- package/out/main/src/common/store/cluster-icons-store.js +0 -32
- package/out/main/src/common/store/cluster-icons-store.js.map +0 -1
- package/out/main/src/common/store/dashboard-preferences-store.js +0 -56
- package/out/main/src/common/store/dashboard-preferences-store.js.map +0 -1
- package/out/main/src/common/store/helm-preferences-store.js +0 -26
- package/out/main/src/common/store/helm-preferences-store.js.map +0 -1
- package/out/main/src/common/store/logs-preferences-store.js +0 -50
- package/out/main/src/common/store/logs-preferences-store.js.map +0 -1
- package/out/main/src/common/store/monitoring-preferences-store.js +0 -69
- package/out/main/src/common/store/monitoring-preferences-store.js.map +0 -1
- package/out/main/src/common/store/node-shell-preferences-store.js +0 -44
- package/out/main/src/common/store/node-shell-preferences-store.js.map +0 -1
- package/out/main/src/common/store/power-preferences-store.js +0 -39
- package/out/main/src/common/store/power-preferences-store.js.map +0 -1
- package/out/main/src/common/store/read-only-preferences-store.js +0 -26
- package/out/main/src/common/store/read-only-preferences-store.js.map +0 -1
- package/out/renderer/_virtual/_global-external_@freelensapp/extensions.js +0 -9
- package/out/renderer/_virtual/_global-external_mobx-react.js +0 -20
- package/out/renderer/_virtual/_global-external_mobx.js +0 -80
- package/out/renderer/_virtual/_global-external_react/jsx-runtime.js +0 -10
- package/out/renderer/_virtual/_global-external_react-dom.js +0 -18
- package/out/renderer/_virtual/_global-external_react.js +0 -46
- package/out/renderer/_virtual/_rolldown/runtime.js +0 -35
- package/out/renderer/ai-attachment-card.js +0 -92
- package/out/renderer/ai-attachment-card.js.map +0 -1
- package/out/renderer/ai-context-mutations.js +0 -14
- package/out/renderer/ai-context-mutations.js.map +0 -1
- package/out/renderer/ai-copy-answer.js +0 -38
- package/out/renderer/ai-copy-answer.js.map +0 -1
- package/out/renderer/ai-diagnostic-handoff.js +0 -55
- package/out/renderer/ai-diagnostic-handoff.js.map +0 -1
- package/out/renderer/ai-extras.js +0 -165
- package/out/renderer/ai-extras.js.map +0 -1
- package/out/renderer/ai-icon.js +0 -46
- package/out/renderer/ai-icon.js.map +0 -1
- package/out/renderer/ai-logs-sql.js +0 -28
- package/out/renderer/ai-logs-sql.js.map +0 -1
- package/out/renderer/ai-message.js +0 -298
- package/out/renderer/ai-message.js.map +0 -1
- package/out/renderer/ai-provider-icon.js +0 -89
- package/out/renderer/ai-provider-icon.js.map +0 -1
- package/out/renderer/ai-resize.js +0 -90
- package/out/renderer/ai-resize.js.map +0 -1
- package/out/renderer/ai-shortcuts.js +0 -42
- package/out/renderer/ai-shortcuts.js.map +0 -1
- package/out/renderer/ai-terminal-context.js +0 -183
- package/out/renderer/ai-terminal-context.js.map +0 -1
- package/out/renderer/ai.js +0 -1313
- package/out/renderer/ai.js.map +0 -1
- package/out/renderer/appearance.js +0 -95
- package/out/renderer/appearance.js.map +0 -1
- package/out/renderer/assets/claude.js +0 -6
- package/out/renderer/assets/claude.js.map +0 -1
- package/out/renderer/assets/openai.js +0 -6
- package/out/renderer/assets/openai.js.map +0 -1
- package/out/renderer/assets/pi.js +0 -6
- package/out/renderer/assets/pi.js.map +0 -1
- package/out/renderer/button-styles.js +0 -49
- package/out/renderer/button-styles.js.map +0 -1
- package/out/renderer/cluster-icon-colors.js +0 -191
- package/out/renderer/cluster-icon-colors.js.map +0 -1
- package/out/renderer/cluster-icons.js +0 -311
- package/out/renderer/cluster-icons.js.map +0 -1
- package/out/renderer/dashboard.js +0 -591
- package/out/renderer/dashboard.js.map +0 -1
- package/out/renderer/details/hpa-diagnostics-details.js +0 -46
- package/out/renderer/details/hpa-diagnostics-details.js.map +0 -1
- package/out/renderer/details/namespace-health-details.js +0 -91
- package/out/renderer/details/namespace-health-details.js.map +0 -1
- package/out/renderer/details/resource-health-details.js +0 -135
- package/out/renderer/details/resource-health-details.js.map +0 -1
- package/out/renderer/details/secret-certificate-details.js +0 -68
- package/out/renderer/details/secret-certificate-details.js.map +0 -1
- package/out/renderer/details/service-diagnostics-details.js +0 -165
- package/out/renderer/details/service-diagnostics-details.js.map +0 -1
- package/out/renderer/diagnostic-explain-button.js +0 -19
- package/out/renderer/diagnostic-explain-button.js.map +0 -1
- package/out/renderer/diagnostics-screen-finding.js +0 -52
- package/out/renderer/diagnostics-screen-finding.js.map +0 -1
- package/out/renderer/diagnostics-state.js +0 -90
- package/out/renderer/diagnostics-state.js.map +0 -1
- package/out/renderer/diagnostics.css.js +0 -61
- package/out/renderer/diagnostics.css.js.map +0 -1
- package/out/renderer/diagnostics.js +0 -1740
- package/out/renderer/diagnostics.js.map +0 -1
- package/out/renderer/extension-update-notifications.js +0 -221
- package/out/renderer/extension-update-notifications.js.map +0 -1
- package/out/renderer/extension-update.js +0 -189
- package/out/renderer/extension-update.js.map +0 -1
- package/out/renderer/floating-action-transitions.js +0 -139
- package/out/renderer/floating-action-transitions.js.map +0 -1
- package/out/renderer/gateway-relationships-client.js +0 -107
- package/out/renderer/gateway-relationships-client.js.map +0 -1
- package/out/renderer/helm-app-version.js +0 -141
- package/out/renderer/helm-app-version.js.map +0 -1
- package/out/renderer/helm-code-view.js +0 -727
- package/out/renderer/helm-code-view.js.map +0 -1
- package/out/renderer/helm-entrypoints.js +0 -79
- package/out/renderer/helm-entrypoints.js.map +0 -1
- package/out/renderer/helm-full-comparison.js +0 -233
- package/out/renderer/helm-full-comparison.js.map +0 -1
- package/out/renderer/helm-operations.js +0 -541
- package/out/renderer/helm-operations.js.map +0 -1
- package/out/renderer/helm-release-actions.js +0 -296
- package/out/renderer/helm-release-actions.js.map +0 -1
- package/out/renderer/helm-revision-delete.js +0 -128
- package/out/renderer/helm-revision-delete.js.map +0 -1
- package/out/renderer/helm-version-index.js +0 -283
- package/out/renderer/helm-version-index.js.map +0 -1
- package/out/renderer/helm.js +0 -2383
- package/out/renderer/helm.js.map +0 -1
- package/out/renderer/host-extensions.js +0 -102
- package/out/renderer/host-extensions.js.map +0 -1
- package/out/renderer/host-layout.js +0 -59
- package/out/renderer/host-layout.js.map +0 -1
- package/out/renderer/host-preferences.js +0 -192
- package/out/renderer/host-preferences.js.map +0 -1
- package/out/renderer/incident-copy-button.js +0 -53
- package/out/renderer/incident-copy-button.js.map +0 -1
- package/out/renderer/index.js +0 -305
- package/out/renderer/index.js.map +0 -1
- package/out/renderer/menus/secure-node-shell-menu.js +0 -45
- package/out/renderer/menus/secure-node-shell-menu.js.map +0 -1
- package/out/renderer/monitoring-collector.js +0 -207
- package/out/renderer/monitoring-collector.js.map +0 -1
- package/out/renderer/monitoring-details-chart.js +0 -42
- package/out/renderer/monitoring-details-chart.js.map +0 -1
- package/out/renderer/monitoring-history-collection.js +0 -168
- package/out/renderer/monitoring-history-collection.js.map +0 -1
- package/out/renderer/monitoring-history-view.js +0 -227
- package/out/renderer/monitoring-history-view.js.map +0 -1
- package/out/renderer/monitoring-history.js +0 -19
- package/out/renderer/monitoring-history.js.map +0 -1
- package/out/renderer/monitoring.js +0 -939
- package/out/renderer/monitoring.js.map +0 -1
- package/out/renderer/native-resource-removals.js +0 -202
- package/out/renderer/native-resource-removals.js.map +0 -1
- package/out/renderer/native-tooltip.js +0 -22
- package/out/renderer/native-tooltip.js.map +0 -1
- package/out/renderer/node-bulk-actions.js +0 -527
- package/out/renderer/node-bulk-actions.js.map +0 -1
- package/out/renderer/node-bulk-selection.js +0 -203
- package/out/renderer/node-bulk-selection.js.map +0 -1
- package/out/renderer/node-monitoring.js +0 -127
- package/out/renderer/node-monitoring.js.map +0 -1
- package/out/renderer/node-shell-entrypoints.js +0 -65
- package/out/renderer/node-shell-entrypoints.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -10
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -9
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -9
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createClass.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -19
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createSuper.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -14
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js +0 -19
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -15
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -14
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inherits.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -18
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -26
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -27
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -14
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -12
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -15
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -12
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -12
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -16
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -11
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -18
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/typeof.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -13
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -237
- package/out/renderer/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -25
- package/out/renderer/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -12
- package/out/renderer/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +0 -58
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -54
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -133
- package/out/renderer/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -65
- package/out/renderer/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -54
- package/out/renderer/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@17.0.2/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -12
- package/out/renderer/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@17.0.2/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -30
- package/out/renderer/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -211
- package/out/renderer/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -97
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -31
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode-codepoint.js +0 -45
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode-codepoint.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode.js +0 -392
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/generated/decode-data-html.js +0 -7
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/generated/decode-data-html.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/internal/bin-trie-flags.js +0 -27
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/internal/bin-trie-flags.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/internal/decode-shared.js +0 -21
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/internal/decode-shared.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -93
- package/out/renderer/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/linkify-it@6.1.0/node_modules/linkify-it/build/index.js +0 -534
- package/out/renderer/node_modules/.pnpm/linkify-it@6.1.0/node_modules/linkify-it/build/index.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/markdown-it@15.0.2/node_modules/markdown-it/dist/markdown-it.js +0 -3774
- package/out/renderer/node_modules/.pnpm/markdown-it@15.0.2/node_modules/markdown-it/dist/markdown-it.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/index.js +0 -25
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/index.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/decode.js +0 -74
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/decode.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/encode.js +0 -57
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/encode.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/format.js +0 -18
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/format.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/parse.js +0 -175
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/parse.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.esm.js +0 -38
- package/out/renderer/node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -307
- package/out/renderer/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -159
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -103
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +0 -18
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2200
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/Select-ef7c0426.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -992
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/index-641ee5b8.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/react-select.esm.js +0 -14
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/react-select.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -56
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js +0 -22
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js +0 -30
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js +0 -164
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js +0 -37
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js +0 -245
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js +0 -120
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/uc.micro@3.0.0/node_modules/uc.micro/build/index.js +0 -30
- package/out/renderer/node_modules/.pnpm/uc.micro@3.0.0/node_modules/uc.micro/build/index.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
- package/out/renderer/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js +0 -52
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js +0 -41
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js +0 -88
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js +0 -59
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js +0 -195
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js +0 -84
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +0 -176
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +0 -42
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js +0 -38
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +0 -155
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +0 -206
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js +0 -107
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js +0 -29
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +0 -27
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +0 -12
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js +0 -12
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js +0 -279
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js +0 -67
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js +0 -40
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js +0 -63
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js +0 -165
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js +0 -53
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/index.js +0 -24
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js +0 -8
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js +0 -96
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js +0 -121
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js +0 -34
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js +0 -32
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js +0 -27
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js +0 -109
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +0 -106
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +0 -51
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js +0 -50
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js +0 -37
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -3
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js +0 -91
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js +0 -42
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js +0 -531
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js +0 -47
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js +0 -861
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js +0 -56
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js +0 -29
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js +0 -18
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js +0 -15
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js +0 -18
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js +0 -16
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js +0 -19
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js +0 -42
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js +0 -41
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js +0 -25
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js +0 -63
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js +0 -84
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +0 -54
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +0 -27
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +0 -45
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +0 -75
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +0 -43
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +0 -63
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +0 -60
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +0 -41
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +0 -68
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +0 -83
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +0 -116
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js +0 -108
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +0 -118
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js +0 -20
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +0 -61
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +0 -21
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js +0 -97
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js +0 -224
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js +0 -190
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/index.js +0 -24
- package/out/renderer/package.js +0 -6
- package/out/renderer/package.js.map +0 -1
- package/out/renderer/pod-bulk-customization.js +0 -51
- package/out/renderer/pod-bulk-customization.js.map +0 -1
- package/out/renderer/pod-details-enhancements.js +0 -107
- package/out/renderer/pod-details-enhancements.js.map +0 -1
- package/out/renderer/pod-monitoring.js +0 -309
- package/out/renderer/pod-monitoring.js.map +0 -1
- package/out/renderer/pod-removal-confirmation.js +0 -172
- package/out/renderer/pod-removal-confirmation.js.map +0 -1
- package/out/renderer/power-log-column-widths.js +0 -54
- package/out/renderer/power-log-column-widths.js.map +0 -1
- package/out/renderer/power-log-columns.js +0 -114
- package/out/renderer/power-log-columns.js.map +0 -1
- package/out/renderer/power-log-json-cell.js +0 -88
- package/out/renderer/power-log-json-cell.js.map +0 -1
- package/out/renderer/power-log-json-fields.js +0 -144
- package/out/renderer/power-log-json-fields.js.map +0 -1
- package/out/renderer/power-log-json.js +0 -261
- package/out/renderer/power-log-json.js.map +0 -1
- package/out/renderer/power-log-message-tokens.js +0 -60
- package/out/renderer/power-log-message-tokens.js.map +0 -1
- package/out/renderer/power-log-message.js +0 -26
- package/out/renderer/power-log-message.js.map +0 -1
- package/out/renderer/power-log-sql-editor.js +0 -120
- package/out/renderer/power-log-sql-editor.js.map +0 -1
- package/out/renderer/power-logs-client.js +0 -44
- package/out/renderer/power-logs-client.js.map +0 -1
- package/out/renderer/power-logs-collector.js +0 -316
- package/out/renderer/power-logs-collector.js.map +0 -1
- package/out/renderer/power-logs-context.js +0 -45
- package/out/renderer/power-logs-context.js.map +0 -1
- package/out/renderer/power-logs-entrypoints.js +0 -178
- package/out/renderer/power-logs-entrypoints.js.map +0 -1
- package/out/renderer/power-logs-resource-stores.js +0 -71
- package/out/renderer/power-logs-resource-stores.js.map +0 -1
- package/out/renderer/power-logs-session.js +0 -35
- package/out/renderer/power-logs-session.js.map +0 -1
- package/out/renderer/power-logs-sql-drafts.js +0 -76
- package/out/renderer/power-logs-sql-drafts.js.map +0 -1
- package/out/renderer/power-logs-sql-row.js +0 -44
- package/out/renderer/power-logs-sql-row.js.map +0 -1
- package/out/renderer/power-logs-storage.js +0 -11
- package/out/renderer/power-logs-storage.js.map +0 -1
- package/out/renderer/power-logs-transport.js +0 -122
- package/out/renderer/power-logs-transport.js.map +0 -1
- package/out/renderer/power-logs.css.js +0 -216
- package/out/renderer/power-logs.css.js.map +0 -1
- package/out/renderer/power-logs.js +0 -2143
- package/out/renderer/power-logs.js.map +0 -1
- package/out/renderer/preferences/ai-preferences.js +0 -458
- package/out/renderer/preferences/ai-preferences.js.map +0 -1
- package/out/renderer/preferences/ai-shortcuts-preferences.js +0 -175
- package/out/renderer/preferences/ai-shortcuts-preferences.js.map +0 -1
- package/out/renderer/preferences/appearance-preferences.js +0 -97
- package/out/renderer/preferences/appearance-preferences.js.map +0 -1
- package/out/renderer/preferences/dashboard-preferences.js +0 -430
- package/out/renderer/preferences/dashboard-preferences.js.map +0 -1
- package/out/renderer/preferences/helm-preferences.js +0 -22
- package/out/renderer/preferences/helm-preferences.js.map +0 -1
- package/out/renderer/preferences/logs-preferences.js +0 -328
- package/out/renderer/preferences/logs-preferences.js.map +0 -1
- package/out/renderer/preferences/monitoring-preferences.js +0 -175
- package/out/renderer/preferences/monitoring-preferences.js.map +0 -1
- package/out/renderer/preferences/node-shell-preferences.js +0 -83
- package/out/renderer/preferences/node-shell-preferences.js.map +0 -1
- package/out/renderer/preferences/other-preferences.js +0 -55
- package/out/renderer/preferences/other-preferences.js.map +0 -1
- package/out/renderer/preferences/power-preferences.js +0 -39
- package/out/renderer/preferences/power-preferences.js.map +0 -1
- package/out/renderer/preferences/preferences.js +0 -294
- package/out/renderer/preferences/preferences.js.map +0 -1
- package/out/renderer/preferences/read-only-preferences.js +0 -23
- package/out/renderer/preferences/read-only-preferences.js.map +0 -1
- package/out/renderer/preferences/section-navigation.js +0 -44
- package/out/renderer/preferences/section-navigation.js.map +0 -1
- package/out/renderer/preferences/settings-export.js +0 -91
- package/out/renderer/preferences/settings-export.js.map +0 -1
- package/out/renderer/preferences/settings-icon-action.js +0 -24
- package/out/renderer/preferences/settings-icon-action.js.map +0 -1
- package/out/renderer/preferences/settings-modal.js +0 -82
- package/out/renderer/preferences/settings-modal.js.map +0 -1
- package/out/renderer/read-only.js +0 -103
- package/out/renderer/read-only.js.map +0 -1
- package/out/renderer/relationship-map-finding.js +0 -54
- package/out/renderer/relationship-map-finding.js.map +0 -1
- package/out/renderer/resource-relationships.css.js +0 -17
- package/out/renderer/resource-relationships.css.js.map +0 -1
- package/out/renderer/resource-relationships.js +0 -663
- package/out/renderer/resource-relationships.js.map +0 -1
- package/out/renderer/resource-search-client.js +0 -116
- package/out/renderer/resource-search-client.js.map +0 -1
- package/out/renderer/resource-search-discovery.js +0 -79
- package/out/renderer/resource-search-discovery.js.map +0 -1
- package/out/renderer/resource-search-distance.js +0 -24
- package/out/renderer/resource-search-distance.js.map +0 -1
- package/out/renderer/resource-search-fields.js +0 -55
- package/out/renderer/resource-search-fields.js.map +0 -1
- package/out/renderer/resource-search-model.js +0 -195
- package/out/renderer/resource-search-model.js.map +0 -1
- package/out/renderer/resource-search-routing.js +0 -78
- package/out/renderer/resource-search-routing.js.map +0 -1
- package/out/renderer/resource-search-sync.js +0 -199
- package/out/renderer/resource-search-sync.js.map +0 -1
- package/out/renderer/resource-search.js +0 -646
- package/out/renderer/resource-search.js.map +0 -1
- package/out/renderer/secret-dialog-customization.js +0 -142
- package/out/renderer/secret-dialog-customization.js.map +0 -1
- package/out/renderer/src/common/ai-attachments.js +0 -160
- package/out/renderer/src/common/ai-attachments.js.map +0 -1
- package/out/renderer/src/common/ai-extras.js +0 -68
- package/out/renderer/src/common/ai-extras.js.map +0 -1
- package/out/renderer/src/common/ai-models.js +0 -64
- package/out/renderer/src/common/ai-models.js.map +0 -1
- package/out/renderer/src/common/ai-prompts.js +0 -46
- package/out/renderer/src/common/ai-prompts.js.map +0 -1
- package/out/renderer/src/common/ai-resource-payload.js +0 -262
- package/out/renderer/src/common/ai-resource-payload.js.map +0 -1
- package/out/renderer/src/common/ai-shortcuts.js +0 -78
- package/out/renderer/src/common/ai-shortcuts.js.map +0 -1
- package/out/renderer/src/common/ai-terminal-context.js +0 -72
- package/out/renderer/src/common/ai-terminal-context.js.map +0 -1
- package/out/renderer/src/common/ai.js +0 -14
- package/out/renderer/src/common/ai.js.map +0 -1
- package/out/renderer/src/common/cluster-icon-ipc.js +0 -6
- package/out/renderer/src/common/cluster-icon-ipc.js.map +0 -1
- package/out/renderer/src/common/cluster-icons.js +0 -133
- package/out/renderer/src/common/cluster-icons.js.map +0 -1
- package/out/renderer/src/common/dashboard-ai.js +0 -22
- package/out/renderer/src/common/dashboard-ai.js.map +0 -1
- package/out/renderer/src/common/dashboard-picker.js +0 -6
- package/out/renderer/src/common/dashboard-picker.js.map +0 -1
- package/out/renderer/src/common/dashboard-selector.js +0 -9
- package/out/renderer/src/common/dashboard-selector.js.map +0 -1
- package/out/renderer/src/common/dashboard-views.js +0 -18
- package/out/renderer/src/common/dashboard-views.js.map +0 -1
- package/out/renderer/src/common/dashboard.js +0 -39
- package/out/renderer/src/common/dashboard.js.map +0 -1
- package/out/renderer/src/common/date-time.js +0 -11
- package/out/renderer/src/common/date-time.js.map +0 -1
- package/out/renderer/src/common/extension-info.js +0 -8
- package/out/renderer/src/common/extension-info.js.map +0 -1
- package/out/renderer/src/common/extension-updates.js +0 -33
- package/out/renderer/src/common/extension-updates.js.map +0 -1
- package/out/renderer/src/common/gateway-relationships.js +0 -123
- package/out/renderer/src/common/gateway-relationships.js.map +0 -1
- package/out/renderer/src/common/helm-diff.js +0 -312
- package/out/renderer/src/common/helm-diff.js.map +0 -1
- package/out/renderer/src/common/helm-values-validation.js +0 -59
- package/out/renderer/src/common/helm-values-validation.js.map +0 -1
- package/out/renderer/src/common/helm.js +0 -10
- package/out/renderer/src/common/helm.js.map +0 -1
- package/out/renderer/src/common/hpa-diagnostics.js +0 -24
- package/out/renderer/src/common/hpa-diagnostics.js.map +0 -1
- package/out/renderer/src/common/incident-summary.js +0 -73
- package/out/renderer/src/common/incident-summary.js.map +0 -1
- package/out/renderer/src/common/monitoring-history.js +0 -17
- package/out/renderer/src/common/monitoring-history.js.map +0 -1
- package/out/renderer/src/common/monitoring-math.js +0 -98
- package/out/renderer/src/common/monitoring-math.js.map +0 -1
- package/out/renderer/src/common/node-bulk.js +0 -6
- package/out/renderer/src/common/node-bulk.js.map +0 -1
- package/out/renderer/src/common/node-shell.js +0 -22
- package/out/renderer/src/common/node-shell.js.map +0 -1
- package/out/renderer/src/common/power-log-field-filters.js +0 -92
- package/out/renderer/src/common/power-log-field-filters.js.map +0 -1
- package/out/renderer/src/common/power-log-json-filter-sql.js +0 -118
- package/out/renderer/src/common/power-log-json-filter-sql.js.map +0 -1
- package/out/renderer/src/common/power-log-json-preset.js +0 -34
- package/out/renderer/src/common/power-log-json-preset.js.map +0 -1
- package/out/renderer/src/common/power-log-level.js +0 -172
- package/out/renderer/src/common/power-log-level.js.map +0 -1
- package/out/renderer/src/common/power-log-parser.js +0 -92
- package/out/renderer/src/common/power-log-parser.js.map +0 -1
- package/out/renderer/src/common/power-log-sql-level.js +0 -25
- package/out/renderer/src/common/power-log-sql-level.js.map +0 -1
- package/out/renderer/src/common/power-logs-ai.js +0 -60
- package/out/renderer/src/common/power-logs-ai.js.map +0 -1
- package/out/renderer/src/common/power-logs-limits.js.map +0 -1
- package/out/renderer/src/common/power-logs.js +0 -38
- package/out/renderer/src/common/power-logs.js.map +0 -1
- package/out/renderer/src/common/resource-diagnostics.js +0 -227
- package/out/renderer/src/common/resource-diagnostics.js.map +0 -1
- package/out/renderer/src/common/resource-health.js +0 -92
- package/out/renderer/src/common/resource-health.js.map +0 -1
- package/out/renderer/src/common/resource-relationships.js +0 -165
- package/out/renderer/src/common/resource-relationships.js.map +0 -1
- package/out/renderer/src/common/resource-search-kind-priority.js +0 -28
- package/out/renderer/src/common/resource-search-kind-priority.js.map +0 -1
- package/out/renderer/src/common/resource-search.js +0 -6
- package/out/renderer/src/common/resource-search.js.map +0 -1
- package/out/renderer/src/common/search-index-redaction.js +0 -26
- package/out/renderer/src/common/search-index-redaction.js.map +0 -1
- package/out/renderer/src/common/secret-certificates.js +0 -34
- package/out/renderer/src/common/secret-certificates.js.map +0 -1
- package/out/renderer/src/common/service-diagnostics.js +0 -50
- package/out/renderer/src/common/service-diagnostics.js.map +0 -1
- package/out/renderer/src/common/settings-export.js +0 -8
- package/out/renderer/src/common/settings-export.js.map +0 -1
- package/out/renderer/src/common/store/ai-preferences-store.js +0 -143
- package/out/renderer/src/common/store/ai-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/ai-shortcuts-store.js +0 -40
- package/out/renderer/src/common/store/ai-shortcuts-store.js.map +0 -1
- package/out/renderer/src/common/store/appearance-preferences-store.js +0 -99
- package/out/renderer/src/common/store/appearance-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/dashboard-preferences-store.js +0 -56
- package/out/renderer/src/common/store/dashboard-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/helm-preferences-store.js +0 -26
- package/out/renderer/src/common/store/helm-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/logs-preferences-store.js +0 -50
- package/out/renderer/src/common/store/logs-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/monitoring-preferences-store.js +0 -69
- package/out/renderer/src/common/store/monitoring-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/node-shell-preferences-store.js +0 -44
- package/out/renderer/src/common/store/node-shell-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/power-preferences-store.js +0 -39
- package/out/renderer/src/common/store/power-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/read-only-preferences-store.js +0 -26
- package/out/renderer/src/common/store/read-only-preferences-store.js.map +0 -1
- package/out/renderer/src/common/timeline-groups.js +0 -36
- package/out/renderer/src/common/timeline-groups.js.map +0 -1
- package/out/renderer/welcome.js +0 -147
- package/out/renderer/welcome.js.map +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/common/power-logs.ts
|
|
2
|
+
var POWER_LOGS_STORAGE_MAX_BYTES = 1073741824;
|
|
3
|
+
var POWER_LOGS_STORAGE_FULL = "Log storage limit reached. Clear completed captures or delete snapshots and try again.";
|
|
4
|
+
var POWER_LOGS_STORAGE_CHANNEL = "freelens-power:logs-storage";
|
|
5
|
+
var POWER_LOGS_CHANNEL = "freelens-power:logs";
|
|
6
|
+
var POWER_LOGS_DEFAULT_LIMITS = {
|
|
7
|
+
liveRows: 1e4,
|
|
8
|
+
liveBytes: 16777216,
|
|
9
|
+
batchRows: 1e3,
|
|
10
|
+
batchBytes: 2097152,
|
|
11
|
+
recordBytes: 65536,
|
|
12
|
+
captureBytes: 268435456,
|
|
13
|
+
captureRows: 1e6,
|
|
14
|
+
captures: 3,
|
|
15
|
+
sources: 200,
|
|
16
|
+
resultRows: 1e3,
|
|
17
|
+
resultBytes: 2097152,
|
|
18
|
+
queryMs: 15e3,
|
|
19
|
+
ttlMs: 36e5,
|
|
20
|
+
historyLines: 1e3,
|
|
21
|
+
historyBytes: 1048576,
|
|
22
|
+
captureSourceLines: 1e4,
|
|
23
|
+
captureSourceBytes: 8388608,
|
|
24
|
+
requestsPerSecond: 2,
|
|
25
|
+
bytesPerSecond: 1048576,
|
|
26
|
+
historyConcurrency: 2,
|
|
27
|
+
liveConcurrency: 4
|
|
28
|
+
};
|
|
29
|
+
var POWER_LOGS_LIMITS = { ...POWER_LOGS_DEFAULT_LIMITS };
|
|
30
|
+
export { POWER_LOGS_STORAGE_FULL as a, POWER_LOGS_STORAGE_CHANNEL as i, POWER_LOGS_DEFAULT_LIMITS as n, POWER_LOGS_STORAGE_MAX_BYTES as o, POWER_LOGS_LIMITS as r, POWER_LOGS_CHANNEL as t };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=power-logs-D2eUB0f0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"power-logs.js","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"power-logs-D2eUB0f0.js","names":[],"sources":["../src/common/power-logs.ts"],"sourcesContent":["export const POWER_LOGS_STORAGE_MAX_BYTES = 1024 * 1024 * 1024;\nexport const POWER_LOGS_STORAGE_FULL =\n \"Log storage limit reached. Clear completed captures or delete snapshots and try again.\";\nexport const POWER_LOGS_STORAGE_CHANNEL = \"freelens-power:logs-storage\";\nexport interface LogStorageStatus {\n bytes: number;\n maxBytes: number;\n captures: number;\n collecting: number;\n}\nexport const POWER_LOGS_CHANNEL = \"freelens-power:logs\";\nexport const POWER_LOGS_DEFAULT_LIMITS = {\n liveRows: 10000,\n liveBytes: 16 * 1024 * 1024,\n batchRows: 1000,\n batchBytes: 2 * 1024 * 1024,\n recordBytes: 64 * 1024,\n captureBytes: 256 * 1024 * 1024,\n captureRows: 1000000,\n captures: 3,\n sources: 200,\n resultRows: 1000,\n resultBytes: 2 * 1024 * 1024,\n queryMs: 15000,\n ttlMs: 60 * 60 * 1000,\n historyLines: 1000,\n historyBytes: 1024 * 1024,\n captureSourceLines: 10000,\n captureSourceBytes: 8 * 1024 * 1024,\n requestsPerSecond: 2,\n bytesPerSecond: 1024 * 1024,\n historyConcurrency: 2,\n liveConcurrency: 4,\n} as const;\n\nexport type PowerLogsLimitKey = keyof typeof POWER_LOGS_DEFAULT_LIMITS;\nexport type PowerLogsLimits = { [Key in PowerLogsLimitKey]: number };\nexport const POWER_LOGS_LIMITS: PowerLogsLimits = { ...POWER_LOGS_DEFAULT_LIMITS };\n\nexport type LogLevel = \"trace\" | \"debug\" | \"info\" | \"access\" | \"warn\" | \"error\" | \"fatal\" | \"unknown\";\nexport type LogWorkloadKind = \"Pod\" | \"Deployment\" | \"DaemonSet\" | \"StatefulSet\" | \"ReplicaSet\" | \"Job\" | \"CronJob\";\nexport interface LogTarget {\n kind: LogWorkloadKind;\n namespace: string;\n name: string;\n uid: string;\n}\nexport interface LogSource {\n namespace: string;\n pod: string;\n podUid: string;\n container: string;\n previous?: boolean;\n}\nexport interface LogRecord {\n timestamp: number | null;\n pod: string;\n podUid: string;\n container: string;\n level: LogLevel;\n message: string;\n fieldsJson: string | null;\n previous?: boolean;\n}\nexport interface LogCapture {\n id: string;\n target: LogTarget;\n createdAt: number;\n expiresAt: number;\n state: \"collecting\" | \"ready\" | \"partial\";\n rows: number;\n bytes: number;\n notes: string[];\n lastSql?: string;\n persistent?: boolean;\n}\nexport type LogCell = string | number | boolean | null;\nexport interface LogQueryResult {\n error?: string;\n columns: string[];\n rows: LogCell[][];\n truncated: boolean;\n elapsedMs: number;\n}\nexport interface LogPartition {\n clusterId: string;\n contextId: string;\n}\nexport type LogRequest = LogPartition &\n (\n | { operation: \"permit\"; lane: \"start\" | \"bytes\"; bytes?: number }\n | { operation: \"stream-open\"; streamId: string; follow: boolean }\n | { operation: \"stream-close\" | \"stream-renew\"; streamId: string }\n | { operation: \"create\"; target: LogTarget }\n | { operation: \"append\"; captureId: string; records: LogRecord[] }\n | { operation: \"finish\"; captureId: string; partial: boolean; notes: string[] }\n | { operation: \"list\" }\n | { operation: \"clear-persistent\" }\n | { operation: \"storage-status\" }\n | { operation: \"clear-storage\" }\n | { operation: \"delete\"; captureId: string }\n | { operation: \"set-persistent\"; captureId: string; persistent: boolean }\n | { operation: \"save-sql\"; captureId: string; sql: string }\n | { operation: \"query\"; captureId: string; queryId: string; sql: string }\n | { operation: \"cancel\"; queryId: string }\n | { operation: \"export\"; captureId: string }\n );\n"],"mappings":";AAAA,IAAa,+BAA+B;AAC5C,IAAa,0BACX;AACF,IAAa,6BAA6B;AAO1C,IAAa,qBAAqB;AAClC,IAAa,4BAA4B;CACvC,UAAU;CACV,WAAW;CACX,WAAW;CACX,YAAY;CACZ,aAAa;CACb,cAAc;CACd,aAAa;CACb,UAAU;CACV,SAAS;CACT,YAAY;CACZ,aAAa;CACb,SAAS;CACT,OAAO;CACP,cAAc;CACd,cAAc;CACd,oBAAoB;CACpB,oBAAoB;CACpB,mBAAmB;CACnB,gBAAgB;CAChB,oBAAoB;CACpB,iBAAiB;AACnB;AAIA,IAAa,oBAAqC,EAAE,GAAG,0BAA0B"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//#region src/main/power-logs-child.ts
|
|
1
|
+
import "./power-logs-D2eUB0f0.js";
|
|
2
|
+
import { t as applyPowerLogsLimits } from "./power-logs-limits-CdzRcMHg.js";
|
|
3
|
+
import { PowerLogsDatabase } from "./power-logs-database.js";
|
|
4
|
+
import { copyFile } from "node:fs/promises";
|
|
5
|
+
// src/main/power-logs-child.ts
|
|
7
6
|
var port = process.parentPort;
|
|
8
7
|
if (!port) throw new Error("Log process requires parent");
|
|
9
|
-
var engine = new
|
|
8
|
+
var engine = new PowerLogsDatabase(process.argv[2], process.argv[3]);
|
|
10
9
|
var queries = /* @__PURE__ */ new Map();
|
|
11
10
|
var queryKey = (request) => JSON.stringify([
|
|
12
11
|
request.clusterId,
|
|
13
12
|
request.contextId,
|
|
14
13
|
request.queryId
|
|
15
14
|
]);
|
|
16
|
-
var queue = Promise.resolve()
|
|
15
|
+
var queue = Promise.resolve();
|
|
16
|
+
var queuedCount = 0;
|
|
17
17
|
port.on("message", ({ data }) => {
|
|
18
18
|
if (data.request.operation === "cancel") {
|
|
19
19
|
const pending = queries.get(queryKey(data.request));
|
|
@@ -63,9 +63,9 @@ port.on("message", ({ data }) => {
|
|
|
63
63
|
const run = async () => {
|
|
64
64
|
try {
|
|
65
65
|
if (pending?.canceled) return;
|
|
66
|
-
|
|
66
|
+
applyPowerLogsLimits(data.limits);
|
|
67
67
|
if (pending) pending.started = true;
|
|
68
|
-
const result = data.request.operation === "export" && data.destination ? await
|
|
68
|
+
const result = data.request.operation === "export" && data.destination ? await copyFile(engine.exportPath(data.request), data.destination).then(() => true) : await engine.run(data.request);
|
|
69
69
|
port.postMessage({
|
|
70
70
|
id: data.id,
|
|
71
71
|
result
|
|
@@ -82,6 +82,6 @@ port.on("message", ({ data }) => {
|
|
|
82
82
|
};
|
|
83
83
|
queue = queue.then(run);
|
|
84
84
|
});
|
|
85
|
-
|
|
85
|
+
export {};
|
|
86
86
|
|
|
87
87
|
//# sourceMappingURL=power-logs-child.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"power-logs-child.js","names":[],"sources":["../src/main/power-logs-child.ts"],"sourcesContent":["import { copyFile } from \"node:fs/promises\";\nimport { POWER_LOGS_STORAGE_FULL } from \"../common/power-logs\";\nimport { applyPowerLogsLimits } from \"../common/power-logs-limits\";\nimport { PowerLogsDatabase } from \"./power-logs-database\";\n\nimport type { LogRequest } from \"../common/power-logs\";\n\nconst port = process.parentPort;\nif (!port) throw new Error(\"Log process requires parent\");\nconst engine = new PowerLogsDatabase(process.argv[2], process.argv[3]);\nconst queries = new Map<string, { id: number; started: boolean; canceled: boolean }>();\nconst queryKey = (request: LogRequest & { queryId: string }) =>\n JSON.stringify([request.clusterId, request.contextId, request.queryId]);\nlet queue = Promise.resolve(),\n queuedCount = 0;\nport.on(\n \"message\",\n ({ data }: { data: { id: number; request: LogRequest; destination?: string; limits?: unknown } }) => {\n if (data.request.operation === \"cancel\") {\n const pending = queries.get(queryKey(data.request));\n if (pending && !pending.started) {\n if (!pending.canceled) port.postMessage({ id: pending.id, error: \"Log query canceled\" });\n pending.canceled = true;\n port.postMessage({ id: data.id, result: true });\n return;\n }\n void engine.run(data.request).then(\n (result) => port.postMessage({ id: data.id, result }),\n () => port.postMessage({ id: data.id, error: \"Log operation failed or exceeded its limit\" }),\n );\n return;\n }\n const key = data.request.operation === \"query\" ? queryKey(data.request) : undefined;\n if (key && queries.size) {\n port.postMessage({ id: data.id, error: \"Log query is busy\" });\n return;\n }\n if (queuedCount >= 16) {\n port.postMessage({ id: data.id, error: \"Log operation queue is full\" });\n return;\n }\n const pending = key ? { id: data.id, started: false, canceled: false } : undefined;\n if (key && pending) queries.set(key, pending);\n queuedCount++;\n const run = async () => {\n try {\n if (pending?.canceled) return;\n applyPowerLogsLimits(data.limits);\n if (pending) pending.started = true;\n const result =\n data.request.operation === \"export\" && data.destination\n ? await copyFile(engine.exportPath(data.request), data.destination).then(() => true)\n : await engine.run(data.request);\n port.postMessage({ id: data.id, result });\n } catch (error) {\n port.postMessage({\n id: data.id,\n error:\n error instanceof Error &&\n (error.message === POWER_LOGS_STORAGE_FULL ||\n error.message === \"Saved snapshot limit reached. Delete a saved snapshot before keeping another.\")\n ? error.message\n : \"Log operation failed or exceeded its limit\",\n });\n } finally {\n queuedCount--;\n if (key) queries.delete(key);\n }\n };\n queue = queue.then(run);\n },\n);\n"],"mappings":";;;;;AAOA,IAAM,OAAO,QAAQ;AACrB,IAAI,CAAC,MAAM,MAAM,IAAI,MAAM,6BAA6B;AACxD,IAAM,SAAS,IAAI,kBAAkB,QAAQ,KAAK,IAAI,QAAQ,KAAK,EAAE;AACrE,IA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M,SACJ,KAAK,QAAQ,cAAc,YAAY,KAAK,cACxC,MAAM,SAAS,OAAO,WAAW,KAAK,OAAO,GAAG,KAAK,WAAW,CAAC,CAAC,WAAW,IAAI,IACjF,MAAM,OAAO,IAAI,KAAK,OAAO;GACnC,KAAK,YAAY;IAAE,IAAI,KAAK;IAAI;GAAO,CAAC;EAC1C,SAAS,OAAO;GACd,KAAK,YAAY;IACf,IAAI,KAAK;IACT,OACE,iBAAiB,UAChB,MAAM,YAAA,4FACL,MAAM,YAAY,mFAChB,MAAM,UACN;GACR,CAAC;EACH,UAAU;GACR;GACA,IAAI,KAAK,QAAQ,OAAO,GAAG;EAC7B;CACF;CACA,QAAQ,MAAM,KAAK,GAAG;AACxB,CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { a as POWER_LOGS_STORAGE_FULL, o as POWER_LOGS_STORAGE_MAX_BYTES, r as POWER_LOGS_LIMITS } from "./power-logs-D2eUB0f0.js";
|
|
2
|
+
import { randomUUID } from "node:crypto";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { appendFileSync, chmodSync, cpSync, createReadStream, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, truncateSync, writeFileSync } from "node:fs";
|
|
5
|
+
import { createInterface } from "node:readline";
|
|
6
|
+
import { DatabaseSync } from "node:sqlite";
|
|
7
|
+
// src/main/power-logs-database.ts
|
|
8
8
|
var PowerLogsDatabase = class {
|
|
9
9
|
directory;
|
|
10
10
|
persistentDirectory;
|
|
@@ -12,48 +12,48 @@ var PowerLogsDatabase = class {
|
|
|
12
12
|
captures = /* @__PURE__ */ new Map();
|
|
13
13
|
closed = false;
|
|
14
14
|
timer;
|
|
15
|
-
constructor(directory, persistentDirectory, storageLimit =
|
|
15
|
+
constructor(directory, persistentDirectory, storageLimit = POWER_LOGS_STORAGE_MAX_BYTES) {
|
|
16
16
|
this.directory = directory;
|
|
17
17
|
this.persistentDirectory = persistentDirectory;
|
|
18
18
|
this.storageLimit = storageLimit;
|
|
19
|
-
|
|
19
|
+
mkdirSync(directory, {
|
|
20
20
|
recursive: true,
|
|
21
21
|
mode: 448
|
|
22
22
|
});
|
|
23
|
-
|
|
23
|
+
chmodSync(directory, 448);
|
|
24
24
|
if (persistentDirectory) {
|
|
25
|
-
|
|
25
|
+
mkdirSync(persistentDirectory, {
|
|
26
26
|
recursive: true,
|
|
27
27
|
mode: 448
|
|
28
28
|
});
|
|
29
|
-
|
|
30
|
-
for (const id of
|
|
29
|
+
chmodSync(persistentDirectory, 448);
|
|
30
|
+
for (const id of readdirSync(persistentDirectory)) {
|
|
31
31
|
if (/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\.pending$/.test(id)) {
|
|
32
|
-
const pending =
|
|
33
|
-
const info =
|
|
34
|
-
if (info.isDirectory() && !info.isSymbolicLink() && (!process.getuid || info.uid === process.getuid()))
|
|
32
|
+
const pending = join(persistentDirectory, id);
|
|
33
|
+
const info = lstatSync(pending);
|
|
34
|
+
if (info.isDirectory() && !info.isSymbolicLink() && (!process.getuid || info.uid === process.getuid())) rmSync(pending, {
|
|
35
35
|
recursive: true,
|
|
36
36
|
force: true
|
|
37
37
|
});
|
|
38
38
|
continue;
|
|
39
39
|
}
|
|
40
40
|
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(id)) continue;
|
|
41
|
-
const directory =
|
|
41
|
+
const directory = join(persistentDirectory, id);
|
|
42
42
|
try {
|
|
43
|
-
if (!
|
|
44
|
-
const manifest =
|
|
45
|
-
if (!
|
|
46
|
-
const saved = JSON.parse(
|
|
43
|
+
if (!lstatSync(directory).isDirectory() || lstatSync(directory).isSymbolicLink()) continue;
|
|
44
|
+
const manifest = join(directory, "capture.json");
|
|
45
|
+
if (!lstatSync(manifest).isFile() || lstatSync(manifest).isSymbolicLink()) continue;
|
|
46
|
+
const saved = JSON.parse(readFileSync(manifest, "utf8"));
|
|
47
47
|
if (saved.meta?.id === id && saved.meta.persistent === false) {
|
|
48
|
-
|
|
48
|
+
rmSync(directory, {
|
|
49
49
|
recursive: true,
|
|
50
50
|
force: true
|
|
51
51
|
});
|
|
52
52
|
continue;
|
|
53
53
|
}
|
|
54
54
|
if (saved.meta?.id !== id || saved.meta.persistent !== true || !["ready", "partial"].includes(saved.meta.state) || typeof saved.partition !== "string") continue;
|
|
55
|
-
const spool =
|
|
56
|
-
if (![spool, database].every((path) =>
|
|
55
|
+
const spool = join(directory, "logs.ndjson"), database = join(directory, "logs.sqlite");
|
|
56
|
+
if (![spool, database].every((path) => lstatSync(path).isFile() && !lstatSync(path).isSymbolicLink())) continue;
|
|
57
57
|
this.captures.set(id, {
|
|
58
58
|
meta: saved.meta,
|
|
59
59
|
partition: saved.partition,
|
|
@@ -69,12 +69,12 @@ var PowerLogsDatabase = class {
|
|
|
69
69
|
this.timer.unref();
|
|
70
70
|
}
|
|
71
71
|
directoryBytes(directory) {
|
|
72
|
-
const root =
|
|
72
|
+
const root = lstatSync(directory);
|
|
73
73
|
if (!root.isDirectory() || root.isSymbolicLink()) throw new Error("Log storage unavailable");
|
|
74
74
|
let bytes = 0;
|
|
75
|
-
for (const name of
|
|
76
|
-
const path =
|
|
77
|
-
const info =
|
|
75
|
+
for (const name of readdirSync(directory)) {
|
|
76
|
+
const path = join(directory, name);
|
|
77
|
+
const info = lstatSync(path);
|
|
78
78
|
if (info.isSymbolicLink()) continue;
|
|
79
79
|
if (info.isFile()) bytes += info.size;
|
|
80
80
|
else if (info.isDirectory()) bytes += this.directoryBytes(path);
|
|
@@ -85,7 +85,7 @@ var PowerLogsDatabase = class {
|
|
|
85
85
|
return this.directoryBytes(this.directory) + (this.persistentDirectory ? this.directoryBytes(this.persistentDirectory) : 0);
|
|
86
86
|
}
|
|
87
87
|
reserve(bytes) {
|
|
88
|
-
if (this.storageBytes() + bytes > this.storageLimit) throw new Error(
|
|
88
|
+
if (this.storageBytes() + bytes > this.storageLimit) throw new Error(POWER_LOGS_STORAGE_FULL);
|
|
89
89
|
}
|
|
90
90
|
partition(request) {
|
|
91
91
|
return JSON.stringify([request.clusterId, request.contextId]);
|
|
@@ -102,11 +102,11 @@ var PowerLogsDatabase = class {
|
|
|
102
102
|
const capture = this.captures.get(id);
|
|
103
103
|
if (!capture) return;
|
|
104
104
|
try {
|
|
105
|
-
if (capture.retiredDirectory)
|
|
105
|
+
if (capture.retiredDirectory) rmSync(capture.retiredDirectory, {
|
|
106
106
|
recursive: true,
|
|
107
107
|
force: true
|
|
108
108
|
});
|
|
109
|
-
|
|
109
|
+
rmSync(capture.directory, {
|
|
110
110
|
recursive: true,
|
|
111
111
|
force: true
|
|
112
112
|
});
|
|
@@ -146,17 +146,17 @@ var PowerLogsDatabase = class {
|
|
|
146
146
|
if (request.operation === "list") return [...this.captures.values()].filter((c) => c.partition === partition && (c.meta.persistent || c.meta.expiresAt > Date.now())).map((c) => ({ ...c.meta }));
|
|
147
147
|
if (request.operation === "create") {
|
|
148
148
|
const captures = [...this.captures.values()];
|
|
149
|
-
if (captures.filter((capture) => capture.partition === partition).length >=
|
|
150
|
-
const id =
|
|
149
|
+
if (captures.filter((capture) => capture.partition === partition).length >= POWER_LOGS_LIMITS.captures || captures.filter((capture) => !capture.meta.persistent).length >= POWER_LOGS_LIMITS.captures) throw new Error("Capture limit reached");
|
|
150
|
+
const id = randomUUID(), directory = join(this.directory, id), now = Date.now();
|
|
151
151
|
this.reserve(0);
|
|
152
|
-
|
|
153
|
-
const spool =
|
|
154
|
-
|
|
152
|
+
mkdirSync(directory, { mode: 448 });
|
|
153
|
+
const spool = join(directory, "logs.ndjson");
|
|
154
|
+
writeFileSync(spool, "", { mode: 384 });
|
|
155
155
|
const meta = {
|
|
156
156
|
id,
|
|
157
157
|
target: request.target,
|
|
158
158
|
createdAt: now,
|
|
159
|
-
expiresAt: now +
|
|
159
|
+
expiresAt: now + POWER_LOGS_LIMITS.ttlMs,
|
|
160
160
|
state: "collecting",
|
|
161
161
|
rows: 0,
|
|
162
162
|
bytes: 0,
|
|
@@ -167,10 +167,10 @@ var PowerLogsDatabase = class {
|
|
|
167
167
|
partition,
|
|
168
168
|
directory,
|
|
169
169
|
spool,
|
|
170
|
-
database:
|
|
170
|
+
database: join(directory, "logs.sqlite"),
|
|
171
171
|
limits: {
|
|
172
|
-
captureBytes:
|
|
173
|
-
captureRows:
|
|
172
|
+
captureBytes: POWER_LOGS_LIMITS.captureBytes,
|
|
173
|
+
captureRows: POWER_LOGS_LIMITS.captureRows
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
176
|
return { ...meta };
|
|
@@ -185,9 +185,9 @@ var PowerLogsDatabase = class {
|
|
|
185
185
|
if (capture.meta.state === "collecting") throw new Error("Finish capture before saving");
|
|
186
186
|
if (request.persistent === !!capture.meta.persistent) return { ...capture.meta };
|
|
187
187
|
if (request.persistent) {
|
|
188
|
-
if ([...this.captures.values()].filter((item) => item.meta.persistent).length >=
|
|
188
|
+
if ([...this.captures.values()].filter((item) => item.meta.persistent).length >= POWER_LOGS_LIMITS.captures) throw new Error("Saved snapshot limit reached. Delete a saved snapshot before keeping another.");
|
|
189
189
|
if (!this.persistentDirectory) throw new Error("Persistent storage unavailable");
|
|
190
|
-
const directory =
|
|
190
|
+
const directory = join(this.persistentDirectory, capture.meta.id);
|
|
191
191
|
if (capture.directory === directory) {
|
|
192
192
|
this.saveMetadata({
|
|
193
193
|
...capture,
|
|
@@ -199,10 +199,10 @@ var PowerLogsDatabase = class {
|
|
|
199
199
|
capture.meta.persistent = true;
|
|
200
200
|
return { ...capture.meta };
|
|
201
201
|
}
|
|
202
|
-
const staging =
|
|
202
|
+
const staging = join(this.persistentDirectory, `${capture.meta.id}.pending`);
|
|
203
203
|
try {
|
|
204
204
|
this.reserve(this.directoryBytes(capture.directory));
|
|
205
|
-
|
|
205
|
+
cpSync(capture.directory, staging, {
|
|
206
206
|
recursive: true,
|
|
207
207
|
errorOnExist: true,
|
|
208
208
|
force: false
|
|
@@ -215,9 +215,9 @@ var PowerLogsDatabase = class {
|
|
|
215
215
|
persistent: true
|
|
216
216
|
}
|
|
217
217
|
}, staging);
|
|
218
|
-
|
|
218
|
+
renameSync(staging, directory);
|
|
219
219
|
} catch (error) {
|
|
220
|
-
|
|
220
|
+
rmSync(staging, {
|
|
221
221
|
recursive: true,
|
|
222
222
|
force: true
|
|
223
223
|
});
|
|
@@ -226,31 +226,31 @@ var PowerLogsDatabase = class {
|
|
|
226
226
|
}
|
|
227
227
|
capture.retiredDirectory = capture.directory;
|
|
228
228
|
capture.directory = directory;
|
|
229
|
-
capture.spool =
|
|
230
|
-
capture.database =
|
|
229
|
+
capture.spool = join(directory, "logs.ndjson");
|
|
230
|
+
capture.database = join(directory, "logs.sqlite");
|
|
231
231
|
capture.meta.persistent = true;
|
|
232
232
|
} else {
|
|
233
|
-
if ([...this.captures.values()].filter((item) => !item.meta.persistent).length >=
|
|
234
|
-
const directory =
|
|
233
|
+
if ([...this.captures.values()].filter((item) => !item.meta.persistent).length >= POWER_LOGS_LIMITS.captures) throw new Error("Capture limit reached");
|
|
234
|
+
const directory = join(this.directory, capture.meta.id);
|
|
235
235
|
const staging = `${directory}.pending`;
|
|
236
236
|
try {
|
|
237
237
|
this.reserve(this.directoryBytes(capture.directory));
|
|
238
|
-
|
|
238
|
+
cpSync(capture.directory, staging, {
|
|
239
239
|
recursive: true,
|
|
240
240
|
errorOnExist: true,
|
|
241
241
|
force: false
|
|
242
242
|
});
|
|
243
|
-
|
|
243
|
+
rmSync(directory, {
|
|
244
244
|
recursive: true,
|
|
245
245
|
force: true
|
|
246
246
|
});
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
renameSync(staging, directory);
|
|
248
|
+
rmSync(capture.directory, {
|
|
249
249
|
recursive: true,
|
|
250
250
|
force: true
|
|
251
251
|
});
|
|
252
252
|
} catch (error) {
|
|
253
|
-
|
|
253
|
+
rmSync(staging, {
|
|
254
254
|
recursive: true,
|
|
255
255
|
force: true
|
|
256
256
|
});
|
|
@@ -259,12 +259,12 @@ var PowerLogsDatabase = class {
|
|
|
259
259
|
}
|
|
260
260
|
capture.directory = directory;
|
|
261
261
|
capture.retiredDirectory = void 0;
|
|
262
|
-
capture.spool =
|
|
263
|
-
capture.database =
|
|
262
|
+
capture.spool = join(directory, "logs.ndjson");
|
|
263
|
+
capture.database = join(directory, "logs.sqlite");
|
|
264
264
|
capture.meta = {
|
|
265
265
|
...capture.meta,
|
|
266
266
|
persistent: false,
|
|
267
|
-
expiresAt: Date.now() +
|
|
267
|
+
expiresAt: Date.now() + POWER_LOGS_LIMITS.ttlMs
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
return { ...capture.meta };
|
|
@@ -285,18 +285,18 @@ var PowerLogsDatabase = class {
|
|
|
285
285
|
if (request.operation === "export") throw new Error("Export requires trusted destination");
|
|
286
286
|
if (request.operation === "append") {
|
|
287
287
|
if (capture.meta.state !== "collecting") throw new Error("Capture is complete");
|
|
288
|
-
if (request.records.length >
|
|
288
|
+
if (request.records.length > POWER_LOGS_LIMITS.batchRows) throw new Error("Log batch exceeds limit");
|
|
289
289
|
const data = request.records.map((record) => JSON.stringify({
|
|
290
290
|
...record,
|
|
291
291
|
previous: record.previous === true
|
|
292
292
|
}) + "\n").join("");
|
|
293
293
|
const bytes = Buffer.byteLength(data);
|
|
294
|
-
if (bytes >
|
|
294
|
+
if (bytes > POWER_LOGS_LIMITS.batchBytes || capture.meta.bytes + bytes > capture.limits.captureBytes || capture.meta.rows + request.records.length > capture.limits.captureRows) throw new Error("Capture limit reached");
|
|
295
295
|
this.reserve(bytes);
|
|
296
296
|
try {
|
|
297
|
-
|
|
297
|
+
appendFileSync(capture.spool, data);
|
|
298
298
|
} catch {
|
|
299
|
-
|
|
299
|
+
truncateSync(capture.spool, capture.meta.bytes);
|
|
300
300
|
throw new Error("Log capture storage unavailable");
|
|
301
301
|
}
|
|
302
302
|
capture.meta.rows += request.records.length;
|
|
@@ -306,17 +306,17 @@ var PowerLogsDatabase = class {
|
|
|
306
306
|
if (request.operation === "finish") {
|
|
307
307
|
if (capture.meta.state !== "collecting") return { ...capture.meta };
|
|
308
308
|
const pages = Math.floor((this.storageLimit - this.storageBytes()) / 4096);
|
|
309
|
-
if (pages < 2) throw new Error(
|
|
309
|
+
if (pages < 2) throw new Error(POWER_LOGS_STORAGE_FULL);
|
|
310
310
|
let database;
|
|
311
311
|
try {
|
|
312
|
-
|
|
313
|
-
database = new
|
|
312
|
+
writeFileSync(capture.database, "", { mode: 384 });
|
|
313
|
+
database = new DatabaseSync(capture.database, { allowExtension: false });
|
|
314
314
|
database.exec(`PRAGMA page_size=4096; PRAGMA max_page_count=${pages}`);
|
|
315
315
|
database.exec("PRAGMA journal_mode=OFF; PRAGMA synchronous=OFF; PRAGMA cache_size=-16384; PRAGMA temp_store=MEMORY");
|
|
316
316
|
database.exec("CREATE TABLE logs(timestamp INTEGER, pod TEXT, podUid TEXT, container TEXT, level TEXT, message TEXT, fieldsJson TEXT, previous INTEGER CHECK(previous IN (0,1)))");
|
|
317
317
|
const insert = database.prepare("INSERT INTO logs VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
|
|
318
|
-
const input =
|
|
319
|
-
const lines =
|
|
318
|
+
const input = createReadStream(capture.spool);
|
|
319
|
+
const lines = createInterface({
|
|
320
320
|
input,
|
|
321
321
|
crlfDelay: Infinity
|
|
322
322
|
});
|
|
@@ -340,8 +340,8 @@ var PowerLogsDatabase = class {
|
|
|
340
340
|
} catch (error) {
|
|
341
341
|
database?.close();
|
|
342
342
|
database = void 0;
|
|
343
|
-
|
|
344
|
-
if (error instanceof Error && /database or disk is full/.test(error.message)) throw new Error(
|
|
343
|
+
rmSync(capture.database, { force: true });
|
|
344
|
+
if (error instanceof Error && /database or disk is full/.test(error.message)) throw new Error(POWER_LOGS_STORAGE_FULL);
|
|
345
345
|
throw new Error("Log capture storage unavailable");
|
|
346
346
|
} finally {
|
|
347
347
|
database?.close();
|
|
@@ -358,28 +358,27 @@ var PowerLogsDatabase = class {
|
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
saveMetadata(capture, directory = capture.directory) {
|
|
361
|
-
const temporary =
|
|
361
|
+
const temporary = join(directory, "capture.json.pending");
|
|
362
362
|
const data = JSON.stringify({
|
|
363
363
|
meta: capture.meta,
|
|
364
364
|
partition: capture.partition,
|
|
365
365
|
limits: capture.limits
|
|
366
366
|
});
|
|
367
367
|
this.reserve(Buffer.byteLength(data));
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
writeFileSync(temporary, data, { mode: 384 });
|
|
369
|
+
renameSync(temporary, join(directory, "capture.json"));
|
|
370
370
|
}
|
|
371
371
|
close() {
|
|
372
372
|
this.closed = true;
|
|
373
373
|
clearInterval(this.timer);
|
|
374
374
|
for (const [id, capture] of this.captures) if (!capture.meta.persistent) this.remove(id);
|
|
375
375
|
this.captures.clear();
|
|
376
|
-
|
|
376
|
+
rmSync(this.directory, {
|
|
377
377
|
recursive: true,
|
|
378
378
|
force: true
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
|
-
|
|
383
|
-
exports.PowerLogsDatabase = PowerLogsDatabase;
|
|
382
|
+
export { PowerLogsDatabase };
|
|
384
383
|
|
|
385
384
|
//# sourceMappingURL=power-logs-database.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"power-logs-database.js","names":[],"sources":["../../src/main/power-logs-database.ts"],"sourcesContent":["import { randomUUID } from \"node:crypto\";\nimport {\n appendFileSync,\n chmodSync,\n cpSync,\n createReadStream,\n lstatSync,\n mkdirSync,\n readdirSync,\n readFileSync,\n renameSync,\n rmSync,\n truncateSync,\n writeFileSync,\n} from \"node:fs\";\nimport { join } from \"node:path\";\nimport { createInterface } from \"node:readline\";\nimport { DatabaseSync } from \"node:sqlite\";\nimport {\n POWER_LOGS_LIMITS as L,\n type LogCapture,\n type LogRequest,\n POWER_LOGS_STORAGE_FULL,\n POWER_LOGS_STORAGE_MAX_BYTES,\n} from \"../common/power-logs\";\n\nimport type { PowerLogsQuerySnapshot } from \"./power-logs-query\";\n\ntype Capture = {\n meta: LogCapture;\n partition: string;\n directory: string;\n spool: string;\n database: string;\n retiredDirectory?: string;\n limits: { captureBytes: number; captureRows: number };\n};\nexport class PowerLogsDatabase {\n private captures = new Map<string, Capture>();\n private closed = false;\n private timer: ReturnType<typeof setInterval>;\n constructor(\n private directory: string,\n private persistentDirectory?: string,\n private storageLimit = POWER_LOGS_STORAGE_MAX_BYTES,\n ) {\n mkdirSync(directory, { recursive: true, mode: 0o700 });\n chmodSync(directory, 0o700);\n if (persistentDirectory) {\n mkdirSync(persistentDirectory, { recursive: true, mode: 0o700 });\n chmodSync(persistentDirectory, 0o700);\n for (const id of readdirSync(persistentDirectory)) {\n if (/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\\.pending$/.test(id)) {\n const pending = join(persistentDirectory, id);\n const info = lstatSync(pending);\n if (info.isDirectory() && !info.isSymbolicLink() && (!process.getuid || info.uid === process.getuid())) {\n rmSync(pending, { recursive: true, force: true });\n }\n continue;\n }\n if (!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(id)) continue;\n const directory = join(persistentDirectory, id);\n try {\n if (!lstatSync(directory).isDirectory() || lstatSync(directory).isSymbolicLink()) continue;\n const manifest = join(directory, \"capture.json\");\n if (!lstatSync(manifest).isFile() || lstatSync(manifest).isSymbolicLink()) continue;\n const saved = JSON.parse(readFileSync(manifest, \"utf8\"));\n if (saved.meta?.id === id && saved.meta.persistent === false) {\n rmSync(directory, { recursive: true, force: true });\n continue;\n }\n if (\n saved.meta?.id !== id ||\n saved.meta.persistent !== true ||\n ![\"ready\", \"partial\"].includes(saved.meta.state) ||\n typeof saved.partition !== \"string\"\n )\n continue;\n const spool = join(directory, \"logs.ndjson\"),\n database = join(directory, \"logs.sqlite\");\n if (![spool, database].every((path) => lstatSync(path).isFile() && !lstatSync(path).isSymbolicLink()))\n continue;\n this.captures.set(id, {\n meta: saved.meta,\n partition: saved.partition,\n limits: saved.limits,\n directory,\n spool,\n database,\n });\n } catch {\n // leave unreadable saved captures available for recovery\n }\n }\n }\n this.timer = setInterval(() => this.expire(), 30000);\n this.timer.unref();\n }\n private directoryBytes(directory: string): number {\n const root = lstatSync(directory);\n if (!root.isDirectory() || root.isSymbolicLink()) throw new Error(\"Log storage unavailable\");\n let bytes = 0;\n for (const name of readdirSync(directory)) {\n const path = join(directory, name);\n const info = lstatSync(path);\n if (info.isSymbolicLink()) continue;\n if (info.isFile()) bytes += info.size;\n else if (info.isDirectory()) bytes += this.directoryBytes(path);\n }\n return bytes;\n }\n private storageBytes(): number {\n return (\n this.directoryBytes(this.directory) +\n (this.persistentDirectory ? this.directoryBytes(this.persistentDirectory) : 0)\n );\n }\n private reserve(bytes: number): void {\n if (this.storageBytes() + bytes > this.storageLimit) throw new Error(POWER_LOGS_STORAGE_FULL);\n }\n private partition(request: LogRequest): string {\n return JSON.stringify([request.clusterId, request.contextId]);\n }\n private expire(): void {\n for (const [id, capture] of this.captures) {\n if (capture.meta.persistent || capture.meta.expiresAt > Date.now()) continue;\n try {\n this.remove(id);\n } catch {\n // retain expired entries within the capture limit until a later sweep can remove locked files\n }\n }\n }\n private remove(id: string): void {\n const capture = this.captures.get(id);\n if (!capture) return;\n try {\n if (capture.retiredDirectory) rmSync(capture.retiredDirectory, { recursive: true, force: true });\n rmSync(capture.directory, { recursive: true, force: true });\n } catch {\n throw new Error(\"Log capture storage is busy or unavailable\");\n }\n this.captures.delete(id);\n }\n exportPath(request: LogRequest & { captureId: string }): string {\n return this.capture(request).spool;\n }\n private capture(request: LogRequest & { captureId: string }): Capture {\n const capture = this.captures.get(request.captureId);\n if (\n !capture ||\n capture.partition !== this.partition(request) ||\n (!capture.meta.persistent && capture.meta.expiresAt <= Date.now())\n )\n throw new Error(\"Capture unavailable\");\n return capture;\n }\n async run(request: LogRequest): Promise<unknown> {\n if (this.closed) throw new Error(\"Log storage unavailable\");\n this.expire();\n if (request.operation === \"permit\" || \"streamId\" in request) throw new Error(\"Log permits require main process\");\n const partition = this.partition(request);\n if (request.operation === \"cancel\") return true;\n if (request.operation === \"storage-status\") {\n return {\n bytes: this.storageBytes(),\n maxBytes: this.storageLimit,\n captures: this.captures.size,\n collecting: [...this.captures.values()].filter((capture) => capture.meta.state === \"collecting\").length,\n };\n }\n if (request.operation === \"clear-storage\") {\n for (const [id, capture] of this.captures) if (capture.meta.state !== \"collecting\") this.remove(id);\n return true;\n }\n if (request.operation === \"clear-persistent\") {\n for (const [id, capture] of this.captures) if (capture.meta.persistent) this.remove(id);\n return true;\n }\n if (request.operation === \"list\")\n return [...this.captures.values()]\n .filter((c) => c.partition === partition && (c.meta.persistent || c.meta.expiresAt > Date.now()))\n .map((c) => ({ ...c.meta }));\n if (request.operation === \"create\") {\n const captures = [...this.captures.values()];\n if (\n captures.filter((capture) => capture.partition === partition).length >= L.captures ||\n captures.filter((capture) => !capture.meta.persistent).length >= L.captures\n )\n throw new Error(\"Capture limit reached\");\n const id = randomUUID(),\n directory = join(this.directory, id),\n now = Date.now();\n this.reserve(0);\n mkdirSync(directory, { mode: 0o700 });\n const spool = join(directory, \"logs.ndjson\");\n writeFileSync(spool, \"\", { mode: 0o600 });\n const meta: LogCapture = {\n id,\n target: request.target,\n createdAt: now,\n expiresAt: now + L.ttlMs,\n state: \"collecting\",\n rows: 0,\n bytes: 0,\n notes: [],\n };\n this.captures.set(id, {\n meta,\n partition,\n directory,\n spool,\n database: join(directory, \"logs.sqlite\"),\n limits: { captureBytes: L.captureBytes, captureRows: L.captureRows },\n });\n return { ...meta };\n }\n const capture = this.capture(request);\n if (request.operation === \"delete\") {\n this.remove(request.captureId);\n return true;\n }\n if (request.operation === \"set-persistent\") {\n if (typeof request.persistent !== \"boolean\") throw new Error(\"Invalid persistence flag\");\n if (capture.meta.state === \"collecting\") throw new Error(\"Finish capture before saving\");\n if (request.persistent === !!capture.meta.persistent) return { ...capture.meta };\n if (request.persistent) {\n if ([...this.captures.values()].filter((item) => item.meta.persistent).length >= L.captures)\n throw new Error(\"Saved snapshot limit reached. Delete a saved snapshot before keeping another.\");\n if (!this.persistentDirectory) throw new Error(\"Persistent storage unavailable\");\n const directory = join(this.persistentDirectory, capture.meta.id);\n if (capture.directory === directory) {\n this.saveMetadata({ ...capture, meta: { ...capture.meta, persistent: true } });\n capture.meta.persistent = true;\n return { ...capture.meta };\n }\n const staging = join(this.persistentDirectory, `${capture.meta.id}.pending`);\n try {\n this.reserve(this.directoryBytes(capture.directory));\n cpSync(capture.directory, staging, { recursive: true, errorOnExist: true, force: false });\n this.saveMetadata({ ...capture, directory, meta: { ...capture.meta, persistent: true } }, staging);\n renameSync(staging, directory);\n } catch (error) {\n rmSync(staging, { recursive: true, force: true });\n if (error instanceof Error && error.message === POWER_LOGS_STORAGE_FULL) throw error;\n throw new Error(\"Persistent storage unavailable\");\n }\n // retain the original directory for active readers until capture deletion drains them\n capture.retiredDirectory = capture.directory;\n capture.directory = directory;\n capture.spool = join(directory, \"logs.ndjson\");\n capture.database = join(directory, \"logs.sqlite\");\n capture.meta.persistent = true;\n } else {\n if ([...this.captures.values()].filter((item) => !item.meta.persistent).length >= L.captures)\n throw new Error(\"Capture limit reached\");\n const directory = join(this.directory, capture.meta.id);\n const staging = `${directory}.pending`;\n try {\n this.reserve(this.directoryBytes(capture.directory));\n cpSync(capture.directory, staging, { recursive: true, errorOnExist: true, force: false });\n rmSync(directory, { recursive: true, force: true });\n renameSync(staging, directory);\n rmSync(capture.directory, { recursive: true, force: true });\n } catch (error) {\n rmSync(staging, { recursive: true, force: true });\n if (error instanceof Error && error.message === POWER_LOGS_STORAGE_FULL) throw error;\n throw new Error(\"Temporary storage unavailable\");\n }\n capture.directory = directory;\n capture.retiredDirectory = undefined;\n capture.spool = join(directory, \"logs.ndjson\");\n capture.database = join(directory, \"logs.sqlite\");\n capture.meta = { ...capture.meta, persistent: false, expiresAt: Date.now() + L.ttlMs };\n }\n return { ...capture.meta };\n }\n if (request.operation === \"save-sql\") {\n if (typeof request.sql !== \"string\" || request.sql.length > 65536 || request.sql.includes(\"\\0\"))\n throw new Error(\"Invalid SQL draft\");\n const meta = { ...capture.meta, lastSql: request.sql };\n if (capture.meta.persistent) this.saveMetadata({ ...capture, meta });\n capture.meta = meta;\n return { ...capture.meta };\n }\n if (request.operation === \"export\") throw new Error(\"Export requires trusted destination\");\n if (request.operation === \"append\") {\n if (capture.meta.state !== \"collecting\") throw new Error(\"Capture is complete\");\n if (request.records.length > L.batchRows) throw new Error(\"Log batch exceeds limit\");\n const data = request.records\n .map((record) => JSON.stringify({ ...record, previous: record.previous === true }) + \"\\n\")\n .join(\"\");\n const bytes = Buffer.byteLength(data);\n if (\n bytes > L.batchBytes ||\n capture.meta.bytes + bytes > capture.limits.captureBytes ||\n capture.meta.rows + request.records.length > capture.limits.captureRows\n )\n throw new Error(\"Capture limit reached\");\n this.reserve(bytes);\n try {\n appendFileSync(capture.spool, data);\n } catch {\n truncateSync(capture.spool, capture.meta.bytes);\n throw new Error(\"Log capture storage unavailable\");\n }\n capture.meta.rows += request.records.length;\n capture.meta.bytes += bytes;\n return { ...capture.meta };\n }\n if (request.operation === \"finish\") {\n if (capture.meta.state !== \"collecting\") return { ...capture.meta };\n const pages = Math.floor((this.storageLimit - this.storageBytes()) / 4096);\n if (pages < 2) throw new Error(POWER_LOGS_STORAGE_FULL);\n let database: DatabaseSync | undefined;\n try {\n writeFileSync(capture.database, \"\", { mode: 0o600 });\n database = new DatabaseSync(capture.database, { allowExtension: false });\n database.exec(`PRAGMA page_size=4096; PRAGMA max_page_count=${pages}`);\n database.exec(\n \"PRAGMA journal_mode=OFF; PRAGMA synchronous=OFF; PRAGMA cache_size=-16384; PRAGMA temp_store=MEMORY\",\n );\n database.exec(\n \"CREATE TABLE logs(timestamp INTEGER, pod TEXT, podUid TEXT, container TEXT, level TEXT, message TEXT, fieldsJson TEXT, previous INTEGER CHECK(previous IN (0,1)))\",\n );\n const insert = database.prepare(\"INSERT INTO logs VALUES (?, ?, ?, ?, ?, ?, ?, ?)\");\n const input = createReadStream(capture.spool);\n const lines = createInterface({ input, crlfDelay: Infinity });\n let count = 0;\n database.exec(\"BEGIN\");\n try {\n for await (const line of lines) {\n const record = JSON.parse(line);\n insert.run(\n record.timestamp,\n record.pod,\n record.podUid,\n record.container,\n record.level,\n record.message,\n record.fieldsJson,\n record.previous ? 1 : 0,\n );\n if (++count % 5000 === 0) {\n database.exec(\"COMMIT; BEGIN\");\n await new Promise<void>((resolve) => setImmediate(resolve));\n }\n }\n database.exec(\"COMMIT\");\n } finally {\n lines.close();\n input.destroy();\n }\n database.exec(\"CREATE INDEX logs_timestamp ON logs(timestamp)\");\n } catch (error) {\n database?.close();\n database = undefined;\n rmSync(capture.database, { force: true });\n if (error instanceof Error && /database or disk is full/.test(error.message))\n throw new Error(POWER_LOGS_STORAGE_FULL);\n throw new Error(\"Log capture storage unavailable\");\n } finally {\n database?.close();\n }\n capture.meta.state = request.partial ? \"partial\" : \"ready\";\n capture.meta.notes = request.notes;\n return { ...capture.meta };\n }\n if (capture.meta.state === \"collecting\") throw new Error(\"Finish capture before querying\");\n return {\n database: capture.database,\n captureId: capture.meta.id,\n expiresAt: capture.meta.persistent ? Number.MAX_SAFE_INTEGER : capture.meta.expiresAt,\n } satisfies PowerLogsQuerySnapshot;\n }\n private saveMetadata(capture: Capture, directory = capture.directory): void {\n const temporary = join(directory, \"capture.json.pending\");\n const data = JSON.stringify({ meta: capture.meta, partition: capture.partition, limits: capture.limits });\n this.reserve(Buffer.byteLength(data));\n writeFileSync(temporary, data, { mode: 0o600 });\n renameSync(temporary, join(directory, \"capture.json\"));\n }\n close(): void {\n this.closed = true;\n clearInterval(this.timer);\n for (const [id, capture] of this.captures) {\n if (!capture.meta.persistent) this.remove(id);\n }\n this.captures.clear();\n rmSync(this.directory, { recursive: true, force: true });\n }\n}\n"],"mappings":";;;;;;;AAqCA,IAAa,oBAAb,MAA+B;CAKnB;CACA;CACA;CANV,2BAAmB,IAAI,IAAqB;CAC5C,SAAiB;CACjB;CACA,YACE,WACA,qBACA,eAAuB,mBAAA,8BACvB;EAHQ,KAAA,YAAA;EACA,KAAA,sBAAA;EACA,KAAA,eAAA;EAER,CAAA,GAAA,QAAA,UAAA,CAAU,WAAW;GAAE,WAAW;GAAM,MAAM;EAAM,CAAC;EACrD,CAAA,GAAA,QAAA,UAAA,CAAU,WAAW,GAAK;EAC1B,IAAI,qBAAqB;GACvB,CAAA,GAAA,QAAA,UAAA,CAAU,qBAAqB;IAAE,WAAW;IAAM,MAAM;GAAM,CAAC;GAC/D,CAAA,GAAA,QAAA,UAAA,CAAU,qBAAqB,GAAK;GACpC,KAAK,MAAM,OAAA,GAAA,QAAA,YAAA,CAAkB,mBAAmB,GAAG;IACjD,IAAI,iFAAiF,KAAK,EAAE,GAAG;KAC7F,MAAM,WAAA,GAAA,UAAA,KAAA,CAAe,qBAAqB,EAAE;KAC5C,MAAM,QAAA,GAAA,QAAA,UAAA,CAAiB,OAAO;KAC9B,IAAI,KAAK,YAAY,KAAK,CAAC,KAAK,eAAe,MAAM,CAAC,QAAQ,UAAU,KAAK,QAAQ,QAAQ,OAAO,IAClG,CAAA,GAAA,QAAA,OAAA,CAAO,SAAS;MAAE,WAAW;MAAM,OAAO;KAAK,CAAC;KAElD;IACF;IACA,IAAI,CAAC,wEAAwE,KAAK,EAAE,GAAG;IACvF,MAAM,aAAA,GAAA,UAAA,KAAA,CAAiB,qBAAqB,EAAE;IAC9C,IAAI;KACF,IAAI,EAAA,GAAA,QAAA,UAAA,CAAW,SAAS,CAAC,CAAC,YAAY,MAAA,GAAA,QAAA,UAAA,CAAe,SAAS,CAA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pB,CAAA,GAAA,QAAA,OAAA,CAAO,KAAK,WAAW;GAAE,WAAW;GAAM,OAAO;EAAK,CAAC;CACzD;AACF"}
|
|
1
|
+
{"version":3,"file":"power-logs-database.js","names":["L"],"sources":["../src/main/power-logs-database.ts"],"sourcesContent":["import { randomUUID } from \"node:crypto\";\nimport {\n appendFileSync,\n chmodSync,\n cpSync,\n createReadStream,\n lstatSync,\n mkdirSync,\n readdirSync,\n readFileSync,\n renameSync,\n rmSync,\n truncateSync,\n writeFileSync,\n} from \"node:fs\";\nimport { join } from \"node:path\";\nimport { createInterface } from \"node:readline\";\nimport { DatabaseSync } from \"node:sqlite\";\nimport {\n POWER_LOGS_LIMITS as L,\n type LogCapture,\n type LogRequest,\n POWER_LOGS_STORAGE_FULL,\n POWER_LOGS_STORAGE_MAX_BYTES,\n} from \"../common/power-logs\";\n\nimport type { PowerLogsQuerySnapshot } from \"./power-logs-query\";\n\ntype Capture = {\n meta: LogCapture;\n partition: string;\n directory: string;\n spool: string;\n database: string;\n retiredDirectory?: string;\n limits: { captureBytes: number; captureRows: number };\n};\nexport class PowerLogsDatabase {\n private captures = new Map<string, Capture>();\n private closed = false;\n private timer: ReturnType<typeof setInterval>;\n constructor(\n private directory: string,\n private persistentDirectory?: string,\n private storageLimit = POWER_LOGS_STORAGE_MAX_BYTES,\n ) {\n mkdirSync(directory, { recursive: true, mode: 0o700 });\n chmodSync(directory, 0o700);\n if (persistentDirectory) {\n mkdirSync(persistentDirectory, { recursive: true, mode: 0o700 });\n chmodSync(persistentDirectory, 0o700);\n for (const id of readdirSync(persistentDirectory)) {\n if (/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\\.pending$/.test(id)) {\n const pending = join(persistentDirectory, id);\n const info = lstatSync(pending);\n if (info.isDirectory() && !info.isSymbolicLink() && (!process.getuid || info.uid === process.getuid())) {\n rmSync(pending, { recursive: true, force: true });\n }\n continue;\n }\n if (!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(id)) continue;\n const directory = join(persistentDirectory, id);\n try {\n if (!lstatSync(directory).isDirectory() || lstatSync(directory).isSymbolicLink()) continue;\n const manifest = join(directory, \"capture.json\");\n if (!lstatSync(manifest).isFile() || lstatSync(manifest).isSymbolicLink()) continue;\n const saved = JSON.parse(readFileSync(manifest, \"utf8\"));\n if (saved.meta?.id === id && saved.meta.persistent === false) {\n rmSync(directory, { recursive: true, force: true });\n continue;\n }\n if (\n saved.meta?.id !== id ||\n saved.meta.persistent !== true ||\n ![\"ready\", \"partial\"].includes(saved.meta.state) ||\n typeof saved.partition !== \"string\"\n )\n continue;\n const spool = join(directory, \"logs.ndjson\"),\n database = join(directory, \"logs.sqlite\");\n if (![spool, database].every((path) => lstatSync(path).isFile() && !lstatSync(path).isSymbolicLink()))\n continue;\n this.captures.set(id, {\n meta: saved.meta,\n partition: saved.partition,\n limits: saved.limits,\n directory,\n spool,\n database,\n });\n } catch {\n // leave unreadable saved captures available for recovery\n }\n }\n }\n this.timer = setInterval(() => this.expire(), 30000);\n this.timer.unref();\n }\n private directoryBytes(directory: string): number {\n const root = lstatSync(directory);\n if (!root.isDirectory() || root.isSymbolicLink()) throw new Error(\"Log storage unavailable\");\n let bytes = 0;\n for (const name of readdirSync(directory)) {\n const path = join(directory, name);\n const info = lstatSync(path);\n if (info.isSymbolicLink()) continue;\n if (info.isFile()) bytes += info.size;\n else if (info.isDirectory()) bytes += this.directoryBytes(path);\n }\n return bytes;\n }\n private storageBytes(): number {\n return (\n this.directoryBytes(this.directory) +\n (this.persistentDirectory ? this.directoryBytes(this.persistentDirectory) : 0)\n );\n }\n private reserve(bytes: number): void {\n if (this.storageBytes() + bytes > this.storageLimit) throw new Error(POWER_LOGS_STORAGE_FULL);\n }\n private partition(request: LogRequest): string {\n return JSON.stringify([request.clusterId, request.contextId]);\n }\n private expire(): void {\n for (const [id, capture] of this.captures) {\n if (capture.meta.persistent || capture.meta.expiresAt > Date.now()) continue;\n try {\n this.remove(id);\n } catch {\n // retain expired entries within the capture limit until a later sweep can remove locked files\n }\n }\n }\n private remove(id: string): void {\n const capture = this.captures.get(id);\n if (!capture) return;\n try {\n if (capture.retiredDirectory) rmSync(capture.retiredDirectory, { recursive: true, force: true });\n rmSync(capture.directory, { recursive: true, force: true });\n } catch {\n throw new Error(\"Log capture storage is busy or unavailable\");\n }\n this.captures.delete(id);\n }\n exportPath(request: LogRequest & { captureId: string }): string {\n return this.capture(request).spool;\n }\n private capture(request: LogRequest & { captureId: string }): Capture {\n const capture = this.captures.get(request.captureId);\n if (\n !capture ||\n capture.partition !== this.partition(request) ||\n (!capture.meta.persistent && capture.meta.expiresAt <= Date.now())\n )\n throw new Error(\"Capture unavailable\");\n return capture;\n }\n async run(request: LogRequest): Promise<unknown> {\n if (this.closed) throw new Error(\"Log storage unavailable\");\n this.expire();\n if (request.operation === \"permit\" || \"streamId\" in request) throw new Error(\"Log permits require main process\");\n const partition = this.partition(request);\n if (request.operation === \"cancel\") return true;\n if (request.operation === \"storage-status\") {\n return {\n bytes: this.storageBytes(),\n maxBytes: this.storageLimit,\n captures: this.captures.size,\n collecting: [...this.captures.values()].filter((capture) => capture.meta.state === \"collecting\").length,\n };\n }\n if (request.operation === \"clear-storage\") {\n for (const [id, capture] of this.captures) if (capture.meta.state !== \"collecting\") this.remove(id);\n return true;\n }\n if (request.operation === \"clear-persistent\") {\n for (const [id, capture] of this.captures) if (capture.meta.persistent) this.remove(id);\n return true;\n }\n if (request.operation === \"list\")\n return [...this.captures.values()]\n .filter((c) => c.partition === partition && (c.meta.persistent || c.meta.expiresAt > Date.now()))\n .map((c) => ({ ...c.meta }));\n if (request.operation === \"create\") {\n const captures = [...this.captures.values()];\n if (\n captures.filter((capture) => capture.partition === partition).length >= L.captures ||\n captures.filter((capture) => !capture.meta.persistent).length >= L.captures\n )\n throw new Error(\"Capture limit reached\");\n const id = randomUUID(),\n directory = join(this.directory, id),\n now = Date.now();\n this.reserve(0);\n mkdirSync(directory, { mode: 0o700 });\n const spool = join(directory, \"logs.ndjson\");\n writeFileSync(spool, \"\", { mode: 0o600 });\n const meta: LogCapture = {\n id,\n target: request.target,\n createdAt: now,\n expiresAt: now + L.ttlMs,\n state: \"collecting\",\n rows: 0,\n bytes: 0,\n notes: [],\n };\n this.captures.set(id, {\n meta,\n partition,\n directory,\n spool,\n database: join(directory, \"logs.sqlite\"),\n limits: { captureBytes: L.captureBytes, captureRows: L.captureRows },\n });\n return { ...meta };\n }\n const capture = this.capture(request);\n if (request.operation === \"delete\") {\n this.remove(request.captureId);\n return true;\n }\n if (request.operation === \"set-persistent\") {\n if (typeof request.persistent !== \"boolean\") throw new Error(\"Invalid persistence flag\");\n if (capture.meta.state === \"collecting\") throw new Error(\"Finish capture before saving\");\n if (request.persistent === !!capture.meta.persistent) return { ...capture.meta };\n if (request.persistent) {\n if ([...this.captures.values()].filter((item) => item.meta.persistent).length >= L.captures)\n throw new Error(\"Saved snapshot limit reached. Delete a saved snapshot before keeping another.\");\n if (!this.persistentDirectory) throw new Error(\"Persistent storage unavailable\");\n const directory = join(this.persistentDirectory, capture.meta.id);\n if (capture.directory === directory) {\n this.saveMetadata({ ...capture, meta: { ...capture.meta, persistent: true } });\n capture.meta.persistent = true;\n return { ...capture.meta };\n }\n const staging = join(this.persistentDirectory, `${capture.meta.id}.pending`);\n try {\n this.reserve(this.directoryBytes(capture.directory));\n cpSync(capture.directory, staging, { recursive: true, errorOnExist: true, force: false });\n this.saveMetadata({ ...capture, directory, meta: { ...capture.meta, persistent: true } }, staging);\n renameSync(staging, directory);\n } catch (error) {\n rmSync(staging, { recursive: true, force: true });\n if (error instanceof Error && error.message === POWER_LOGS_STORAGE_FULL) throw error;\n throw new Error(\"Persistent storage unavailable\");\n }\n // retain the original directory for active readers until capture deletion drains them\n capture.retiredDirectory = capture.directory;\n capture.directory = directory;\n capture.spool = join(directory, \"logs.ndjson\");\n capture.database = join(directory, \"logs.sqlite\");\n capture.meta.persistent = true;\n } else {\n if ([...this.captures.values()].filter((item) => !item.meta.persistent).length >= L.captures)\n throw new Error(\"Capture limit reached\");\n const directory = join(this.directory, capture.meta.id);\n const staging = `${directory}.pending`;\n try {\n this.reserve(this.directoryBytes(capture.directory));\n cpSync(capture.directory, staging, { recursive: true, errorOnExist: true, force: false });\n rmSync(directory, { recursive: true, force: true });\n renameSync(staging, directory);\n rmSync(capture.directory, { recursive: true, force: true });\n } catch (error) {\n rmSync(staging, { recursive: true, force: true });\n if (error instanceof Error && error.message === POWER_LOGS_STORAGE_FULL) throw error;\n throw new Error(\"Temporary storage unavailable\");\n }\n capture.directory = directory;\n capture.retiredDirectory = undefined;\n capture.spool = join(directory, \"logs.ndjson\");\n capture.database = join(directory, \"logs.sqlite\");\n capture.meta = { ...capture.meta, persistent: false, expiresAt: Date.now() + L.ttlMs };\n }\n return { ...capture.meta };\n }\n if (request.operation === \"save-sql\") {\n if (typeof request.sql !== \"string\" || request.sql.length > 65536 || request.sql.includes(\"\\0\"))\n throw new Error(\"Invalid SQL draft\");\n const meta = { ...capture.meta, lastSql: request.sql };\n if (capture.meta.persistent) this.saveMetadata({ ...capture, meta });\n capture.meta = meta;\n return { ...capture.meta };\n }\n if (request.operation === \"export\") throw new Error(\"Export requires trusted destination\");\n if (request.operation === \"append\") {\n if (capture.meta.state !== \"collecting\") throw new Error(\"Capture is complete\");\n if (request.records.length > L.batchRows) throw new Error(\"Log batch exceeds limit\");\n const data = request.records\n .map((record) => JSON.stringify({ ...record, previous: record.previous === true }) + \"\\n\")\n .join(\"\");\n const bytes = Buffer.byteLength(data);\n if (\n bytes > L.batchBytes ||\n capture.meta.bytes + bytes > capture.limits.captureBytes ||\n capture.meta.rows + request.records.length > capture.limits.captureRows\n )\n throw new Error(\"Capture limit reached\");\n this.reserve(bytes);\n try {\n appendFileSync(capture.spool, data);\n } catch {\n truncateSync(capture.spool, capture.meta.bytes);\n throw new Error(\"Log capture storage unavailable\");\n }\n capture.meta.rows += request.records.length;\n capture.meta.bytes += bytes;\n return { ...capture.meta };\n }\n if (request.operation === \"finish\") {\n if (capture.meta.state !== \"collecting\") return { ...capture.meta };\n const pages = Math.floor((this.storageLimit - this.storageBytes()) / 4096);\n if (pages < 2) throw new Error(POWER_LOGS_STORAGE_FULL);\n let database: DatabaseSync | undefined;\n try {\n writeFileSync(capture.database, \"\", { mode: 0o600 });\n database = new DatabaseSync(capture.database, { allowExtension: false });\n database.exec(`PRAGMA page_size=4096; PRAGMA max_page_count=${pages}`);\n database.exec(\n \"PRAGMA journal_mode=OFF; PRAGMA synchronous=OFF; PRAGMA cache_size=-16384; PRAGMA temp_store=MEMORY\",\n );\n database.exec(\n \"CREATE TABLE logs(timestamp INTEGER, pod TEXT, podUid TEXT, container TEXT, level TEXT, message TEXT, fieldsJson TEXT, previous INTEGER CHECK(previous IN (0,1)))\",\n );\n const insert = database.prepare(\"INSERT INTO logs VALUES (?, ?, ?, ?, ?, ?, ?, ?)\");\n const input = createReadStream(capture.spool);\n const lines = createInterface({ input, crlfDelay: Infinity });\n let count = 0;\n database.exec(\"BEGIN\");\n try {\n for await (const line of lines) {\n const record = JSON.parse(line);\n insert.run(\n record.timestamp,\n record.pod,\n record.podUid,\n record.container,\n record.level,\n record.message,\n record.fieldsJson,\n record.previous ? 1 : 0,\n );\n if (++count % 5000 === 0) {\n database.exec(\"COMMIT; BEGIN\");\n await new Promise<void>((resolve) => setImmediate(resolve));\n }\n }\n database.exec(\"COMMIT\");\n } finally {\n lines.close();\n input.destroy();\n }\n database.exec(\"CREATE INDEX logs_timestamp ON logs(timestamp)\");\n } catch (error) {\n database?.close();\n database = undefined;\n rmSync(capture.database, { force: true });\n if (error instanceof Error && /database or disk is full/.test(error.message))\n throw new Error(POWER_LOGS_STORAGE_FULL);\n throw new Error(\"Log capture storage unavailable\");\n } finally {\n database?.close();\n }\n capture.meta.state = request.partial ? \"partial\" : \"ready\";\n capture.meta.notes = request.notes;\n return { ...capture.meta };\n }\n if (capture.meta.state === \"collecting\") throw new Error(\"Finish capture before querying\");\n return {\n database: capture.database,\n captureId: capture.meta.id,\n expiresAt: capture.meta.persistent ? Number.MAX_SAFE_INTEGER : capture.meta.expiresAt,\n } satisfies PowerLogsQuerySnapshot;\n }\n private saveMetadata(capture: Capture, directory = capture.directory): void {\n const temporary = join(directory, \"capture.json.pending\");\n const data = JSON.stringify({ meta: capture.meta, partition: capture.partition, limits: capture.limits });\n this.reserve(Buffer.byteLength(data));\n writeFileSync(temporary, data, { mode: 0o600 });\n renameSync(temporary, join(directory, \"capture.json\"));\n }\n close(): void {\n this.closed = true;\n clearInterval(this.timer);\n for (const [id, capture] of this.captures) {\n if (!capture.meta.persistent) this.remove(id);\n }\n this.captures.clear();\n rmSync(this.directory, { recursive: true, force: true });\n }\n}\n"],"mappings":";;;;;;;AAqCA,IAAa,oBAAb,MAA+B;CAKnB;CACA;CACA;CANV,2BAAmB,IAAI,IAAqB;CAC5C,SAAiB;CACjB;CACA,YACE,WACA,qBACA,eAAuB,8BACvB;EAHQ,KAAA,YAAA;EACA,KAAA,sBAAA;EACA,KAAA,eAAA;EAER,UAAU,WAAW;GAAE,WAAW;GAAM,MAAM;EAAM,CAAC;EACrD,UAAU,WAAW,GAAK;EAC1B,IAAI,qBAAqB;GACvB,UAAU,qBAAqB;IAAE,WAAW;IAAM,MAAM;GAAM,CAAC;GAC/D,UAAU,qBAAqB,GAAK;GACpC,KAAK,MAAM,MAAM,YAAY,mBAAmB,GAAG;IACjD,IAAI,iFAAiF,KAAK,EAAE,GAAG;KAC7F,MAAM,UAAU,KAAK,qBAAqB,EAAE;KAC5C,MAAM,OAAO,UAAU,OAAO;KAC9B,IAAI,KAAK,YAAY,KAAK,CAAC,KAAK,eAAe,MAAM,CAAC,QAAQ,UAAU,KAAK,QAAQ,QAAQ,OAAO,IAClG,OAAO,SAAS;MAAE,WAAW;MAAM,OAAO;KAAK,CAAC;KAElD;IACF;IACA,IAAI,CAAC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AQ;EAAO,CAAC;EACxG,KAAK,QAAQ,OAAO,WAAW,IAAI,CAAC;EACpC,cAAc,WAAW,MAAM,EAAE,MAAM,IAAM,CAAC;EAC9C,WAAW,WAAW,KAAK,WAAW,cAAc,CAAC;CACvD;CACA,QAAc;EACZ,KAAK,SAAS;EACd,cAAc,KAAK,KAAK;EACxB,KAAK,MAAM,CAAC,IAAI,YAAY,KAAK,UAC/B,IAAI,CAAC,QAAQ,KAAK,YAAY,KAAK,OAAO,EAAE;EAE9C,KAAK,SAAS,MAAM;EACpB,OAAO,KAAK,WAAW;GAAE,WAAW;GAAM,OAAO;EAAK,CAAC;CACzD;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { n as POWER_LOGS_DEFAULT_LIMITS, r as POWER_LOGS_LIMITS } from "./power-logs-D2eUB0f0.js";
|
|
2
|
+
// src/common/power-logs-limits.ts
|
|
3
3
|
var KiB = 1024;
|
|
4
4
|
var MiB = KiB * KiB;
|
|
5
5
|
var LOG_LIMIT_FIELDS = [
|
|
@@ -141,7 +141,7 @@ var LOG_LIMIT_FIELDS = [
|
|
|
141
141
|
unit: "minutes",
|
|
142
142
|
group: "Captures",
|
|
143
143
|
min: 6e4,
|
|
144
|
-
max:
|
|
144
|
+
max: 6048e5,
|
|
145
145
|
step: 6e4,
|
|
146
146
|
scale: 6e4
|
|
147
147
|
},
|
|
@@ -205,7 +205,7 @@ var LOG_LIMIT_FIELDS = [
|
|
|
205
205
|
];
|
|
206
206
|
function normalizePowerLogsLimits(input) {
|
|
207
207
|
const values = input !== null && typeof input === "object" ? input : {};
|
|
208
|
-
const normalized = { ...
|
|
208
|
+
const normalized = { ...POWER_LOGS_DEFAULT_LIMITS };
|
|
209
209
|
for (const field of LOG_LIMIT_FIELDS) {
|
|
210
210
|
const value = values[field.key];
|
|
211
211
|
if (typeof value === "number" && Number.isFinite(value)) normalized[field.key] = Math.max(field.min, Math.min(field.max, Math.trunc(value)));
|
|
@@ -216,12 +216,9 @@ function normalizePowerLogsLimits(input) {
|
|
|
216
216
|
}
|
|
217
217
|
function applyPowerLogsLimits(input) {
|
|
218
218
|
const normalized = normalizePowerLogsLimits(input);
|
|
219
|
-
Object.assign(
|
|
219
|
+
Object.assign(POWER_LOGS_LIMITS, normalized);
|
|
220
220
|
return normalized;
|
|
221
221
|
}
|
|
222
|
-
|
|
223
|
-
exports.LOG_LIMIT_FIELDS = LOG_LIMIT_FIELDS;
|
|
224
|
-
exports.applyPowerLogsLimits = applyPowerLogsLimits;
|
|
225
|
-
exports.normalizePowerLogsLimits = normalizePowerLogsLimits;
|
|
222
|
+
export { normalizePowerLogsLimits as n, applyPowerLogsLimits as t };
|
|
226
223
|
|
|
227
|
-
//# sourceMappingURL=power-logs-limits.js.map
|
|
224
|
+
//# sourceMappingURL=power-logs-limits-CdzRcMHg.js.map
|