@64mb/freelens-power 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -33
- package/THIRD_PARTY_LICENSES +74 -0
- package/out/main/_virtual/_rolldown/runtime.js +25 -0
- package/out/main/ai-answer-stream.js +96 -0
- package/out/main/ai-answer-stream.js.map +1 -0
- package/out/main/ai-api-key.js +95 -0
- package/out/main/ai-api-key.js.map +1 -0
- package/out/main/ai-codex-api.js +611 -0
- package/out/main/ai-codex-api.js.map +1 -0
- package/out/main/ai-ipc.js +42 -11
- package/out/main/ai-ipc.js.map +1 -1
- package/out/main/ai-logs.js +4 -3
- package/out/main/ai-logs.js.map +1 -1
- package/out/main/ai-models.js +23 -11
- package/out/main/ai-models.js.map +1 -1
- package/out/main/ai-pi-models.js +73 -0
- package/out/main/ai-pi-models.js.map +1 -0
- package/out/main/ai-pi.js +411 -0
- package/out/main/ai-pi.js.map +1 -0
- package/out/main/ai-references.js +1 -1
- package/out/main/ai-resources.js +166 -220
- package/out/main/ai-resources.js.map +1 -1
- package/out/main/ai.js +303 -142
- package/out/main/ai.js.map +1 -1
- package/out/main/cluster-icons-catalog.js +1 -1
- package/out/main/cluster-icons.js +4 -4
- package/out/main/dashboard-ai.js +29 -0
- package/out/main/dashboard-ai.js.map +1 -0
- package/out/main/dashboard-catalog.js +1 -1
- package/out/main/dashboard-picker.js +3 -3
- package/out/main/dashboard-views.js +102 -10
- package/out/main/dashboard-views.js.map +1 -1
- package/out/main/diagnostics-menu-order.js +1 -1
- package/out/main/dock-icon.js +1 -1
- package/out/main/extension-updates.js +151 -0
- package/out/main/extension-updates.js.map +1 -0
- package/out/main/helm-installed-chart.js +141 -0
- package/out/main/helm-installed-chart.js.map +1 -0
- package/out/main/helm-ipc.js +748 -0
- package/out/main/helm-ipc.js.map +1 -0
- package/out/main/helm-values.js +45 -0
- package/out/main/helm-values.js.map +1 -0
- package/out/main/helm.js +283 -0
- package/out/main/helm.js.map +1 -0
- package/out/main/index.js +20 -12
- package/out/main/index.js.map +1 -1
- package/out/main/monitoring-history.js +2 -2
- package/out/main/node-bulk.js +260 -0
- package/out/main/node-bulk.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js +99 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js +32 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js +242 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js +154 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js +60 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js +346 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js +479 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js +508 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js +127 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js +50 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js +201 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js +401 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js +1007 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js +23 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js +69 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js +56 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js +73 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js +214 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js +100 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js +187 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js +55 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js +47 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js +173 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js +218 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js +116 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js +38 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js +36 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js +23 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js +23 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js +302 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js +79 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js +49 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js +76 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js +177 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js +62 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js +74 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js +23 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js +111 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js +134 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js +47 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js +47 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js +40 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js +125 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js +122 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js +66 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js +59 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js +48 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js +281 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js +60 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js +100 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js +92 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js +542 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js +56 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js +875 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js +104 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js +43 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js +29 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js +26 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js +29 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js +26 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js +30 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js +53 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js +52 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js +41 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js +75 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js +110 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js +68 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js +38 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js +56 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js +86 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js +55 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js +78 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +74 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js +63 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js +81 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +94 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js +125 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js +122 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js +131 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js +29 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js +74 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js +30 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js +111 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js +236 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js +201 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js.map +1 -0
- package/out/main/package.js +6 -0
- package/out/main/package.js.map +1 -0
- package/out/main/power-logs-budget.js +1 -1
- package/out/main/power-logs-child.js +5 -4
- package/out/main/power-logs-child.js.map +1 -1
- package/out/main/power-logs-database.js +214 -8
- package/out/main/power-logs-database.js.map +1 -1
- package/out/main/power-logs-ipc.js +56 -7
- package/out/main/power-logs-ipc.js.map +1 -1
- package/out/main/power-logs-query-child.js +1 -1
- package/out/main/power-logs-query.js +6 -4
- package/out/main/power-logs-query.js.map +1 -1
- package/out/main/power-logs-worker.js +31 -9
- package/out/main/power-logs-worker.js.map +1 -1
- package/out/main/resource-search-database.js +9 -3
- package/out/main/resource-search-database.js.map +1 -1
- package/out/main/resource-search-worker.js +6 -2
- package/out/main/resource-search-worker.js.map +1 -1
- package/out/main/resource-search.js +4 -3
- package/out/main/resource-search.js.map +1 -1
- package/out/main/settings-export.js +3 -3
- package/out/main/settings-import.js +3 -3
- package/out/main/splash-accent.js +1 -1
- package/out/main/src/common/ai-attachments.js +36 -0
- package/out/main/src/common/ai-attachments.js.map +1 -0
- package/out/main/src/common/ai-extras.js.map +1 -0
- package/out/main/src/common/ai-models.js +81 -0
- package/out/main/src/common/ai-models.js.map +1 -0
- package/out/main/src/common/ai-prompts.js +46 -0
- package/out/main/src/common/ai-prompts.js.map +1 -0
- package/out/main/src/common/ai-resource-payload.js +308 -0
- package/out/main/src/common/ai-resource-payload.js.map +1 -0
- package/out/main/src/common/ai-shortcuts.js.map +1 -0
- package/out/main/src/common/ai-terminal-context.js +72 -0
- package/out/main/src/common/ai-terminal-context.js.map +1 -0
- package/out/main/{common → src/common}/ai.js +6 -0
- package/out/main/src/common/ai.js.map +1 -0
- package/out/main/src/common/cluster-icon-ipc.js.map +1 -0
- package/out/main/src/common/cluster-icons.js.map +1 -0
- package/out/main/src/common/dashboard-ai.js +64 -0
- package/out/main/src/common/dashboard-ai.js.map +1 -0
- package/out/main/src/common/dashboard-picker.js.map +1 -0
- package/out/main/src/common/dashboard-readiness.js.map +1 -0
- package/out/main/src/common/dashboard-selector.js.map +1 -0
- package/out/main/src/common/dashboard-views.js.map +1 -0
- package/out/main/src/common/dashboard.js.map +1 -0
- package/out/main/src/common/extension-info.js.map +1 -0
- package/out/main/src/common/extension-updates.js +13 -0
- package/out/main/src/common/extension-updates.js.map +1 -0
- package/out/main/src/common/helm-values-validation.js +56 -0
- package/out/main/src/common/helm-values-validation.js.map +1 -0
- package/out/main/src/common/helm.js +8 -0
- package/out/main/src/common/helm.js.map +1 -0
- package/out/main/src/common/monitoring-history.js.map +1 -0
- package/out/main/src/common/node-bulk.js +6 -0
- package/out/main/src/common/node-bulk.js.map +1 -0
- package/out/main/src/common/power-logs-limits.js.map +1 -0
- package/out/main/{common → src/common}/power-logs.js +6 -0
- package/out/main/src/common/power-logs.js.map +1 -0
- package/out/main/src/common/resource-search-kind-priority.js +23 -0
- package/out/main/src/common/resource-search-kind-priority.js.map +1 -0
- package/out/main/src/common/resource-search.js.map +1 -0
- package/out/main/src/common/settings-export.js.map +1 -0
- package/out/main/{common → src/common}/store/ai-preferences-store.js +50 -8
- package/out/main/src/common/store/ai-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/ai-shortcuts-store.js +2 -2
- package/out/main/src/common/store/ai-shortcuts-store.js.map +1 -0
- package/out/main/{common → src/common}/store/appearance-preferences-store.js +10 -5
- package/out/main/src/common/store/appearance-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/cluster-icons-store.js +2 -2
- package/out/main/src/common/store/cluster-icons-store.js.map +1 -0
- package/out/main/{common → src/common}/store/dashboard-preferences-store.js +2 -2
- package/out/main/src/common/store/dashboard-preferences-store.js.map +1 -0
- package/out/main/src/common/store/helm-preferences-store.js +26 -0
- package/out/main/src/common/store/helm-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/logs-preferences-store.js +7 -2
- package/out/main/src/common/store/logs-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/monitoring-preferences-store.js +2 -2
- package/out/main/src/common/store/monitoring-preferences-store.js.map +1 -0
- package/out/main/src/common/store/node-shell-preferences-store.js +44 -0
- package/out/main/src/common/store/node-shell-preferences-store.js.map +1 -0
- package/out/main/src/common/store/power-preferences-store.js +39 -0
- package/out/main/src/common/store/power-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/read-only-preferences-store.js +2 -2
- package/out/main/src/common/store/read-only-preferences-store.js.map +1 -0
- package/out/renderer/_virtual/_global-external_mobx.js +4 -2
- package/out/renderer/_virtual/_global-external_react-dom.js +4 -2
- package/out/renderer/_virtual/_global-external_react.js +4 -2
- package/out/renderer/ai-attachment-card.js +92 -0
- package/out/renderer/ai-attachment-card.js.map +1 -0
- package/out/renderer/ai-context-mutations.js +14 -0
- package/out/renderer/ai-context-mutations.js.map +1 -0
- package/out/renderer/ai-copy-answer.js +18 -15
- package/out/renderer/ai-copy-answer.js.map +1 -1
- package/out/renderer/ai-diagnostic-handoff.js +5 -2
- package/out/renderer/ai-diagnostic-handoff.js.map +1 -1
- package/out/renderer/ai-extras.js +95 -85
- package/out/renderer/ai-extras.js.map +1 -1
- package/out/renderer/ai-icon.js +26 -0
- package/out/renderer/ai-icon.js.map +1 -1
- package/out/renderer/ai-logs-sql.js +1 -0
- package/out/renderer/ai-logs-sql.js.map +1 -1
- package/out/renderer/ai-message.js +58 -41
- package/out/renderer/ai-message.js.map +1 -1
- package/out/renderer/ai-provider-icon.js +77 -32
- package/out/renderer/ai-provider-icon.js.map +1 -1
- package/out/renderer/ai-resize.js +40 -37
- package/out/renderer/ai-resize.js.map +1 -1
- package/out/renderer/ai-shortcuts.js +21 -17
- package/out/renderer/ai-shortcuts.js.map +1 -1
- package/out/renderer/ai-terminal-context.js +54 -81
- package/out/renderer/ai-terminal-context.js.map +1 -1
- package/out/renderer/ai.js +530 -172
- package/out/renderer/ai.js.map +1 -1
- package/out/renderer/appearance.js +59 -5
- package/out/renderer/appearance.js.map +1 -1
- package/out/renderer/assets/openai.js +6 -0
- package/out/renderer/assets/openai.js.map +1 -0
- package/out/renderer/assets/pi.js +6 -0
- package/out/renderer/assets/pi.js.map +1 -0
- package/out/renderer/button-styles.js +31 -2
- package/out/renderer/button-styles.js.map +1 -1
- package/out/renderer/cluster-icon-colors.js +10 -7
- package/out/renderer/cluster-icon-colors.js.map +1 -1
- package/out/renderer/cluster-icons.js +47 -40
- package/out/renderer/cluster-icons.js.map +1 -1
- package/out/renderer/dashboard.js +75 -14
- package/out/renderer/dashboard.js.map +1 -1
- package/out/renderer/details/resource-health-details.js +2 -2
- package/out/renderer/details/resource-health-details.js.map +1 -1
- package/out/renderer/details/service-diagnostics-details.js +25 -23
- package/out/renderer/details/service-diagnostics-details.js.map +1 -1
- package/out/renderer/diagnostic-explain-button.js +7 -4
- package/out/renderer/diagnostic-explain-button.js.map +1 -1
- package/out/renderer/diagnostics-screen-finding.js +52 -0
- package/out/renderer/diagnostics-screen-finding.js.map +1 -0
- package/out/renderer/diagnostics-state.js +37 -0
- package/out/renderer/diagnostics-state.js.map +1 -1
- package/out/renderer/diagnostics.css.js +17 -4
- package/out/renderer/diagnostics.css.js.map +1 -1
- package/out/renderer/diagnostics.js +457 -189
- package/out/renderer/diagnostics.js.map +1 -1
- package/out/renderer/extension-update-notifications.js +221 -0
- package/out/renderer/extension-update-notifications.js.map +1 -0
- package/out/renderer/extension-update.js +189 -0
- package/out/renderer/extension-update.js.map +1 -0
- package/out/renderer/floating-action-transitions.js +139 -0
- package/out/renderer/floating-action-transitions.js.map +1 -0
- package/out/renderer/helm-app-version.js +141 -0
- package/out/renderer/helm-app-version.js.map +1 -0
- package/out/renderer/helm-code-view.js +727 -0
- package/out/renderer/helm-code-view.js.map +1 -0
- package/out/renderer/helm-entrypoints.js +79 -0
- package/out/renderer/helm-entrypoints.js.map +1 -0
- package/out/renderer/helm-full-comparison.js +233 -0
- package/out/renderer/helm-full-comparison.js.map +1 -0
- package/out/renderer/helm-operations.js +541 -0
- package/out/renderer/helm-operations.js.map +1 -0
- package/out/renderer/helm-release-actions.js +296 -0
- package/out/renderer/helm-release-actions.js.map +1 -0
- package/out/renderer/helm-revision-delete.js +128 -0
- package/out/renderer/helm-revision-delete.js.map +1 -0
- package/out/renderer/helm-version-index.js +283 -0
- package/out/renderer/helm-version-index.js.map +1 -0
- package/out/renderer/helm.js +2383 -0
- package/out/renderer/helm.js.map +1 -0
- package/out/renderer/host-extensions.js +102 -0
- package/out/renderer/host-extensions.js.map +1 -0
- package/out/renderer/host-layout.js +59 -0
- package/out/renderer/host-layout.js.map +1 -0
- package/out/renderer/host-preferences.js +192 -0
- package/out/renderer/host-preferences.js.map +1 -0
- package/out/renderer/incident-copy-button.js +24 -21
- package/out/renderer/incident-copy-button.js.map +1 -1
- package/out/renderer/index.js +47 -5
- package/out/renderer/index.js.map +1 -1
- package/out/renderer/menus/secure-node-shell-menu.js +2 -1
- package/out/renderer/menus/secure-node-shell-menu.js.map +1 -1
- package/out/renderer/monitoring-collector.js +13 -8
- package/out/renderer/monitoring-collector.js.map +1 -1
- package/out/renderer/monitoring-history-view.js +1 -1
- package/out/renderer/monitoring-history-view.js.map +1 -1
- package/out/renderer/monitoring.js +130 -49
- package/out/renderer/monitoring.js.map +1 -1
- package/out/renderer/native-resource-removals.js +202 -0
- package/out/renderer/native-resource-removals.js.map +1 -0
- package/out/renderer/native-tooltip.js +22 -0
- package/out/renderer/native-tooltip.js.map +1 -0
- package/out/renderer/node-bulk-actions.js +527 -0
- package/out/renderer/node-bulk-actions.js.map +1 -0
- package/out/renderer/node-bulk-selection.js +203 -0
- package/out/renderer/node-bulk-selection.js.map +1 -0
- package/out/renderer/node-shell-entrypoints.js +65 -0
- package/out/renderer/node-shell-entrypoints.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js +52 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js +41 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js +88 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js +59 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js +195 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js +84 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +176 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +42 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js +38 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +155 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +206 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js +107 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js +29 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +27 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +12 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js +12 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js +279 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js +67 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js +40 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js +63 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js +165 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js +53 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/index.js +24 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js +8 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js +96 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js +121 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js +34 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js +32 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js +27 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js +109 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +106 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +51 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js +50 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-scalar.js +3 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js +91 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js +42 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js +531 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js +47 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js +861 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js +56 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js +29 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js +18 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js +18 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js +16 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js +42 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js +41 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js +25 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js +63 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js +84 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +54 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +27 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +45 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +75 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +43 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +63 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +60 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +41 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +68 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +83 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +116 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js +108 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +118 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +61 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +21 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js +97 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js +224 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js +190 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/index.js +24 -0
- package/out/renderer/package.js +6 -0
- package/out/renderer/package.js.map +1 -0
- package/out/renderer/pod-bulk-customization.js +51 -0
- package/out/renderer/pod-bulk-customization.js.map +1 -0
- package/out/renderer/pod-details-enhancements.js +107 -0
- package/out/renderer/pod-details-enhancements.js.map +1 -0
- package/out/renderer/pod-removal-confirmation.js +172 -0
- package/out/renderer/pod-removal-confirmation.js.map +1 -0
- package/out/renderer/power-log-column-widths.js +54 -0
- package/out/renderer/power-log-column-widths.js.map +1 -0
- package/out/renderer/power-log-columns.js +114 -0
- package/out/renderer/power-log-columns.js.map +1 -0
- package/out/renderer/power-log-json-cell.js +88 -0
- package/out/renderer/power-log-json-cell.js.map +1 -0
- package/out/renderer/power-log-json-fields.js +144 -0
- package/out/renderer/power-log-json-fields.js.map +1 -0
- package/out/renderer/power-log-json.js +252 -20
- package/out/renderer/power-log-json.js.map +1 -1
- package/out/renderer/power-log-message-tokens.js +60 -0
- package/out/renderer/power-log-message-tokens.js.map +1 -0
- package/out/renderer/power-log-message.js +26 -0
- package/out/renderer/power-log-message.js.map +1 -0
- package/out/renderer/power-log-sql-editor.js +120 -0
- package/out/renderer/power-log-sql-editor.js.map +1 -0
- package/out/renderer/power-logs-client.js +9 -0
- package/out/renderer/power-logs-client.js.map +1 -1
- package/out/renderer/power-logs-context.js +45 -0
- package/out/renderer/power-logs-context.js.map +1 -0
- package/out/renderer/power-logs-entrypoints.js +13 -36
- package/out/renderer/power-logs-entrypoints.js.map +1 -1
- package/out/renderer/power-logs-resource-stores.js +71 -0
- package/out/renderer/power-logs-resource-stores.js.map +1 -0
- package/out/renderer/power-logs-session.js +35 -0
- package/out/renderer/power-logs-session.js.map +1 -0
- package/out/renderer/power-logs-sql-drafts.js +76 -0
- package/out/renderer/power-logs-sql-drafts.js.map +1 -0
- package/out/renderer/power-logs-sql-row.js +5 -13
- package/out/renderer/power-logs-sql-row.js.map +1 -1
- package/out/renderer/power-logs-storage.js +11 -0
- package/out/renderer/power-logs-storage.js.map +1 -0
- package/out/renderer/power-logs.css.js +116 -16
- package/out/renderer/power-logs.css.js.map +1 -1
- package/out/renderer/power-logs.js +1139 -348
- package/out/renderer/power-logs.js.map +1 -1
- package/out/renderer/preferences/ai-preferences.js +264 -55
- package/out/renderer/preferences/ai-preferences.js.map +1 -1
- package/out/renderer/preferences/dashboard-preferences.js +42 -35
- package/out/renderer/preferences/dashboard-preferences.js.map +1 -1
- package/out/renderer/preferences/helm-preferences.js +22 -0
- package/out/renderer/preferences/helm-preferences.js.map +1 -0
- package/out/renderer/preferences/logs-preferences.js +287 -52
- package/out/renderer/preferences/logs-preferences.js.map +1 -1
- package/out/renderer/preferences/monitoring-preferences.js +21 -20
- package/out/renderer/preferences/monitoring-preferences.js.map +1 -1
- package/out/renderer/preferences/node-shell-preferences.js +10 -0
- package/out/renderer/preferences/node-shell-preferences.js.map +1 -1
- package/out/renderer/preferences/other-preferences.js +55 -0
- package/out/renderer/preferences/other-preferences.js.map +1 -0
- package/out/renderer/preferences/power-preferences.js +27 -10
- package/out/renderer/preferences/power-preferences.js.map +1 -1
- package/out/renderer/preferences/preferences.js +44 -13
- package/out/renderer/preferences/preferences.js.map +1 -1
- package/out/renderer/preferences/section-navigation.js +44 -0
- package/out/renderer/preferences/section-navigation.js.map +1 -0
- package/out/renderer/preferences/settings-icon-action.js +12 -11
- package/out/renderer/preferences/settings-icon-action.js.map +1 -1
- package/out/renderer/preferences/settings-modal.js +1 -1
- package/out/renderer/preferences/settings-modal.js.map +1 -1
- package/out/renderer/relationship-map-finding.js +54 -0
- package/out/renderer/relationship-map-finding.js.map +1 -0
- package/out/renderer/resource-relationships.css.js +11 -1
- package/out/renderer/resource-relationships.css.js.map +1 -1
- package/out/renderer/resource-relationships.js +104 -50
- package/out/renderer/resource-relationships.js.map +1 -1
- package/out/renderer/resource-search-client.js.map +1 -1
- package/out/renderer/resource-search-fields.js +2 -2
- package/out/renderer/resource-search-fields.js.map +1 -1
- package/out/renderer/resource-search-model.js +2 -1
- package/out/renderer/resource-search-model.js.map +1 -1
- package/out/renderer/resource-search-sync.js +1 -1
- package/out/renderer/resource-search-sync.js.map +1 -1
- package/out/renderer/resource-search.js +164 -108
- package/out/renderer/resource-search.js.map +1 -1
- package/out/renderer/secret-dialog-customization.js +142 -0
- package/out/renderer/secret-dialog-customization.js.map +1 -0
- package/out/renderer/src/common/ai-attachments.js +160 -0
- package/out/renderer/src/common/ai-attachments.js.map +1 -0
- package/out/renderer/src/common/ai-models.js +58 -0
- package/out/renderer/src/common/ai-models.js.map +1 -1
- package/out/renderer/src/common/ai-prompts.js +32 -2
- package/out/renderer/src/common/ai-prompts.js.map +1 -1
- package/out/renderer/src/common/ai-resource-payload.js +262 -0
- package/out/renderer/src/common/ai-resource-payload.js.map +1 -0
- package/out/renderer/src/common/ai-terminal-context.js +39 -18
- package/out/renderer/src/common/ai-terminal-context.js.map +1 -1
- package/out/renderer/src/common/ai.js +6 -0
- package/out/renderer/src/common/ai.js.map +1 -1
- package/out/renderer/src/common/dashboard-ai.js +22 -0
- package/out/renderer/src/common/dashboard-ai.js.map +1 -0
- package/out/renderer/src/common/extension-updates.js +33 -0
- package/out/renderer/src/common/extension-updates.js.map +1 -0
- package/out/renderer/src/common/gateway-relationships.js +8 -7
- package/out/renderer/src/common/gateway-relationships.js.map +1 -1
- package/out/renderer/src/common/helm-diff.js +312 -0
- package/out/renderer/src/common/helm-diff.js.map +1 -0
- package/out/renderer/src/common/helm-values-validation.js +59 -0
- package/out/renderer/src/common/helm-values-validation.js.map +1 -0
- package/out/renderer/src/common/helm.js +10 -0
- package/out/renderer/src/common/helm.js.map +1 -0
- package/out/renderer/src/common/node-bulk.js +6 -0
- package/out/renderer/src/common/node-bulk.js.map +1 -0
- package/out/renderer/src/common/power-log-field-filters.js +92 -0
- package/out/renderer/src/common/power-log-field-filters.js.map +1 -0
- package/out/renderer/src/common/power-log-json-filter-sql.js +118 -0
- package/out/renderer/src/common/power-log-json-filter-sql.js.map +1 -0
- package/out/renderer/src/common/power-log-json-preset.js +34 -0
- package/out/renderer/src/common/power-log-json-preset.js.map +1 -0
- package/out/renderer/src/common/power-log-level.js +172 -0
- package/out/renderer/src/common/power-log-level.js.map +1 -0
- package/out/renderer/src/common/power-log-parser.js +7 -29
- package/out/renderer/src/common/power-log-parser.js.map +1 -1
- package/out/renderer/src/common/power-log-sql-level.js +25 -0
- package/out/renderer/src/common/power-log-sql-level.js.map +1 -0
- package/out/renderer/src/common/power-logs-ai.js +11 -7
- package/out/renderer/src/common/power-logs-ai.js.map +1 -1
- package/out/renderer/src/common/power-logs.js +6 -0
- package/out/renderer/src/common/power-logs.js.map +1 -1
- package/out/renderer/src/common/resource-relationships.js +10 -8
- package/out/renderer/src/common/resource-relationships.js.map +1 -1
- package/out/renderer/src/common/resource-search-kind-priority.js +28 -0
- package/out/renderer/src/common/resource-search-kind-priority.js.map +1 -0
- package/out/renderer/src/common/resource-search.js.map +1 -1
- package/out/{main/common/ai-terminal-context.js → renderer/src/common/search-index-redaction.js} +4 -29
- package/out/renderer/src/common/search-index-redaction.js.map +1 -0
- package/out/renderer/src/common/store/ai-preferences-store.js +48 -6
- package/out/renderer/src/common/store/ai-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/appearance-preferences-store.js +8 -3
- package/out/renderer/src/common/store/appearance-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/helm-preferences-store.js +26 -0
- package/out/renderer/src/common/store/helm-preferences-store.js.map +1 -0
- package/out/renderer/src/common/store/logs-preferences-store.js +5 -0
- package/out/renderer/src/common/store/logs-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/node-shell-preferences-store.js +10 -6
- package/out/renderer/src/common/store/node-shell-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/power-preferences-store.js +19 -3
- package/out/renderer/src/common/store/power-preferences-store.js.map +1 -1
- package/out/renderer/welcome.js +29 -2
- package/out/renderer/welcome.js.map +1 -1
- package/package.json +5 -2
- package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
- package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
- package/out/main/common/ai-extras.js.map +0 -1
- package/out/main/common/ai-models.js +0 -6
- package/out/main/common/ai-models.js.map +0 -1
- package/out/main/common/ai-prompts.js +0 -16
- package/out/main/common/ai-prompts.js.map +0 -1
- package/out/main/common/ai-shortcuts.js.map +0 -1
- package/out/main/common/ai-terminal-context.js.map +0 -1
- package/out/main/common/ai.js.map +0 -1
- package/out/main/common/cluster-icon-ipc.js.map +0 -1
- package/out/main/common/cluster-icons.js.map +0 -1
- package/out/main/common/dashboard-picker.js.map +0 -1
- package/out/main/common/dashboard-readiness.js.map +0 -1
- package/out/main/common/dashboard-selector.js.map +0 -1
- package/out/main/common/dashboard-views.js.map +0 -1
- package/out/main/common/dashboard.js.map +0 -1
- package/out/main/common/extension-info.js.map +0 -1
- package/out/main/common/monitoring-history.js.map +0 -1
- package/out/main/common/power-logs-limits.js.map +0 -1
- package/out/main/common/power-logs.js.map +0 -1
- package/out/main/common/resource-search.js.map +0 -1
- package/out/main/common/settings-export.js.map +0 -1
- package/out/main/common/store/ai-preferences-store.js.map +0 -1
- package/out/main/common/store/ai-shortcuts-store.js.map +0 -1
- package/out/main/common/store/appearance-preferences-store.js.map +0 -1
- package/out/main/common/store/cluster-icons-store.js.map +0 -1
- package/out/main/common/store/dashboard-preferences-store.js.map +0 -1
- package/out/main/common/store/logs-preferences-store.js.map +0 -1
- package/out/main/common/store/monitoring-preferences-store.js.map +0 -1
- package/out/main/common/store/node-shell-preferences-store.js +0 -40
- package/out/main/common/store/node-shell-preferences-store.js.map +0 -1
- package/out/main/common/store/power-preferences-store.js +0 -23
- package/out/main/common/store/power-preferences-store.js.map +0 -1
- package/out/main/common/store/read-only-preferences-store.js.map +0 -1
- package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
- package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
- /package/out/main/{common → src/common}/ai-extras.js +0 -0
- /package/out/main/{common → src/common}/ai-shortcuts.js +0 -0
- /package/out/main/{common → src/common}/cluster-icon-ipc.js +0 -0
- /package/out/main/{common → src/common}/cluster-icons.js +0 -0
- /package/out/main/{common → src/common}/dashboard-picker.js +0 -0
- /package/out/main/{common → src/common}/dashboard-readiness.js +0 -0
- /package/out/main/{common → src/common}/dashboard-selector.js +0 -0
- /package/out/main/{common → src/common}/dashboard-views.js +0 -0
- /package/out/main/{common → src/common}/dashboard.js +0 -0
- /package/out/main/{common → src/common}/extension-info.js +0 -0
- /package/out/main/{common → src/common}/monitoring-history.js +0 -0
- /package/out/main/{common → src/common}/power-logs-limits.js +0 -0
- /package/out/main/{common → src/common}/resource-search.js +0 -0
- /package/out/main/{common → src/common}/settings-export.js +0 -0
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
const require_ai_models = require("./src/common/ai-models.js");
|
|
2
|
+
const require_wrapper = require("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js");
|
|
3
|
+
const require_ai_api_key = require("./ai-api-key.js");
|
|
4
|
+
let electron = require("electron");
|
|
5
|
+
let node_tls = require("node:tls");
|
|
6
|
+
//#region src/main/ai-codex-api.ts
|
|
7
|
+
var maximumResponseBytes = 2 * 1024 * 1024;
|
|
8
|
+
var maximumEventBytes = 1024 * 1024;
|
|
9
|
+
var maximumTextBytes = 512 * 1024;
|
|
10
|
+
var maximumArgumentsBytes = 65536;
|
|
11
|
+
var CodexApiError = class extends Error {
|
|
12
|
+
failureCode;
|
|
13
|
+
constructor(failureCode) {
|
|
14
|
+
super("AI API request failed");
|
|
15
|
+
this.failureCode = failureCode;
|
|
16
|
+
this.name = "CodexApiError";
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
function errorRecord(value) {
|
|
20
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
21
|
+
}
|
|
22
|
+
function transportCodes(failure) {
|
|
23
|
+
const error = errorRecord(failure);
|
|
24
|
+
const chromium = typeof error.message === "string" && /^net::[A-Z_]+$/.test(error.message) ? error.message.slice(5) : void 0;
|
|
25
|
+
return [
|
|
26
|
+
error.code,
|
|
27
|
+
errorRecord(error.cause).code,
|
|
28
|
+
chromium
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
function tlsFailure(failure) {
|
|
32
|
+
return transportCodes(failure).some((code) => typeof code === "string" && [
|
|
33
|
+
"ERR_TLS_CERT_ALTNAME_INVALID",
|
|
34
|
+
"DEPTH_ZERO_SELF_SIGNED_CERT",
|
|
35
|
+
"SELF_SIGNED_CERT_IN_CHAIN",
|
|
36
|
+
"CERT_HAS_EXPIRED",
|
|
37
|
+
"CERT_NOT_YET_VALID",
|
|
38
|
+
"UNABLE_TO_VERIFY_LEAF_SIGNATURE",
|
|
39
|
+
"UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
|
|
40
|
+
"ERR_CERT_AUTHORITY_INVALID",
|
|
41
|
+
"ERR_CERT_COMMON_NAME_INVALID",
|
|
42
|
+
"ERR_CERT_DATE_INVALID",
|
|
43
|
+
"ERR_CERT_INVALID"
|
|
44
|
+
].includes(code));
|
|
45
|
+
}
|
|
46
|
+
function networkFailure(failure) {
|
|
47
|
+
return transportCodes(failure).some((code) => typeof code === "string" && [
|
|
48
|
+
"ECONNRESET",
|
|
49
|
+
"ECONNREFUSED",
|
|
50
|
+
"ECONNABORTED",
|
|
51
|
+
"EHOSTUNREACH",
|
|
52
|
+
"ENETUNREACH",
|
|
53
|
+
"ENETDOWN",
|
|
54
|
+
"ETIMEDOUT",
|
|
55
|
+
"ENOTFOUND",
|
|
56
|
+
"EAI_AGAIN",
|
|
57
|
+
"EPIPE",
|
|
58
|
+
"ERR_NETWORK",
|
|
59
|
+
"UND_ERR_CONNECT_TIMEOUT",
|
|
60
|
+
"UND_ERR_HEADERS_TIMEOUT",
|
|
61
|
+
"UND_ERR_BODY_TIMEOUT",
|
|
62
|
+
"UND_ERR_SOCKET",
|
|
63
|
+
"UND_ERR_CONNECT",
|
|
64
|
+
"ERR_PROXY_CONNECTION_FAILED",
|
|
65
|
+
"ERR_TUNNEL_CONNECTION_FAILED",
|
|
66
|
+
"ERR_NAME_NOT_RESOLVED",
|
|
67
|
+
"ERR_CONNECTION_REFUSED",
|
|
68
|
+
"ERR_CONNECTION_RESET",
|
|
69
|
+
"ERR_INTERNET_DISCONNECTED",
|
|
70
|
+
"ERR_NETWORK_CHANGED",
|
|
71
|
+
"ERR_ADDRESS_UNREACHABLE",
|
|
72
|
+
"ERR_TIMED_OUT",
|
|
73
|
+
"ERR_CONNECTION_TIMED_OUT"
|
|
74
|
+
].includes(code));
|
|
75
|
+
}
|
|
76
|
+
function apiFailure(status, payload) {
|
|
77
|
+
const envelope = errorRecord(payload);
|
|
78
|
+
const nested = errorRecord(envelope.error ?? errorRecord(envelope.response).error);
|
|
79
|
+
const error = Object.keys(nested).length ? nested : envelope;
|
|
80
|
+
const field = (value) => typeof value === "string" && value.length <= 100 ? value : "";
|
|
81
|
+
const code = field(error.code) || field(error.type);
|
|
82
|
+
const type = field(error.type);
|
|
83
|
+
const param = field(error.param);
|
|
84
|
+
const eventStatus = envelope.status ?? envelope.status_code ?? error.status ?? error.status_code;
|
|
85
|
+
const httpStatus = status ?? (typeof eventStatus === "number" && Number.isInteger(eventStatus) ? eventStatus : void 0);
|
|
86
|
+
let failureCode = "API_FAILURE";
|
|
87
|
+
if ([
|
|
88
|
+
"invalid_api_key",
|
|
89
|
+
"invalid_authentication",
|
|
90
|
+
"authentication_error"
|
|
91
|
+
].includes(code) || httpStatus === 401) failureCode = "API_AUTHENTICATION";
|
|
92
|
+
else if (code === "unsupported_country_region_territory") failureCode = "API_REGION_UNSUPPORTED";
|
|
93
|
+
else if ([
|
|
94
|
+
"model_not_found",
|
|
95
|
+
"model_not_available",
|
|
96
|
+
"model_access_denied"
|
|
97
|
+
].includes(code)) failureCode = "API_MODEL_UNAVAILABLE";
|
|
98
|
+
else if ([
|
|
99
|
+
"insufficient_quota",
|
|
100
|
+
"credit_balance_exhausted",
|
|
101
|
+
"organization_spend_limit_exceeded",
|
|
102
|
+
"project_spend_limit_exceeded",
|
|
103
|
+
"organization_usage_limit_exceeded",
|
|
104
|
+
"billing_hard_limit_reached",
|
|
105
|
+
"billing_not_active",
|
|
106
|
+
"quota_exceeded"
|
|
107
|
+
].includes(code) || type === "insufficient_quota") failureCode = "API_QUOTA";
|
|
108
|
+
else if ([
|
|
109
|
+
"previous_response_not_found",
|
|
110
|
+
"websocket_connection_limit_reached",
|
|
111
|
+
"websocket_stream_limit_reached"
|
|
112
|
+
].includes(code)) failureCode = "API_SESSION_EXPIRED";
|
|
113
|
+
else if (["rate_limit_exceeded", "slow_down"].includes(code) || type === "rate_limit_error") failureCode = "API_RATE_LIMIT";
|
|
114
|
+
else if (code === "context_length_exceeded") failureCode = "INPUT_LIMIT";
|
|
115
|
+
else if (param === "service_tier") failureCode = "API_SERVICE_TIER";
|
|
116
|
+
else if (httpStatus === 403 || [
|
|
117
|
+
"insufficient_permissions",
|
|
118
|
+
"permission_denied",
|
|
119
|
+
"permission_error"
|
|
120
|
+
].includes(code)) failureCode = "API_PERMISSION";
|
|
121
|
+
else if (type === "invalid_request_error" || [
|
|
122
|
+
"invalid_request_error",
|
|
123
|
+
"unsupported_parameter",
|
|
124
|
+
"unknown_parameter",
|
|
125
|
+
"unsupported_value",
|
|
126
|
+
"invalid_value"
|
|
127
|
+
].includes(code) || httpStatus === 400 || httpStatus === 422) if (param === "model") failureCode = "API_MODEL_UNAVAILABLE";
|
|
128
|
+
else if (param === "reasoning.mode") failureCode = "API_REASONING_MODE_UNSUPPORTED";
|
|
129
|
+
else if (param === "reasoning.effort") failureCode = "API_REASONING_EFFORT_UNSUPPORTED";
|
|
130
|
+
else if (param === "text.verbosity") failureCode = "API_VERBOSITY_UNSUPPORTED";
|
|
131
|
+
else if (param === "tools" || param.startsWith("tools[") || param.startsWith("tools.") || param === "parallel_tool_calls" || param === "tool_choice") failureCode = "API_TOOLS_UNSUPPORTED";
|
|
132
|
+
else if ([
|
|
133
|
+
"unsupported_parameter",
|
|
134
|
+
"unknown_parameter",
|
|
135
|
+
"unsupported_value"
|
|
136
|
+
].includes(code)) failureCode = "API_OPTION_UNSUPPORTED";
|
|
137
|
+
else failureCode = "API_REQUEST_REJECTED";
|
|
138
|
+
else if (httpStatus === 404) failureCode = "API_MODEL_UNAVAILABLE";
|
|
139
|
+
else if (httpStatus === 429) failureCode = "API_RATE_LIMIT";
|
|
140
|
+
else if (httpStatus !== void 0 && httpStatus >= 500 || [
|
|
141
|
+
"server_error",
|
|
142
|
+
"server_is_overloaded",
|
|
143
|
+
"service_unavailable_error"
|
|
144
|
+
].includes(code)) failureCode = "API_SERVER_UNAVAILABLE";
|
|
145
|
+
return new CodexApiError(failureCode);
|
|
146
|
+
}
|
|
147
|
+
async function httpFailure(response, signal) {
|
|
148
|
+
if (!response.body) return apiFailure(response.status, void 0);
|
|
149
|
+
const reader = response.body.getReader();
|
|
150
|
+
const cancel = () => {
|
|
151
|
+
reader.cancel().catch(() => {});
|
|
152
|
+
};
|
|
153
|
+
const timeout = setTimeout(cancel, 3e3);
|
|
154
|
+
signal.addEventListener("abort", cancel, { once: true });
|
|
155
|
+
if (signal.aborted) cancel();
|
|
156
|
+
try {
|
|
157
|
+
const chunks = [];
|
|
158
|
+
let bytes = 0;
|
|
159
|
+
while (true) {
|
|
160
|
+
const chunk = await reader.read();
|
|
161
|
+
if (chunk.done) break;
|
|
162
|
+
bytes += chunk.value.byteLength;
|
|
163
|
+
if (bytes > 16384) return apiFailure(response.status, void 0);
|
|
164
|
+
chunks.push(chunk.value);
|
|
165
|
+
}
|
|
166
|
+
return apiFailure(response.status, JSON.parse(Buffer.concat(chunks).toString("utf8")));
|
|
167
|
+
} catch {
|
|
168
|
+
return apiFailure(response.status, void 0);
|
|
169
|
+
} finally {
|
|
170
|
+
clearTimeout(timeout);
|
|
171
|
+
signal.removeEventListener("abort", cancel);
|
|
172
|
+
await reader.cancel().catch(() => {});
|
|
173
|
+
reader.releaseLock();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
function invalid() {
|
|
177
|
+
throw new Error("AI returned an invalid response");
|
|
178
|
+
}
|
|
179
|
+
function parseReadArguments(value) {
|
|
180
|
+
if (typeof value !== "string" || Buffer.byteLength(value) > maximumArgumentsBytes) return invalid();
|
|
181
|
+
const read = JSON.parse(value);
|
|
182
|
+
const fields = [
|
|
183
|
+
"method",
|
|
184
|
+
"resource",
|
|
185
|
+
"namespace",
|
|
186
|
+
"name",
|
|
187
|
+
"ref",
|
|
188
|
+
"apiVersion",
|
|
189
|
+
"kind"
|
|
190
|
+
];
|
|
191
|
+
if (!read || typeof read !== "object" || Array.isArray(read) || Object.keys(read).length !== fields.length || ![
|
|
192
|
+
"pods",
|
|
193
|
+
"nodes",
|
|
194
|
+
"resources",
|
|
195
|
+
"logs",
|
|
196
|
+
"dashboard"
|
|
197
|
+
].includes(read.method) || !fields.every((field) => Object.hasOwn(read, field) && (field === "method" || read[field] === null || typeof read[field] === "string"))) return invalid();
|
|
198
|
+
return read;
|
|
199
|
+
}
|
|
200
|
+
async function readResponseStream(response, controller, finalAnswer, onText) {
|
|
201
|
+
if (!response.body || !response.headers.get("content-type")?.includes("text/event-stream")) return invalid();
|
|
202
|
+
const reader = response.body.getReader();
|
|
203
|
+
const cancel = () => {
|
|
204
|
+
reader.cancel().catch(() => {});
|
|
205
|
+
};
|
|
206
|
+
controller.signal.addEventListener("abort", cancel, { once: true });
|
|
207
|
+
if (controller.signal.aborted) cancel();
|
|
208
|
+
const decoder = new TextDecoder("utf-8", { fatal: true });
|
|
209
|
+
let buffer = "";
|
|
210
|
+
let data = [];
|
|
211
|
+
let dataBytes = 0;
|
|
212
|
+
let bytes = 0;
|
|
213
|
+
let events = 0;
|
|
214
|
+
let completed;
|
|
215
|
+
let streamed = "";
|
|
216
|
+
let textBytes = 0;
|
|
217
|
+
let lastPublished = -Infinity;
|
|
218
|
+
const argumentBytes = /* @__PURE__ */ new Map();
|
|
219
|
+
const functionItems = /* @__PURE__ */ new Set();
|
|
220
|
+
const doneItems = /* @__PURE__ */ new Map();
|
|
221
|
+
const accept = () => {
|
|
222
|
+
if (!data.length) return;
|
|
223
|
+
const raw = data.join("\n");
|
|
224
|
+
data = [];
|
|
225
|
+
dataBytes = 0;
|
|
226
|
+
if (raw === "[DONE]") {
|
|
227
|
+
if (!completed) throw new Error("AI returned an incomplete response");
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
if (++events > 16384 || completed) return invalid();
|
|
231
|
+
const event = JSON.parse(raw);
|
|
232
|
+
if (!event || typeof event !== "object" || typeof event.type !== "string") return invalid();
|
|
233
|
+
if (event.type === "freelens.transport.tls") throw new CodexApiError("API_TLS");
|
|
234
|
+
if (event.type === "freelens.transport.interrupted") throw new CodexApiError("API_STREAM_INTERRUPTED");
|
|
235
|
+
if (event.type === "freelens.transport.limit") throw new Error("AI response exceeded the size limit");
|
|
236
|
+
if (event.type === "freelens.transport.invalid") return invalid();
|
|
237
|
+
if (event.type === "freelens.transport.internal") throw new CodexApiError("API_FAILURE");
|
|
238
|
+
if (["error", "response.failed"].includes(event.type)) throw apiFailure(void 0, event);
|
|
239
|
+
if ([
|
|
240
|
+
"response.incomplete",
|
|
241
|
+
"response.refusal.delta",
|
|
242
|
+
"response.refusal.done"
|
|
243
|
+
].includes(event.type)) throw new Error("AI returned an incomplete response");
|
|
244
|
+
if (event.type === "response.output_text.delta") {
|
|
245
|
+
if (typeof event.delta !== "string") return invalid();
|
|
246
|
+
textBytes += Buffer.byteLength(event.delta);
|
|
247
|
+
if (textBytes > maximumTextBytes) throw new Error("AI response exceeded the size limit");
|
|
248
|
+
streamed += event.delta;
|
|
249
|
+
const now = Date.now();
|
|
250
|
+
if (now - lastPublished >= 30) {
|
|
251
|
+
lastPublished = now;
|
|
252
|
+
onText?.(streamed);
|
|
253
|
+
}
|
|
254
|
+
} else if (event.type === "response.output_item.added") {
|
|
255
|
+
const item = event.item;
|
|
256
|
+
if (!item || ![
|
|
257
|
+
"message",
|
|
258
|
+
"reasoning",
|
|
259
|
+
"function_call"
|
|
260
|
+
].includes(item.type)) return invalid();
|
|
261
|
+
if (item.type === "function_call") {
|
|
262
|
+
if (finalAnswer || item.name !== "read_context" || !Number.isInteger(event.output_index)) return invalid();
|
|
263
|
+
functionItems.add(event.output_index);
|
|
264
|
+
if (functionItems.size > 4) return invalid();
|
|
265
|
+
}
|
|
266
|
+
} else if (event.type === "response.function_call_arguments.delta") {
|
|
267
|
+
if (finalAnswer || typeof event.delta !== "string" || !Number.isInteger(event.output_index)) return invalid();
|
|
268
|
+
const next = (argumentBytes.get(event.output_index) ?? 0) + Buffer.byteLength(event.delta);
|
|
269
|
+
argumentBytes.set(event.output_index, next);
|
|
270
|
+
if (next > maximumArgumentsBytes || argumentBytes.size > 4) throw new Error("AI response exceeded the size limit");
|
|
271
|
+
} else if (event.type === "response.output_item.done") {
|
|
272
|
+
if (!event.item || typeof event.item.id !== "string" || ![
|
|
273
|
+
"message",
|
|
274
|
+
"reasoning",
|
|
275
|
+
"function_call"
|
|
276
|
+
].includes(event.item.type)) return invalid();
|
|
277
|
+
if (doneItems.size >= 16) return invalid();
|
|
278
|
+
doneItems.set(event.item.id, event.item);
|
|
279
|
+
} else if (event.type === "response.completed") {
|
|
280
|
+
if (event.response?.status !== "completed" || !Array.isArray(event.response.output)) return invalid();
|
|
281
|
+
completed = event.response;
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
const line = (value) => {
|
|
285
|
+
if (value === "") {
|
|
286
|
+
accept();
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
if (!value.startsWith("data:")) return;
|
|
290
|
+
const content = value.slice(5).replace(/^ /, "");
|
|
291
|
+
dataBytes += Buffer.byteLength(content);
|
|
292
|
+
if (dataBytes > maximumEventBytes) throw new Error("AI response exceeded the size limit");
|
|
293
|
+
data.push(content);
|
|
294
|
+
};
|
|
295
|
+
try {
|
|
296
|
+
while (!completed) {
|
|
297
|
+
const chunk = await reader.read();
|
|
298
|
+
if (controller.signal.aborted) throw new Error("AI request cancelled");
|
|
299
|
+
if (chunk.done) {
|
|
300
|
+
buffer += decoder.decode();
|
|
301
|
+
if (buffer) line(buffer);
|
|
302
|
+
accept();
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
bytes += chunk.value.byteLength;
|
|
306
|
+
if (bytes > maximumResponseBytes) throw new Error("AI response exceeded the size limit");
|
|
307
|
+
buffer += decoder.decode(chunk.value, { stream: true });
|
|
308
|
+
while (!completed) {
|
|
309
|
+
const index = buffer.search(/[\r\n]/);
|
|
310
|
+
if (index < 0 || buffer[index] === "\r" && index === buffer.length - 1) break;
|
|
311
|
+
const skip = buffer[index] === "\r" && buffer[index + 1] === "\n" ? 2 : 1;
|
|
312
|
+
const value = buffer.slice(0, index);
|
|
313
|
+
buffer = buffer.slice(index + skip);
|
|
314
|
+
line(value);
|
|
315
|
+
}
|
|
316
|
+
if (Buffer.byteLength(buffer) > maximumEventBytes) throw new Error("AI response exceeded the size limit");
|
|
317
|
+
}
|
|
318
|
+
if (!completed) throw new Error("AI returned an incomplete response");
|
|
319
|
+
if (completed.output.length > 16) return invalid();
|
|
320
|
+
const output = completed.output.map((item) => item?.type === "reasoning" && typeof item.id === "string" && doneItems.get(item.id)?.encrypted_content ? doneItems.get(item.id) : item);
|
|
321
|
+
const calls = [];
|
|
322
|
+
const reads = [];
|
|
323
|
+
let text = "";
|
|
324
|
+
const ids = /* @__PURE__ */ new Set();
|
|
325
|
+
for (const item of output) {
|
|
326
|
+
if (!item || typeof item !== "object") return invalid();
|
|
327
|
+
if (item.type === "function_call") {
|
|
328
|
+
if (finalAnswer || item.name !== "read_context" || typeof item.call_id !== "string" || !/^[a-zA-Z0-9_-]{1,200}$/.test(item.call_id) || ids.has(item.call_id) || calls.length >= 4) return invalid();
|
|
329
|
+
ids.add(item.call_id);
|
|
330
|
+
reads.push(parseReadArguments(item.arguments));
|
|
331
|
+
calls.push(item);
|
|
332
|
+
} else if (item.type === "message") {
|
|
333
|
+
if (item.role !== "assistant" || !Array.isArray(item.content)) return invalid();
|
|
334
|
+
for (const content of item.content) {
|
|
335
|
+
if (content?.type !== "output_text" || typeof content.text !== "string") return invalid();
|
|
336
|
+
text += content.text;
|
|
337
|
+
}
|
|
338
|
+
} else if (item.type !== "reasoning") return invalid();
|
|
339
|
+
}
|
|
340
|
+
if (Buffer.byteLength(text) > maximumTextBytes) throw new Error("AI response exceeded the size limit");
|
|
341
|
+
if (streamed && streamed !== text) return invalid();
|
|
342
|
+
if (!calls.length && !text) return invalid();
|
|
343
|
+
return {
|
|
344
|
+
id: completed.id,
|
|
345
|
+
serviceTier: completed.service_tier,
|
|
346
|
+
output,
|
|
347
|
+
text,
|
|
348
|
+
calls,
|
|
349
|
+
reads
|
|
350
|
+
};
|
|
351
|
+
} catch (failure) {
|
|
352
|
+
if (tlsFailure(failure)) throw new CodexApiError("API_TLS");
|
|
353
|
+
if (networkFailure(failure)) throw new CodexApiError("API_STREAM_INTERRUPTED");
|
|
354
|
+
throw failure;
|
|
355
|
+
} finally {
|
|
356
|
+
controller.signal.removeEventListener("abort", cancel);
|
|
357
|
+
await reader.cancel().catch(() => {});
|
|
358
|
+
reader.releaseLock();
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
async function connectSocket(key, signal) {
|
|
362
|
+
return new Promise((resolve, reject) => {
|
|
363
|
+
const socket = new require_wrapper.default("wss://api.openai.com/v1/responses", {
|
|
364
|
+
headers: { Authorization: `Bearer ${key}` },
|
|
365
|
+
ca: [.../* @__PURE__ */ new Set([...(0, node_tls.getCACertificates)("default"), ...(0, node_tls.getCACertificates)("system")])],
|
|
366
|
+
rejectUnauthorized: true,
|
|
367
|
+
maxPayload: maximumResponseBytes,
|
|
368
|
+
perMessageDeflate: false,
|
|
369
|
+
handshakeTimeout: 1e4,
|
|
370
|
+
followRedirects: false
|
|
371
|
+
});
|
|
372
|
+
socket.on("error", () => {});
|
|
373
|
+
const cleanup = () => {
|
|
374
|
+
signal.removeEventListener("abort", abort);
|
|
375
|
+
socket.removeListener("open", opened);
|
|
376
|
+
socket.removeListener("error", failed);
|
|
377
|
+
socket.removeListener("close", failed);
|
|
378
|
+
socket.removeListener("unexpected-response", failed);
|
|
379
|
+
};
|
|
380
|
+
const failed = (failure) => {
|
|
381
|
+
cleanup();
|
|
382
|
+
socket.terminate();
|
|
383
|
+
reject(new CodexApiError(tlsFailure(failure) ? "API_TLS" : "API_NETWORK"));
|
|
384
|
+
};
|
|
385
|
+
const abort = () => {
|
|
386
|
+
cleanup();
|
|
387
|
+
socket.terminate();
|
|
388
|
+
reject(/* @__PURE__ */ new Error("AI request cancelled"));
|
|
389
|
+
};
|
|
390
|
+
const opened = () => {
|
|
391
|
+
cleanup();
|
|
392
|
+
resolve(socket);
|
|
393
|
+
};
|
|
394
|
+
socket.once("open", opened);
|
|
395
|
+
socket.once("error", failed);
|
|
396
|
+
socket.once("close", failed);
|
|
397
|
+
socket.once("unexpected-response", failed);
|
|
398
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
399
|
+
if (signal.aborted) abort();
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
function socketResponse(socket, body) {
|
|
403
|
+
const { stream: _stream, ...request } = body;
|
|
404
|
+
const payload = JSON.stringify({
|
|
405
|
+
type: "response.create",
|
|
406
|
+
...request
|
|
407
|
+
});
|
|
408
|
+
let detach = () => {};
|
|
409
|
+
const stream = new ReadableStream({
|
|
410
|
+
start(controller) {
|
|
411
|
+
let finished = false;
|
|
412
|
+
const cleanup = () => {
|
|
413
|
+
socket.removeListener("message", message);
|
|
414
|
+
socket.removeListener("error", failed);
|
|
415
|
+
socket.removeListener("close", closed);
|
|
416
|
+
};
|
|
417
|
+
const finish = (type) => {
|
|
418
|
+
if (finished) return;
|
|
419
|
+
finished = true;
|
|
420
|
+
cleanup();
|
|
421
|
+
controller.enqueue(Buffer.from(`data: {"type":"freelens.transport.${type}"}\n\n`));
|
|
422
|
+
controller.close();
|
|
423
|
+
};
|
|
424
|
+
const failed = (failure) => {
|
|
425
|
+
finish(tlsFailure(failure) ? "tls" : "interrupted");
|
|
426
|
+
};
|
|
427
|
+
const closed = () => {
|
|
428
|
+
finish("interrupted");
|
|
429
|
+
};
|
|
430
|
+
const message = (data, binary) => {
|
|
431
|
+
if (finished) return;
|
|
432
|
+
const raw = Array.isArray(data) ? Buffer.concat(data) : Buffer.from(data);
|
|
433
|
+
if (binary) {
|
|
434
|
+
finish("invalid");
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
const framedBytes = raw.length + 8;
|
|
438
|
+
if (raw.length > maximumEventBytes || framedBytes > (controller.desiredSize ?? 0)) {
|
|
439
|
+
finish("limit");
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
controller.enqueue(Buffer.concat([
|
|
443
|
+
Buffer.from("data: "),
|
|
444
|
+
raw,
|
|
445
|
+
Buffer.from("\n\n")
|
|
446
|
+
]));
|
|
447
|
+
};
|
|
448
|
+
detach = () => {
|
|
449
|
+
finished = true;
|
|
450
|
+
cleanup();
|
|
451
|
+
};
|
|
452
|
+
socket.on("message", message);
|
|
453
|
+
socket.on("error", failed);
|
|
454
|
+
socket.on("close", closed);
|
|
455
|
+
try {
|
|
456
|
+
socket.send(payload, (error) => {
|
|
457
|
+
if (error) failed(error);
|
|
458
|
+
});
|
|
459
|
+
} catch (failure) {
|
|
460
|
+
finish(tlsFailure(failure) ? "tls" : socket.readyState !== require_wrapper.default.OPEN || networkFailure(failure) ? "interrupted" : "internal");
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
cancel() {
|
|
464
|
+
detach();
|
|
465
|
+
}
|
|
466
|
+
}, {
|
|
467
|
+
highWaterMark: maximumResponseBytes,
|
|
468
|
+
size: (chunk) => chunk.byteLength
|
|
469
|
+
});
|
|
470
|
+
return new Response(stream, { headers: { "Content-Type": "text/event-stream" } });
|
|
471
|
+
}
|
|
472
|
+
function createCodexApiSession(prompt, parameters, model, reasoningEffort = "", options = {}) {
|
|
473
|
+
const selectedModel = model || require_ai_models.CODEX_API_MODELS[0].id;
|
|
474
|
+
if (!/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,99}$/.test(selectedModel) || reasoningEffort && !require_ai_models.CODEX_API_REASONING_EFFORTS.includes(reasoningEffort)) throw new Error("Invalid AI request");
|
|
475
|
+
const serviceTier = options.serviceTier ?? "default";
|
|
476
|
+
if (![
|
|
477
|
+
"default",
|
|
478
|
+
"fast",
|
|
479
|
+
"ultrafast"
|
|
480
|
+
].includes(serviceTier)) throw new Error("Invalid AI request");
|
|
481
|
+
let key;
|
|
482
|
+
let socket;
|
|
483
|
+
let useSocket = options.webSocket === true;
|
|
484
|
+
let previousId;
|
|
485
|
+
let sentItems = 0;
|
|
486
|
+
const input = [{
|
|
487
|
+
role: "user",
|
|
488
|
+
content: prompt
|
|
489
|
+
}];
|
|
490
|
+
let pendingCalls = [];
|
|
491
|
+
const callIds = /* @__PURE__ */ new Set();
|
|
492
|
+
let turns = 0;
|
|
493
|
+
return {
|
|
494
|
+
close() {
|
|
495
|
+
socket?.terminate();
|
|
496
|
+
socket = void 0;
|
|
497
|
+
key = void 0;
|
|
498
|
+
},
|
|
499
|
+
addResults(results) {
|
|
500
|
+
if (!pendingCalls.length || results.length !== pendingCalls.length) return invalid();
|
|
501
|
+
for (let index = 0; index < results.length; index++) input.push({
|
|
502
|
+
type: "function_call_output",
|
|
503
|
+
call_id: pendingCalls[index].call_id,
|
|
504
|
+
output: JSON.stringify(results[index])
|
|
505
|
+
});
|
|
506
|
+
pendingCalls = [];
|
|
507
|
+
},
|
|
508
|
+
async next(finalAnswer, signal, onText) {
|
|
509
|
+
if (pendingCalls.length || ++turns > 7) return invalid();
|
|
510
|
+
if (finalAnswer) input.push({
|
|
511
|
+
role: "user",
|
|
512
|
+
content: "The read budget is exhausted. Answer now from the evidence already provided. Distinguish unavailable and missing evidence. Do not request further reads or invent results."
|
|
513
|
+
});
|
|
514
|
+
const requestBody = {
|
|
515
|
+
model: selectedModel,
|
|
516
|
+
store: false,
|
|
517
|
+
stream: true,
|
|
518
|
+
service_tier: serviceTier,
|
|
519
|
+
include: ["reasoning.encrypted_content"],
|
|
520
|
+
input,
|
|
521
|
+
max_output_tokens: 12e3,
|
|
522
|
+
reasoning: { effort: reasoningEffort || "low" },
|
|
523
|
+
text: { verbosity: "low" },
|
|
524
|
+
parallel_tool_calls: true,
|
|
525
|
+
tools: finalAnswer ? [] : [{
|
|
526
|
+
type: "function",
|
|
527
|
+
name: "read_context",
|
|
528
|
+
description: "Read bounded Kubernetes or configured dashboard evidence through the read-only broker. Request at most four independent reads in parallel. Never request shell, filesystem, arbitrary network or write actions.",
|
|
529
|
+
strict: true,
|
|
530
|
+
parameters
|
|
531
|
+
}],
|
|
532
|
+
...finalAnswer ? { tool_choice: "none" } : {}
|
|
533
|
+
};
|
|
534
|
+
const body = JSON.stringify(requestBody);
|
|
535
|
+
if (Buffer.byteLength(body) > maximumResponseBytes) throw new Error("Conversation is too large. Start a new conversation");
|
|
536
|
+
signal?.throwIfAborted();
|
|
537
|
+
key ??= await require_ai_api_key.readAiApiKey();
|
|
538
|
+
signal?.throwIfAborted();
|
|
539
|
+
if (!key) throw new Error("AI API authentication failed");
|
|
540
|
+
const controller = new AbortController();
|
|
541
|
+
let timedOut = false;
|
|
542
|
+
const abort = () => controller.abort();
|
|
543
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
544
|
+
if (signal?.aborted) abort();
|
|
545
|
+
const timeout = setTimeout(() => {
|
|
546
|
+
timedOut = true;
|
|
547
|
+
controller.abort();
|
|
548
|
+
}, 12e4);
|
|
549
|
+
try {
|
|
550
|
+
if (useSocket && !socket) try {
|
|
551
|
+
socket = await connectSocket(key, controller.signal);
|
|
552
|
+
} catch (failure) {
|
|
553
|
+
if (controller.signal.aborted || previousId) throw failure;
|
|
554
|
+
useSocket = false;
|
|
555
|
+
}
|
|
556
|
+
if (socket && socket.readyState !== require_wrapper.default.OPEN) throw new CodexApiError("API_NETWORK");
|
|
557
|
+
const response = socket ? socketResponse(socket, {
|
|
558
|
+
...requestBody,
|
|
559
|
+
input: previousId ? input.slice(sentItems) : input,
|
|
560
|
+
...previousId ? { previous_response_id: previousId } : {}
|
|
561
|
+
}) : await electron.net.fetch("https://api.openai.com/v1/responses", {
|
|
562
|
+
method: "POST",
|
|
563
|
+
redirect: "error",
|
|
564
|
+
credentials: "omit",
|
|
565
|
+
signal: controller.signal,
|
|
566
|
+
headers: {
|
|
567
|
+
Authorization: `Bearer ${key}`,
|
|
568
|
+
"Content-Type": "application/json",
|
|
569
|
+
Accept: "text/event-stream"
|
|
570
|
+
},
|
|
571
|
+
body
|
|
572
|
+
});
|
|
573
|
+
if (!response.ok) throw await httpFailure(response, controller.signal);
|
|
574
|
+
const result = await readResponseStream(response, controller, finalAnswer, onText);
|
|
575
|
+
if (socket && (typeof result.id !== "string" || !/^[a-zA-Z0-9_-]{1,200}$/.test(result.id))) return invalid();
|
|
576
|
+
if (signal?.aborted) throw new Error("AI request cancelled");
|
|
577
|
+
if (timedOut) throw new Error("AI request timed out");
|
|
578
|
+
for (const call of result.calls) {
|
|
579
|
+
if (callIds.has(call.call_id)) return invalid();
|
|
580
|
+
callIds.add(call.call_id);
|
|
581
|
+
}
|
|
582
|
+
input.push(...result.output);
|
|
583
|
+
if (socket) {
|
|
584
|
+
previousId = result.id;
|
|
585
|
+
sentItems = input.length;
|
|
586
|
+
}
|
|
587
|
+
pendingCalls = result.calls;
|
|
588
|
+
return JSON.stringify({
|
|
589
|
+
tool: result.reads.length ? result.reads : null,
|
|
590
|
+
text: result.calls.length ? "" : result.text
|
|
591
|
+
});
|
|
592
|
+
} catch (failure) {
|
|
593
|
+
if (signal?.aborted) throw new Error("AI request cancelled");
|
|
594
|
+
if (timedOut) throw new Error("AI request timed out");
|
|
595
|
+
if (failure instanceof CodexApiError) throw failure;
|
|
596
|
+
if (failure instanceof SyntaxError || failure instanceof TypeError && failure.message.includes("encoded data")) return invalid();
|
|
597
|
+
if (failure instanceof Error && /^(AI API |AI returned |AI response exceeded)/.test(failure.message)) throw failure;
|
|
598
|
+
throw new CodexApiError(tlsFailure(failure) ? "API_TLS" : networkFailure(failure) ? "API_NETWORK" : "API_FAILURE");
|
|
599
|
+
} finally {
|
|
600
|
+
clearTimeout(timeout);
|
|
601
|
+
signal?.removeEventListener("abort", abort);
|
|
602
|
+
controller.abort();
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
//#endregion
|
|
608
|
+
exports.CodexApiError = CodexApiError;
|
|
609
|
+
exports.createCodexApiSession = createCodexApiSession;
|
|
610
|
+
|
|
611
|
+
//# sourceMappingURL=ai-codex-api.js.map
|