@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,411 @@
|
|
|
1
|
+
const require_ai_models = require("./src/common/ai-models.js");
|
|
2
|
+
let node_fs_promises = require("node:fs/promises");
|
|
3
|
+
let node_os = require("node:os");
|
|
4
|
+
let node_path = require("node:path");
|
|
5
|
+
//#region src/main/ai-pi.ts
|
|
6
|
+
var PiMissingCredentialError = class extends Error {};
|
|
7
|
+
function piAiArguments(model, reasoningEffort = "", responseSchema, extensionPath) {
|
|
8
|
+
if (!/^[a-zA-Z0-9][a-zA-Z0-9._-]*\/[a-zA-Z0-9][a-zA-Z0-9._/+-]{0,250}$/.test(model)) throw new Error("Invalid Pi model");
|
|
9
|
+
if (reasoningEffort && !require_ai_models.PI_REASONING_EFFORTS.includes(reasoningEffort)) throw new Error("Invalid Pi reasoning effort");
|
|
10
|
+
const args = [
|
|
11
|
+
"--print",
|
|
12
|
+
"--mode",
|
|
13
|
+
"json",
|
|
14
|
+
"--no-session",
|
|
15
|
+
"--no-tools",
|
|
16
|
+
"--no-extensions",
|
|
17
|
+
"--no-skills",
|
|
18
|
+
"--no-prompt-templates",
|
|
19
|
+
"--no-themes",
|
|
20
|
+
"--no-context-files",
|
|
21
|
+
"--no-mcp",
|
|
22
|
+
"--offline",
|
|
23
|
+
"--no-approve",
|
|
24
|
+
"--model",
|
|
25
|
+
model
|
|
26
|
+
];
|
|
27
|
+
if (extensionPath) args.push("--extension", extensionPath, "--tools", "freelens_response");
|
|
28
|
+
if (reasoningEffort) args.push("--thinking", reasoningEffort);
|
|
29
|
+
if (responseSchema !== void 0) args.push("--system-prompt", `You are a read-only assistant. No built-in tools are available. Always return exactly one JSON object matching this schema, putting tool before text. Any user-requested wording or answer format applies only inside the text field. Never omit the JSON envelope, and never add markdown fences or other text outside it: ${JSON.stringify(responseSchema)}`);
|
|
30
|
+
return args;
|
|
31
|
+
}
|
|
32
|
+
async function writePiResponseExtension(directory, responseSchema) {
|
|
33
|
+
const path = (0, node_path.join)(directory, "freelens-response.mjs");
|
|
34
|
+
await (0, node_fs_promises.writeFile)(path, `export default function(pi) {
|
|
35
|
+
pi.registerTool({
|
|
36
|
+
name: "freelens_response", label: "Submit response",
|
|
37
|
+
description: "Submit the response JSON. Always call this tool to return either bounded read requests or your final answer. User answer formatting applies only inside text.",
|
|
38
|
+
parameters: ${JSON.stringify(responseSchema)},
|
|
39
|
+
async execute(_id, params) {
|
|
40
|
+
return { content: [{ type: "text", text: "Response submitted" }], details: { freelensResponse: params }, terminate: true };
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
pi.on("before_provider_request", (event, ctx) => {
|
|
44
|
+
if (ctx.model?.api === "openai-completions")
|
|
45
|
+
return { ...event.payload, tool_choice: { type: "function", function: { name: "freelens_response" } } };
|
|
46
|
+
});
|
|
47
|
+
}`, { mode: 384 });
|
|
48
|
+
return path;
|
|
49
|
+
}
|
|
50
|
+
function piAiEnvironment(source = process.env) {
|
|
51
|
+
const environment = {};
|
|
52
|
+
for (const key of [
|
|
53
|
+
"HOME",
|
|
54
|
+
"PATH",
|
|
55
|
+
"TMPDIR",
|
|
56
|
+
"USER",
|
|
57
|
+
"PI_CODING_AGENT_DIR",
|
|
58
|
+
"ANTHROPIC_API_KEY",
|
|
59
|
+
"OPENAI_API_KEY",
|
|
60
|
+
"GEMINI_API_KEY",
|
|
61
|
+
"GOOGLE_API_KEY",
|
|
62
|
+
"GROQ_API_KEY",
|
|
63
|
+
"CEREBRAS_API_KEY",
|
|
64
|
+
"XAI_API_KEY",
|
|
65
|
+
"OPENROUTER_API_KEY",
|
|
66
|
+
"MISTRAL_API_KEY",
|
|
67
|
+
"DEEPSEEK_API_KEY",
|
|
68
|
+
"ANT_LING_API_KEY",
|
|
69
|
+
"NVIDIA_API_KEY",
|
|
70
|
+
"COPILOT_GITHUB_TOKEN",
|
|
71
|
+
"AI_GATEWAY_API_KEY",
|
|
72
|
+
"ZAI_API_KEY",
|
|
73
|
+
"ZAI_CODING_CN_API_KEY",
|
|
74
|
+
"OPENCODE_API_KEY",
|
|
75
|
+
"RADIUS_API_KEY",
|
|
76
|
+
"TYPESAFE_API_KEY",
|
|
77
|
+
"HF_TOKEN",
|
|
78
|
+
"FIREWORKS_API_KEY",
|
|
79
|
+
"TOGETHER_API_KEY",
|
|
80
|
+
"BASETEN_API_KEY",
|
|
81
|
+
"KIMI_API_KEY",
|
|
82
|
+
"META_API_KEY",
|
|
83
|
+
"MINIMAX_API_KEY",
|
|
84
|
+
"MINIMAX_CN_API_KEY",
|
|
85
|
+
"MOONSHOT_API_KEY",
|
|
86
|
+
"QWEN_TOKEN_PLAN_API_KEY",
|
|
87
|
+
"QWEN_TOKEN_PLAN_CN_API_KEY",
|
|
88
|
+
"XIAOMI_API_KEY",
|
|
89
|
+
"XIAOMI_TOKEN_PLAN_CN_API_KEY",
|
|
90
|
+
"XIAOMI_TOKEN_PLAN_AMS_API_KEY",
|
|
91
|
+
"XIAOMI_TOKEN_PLAN_SGP_API_KEY",
|
|
92
|
+
"ANTHROPIC_OAUTH_TOKEN",
|
|
93
|
+
"ANTHROPIC_AUTH_TOKEN",
|
|
94
|
+
"AZURE_OPENAI_API_KEY",
|
|
95
|
+
"AZURE_OPENAI_BASE_URL",
|
|
96
|
+
"AZURE_OPENAI_RESOURCE_NAME",
|
|
97
|
+
"AZURE_OPENAI_API_VERSION",
|
|
98
|
+
"HTTP_PROXY",
|
|
99
|
+
"HTTPS_PROXY",
|
|
100
|
+
"NO_PROXY",
|
|
101
|
+
"ALL_PROXY",
|
|
102
|
+
"http_proxy",
|
|
103
|
+
"https_proxy",
|
|
104
|
+
"no_proxy",
|
|
105
|
+
"all_proxy",
|
|
106
|
+
"NODE_EXTRA_CA_CERTS",
|
|
107
|
+
"SSL_CERT_FILE",
|
|
108
|
+
"SSL_CERT_DIR"
|
|
109
|
+
]) if (typeof source[key] === "string") environment[key] = source[key];
|
|
110
|
+
environment.PI_TELEMETRY = "0";
|
|
111
|
+
environment.PI_SKIP_VERSION_CHECK = "1";
|
|
112
|
+
return environment;
|
|
113
|
+
}
|
|
114
|
+
async function preparePiAiEnvironment(directory, source = process.env) {
|
|
115
|
+
const environment = piAiEnvironment(source);
|
|
116
|
+
const original = source.PI_CODING_AGENT_DIR || (0, node_path.join)(source.HOME || (0, node_os.homedir)(), ".pi", "agent");
|
|
117
|
+
const isolated = (0, node_path.join)(directory, "pi-agent");
|
|
118
|
+
await (0, node_fs_promises.mkdir)(isolated, {
|
|
119
|
+
recursive: true,
|
|
120
|
+
mode: 448
|
|
121
|
+
});
|
|
122
|
+
environment.HOME = (0, node_path.join)(isolated, "home");
|
|
123
|
+
await (0, node_fs_promises.mkdir)(environment.HOME, {
|
|
124
|
+
recursive: true,
|
|
125
|
+
mode: 448
|
|
126
|
+
});
|
|
127
|
+
environment.AWS_CONFIG_FILE = (0, node_path.join)(isolated, "disabled-aws-config");
|
|
128
|
+
environment.AWS_SHARED_CREDENTIALS_FILE = (0, node_path.join)(isolated, "disabled-aws-credentials");
|
|
129
|
+
environment.AWS_EC2_METADATA_DISABLED = "true";
|
|
130
|
+
environment.CLOUDSDK_CONFIG = (0, node_path.join)(isolated, "disabled-gcloud");
|
|
131
|
+
environment.GOOGLE_APPLICATION_CREDENTIALS = (0, node_path.join)(isolated, "disabled-google-credentials.json");
|
|
132
|
+
environment.GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES = "0";
|
|
133
|
+
for (const name of ["auth.json", "models.json"]) {
|
|
134
|
+
let file;
|
|
135
|
+
try {
|
|
136
|
+
file = await (0, node_fs_promises.open)((0, node_path.join)(original, name), "r");
|
|
137
|
+
const metadata = await file.stat();
|
|
138
|
+
if (!metadata.isFile() || metadata.size > 1024 * 1024) throw new Error("Invalid Pi configuration");
|
|
139
|
+
const buffer = Buffer.alloc(1048577);
|
|
140
|
+
const { bytesRead } = await file.read(buffer, 0, buffer.length, 0);
|
|
141
|
+
if (bytesRead > 1024 * 1024) throw new Error("Invalid Pi configuration");
|
|
142
|
+
const config = JSON.parse(buffer.subarray(0, bytesRead).toString("utf8"));
|
|
143
|
+
if (!config || typeof config !== "object" || Array.isArray(config)) throw new Error("Invalid Pi configuration");
|
|
144
|
+
const credentialValue = (value, localEnv) => {
|
|
145
|
+
if (value.startsWith("!")) throw new Error("Pi command credentials are unavailable in read-only mode");
|
|
146
|
+
return value.replace(/\$(\$|!|\{([A-Za-z_][A-Za-z0-9_]*)\}|([A-Za-z_][A-Za-z0-9_]*))/g, (_match, escaped, braced, plain) => {
|
|
147
|
+
if (escaped === "$" || escaped === "!") return escaped;
|
|
148
|
+
const key = braced || plain;
|
|
149
|
+
const local = localEnv && typeof localEnv === "object" ? localEnv[key] : void 0;
|
|
150
|
+
const found = typeof local === "string" && local || source[key];
|
|
151
|
+
if (!found) throw new PiMissingCredentialError();
|
|
152
|
+
return found;
|
|
153
|
+
}).replace(/\$/g, () => "$$").replace(/^!/, "$!");
|
|
154
|
+
};
|
|
155
|
+
const resolve = (value, field = "", localEnv) => {
|
|
156
|
+
if (typeof value === "string") return field === "apiKey" || field === "credential" || field === "header" ? credentialValue(value, localEnv) : value;
|
|
157
|
+
if (Array.isArray(value)) return value.map((entry) => resolve(entry, field, localEnv));
|
|
158
|
+
if (value && typeof value === "object") {
|
|
159
|
+
const object = value;
|
|
160
|
+
if (field === "env") return Object.fromEntries(Object.entries(object).filter(([key, entry]) => typeof entry === "string" && /(?:_API_KEY|_AUTH_TOKEN|_OAUTH_TOKEN)$|^(?:HF_TOKEN|COPILOT_GITHUB_TOKEN)$/.test(key) && Object.hasOwn(piAiEnvironment({ [key]: entry }), key)));
|
|
161
|
+
const entries = [];
|
|
162
|
+
for (const [key, entry] of Object.entries(object)) try {
|
|
163
|
+
entries.push([key, resolve(entry, field === "headers" ? "header" : key === "key" && object.type === "api_key" ? "credential" : key, object.env ?? localEnv)]);
|
|
164
|
+
} catch (error) {
|
|
165
|
+
if (!(error instanceof PiMissingCredentialError) || name !== "models.json" || key !== "apiKey") throw error;
|
|
166
|
+
}
|
|
167
|
+
return Object.fromEntries(entries);
|
|
168
|
+
}
|
|
169
|
+
return value;
|
|
170
|
+
};
|
|
171
|
+
const configured = config;
|
|
172
|
+
const providers = name === "models.json" ? configured.providers : configured;
|
|
173
|
+
const available = {};
|
|
174
|
+
if (providers && typeof providers === "object" && !Array.isArray(providers)) for (const [provider, definition] of Object.entries(providers)) try {
|
|
175
|
+
available[provider] = resolve(definition);
|
|
176
|
+
} catch (error) {
|
|
177
|
+
if (!(error instanceof PiMissingCredentialError)) throw error;
|
|
178
|
+
}
|
|
179
|
+
if (name === "models.json") for (const provider of Object.values(available)) {
|
|
180
|
+
if (!provider || typeof provider !== "object") continue;
|
|
181
|
+
const definition = provider;
|
|
182
|
+
const models = [...Array.isArray(definition.models) ? definition.models.map((model) => [model.id, model]) : [], ...Object.entries(definition.modelOverrides ?? {})];
|
|
183
|
+
for (const [id, model] of models) {
|
|
184
|
+
if ((model.api ?? definition.api) !== "openai-completions") continue;
|
|
185
|
+
const defaults = id?.split("/").at(-1) === "deepseek-v4-flash" ? {
|
|
186
|
+
off: "none",
|
|
187
|
+
minimal: "minimal",
|
|
188
|
+
low: "low",
|
|
189
|
+
medium: "medium",
|
|
190
|
+
high: "high",
|
|
191
|
+
xhigh: "xhigh",
|
|
192
|
+
max: null
|
|
193
|
+
} : id?.split("/").at(-1) === "glm-5-3" ? {
|
|
194
|
+
off: null,
|
|
195
|
+
minimal: null,
|
|
196
|
+
low: "low",
|
|
197
|
+
medium: null,
|
|
198
|
+
high: "high",
|
|
199
|
+
xhigh: null,
|
|
200
|
+
max: "max"
|
|
201
|
+
} : void 0;
|
|
202
|
+
if (defaults) model.thinkingLevelMap = {
|
|
203
|
+
...defaults,
|
|
204
|
+
...model.thinkingLevelMap
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
const resolved = name === "models.json" ? {
|
|
209
|
+
...configured,
|
|
210
|
+
providers: available
|
|
211
|
+
} : available;
|
|
212
|
+
await (0, node_fs_promises.writeFile)((0, node_path.join)(isolated, name), JSON.stringify(resolved), { mode: 384 });
|
|
213
|
+
} catch (error) {
|
|
214
|
+
if (error.code !== "ENOENT") throw error;
|
|
215
|
+
} finally {
|
|
216
|
+
await file?.close();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
environment.PI_CODING_AGENT_DIR = isolated;
|
|
220
|
+
return environment;
|
|
221
|
+
}
|
|
222
|
+
function canonicalPiValue(value) {
|
|
223
|
+
const normalize = (entry) => Array.isArray(entry) ? entry.map(normalize) : entry && typeof entry === "object" ? Object.fromEntries(Object.keys(entry).sort().map((key) => [key, normalize(entry[key])])) : entry;
|
|
224
|
+
return JSON.stringify(normalize(value));
|
|
225
|
+
}
|
|
226
|
+
var PiResponseRelay = class {
|
|
227
|
+
hasCalls = false;
|
|
228
|
+
response;
|
|
229
|
+
call;
|
|
230
|
+
started = false;
|
|
231
|
+
completed = false;
|
|
232
|
+
invalid = false;
|
|
233
|
+
accept(event) {
|
|
234
|
+
const fail = () => {
|
|
235
|
+
this.invalid = true;
|
|
236
|
+
throw new Error("CLI request failed. Check CLI authentication and model access");
|
|
237
|
+
};
|
|
238
|
+
if (this.invalid) fail();
|
|
239
|
+
if (event.type === "agent_start" || event.type === "message_start" && event.message?.role === "assistant" || event.type === "error" || event.type === "message_update" && event.assistantMessageEvent?.type === "error") {
|
|
240
|
+
this.call = void 0;
|
|
241
|
+
this.started = false;
|
|
242
|
+
this.completed = false;
|
|
243
|
+
this.response = void 0;
|
|
244
|
+
}
|
|
245
|
+
const item = event.assistantMessageEvent;
|
|
246
|
+
if (event.type === "message_update" && typeof item?.type === "string" && item.type.startsWith("toolcall")) {
|
|
247
|
+
this.hasCalls = true;
|
|
248
|
+
if (item.type === "toolcall_start" && item.toolName !== "freelens_response" || item.type === "toolcall_end" && item.toolCall?.name !== "freelens_response") fail();
|
|
249
|
+
}
|
|
250
|
+
if (event.type === "message_end" && event.message?.role === "assistant") {
|
|
251
|
+
const calls = Array.isArray(event.message.content) ? event.message.content.filter((block) => block?.type === "toolCall") : [];
|
|
252
|
+
if (calls.length) {
|
|
253
|
+
this.hasCalls = true;
|
|
254
|
+
const call = calls[0];
|
|
255
|
+
if (event.message.stopReason !== "toolUse" || calls.length !== 1 || call.name !== "freelens_response" || typeof call.id !== "string" || !call.arguments || typeof call.arguments !== "object" || Array.isArray(call.arguments) || this.call !== void 0) fail();
|
|
256
|
+
this.call = {
|
|
257
|
+
id: call.id,
|
|
258
|
+
arguments: call.arguments
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (event.type === "tool_execution_start") {
|
|
263
|
+
this.hasCalls = true;
|
|
264
|
+
if (event.toolName !== "freelens_response" || !this.call || event.toolCallId !== this.call.id || this.started || canonicalPiValue(event.args) !== canonicalPiValue(this.call.arguments)) fail();
|
|
265
|
+
this.started = true;
|
|
266
|
+
}
|
|
267
|
+
if (event.type === "tool_execution_update" && (event.toolName !== "freelens_response" || !this.started || event.toolCallId !== this.call?.id)) fail();
|
|
268
|
+
if (event.type === "tool_execution_end") {
|
|
269
|
+
this.hasCalls = true;
|
|
270
|
+
if (event.toolName !== "freelens_response" || !this.started || !this.call || event.toolCallId !== this.call.id || event.isError !== false || this.completed || !event.result?.details || !Object.hasOwn(event.result.details, "freelensResponse") || canonicalPiValue(event.result.details.freelensResponse) !== canonicalPiValue(this.call.arguments)) fail();
|
|
271
|
+
this.completed = true;
|
|
272
|
+
this.response = event.result.details.freelensResponse;
|
|
273
|
+
return this.response;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
function piAiOutputText(output) {
|
|
278
|
+
let text;
|
|
279
|
+
let settled = false;
|
|
280
|
+
let providerFailed = false;
|
|
281
|
+
const relay = new PiResponseRelay();
|
|
282
|
+
for (const line of output.split("\n").filter((line) => line.trim())) {
|
|
283
|
+
const event = JSON.parse(line);
|
|
284
|
+
relay.accept(event);
|
|
285
|
+
const item = event.assistantMessageEvent;
|
|
286
|
+
if (event.type === "error" || event.type === "message_update" && item?.type === "error") {
|
|
287
|
+
text = void 0;
|
|
288
|
+
providerFailed = true;
|
|
289
|
+
}
|
|
290
|
+
if (event.type === "agent_start") {
|
|
291
|
+
settled = false;
|
|
292
|
+
text = void 0;
|
|
293
|
+
providerFailed = false;
|
|
294
|
+
}
|
|
295
|
+
if (event.type === "message_start" && event.message?.role === "assistant") {
|
|
296
|
+
text = void 0;
|
|
297
|
+
settled = false;
|
|
298
|
+
providerFailed = false;
|
|
299
|
+
}
|
|
300
|
+
if (event.type === "message_end" && event.message?.role === "assistant") {
|
|
301
|
+
const message = event.message;
|
|
302
|
+
providerFailed = message.stopReason === "error";
|
|
303
|
+
text = message.stopReason === "stop" && Array.isArray(message.content) && message.content.every((block) => block?.type === "thinking" || block?.type === "text" && typeof block.text === "string") ? message.content.filter((block) => block.type === "text").map((block) => block.text).join("") : void 0;
|
|
304
|
+
}
|
|
305
|
+
if (event.type === "agent_settled") {
|
|
306
|
+
if (event.aborted !== false) throw new Error("AI returned an incomplete response");
|
|
307
|
+
settled = true;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
if (settled && providerFailed) throw new Error("CLI request failed. Check CLI authentication and model access");
|
|
311
|
+
if (!settled) throw new Error("AI returned an incomplete response");
|
|
312
|
+
if (relay.hasCalls) {
|
|
313
|
+
if (relay.response === void 0) throw new Error("AI returned an incomplete response");
|
|
314
|
+
return JSON.stringify(relay.response);
|
|
315
|
+
}
|
|
316
|
+
if (!text) throw new Error("AI returned an incomplete response");
|
|
317
|
+
return text;
|
|
318
|
+
}
|
|
319
|
+
function piAiOutputDiagnostics(output) {
|
|
320
|
+
let records = 0;
|
|
321
|
+
let malformedRecords = 0;
|
|
322
|
+
let assistantMessages = 0;
|
|
323
|
+
let stopReason = "missing";
|
|
324
|
+
let settled = null;
|
|
325
|
+
let textLength = 0;
|
|
326
|
+
let textFormat = "empty";
|
|
327
|
+
let nativeToolCalls = 0;
|
|
328
|
+
let providerErrors = 0;
|
|
329
|
+
let textType = "missing";
|
|
330
|
+
let toolType = "missing";
|
|
331
|
+
let toolMethod = "missing";
|
|
332
|
+
let unknownFieldCount = 0;
|
|
333
|
+
for (const line of output.split("\n").filter((line) => line.trim())) {
|
|
334
|
+
let event;
|
|
335
|
+
try {
|
|
336
|
+
event = JSON.parse(line);
|
|
337
|
+
if (!event || typeof event !== "object") throw new Error();
|
|
338
|
+
} catch {
|
|
339
|
+
malformedRecords++;
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
records++;
|
|
343
|
+
if (event.type === "agent_settled") settled = event.aborted === false;
|
|
344
|
+
if (event.type === "error" || event.type === "message_update" && event.assistantMessageEvent?.type === "error") providerErrors++;
|
|
345
|
+
if (event.type === "tool_execution_start" || event.type === "message_update" && typeof event.assistantMessageEvent?.type === "string" && event.assistantMessageEvent.type.startsWith("toolcall")) nativeToolCalls++;
|
|
346
|
+
if (event.type === "message_end" && event.message?.role === "assistant") {
|
|
347
|
+
assistantMessages++;
|
|
348
|
+
stopReason = [
|
|
349
|
+
"stop",
|
|
350
|
+
"length",
|
|
351
|
+
"toolUse",
|
|
352
|
+
"error",
|
|
353
|
+
"aborted"
|
|
354
|
+
].includes(event.message.stopReason) ? event.message.stopReason : "unknown";
|
|
355
|
+
const text = Array.isArray(event.message.content) ? event.message.content.filter((block) => block?.type === "text" && typeof block.text === "string").map((block) => block.text).join("") : "";
|
|
356
|
+
textLength = text.length;
|
|
357
|
+
textFormat = !text ? "empty" : /^\s*```/.test(text) ? "markdown" : "other";
|
|
358
|
+
try {
|
|
359
|
+
const envelope = JSON.parse(text);
|
|
360
|
+
textFormat = "json";
|
|
361
|
+
if (envelope && typeof envelope === "object" && !Array.isArray(envelope)) {
|
|
362
|
+
textType = envelope.text === null ? "null" : typeof envelope.text;
|
|
363
|
+
toolType = envelope.tool === null ? "null" : Array.isArray(envelope.tool) ? "array" : typeof envelope.tool;
|
|
364
|
+
const method = envelope.tool?.method;
|
|
365
|
+
toolMethod = [
|
|
366
|
+
"pods",
|
|
367
|
+
"nodes",
|
|
368
|
+
"resources",
|
|
369
|
+
"logs",
|
|
370
|
+
"dashboard"
|
|
371
|
+
].includes(method) ? method : method === void 0 ? "missing" : "unknown";
|
|
372
|
+
unknownFieldCount = Object.keys(envelope).filter((key) => key !== "tool" && key !== "text").length;
|
|
373
|
+
}
|
|
374
|
+
} catch {}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return {
|
|
378
|
+
records,
|
|
379
|
+
malformedRecords,
|
|
380
|
+
assistantMessages,
|
|
381
|
+
stopReason,
|
|
382
|
+
settled,
|
|
383
|
+
textLength,
|
|
384
|
+
textFormat,
|
|
385
|
+
nativeToolCalls,
|
|
386
|
+
providerErrors,
|
|
387
|
+
textType,
|
|
388
|
+
toolType,
|
|
389
|
+
toolMethod,
|
|
390
|
+
unknownFieldCount
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
var PiAiResponseError = class extends Error {
|
|
394
|
+
diagnostics;
|
|
395
|
+
constructor(message, output) {
|
|
396
|
+
super(message);
|
|
397
|
+
this.name = "PiAiResponseError";
|
|
398
|
+
this.diagnostics = piAiOutputDiagnostics(output);
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
//#endregion
|
|
402
|
+
exports.PiAiResponseError = PiAiResponseError;
|
|
403
|
+
exports.PiResponseRelay = PiResponseRelay;
|
|
404
|
+
exports.piAiArguments = piAiArguments;
|
|
405
|
+
exports.piAiEnvironment = piAiEnvironment;
|
|
406
|
+
exports.piAiOutputDiagnostics = piAiOutputDiagnostics;
|
|
407
|
+
exports.piAiOutputText = piAiOutputText;
|
|
408
|
+
exports.preparePiAiEnvironment = preparePiAiEnvironment;
|
|
409
|
+
exports.writePiResponseExtension = writePiResponseExtension;
|
|
410
|
+
|
|
411
|
+
//# sourceMappingURL=ai-pi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-pi.js","names":[],"sources":["../../src/main/ai-pi.ts"],"sourcesContent":["import { mkdir, open, writeFile } from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport { PI_REASONING_EFFORTS } from \"../common/ai-models\";\n\nclass PiMissingCredentialError extends Error {}\n\nexport function piAiArguments(\n model: string,\n reasoningEffort = \"\",\n responseSchema?: unknown,\n extensionPath?: string,\n): string[] {\n if (!/^[a-zA-Z0-9][a-zA-Z0-9._-]*\\/[a-zA-Z0-9][a-zA-Z0-9._/+-]{0,250}$/.test(model))\n throw new Error(\"Invalid Pi model\");\n if (reasoningEffort && !(PI_REASONING_EFFORTS as readonly string[]).includes(reasoningEffort))\n throw new Error(\"Invalid Pi reasoning effort\");\n const args = [\n \"--print\",\n \"--mode\",\n \"json\",\n \"--no-session\",\n \"--no-tools\",\n \"--no-extensions\",\n \"--no-skills\",\n \"--no-prompt-templates\",\n \"--no-themes\",\n \"--no-context-files\",\n \"--no-mcp\",\n \"--offline\",\n \"--no-approve\",\n \"--model\",\n model,\n ];\n if (extensionPath) args.push(\"--extension\", extensionPath, \"--tools\", \"freelens_response\");\n if (reasoningEffort) args.push(\"--thinking\", reasoningEffort);\n if (responseSchema !== undefined)\n args.push(\n \"--system-prompt\",\n `You are a read-only assistant. No built-in tools are available. Always return exactly one JSON object matching this schema, putting tool before text. Any user-requested wording or answer format applies only inside the text field. Never omit the JSON envelope, and never add markdown fences or other text outside it: ${JSON.stringify(responseSchema)}`,\n );\n return args;\n}\n\nexport async function writePiResponseExtension(directory: string, responseSchema: unknown): Promise<string> {\n const path = join(directory, \"freelens-response.mjs\");\n await writeFile(\n path,\n `export default function(pi) {\n pi.registerTool({\n name: \"freelens_response\", label: \"Submit response\",\n description: \"Submit the response JSON. Always call this tool to return either bounded read requests or your final answer. User answer formatting applies only inside text.\",\n parameters: ${JSON.stringify(responseSchema)},\n async execute(_id, params) {\n return { content: [{ type: \"text\", text: \"Response submitted\" }], details: { freelensResponse: params }, terminate: true };\n }\n });\n pi.on(\"before_provider_request\", (event, ctx) => {\n if (ctx.model?.api === \"openai-completions\")\n return { ...event.payload, tool_choice: { type: \"function\", function: { name: \"freelens_response\" } } };\n });\n }`,\n { mode: 0o600 },\n );\n return path;\n}\n\nexport function piAiEnvironment(source: NodeJS.ProcessEnv = process.env): NodeJS.ProcessEnv {\n const environment: NodeJS.ProcessEnv = {};\n for (const key of [\n \"HOME\",\n \"PATH\",\n \"TMPDIR\",\n \"USER\",\n \"PI_CODING_AGENT_DIR\",\n \"ANTHROPIC_API_KEY\",\n \"OPENAI_API_KEY\",\n \"GEMINI_API_KEY\",\n \"GOOGLE_API_KEY\",\n \"GROQ_API_KEY\",\n \"CEREBRAS_API_KEY\",\n \"XAI_API_KEY\",\n \"OPENROUTER_API_KEY\",\n \"MISTRAL_API_KEY\",\n \"DEEPSEEK_API_KEY\",\n \"ANT_LING_API_KEY\",\n \"NVIDIA_API_KEY\",\n \"COPILOT_GITHUB_TOKEN\",\n \"AI_GATEWAY_API_KEY\",\n \"ZAI_API_KEY\",\n \"ZAI_CODING_CN_API_KEY\",\n \"OPENCODE_API_KEY\",\n \"RADIUS_API_KEY\",\n \"TYPESAFE_API_KEY\",\n \"HF_TOKEN\",\n \"FIREWORKS_API_KEY\",\n \"TOGETHER_API_KEY\",\n \"BASETEN_API_KEY\",\n \"KIMI_API_KEY\",\n \"META_API_KEY\",\n \"MINIMAX_API_KEY\",\n \"MINIMAX_CN_API_KEY\",\n \"MOONSHOT_API_KEY\",\n \"QWEN_TOKEN_PLAN_API_KEY\",\n \"QWEN_TOKEN_PLAN_CN_API_KEY\",\n \"XIAOMI_API_KEY\",\n \"XIAOMI_TOKEN_PLAN_CN_API_KEY\",\n \"XIAOMI_TOKEN_PLAN_AMS_API_KEY\",\n \"XIAOMI_TOKEN_PLAN_SGP_API_KEY\",\n \"ANTHROPIC_OAUTH_TOKEN\",\n \"ANTHROPIC_AUTH_TOKEN\",\n \"AZURE_OPENAI_API_KEY\",\n \"AZURE_OPENAI_BASE_URL\",\n \"AZURE_OPENAI_RESOURCE_NAME\",\n \"AZURE_OPENAI_API_VERSION\",\n \"HTTP_PROXY\",\n \"HTTPS_PROXY\",\n \"NO_PROXY\",\n \"ALL_PROXY\",\n \"http_proxy\",\n \"https_proxy\",\n \"no_proxy\",\n \"all_proxy\",\n \"NODE_EXTRA_CA_CERTS\",\n \"SSL_CERT_FILE\",\n \"SSL_CERT_DIR\",\n ])\n if (typeof source[key] === \"string\") environment[key] = source[key];\n environment.PI_TELEMETRY = \"0\";\n environment.PI_SKIP_VERSION_CHECK = \"1\";\n return environment;\n}\n\n// copy credentials and model definitions without loading user settings, packages or executable credential commands\nexport async function preparePiAiEnvironment(\n directory: string,\n source: NodeJS.ProcessEnv = process.env,\n): Promise<NodeJS.ProcessEnv> {\n const environment = piAiEnvironment(source);\n const original = source.PI_CODING_AGENT_DIR || join(source.HOME || homedir(), \".pi\", \"agent\");\n const isolated = join(directory, \"pi-agent\");\n await mkdir(isolated, { recursive: true, mode: 0o700 });\n environment.HOME = join(isolated, \"home\");\n await mkdir(environment.HOME, { recursive: true, mode: 0o700 });\n environment.AWS_CONFIG_FILE = join(isolated, \"disabled-aws-config\");\n environment.AWS_SHARED_CREDENTIALS_FILE = join(isolated, \"disabled-aws-credentials\");\n environment.AWS_EC2_METADATA_DISABLED = \"true\";\n environment.CLOUDSDK_CONFIG = join(isolated, \"disabled-gcloud\");\n environment.GOOGLE_APPLICATION_CREDENTIALS = join(isolated, \"disabled-google-credentials.json\");\n environment.GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES = \"0\";\n for (const name of [\"auth.json\", \"models.json\"]) {\n let file: Awaited<ReturnType<typeof open>> | undefined;\n try {\n file = await open(join(original, name), \"r\");\n const metadata = await file.stat();\n if (!metadata.isFile() || metadata.size > 1024 * 1024) throw new Error(\"Invalid Pi configuration\");\n const buffer = Buffer.alloc(1024 * 1024 + 1);\n const { bytesRead } = await file.read(buffer, 0, buffer.length, 0);\n if (bytesRead > 1024 * 1024) throw new Error(\"Invalid Pi configuration\");\n const config: unknown = JSON.parse(buffer.subarray(0, bytesRead).toString(\"utf8\"));\n if (!config || typeof config !== \"object\" || Array.isArray(config)) throw new Error(\"Invalid Pi configuration\");\n const credentialValue = (value: string, localEnv: unknown): string => {\n if (value.startsWith(\"!\")) throw new Error(\"Pi command credentials are unavailable in read-only mode\");\n const resolved = value.replace(\n /\\$(\\$|!|\\{([A-Za-z_][A-Za-z0-9_]*)\\}|([A-Za-z_][A-Za-z0-9_]*))/g,\n (_match, escaped: string, braced: string, plain: string) => {\n if (escaped === \"$\" || escaped === \"!\") return escaped;\n const key = braced || plain;\n const local =\n localEnv && typeof localEnv === \"object\" ? (localEnv as Record<string, unknown>)[key] : undefined;\n const found = (typeof local === \"string\" && local) || source[key];\n if (!found) throw new PiMissingCredentialError();\n return found;\n },\n );\n // the Pi CLI resolves these fields again, so preserve literal [$] and a leading [!] with its escape syntax\n return resolved.replace(/\\$/g, () => \"$$\").replace(/^!/, \"$!\");\n };\n const resolve = (value: unknown, field = \"\", localEnv?: unknown): unknown => {\n if (typeof value === \"string\")\n return field === \"apiKey\" || field === \"credential\" || field === \"header\"\n ? credentialValue(value, localEnv)\n : value;\n if (Array.isArray(value)) return value.map((entry) => resolve(entry, field, localEnv));\n if (value && typeof value === \"object\") {\n const object = value as Record<string, unknown>;\n if (field === \"env\") {\n // retain only explicit provider token variables, never SDK profiles or credential helper paths\n return Object.fromEntries(\n Object.entries(object).filter(\n ([key, entry]) =>\n typeof entry === \"string\" &&\n /(?:_API_KEY|_AUTH_TOKEN|_OAUTH_TOKEN)$|^(?:HF_TOKEN|COPILOT_GITHUB_TOKEN)$/.test(key) &&\n Object.hasOwn(piAiEnvironment({ [key]: entry }), key),\n ),\n );\n }\n const entries: [string, unknown][] = [];\n for (const [key, entry] of Object.entries(object)) {\n try {\n entries.push([\n key,\n resolve(\n entry,\n field === \"headers\" ? \"header\" : key === \"key\" && object.type === \"api_key\" ? \"credential\" : key,\n object.env ?? localEnv,\n ),\n ]);\n } catch (error) {\n // a missing optional model [apiKey] can fall back to stored auth or provider token variables\n if (!(error instanceof PiMissingCredentialError) || name !== \"models.json\" || key !== \"apiKey\")\n throw error;\n }\n }\n return Object.fromEntries(entries);\n }\n return value;\n };\n const configured = config as Record<string, unknown>;\n const providers = name === \"models.json\" ? configured.providers : configured;\n const available: Record<string, unknown> = {};\n if (providers && typeof providers === \"object\" && !Array.isArray(providers)) {\n for (const [provider, definition] of Object.entries(providers)) {\n try {\n available[provider] = resolve(definition);\n } catch (error) {\n if (!(error instanceof PiMissingCredentialError)) throw error;\n }\n }\n }\n if (name === \"models.json\") {\n for (const provider of Object.values(available)) {\n if (!provider || typeof provider !== \"object\") continue;\n type ModelMapping = { id?: string; api?: string; thinkingLevelMap?: Record<string, unknown> };\n const definition = provider as {\n api?: string;\n models?: ModelMapping[];\n modelOverrides?: Record<string, ModelMapping>;\n };\n const models: [string | undefined, ModelMapping][] = [\n ...(Array.isArray(definition.models)\n ? definition.models.map((model): [string | undefined, ModelMapping] => [model.id, model])\n : []),\n ...Object.entries(definition.modelOverrides ?? {}),\n ];\n for (const [id, model] of models) {\n if ((model.api ?? definition.api) !== \"openai-completions\") continue;\n const defaults =\n id?.split(\"/\").at(-1) === \"deepseek-v4-flash\"\n ? {\n off: \"none\",\n minimal: \"minimal\",\n low: \"low\",\n medium: \"medium\",\n high: \"high\",\n xhigh: \"xhigh\",\n max: null,\n }\n : id?.split(\"/\").at(-1) === \"glm-5-3\"\n ? { off: null, minimal: null, low: \"low\", medium: null, high: \"high\", xhigh: null, max: \"max\" }\n : undefined;\n if (defaults) model.thinkingLevelMap = { ...defaults, ...model.thinkingLevelMap };\n }\n }\n }\n const resolved = name === \"models.json\" ? { ...configured, providers: available } : available;\n await writeFile(join(isolated, name), JSON.stringify(resolved), { mode: 0o600 });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== \"ENOENT\") throw error;\n } finally {\n await file?.close();\n }\n }\n environment.PI_CODING_AGENT_DIR = isolated;\n return environment;\n}\n\nfunction canonicalPiValue(value: unknown): string {\n const normalize = (entry: unknown): unknown =>\n Array.isArray(entry)\n ? entry.map(normalize)\n : entry && typeof entry === \"object\"\n ? Object.fromEntries(\n Object.keys(entry)\n .sort()\n .map((key) => [key, normalize((entry as Record<string, unknown>)[key])]),\n )\n : entry;\n return JSON.stringify(normalize(value));\n}\n\nexport class PiResponseRelay {\n hasCalls = false;\n response: unknown;\n private call: { id: string; arguments: unknown } | undefined;\n private started = false;\n private completed = false;\n private invalid = false;\n\n accept(event: ReturnType<typeof JSON.parse>): unknown {\n const fail = () => {\n this.invalid = true;\n throw new Error(\"CLI request failed. Check CLI authentication and model access\");\n };\n if (this.invalid) fail();\n if (\n event.type === \"agent_start\" ||\n (event.type === \"message_start\" && event.message?.role === \"assistant\") ||\n event.type === \"error\" ||\n (event.type === \"message_update\" && event.assistantMessageEvent?.type === \"error\")\n ) {\n this.call = undefined;\n this.started = false;\n this.completed = false;\n this.response = undefined;\n }\n const item = event.assistantMessageEvent;\n if (event.type === \"message_update\" && typeof item?.type === \"string\" && item.type.startsWith(\"toolcall\")) {\n this.hasCalls = true;\n if (\n (item.type === \"toolcall_start\" && item.toolName !== \"freelens_response\") ||\n (item.type === \"toolcall_end\" && item.toolCall?.name !== \"freelens_response\")\n )\n fail();\n }\n if (event.type === \"message_end\" && event.message?.role === \"assistant\") {\n const calls = Array.isArray(event.message.content)\n ? event.message.content.filter((block: { type?: string }) => block?.type === \"toolCall\")\n : [];\n if (calls.length) {\n this.hasCalls = true;\n const call = calls[0];\n if (\n event.message.stopReason !== \"toolUse\" ||\n calls.length !== 1 ||\n call.name !== \"freelens_response\" ||\n typeof call.id !== \"string\" ||\n !call.arguments ||\n typeof call.arguments !== \"object\" ||\n Array.isArray(call.arguments) ||\n this.call !== undefined\n )\n fail();\n this.call = { id: call.id, arguments: call.arguments };\n }\n }\n if (event.type === \"tool_execution_start\") {\n this.hasCalls = true;\n if (\n event.toolName !== \"freelens_response\" ||\n !this.call ||\n event.toolCallId !== this.call.id ||\n this.started ||\n canonicalPiValue(event.args) !== canonicalPiValue(this.call.arguments)\n )\n fail();\n this.started = true;\n }\n if (\n event.type === \"tool_execution_update\" &&\n (event.toolName !== \"freelens_response\" || !this.started || event.toolCallId !== this.call?.id)\n )\n fail();\n if (event.type === \"tool_execution_end\") {\n this.hasCalls = true;\n if (\n event.toolName !== \"freelens_response\" ||\n !this.started ||\n !this.call ||\n event.toolCallId !== this.call.id ||\n event.isError !== false ||\n this.completed ||\n !event.result?.details ||\n !Object.hasOwn(event.result.details, \"freelensResponse\") ||\n canonicalPiValue(event.result.details.freelensResponse) !== canonicalPiValue(this.call.arguments)\n )\n fail();\n this.completed = true;\n this.response = event.result.details.freelensResponse;\n return this.response;\n }\n return undefined;\n }\n}\n\nexport function piAiOutputText(output: string): string {\n let text: string | undefined;\n let settled = false;\n let providerFailed = false;\n const relay = new PiResponseRelay();\n for (const line of output.split(\"\\n\").filter((line) => line.trim())) {\n const event = JSON.parse(line);\n relay.accept(event);\n const item = event.assistantMessageEvent;\n if (event.type === \"error\" || (event.type === \"message_update\" && item?.type === \"error\")) {\n text = undefined;\n providerFailed = true;\n }\n if (event.type === \"agent_start\") {\n settled = false;\n text = undefined;\n providerFailed = false;\n }\n if (event.type === \"message_start\" && event.message?.role === \"assistant\") {\n text = undefined;\n settled = false;\n providerFailed = false;\n }\n if (event.type === \"message_end\" && event.message?.role === \"assistant\") {\n const message = event.message;\n providerFailed = message.stopReason === \"error\";\n text =\n message.stopReason === \"stop\" &&\n Array.isArray(message.content) &&\n message.content.every(\n (block: { type?: string; text?: unknown }) =>\n block?.type === \"thinking\" || (block?.type === \"text\" && typeof block.text === \"string\"),\n )\n ? message.content\n .filter((block: { type: string }) => block.type === \"text\")\n .map((block: { text: string }) => block.text)\n .join(\"\")\n : undefined;\n }\n if (event.type === \"agent_settled\") {\n if (event.aborted !== false) throw new Error(\"AI returned an incomplete response\");\n settled = true;\n }\n }\n if (settled && providerFailed) throw new Error(\"CLI request failed. Check CLI authentication and model access\");\n if (!settled) throw new Error(\"AI returned an incomplete response\");\n if (relay.hasCalls) {\n if (relay.response === undefined) throw new Error(\"AI returned an incomplete response\");\n return JSON.stringify(relay.response);\n }\n if (!text) throw new Error(\"AI returned an incomplete response\");\n return text;\n}\n\nexport function piAiOutputDiagnostics(output: string) {\n let records = 0;\n let malformedRecords = 0;\n let assistantMessages = 0;\n let stopReason = \"missing\";\n let settled: boolean | null = null;\n let textLength = 0;\n let textFormat = \"empty\";\n let nativeToolCalls = 0;\n let providerErrors = 0;\n let textType = \"missing\";\n let toolType = \"missing\";\n let toolMethod = \"missing\";\n let unknownFieldCount = 0;\n for (const line of output.split(\"\\n\").filter((line) => line.trim())) {\n let event: ReturnType<typeof JSON.parse>;\n try {\n event = JSON.parse(line);\n if (!event || typeof event !== \"object\") throw new Error();\n } catch {\n malformedRecords++;\n continue;\n }\n records++;\n if (event.type === \"agent_settled\") settled = event.aborted === false;\n if (event.type === \"error\" || (event.type === \"message_update\" && event.assistantMessageEvent?.type === \"error\"))\n providerErrors++;\n if (\n event.type === \"tool_execution_start\" ||\n (event.type === \"message_update\" &&\n typeof event.assistantMessageEvent?.type === \"string\" &&\n event.assistantMessageEvent.type.startsWith(\"toolcall\"))\n )\n nativeToolCalls++;\n if (event.type === \"message_end\" && event.message?.role === \"assistant\") {\n assistantMessages++;\n stopReason = [\"stop\", \"length\", \"toolUse\", \"error\", \"aborted\"].includes(event.message.stopReason)\n ? event.message.stopReason\n : \"unknown\";\n const text = Array.isArray(event.message.content)\n ? event.message.content\n .filter(\n (block: { type?: unknown; text?: unknown }) => block?.type === \"text\" && typeof block.text === \"string\",\n )\n .map((block: { text: string }) => block.text)\n .join(\"\")\n : \"\";\n textLength = text.length;\n textFormat = !text ? \"empty\" : /^\\s*```/.test(text) ? \"markdown\" : \"other\";\n try {\n const envelope = JSON.parse(text);\n textFormat = \"json\";\n if (envelope && typeof envelope === \"object\" && !Array.isArray(envelope)) {\n textType = envelope.text === null ? \"null\" : typeof envelope.text;\n toolType = envelope.tool === null ? \"null\" : Array.isArray(envelope.tool) ? \"array\" : typeof envelope.tool;\n const method = envelope.tool?.method;\n toolMethod = [\"pods\", \"nodes\", \"resources\", \"logs\", \"dashboard\"].includes(method)\n ? method\n : method === undefined\n ? \"missing\"\n : \"unknown\";\n unknownFieldCount = Object.keys(envelope).filter((key) => key !== \"tool\" && key !== \"text\").length;\n }\n } catch {\n /* only response shape is diagnostic */\n }\n }\n }\n return {\n records,\n malformedRecords,\n assistantMessages,\n stopReason,\n settled,\n textLength,\n textFormat,\n nativeToolCalls,\n providerErrors,\n textType,\n toolType,\n toolMethod,\n unknownFieldCount,\n };\n}\n\nexport class PiAiResponseError extends Error {\n readonly diagnostics: ReturnType<typeof piAiOutputDiagnostics>;\n\n constructor(message: string, output: string) {\n super(message);\n this.name = \"PiAiResponseError\";\n this.diagnostics = piAiOutputDiagnostics(output);\n }\n}\n"],"mappings":";;;;;AAKA,IAAM,2BAAN,cAAuC,MAAM,CAAC;AAE9C,SAAgB,cACd,OACA,kBAAkB,IAClB,gBACA,eACU;CACV,IAAI,CAAC,mEAAmE,KAAK,KAAK,GAChF,MAA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