@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.
Files changed (756) hide show
  1. package/README.md +56 -33
  2. package/THIRD_PARTY_LICENSES +74 -0
  3. package/out/main/_virtual/_rolldown/runtime.js +25 -0
  4. package/out/main/ai-answer-stream.js +96 -0
  5. package/out/main/ai-answer-stream.js.map +1 -0
  6. package/out/main/ai-api-key.js +95 -0
  7. package/out/main/ai-api-key.js.map +1 -0
  8. package/out/main/ai-codex-api.js +611 -0
  9. package/out/main/ai-codex-api.js.map +1 -0
  10. package/out/main/ai-ipc.js +42 -11
  11. package/out/main/ai-ipc.js.map +1 -1
  12. package/out/main/ai-logs.js +4 -3
  13. package/out/main/ai-logs.js.map +1 -1
  14. package/out/main/ai-models.js +23 -11
  15. package/out/main/ai-models.js.map +1 -1
  16. package/out/main/ai-pi-models.js +73 -0
  17. package/out/main/ai-pi-models.js.map +1 -0
  18. package/out/main/ai-pi.js +411 -0
  19. package/out/main/ai-pi.js.map +1 -0
  20. package/out/main/ai-references.js +1 -1
  21. package/out/main/ai-resources.js +166 -220
  22. package/out/main/ai-resources.js.map +1 -1
  23. package/out/main/ai.js +303 -142
  24. package/out/main/ai.js.map +1 -1
  25. package/out/main/cluster-icons-catalog.js +1 -1
  26. package/out/main/cluster-icons.js +4 -4
  27. package/out/main/dashboard-ai.js +29 -0
  28. package/out/main/dashboard-ai.js.map +1 -0
  29. package/out/main/dashboard-catalog.js +1 -1
  30. package/out/main/dashboard-picker.js +3 -3
  31. package/out/main/dashboard-views.js +102 -10
  32. package/out/main/dashboard-views.js.map +1 -1
  33. package/out/main/diagnostics-menu-order.js +1 -1
  34. package/out/main/dock-icon.js +1 -1
  35. package/out/main/extension-updates.js +151 -0
  36. package/out/main/extension-updates.js.map +1 -0
  37. package/out/main/helm-installed-chart.js +141 -0
  38. package/out/main/helm-installed-chart.js.map +1 -0
  39. package/out/main/helm-ipc.js +748 -0
  40. package/out/main/helm-ipc.js.map +1 -0
  41. package/out/main/helm-values.js +45 -0
  42. package/out/main/helm-values.js.map +1 -0
  43. package/out/main/helm.js +283 -0
  44. package/out/main/helm.js.map +1 -0
  45. package/out/main/index.js +20 -12
  46. package/out/main/index.js.map +1 -1
  47. package/out/main/monitoring-history.js +2 -2
  48. package/out/main/node-bulk.js +260 -0
  49. package/out/main/node-bulk.js.map +1 -0
  50. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js +99 -0
  51. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js.map +1 -0
  52. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js +32 -0
  53. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js.map +1 -0
  54. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js +242 -0
  55. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js.map +1 -0
  56. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js +154 -0
  57. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js.map +1 -0
  58. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js +60 -0
  59. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js.map +1 -0
  60. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js +346 -0
  61. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js.map +1 -0
  62. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js +479 -0
  63. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js.map +1 -0
  64. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js +508 -0
  65. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js.map +1 -0
  66. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js +127 -0
  67. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js.map +1 -0
  68. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js +50 -0
  69. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js.map +1 -0
  70. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js +201 -0
  71. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js.map +1 -0
  72. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js +401 -0
  73. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js.map +1 -0
  74. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js +1007 -0
  75. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js.map +1 -0
  76. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js +23 -0
  77. package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js.map +1 -0
  78. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js +69 -0
  79. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js.map +1 -0
  80. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js +56 -0
  81. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js.map +1 -0
  82. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js +105 -0
  83. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js.map +1 -0
  84. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js +73 -0
  85. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js.map +1 -0
  86. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js +214 -0
  87. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js.map +1 -0
  88. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js +100 -0
  89. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js.map +1 -0
  90. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js +187 -0
  91. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js.map +1 -0
  92. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js +55 -0
  93. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js.map +1 -0
  94. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js +47 -0
  95. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js.map +1 -0
  96. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js +173 -0
  97. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js.map +1 -0
  98. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js +218 -0
  99. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js.map +1 -0
  100. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js +116 -0
  101. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js.map +1 -0
  102. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js +38 -0
  103. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js.map +1 -0
  104. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js +36 -0
  105. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js.map +1 -0
  106. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js +23 -0
  107. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js.map +1 -0
  108. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js +23 -0
  109. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js.map +1 -0
  110. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js +302 -0
  111. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js.map +1 -0
  112. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js +79 -0
  113. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js.map +1 -0
  114. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js +49 -0
  115. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js.map +1 -0
  116. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js +76 -0
  117. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js.map +1 -0
  118. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js +177 -0
  119. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js.map +1 -0
  120. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js +62 -0
  121. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js.map +1 -0
  122. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js +74 -0
  123. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js.map +1 -0
  124. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js +23 -0
  125. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js.map +1 -0
  126. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js +111 -0
  127. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js.map +1 -0
  128. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js +134 -0
  129. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js.map +1 -0
  130. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js +47 -0
  131. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js.map +1 -0
  132. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js +47 -0
  133. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js.map +1 -0
  134. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js +40 -0
  135. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js.map +1 -0
  136. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js +125 -0
  137. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js.map +1 -0
  138. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js +122 -0
  139. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js.map +1 -0
  140. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js +66 -0
  141. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js.map +1 -0
  142. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js +59 -0
  143. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js.map +1 -0
  144. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js +48 -0
  145. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js.map +1 -0
  146. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js +281 -0
  147. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js.map +1 -0
  148. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js +60 -0
  149. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js.map +1 -0
  150. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js +100 -0
  151. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js.map +1 -0
  152. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js +92 -0
  153. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js.map +1 -0
  154. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js +542 -0
  155. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js.map +1 -0
  156. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js +56 -0
  157. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js.map +1 -0
  158. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js +875 -0
  159. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js.map +1 -0
  160. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js +104 -0
  161. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js.map +1 -0
  162. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js +43 -0
  163. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js.map +1 -0
  164. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js +29 -0
  165. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js.map +1 -0
  166. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js +26 -0
  167. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js.map +1 -0
  168. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js +29 -0
  169. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js.map +1 -0
  170. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js +26 -0
  171. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js.map +1 -0
  172. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js +30 -0
  173. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js.map +1 -0
  174. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js +53 -0
  175. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js.map +1 -0
  176. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js +52 -0
  177. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js.map +1 -0
  178. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js +41 -0
  179. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js.map +1 -0
  180. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js +75 -0
  181. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js.map +1 -0
  182. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js +110 -0
  183. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js.map +1 -0
  184. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js +68 -0
  185. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js.map +1 -0
  186. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js +38 -0
  187. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js.map +1 -0
  188. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js +56 -0
  189. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js.map +1 -0
  190. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js +86 -0
  191. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js.map +1 -0
  192. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js +55 -0
  193. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js.map +1 -0
  194. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js +78 -0
  195. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js.map +1 -0
  196. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +74 -0
  197. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js.map +1 -0
  198. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js +63 -0
  199. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js.map +1 -0
  200. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js +81 -0
  201. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js.map +1 -0
  202. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +94 -0
  203. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js.map +1 -0
  204. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js +125 -0
  205. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js.map +1 -0
  206. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js +122 -0
  207. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js.map +1 -0
  208. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js +131 -0
  209. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js.map +1 -0
  210. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js +29 -0
  211. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js.map +1 -0
  212. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js +74 -0
  213. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js.map +1 -0
  214. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js +30 -0
  215. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js.map +1 -0
  216. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js +111 -0
  217. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js.map +1 -0
  218. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js +236 -0
  219. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js.map +1 -0
  220. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js +201 -0
  221. package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js.map +1 -0
  222. package/out/main/package.js +6 -0
  223. package/out/main/package.js.map +1 -0
  224. package/out/main/power-logs-budget.js +1 -1
  225. package/out/main/power-logs-child.js +5 -4
  226. package/out/main/power-logs-child.js.map +1 -1
  227. package/out/main/power-logs-database.js +214 -8
  228. package/out/main/power-logs-database.js.map +1 -1
  229. package/out/main/power-logs-ipc.js +56 -7
  230. package/out/main/power-logs-ipc.js.map +1 -1
  231. package/out/main/power-logs-query-child.js +1 -1
  232. package/out/main/power-logs-query.js +6 -4
  233. package/out/main/power-logs-query.js.map +1 -1
  234. package/out/main/power-logs-worker.js +31 -9
  235. package/out/main/power-logs-worker.js.map +1 -1
  236. package/out/main/resource-search-database.js +9 -3
  237. package/out/main/resource-search-database.js.map +1 -1
  238. package/out/main/resource-search-worker.js +6 -2
  239. package/out/main/resource-search-worker.js.map +1 -1
  240. package/out/main/resource-search.js +4 -3
  241. package/out/main/resource-search.js.map +1 -1
  242. package/out/main/settings-export.js +3 -3
  243. package/out/main/settings-import.js +3 -3
  244. package/out/main/splash-accent.js +1 -1
  245. package/out/main/src/common/ai-attachments.js +36 -0
  246. package/out/main/src/common/ai-attachments.js.map +1 -0
  247. package/out/main/src/common/ai-extras.js.map +1 -0
  248. package/out/main/src/common/ai-models.js +81 -0
  249. package/out/main/src/common/ai-models.js.map +1 -0
  250. package/out/main/src/common/ai-prompts.js +46 -0
  251. package/out/main/src/common/ai-prompts.js.map +1 -0
  252. package/out/main/src/common/ai-resource-payload.js +308 -0
  253. package/out/main/src/common/ai-resource-payload.js.map +1 -0
  254. package/out/main/src/common/ai-shortcuts.js.map +1 -0
  255. package/out/main/src/common/ai-terminal-context.js +72 -0
  256. package/out/main/src/common/ai-terminal-context.js.map +1 -0
  257. package/out/main/{common → src/common}/ai.js +6 -0
  258. package/out/main/src/common/ai.js.map +1 -0
  259. package/out/main/src/common/cluster-icon-ipc.js.map +1 -0
  260. package/out/main/src/common/cluster-icons.js.map +1 -0
  261. package/out/main/src/common/dashboard-ai.js +64 -0
  262. package/out/main/src/common/dashboard-ai.js.map +1 -0
  263. package/out/main/src/common/dashboard-picker.js.map +1 -0
  264. package/out/main/src/common/dashboard-readiness.js.map +1 -0
  265. package/out/main/src/common/dashboard-selector.js.map +1 -0
  266. package/out/main/src/common/dashboard-views.js.map +1 -0
  267. package/out/main/src/common/dashboard.js.map +1 -0
  268. package/out/main/src/common/extension-info.js.map +1 -0
  269. package/out/main/src/common/extension-updates.js +13 -0
  270. package/out/main/src/common/extension-updates.js.map +1 -0
  271. package/out/main/src/common/helm-values-validation.js +56 -0
  272. package/out/main/src/common/helm-values-validation.js.map +1 -0
  273. package/out/main/src/common/helm.js +8 -0
  274. package/out/main/src/common/helm.js.map +1 -0
  275. package/out/main/src/common/monitoring-history.js.map +1 -0
  276. package/out/main/src/common/node-bulk.js +6 -0
  277. package/out/main/src/common/node-bulk.js.map +1 -0
  278. package/out/main/src/common/power-logs-limits.js.map +1 -0
  279. package/out/main/{common → src/common}/power-logs.js +6 -0
  280. package/out/main/src/common/power-logs.js.map +1 -0
  281. package/out/main/src/common/resource-search-kind-priority.js +23 -0
  282. package/out/main/src/common/resource-search-kind-priority.js.map +1 -0
  283. package/out/main/src/common/resource-search.js.map +1 -0
  284. package/out/main/src/common/settings-export.js.map +1 -0
  285. package/out/main/{common → src/common}/store/ai-preferences-store.js +50 -8
  286. package/out/main/src/common/store/ai-preferences-store.js.map +1 -0
  287. package/out/main/{common → src/common}/store/ai-shortcuts-store.js +2 -2
  288. package/out/main/src/common/store/ai-shortcuts-store.js.map +1 -0
  289. package/out/main/{common → src/common}/store/appearance-preferences-store.js +10 -5
  290. package/out/main/src/common/store/appearance-preferences-store.js.map +1 -0
  291. package/out/main/{common → src/common}/store/cluster-icons-store.js +2 -2
  292. package/out/main/src/common/store/cluster-icons-store.js.map +1 -0
  293. package/out/main/{common → src/common}/store/dashboard-preferences-store.js +2 -2
  294. package/out/main/src/common/store/dashboard-preferences-store.js.map +1 -0
  295. package/out/main/src/common/store/helm-preferences-store.js +26 -0
  296. package/out/main/src/common/store/helm-preferences-store.js.map +1 -0
  297. package/out/main/{common → src/common}/store/logs-preferences-store.js +7 -2
  298. package/out/main/src/common/store/logs-preferences-store.js.map +1 -0
  299. package/out/main/{common → src/common}/store/monitoring-preferences-store.js +2 -2
  300. package/out/main/src/common/store/monitoring-preferences-store.js.map +1 -0
  301. package/out/main/src/common/store/node-shell-preferences-store.js +44 -0
  302. package/out/main/src/common/store/node-shell-preferences-store.js.map +1 -0
  303. package/out/main/src/common/store/power-preferences-store.js +39 -0
  304. package/out/main/src/common/store/power-preferences-store.js.map +1 -0
  305. package/out/main/{common → src/common}/store/read-only-preferences-store.js +2 -2
  306. package/out/main/src/common/store/read-only-preferences-store.js.map +1 -0
  307. package/out/renderer/_virtual/_global-external_mobx.js +4 -2
  308. package/out/renderer/_virtual/_global-external_react-dom.js +4 -2
  309. package/out/renderer/_virtual/_global-external_react.js +4 -2
  310. package/out/renderer/ai-attachment-card.js +92 -0
  311. package/out/renderer/ai-attachment-card.js.map +1 -0
  312. package/out/renderer/ai-context-mutations.js +14 -0
  313. package/out/renderer/ai-context-mutations.js.map +1 -0
  314. package/out/renderer/ai-copy-answer.js +18 -15
  315. package/out/renderer/ai-copy-answer.js.map +1 -1
  316. package/out/renderer/ai-diagnostic-handoff.js +5 -2
  317. package/out/renderer/ai-diagnostic-handoff.js.map +1 -1
  318. package/out/renderer/ai-extras.js +95 -85
  319. package/out/renderer/ai-extras.js.map +1 -1
  320. package/out/renderer/ai-icon.js +26 -0
  321. package/out/renderer/ai-icon.js.map +1 -1
  322. package/out/renderer/ai-logs-sql.js +1 -0
  323. package/out/renderer/ai-logs-sql.js.map +1 -1
  324. package/out/renderer/ai-message.js +58 -41
  325. package/out/renderer/ai-message.js.map +1 -1
  326. package/out/renderer/ai-provider-icon.js +77 -32
  327. package/out/renderer/ai-provider-icon.js.map +1 -1
  328. package/out/renderer/ai-resize.js +40 -37
  329. package/out/renderer/ai-resize.js.map +1 -1
  330. package/out/renderer/ai-shortcuts.js +21 -17
  331. package/out/renderer/ai-shortcuts.js.map +1 -1
  332. package/out/renderer/ai-terminal-context.js +54 -81
  333. package/out/renderer/ai-terminal-context.js.map +1 -1
  334. package/out/renderer/ai.js +530 -172
  335. package/out/renderer/ai.js.map +1 -1
  336. package/out/renderer/appearance.js +59 -5
  337. package/out/renderer/appearance.js.map +1 -1
  338. package/out/renderer/assets/openai.js +6 -0
  339. package/out/renderer/assets/openai.js.map +1 -0
  340. package/out/renderer/assets/pi.js +6 -0
  341. package/out/renderer/assets/pi.js.map +1 -0
  342. package/out/renderer/button-styles.js +31 -2
  343. package/out/renderer/button-styles.js.map +1 -1
  344. package/out/renderer/cluster-icon-colors.js +10 -7
  345. package/out/renderer/cluster-icon-colors.js.map +1 -1
  346. package/out/renderer/cluster-icons.js +47 -40
  347. package/out/renderer/cluster-icons.js.map +1 -1
  348. package/out/renderer/dashboard.js +75 -14
  349. package/out/renderer/dashboard.js.map +1 -1
  350. package/out/renderer/details/resource-health-details.js +2 -2
  351. package/out/renderer/details/resource-health-details.js.map +1 -1
  352. package/out/renderer/details/service-diagnostics-details.js +25 -23
  353. package/out/renderer/details/service-diagnostics-details.js.map +1 -1
  354. package/out/renderer/diagnostic-explain-button.js +7 -4
  355. package/out/renderer/diagnostic-explain-button.js.map +1 -1
  356. package/out/renderer/diagnostics-screen-finding.js +52 -0
  357. package/out/renderer/diagnostics-screen-finding.js.map +1 -0
  358. package/out/renderer/diagnostics-state.js +37 -0
  359. package/out/renderer/diagnostics-state.js.map +1 -1
  360. package/out/renderer/diagnostics.css.js +17 -4
  361. package/out/renderer/diagnostics.css.js.map +1 -1
  362. package/out/renderer/diagnostics.js +457 -189
  363. package/out/renderer/diagnostics.js.map +1 -1
  364. package/out/renderer/extension-update-notifications.js +221 -0
  365. package/out/renderer/extension-update-notifications.js.map +1 -0
  366. package/out/renderer/extension-update.js +189 -0
  367. package/out/renderer/extension-update.js.map +1 -0
  368. package/out/renderer/floating-action-transitions.js +139 -0
  369. package/out/renderer/floating-action-transitions.js.map +1 -0
  370. package/out/renderer/helm-app-version.js +141 -0
  371. package/out/renderer/helm-app-version.js.map +1 -0
  372. package/out/renderer/helm-code-view.js +727 -0
  373. package/out/renderer/helm-code-view.js.map +1 -0
  374. package/out/renderer/helm-entrypoints.js +79 -0
  375. package/out/renderer/helm-entrypoints.js.map +1 -0
  376. package/out/renderer/helm-full-comparison.js +233 -0
  377. package/out/renderer/helm-full-comparison.js.map +1 -0
  378. package/out/renderer/helm-operations.js +541 -0
  379. package/out/renderer/helm-operations.js.map +1 -0
  380. package/out/renderer/helm-release-actions.js +296 -0
  381. package/out/renderer/helm-release-actions.js.map +1 -0
  382. package/out/renderer/helm-revision-delete.js +128 -0
  383. package/out/renderer/helm-revision-delete.js.map +1 -0
  384. package/out/renderer/helm-version-index.js +283 -0
  385. package/out/renderer/helm-version-index.js.map +1 -0
  386. package/out/renderer/helm.js +2383 -0
  387. package/out/renderer/helm.js.map +1 -0
  388. package/out/renderer/host-extensions.js +102 -0
  389. package/out/renderer/host-extensions.js.map +1 -0
  390. package/out/renderer/host-layout.js +59 -0
  391. package/out/renderer/host-layout.js.map +1 -0
  392. package/out/renderer/host-preferences.js +192 -0
  393. package/out/renderer/host-preferences.js.map +1 -0
  394. package/out/renderer/incident-copy-button.js +24 -21
  395. package/out/renderer/incident-copy-button.js.map +1 -1
  396. package/out/renderer/index.js +47 -5
  397. package/out/renderer/index.js.map +1 -1
  398. package/out/renderer/menus/secure-node-shell-menu.js +2 -1
  399. package/out/renderer/menus/secure-node-shell-menu.js.map +1 -1
  400. package/out/renderer/monitoring-collector.js +13 -8
  401. package/out/renderer/monitoring-collector.js.map +1 -1
  402. package/out/renderer/monitoring-history-view.js +1 -1
  403. package/out/renderer/monitoring-history-view.js.map +1 -1
  404. package/out/renderer/monitoring.js +130 -49
  405. package/out/renderer/monitoring.js.map +1 -1
  406. package/out/renderer/native-resource-removals.js +202 -0
  407. package/out/renderer/native-resource-removals.js.map +1 -0
  408. package/out/renderer/native-tooltip.js +22 -0
  409. package/out/renderer/native-tooltip.js.map +1 -0
  410. package/out/renderer/node-bulk-actions.js +527 -0
  411. package/out/renderer/node-bulk-actions.js.map +1 -0
  412. package/out/renderer/node-bulk-selection.js +203 -0
  413. package/out/renderer/node-bulk-selection.js.map +1 -0
  414. package/out/renderer/node-shell-entrypoints.js +65 -0
  415. package/out/renderer/node-shell-entrypoints.js.map +1 -0
  416. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js +52 -0
  417. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js.map +1 -0
  418. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js +41 -0
  419. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js.map +1 -0
  420. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js +88 -0
  421. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js.map +1 -0
  422. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js +59 -0
  423. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js.map +1 -0
  424. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js +195 -0
  425. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js.map +1 -0
  426. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js +84 -0
  427. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js.map +1 -0
  428. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +176 -0
  429. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js.map +1 -0
  430. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +42 -0
  431. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js.map +1 -0
  432. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js +38 -0
  433. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js.map +1 -0
  434. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +155 -0
  435. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js.map +1 -0
  436. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +206 -0
  437. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js.map +1 -0
  438. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js +107 -0
  439. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js.map +1 -0
  440. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js +29 -0
  441. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js.map +1 -0
  442. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +27 -0
  443. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js.map +1 -0
  444. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +12 -0
  445. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js.map +1 -0
  446. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js +12 -0
  447. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js.map +1 -0
  448. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js +279 -0
  449. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js.map +1 -0
  450. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js +67 -0
  451. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js.map +1 -0
  452. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js +40 -0
  453. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js.map +1 -0
  454. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js +63 -0
  455. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js.map +1 -0
  456. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js +165 -0
  457. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js.map +1 -0
  458. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js +53 -0
  459. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js.map +1 -0
  460. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/index.js +24 -0
  461. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js +8 -0
  462. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js.map +1 -0
  463. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js +96 -0
  464. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js.map +1 -0
  465. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js +121 -0
  466. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js.map +1 -0
  467. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js +34 -0
  468. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js.map +1 -0
  469. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js +32 -0
  470. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js.map +1 -0
  471. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js +27 -0
  472. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js.map +1 -0
  473. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js +109 -0
  474. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js.map +1 -0
  475. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +106 -0
  476. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js.map +1 -0
  477. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +51 -0
  478. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js.map +1 -0
  479. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js +50 -0
  480. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js.map +1 -0
  481. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  482. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js.map +1 -0
  483. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-scalar.js +3 -0
  484. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js +91 -0
  485. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js.map +1 -0
  486. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js +42 -0
  487. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js.map +1 -0
  488. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js +531 -0
  489. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js.map +1 -0
  490. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js +47 -0
  491. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js.map +1 -0
  492. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js +861 -0
  493. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js.map +1 -0
  494. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js +56 -0
  495. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js.map +1 -0
  496. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js +29 -0
  497. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js.map +1 -0
  498. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js +18 -0
  499. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js.map +1 -0
  500. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  501. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js.map +1 -0
  502. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js +18 -0
  503. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js.map +1 -0
  504. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js +16 -0
  505. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js.map +1 -0
  506. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  507. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js.map +1 -0
  508. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js +42 -0
  509. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js.map +1 -0
  510. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js +41 -0
  511. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js.map +1 -0
  512. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js +25 -0
  513. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js.map +1 -0
  514. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js +63 -0
  515. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js.map +1 -0
  516. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js +84 -0
  517. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js.map +1 -0
  518. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +54 -0
  519. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js.map +1 -0
  520. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +27 -0
  521. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js.map +1 -0
  522. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +45 -0
  523. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js.map +1 -0
  524. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +75 -0
  525. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js.map +1 -0
  526. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +43 -0
  527. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js.map +1 -0
  528. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +63 -0
  529. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js.map +1 -0
  530. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +60 -0
  531. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js.map +1 -0
  532. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +41 -0
  533. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js.map +1 -0
  534. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +68 -0
  535. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js.map +1 -0
  536. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +83 -0
  537. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js.map +1 -0
  538. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +116 -0
  539. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js.map +1 -0
  540. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js +108 -0
  541. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js.map +1 -0
  542. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +118 -0
  543. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js.map +1 -0
  544. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  545. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js.map +1 -0
  546. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +61 -0
  547. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js.map +1 -0
  548. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +21 -0
  549. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js.map +1 -0
  550. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js +97 -0
  551. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js.map +1 -0
  552. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js +224 -0
  553. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js.map +1 -0
  554. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js +190 -0
  555. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js.map +1 -0
  556. package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/index.js +24 -0
  557. package/out/renderer/package.js +6 -0
  558. package/out/renderer/package.js.map +1 -0
  559. package/out/renderer/pod-bulk-customization.js +51 -0
  560. package/out/renderer/pod-bulk-customization.js.map +1 -0
  561. package/out/renderer/pod-details-enhancements.js +107 -0
  562. package/out/renderer/pod-details-enhancements.js.map +1 -0
  563. package/out/renderer/pod-removal-confirmation.js +172 -0
  564. package/out/renderer/pod-removal-confirmation.js.map +1 -0
  565. package/out/renderer/power-log-column-widths.js +54 -0
  566. package/out/renderer/power-log-column-widths.js.map +1 -0
  567. package/out/renderer/power-log-columns.js +114 -0
  568. package/out/renderer/power-log-columns.js.map +1 -0
  569. package/out/renderer/power-log-json-cell.js +88 -0
  570. package/out/renderer/power-log-json-cell.js.map +1 -0
  571. package/out/renderer/power-log-json-fields.js +144 -0
  572. package/out/renderer/power-log-json-fields.js.map +1 -0
  573. package/out/renderer/power-log-json.js +252 -20
  574. package/out/renderer/power-log-json.js.map +1 -1
  575. package/out/renderer/power-log-message-tokens.js +60 -0
  576. package/out/renderer/power-log-message-tokens.js.map +1 -0
  577. package/out/renderer/power-log-message.js +26 -0
  578. package/out/renderer/power-log-message.js.map +1 -0
  579. package/out/renderer/power-log-sql-editor.js +120 -0
  580. package/out/renderer/power-log-sql-editor.js.map +1 -0
  581. package/out/renderer/power-logs-client.js +9 -0
  582. package/out/renderer/power-logs-client.js.map +1 -1
  583. package/out/renderer/power-logs-context.js +45 -0
  584. package/out/renderer/power-logs-context.js.map +1 -0
  585. package/out/renderer/power-logs-entrypoints.js +13 -36
  586. package/out/renderer/power-logs-entrypoints.js.map +1 -1
  587. package/out/renderer/power-logs-resource-stores.js +71 -0
  588. package/out/renderer/power-logs-resource-stores.js.map +1 -0
  589. package/out/renderer/power-logs-session.js +35 -0
  590. package/out/renderer/power-logs-session.js.map +1 -0
  591. package/out/renderer/power-logs-sql-drafts.js +76 -0
  592. package/out/renderer/power-logs-sql-drafts.js.map +1 -0
  593. package/out/renderer/power-logs-sql-row.js +5 -13
  594. package/out/renderer/power-logs-sql-row.js.map +1 -1
  595. package/out/renderer/power-logs-storage.js +11 -0
  596. package/out/renderer/power-logs-storage.js.map +1 -0
  597. package/out/renderer/power-logs.css.js +116 -16
  598. package/out/renderer/power-logs.css.js.map +1 -1
  599. package/out/renderer/power-logs.js +1139 -348
  600. package/out/renderer/power-logs.js.map +1 -1
  601. package/out/renderer/preferences/ai-preferences.js +264 -55
  602. package/out/renderer/preferences/ai-preferences.js.map +1 -1
  603. package/out/renderer/preferences/dashboard-preferences.js +42 -35
  604. package/out/renderer/preferences/dashboard-preferences.js.map +1 -1
  605. package/out/renderer/preferences/helm-preferences.js +22 -0
  606. package/out/renderer/preferences/helm-preferences.js.map +1 -0
  607. package/out/renderer/preferences/logs-preferences.js +287 -52
  608. package/out/renderer/preferences/logs-preferences.js.map +1 -1
  609. package/out/renderer/preferences/monitoring-preferences.js +21 -20
  610. package/out/renderer/preferences/monitoring-preferences.js.map +1 -1
  611. package/out/renderer/preferences/node-shell-preferences.js +10 -0
  612. package/out/renderer/preferences/node-shell-preferences.js.map +1 -1
  613. package/out/renderer/preferences/other-preferences.js +55 -0
  614. package/out/renderer/preferences/other-preferences.js.map +1 -0
  615. package/out/renderer/preferences/power-preferences.js +27 -10
  616. package/out/renderer/preferences/power-preferences.js.map +1 -1
  617. package/out/renderer/preferences/preferences.js +44 -13
  618. package/out/renderer/preferences/preferences.js.map +1 -1
  619. package/out/renderer/preferences/section-navigation.js +44 -0
  620. package/out/renderer/preferences/section-navigation.js.map +1 -0
  621. package/out/renderer/preferences/settings-icon-action.js +12 -11
  622. package/out/renderer/preferences/settings-icon-action.js.map +1 -1
  623. package/out/renderer/preferences/settings-modal.js +1 -1
  624. package/out/renderer/preferences/settings-modal.js.map +1 -1
  625. package/out/renderer/relationship-map-finding.js +54 -0
  626. package/out/renderer/relationship-map-finding.js.map +1 -0
  627. package/out/renderer/resource-relationships.css.js +11 -1
  628. package/out/renderer/resource-relationships.css.js.map +1 -1
  629. package/out/renderer/resource-relationships.js +104 -50
  630. package/out/renderer/resource-relationships.js.map +1 -1
  631. package/out/renderer/resource-search-client.js.map +1 -1
  632. package/out/renderer/resource-search-fields.js +2 -2
  633. package/out/renderer/resource-search-fields.js.map +1 -1
  634. package/out/renderer/resource-search-model.js +2 -1
  635. package/out/renderer/resource-search-model.js.map +1 -1
  636. package/out/renderer/resource-search-sync.js +1 -1
  637. package/out/renderer/resource-search-sync.js.map +1 -1
  638. package/out/renderer/resource-search.js +164 -108
  639. package/out/renderer/resource-search.js.map +1 -1
  640. package/out/renderer/secret-dialog-customization.js +142 -0
  641. package/out/renderer/secret-dialog-customization.js.map +1 -0
  642. package/out/renderer/src/common/ai-attachments.js +160 -0
  643. package/out/renderer/src/common/ai-attachments.js.map +1 -0
  644. package/out/renderer/src/common/ai-models.js +58 -0
  645. package/out/renderer/src/common/ai-models.js.map +1 -1
  646. package/out/renderer/src/common/ai-prompts.js +32 -2
  647. package/out/renderer/src/common/ai-prompts.js.map +1 -1
  648. package/out/renderer/src/common/ai-resource-payload.js +262 -0
  649. package/out/renderer/src/common/ai-resource-payload.js.map +1 -0
  650. package/out/renderer/src/common/ai-terminal-context.js +39 -18
  651. package/out/renderer/src/common/ai-terminal-context.js.map +1 -1
  652. package/out/renderer/src/common/ai.js +6 -0
  653. package/out/renderer/src/common/ai.js.map +1 -1
  654. package/out/renderer/src/common/dashboard-ai.js +22 -0
  655. package/out/renderer/src/common/dashboard-ai.js.map +1 -0
  656. package/out/renderer/src/common/extension-updates.js +33 -0
  657. package/out/renderer/src/common/extension-updates.js.map +1 -0
  658. package/out/renderer/src/common/gateway-relationships.js +8 -7
  659. package/out/renderer/src/common/gateway-relationships.js.map +1 -1
  660. package/out/renderer/src/common/helm-diff.js +312 -0
  661. package/out/renderer/src/common/helm-diff.js.map +1 -0
  662. package/out/renderer/src/common/helm-values-validation.js +59 -0
  663. package/out/renderer/src/common/helm-values-validation.js.map +1 -0
  664. package/out/renderer/src/common/helm.js +10 -0
  665. package/out/renderer/src/common/helm.js.map +1 -0
  666. package/out/renderer/src/common/node-bulk.js +6 -0
  667. package/out/renderer/src/common/node-bulk.js.map +1 -0
  668. package/out/renderer/src/common/power-log-field-filters.js +92 -0
  669. package/out/renderer/src/common/power-log-field-filters.js.map +1 -0
  670. package/out/renderer/src/common/power-log-json-filter-sql.js +118 -0
  671. package/out/renderer/src/common/power-log-json-filter-sql.js.map +1 -0
  672. package/out/renderer/src/common/power-log-json-preset.js +34 -0
  673. package/out/renderer/src/common/power-log-json-preset.js.map +1 -0
  674. package/out/renderer/src/common/power-log-level.js +172 -0
  675. package/out/renderer/src/common/power-log-level.js.map +1 -0
  676. package/out/renderer/src/common/power-log-parser.js +7 -29
  677. package/out/renderer/src/common/power-log-parser.js.map +1 -1
  678. package/out/renderer/src/common/power-log-sql-level.js +25 -0
  679. package/out/renderer/src/common/power-log-sql-level.js.map +1 -0
  680. package/out/renderer/src/common/power-logs-ai.js +11 -7
  681. package/out/renderer/src/common/power-logs-ai.js.map +1 -1
  682. package/out/renderer/src/common/power-logs.js +6 -0
  683. package/out/renderer/src/common/power-logs.js.map +1 -1
  684. package/out/renderer/src/common/resource-relationships.js +10 -8
  685. package/out/renderer/src/common/resource-relationships.js.map +1 -1
  686. package/out/renderer/src/common/resource-search-kind-priority.js +28 -0
  687. package/out/renderer/src/common/resource-search-kind-priority.js.map +1 -0
  688. package/out/renderer/src/common/resource-search.js.map +1 -1
  689. package/out/{main/common/ai-terminal-context.js → renderer/src/common/search-index-redaction.js} +4 -29
  690. package/out/renderer/src/common/search-index-redaction.js.map +1 -0
  691. package/out/renderer/src/common/store/ai-preferences-store.js +48 -6
  692. package/out/renderer/src/common/store/ai-preferences-store.js.map +1 -1
  693. package/out/renderer/src/common/store/appearance-preferences-store.js +8 -3
  694. package/out/renderer/src/common/store/appearance-preferences-store.js.map +1 -1
  695. package/out/renderer/src/common/store/helm-preferences-store.js +26 -0
  696. package/out/renderer/src/common/store/helm-preferences-store.js.map +1 -0
  697. package/out/renderer/src/common/store/logs-preferences-store.js +5 -0
  698. package/out/renderer/src/common/store/logs-preferences-store.js.map +1 -1
  699. package/out/renderer/src/common/store/node-shell-preferences-store.js +10 -6
  700. package/out/renderer/src/common/store/node-shell-preferences-store.js.map +1 -1
  701. package/out/renderer/src/common/store/power-preferences-store.js +19 -3
  702. package/out/renderer/src/common/store/power-preferences-store.js.map +1 -1
  703. package/out/renderer/welcome.js +29 -2
  704. package/out/renderer/welcome.js.map +1 -1
  705. package/package.json +5 -2
  706. package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
  707. package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
  708. package/out/main/common/ai-extras.js.map +0 -1
  709. package/out/main/common/ai-models.js +0 -6
  710. package/out/main/common/ai-models.js.map +0 -1
  711. package/out/main/common/ai-prompts.js +0 -16
  712. package/out/main/common/ai-prompts.js.map +0 -1
  713. package/out/main/common/ai-shortcuts.js.map +0 -1
  714. package/out/main/common/ai-terminal-context.js.map +0 -1
  715. package/out/main/common/ai.js.map +0 -1
  716. package/out/main/common/cluster-icon-ipc.js.map +0 -1
  717. package/out/main/common/cluster-icons.js.map +0 -1
  718. package/out/main/common/dashboard-picker.js.map +0 -1
  719. package/out/main/common/dashboard-readiness.js.map +0 -1
  720. package/out/main/common/dashboard-selector.js.map +0 -1
  721. package/out/main/common/dashboard-views.js.map +0 -1
  722. package/out/main/common/dashboard.js.map +0 -1
  723. package/out/main/common/extension-info.js.map +0 -1
  724. package/out/main/common/monitoring-history.js.map +0 -1
  725. package/out/main/common/power-logs-limits.js.map +0 -1
  726. package/out/main/common/power-logs.js.map +0 -1
  727. package/out/main/common/resource-search.js.map +0 -1
  728. package/out/main/common/settings-export.js.map +0 -1
  729. package/out/main/common/store/ai-preferences-store.js.map +0 -1
  730. package/out/main/common/store/ai-shortcuts-store.js.map +0 -1
  731. package/out/main/common/store/appearance-preferences-store.js.map +0 -1
  732. package/out/main/common/store/cluster-icons-store.js.map +0 -1
  733. package/out/main/common/store/dashboard-preferences-store.js.map +0 -1
  734. package/out/main/common/store/logs-preferences-store.js.map +0 -1
  735. package/out/main/common/store/monitoring-preferences-store.js.map +0 -1
  736. package/out/main/common/store/node-shell-preferences-store.js +0 -40
  737. package/out/main/common/store/node-shell-preferences-store.js.map +0 -1
  738. package/out/main/common/store/power-preferences-store.js +0 -23
  739. package/out/main/common/store/power-preferences-store.js.map +0 -1
  740. package/out/main/common/store/read-only-preferences-store.js.map +0 -1
  741. package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
  742. package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
  743. /package/out/main/{common → src/common}/ai-extras.js +0 -0
  744. /package/out/main/{common → src/common}/ai-shortcuts.js +0 -0
  745. /package/out/main/{common → src/common}/cluster-icon-ipc.js +0 -0
  746. /package/out/main/{common → src/common}/cluster-icons.js +0 -0
  747. /package/out/main/{common → src/common}/dashboard-picker.js +0 -0
  748. /package/out/main/{common → src/common}/dashboard-readiness.js +0 -0
  749. /package/out/main/{common → src/common}/dashboard-selector.js +0 -0
  750. /package/out/main/{common → src/common}/dashboard-views.js +0 -0
  751. /package/out/main/{common → src/common}/dashboard.js +0 -0
  752. /package/out/main/{common → src/common}/extension-info.js +0 -0
  753. /package/out/main/{common → src/common}/monitoring-history.js +0 -0
  754. /package/out/main/{common → src/common}/power-logs-limits.js +0 -0
  755. /package/out/main/{common → src/common}/resource-search.js +0 -0
  756. /package/out/main/{common → src/common}/settings-export.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js"],"sourcesContent":["/* eslint no-unused-vars: [\"error\", { \"varsIgnorePattern\": \"^WebSocket$\" }] */\n'use strict';\n\nconst WebSocket = require('./websocket');\nconst { Duplex } = require('stream');\n\n/**\n * Emits the `'close'` event on a stream.\n *\n * @param {Duplex} stream The stream.\n * @private\n */\nfunction emitClose(stream) {\n stream.emit('close');\n}\n\n/**\n * The listener of the `'end'` event.\n *\n * @private\n */\nfunction duplexOnEnd() {\n if (!this.destroyed && this._writableState.finished) {\n this.destroy();\n }\n}\n\n/**\n * The listener of the `'error'` event.\n *\n * @param {Error} err The error\n * @private\n */\nfunction duplexOnError(err) {\n this.removeListener('error', duplexOnError);\n this.destroy();\n if (this.listenerCount('error') === 0) {\n // Do not suppress the throwing behavior.\n this.emit('error', err);\n }\n}\n\n/**\n * Wraps a `WebSocket` in a duplex stream.\n *\n * @param {WebSocket} ws The `WebSocket` to wrap\n * @param {Object} [options] The options for the `Duplex` constructor\n * @return {Duplex} The duplex stream\n * @public\n */\nfunction createWebSocketStream(ws, options) {\n let terminateOnDestroy = true;\n\n const duplex = new Duplex({\n ...options,\n autoDestroy: false,\n emitClose: false,\n objectMode: false,\n writableObjectMode: false\n });\n\n ws.on('message', function message(msg, isBinary) {\n const data =\n !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;\n\n if (!duplex.push(data)) ws.pause();\n });\n\n ws.once('error', function error(err) {\n if (duplex.destroyed) return;\n\n // Prevent `ws.terminate()` from being called by `duplex._destroy()`.\n //\n // - If the `'error'` event is emitted before the `'open'` event, then\n // `ws.terminate()` is a noop as no socket is assigned.\n // - Otherwise, the error is re-emitted by the listener of the `'error'`\n // event of the `Receiver` object. The listener already closes the\n // connection by calling `ws.close()`. This allows a close frame to be\n // sent to the other peer. If `ws.terminate()` is called right after this,\n // then the close frame might not be sent.\n terminateOnDestroy = false;\n duplex.destroy(err);\n });\n\n ws.once('close', function close() {\n if (duplex.destroyed) return;\n\n duplex.push(null);\n });\n\n duplex._destroy = function (err, callback) {\n if (ws.readyState === ws.CLOSED) {\n callback(err);\n process.nextTick(emitClose, duplex);\n return;\n }\n\n let called = false;\n\n ws.once('error', function error(err) {\n called = true;\n callback(err);\n });\n\n ws.once('close', function close() {\n if (!called) callback(err);\n process.nextTick(emitClose, duplex);\n });\n\n if (terminateOnDestroy) ws.terminate();\n };\n\n duplex._final = function (callback) {\n if (ws.readyState === ws.CONNECTING) {\n ws.once('open', function open() {\n duplex._final(callback);\n });\n return;\n }\n\n // If the value of the `_socket` property is `null` it means that `ws` is a\n // client websocket and the handshake failed. In fact, when this happens, a\n // socket is never assigned to the websocket. Wait for the `'error'` event\n // that will be emitted by the websocket.\n if (ws._socket === null) return;\n\n if (ws._socket._writableState.finished) {\n callback();\n if (duplex._readableState.endEmitted) duplex.destroy();\n } else {\n ws._socket.once('finish', function finish() {\n // `duplex` is not destroyed here because the `'end'` event will be\n // emitted on `duplex` after this `'finish'` event. The EOF signaling\n // `null` chunk is, in fact, pushed when the websocket emits `'close'`.\n callback();\n });\n ws.close();\n }\n };\n\n duplex._read = function () {\n if (ws.isPaused) ws.resume();\n };\n\n duplex._write = function (chunk, encoding, callback) {\n if (ws.readyState === ws.CONNECTING) {\n ws.once('open', function open() {\n duplex._write(chunk, encoding, callback);\n });\n return;\n }\n\n ws.send(chunk, callback);\n };\n\n duplex.on('end', duplexOnEnd);\n duplex.on('error', duplexOnError);\n return duplex;\n}\n\nmodule.exports = createWebSocketStream;\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAGkB,oBAAA;CAClB,IAAM,EAAE,WAAW,QAAQ,QAAQ;;;;;;;CAQnC,SAAS,UAAU,QAAQ;EACzB,OAAO,KAAK,OAAO;CACrB;;;;;;CAOA,SAAS,cAAc;EACrB,IAAI,CAAC,KAAK,aAAa,KAAK,eAAe,UACzC,KAAK,QAAQ;CAEjB;;;;;;;CAQA,SAAS,cAAc,KAAK;EAC1B,KAAK,eAAe,SAAS,aAAa;EAC1C,KAAK,QAAQ;EACb,IAAI,KAAK,cAAc,OAAO,MAAM,GAElC,KAAK,KAAK,SAAS,GAAG;CAE1B;;;;;;;;;CAUA,SAAS,sBAAsB,IAAI,SAAS;EAC1C,IAAI,qBAAqB;EAEzB,MAAM,SAAS,IAAI,OAAO;GACxB,GAAG;GACH,aAAa;GACb,WAAW;GACX,YAAY;GACZ,oBAAoB;EACtB,CAAC;EAED,GAAG,GAAG,WAAW,SAAS,QAAQ,KAAK,UAAU;GAC/C,MAAM,OACJ,CAAC,YAAY,OAAO,eAAe,aAAa,IAAI,SAAS,IAAI;GAEnE,IAAI,CAAC,OAAO,KAAK,IAAI,GAAG,GAAG,MAAM;EACnC,CAAC;EAED,GAAG,KAAK,SAAS,SAAS,MAAM,KAAK;GACnC,IAAI,OAAO,WAAW;GAWtB,qBAAqB;GACrB,OAAO,QAAQ,GAAG;EACpB,CAAC;EAED,GAAG,KAAK,SAAS,SAAS,QAAQ;GAChC,IAAI,OAAO,WAAW;GAEtB,OAAO,KAAK,IAAI;EAClB,CAAC;EAED,OAAO,WAAW,SAAU,KAAK,UAAU;GACzC,IAAI,GAAG,eAAe,GAAG,QAAQ;IAC/B,SAAS,GAAG;IACZ,QAAQ,SAAS,WAAW,MAAM;IAClC;GACF;GAEA,IAAI,SAAS;GAEb,GAAG,KAAK,SAAS,SAAS,MAAM,KAAK;IACnC,SAAS;IACT,SAAS,GAAG;GACd,CAAC;GAED,GAAG,KAAK,SAAS,SAAS,QAAQ;IAChC,IAAI,CAAC,QAAQ,SAAS,GAAG;IACzB,QAAQ,SAAS,WAAW,MAAM;GACpC,CAAC;GAED,IAAI,oBAAoB,GAAG,UAAU;EACvC;EAEA,OAAO,SAAS,SAAU,UAAU;GAClC,IAAI,GAAG,eAAe,GAAG,YAAY;IACnC,GAAG,KAAK,QAAQ,SAAS,OAAO;KAC9B,OAAO,OAAO,QAAQ;IACxB,CAAC;IACD;GACF;GAMA,IAAI,GAAG,YAAY,MAAM;GAEzB,IAAI,GAAG,QAAQ,eAAe,UAAU;IACtC,SAAS;IACT,IAAI,OAAO,eAAe,YAAY,OAAO,QAAQ;GACvD,OAAO;IACL,GAAG,QAAQ,KAAK,UAAU,SAAS,SAAS;KAI1C,SAAS;IACX,CAAC;IACD,GAAG,MAAM;GACX;EACF;EAEA,OAAO,QAAQ,WAAY;GACzB,IAAI,GAAG,UAAU,GAAG,OAAO;EAC7B;EAEA,OAAO,SAAS,SAAU,OAAO,UAAU,UAAU;GACnD,IAAI,GAAG,eAAe,GAAG,YAAY;IACnC,GAAG,KAAK,QAAQ,SAAS,OAAO;KAC9B,OAAO,OAAO,OAAO,UAAU,QAAQ;IACzC,CAAC;IACD;GACF;GAEA,GAAG,KAAK,OAAO,QAAQ;EACzB;EAEA,OAAO,GAAG,OAAO,WAAW;EAC5B,OAAO,GAAG,SAAS,aAAa;EAChC,OAAO;CACT;CAEA,OAAO,UAAU"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
3
+ const require_validation$1 = require("./validation.js");
4
+ //#region node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js
5
+ var require_subprotocol = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, module) => {
6
+ var { tokenChars } = require_validation$1.default;
7
+ /**
8
+ * Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names.
9
+ *
10
+ * @param {String} header The field value of the header
11
+ * @return {Set} The subprotocol names
12
+ * @public
13
+ */
14
+ function parse(header) {
15
+ const protocols = /* @__PURE__ */ new Set();
16
+ let start = -1;
17
+ let end = -1;
18
+ let i = 0;
19
+ for (; i < header.length; i++) {
20
+ const code = header.charCodeAt(i);
21
+ if (end === -1 && tokenChars[code] === 1) {
22
+ if (start === -1) start = i;
23
+ } else if (i !== 0 && (code === 32 || code === 9)) {
24
+ if (end === -1 && start !== -1) end = i;
25
+ } else if (code === 44) {
26
+ if (start === -1) throw new SyntaxError(`Unexpected character at index ${i}`);
27
+ if (end === -1) end = i;
28
+ const protocol = header.slice(start, end);
29
+ if (protocols.has(protocol)) throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`);
30
+ protocols.add(protocol);
31
+ start = end = -1;
32
+ } else throw new SyntaxError(`Unexpected character at index ${i}`);
33
+ }
34
+ if (start === -1 || end !== -1) throw new SyntaxError("Unexpected end of input");
35
+ const protocol = header.slice(start, i);
36
+ if (protocols.has(protocol)) throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`);
37
+ protocols.add(protocol);
38
+ return protocols;
39
+ }
40
+ module.exports = { parse };
41
+ }));
42
+ //#endregion
43
+ Object.defineProperty(exports, "default", {
44
+ enumerable: true,
45
+ get: function() {
46
+ return require_subprotocol();
47
+ }
48
+ });
49
+
50
+ //# sourceMappingURL=subprotocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subprotocol.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js"],"sourcesContent":["'use strict';\n\nconst { tokenChars } = require('./validation');\n\n/**\n * Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names.\n *\n * @param {String} header The field value of the header\n * @return {Set} The subprotocol names\n * @public\n */\nfunction parse(header) {\n const protocols = new Set();\n let start = -1;\n let end = -1;\n let i = 0;\n\n for (i; i < header.length; i++) {\n const code = header.charCodeAt(i);\n\n if (end === -1 && tokenChars[code] === 1) {\n if (start === -1) start = i;\n } else if (\n i !== 0 &&\n (code === 0x20 /* ' ' */ || code === 0x09) /* '\\t' */\n ) {\n if (end === -1 && start !== -1) end = i;\n } else if (code === 0x2c /* ',' */) {\n if (start === -1) {\n throw new SyntaxError(`Unexpected character at index ${i}`);\n }\n\n if (end === -1) end = i;\n\n const protocol = header.slice(start, end);\n\n if (protocols.has(protocol)) {\n throw new SyntaxError(`The \"${protocol}\" subprotocol is duplicated`);\n }\n\n protocols.add(protocol);\n start = end = -1;\n } else {\n throw new SyntaxError(`Unexpected character at index ${i}`);\n }\n }\n\n if (start === -1 || end !== -1) {\n throw new SyntaxError('Unexpected end of input');\n }\n\n const protocol = header.slice(start, i);\n\n if (protocols.has(protocol)) {\n throw new SyntaxError(`The \"${protocol}\" subprotocol is duplicated`);\n }\n\n protocols.add(protocol);\n return protocols;\n}\n\nmodule.exports = { parse };\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAEA,IAAM,EAAE,eAAA,qBAAA;;;;;;;;CASR,SAAS,MAAM,QAAQ;EACrB,MAAM,4BAAY,IAAI,IAAI;EAC1B,IAAI,QAAQ;EACZ,IAAI,MAAM;EACV,IAAI,IAAI;EAER,OAAQ,IAAI,OAAO,QAAQ,KAAK;GAC9B,MAAM,OAAO,OAAO,WAAW,CAAC;GAEhC,IAAI,QAAQ,MAAM,WAAW,UAAU;QACjC,UAAU,IAAI,QAAQ;GAAA,OACrB,IACL,MAAM,MACL,SAAS,MAAkB,SAAS;QAEjC,QAAQ,MAAM,UAAU,IAAI,MAAM;GAAA,OACjC,IAAI,SAAS,IAAgB;IAClC,IAAI,UAAU,IACZ,MAAM,IAAI,YAAY,iCAAiC,GAAG;IAG5D,IAAI,QAAQ,IAAI,MAAM;IAEtB,MAAM,WAAW,OAAO,MAAM,OAAO,GAAG;IAExC,IAAI,UAAU,IAAI,QAAQ,GACxB,MAAM,IAAI,YAAY,QAAQ,SAAS,4BAA4B;IAGrE,UAAU,IAAI,QAAQ;IACtB,QAAQ,MAAM;GAChB,OACE,MAAM,IAAI,YAAY,iCAAiC,GAAG;EAE9D;EAEA,IAAI,UAAU,MAAM,QAAQ,IAC1B,MAAM,IAAI,YAAY,yBAAyB;EAGjD,MAAM,WAAW,OAAO,MAAM,OAAO,CAAC;EAEtC,IAAI,UAAU,IAAI,QAAQ,GACxB,MAAM,IAAI,YAAY,QAAQ,SAAS,4BAA4B;EAGrE,UAAU,IAAI,QAAQ;EACtB,OAAO;CACT;CAEA,OAAO,UAAU,EAAE,MAAM"}
@@ -0,0 +1,201 @@
1
+ "use strict";
2
+ const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
3
+ const require_constants$1 = require("./constants.js");
4
+ //#region node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js
5
+ var require_validation = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, module) => {
6
+ var { isUtf8 } = require("buffer");
7
+ var { hasBlob } = require_constants$1.default;
8
+ var tokenChars = [
9
+ 0,
10
+ 0,
11
+ 0,
12
+ 0,
13
+ 0,
14
+ 0,
15
+ 0,
16
+ 0,
17
+ 0,
18
+ 0,
19
+ 0,
20
+ 0,
21
+ 0,
22
+ 0,
23
+ 0,
24
+ 0,
25
+ 0,
26
+ 0,
27
+ 0,
28
+ 0,
29
+ 0,
30
+ 0,
31
+ 0,
32
+ 0,
33
+ 0,
34
+ 0,
35
+ 0,
36
+ 0,
37
+ 0,
38
+ 0,
39
+ 0,
40
+ 0,
41
+ 0,
42
+ 1,
43
+ 0,
44
+ 1,
45
+ 1,
46
+ 1,
47
+ 1,
48
+ 1,
49
+ 0,
50
+ 0,
51
+ 1,
52
+ 1,
53
+ 0,
54
+ 1,
55
+ 1,
56
+ 0,
57
+ 1,
58
+ 1,
59
+ 1,
60
+ 1,
61
+ 1,
62
+ 1,
63
+ 1,
64
+ 1,
65
+ 1,
66
+ 1,
67
+ 0,
68
+ 0,
69
+ 0,
70
+ 0,
71
+ 0,
72
+ 0,
73
+ 0,
74
+ 1,
75
+ 1,
76
+ 1,
77
+ 1,
78
+ 1,
79
+ 1,
80
+ 1,
81
+ 1,
82
+ 1,
83
+ 1,
84
+ 1,
85
+ 1,
86
+ 1,
87
+ 1,
88
+ 1,
89
+ 1,
90
+ 1,
91
+ 1,
92
+ 1,
93
+ 1,
94
+ 1,
95
+ 1,
96
+ 1,
97
+ 1,
98
+ 1,
99
+ 1,
100
+ 0,
101
+ 0,
102
+ 0,
103
+ 1,
104
+ 1,
105
+ 1,
106
+ 1,
107
+ 1,
108
+ 1,
109
+ 1,
110
+ 1,
111
+ 1,
112
+ 1,
113
+ 1,
114
+ 1,
115
+ 1,
116
+ 1,
117
+ 1,
118
+ 1,
119
+ 1,
120
+ 1,
121
+ 1,
122
+ 1,
123
+ 1,
124
+ 1,
125
+ 1,
126
+ 1,
127
+ 1,
128
+ 1,
129
+ 1,
130
+ 1,
131
+ 1,
132
+ 0,
133
+ 1,
134
+ 0,
135
+ 1,
136
+ 0
137
+ ];
138
+ /**
139
+ * Checks if a status code is allowed in a close frame.
140
+ *
141
+ * @param {Number} code The status code
142
+ * @return {Boolean} `true` if the status code is valid, else `false`
143
+ * @public
144
+ */
145
+ function isValidStatusCode(code) {
146
+ return code >= 1e3 && code <= 1014 && code !== 1004 && code !== 1005 && code !== 1006 || code >= 3e3 && code <= 4999;
147
+ }
148
+ /**
149
+ * Checks if a given buffer contains only correct UTF-8.
150
+ * Ported from https://www.cl.cam.ac.uk/%7Emgk25/ucs/utf8_check.c by
151
+ * Markus Kuhn.
152
+ *
153
+ * @param {Buffer} buf The buffer to check
154
+ * @return {Boolean} `true` if `buf` contains only correct UTF-8, else `false`
155
+ * @public
156
+ */
157
+ function _isValidUTF8(buf) {
158
+ const len = buf.length;
159
+ let i = 0;
160
+ while (i < len) if ((buf[i] & 128) === 0) i++;
161
+ else if ((buf[i] & 224) === 192) {
162
+ if (i + 1 === len || (buf[i + 1] & 192) !== 128 || (buf[i] & 254) === 192) return false;
163
+ i += 2;
164
+ } else if ((buf[i] & 240) === 224) {
165
+ if (i + 2 >= len || (buf[i + 1] & 192) !== 128 || (buf[i + 2] & 192) !== 128 || buf[i] === 224 && (buf[i + 1] & 224) === 128 || buf[i] === 237 && (buf[i + 1] & 224) === 160) return false;
166
+ i += 3;
167
+ } else if ((buf[i] & 248) === 240) {
168
+ if (i + 3 >= len || (buf[i + 1] & 192) !== 128 || (buf[i + 2] & 192) !== 128 || (buf[i + 3] & 192) !== 128 || buf[i] === 240 && (buf[i + 1] & 240) === 128 || buf[i] === 244 && buf[i + 1] > 143 || buf[i] > 244) return false;
169
+ i += 4;
170
+ } else return false;
171
+ return true;
172
+ }
173
+ /**
174
+ * Determines whether a value is a `Blob`.
175
+ *
176
+ * @param {*} value The value to be tested
177
+ * @return {Boolean} `true` if `value` is a `Blob`, else `false`
178
+ * @private
179
+ */
180
+ function isBlob(value) {
181
+ return hasBlob && typeof value === "object" && typeof value.arrayBuffer === "function" && typeof value.type === "string" && typeof value.stream === "function" && (value[Symbol.toStringTag] === "Blob" || value[Symbol.toStringTag] === "File");
182
+ }
183
+ module.exports = {
184
+ isBlob,
185
+ isValidStatusCode,
186
+ isValidUTF8: _isValidUTF8,
187
+ tokenChars
188
+ };
189
+ if (isUtf8) module.exports.isValidUTF8 = function(buf) {
190
+ return buf.length < 24 ? _isValidUTF8(buf) : isUtf8(buf);
191
+ };
192
+ }));
193
+ //#endregion
194
+ Object.defineProperty(exports, "default", {
195
+ enumerable: true,
196
+ get: function() {
197
+ return require_validation();
198
+ }
199
+ });
200
+
201
+ //# sourceMappingURL=validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js"],"sourcesContent":["'use strict';\n\nconst { isUtf8 } = require('buffer');\n\nconst { hasBlob } = require('./constants');\n\n//\n// Allowed token characters:\n//\n// '!', '#', '$', '%', '&', ''', '*', '+', '-',\n// '.', 0-9, A-Z, '^', '_', '`', a-z, '|', '~'\n//\n// tokenChars[32] === 0 // ' '\n// tokenChars[33] === 1 // '!'\n// tokenChars[34] === 0 // '\"'\n// ...\n//\n// prettier-ignore\nconst tokenChars = [\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 15\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 16 - 31\n 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, // 32 - 47\n 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, // 48 - 63\n 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // 64 - 79\n 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, // 80 - 95\n 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // 96 - 111\n 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0 // 112 - 127\n];\n\n/**\n * Checks if a status code is allowed in a close frame.\n *\n * @param {Number} code The status code\n * @return {Boolean} `true` if the status code is valid, else `false`\n * @public\n */\nfunction isValidStatusCode(code) {\n return (\n (code >= 1000 &&\n code <= 1014 &&\n code !== 1004 &&\n code !== 1005 &&\n code !== 1006) ||\n (code >= 3000 && code <= 4999)\n );\n}\n\n/**\n * Checks if a given buffer contains only correct UTF-8.\n * Ported from https://www.cl.cam.ac.uk/%7Emgk25/ucs/utf8_check.c by\n * Markus Kuhn.\n *\n * @param {Buffer} buf The buffer to check\n * @return {Boolean} `true` if `buf` contains only correct UTF-8, else `false`\n * @public\n */\nfunction _isValidUTF8(buf) {\n const len = buf.length;\n let i = 0;\n\n while (i < len) {\n if ((buf[i] & 0x80) === 0) {\n // 0xxxxxxx\n i++;\n } else if ((buf[i] & 0xe0) === 0xc0) {\n // 110xxxxx 10xxxxxx\n if (\n i + 1 === len ||\n (buf[i + 1] & 0xc0) !== 0x80 ||\n (buf[i] & 0xfe) === 0xc0 // Overlong\n ) {\n return false;\n }\n\n i += 2;\n } else if ((buf[i] & 0xf0) === 0xe0) {\n // 1110xxxx 10xxxxxx 10xxxxxx\n if (\n i + 2 >= len ||\n (buf[i + 1] & 0xc0) !== 0x80 ||\n (buf[i + 2] & 0xc0) !== 0x80 ||\n (buf[i] === 0xe0 && (buf[i + 1] & 0xe0) === 0x80) || // Overlong\n (buf[i] === 0xed && (buf[i + 1] & 0xe0) === 0xa0) // Surrogate (U+D800 - U+DFFF)\n ) {\n return false;\n }\n\n i += 3;\n } else if ((buf[i] & 0xf8) === 0xf0) {\n // 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx\n if (\n i + 3 >= len ||\n (buf[i + 1] & 0xc0) !== 0x80 ||\n (buf[i + 2] & 0xc0) !== 0x80 ||\n (buf[i + 3] & 0xc0) !== 0x80 ||\n (buf[i] === 0xf0 && (buf[i + 1] & 0xf0) === 0x80) || // Overlong\n (buf[i] === 0xf4 && buf[i + 1] > 0x8f) ||\n buf[i] > 0xf4 // > U+10FFFF\n ) {\n return false;\n }\n\n i += 4;\n } else {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Determines whether a value is a `Blob`.\n *\n * @param {*} value The value to be tested\n * @return {Boolean} `true` if `value` is a `Blob`, else `false`\n * @private\n */\nfunction isBlob(value) {\n return (\n hasBlob &&\n typeof value === 'object' &&\n typeof value.arrayBuffer === 'function' &&\n typeof value.type === 'string' &&\n typeof value.stream === 'function' &&\n (value[Symbol.toStringTag] === 'Blob' ||\n value[Symbol.toStringTag] === 'File')\n );\n}\n\nmodule.exports = {\n isBlob,\n isValidStatusCode,\n isValidUTF8: _isValidUTF8,\n tokenChars\n};\n\nif (isUtf8) {\n module.exports.isValidUTF8 = function (buf) {\n return buf.length < 24 ? _isValidUTF8(buf) : isUtf8(buf);\n };\n} /* istanbul ignore else */ else if (!process.env.WS_NO_UTF_8_VALIDATE) {\n try {\n const isValidUTF8 = require('utf-8-validate');\n\n module.exports.isValidUTF8 = function (buf) {\n return buf.length < 32 ? _isValidUTF8(buf) : isValidUTF8(buf);\n };\n } catch (e) {\n // Continue regardless of the error.\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAEA,IAAM,EAAE,WAAW,QAAQ,QAAQ;CAEnC,IAAM,EAAE,YAAA,oBAAA;CAcR,IAAM,aAAa;EACjB;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAC7C;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAC7C;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAC7C;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAC7C;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAC7C;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAC7C;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAC7C;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;EAAG;CAC/C;;;;;;;;CASA,SAAS,kBAAkB,MAAM;EAC/B,OACG,QAAQ,OACP,QAAQ,QACR,SAAS,QACT,SAAS,QACT,SAAS,QACV,QAAQ,OAAQ,QAAQ;CAE7B;;;;;;;;;;CAWA,SAAS,aAAa,KAAK;EACzB,MAAM,MAAM,IAAI;EAChB,IAAI,IAAI;EAER,OAAO,IAAI,KACT,KAAK,IAAI,KAAK,SAAU,GAEtB;OACK,KAAK,IAAI,KAAK,SAAU,KAAM;GAEnC,IACE,IAAI,MAAM,QACT,IAAI,IAAI,KAAK,SAAU,QACvB,IAAI,KAAK,SAAU,KAEpB,OAAO;GAGT,KAAK;EACP,OAAO,KAAK,IAAI,KAAK,SAAU,KAAM;GAEnC,IACE,IAAI,KAAK,QACR,IAAI,IAAI,KAAK,SAAU,QACvB,IAAI,IAAI,KAAK,SAAU,OACvB,IAAI,OAAO,QAAS,IAAI,IAAI,KAAK,SAAU,OAC3C,IAAI,OAAO,QAAS,IAAI,IAAI,KAAK,SAAU,KAE5C,OAAO;GAGT,KAAK;EACP,OAAO,KAAK,IAAI,KAAK,SAAU,KAAM;GAEnC,IACE,IAAI,KAAK,QACR,IAAI,IAAI,KAAK,SAAU,QACvB,IAAI,IAAI,KAAK,SAAU,QACvB,IAAI,IAAI,KAAK,SAAU,OACvB,IAAI,OAAO,QAAS,IAAI,IAAI,KAAK,SAAU,OAC3C,IAAI,OAAO,OAAQ,IAAI,IAAI,KAAK,OACjC,IAAI,KAAK,KAET,OAAO;GAGT,KAAK;EACP,OACE,OAAO;EAIX,OAAO;CACT;;;;;;;;CASA,SAAS,OAAO,OAAO;EACrB,OACE,WACA,OAAO,UAAU,YACjB,OAAO,MAAM,gBAAgB,cAC7B,OAAO,MAAM,SAAS,YACtB,OAAO,MAAM,WAAW,eACvB,MAAM,OAAO,iBAAiB,UAC7B,MAAM,OAAO,iBAAiB;CAEpC;CAEA,OAAO,UAAU;EACf;EACA;EACA,aAAa;EACb;CACF;CAEA,IAAI,QACF,OAAO,QAAQ,cAAc,SAAU,KAAK;EAC1C,OAAO,IAAI,SAAS,KAAK,aAAa,GAAG,IAAI,OAAO,GAAG;CACzD"}
@@ -0,0 +1,401 @@
1
+ "use strict";
2
+ const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
3
+ const require_constants$1 = require("./constants.js");
4
+ const require_permessage_deflate$1 = require("./permessage-deflate.js");
5
+ const require_extension$1 = require("./extension.js");
6
+ const require_websocket$1 = require("./websocket.js");
7
+ const require_subprotocol$1 = require("./subprotocol.js");
8
+ //#region node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js
9
+ var require_websocket_server = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, module) => {
10
+ var EventEmitter = require("events");
11
+ var http = require("http");
12
+ var { Duplex } = require("stream");
13
+ var { createHash } = require("crypto");
14
+ var extension = require_extension$1.default;
15
+ var PerMessageDeflate = require_permessage_deflate$1.default;
16
+ var subprotocol = require_subprotocol$1.default;
17
+ var WebSocket = require_websocket$1.default;
18
+ var { CLOSE_TIMEOUT, GUID, kWebSocket } = require_constants$1.default;
19
+ var keyRegex = /^[+/0-9A-Za-z]{22}==$/;
20
+ var RUNNING = 0;
21
+ var CLOSING = 1;
22
+ var CLOSED = 2;
23
+ /**
24
+ * Class representing a WebSocket server.
25
+ *
26
+ * @extends EventEmitter
27
+ */
28
+ var WebSocketServer = class extends EventEmitter {
29
+ /**
30
+ * Create a `WebSocketServer` instance.
31
+ *
32
+ * @param {Object} options Configuration options
33
+ * @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether
34
+ * any of the `'message'`, `'ping'`, and `'pong'` events can be emitted
35
+ * multiple times in the same tick
36
+ * @param {Boolean} [options.autoPong=true] Specifies whether or not to
37
+ * automatically send a pong in response to a ping
38
+ * @param {Number} [options.backlog=511] The maximum length of the queue of
39
+ * pending connections
40
+ * @param {Boolean} [options.clientTracking=true] Specifies whether or not to
41
+ * track clients
42
+ * @param {Number} [options.closeTimeout=30000] Duration in milliseconds to
43
+ * wait for the closing handshake to finish after `websocket.close()` is
44
+ * called
45
+ * @param {Function} [options.handleProtocols] A hook to handle protocols
46
+ * @param {String} [options.host] The hostname where to bind the server
47
+ * @param {Number} [options.maxBufferedChunks=1048576] The maximum number of
48
+ * buffered data chunks
49
+ * @param {Number} [options.maxFragments=131072] The maximum number of message
50
+ * fragments
51
+ * @param {Number} [options.maxPayload=104857600] The maximum allowed message
52
+ * size
53
+ * @param {Boolean} [options.noServer=false] Enable no server mode
54
+ * @param {String} [options.path] Accept only connections matching this path
55
+ * @param {(Boolean|Object)} [options.perMessageDeflate=false] Enable/disable
56
+ * permessage-deflate
57
+ * @param {Number} [options.port] The port where to bind the server
58
+ * @param {(http.Server|https.Server)} [options.server] A pre-created HTTP/S
59
+ * server to use
60
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
61
+ * not to skip UTF-8 validation for text and close messages
62
+ * @param {Function} [options.verifyClient] A hook to reject connections
63
+ * @param {Function} [options.WebSocket=WebSocket] Specifies the `WebSocket`
64
+ * class to use. It must be the `WebSocket` class or class that extends it
65
+ * @param {Function} [callback] A listener for the `listening` event
66
+ */
67
+ constructor(options, callback) {
68
+ super();
69
+ options = {
70
+ allowSynchronousEvents: true,
71
+ autoPong: true,
72
+ maxBufferedChunks: 1024 * 1024,
73
+ maxFragments: 128 * 1024,
74
+ maxPayload: 100 * 1024 * 1024,
75
+ skipUTF8Validation: false,
76
+ perMessageDeflate: false,
77
+ handleProtocols: null,
78
+ clientTracking: true,
79
+ closeTimeout: CLOSE_TIMEOUT,
80
+ verifyClient: null,
81
+ noServer: false,
82
+ backlog: null,
83
+ server: null,
84
+ host: null,
85
+ path: null,
86
+ port: null,
87
+ WebSocket,
88
+ ...options
89
+ };
90
+ if (options.port == null && !options.server && !options.noServer || options.port != null && (options.server || options.noServer) || options.server && options.noServer) throw new TypeError("One and only one of the \"port\", \"server\", or \"noServer\" options must be specified");
91
+ if (options.port != null) {
92
+ this._server = http.createServer((req, res) => {
93
+ const body = http.STATUS_CODES[426];
94
+ res.writeHead(426, {
95
+ "Content-Length": body.length,
96
+ "Content-Type": "text/plain"
97
+ });
98
+ res.end(body);
99
+ });
100
+ this._server.listen(options.port, options.host, options.backlog, callback);
101
+ } else if (options.server) this._server = options.server;
102
+ if (this._server) {
103
+ const emitConnection = this.emit.bind(this, "connection");
104
+ this._removeListeners = addListeners(this._server, {
105
+ listening: this.emit.bind(this, "listening"),
106
+ error: this.emit.bind(this, "error"),
107
+ upgrade: (req, socket, head) => {
108
+ this.handleUpgrade(req, socket, head, emitConnection);
109
+ }
110
+ });
111
+ }
112
+ if (options.perMessageDeflate === true) options.perMessageDeflate = {};
113
+ if (options.clientTracking) {
114
+ this.clients = /* @__PURE__ */ new Set();
115
+ this._shouldEmitClose = false;
116
+ }
117
+ this.options = options;
118
+ this._state = RUNNING;
119
+ }
120
+ /**
121
+ * Returns the bound address, the address family name, and port of the server
122
+ * as reported by the operating system if listening on an IP socket.
123
+ * If the server is listening on a pipe or UNIX domain socket, the name is
124
+ * returned as a string.
125
+ *
126
+ * @return {(Object|String|null)} The address of the server
127
+ * @public
128
+ */
129
+ address() {
130
+ if (this.options.noServer) throw new Error("The server is operating in \"noServer\" mode");
131
+ if (!this._server) return null;
132
+ return this._server.address();
133
+ }
134
+ /**
135
+ * Stop the server from accepting new connections and emit the `'close'` event
136
+ * when all existing connections are closed.
137
+ *
138
+ * @param {Function} [cb] A one-time listener for the `'close'` event
139
+ * @public
140
+ */
141
+ close(cb) {
142
+ if (this._state === CLOSED) {
143
+ if (cb) this.once("close", () => {
144
+ cb(/* @__PURE__ */ new Error("The server is not running"));
145
+ });
146
+ process.nextTick(emitClose, this);
147
+ return;
148
+ }
149
+ if (cb) this.once("close", cb);
150
+ if (this._state === CLOSING) return;
151
+ this._state = CLOSING;
152
+ if (this.options.noServer || this.options.server) {
153
+ if (this._server) {
154
+ this._removeListeners();
155
+ this._removeListeners = this._server = null;
156
+ }
157
+ if (this.clients) if (!this.clients.size) process.nextTick(emitClose, this);
158
+ else this._shouldEmitClose = true;
159
+ else process.nextTick(emitClose, this);
160
+ } else {
161
+ const server = this._server;
162
+ this._removeListeners();
163
+ this._removeListeners = this._server = null;
164
+ server.close(() => {
165
+ emitClose(this);
166
+ });
167
+ }
168
+ }
169
+ /**
170
+ * See if a given request should be handled by this server instance.
171
+ *
172
+ * @param {http.IncomingMessage} req Request object to inspect
173
+ * @return {Boolean} `true` if the request is valid, else `false`
174
+ * @public
175
+ */
176
+ shouldHandle(req) {
177
+ if (this.options.path) {
178
+ const index = req.url.indexOf("?");
179
+ if ((index !== -1 ? req.url.slice(0, index) : req.url) !== this.options.path) return false;
180
+ }
181
+ return true;
182
+ }
183
+ /**
184
+ * Handle a HTTP Upgrade request.
185
+ *
186
+ * @param {http.IncomingMessage} req The request object
187
+ * @param {Duplex} socket The network socket between the server and client
188
+ * @param {Buffer} head The first packet of the upgraded stream
189
+ * @param {Function} cb Callback
190
+ * @public
191
+ */
192
+ handleUpgrade(req, socket, head, cb) {
193
+ socket.on("error", socketOnError);
194
+ const key = req.headers["sec-websocket-key"];
195
+ const upgrade = req.headers.upgrade;
196
+ const version = +req.headers["sec-websocket-version"];
197
+ if (req.method !== "GET") {
198
+ abortHandshakeOrEmitwsClientError(this, req, socket, 405, "Invalid HTTP method");
199
+ return;
200
+ }
201
+ if (upgrade === void 0 || upgrade.toLowerCase() !== "websocket") {
202
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Invalid Upgrade header");
203
+ return;
204
+ }
205
+ if (key === void 0 || !keyRegex.test(key)) {
206
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Missing or invalid Sec-WebSocket-Key header");
207
+ return;
208
+ }
209
+ if (version !== 13 && version !== 8) {
210
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Missing or invalid Sec-WebSocket-Version header", { "Sec-WebSocket-Version": "13, 8" });
211
+ return;
212
+ }
213
+ if (!this.shouldHandle(req)) {
214
+ abortHandshake(socket, 400);
215
+ return;
216
+ }
217
+ const secWebSocketProtocol = req.headers["sec-websocket-protocol"];
218
+ let protocols = /* @__PURE__ */ new Set();
219
+ if (secWebSocketProtocol !== void 0) try {
220
+ protocols = subprotocol.parse(secWebSocketProtocol);
221
+ } catch (err) {
222
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Invalid Sec-WebSocket-Protocol header");
223
+ return;
224
+ }
225
+ const secWebSocketExtensions = req.headers["sec-websocket-extensions"];
226
+ const extensions = {};
227
+ if (this.options.perMessageDeflate && secWebSocketExtensions !== void 0) {
228
+ const perMessageDeflate = new PerMessageDeflate({
229
+ ...this.options.perMessageDeflate,
230
+ isServer: true,
231
+ maxPayload: this.options.maxPayload
232
+ });
233
+ try {
234
+ const offers = extension.parse(secWebSocketExtensions);
235
+ if (offers[PerMessageDeflate.extensionName]) {
236
+ perMessageDeflate.accept(offers[PerMessageDeflate.extensionName]);
237
+ extensions[PerMessageDeflate.extensionName] = perMessageDeflate;
238
+ }
239
+ } catch (err) {
240
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Invalid or unacceptable Sec-WebSocket-Extensions header");
241
+ return;
242
+ }
243
+ }
244
+ if (this.options.verifyClient) {
245
+ const info = {
246
+ origin: req.headers[`${version === 8 ? "sec-websocket-origin" : "origin"}`],
247
+ secure: !!(req.socket.authorized || req.socket.encrypted),
248
+ req
249
+ };
250
+ if (this.options.verifyClient.length === 2) {
251
+ this.options.verifyClient(info, (verified, code, message, headers) => {
252
+ if (!verified) return abortHandshake(socket, code || 401, message, headers);
253
+ this.completeUpgrade(extensions, key, protocols, req, socket, head, cb);
254
+ });
255
+ return;
256
+ }
257
+ if (!this.options.verifyClient(info)) return abortHandshake(socket, 401);
258
+ }
259
+ this.completeUpgrade(extensions, key, protocols, req, socket, head, cb);
260
+ }
261
+ /**
262
+ * Upgrade the connection to WebSocket.
263
+ *
264
+ * @param {Object} extensions The accepted extensions
265
+ * @param {String} key The value of the `Sec-WebSocket-Key` header
266
+ * @param {Set} protocols The subprotocols
267
+ * @param {http.IncomingMessage} req The request object
268
+ * @param {Duplex} socket The network socket between the server and client
269
+ * @param {Buffer} head The first packet of the upgraded stream
270
+ * @param {Function} cb Callback
271
+ * @throws {Error} If called more than once with the same socket
272
+ * @private
273
+ */
274
+ completeUpgrade(extensions, key, protocols, req, socket, head, cb) {
275
+ if (!socket.readable || !socket.writable) return socket.destroy();
276
+ if (socket[kWebSocket]) throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");
277
+ if (this._state > RUNNING) return abortHandshake(socket, 503);
278
+ const headers = [
279
+ "HTTP/1.1 101 Switching Protocols",
280
+ "Upgrade: websocket",
281
+ "Connection: Upgrade",
282
+ `Sec-WebSocket-Accept: ${createHash("sha1").update(key + GUID).digest("base64")}`
283
+ ];
284
+ const ws = new this.options.WebSocket(null, void 0, this.options);
285
+ if (protocols.size) {
286
+ const protocol = this.options.handleProtocols ? this.options.handleProtocols(protocols, req) : protocols.values().next().value;
287
+ if (protocol) {
288
+ headers.push(`Sec-WebSocket-Protocol: ${protocol}`);
289
+ ws._protocol = protocol;
290
+ }
291
+ }
292
+ if (extensions[PerMessageDeflate.extensionName]) {
293
+ const params = extensions[PerMessageDeflate.extensionName].params;
294
+ const value = extension.format({ [PerMessageDeflate.extensionName]: [params] });
295
+ headers.push(`Sec-WebSocket-Extensions: ${value}`);
296
+ ws._extensions = extensions;
297
+ }
298
+ this.emit("headers", headers, req);
299
+ socket.write(headers.concat("\r\n").join("\r\n"));
300
+ socket.removeListener("error", socketOnError);
301
+ ws.setSocket(socket, head, {
302
+ allowSynchronousEvents: this.options.allowSynchronousEvents,
303
+ maxBufferedChunks: this.options.maxBufferedChunks,
304
+ maxFragments: this.options.maxFragments,
305
+ maxPayload: this.options.maxPayload,
306
+ skipUTF8Validation: this.options.skipUTF8Validation
307
+ });
308
+ if (this.clients) {
309
+ this.clients.add(ws);
310
+ ws.on("close", () => {
311
+ this.clients.delete(ws);
312
+ if (this._shouldEmitClose && !this.clients.size) process.nextTick(emitClose, this);
313
+ });
314
+ }
315
+ cb(ws, req);
316
+ }
317
+ };
318
+ module.exports = WebSocketServer;
319
+ /**
320
+ * Add event listeners on an `EventEmitter` using a map of <event, listener>
321
+ * pairs.
322
+ *
323
+ * @param {EventEmitter} server The event emitter
324
+ * @param {Object.<String, Function>} map The listeners to add
325
+ * @return {Function} A function that will remove the added listeners when
326
+ * called
327
+ * @private
328
+ */
329
+ function addListeners(server, map) {
330
+ for (const event of Object.keys(map)) server.on(event, map[event]);
331
+ return function removeListeners() {
332
+ for (const event of Object.keys(map)) server.removeListener(event, map[event]);
333
+ };
334
+ }
335
+ /**
336
+ * Emit a `'close'` event on an `EventEmitter`.
337
+ *
338
+ * @param {EventEmitter} server The event emitter
339
+ * @private
340
+ */
341
+ function emitClose(server) {
342
+ server._state = CLOSED;
343
+ server.emit("close");
344
+ }
345
+ /**
346
+ * Handle socket errors.
347
+ *
348
+ * @private
349
+ */
350
+ function socketOnError() {
351
+ this.destroy();
352
+ }
353
+ /**
354
+ * Close the connection when preconditions are not fulfilled.
355
+ *
356
+ * @param {Duplex} socket The socket of the upgrade request
357
+ * @param {Number} code The HTTP response status code
358
+ * @param {String} [message] The HTTP response body
359
+ * @param {Object} [headers] Additional HTTP response headers
360
+ * @private
361
+ */
362
+ function abortHandshake(socket, code, message, headers) {
363
+ message = message || http.STATUS_CODES[code];
364
+ headers = {
365
+ Connection: "close",
366
+ "Content-Type": "text/html",
367
+ "Content-Length": Buffer.byteLength(message),
368
+ ...headers
369
+ };
370
+ socket.once("finish", socket.destroy);
371
+ socket.end(`HTTP/1.1 ${code} ${http.STATUS_CODES[code]}\r\n` + Object.keys(headers).map((h) => `${h}: ${headers[h]}`).join("\r\n") + "\r\n\r\n" + message);
372
+ }
373
+ /**
374
+ * Emit a `'wsClientError'` event on a `WebSocketServer` if there is at least
375
+ * one listener for it, otherwise call `abortHandshake()`.
376
+ *
377
+ * @param {WebSocketServer} server The WebSocket server
378
+ * @param {http.IncomingMessage} req The request object
379
+ * @param {Duplex} socket The socket of the upgrade request
380
+ * @param {Number} code The HTTP response status code
381
+ * @param {String} message The HTTP response body
382
+ * @param {Object} [headers] The HTTP response headers
383
+ * @private
384
+ */
385
+ function abortHandshakeOrEmitwsClientError(server, req, socket, code, message, headers) {
386
+ if (server.listenerCount("wsClientError")) {
387
+ const err = new Error(message);
388
+ Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
389
+ server.emit("wsClientError", err, socket, req);
390
+ } else abortHandshake(socket, code, message, headers);
391
+ }
392
+ }));
393
+ //#endregion
394
+ Object.defineProperty(exports, "default", {
395
+ enumerable: true,
396
+ get: function() {
397
+ return require_websocket_server();
398
+ }
399
+ });
400
+
401
+ //# sourceMappingURL=websocket-server.js.map