@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 +7 -1
- package/dist/back.js +2 -1
- package/dist/front.js +6 -6
- package/package.json +1 -1
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
|
|
43
|
+
DEEP IMPORTS ON PURPOSE, this is not an oversight.
|
|
44
44
|
|
|
45
|
-
common-ai
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
50
|
-
|
|
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"));
|