@64mb/freelens-power 1.6.1 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -35
- package/THIRD_PARTY_LICENSES +74 -0
- package/dist/ai-codex-api-CHt-EMIE.js +4403 -0
- package/dist/ai-codex-api-CHt-EMIE.js.map +1 -0
- package/dist/ai-codex-api.js +1 -0
- package/{out/main/dashboard-preload.js → dist/dashboard-preload.cjs} +6 -6
- package/dist/dashboard-preload.cjs.map +1 -0
- package/dist/main.js +14935 -0
- package/dist/main.js.map +1 -0
- package/dist/power-logs-D2eUB0f0.js +32 -0
- package/dist/power-logs-D2eUB0f0.js.map +1 -0
- package/{out/main → dist}/power-logs-child.js +13 -12
- package/dist/power-logs-child.js.map +1 -0
- package/dist/power-logs-database.js +384 -0
- package/dist/power-logs-database.js.map +1 -0
- package/{out/renderer/src/common/power-logs-limits.js → dist/power-logs-limits-CdzRcMHg.js} +7 -10
- package/{out/renderer/src/common/power-logs-limits.js.map → dist/power-logs-limits-CdzRcMHg.js.map} +1 -1
- package/dist/power-logs-query-child.js +22 -0
- package/dist/power-logs-query-child.js.map +1 -0
- package/{out/main → dist}/power-logs-query.js +17 -16
- package/dist/power-logs-query.js.map +1 -0
- package/dist/renderer.js +43781 -0
- package/dist/renderer.js.map +1 -0
- package/package.json +43 -31
- package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
- package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
- package/out/main/_virtual/_global-external_@freelensapp/extensions.js +0 -9
- package/out/main/_virtual/_global-external_mobx.js +0 -77
- package/out/main/ai-claude-policy.js +0 -141
- package/out/main/ai-claude-policy.js.map +0 -1
- package/out/main/ai-discovery.js +0 -61
- package/out/main/ai-discovery.js.map +0 -1
- package/out/main/ai-ipc.js +0 -144
- package/out/main/ai-ipc.js.map +0 -1
- package/out/main/ai-logs.js +0 -52
- package/out/main/ai-logs.js.map +0 -1
- package/out/main/ai-models.js +0 -82
- package/out/main/ai-models.js.map +0 -1
- package/out/main/ai-references.js +0 -20
- package/out/main/ai-references.js.map +0 -1
- package/out/main/ai-resources.js +0 -418
- package/out/main/ai-resources.js.map +0 -1
- package/out/main/ai.js +0 -527
- package/out/main/ai.js.map +0 -1
- package/out/main/cluster-icons-catalog.js +0 -28
- package/out/main/cluster-icons-catalog.js.map +0 -1
- package/out/main/cluster-icons.js +0 -125
- package/out/main/cluster-icons.js.map +0 -1
- package/out/main/common/ai-extras.js +0 -68
- package/out/main/common/ai-extras.js.map +0 -1
- package/out/main/common/ai-models.js +0 -6
- package/out/main/common/ai-models.js.map +0 -1
- package/out/main/common/ai-prompts.js +0 -16
- package/out/main/common/ai-prompts.js.map +0 -1
- package/out/main/common/ai-shortcuts.js +0 -69
- package/out/main/common/ai-shortcuts.js.map +0 -1
- package/out/main/common/ai-terminal-context.js +0 -51
- package/out/main/common/ai-terminal-context.js.map +0 -1
- package/out/main/common/ai.js +0 -12
- package/out/main/common/ai.js.map +0 -1
- package/out/main/common/cluster-icon-ipc.js +0 -6
- package/out/main/common/cluster-icon-ipc.js.map +0 -1
- package/out/main/common/cluster-icons.js +0 -121
- package/out/main/common/cluster-icons.js.map +0 -1
- package/out/main/common/dashboard-picker.js +0 -133
- package/out/main/common/dashboard-picker.js.map +0 -1
- package/out/main/common/dashboard-readiness.js +0 -58
- package/out/main/common/dashboard-readiness.js.map +0 -1
- package/out/main/common/dashboard-selector.js +0 -124
- package/out/main/common/dashboard-selector.js.map +0 -1
- package/out/main/common/dashboard-views.js +0 -12
- package/out/main/common/dashboard-views.js.map +0 -1
- package/out/main/common/dashboard.js +0 -39
- package/out/main/common/dashboard.js.map +0 -1
- package/out/main/common/extension-info.js +0 -8
- package/out/main/common/extension-info.js.map +0 -1
- package/out/main/common/monitoring-history.js +0 -52
- package/out/main/common/monitoring-history.js.map +0 -1
- package/out/main/common/power-logs-limits.js +0 -227
- package/out/main/common/power-logs-limits.js.map +0 -1
- package/out/main/common/power-logs.js +0 -32
- package/out/main/common/power-logs.js.map +0 -1
- package/out/main/common/resource-search.js +0 -61
- package/out/main/common/resource-search.js.map +0 -1
- package/out/main/common/settings-export.js +0 -83
- package/out/main/common/settings-export.js.map +0 -1
- package/out/main/common/store/ai-preferences-store.js +0 -101
- package/out/main/common/store/ai-preferences-store.js.map +0 -1
- package/out/main/common/store/ai-shortcuts-store.js +0 -40
- package/out/main/common/store/ai-shortcuts-store.js.map +0 -1
- package/out/main/common/store/appearance-preferences-store.js +0 -94
- package/out/main/common/store/appearance-preferences-store.js.map +0 -1
- package/out/main/common/store/cluster-icons-store.js +0 -32
- package/out/main/common/store/cluster-icons-store.js.map +0 -1
- package/out/main/common/store/dashboard-preferences-store.js +0 -56
- package/out/main/common/store/dashboard-preferences-store.js.map +0 -1
- package/out/main/common/store/logs-preferences-store.js +0 -45
- package/out/main/common/store/logs-preferences-store.js.map +0 -1
- package/out/main/common/store/monitoring-preferences-store.js +0 -69
- package/out/main/common/store/monitoring-preferences-store.js.map +0 -1
- package/out/main/common/store/node-shell-preferences-store.js +0 -40
- package/out/main/common/store/node-shell-preferences-store.js.map +0 -1
- package/out/main/common/store/power-preferences-store.js +0 -23
- package/out/main/common/store/power-preferences-store.js.map +0 -1
- package/out/main/common/store/read-only-preferences-store.js +0 -26
- package/out/main/common/store/read-only-preferences-store.js.map +0 -1
- package/out/main/dashboard-catalog.js +0 -29
- package/out/main/dashboard-catalog.js.map +0 -1
- package/out/main/dashboard-icon-cache.js +0 -63
- package/out/main/dashboard-icon-cache.js.map +0 -1
- package/out/main/dashboard-network.js +0 -104
- package/out/main/dashboard-network.js.map +0 -1
- package/out/main/dashboard-picker.js +0 -133
- package/out/main/dashboard-picker.js.map +0 -1
- package/out/main/dashboard-preload.js.map +0 -1
- package/out/main/dashboard-views.js +0 -810
- package/out/main/dashboard-views.js.map +0 -1
- package/out/main/diagnostics-menu-order.js +0 -57
- package/out/main/diagnostics-menu-order.js.map +0 -1
- package/out/main/dock-icon.js +0 -121
- package/out/main/dock-icon.js.map +0 -1
- package/out/main/index.js +0 -92
- package/out/main/index.js.map +0 -1
- package/out/main/monitoring-history-database.js +0 -103
- package/out/main/monitoring-history-database.js.map +0 -1
- package/out/main/monitoring-history-worker.js +0 -61
- package/out/main/monitoring-history-worker.js.map +0 -1
- package/out/main/monitoring-history.js +0 -110
- package/out/main/monitoring-history.js.map +0 -1
- package/out/main/power-logs-budget.js +0 -126
- package/out/main/power-logs-budget.js.map +0 -1
- package/out/main/power-logs-child.js.map +0 -1
- package/out/main/power-logs-database.js +0 -179
- package/out/main/power-logs-database.js.map +0 -1
- package/out/main/power-logs-ipc.js +0 -275
- package/out/main/power-logs-ipc.js.map +0 -1
- package/out/main/power-logs-query-child.js +0 -23
- package/out/main/power-logs-query-child.js.map +0 -1
- package/out/main/power-logs-query.js.map +0 -1
- package/out/main/power-logs-worker.js +0 -215
- package/out/main/power-logs-worker.js.map +0 -1
- package/out/main/resource-search-database.js +0 -209
- package/out/main/resource-search-database.js.map +0 -1
- package/out/main/resource-search-worker.js +0 -56
- package/out/main/resource-search-worker.js.map +0 -1
- package/out/main/resource-search.js +0 -155
- package/out/main/resource-search.js.map +0 -1
- package/out/main/settings-export.js +0 -68
- package/out/main/settings-export.js.map +0 -1
- package/out/main/settings-import.js +0 -89
- package/out/main/settings-import.js.map +0 -1
- package/out/main/splash-accent.js +0 -84
- package/out/main/splash-accent.js.map +0 -1
- package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
- package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
- package/out/renderer/_virtual/_global-external_@freelensapp/extensions.js +0 -9
- package/out/renderer/_virtual/_global-external_mobx-react.js +0 -20
- package/out/renderer/_virtual/_global-external_mobx.js +0 -78
- package/out/renderer/_virtual/_global-external_react/jsx-runtime.js +0 -10
- package/out/renderer/_virtual/_global-external_react-dom.js +0 -16
- package/out/renderer/_virtual/_global-external_react.js +0 -44
- package/out/renderer/_virtual/_rolldown/runtime.js +0 -35
- package/out/renderer/ai-copy-answer.js +0 -35
- package/out/renderer/ai-copy-answer.js.map +0 -1
- package/out/renderer/ai-diagnostic-handoff.js +0 -52
- package/out/renderer/ai-diagnostic-handoff.js.map +0 -1
- package/out/renderer/ai-extras.js +0 -155
- package/out/renderer/ai-extras.js.map +0 -1
- package/out/renderer/ai-icon.js +0 -20
- package/out/renderer/ai-icon.js.map +0 -1
- package/out/renderer/ai-logs-sql.js +0 -27
- package/out/renderer/ai-logs-sql.js.map +0 -1
- package/out/renderer/ai-message.js +0 -281
- package/out/renderer/ai-message.js.map +0 -1
- package/out/renderer/ai-provider-icon.js +0 -44
- package/out/renderer/ai-provider-icon.js.map +0 -1
- package/out/renderer/ai-resize.js +0 -87
- package/out/renderer/ai-resize.js.map +0 -1
- package/out/renderer/ai-shortcuts.js +0 -38
- package/out/renderer/ai-shortcuts.js.map +0 -1
- package/out/renderer/ai-terminal-context.js +0 -210
- package/out/renderer/ai-terminal-context.js.map +0 -1
- package/out/renderer/ai.js +0 -955
- package/out/renderer/ai.js.map +0 -1
- package/out/renderer/appearance.js +0 -41
- package/out/renderer/appearance.js.map +0 -1
- package/out/renderer/assets/claude.js +0 -6
- package/out/renderer/assets/claude.js.map +0 -1
- package/out/renderer/button-styles.js +0 -20
- package/out/renderer/button-styles.js.map +0 -1
- package/out/renderer/cluster-icon-colors.js +0 -188
- package/out/renderer/cluster-icon-colors.js.map +0 -1
- package/out/renderer/cluster-icons.js +0 -304
- package/out/renderer/cluster-icons.js.map +0 -1
- package/out/renderer/dashboard.js +0 -530
- package/out/renderer/dashboard.js.map +0 -1
- package/out/renderer/details/hpa-diagnostics-details.js +0 -46
- package/out/renderer/details/hpa-diagnostics-details.js.map +0 -1
- package/out/renderer/details/namespace-health-details.js +0 -91
- package/out/renderer/details/namespace-health-details.js.map +0 -1
- package/out/renderer/details/resource-health-details.js +0 -135
- package/out/renderer/details/resource-health-details.js.map +0 -1
- package/out/renderer/details/secret-certificate-details.js +0 -68
- package/out/renderer/details/secret-certificate-details.js.map +0 -1
- package/out/renderer/details/service-diagnostics-details.js +0 -163
- package/out/renderer/details/service-diagnostics-details.js.map +0 -1
- package/out/renderer/diagnostic-explain-button.js +0 -16
- package/out/renderer/diagnostic-explain-button.js.map +0 -1
- package/out/renderer/diagnostics-state.js +0 -53
- package/out/renderer/diagnostics-state.js.map +0 -1
- package/out/renderer/diagnostics.css.js +0 -48
- package/out/renderer/diagnostics.css.js.map +0 -1
- package/out/renderer/diagnostics.js +0 -1472
- package/out/renderer/diagnostics.js.map +0 -1
- package/out/renderer/gateway-relationships-client.js +0 -107
- package/out/renderer/gateway-relationships-client.js.map +0 -1
- package/out/renderer/incident-copy-button.js +0 -50
- package/out/renderer/incident-copy-button.js.map +0 -1
- package/out/renderer/index.js +0 -263
- package/out/renderer/index.js.map +0 -1
- package/out/renderer/menus/secure-node-shell-menu.js +0 -44
- package/out/renderer/menus/secure-node-shell-menu.js.map +0 -1
- package/out/renderer/monitoring-collector.js +0 -202
- package/out/renderer/monitoring-collector.js.map +0 -1
- package/out/renderer/monitoring-details-chart.js +0 -42
- package/out/renderer/monitoring-details-chart.js.map +0 -1
- package/out/renderer/monitoring-history-collection.js +0 -168
- package/out/renderer/monitoring-history-collection.js.map +0 -1
- package/out/renderer/monitoring-history-view.js +0 -227
- package/out/renderer/monitoring-history-view.js.map +0 -1
- package/out/renderer/monitoring-history.js +0 -19
- package/out/renderer/monitoring-history.js.map +0 -1
- package/out/renderer/monitoring.js +0 -858
- package/out/renderer/monitoring.js.map +0 -1
- package/out/renderer/node-monitoring.js +0 -127
- package/out/renderer/node-monitoring.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -10
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -9
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -9
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createClass.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -19
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createSuper.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -14
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js +0 -19
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -15
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -14
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inherits.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -18
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -26
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -27
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -14
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -12
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -15
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -12
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -8
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -12
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -16
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -11
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -18
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/typeof.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -13
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -237
- package/out/renderer/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -25
- package/out/renderer/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -12
- package/out/renderer/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +0 -58
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -54
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -133
- package/out/renderer/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -65
- package/out/renderer/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -54
- package/out/renderer/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@17.0.2/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -12
- package/out/renderer/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@17.0.2/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -30
- package/out/renderer/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -211
- package/out/renderer/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -97
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -31
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode-codepoint.js +0 -45
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode-codepoint.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode.js +0 -392
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/generated/decode-data-html.js +0 -7
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/generated/decode-data-html.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/internal/bin-trie-flags.js +0 -27
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/internal/bin-trie-flags.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/internal/decode-shared.js +0 -21
- package/out/renderer/node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/internal/decode-shared.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -93
- package/out/renderer/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/linkify-it@6.1.0/node_modules/linkify-it/build/index.js +0 -534
- package/out/renderer/node_modules/.pnpm/linkify-it@6.1.0/node_modules/linkify-it/build/index.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/markdown-it@15.0.2/node_modules/markdown-it/dist/markdown-it.js +0 -3774
- package/out/renderer/node_modules/.pnpm/markdown-it@15.0.2/node_modules/markdown-it/dist/markdown-it.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/index.js +0 -25
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/index.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/decode.js +0 -74
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/decode.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/encode.js +0 -57
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/encode.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/format.js +0 -18
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/format.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/parse.js +0 -175
- package/out/renderer/node_modules/.pnpm/mdurl@2.1.0/node_modules/mdurl/lib/parse.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.esm.js +0 -38
- package/out/renderer/node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -307
- package/out/renderer/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -159
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -103
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +0 -18
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2200
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/Select-ef7c0426.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -992
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/index-641ee5b8.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/react-select.esm.js +0 -14
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/react-select.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -56
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js +0 -22
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js +0 -30
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js +0 -164
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js +0 -37
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js +0 -245
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js +0 -120
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/uc.micro@3.0.0/node_modules/uc.micro/build/index.js +0 -30
- package/out/renderer/node_modules/.pnpm/uc.micro@3.0.0/node_modules/uc.micro/build/index.js.map +0 -1
- package/out/renderer/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
- package/out/renderer/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js.map +0 -1
- package/out/renderer/pod-monitoring.js +0 -309
- package/out/renderer/pod-monitoring.js.map +0 -1
- package/out/renderer/power-log-json.js +0 -29
- package/out/renderer/power-log-json.js.map +0 -1
- package/out/renderer/power-logs-client.js +0 -35
- package/out/renderer/power-logs-client.js.map +0 -1
- package/out/renderer/power-logs-collector.js +0 -316
- package/out/renderer/power-logs-collector.js.map +0 -1
- package/out/renderer/power-logs-entrypoints.js +0 -201
- package/out/renderer/power-logs-entrypoints.js.map +0 -1
- package/out/renderer/power-logs-sql-row.js +0 -52
- package/out/renderer/power-logs-sql-row.js.map +0 -1
- package/out/renderer/power-logs-transport.js +0 -122
- package/out/renderer/power-logs-transport.js.map +0 -1
- package/out/renderer/power-logs.css.js +0 -117
- package/out/renderer/power-logs.css.js.map +0 -1
- package/out/renderer/power-logs.js +0 -1385
- package/out/renderer/power-logs.js.map +0 -1
- package/out/renderer/preferences/ai-preferences.js +0 -249
- package/out/renderer/preferences/ai-preferences.js.map +0 -1
- package/out/renderer/preferences/ai-shortcuts-preferences.js +0 -175
- package/out/renderer/preferences/ai-shortcuts-preferences.js.map +0 -1
- package/out/renderer/preferences/appearance-preferences.js +0 -97
- package/out/renderer/preferences/appearance-preferences.js.map +0 -1
- package/out/renderer/preferences/dashboard-preferences.js +0 -423
- package/out/renderer/preferences/dashboard-preferences.js.map +0 -1
- package/out/renderer/preferences/logs-preferences.js +0 -93
- package/out/renderer/preferences/logs-preferences.js.map +0 -1
- package/out/renderer/preferences/monitoring-preferences.js +0 -174
- package/out/renderer/preferences/monitoring-preferences.js.map +0 -1
- package/out/renderer/preferences/node-shell-preferences.js +0 -73
- package/out/renderer/preferences/node-shell-preferences.js.map +0 -1
- package/out/renderer/preferences/power-preferences.js +0 -22
- package/out/renderer/preferences/power-preferences.js.map +0 -1
- package/out/renderer/preferences/preferences.js +0 -263
- package/out/renderer/preferences/preferences.js.map +0 -1
- package/out/renderer/preferences/read-only-preferences.js +0 -23
- package/out/renderer/preferences/read-only-preferences.js.map +0 -1
- package/out/renderer/preferences/settings-export.js +0 -91
- package/out/renderer/preferences/settings-export.js.map +0 -1
- package/out/renderer/preferences/settings-icon-action.js +0 -23
- package/out/renderer/preferences/settings-icon-action.js.map +0 -1
- package/out/renderer/preferences/settings-modal.js +0 -82
- package/out/renderer/preferences/settings-modal.js.map +0 -1
- package/out/renderer/read-only.js +0 -103
- package/out/renderer/read-only.js.map +0 -1
- package/out/renderer/resource-relationships.css.js +0 -7
- package/out/renderer/resource-relationships.css.js.map +0 -1
- package/out/renderer/resource-relationships.js +0 -609
- package/out/renderer/resource-relationships.js.map +0 -1
- package/out/renderer/resource-search-client.js +0 -116
- package/out/renderer/resource-search-client.js.map +0 -1
- package/out/renderer/resource-search-discovery.js +0 -79
- package/out/renderer/resource-search-discovery.js.map +0 -1
- package/out/renderer/resource-search-distance.js +0 -24
- package/out/renderer/resource-search-distance.js.map +0 -1
- package/out/renderer/resource-search-fields.js +0 -55
- package/out/renderer/resource-search-fields.js.map +0 -1
- package/out/renderer/resource-search-model.js +0 -194
- package/out/renderer/resource-search-model.js.map +0 -1
- package/out/renderer/resource-search-routing.js +0 -78
- package/out/renderer/resource-search-routing.js.map +0 -1
- package/out/renderer/resource-search-sync.js +0 -199
- package/out/renderer/resource-search-sync.js.map +0 -1
- package/out/renderer/resource-search.js +0 -590
- package/out/renderer/resource-search.js.map +0 -1
- package/out/renderer/src/common/ai-extras.js +0 -68
- package/out/renderer/src/common/ai-extras.js.map +0 -1
- package/out/renderer/src/common/ai-models.js +0 -6
- package/out/renderer/src/common/ai-models.js.map +0 -1
- package/out/renderer/src/common/ai-prompts.js +0 -16
- package/out/renderer/src/common/ai-prompts.js.map +0 -1
- package/out/renderer/src/common/ai-shortcuts.js +0 -78
- package/out/renderer/src/common/ai-shortcuts.js.map +0 -1
- package/out/renderer/src/common/ai-terminal-context.js +0 -51
- package/out/renderer/src/common/ai-terminal-context.js.map +0 -1
- package/out/renderer/src/common/ai.js +0 -8
- package/out/renderer/src/common/ai.js.map +0 -1
- package/out/renderer/src/common/cluster-icon-ipc.js +0 -6
- package/out/renderer/src/common/cluster-icon-ipc.js.map +0 -1
- package/out/renderer/src/common/cluster-icons.js +0 -133
- package/out/renderer/src/common/cluster-icons.js.map +0 -1
- package/out/renderer/src/common/dashboard-picker.js +0 -6
- package/out/renderer/src/common/dashboard-picker.js.map +0 -1
- package/out/renderer/src/common/dashboard-selector.js +0 -9
- package/out/renderer/src/common/dashboard-selector.js.map +0 -1
- package/out/renderer/src/common/dashboard-views.js +0 -18
- package/out/renderer/src/common/dashboard-views.js.map +0 -1
- package/out/renderer/src/common/dashboard.js +0 -39
- package/out/renderer/src/common/dashboard.js.map +0 -1
- package/out/renderer/src/common/date-time.js +0 -11
- package/out/renderer/src/common/date-time.js.map +0 -1
- package/out/renderer/src/common/extension-info.js +0 -8
- package/out/renderer/src/common/extension-info.js.map +0 -1
- package/out/renderer/src/common/gateway-relationships.js +0 -122
- package/out/renderer/src/common/gateway-relationships.js.map +0 -1
- package/out/renderer/src/common/hpa-diagnostics.js +0 -24
- package/out/renderer/src/common/hpa-diagnostics.js.map +0 -1
- package/out/renderer/src/common/incident-summary.js +0 -73
- package/out/renderer/src/common/incident-summary.js.map +0 -1
- package/out/renderer/src/common/monitoring-history.js +0 -17
- package/out/renderer/src/common/monitoring-history.js.map +0 -1
- package/out/renderer/src/common/monitoring-math.js +0 -98
- package/out/renderer/src/common/monitoring-math.js.map +0 -1
- package/out/renderer/src/common/node-shell.js +0 -22
- package/out/renderer/src/common/node-shell.js.map +0 -1
- package/out/renderer/src/common/power-log-parser.js +0 -114
- package/out/renderer/src/common/power-log-parser.js.map +0 -1
- package/out/renderer/src/common/power-logs-ai.js +0 -56
- package/out/renderer/src/common/power-logs-ai.js.map +0 -1
- package/out/renderer/src/common/power-logs.js +0 -32
- package/out/renderer/src/common/power-logs.js.map +0 -1
- package/out/renderer/src/common/resource-diagnostics.js +0 -227
- package/out/renderer/src/common/resource-diagnostics.js.map +0 -1
- package/out/renderer/src/common/resource-health.js +0 -92
- package/out/renderer/src/common/resource-health.js.map +0 -1
- package/out/renderer/src/common/resource-relationships.js +0 -163
- package/out/renderer/src/common/resource-relationships.js.map +0 -1
- package/out/renderer/src/common/resource-search.js +0 -6
- package/out/renderer/src/common/resource-search.js.map +0 -1
- package/out/renderer/src/common/secret-certificates.js +0 -34
- package/out/renderer/src/common/secret-certificates.js.map +0 -1
- package/out/renderer/src/common/service-diagnostics.js +0 -50
- package/out/renderer/src/common/service-diagnostics.js.map +0 -1
- package/out/renderer/src/common/settings-export.js +0 -8
- package/out/renderer/src/common/settings-export.js.map +0 -1
- package/out/renderer/src/common/store/ai-preferences-store.js +0 -101
- package/out/renderer/src/common/store/ai-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/ai-shortcuts-store.js +0 -40
- package/out/renderer/src/common/store/ai-shortcuts-store.js.map +0 -1
- package/out/renderer/src/common/store/appearance-preferences-store.js +0 -94
- package/out/renderer/src/common/store/appearance-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/dashboard-preferences-store.js +0 -56
- package/out/renderer/src/common/store/dashboard-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/logs-preferences-store.js +0 -45
- package/out/renderer/src/common/store/logs-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/monitoring-preferences-store.js +0 -69
- package/out/renderer/src/common/store/monitoring-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/node-shell-preferences-store.js +0 -40
- package/out/renderer/src/common/store/node-shell-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/power-preferences-store.js +0 -23
- package/out/renderer/src/common/store/power-preferences-store.js.map +0 -1
- package/out/renderer/src/common/store/read-only-preferences-store.js +0 -26
- package/out/renderer/src/common/store/read-only-preferences-store.js.map +0 -1
- package/out/renderer/src/common/timeline-groups.js +0 -36
- package/out/renderer/src/common/timeline-groups.js.map +0 -1
- package/out/renderer/welcome.js +0 -120
- package/out/renderer/welcome.js.map +0 -1
package/out/main/ai-logs.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const require_ai_resources = require("./ai-resources.js");
|
|
2
|
-
//#region src/main/ai-logs.ts
|
|
3
|
-
function aiLogQuery(request) {
|
|
4
|
-
if (request.method !== "logs") throw new Error("Unsupported log method");
|
|
5
|
-
const resource = require_ai_resources.aiReadQuery({
|
|
6
|
-
method: "pods",
|
|
7
|
-
name: request.name,
|
|
8
|
-
namespace: request.namespace
|
|
9
|
-
});
|
|
10
|
-
if (!resource.name || !resource.namespace) throw new Error("Select a pod and namespace to inspect log counters");
|
|
11
|
-
return {
|
|
12
|
-
path: `/api/v1/namespaces/${resource.namespace}/pods/${resource.name}/log`,
|
|
13
|
-
query: {
|
|
14
|
-
tailLines: 100,
|
|
15
|
-
limitBytes: 65536,
|
|
16
|
-
follow: false,
|
|
17
|
-
timestamps: false
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function summarizeAiLogs(input) {
|
|
22
|
-
if (typeof input !== "string") throw new Error("Log response is unavailable");
|
|
23
|
-
const lines = Buffer.from(input, "utf8").subarray(0, 65536).toString("utf8").split(/\r?\n/).filter((line) => line.length > 0).slice(-100);
|
|
24
|
-
const patterns = {
|
|
25
|
-
errorLines: /\b(?:error|fatal|panic|exception)\b/i,
|
|
26
|
-
warningLines: /\b(?:warn|warning)\b/i,
|
|
27
|
-
timeoutLines: /\b(?:timeout|timed out|deadline exceeded)\b/i,
|
|
28
|
-
outOfMemoryLines: /\b(?:oomkilled|out of memory|cannot allocate memory)\b/i,
|
|
29
|
-
connectionFailureLines: /\b(?:connection refused|connection reset|no route to host|network unreachable)\b/i,
|
|
30
|
-
permissionFailureLines: /\b(?:permission denied|forbidden|unauthorized)\b/i
|
|
31
|
-
};
|
|
32
|
-
const counts = {
|
|
33
|
-
errorLines: 0,
|
|
34
|
-
warningLines: 0,
|
|
35
|
-
timeoutLines: 0,
|
|
36
|
-
outOfMemoryLines: 0,
|
|
37
|
-
connectionFailureLines: 0,
|
|
38
|
-
permissionFailureLines: 0
|
|
39
|
-
};
|
|
40
|
-
for (const line of lines) for (const key of Object.keys(patterns)) if (patterns[key].test(line)) counts[key]++;
|
|
41
|
-
return {
|
|
42
|
-
sampledNonemptyLines: lines.length,
|
|
43
|
-
...counts,
|
|
44
|
-
rawTextWithheld: true,
|
|
45
|
-
boundedSample: true
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
exports.aiLogQuery = aiLogQuery;
|
|
50
|
-
exports.summarizeAiLogs = summarizeAiLogs;
|
|
51
|
-
|
|
52
|
-
//# sourceMappingURL=ai-logs.js.map
|
package/out/main/ai-logs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-logs.js","names":[],"sources":["../../src/main/ai-logs.ts"],"sourcesContent":["import { type AiReadRequest, aiReadQuery } from \"./ai-resources\";\n\nexport interface AiLogQuery {\n path: string;\n query: { tailLines: 100; limitBytes: 65536; follow: false; timestamps: false };\n}\n\nexport function aiLogQuery(request: AiReadRequest): AiLogQuery {\n if (request.method !== \"logs\") throw new Error(\"Unsupported log method\");\n const resource = aiReadQuery({ method: \"pods\", name: request.name, namespace: request.namespace });\n if (!resource.name || !resource.namespace) throw new Error(\"Select a pod and namespace to inspect log counters\");\n return {\n path: `/api/v1/namespaces/${resource.namespace}/pods/${resource.name}/log`,\n query: { tailLines: 100, limitBytes: 65536, follow: false, timestamps: false },\n };\n}\n\n// count fixed patterns locally without forwarding log text, identifiers or captured values\nexport function summarizeAiLogs(input: unknown) {\n if (typeof input !== \"string\") throw new Error(\"Log response is unavailable\");\n const bounded = Buffer.from(input, \"utf8\").subarray(0, 65536).toString(\"utf8\");\n const lines = bounded\n .split(/\\r?\\n/)\n .filter((line) => line.length > 0)\n .slice(-100);\n const patterns = {\n errorLines: /\\b(?:error|fatal|panic|exception)\\b/i,\n warningLines: /\\b(?:warn|warning)\\b/i,\n timeoutLines: /\\b(?:timeout|timed out|deadline exceeded)\\b/i,\n outOfMemoryLines: /\\b(?:oomkilled|out of memory|cannot allocate memory)\\b/i,\n connectionFailureLines: /\\b(?:connection refused|connection reset|no route to host|network unreachable)\\b/i,\n permissionFailureLines: /\\b(?:permission denied|forbidden|unauthorized)\\b/i,\n };\n const counts: Record<keyof typeof patterns, number> = {\n errorLines: 0,\n warningLines: 0,\n timeoutLines: 0,\n outOfMemoryLines: 0,\n connectionFailureLines: 0,\n permissionFailureLines: 0,\n };\n for (const line of lines) {\n for (const key of Object.keys(patterns) as (keyof typeof patterns)[]) {\n if (patterns[key].test(line)) counts[key]++;\n }\n }\n return { sampledNonemptyLines: lines.length, ...counts, rawTextWithheld: true, boundedSample: true };\n}\n"],"mappings":";;AAOA,SAAgB,WAAW,SAAoC;CAC7D,IAAI,QAAQ,WAAW,QAAQ,MAAM,IAAI,MAAM,wBAAwB;CACvE,MAAM,WAAW,qBAAA,YAAY;EAAE,QAAQ;EAAQ,MAAM,QAAQ;EAAM,WAAW,QAAQ;CAAU,CAAC;CACjG,IAAI,CAAC,SAAS,QAAQ,CAAC,SAAS,WAAW,MAAM,IAAI,MAAM,oDAAoD;CAC/G,OAAO;EACL,MAAM,sBAAsB,SAAS,UAAU,QAAQ,SAAS,KAAK;EACrE,OAAO;GAAE,WAAW;GAAK,YAAY;GAAO,QAAQ;GAAO,YAAY;EAAM;CAC/E;AACF;AAGA,SAAgB,gBAAgB,OAAgB;CAC9C,IAAI,OAAO,UAAU,UAAU,MAAM,IAAI,MAAM,6BAA6B;CAE5E,MAAM,QADU,OAAO,KAAK,OAAO,MAAM,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC,SAAS,MACzD,CAAA,CACX,MAAM,OAAO,CAAC,CACd,QAAQ,SAAS,KAAK,SAAS,CAAC,CAAC,CACjC,MAAM,IAAI;CACb,MAAM,WAAW;EACf,YAAY;EACZ,cAAc;EACd,cAAc;EACd,kBAAkB;EAClB,wBAAwB;EACxB,wBAAwB;CAC1B;CACA,MAAM,SAAgD;EACpD,YAAY;EACZ,cAAc;EACd,cAAc;EACd,kBAAkB;EAClB,wBAAwB;EACxB,wBAAwB;CAC1B;CACA,KAAK,MAAM,QAAQ,OACjB,KAAK,MAAM,OAAO,OAAO,KAAK,QAAQ,GACpC,IAAI,SAAS,IAAI,CAAC,KAAK,IAAI,GAAG,OAAO,IAAI;CAG7C,OAAO;EAAE,sBAAsB,MAAM;EAAQ,GAAG;EAAQ,iBAAiB;EAAM,eAAe;CAAK;AACrG"}
|
package/out/main/ai-models.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
const require_ai_models = require("./common/ai-models.js");
|
|
2
|
-
let electron = require("electron");
|
|
3
|
-
let node_fs_promises = require("node:fs/promises");
|
|
4
|
-
let node_os = require("node:os");
|
|
5
|
-
let node_path = require("node:path");
|
|
6
|
-
//#region src/main/ai-models.ts
|
|
7
|
-
var MAX_CACHE_BYTES = 2 * 1024 * 1024;
|
|
8
|
-
var identifier = /^[a-zA-Z0-9][a-zA-Z0-9._-]{0,99}$/;
|
|
9
|
-
var efforts = /* @__PURE__ */ new Set([
|
|
10
|
-
"none",
|
|
11
|
-
"minimal",
|
|
12
|
-
"low",
|
|
13
|
-
"medium",
|
|
14
|
-
"high",
|
|
15
|
-
"xhigh"
|
|
16
|
-
]);
|
|
17
|
-
function parseAiModels(value) {
|
|
18
|
-
if (!value || typeof value !== "object" || !("models" in value) || !Array.isArray(value.models)) return [];
|
|
19
|
-
const result = [];
|
|
20
|
-
const seen = /* @__PURE__ */ new Set();
|
|
21
|
-
for (const item of value.models.slice(0, 200)) {
|
|
22
|
-
if (!item || typeof item !== "object" || typeof item.slug !== "string" || !identifier.test(item.slug)) continue;
|
|
23
|
-
if (item.visibility !== "list" || seen.has(item.slug)) continue;
|
|
24
|
-
const levels = Array.isArray(item.supported_reasoning_levels) ? [...new Set(item.supported_reasoning_levels.filter((level) => Boolean(level && typeof level === "object" && "effort" in level && typeof level.effort === "string" && efforts.has(level.effort))).map((level) => level.effort))] : [];
|
|
25
|
-
const label = typeof item.display_name === "string" && /^[\w .()+-]{1,100}$/.test(item.display_name) ? item.display_name : item.slug;
|
|
26
|
-
result.push({
|
|
27
|
-
id: item.slug,
|
|
28
|
-
label,
|
|
29
|
-
reasoningEfforts: levels,
|
|
30
|
-
defaultReasoningEffort: levels.includes(item.default_reasoning_level) ? item.default_reasoning_level : ""
|
|
31
|
-
});
|
|
32
|
-
seen.add(item.slug);
|
|
33
|
-
}
|
|
34
|
-
return result;
|
|
35
|
-
}
|
|
36
|
-
async function readAiModels(directory = process.env.CODEX_HOME || (0, node_path.join)((0, node_os.homedir)(), ".codex")) {
|
|
37
|
-
let file;
|
|
38
|
-
try {
|
|
39
|
-
file = await (0, node_fs_promises.open)((0, node_path.join)(directory, "models_cache.json"), "r");
|
|
40
|
-
const metadata = await file.stat();
|
|
41
|
-
if (!metadata.isFile() || metadata.size > MAX_CACHE_BYTES) return [];
|
|
42
|
-
const buffer = Buffer.alloc(2097153);
|
|
43
|
-
const { bytesRead } = await file.read(buffer, 0, buffer.length, 0);
|
|
44
|
-
if (bytesRead > MAX_CACHE_BYTES) return [];
|
|
45
|
-
return parseAiModels(JSON.parse(buffer.subarray(0, bytesRead).toString("utf8")));
|
|
46
|
-
} catch {
|
|
47
|
-
return [];
|
|
48
|
-
} finally {
|
|
49
|
-
await file?.close();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function startAiModels() {
|
|
53
|
-
electron.ipcMain.handle(require_ai_models.AI_MODELS_CHANNEL, async (event, provider = "codex") => {
|
|
54
|
-
const window = electron.BrowserWindow.fromWebContents(event.sender);
|
|
55
|
-
if (!window || window.isDestroyed()) return [];
|
|
56
|
-
try {
|
|
57
|
-
const url = new URL(event.senderFrame?.url ?? "");
|
|
58
|
-
if (url.protocol !== "https:" || !(url.hostname === "renderer.freelens.app" || url.hostname.endsWith(".renderer.freelens.app"))) return [];
|
|
59
|
-
if (provider === "claude") return [
|
|
60
|
-
"sonnet",
|
|
61
|
-
"opus",
|
|
62
|
-
"haiku"
|
|
63
|
-
].map((id) => ({
|
|
64
|
-
id,
|
|
65
|
-
label: id[0].toUpperCase() + id.slice(1),
|
|
66
|
-
reasoningEfforts: [],
|
|
67
|
-
defaultReasoningEffort: ""
|
|
68
|
-
}));
|
|
69
|
-
if (provider !== "codex") return [];
|
|
70
|
-
return readAiModels();
|
|
71
|
-
} catch {
|
|
72
|
-
return [];
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
return () => electron.ipcMain.removeHandler(require_ai_models.AI_MODELS_CHANNEL);
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
exports.parseAiModels = parseAiModels;
|
|
79
|
-
exports.readAiModels = readAiModels;
|
|
80
|
-
exports.startAiModels = startAiModels;
|
|
81
|
-
|
|
82
|
-
//# sourceMappingURL=ai-models.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-models.js","names":[],"sources":["../../src/main/ai-models.ts"],"sourcesContent":["import { open } from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport { BrowserWindow, ipcMain } from \"electron\";\nimport { AI_MODELS_CHANNEL, type AiModel } from \"../common/ai-models\";\n\nconst MAX_CACHE_BYTES = 2 * 1024 * 1024;\nconst identifier = /^[a-zA-Z0-9][a-zA-Z0-9._-]{0,99}$/;\nconst efforts = new Set([\"none\", \"minimal\", \"low\", \"medium\", \"high\", \"xhigh\"]);\n\nexport function parseAiModels(value: unknown): AiModel[] {\n if (!value || typeof value !== \"object\" || !(\"models\" in value) || !Array.isArray(value.models)) return [];\n const result: AiModel[] = [];\n const seen = new Set<string>();\n for (const item of value.models.slice(0, 200)) {\n if (!item || typeof item !== \"object\" || typeof item.slug !== \"string\" || !identifier.test(item.slug)) continue;\n if (item.visibility !== \"list\" || seen.has(item.slug)) continue;\n const levels: string[] = Array.isArray(item.supported_reasoning_levels)\n ? [\n ...new Set<string>(\n item.supported_reasoning_levels\n .filter((level: unknown): level is { effort: string } =>\n Boolean(\n level &&\n typeof level === \"object\" &&\n \"effort\" in level &&\n typeof level.effort === \"string\" &&\n efforts.has(level.effort),\n ),\n )\n .map((level: { effort: string }) => level.effort),\n ),\n ]\n : [];\n const label =\n typeof item.display_name === \"string\" && /^[\\w .()+-]{1,100}$/.test(item.display_name)\n ? item.display_name\n : item.slug;\n result.push({\n id: item.slug,\n label,\n reasoningEfforts: levels,\n defaultReasoningEffort: levels.includes(item.default_reasoning_level) ? item.default_reasoning_level : \"\",\n });\n seen.add(item.slug);\n }\n return result;\n}\n\nexport async function readAiModels(\n directory = process.env.CODEX_HOME || join(homedir(), \".codex\"),\n): Promise<AiModel[]> {\n let file: Awaited<ReturnType<typeof open>> | undefined;\n try {\n file = await open(join(directory, \"models_cache.json\"), \"r\");\n const metadata = await file.stat();\n if (!metadata.isFile() || metadata.size > MAX_CACHE_BYTES) return [];\n const buffer = Buffer.alloc(MAX_CACHE_BYTES + 1);\n const { bytesRead } = await file.read(buffer, 0, buffer.length, 0);\n if (bytesRead > MAX_CACHE_BYTES) return [];\n return parseAiModels(JSON.parse(buffer.subarray(0, bytesRead).toString(\"utf8\")));\n } catch {\n return [];\n } finally {\n await file?.close();\n }\n}\n\nexport function startAiModels(): () => void {\n ipcMain.handle(AI_MODELS_CHANNEL, async (event, provider: unknown = \"codex\") => {\n const window = BrowserWindow.fromWebContents(event.sender);\n if (!window || window.isDestroyed()) return [];\n try {\n const url = new URL(event.senderFrame?.url ?? \"\");\n if (\n url.protocol !== \"https:\" ||\n !(url.hostname === \"renderer.freelens.app\" || url.hostname.endsWith(\".renderer.freelens.app\"))\n )\n return [];\n if (provider === \"claude\")\n return [\"sonnet\", \"opus\", \"haiku\"].map((id) => ({\n id,\n label: id[0].toUpperCase() + id.slice(1),\n reasoningEfforts: [],\n defaultReasoningEffort: \"\",\n }));\n if (provider !== \"codex\") return [];\n return readAiModels();\n } catch {\n return [];\n }\n });\n return () => ipcMain.removeHandler(AI_MODELS_CHANNEL);\n}\n"],"mappings":";;;;;;AAMA,IAAM,kBAAkB,IAAI,OAAO;AACnC,IAAM,aAAa;AACnB,IAAM,0BAAU,IAAI,IAAI;CAAC;CAAQ;CAAW;CAAO;CAAU;CAAQ;AAAO,CAAC;AAE7E,SAAgB,cAAc,OAA2B;CACvD,IAAI,CAAC,SAAS,OAAO,UAAU,YAAY,EAAE,YAAY,UAAU,CAAC,MAAM,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC;CACzG,MAAM,SAAoB,CAAC;CAC3B,MAAM,uBAAO,IAAI,IAAY;CAC7B,KAAK,MAAM,QAAQ,MAAM,OAAO,MAAM,GAAG,GAAG,GAAG;EAC7C,IAAI,CAAC,QAAQ,OAAO,SAAS,YAAY,OAAO,KAAK,SAAS,YAAY,CAAC,WAAW,KAAK,KAAK,IAAI,GAAG;EACvG,IAAI,KAAK,eAAe,UAAU,KAAK,IAAI,KAAK,IAAI,GAAG;EACvD,MAAM,SAAmB,MAAM,QAAQ,KAAK,0BAA0B,IAClE,CACE,GAAG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cAAc,gBAAgB,MAAM,MAAM;EACzD,IAAI,CAAC,UAAU,OAAO,YAAY,GAAG,OAAO,CAAC;EAC7C,IAAI;GACF,MAAM,MAAM,IAAI,IAAI,MAAM,aAAa,OAAO,EAAE;GAChD,IACE,IAAI,aAAa,YACjB,EAAE,IAAI,aAAa,2BAA2B,IAAI,SAAS,SAAS,wBAAwB,IAE5F,OAAO,CAAC;GACV,IAAI,aAAa,UACf,OAAO;IAAC;IAAU;IAAQ;GAAO,CAAC,CAAC,KAAK,QAAQ;IAC9C;IACA,OAAO,GAAG,EAAE,CAAC,YAAY,IAAI,GAAG,MAAM,CAAC;IACvC,kBAAkB,CAAC;IACnB,wBAAwB;GAC1B,EAAE;GACJ,IAAI,aAAa,SAAS,OAAO,CAAC;GAClC,OAAO,aAAa;EACtB,QAAQ;GACN,OAAO,CAAC;EACV;CACF,CAAC;CACD,aAAa,SAAA,QAAQ,cAAc,kBAAA,iBAAiB;AACtD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const require_ai_extras = require("./common/ai-extras.js");
|
|
2
|
-
//#region src/main/ai-references.ts
|
|
3
|
-
function collectAiReferences(summary, query) {
|
|
4
|
-
if (!summary || typeof summary !== "object") return [];
|
|
5
|
-
const item = summary;
|
|
6
|
-
if (Array.isArray(item.items)) return require_ai_extras.normalizeAiReferences(item.items.slice(0, 200).flatMap((entry) => collectAiReferences(entry, query)));
|
|
7
|
-
if (item.kind !== query.kind || item.apiVersion !== query.apiVersion || typeof item.name !== "string") return [];
|
|
8
|
-
if (query.namespace && item.namespace !== query.namespace) return [];
|
|
9
|
-
if (query.name && item.name !== query.name) return [];
|
|
10
|
-
return require_ai_extras.normalizeAiReferences([{
|
|
11
|
-
apiVersion: item.apiVersion,
|
|
12
|
-
kind: item.kind,
|
|
13
|
-
name: item.name,
|
|
14
|
-
namespace: item.namespace
|
|
15
|
-
}]);
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
exports.collectAiReferences = collectAiReferences;
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=ai-references.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-references.js","names":[],"sources":["../../src/main/ai-references.ts"],"sourcesContent":["import { type AiResourceReference, normalizeAiReferences } from \"../common/ai-extras\";\n\nimport type { AiReadQuery } from \"./ai-resources\";\n\n// accept identities only after the resource projection has removed hidden environment values\nexport function collectAiReferences(summary: unknown, query: AiReadQuery): AiResourceReference[] {\n if (!summary || typeof summary !== \"object\") return [];\n const item = summary as Record<string, unknown>;\n if (Array.isArray(item.items))\n return normalizeAiReferences(item.items.slice(0, 200).flatMap((entry) => collectAiReferences(entry, query)));\n if (item.kind !== query.kind || item.apiVersion !== query.apiVersion || typeof item.name !== \"string\") return [];\n if (query.namespace && item.namespace !== query.namespace) return [];\n if (query.name && item.name !== query.name) return [];\n return normalizeAiReferences([\n { apiVersion: item.apiVersion, kind: item.kind, name: item.name, namespace: item.namespace },\n ]);\n}\n"],"mappings":";;AAKA,SAAgB,oBAAoB,SAAkB,OAA2C;CAC/F,IAAI,CAAC,WAAW,OAAO,YAAY,UAAU,OAAO,CAAC;CACrD,MAAM,OAAO;CACb,IAAI,MAAM,QAAQ,KAAK,KAAK,GAC1B,OAAO,kBAAA,sBAAsB,KAAK,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,SAAS,UAAU,oBAAoB,OAAO,KAAK,CAAC,CAAC;CAC7G,IAAI,KAAK,SAAS,MAAM,QAAQ,KAAK,eAAe,MAAM,cAAc,OAAO,KAAK,SAAS,UAAU,OAAO,CAAC;CAC/G,IAAI,MAAM,aAAa,KAAK,cAAc,MAAM,WAAW,OAAO,CAAC;CACnE,IAAI,MAAM,QAAQ,KAAK,SAAS,MAAM,MAAM,OAAO,CAAC;CACpD,OAAO,kBAAA,sBAAsB,CAC3B;EAAE,YAAY,KAAK;EAAY,MAAM,KAAK;EAAM,MAAM,KAAK;EAAM,WAAW,KAAK;CAAU,CAC7F,CAAC;AACH"}
|
package/out/main/ai-resources.js
DELETED
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
//#region src/main/ai-resources.ts
|
|
2
|
-
var AiUnsupportedResourceError = class extends Error {
|
|
3
|
-
constructor() {
|
|
4
|
-
super("UNSUPPORTED_RESOURCE");
|
|
5
|
-
}
|
|
6
|
-
};
|
|
7
|
-
var resources = {
|
|
8
|
-
pods: {
|
|
9
|
-
apiVersion: "v1",
|
|
10
|
-
kind: "Pod",
|
|
11
|
-
namespaced: true
|
|
12
|
-
},
|
|
13
|
-
nodes: {
|
|
14
|
-
apiVersion: "v1",
|
|
15
|
-
kind: "Node",
|
|
16
|
-
namespaced: false
|
|
17
|
-
},
|
|
18
|
-
deployments: {
|
|
19
|
-
apiVersion: "apps/v1",
|
|
20
|
-
kind: "Deployment",
|
|
21
|
-
namespaced: true
|
|
22
|
-
},
|
|
23
|
-
statefulsets: {
|
|
24
|
-
apiVersion: "apps/v1",
|
|
25
|
-
kind: "StatefulSet",
|
|
26
|
-
namespaced: true
|
|
27
|
-
},
|
|
28
|
-
daemonsets: {
|
|
29
|
-
apiVersion: "apps/v1",
|
|
30
|
-
kind: "DaemonSet",
|
|
31
|
-
namespaced: true
|
|
32
|
-
},
|
|
33
|
-
replicasets: {
|
|
34
|
-
apiVersion: "apps/v1",
|
|
35
|
-
kind: "ReplicaSet",
|
|
36
|
-
namespaced: true
|
|
37
|
-
},
|
|
38
|
-
services: {
|
|
39
|
-
apiVersion: "v1",
|
|
40
|
-
kind: "Service",
|
|
41
|
-
namespaced: true
|
|
42
|
-
},
|
|
43
|
-
namespaces: {
|
|
44
|
-
apiVersion: "v1",
|
|
45
|
-
kind: "Namespace",
|
|
46
|
-
namespaced: false
|
|
47
|
-
},
|
|
48
|
-
jobs: {
|
|
49
|
-
apiVersion: "batch/v1",
|
|
50
|
-
kind: "Job",
|
|
51
|
-
namespaced: true
|
|
52
|
-
},
|
|
53
|
-
cronjobs: {
|
|
54
|
-
apiVersion: "batch/v1",
|
|
55
|
-
kind: "CronJob",
|
|
56
|
-
namespaced: true
|
|
57
|
-
},
|
|
58
|
-
persistentvolumeclaims: {
|
|
59
|
-
apiVersion: "v1",
|
|
60
|
-
kind: "PersistentVolumeClaim",
|
|
61
|
-
namespaced: true
|
|
62
|
-
},
|
|
63
|
-
persistentvolumes: {
|
|
64
|
-
apiVersion: "v1",
|
|
65
|
-
kind: "PersistentVolume",
|
|
66
|
-
namespaced: false
|
|
67
|
-
},
|
|
68
|
-
ingresses: {
|
|
69
|
-
apiVersion: "networking.k8s.io/v1",
|
|
70
|
-
kind: "Ingress",
|
|
71
|
-
namespaced: true
|
|
72
|
-
},
|
|
73
|
-
configmaps: {
|
|
74
|
-
apiVersion: "v1",
|
|
75
|
-
kind: "ConfigMap",
|
|
76
|
-
namespaced: true
|
|
77
|
-
},
|
|
78
|
-
secrets: {
|
|
79
|
-
apiVersion: "v1",
|
|
80
|
-
kind: "Secret",
|
|
81
|
-
namespaced: true
|
|
82
|
-
},
|
|
83
|
-
events: {
|
|
84
|
-
apiVersion: "v1",
|
|
85
|
-
kind: "Event",
|
|
86
|
-
namespaced: true
|
|
87
|
-
},
|
|
88
|
-
"certificates.cert-manager.io": {
|
|
89
|
-
apiVersion: "cert-manager.io/v1",
|
|
90
|
-
kind: "Certificate",
|
|
91
|
-
namespaced: true
|
|
92
|
-
},
|
|
93
|
-
"certificaterequests.cert-manager.io": {
|
|
94
|
-
apiVersion: "cert-manager.io/v1",
|
|
95
|
-
kind: "CertificateRequest",
|
|
96
|
-
namespaced: true
|
|
97
|
-
},
|
|
98
|
-
"issuers.cert-manager.io": {
|
|
99
|
-
apiVersion: "cert-manager.io/v1",
|
|
100
|
-
kind: "Issuer",
|
|
101
|
-
namespaced: true
|
|
102
|
-
},
|
|
103
|
-
"clusterissuers.cert-manager.io": {
|
|
104
|
-
apiVersion: "cert-manager.io/v1",
|
|
105
|
-
kind: "ClusterIssuer",
|
|
106
|
-
namespaced: false
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
function identifier(value) {
|
|
110
|
-
if (typeof value !== "string" || !/^[a-z0-9][a-z0-9.-]{0,252}$/.test(value)) throw new Error("Invalid Kubernetes resource identifier");
|
|
111
|
-
return value;
|
|
112
|
-
}
|
|
113
|
-
function aiReadQuery(request, catalog = []) {
|
|
114
|
-
if (!request || ![
|
|
115
|
-
"pods",
|
|
116
|
-
"nodes",
|
|
117
|
-
"resources",
|
|
118
|
-
"logs"
|
|
119
|
-
].includes(request.method)) throw new Error("Unsupported read method");
|
|
120
|
-
if (request.method === "logs") throw new Error("Raw logs are withheld because runtime environment values cannot be reliably removed");
|
|
121
|
-
const resource = request.method === "resources" ? request.resource : request.method;
|
|
122
|
-
const known = resource && Object.hasOwn(resources, resource) ? resources[resource] : Object.values(resources).find((item) => request.apiVersion === item.apiVersion && request.kind === item.kind);
|
|
123
|
-
const definition = catalog.find((item) => request.apiVersion && request.kind ? item.apiVersion === request.apiVersion && item.kind === request.kind : resource === item.resource || resource === `${item.resource}.${item.apiVersion.split("/")[0]}`) || known;
|
|
124
|
-
if (!definition || request.apiVersion && request.apiVersion !== definition.apiVersion || request.kind && request.kind !== definition.kind) throw new AiUnsupportedResourceError();
|
|
125
|
-
if ("verbs" in definition && !definition.verbs.includes(request.name ? "get" : "list")) throw new AiUnsupportedResourceError();
|
|
126
|
-
const query = {
|
|
127
|
-
apiVersion: definition.apiVersion,
|
|
128
|
-
kind: definition.kind
|
|
129
|
-
};
|
|
130
|
-
if ("resource" in definition) query.resource = definition.resource;
|
|
131
|
-
if (request.name) query.name = identifier(request.name);
|
|
132
|
-
if (request.namespace) {
|
|
133
|
-
if (!definition.namespaced) throw new Error("This resource does not have a namespace");
|
|
134
|
-
query.namespace = identifier(request.namespace);
|
|
135
|
-
}
|
|
136
|
-
if (query.name && definition.namespaced && !query.namespace) throw new Error("A namespace is required to read a named resource");
|
|
137
|
-
return query;
|
|
138
|
-
}
|
|
139
|
-
function aiReadPath(query) {
|
|
140
|
-
if (!query.resource || !/^[a-z][a-z0-9-]{0,100}$/.test(query.resource)) throw new AiUnsupportedResourceError();
|
|
141
|
-
const parts = query.apiVersion.split("/");
|
|
142
|
-
let path;
|
|
143
|
-
if (parts.length === 1 && /^v[0-9]+(?:(?:alpha|beta)[0-9]+)?$/.test(parts[0])) path = `/api/${parts[0]}`;
|
|
144
|
-
else if (parts.length === 2 && /^[a-z0-9][a-z0-9.-]{0,200}$/.test(parts[0]) && /^v[0-9]+(?:(?:alpha|beta)[0-9]+)?$/.test(parts[1])) path = `/apis/${parts[0]}/${parts[1]}`;
|
|
145
|
-
else throw new AiUnsupportedResourceError();
|
|
146
|
-
if (query.namespace) path += `/namespaces/${identifier(query.namespace)}`;
|
|
147
|
-
path += `/${query.resource}`;
|
|
148
|
-
if (query.name) path += `/${identifier(query.name)}`;
|
|
149
|
-
return path;
|
|
150
|
-
}
|
|
151
|
-
function record(value) {
|
|
152
|
-
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
153
|
-
}
|
|
154
|
-
var kinds = /* @__PURE__ */ new Set([
|
|
155
|
-
"Pod",
|
|
156
|
-
"Node",
|
|
157
|
-
"Deployment",
|
|
158
|
-
"StatefulSet",
|
|
159
|
-
"DaemonSet",
|
|
160
|
-
"ReplicaSet",
|
|
161
|
-
"Service",
|
|
162
|
-
"Namespace",
|
|
163
|
-
"Job",
|
|
164
|
-
"CronJob",
|
|
165
|
-
"PersistentVolumeClaim",
|
|
166
|
-
"PersistentVolume",
|
|
167
|
-
"Ingress",
|
|
168
|
-
"ConfigMap",
|
|
169
|
-
"Secret",
|
|
170
|
-
"Event",
|
|
171
|
-
"Certificate",
|
|
172
|
-
"CertificateRequest",
|
|
173
|
-
"Issuer",
|
|
174
|
-
"ClusterIssuer"
|
|
175
|
-
]);
|
|
176
|
-
var phases = /* @__PURE__ */ new Set([
|
|
177
|
-
"Pending",
|
|
178
|
-
"Running",
|
|
179
|
-
"Succeeded",
|
|
180
|
-
"Failed",
|
|
181
|
-
"Unknown",
|
|
182
|
-
"Active",
|
|
183
|
-
"Terminating",
|
|
184
|
-
"Bound",
|
|
185
|
-
"Available",
|
|
186
|
-
"Released",
|
|
187
|
-
"Lost"
|
|
188
|
-
]);
|
|
189
|
-
var conditionTypes = /* @__PURE__ */ new Set([
|
|
190
|
-
"Ready",
|
|
191
|
-
"Initialized",
|
|
192
|
-
"ContainersReady",
|
|
193
|
-
"PodScheduled",
|
|
194
|
-
"PodReadyToStartContainers",
|
|
195
|
-
"MemoryPressure",
|
|
196
|
-
"DiskPressure",
|
|
197
|
-
"PIDPressure",
|
|
198
|
-
"NetworkUnavailable",
|
|
199
|
-
"Available",
|
|
200
|
-
"Progressing",
|
|
201
|
-
"ReplicaFailure",
|
|
202
|
-
"Complete",
|
|
203
|
-
"Failed"
|
|
204
|
-
]);
|
|
205
|
-
var conditionStatuses = /* @__PURE__ */ new Set([
|
|
206
|
-
"True",
|
|
207
|
-
"False",
|
|
208
|
-
"Unknown"
|
|
209
|
-
]);
|
|
210
|
-
var containerReasons = /* @__PURE__ */ new Set([
|
|
211
|
-
"CrashLoopBackOff",
|
|
212
|
-
"ImagePullBackOff",
|
|
213
|
-
"ErrImagePull",
|
|
214
|
-
"ContainerCreating",
|
|
215
|
-
"PodInitializing",
|
|
216
|
-
"CreateContainerConfigError",
|
|
217
|
-
"CreateContainerError",
|
|
218
|
-
"RunContainerError",
|
|
219
|
-
"OOMKilled",
|
|
220
|
-
"Completed",
|
|
221
|
-
"Error"
|
|
222
|
-
]);
|
|
223
|
-
function summarizeAiResource(value, approved) {
|
|
224
|
-
const environmentValues = /* @__PURE__ */ new Set();
|
|
225
|
-
function collect(current, owner = {}) {
|
|
226
|
-
if (Array.isArray(current)) {
|
|
227
|
-
current.forEach((entry) => collect(entry, owner));
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
const item = record(current);
|
|
231
|
-
if (item.metadata && item.spec) owner = item;
|
|
232
|
-
if (Array.isArray(item.env)) for (const entry of item.env) {
|
|
233
|
-
const literal = record(entry).value;
|
|
234
|
-
if (typeof literal === "string" && literal) environmentValues.add(literal);
|
|
235
|
-
const fieldPath = record(record(record(entry).valueFrom).fieldRef).fieldPath;
|
|
236
|
-
if (typeof fieldPath === "string" && [
|
|
237
|
-
"metadata.name",
|
|
238
|
-
"metadata.namespace",
|
|
239
|
-
"spec.nodeName",
|
|
240
|
-
"spec.serviceAccountName",
|
|
241
|
-
"status.hostIP",
|
|
242
|
-
"status.podIP"
|
|
243
|
-
].includes(fieldPath)) {
|
|
244
|
-
const [section, field] = fieldPath.split(".");
|
|
245
|
-
const resolved = record(owner[section])[field];
|
|
246
|
-
if (typeof resolved === "string" && resolved) environmentValues.add(resolved);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
for (const [key, nested] of Object.entries(item)) if (key !== "data" && key !== "stringData" && key !== "annotations" && key !== "env") collect(nested, owner);
|
|
250
|
-
}
|
|
251
|
-
collect(value);
|
|
252
|
-
function safeIdentity(input) {
|
|
253
|
-
if (typeof input !== "string" || !/^[a-z0-9][a-z0-9.-]{0,252}$/.test(input)) return void 0;
|
|
254
|
-
if ([...environmentValues].some((literal) => input.includes(literal))) return void 0;
|
|
255
|
-
return input;
|
|
256
|
-
}
|
|
257
|
-
let structuralBudget = 6e3;
|
|
258
|
-
const specEnums = /* @__PURE__ */ new Set([
|
|
259
|
-
"Always",
|
|
260
|
-
"Never",
|
|
261
|
-
"OnFailure",
|
|
262
|
-
"IfNotPresent",
|
|
263
|
-
"TCP",
|
|
264
|
-
"UDP",
|
|
265
|
-
"SCTP",
|
|
266
|
-
"ClusterIP",
|
|
267
|
-
"NodePort",
|
|
268
|
-
"LoadBalancer",
|
|
269
|
-
"ExternalName",
|
|
270
|
-
"ReadWriteOnce",
|
|
271
|
-
"ReadOnlyMany",
|
|
272
|
-
"ReadWriteMany",
|
|
273
|
-
"ReadWriteOncePod",
|
|
274
|
-
"Filesystem",
|
|
275
|
-
"Block",
|
|
276
|
-
"RollingUpdate",
|
|
277
|
-
"Recreate",
|
|
278
|
-
"ClusterFirst",
|
|
279
|
-
"Default",
|
|
280
|
-
"None",
|
|
281
|
-
"ClusterFirstWithHostNet"
|
|
282
|
-
]);
|
|
283
|
-
function safeKey(key) {
|
|
284
|
-
return /^[A-Za-z_][A-Za-z0-9_.-]{0,127}$/.test(key) && ![...environmentValues].some((literal) => key.includes(literal));
|
|
285
|
-
}
|
|
286
|
-
function payloadKeys(value) {
|
|
287
|
-
return Object.keys(record(value)).filter(safeKey).slice(0, 100);
|
|
288
|
-
}
|
|
289
|
-
function specSummary(input, depth = 0) {
|
|
290
|
-
if (--structuralBudget < 0 || depth > 10) return "[withheld]";
|
|
291
|
-
if (input === null || typeof input === "boolean") return input;
|
|
292
|
-
if (typeof input === "number") return Number.isFinite(input) ? input : "[withheld]";
|
|
293
|
-
if (typeof input === "string") {
|
|
294
|
-
if ([...environmentValues].some((literal) => input.includes(literal))) return "[withheld]";
|
|
295
|
-
return specEnums.has(input) || /^\d+(?:\.\d+)?(?:m|Ki|Mi|Gi|Ti|Pi|Ei|k|M|G|T|P|E)?$/.test(input) ? input : "[withheld]";
|
|
296
|
-
}
|
|
297
|
-
if (Array.isArray(input)) return input.slice(0, 100).map((item) => specSummary(item, depth + 1));
|
|
298
|
-
const output = Object.create(null);
|
|
299
|
-
for (const [key, nested] of Object.entries(record(input)).slice(0, 100)) {
|
|
300
|
-
if (!safeKey(key) || ["annotations", "managedFields"].includes(key)) continue;
|
|
301
|
-
if ([
|
|
302
|
-
"data",
|
|
303
|
-
"stringData",
|
|
304
|
-
"binaryData"
|
|
305
|
-
].includes(key)) {
|
|
306
|
-
output[`${key}Keys`] = payloadKeys(nested);
|
|
307
|
-
continue;
|
|
308
|
-
}
|
|
309
|
-
if (/^(?:password|passwd|token|accessToken|refreshToken|idToken|clientSecret|privateKey|apiKey|credentials|authorization|connectionString|secretAccessKey|accessKey|secretKey|bearerToken|certificateData|clientKeyData)$/i.test(key.replace(/[_-]/g, ""))) {
|
|
310
|
-
output[key] = "[withheld]";
|
|
311
|
-
continue;
|
|
312
|
-
}
|
|
313
|
-
if (key === "env") {
|
|
314
|
-
output.env = Array.isArray(nested) ? nested.slice(0, 100).flatMap((entry) => {
|
|
315
|
-
const name = record(entry).name;
|
|
316
|
-
return typeof name === "string" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(name) && safeKey(name) ? [{ name }] : [];
|
|
317
|
-
}) : [];
|
|
318
|
-
continue;
|
|
319
|
-
}
|
|
320
|
-
output[key] = specSummary(nested, depth + 1);
|
|
321
|
-
}
|
|
322
|
-
return output;
|
|
323
|
-
}
|
|
324
|
-
function summarize(current) {
|
|
325
|
-
const object = record(current);
|
|
326
|
-
if (Array.isArray(object.items)) return {
|
|
327
|
-
items: object.items.slice(0, 200).map(summarize),
|
|
328
|
-
truncated: object.items.length > 200
|
|
329
|
-
};
|
|
330
|
-
const status = record(object.status);
|
|
331
|
-
const metadata = record(object.metadata);
|
|
332
|
-
const environmentNames = /* @__PURE__ */ new Set();
|
|
333
|
-
function visit(currentSpec) {
|
|
334
|
-
if (Array.isArray(currentSpec)) {
|
|
335
|
-
currentSpec.forEach(visit);
|
|
336
|
-
return;
|
|
337
|
-
}
|
|
338
|
-
const item = record(currentSpec);
|
|
339
|
-
if (Array.isArray(item.env)) for (const entry of item.env) {
|
|
340
|
-
const name = record(entry).name;
|
|
341
|
-
if (typeof name === "string" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(name) && ![...environmentValues].some((literal) => name.includes(literal))) environmentNames.add(name);
|
|
342
|
-
}
|
|
343
|
-
for (const [key, nested] of Object.entries(item)) if (key !== "data" && key !== "stringData" && key !== "annotations" && key !== "env") visit(nested);
|
|
344
|
-
}
|
|
345
|
-
visit(object.spec);
|
|
346
|
-
const counts = {};
|
|
347
|
-
for (const key of [
|
|
348
|
-
"replicas",
|
|
349
|
-
"readyReplicas",
|
|
350
|
-
"availableReplicas",
|
|
351
|
-
"updatedReplicas",
|
|
352
|
-
"numberReady",
|
|
353
|
-
"desiredNumberScheduled",
|
|
354
|
-
"currentNumberScheduled",
|
|
355
|
-
"active",
|
|
356
|
-
"succeeded",
|
|
357
|
-
"failed"
|
|
358
|
-
]) if (typeof status[key] === "number" && Number.isFinite(status[key])) counts[key] = status[key];
|
|
359
|
-
const result = {
|
|
360
|
-
counts,
|
|
361
|
-
environmentNames: [...environmentNames].sort(),
|
|
362
|
-
detailsWithheld: true
|
|
363
|
-
};
|
|
364
|
-
if (object.spec !== void 0) result.spec = specSummary(object.spec);
|
|
365
|
-
for (const field of [
|
|
366
|
-
"data",
|
|
367
|
-
"stringData",
|
|
368
|
-
"binaryData"
|
|
369
|
-
]) if (object[field] !== void 0) result[`${field}Keys`] = payloadKeys(object[field]);
|
|
370
|
-
const kind = approved?.kind ?? object.kind;
|
|
371
|
-
const apiVersion = approved?.apiVersion;
|
|
372
|
-
const hiddenIdentity = (identity) => [...environmentValues].some((literal) => identity.includes(literal));
|
|
373
|
-
if (typeof kind === "string" && /^[A-Z][A-Za-z0-9]{0,100}$/.test(kind) && (approved ? object.kind === void 0 || object.kind === kind : kinds.has(kind)) && !hiddenIdentity(kind)) result.kind = kind;
|
|
374
|
-
if (typeof apiVersion === "string" && /^(?:[a-z0-9][a-z0-9.-]{0,200}\/)?v[0-9]+(?:(?:alpha|beta)[0-9]+)?$/.test(apiVersion) && (object.apiVersion === void 0 || object.apiVersion === apiVersion) && !hiddenIdentity(apiVersion)) result.apiVersion = apiVersion;
|
|
375
|
-
const name = safeIdentity(metadata.name);
|
|
376
|
-
const namespace = safeIdentity(metadata.namespace);
|
|
377
|
-
if (name) result.name = name;
|
|
378
|
-
if (namespace) result.namespace = namespace;
|
|
379
|
-
if (phases.has(status.phase)) result.phase = status.phase;
|
|
380
|
-
if (Array.isArray(status.conditions)) result.conditions = status.conditions.slice(0, 30).flatMap((value) => {
|
|
381
|
-
const condition = record(value);
|
|
382
|
-
return conditionTypes.has(condition.type) && conditionStatuses.has(condition.status) ? [{
|
|
383
|
-
type: condition.type,
|
|
384
|
-
status: condition.status
|
|
385
|
-
}] : [];
|
|
386
|
-
});
|
|
387
|
-
if (Array.isArray(status.containerStatuses)) result.containers = status.containerStatuses.slice(0, 100).map((value) => {
|
|
388
|
-
const container = record(value);
|
|
389
|
-
const summary = {};
|
|
390
|
-
const containerName = safeIdentity(container.name);
|
|
391
|
-
if (containerName) summary.name = containerName;
|
|
392
|
-
if (typeof container.ready === "boolean") summary.ready = container.ready;
|
|
393
|
-
if (typeof container.restartCount === "number" && Number.isSafeInteger(container.restartCount) && container.restartCount >= 0) summary.restartCount = container.restartCount;
|
|
394
|
-
const state = record(container.state);
|
|
395
|
-
for (const key of [
|
|
396
|
-
"running",
|
|
397
|
-
"waiting",
|
|
398
|
-
"terminated"
|
|
399
|
-
]) if (state[key] && typeof state[key] === "object") {
|
|
400
|
-
summary.state = key;
|
|
401
|
-
const detail = record(state[key]);
|
|
402
|
-
if (containerReasons.has(detail.reason)) summary.reason = detail.reason;
|
|
403
|
-
if (key === "terminated" && typeof detail.exitCode === "number" && Number.isSafeInteger(detail.exitCode)) summary.exitCode = detail.exitCode;
|
|
404
|
-
break;
|
|
405
|
-
}
|
|
406
|
-
return summary;
|
|
407
|
-
});
|
|
408
|
-
return result;
|
|
409
|
-
}
|
|
410
|
-
return summarize(value);
|
|
411
|
-
}
|
|
412
|
-
//#endregion
|
|
413
|
-
exports.AiUnsupportedResourceError = AiUnsupportedResourceError;
|
|
414
|
-
exports.aiReadPath = aiReadPath;
|
|
415
|
-
exports.aiReadQuery = aiReadQuery;
|
|
416
|
-
exports.summarizeAiResource = summarizeAiResource;
|
|
417
|
-
|
|
418
|
-
//# sourceMappingURL=ai-resources.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-resources.js","names":[],"sources":["../../src/main/ai-resources.ts"],"sourcesContent":["import type { AiLogQuery } from \"./ai-logs\";\nexport interface AiReadQuery {\n resource?: string;\n apiVersion: string;\n kind: string;\n namespace?: string;\n name?: string;\n}\n\nexport interface AiClusterConnection {\n read: (query: AiReadQuery, signal?: AbortSignal) => Promise<unknown>;\n discover?: (signal?: AbortSignal) => Promise<AiDiscoveredResource[]>;\n readLogs?: (query: AiLogQuery, signal?: AbortSignal) => Promise<unknown>;\n}\n\nexport interface AiDiscoveredResource {\n apiVersion: string;\n kind: string;\n resource: string;\n namespaced: boolean;\n verbs: (\"get\" | \"list\")[];\n}\n\nexport class AiUnsupportedResourceError extends Error {\n constructor() {\n super(\"UNSUPPORTED_RESOURCE\");\n }\n}\n\nexport interface AiReadRequest {\n apiVersion?: string | null;\n kind?: string | null;\n method: \"pods\" | \"nodes\" | \"resources\" | \"logs\";\n resource?: string;\n ref?: string | null;\n namespace?: string;\n name?: string;\n}\n\nconst resources: Record<string, { apiVersion: string; kind: string; namespaced: boolean }> = {\n pods: { apiVersion: \"v1\", kind: \"Pod\", namespaced: true },\n nodes: { apiVersion: \"v1\", kind: \"Node\", namespaced: false },\n deployments: { apiVersion: \"apps/v1\", kind: \"Deployment\", namespaced: true },\n statefulsets: { apiVersion: \"apps/v1\", kind: \"StatefulSet\", namespaced: true },\n daemonsets: { apiVersion: \"apps/v1\", kind: \"DaemonSet\", namespaced: true },\n replicasets: { apiVersion: \"apps/v1\", kind: \"ReplicaSet\", namespaced: true },\n services: { apiVersion: \"v1\", kind: \"Service\", namespaced: true },\n namespaces: { apiVersion: \"v1\", kind: \"Namespace\", namespaced: false },\n jobs: { apiVersion: \"batch/v1\", kind: \"Job\", namespaced: true },\n cronjobs: { apiVersion: \"batch/v1\", kind: \"CronJob\", namespaced: true },\n persistentvolumeclaims: { apiVersion: \"v1\", kind: \"PersistentVolumeClaim\", namespaced: true },\n persistentvolumes: { apiVersion: \"v1\", kind: \"PersistentVolume\", namespaced: false },\n ingresses: { apiVersion: \"networking.k8s.io/v1\", kind: \"Ingress\", namespaced: true },\n configmaps: { apiVersion: \"v1\", kind: \"ConfigMap\", namespaced: true },\n secrets: { apiVersion: \"v1\", kind: \"Secret\", namespaced: true },\n events: { apiVersion: \"v1\", kind: \"Event\", namespaced: true },\n \"certificates.cert-manager.io\": { apiVersion: \"cert-manager.io/v1\", kind: \"Certificate\", namespaced: true },\n \"certificaterequests.cert-manager.io\": {\n apiVersion: \"cert-manager.io/v1\",\n kind: \"CertificateRequest\",\n namespaced: true,\n },\n \"issuers.cert-manager.io\": { apiVersion: \"cert-manager.io/v1\", kind: \"Issuer\", namespaced: true },\n \"clusterissuers.cert-manager.io\": { apiVersion: \"cert-manager.io/v1\", kind: \"ClusterIssuer\", namespaced: false },\n};\n\nfunction identifier(value: unknown): string {\n if (typeof value !== \"string\" || !/^[a-z0-9][a-z0-9.-]{0,252}$/.test(value)) {\n throw new Error(\"Invalid Kubernetes resource identifier\");\n }\n return value;\n}\n\nexport function aiReadQuery(request: AiReadRequest, catalog: AiDiscoveredResource[] = []): AiReadQuery {\n if (!request || ![\"pods\", \"nodes\", \"resources\", \"logs\"].includes(request.method))\n throw new Error(\"Unsupported read method\");\n if (request.method === \"logs\")\n throw new Error(\"Raw logs are withheld because runtime environment values cannot be reliably removed\");\n const resource = request.method === \"resources\" ? request.resource : request.method;\n const known =\n resource && Object.hasOwn(resources, resource)\n ? resources[resource]\n : Object.values(resources).find((item) => request.apiVersion === item.apiVersion && request.kind === item.kind);\n const definition =\n catalog.find((item) =>\n request.apiVersion && request.kind\n ? item.apiVersion === request.apiVersion && item.kind === request.kind\n : resource === item.resource || resource === `${item.resource}.${item.apiVersion.split(\"/\")[0]}`,\n ) || known;\n if (\n !definition ||\n (request.apiVersion && request.apiVersion !== definition.apiVersion) ||\n (request.kind && request.kind !== definition.kind)\n )\n throw new AiUnsupportedResourceError();\n if (\"verbs\" in definition && !(definition.verbs as string[]).includes(request.name ? \"get\" : \"list\"))\n throw new AiUnsupportedResourceError();\n const query: AiReadQuery = { apiVersion: definition.apiVersion, kind: definition.kind };\n if (\"resource\" in definition) query.resource = definition.resource as string;\n if (request.name) query.name = identifier(request.name);\n if (request.namespace) {\n if (!definition.namespaced) throw new Error(\"This resource does not have a namespace\");\n query.namespace = identifier(request.namespace);\n }\n if (query.name && definition.namespaced && !query.namespace)\n throw new Error(\"A namespace is required to read a named resource\");\n return query;\n}\n\nexport function aiReadPath(query: AiReadQuery): string {\n if (!query.resource || !/^[a-z][a-z0-9-]{0,100}$/.test(query.resource)) throw new AiUnsupportedResourceError();\n const parts = query.apiVersion.split(\"/\");\n let path: string;\n if (parts.length === 1 && /^v[0-9]+(?:(?:alpha|beta)[0-9]+)?$/.test(parts[0])) path = `/api/${parts[0]}`;\n else if (\n parts.length === 2 &&\n /^[a-z0-9][a-z0-9.-]{0,200}$/.test(parts[0]) &&\n /^v[0-9]+(?:(?:alpha|beta)[0-9]+)?$/.test(parts[1])\n )\n path = `/apis/${parts[0]}/${parts[1]}`;\n else throw new AiUnsupportedResourceError();\n if (query.namespace) path += `/namespaces/${identifier(query.namespace)}`;\n path += `/${query.resource}`;\n if (query.name) path += `/${identifier(query.name)}`;\n return path;\n}\n\ntype RecordValue = Record<string, unknown>;\nfunction record(value: unknown): RecordValue {\n return value && typeof value === \"object\" && !Array.isArray(value) ? (value as RecordValue) : {};\n}\n\nconst kinds = new Set([\n \"Pod\",\n \"Node\",\n \"Deployment\",\n \"StatefulSet\",\n \"DaemonSet\",\n \"ReplicaSet\",\n \"Service\",\n \"Namespace\",\n \"Job\",\n \"CronJob\",\n \"PersistentVolumeClaim\",\n \"PersistentVolume\",\n \"Ingress\",\n \"ConfigMap\",\n \"Secret\",\n \"Event\",\n \"Certificate\",\n \"CertificateRequest\",\n \"Issuer\",\n \"ClusterIssuer\",\n]);\nconst phases = new Set([\n \"Pending\",\n \"Running\",\n \"Succeeded\",\n \"Failed\",\n \"Unknown\",\n \"Active\",\n \"Terminating\",\n \"Bound\",\n \"Available\",\n \"Released\",\n \"Lost\",\n]);\nconst conditionTypes = new Set([\n \"Ready\",\n \"Initialized\",\n \"ContainersReady\",\n \"PodScheduled\",\n \"PodReadyToStartContainers\",\n \"MemoryPressure\",\n \"DiskPressure\",\n \"PIDPressure\",\n \"NetworkUnavailable\",\n \"Available\",\n \"Progressing\",\n \"ReplicaFailure\",\n \"Complete\",\n \"Failed\",\n]);\nconst conditionStatuses = new Set([\"True\", \"False\", \"Unknown\"]);\nconst containerReasons = new Set([\n \"CrashLoopBackOff\",\n \"ImagePullBackOff\",\n \"ErrImagePull\",\n \"ContainerCreating\",\n \"PodInitializing\",\n \"CreateContainerConfigError\",\n \"CreateContainerError\",\n \"RunContainerError\",\n \"OOMKilled\",\n \"Completed\",\n \"Error\",\n]);\n\n// only fixed health enums, numeric status, validated identities and environment names leave this boundary\n// suppress identities containing literal environment values found anywhere in this response\nexport function summarizeAiResource(value: unknown, approved?: Pick<AiReadQuery, \"kind\" | \"apiVersion\">): unknown {\n const environmentValues = new Set<string>();\n function collect(current: unknown, owner: RecordValue = {}) {\n if (Array.isArray(current)) {\n current.forEach((entry) => collect(entry, owner));\n return;\n }\n const item = record(current);\n if (item.metadata && item.spec) owner = item;\n if (Array.isArray(item.env)) {\n for (const entry of item.env) {\n const literal = record(entry).value;\n if (typeof literal === \"string\" && literal) environmentValues.add(literal);\n const fieldPath = record(record(record(entry).valueFrom).fieldRef).fieldPath;\n if (\n typeof fieldPath === \"string\" &&\n [\n \"metadata.name\",\n \"metadata.namespace\",\n \"spec.nodeName\",\n \"spec.serviceAccountName\",\n \"status.hostIP\",\n \"status.podIP\",\n ].includes(fieldPath)\n ) {\n const [section, field] = fieldPath.split(\".\");\n const resolved = record(owner[section])[field];\n if (typeof resolved === \"string\" && resolved) environmentValues.add(resolved);\n }\n }\n }\n for (const [key, nested] of Object.entries(item)) {\n if (key !== \"data\" && key !== \"stringData\" && key !== \"annotations\" && key !== \"env\") collect(nested, owner);\n }\n }\n collect(value);\n function safeIdentity(input: unknown): string | undefined {\n if (typeof input !== \"string\" || !/^[a-z0-9][a-z0-9.-]{0,252}$/.test(input)) return undefined;\n if ([...environmentValues].some((literal) => input.includes(literal))) return undefined;\n return input;\n }\n let structuralBudget = 6000;\n const specEnums = new Set([\n \"Always\",\n \"Never\",\n \"OnFailure\",\n \"IfNotPresent\",\n \"TCP\",\n \"UDP\",\n \"SCTP\",\n \"ClusterIP\",\n \"NodePort\",\n \"LoadBalancer\",\n \"ExternalName\",\n \"ReadWriteOnce\",\n \"ReadOnlyMany\",\n \"ReadWriteMany\",\n \"ReadWriteOncePod\",\n \"Filesystem\",\n \"Block\",\n \"RollingUpdate\",\n \"Recreate\",\n \"ClusterFirst\",\n \"Default\",\n \"None\",\n \"ClusterFirstWithHostNet\",\n ]);\n function safeKey(key: string): boolean {\n return (\n /^[A-Za-z_][A-Za-z0-9_.-]{0,127}$/.test(key) && ![...environmentValues].some((literal) => key.includes(literal))\n );\n }\n function payloadKeys(value: unknown): string[] {\n return Object.keys(record(value)).filter(safeKey).slice(0, 100);\n }\n function specSummary(input: unknown, depth = 0): unknown {\n if (--structuralBudget < 0 || depth > 10) return \"[withheld]\";\n if (input === null || typeof input === \"boolean\") return input;\n if (typeof input === \"number\") return Number.isFinite(input) ? input : \"[withheld]\";\n if (typeof input === \"string\") {\n if ([...environmentValues].some((literal) => input.includes(literal))) return \"[withheld]\";\n return specEnums.has(input) || /^\\d+(?:\\.\\d+)?(?:m|Ki|Mi|Gi|Ti|Pi|Ei|k|M|G|T|P|E)?$/.test(input)\n ? input\n : \"[withheld]\";\n }\n if (Array.isArray(input)) return input.slice(0, 100).map((item) => specSummary(item, depth + 1));\n const output: Record<string, unknown> = Object.create(null);\n for (const [key, nested] of Object.entries(record(input)).slice(0, 100)) {\n if (!safeKey(key) || [\"annotations\", \"managedFields\"].includes(key)) continue;\n if ([\"data\", \"stringData\", \"binaryData\"].includes(key)) {\n output[`${key}Keys`] = payloadKeys(nested);\n continue;\n }\n if (\n /^(?:password|passwd|token|accessToken|refreshToken|idToken|clientSecret|privateKey|apiKey|credentials|authorization|connectionString|secretAccessKey|accessKey|secretKey|bearerToken|certificateData|clientKeyData)$/i.test(\n key.replace(/[_-]/g, \"\"),\n )\n ) {\n output[key] = \"[withheld]\";\n continue;\n }\n if (key === \"env\") {\n output.env = Array.isArray(nested)\n ? nested.slice(0, 100).flatMap((entry) => {\n const name = record(entry).name;\n return typeof name === \"string\" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(name) && safeKey(name)\n ? [{ name }]\n : [];\n })\n : [];\n continue;\n }\n output[key] = specSummary(nested, depth + 1);\n }\n return output;\n }\n function summarize(current: unknown): unknown {\n const object = record(current);\n if (Array.isArray(object.items))\n return {\n items: object.items.slice(0, 200).map(summarize),\n truncated: object.items.length > 200,\n };\n const status = record(object.status);\n const metadata = record(object.metadata);\n const environmentNames = new Set<string>();\n function visit(currentSpec: unknown) {\n if (Array.isArray(currentSpec)) {\n currentSpec.forEach(visit);\n return;\n }\n const item = record(currentSpec);\n if (Array.isArray(item.env)) {\n for (const entry of item.env) {\n const name = record(entry).name;\n if (\n typeof name === \"string\" &&\n /^[A-Za-z_][A-Za-z0-9_]*$/.test(name) &&\n ![...environmentValues].some((literal) => name.includes(literal))\n )\n environmentNames.add(name);\n }\n }\n for (const [key, nested] of Object.entries(item)) {\n if (key !== \"data\" && key !== \"stringData\" && key !== \"annotations\" && key !== \"env\") visit(nested);\n }\n }\n visit(object.spec);\n const counts: Record<string, number> = {};\n for (const key of [\n \"replicas\",\n \"readyReplicas\",\n \"availableReplicas\",\n \"updatedReplicas\",\n \"numberReady\",\n \"desiredNumberScheduled\",\n \"currentNumberScheduled\",\n \"active\",\n \"succeeded\",\n \"failed\",\n ]) {\n if (typeof status[key] === \"number\" && Number.isFinite(status[key])) counts[key] = status[key];\n }\n const result: Record<string, unknown> = {\n counts,\n environmentNames: [...environmentNames].sort(),\n detailsWithheld: true,\n };\n if (object.spec !== undefined) result.spec = specSummary(object.spec);\n for (const field of [\"data\", \"stringData\", \"binaryData\"]) {\n if (object[field] !== undefined) result[`${field}Keys`] = payloadKeys(object[field]);\n }\n const kind = approved?.kind ?? object.kind;\n const apiVersion = approved?.apiVersion;\n const hiddenIdentity = (identity: string) => [...environmentValues].some((literal) => identity.includes(literal));\n if (\n typeof kind === \"string\" &&\n /^[A-Z][A-Za-z0-9]{0,100}$/.test(kind) &&\n (approved ? object.kind === undefined || object.kind === kind : kinds.has(kind)) &&\n !hiddenIdentity(kind)\n )\n result.kind = kind;\n if (\n typeof apiVersion === \"string\" &&\n /^(?:[a-z0-9][a-z0-9.-]{0,200}\\/)?v[0-9]+(?:(?:alpha|beta)[0-9]+)?$/.test(apiVersion) &&\n (object.apiVersion === undefined || object.apiVersion === apiVersion) &&\n !hiddenIdentity(apiVersion)\n )\n result.apiVersion = apiVersion;\n const name = safeIdentity(metadata.name);\n const namespace = safeIdentity(metadata.namespace);\n if (name) result.name = name;\n if (namespace) result.namespace = namespace;\n if (phases.has(status.phase as string)) result.phase = status.phase;\n if (Array.isArray(status.conditions))\n result.conditions = status.conditions.slice(0, 30).flatMap((value) => {\n const condition = record(value);\n return conditionTypes.has(condition.type as string) && conditionStatuses.has(condition.status as string)\n ? [{ type: condition.type, status: condition.status }]\n : [];\n });\n if (Array.isArray(status.containerStatuses))\n result.containers = status.containerStatuses.slice(0, 100).map((value) => {\n const container = record(value);\n const summary: Record<string, unknown> = {};\n const containerName = safeIdentity(container.name);\n if (containerName) summary.name = containerName;\n if (typeof container.ready === \"boolean\") summary.ready = container.ready;\n if (\n typeof container.restartCount === \"number\" &&\n Number.isSafeInteger(container.restartCount) &&\n container.restartCount >= 0\n )\n summary.restartCount = container.restartCount;\n const state = record(container.state);\n for (const key of [\"running\", \"waiting\", \"terminated\"]) {\n if (state[key] && typeof state[key] === \"object\") {\n summary.state = key;\n const detail = record(state[key]);\n if (containerReasons.has(detail.reason as string)) summary.reason = detail.reason;\n if (key === \"terminated\" && typeof detail.exitCode === \"number\" && Number.isSafeInteger(detail.exitCode))\n summary.exitCode = detail.exitCode;\n break;\n }\n }\n return summary;\n });\n return result;\n }\n return summarize(value);\n}\n"],"mappings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