@kwirthmagnify/kwirth-common-ai 0.5.62 → 0.5.63

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/dist/back.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ILlm, ILlmProvider, ECapability, EToolEffect, EToolSensitivity, IAiToolInfo, IAiToolsetInfo, IToolsetConfig } from './index';
2
- import type { AppsV1Api, CoreV1Api, NetworkingV1Api } from '@kubernetes/client-node';
2
+ import type { AppsV1Api, CoreV1Api, CustomObjectsApi, NetworkingV1Api } from '@kubernetes/client-node';
3
3
  interface ILogChannel {
4
4
  logInfo?: (msg: string) => void;
5
5
  logWarning?: (msg: string) => void;
@@ -69,6 +69,12 @@ export interface IK8sCapability {
69
69
  coreApi: CoreV1Api;
70
70
  appsApi: AppsV1Api;
71
71
  networkApi: NetworkingV1Api;
72
+ /**
73
+ * Custom resources. The three typed APIs above only reach built-in kinds, so without this a toolset
74
+ * cannot read a single CRD -- and that is where whole products live: Fleet, Kubewarden, Longhorn,
75
+ * Trivy. The core already builds this client at startup; it simply was not being lent.
76
+ */
77
+ crdApi: CustomObjectsApi;
72
78
  }
73
79
  export interface IMetricsPodSample {
74
80
  podRef?: {
package/dist/back.js CHANGED
@@ -460,7 +460,8 @@ const buildToolHost = (requires, context) => {
460
460
  nodes: context.nodes,
461
461
  coreApi: ci.coreApi,
462
462
  appsApi: ci.appsApi,
463
- networkApi: ci.networkApi
463
+ networkApi: ci.networkApi,
464
+ crdApi: ci.crdApi
464
465
  };
465
466
  }
466
467
  if (requires.includes(index_1.ECapability.METRICS))
package/dist/front.js CHANGED
@@ -40,14 +40,14 @@ exports.ToolSelector = exports.AiConfigProvider = exports.AiConfigLlm = exports.
40
40
  const react_1 = __importStar(require("react"));
41
41
  const material_1 = require("@mui/material");
42
42
  /*
43
- DEEP IMPORTS A PROPOSITO, no es un descuido.
43
+ DEEP IMPORTS ON PURPOSE, this is not an oversight.
44
44
 
45
- common-ai lo BUNDLEA el front (webpack), y '@mui/icons-material' es un barrel CommonJS que no se
46
- puede tree-shakear: importar de la raiz se lleva los ~2000 iconos al bundle. Medido: pasar estas
47
- cuatro lineas al barrel raiz engordo el main del front en 1,62 MB.
45
+ common-ai is BUNDLED by the front end (webpack), and '@mui/icons-material' is a CommonJS barrel that
46
+ cannot be tree-shaken: importing from the root takes the ~2000 icons into the bundle. Measured: moving
47
+ these four lines to the root barrel put 1.62 MB on the front end's main.
48
48
 
49
- Por eso la regla de "nada de deep imports" es solo para PLUGINS —ahi rompe @emotion, que carga su
50
- propia copia—, y common-front y common-ai son la excepcion documentada.
49
+ That is why the "no deep imports" rule is only for PLUGINS — there it breaks @emotion, which loads a
50
+ copy of its own — and common-front and common-ai are the documented exception.
51
51
  */
52
52
  const Download_1 = __importDefault(require("@mui/icons-material/Download"));
53
53
  const Upload_1 = __importDefault(require("@mui/icons-material/Upload"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwirthmagnify/kwirth-common-ai",
3
- "version": "0.5.62",
3
+ "version": "0.5.63",
4
4
  "description": "Shared AI/LLM types and utilities for Kwirth AI plugins",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q 2>nul & tsc",