@ultrst-armada/kloks 1.16.0 → 1.17.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/.krusbl-release-attestation.json +3 -3
- package/package.json +1 -1
- package/packages/backend/dist/ai-keys/index.d.ts +1 -1
- package/packages/backend/dist/ai-keys/index.js +1 -1
- package/packages/backend/dist/ai-models/index.js +2 -2
- package/packages/backend/dist/ai-routing/index.js +3 -3
- package/packages/backend/dist/{chunk-F4J4YPUR.js → chunk-4WUVDLIQ.js} +1 -1
- package/packages/backend/dist/{chunk-HXFTSHCP.js → chunk-F7JDIU2C.js} +1 -1
- package/packages/backend/dist/{chunk-EWQYKBSN.js → chunk-RSKFM7AC.js} +4 -4
- package/packages/backend/dist/{chunk-AQT3GIXB.js → chunk-UYXROZPP.js} +2 -2
- package/packages/backend/dist/index.js +4 -4
- package/packages/backend/dist/krnl-ai-services.d.ts +1 -1
- package/packages/backend/dist/krnl-ai-services.js +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"packageName": "@ultrst-armada/kloks",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"sourceCommit": "
|
|
4
|
+
"version": "1.17.0",
|
|
5
|
+
"sourceCommit": "b54b0084d09f1e314ac1c1ab6e4ed320a623025f",
|
|
6
6
|
"releaseWorkflow": "npm Release",
|
|
7
|
-
"workflowRunId": "
|
|
7
|
+
"workflowRunId": "40837780737"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ declare class KeyStoreService {
|
|
|
33
33
|
private roundRobinIndices;
|
|
34
34
|
private forcedNextKeys;
|
|
35
35
|
private permanentKeys;
|
|
36
|
-
getKeys(providerId?: ProviderId): ApiKeyEntry[];
|
|
36
|
+
getKeys(providerId?: ProviderId, _modelId?: string): ApiKeyEntry[];
|
|
37
37
|
getKey(id: string): ApiKeyEntry | undefined;
|
|
38
38
|
getActiveKey(providerId: ProviderId): ApiKeyEntry | undefined;
|
|
39
39
|
setStrategy(strategy: RotationStrategy): void;
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
endpointRefresher,
|
|
8
8
|
modelCatalog,
|
|
9
9
|
modelHealthService
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-4WUVDLIQ.js";
|
|
11
|
+
import "../chunk-F7JDIU2C.js";
|
|
12
12
|
import "../chunk-MAMK4GDH.js";
|
|
13
13
|
import "../chunk-JSQZAFBU.js";
|
|
14
14
|
export {
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
failoverExecutionEngine,
|
|
7
7
|
healthCheckService,
|
|
8
8
|
metricsLogger
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-UYXROZPP.js";
|
|
10
|
+
import "../chunk-4WUVDLIQ.js";
|
|
11
|
+
import "../chunk-F7JDIU2C.js";
|
|
12
12
|
import "../chunk-SLR6SIEU.js";
|
|
13
13
|
import "../chunk-MAMK4GDH.js";
|
|
14
14
|
import "../chunk-JSQZAFBU.js";
|
|
@@ -97,7 +97,7 @@ var KeyStoreService = class {
|
|
|
97
97
|
roundRobinIndices = /* @__PURE__ */ new Map();
|
|
98
98
|
forcedNextKeys = /* @__PURE__ */ new Map();
|
|
99
99
|
permanentKeys = /* @__PURE__ */ new Map();
|
|
100
|
-
getKeys(providerId) {
|
|
100
|
+
getKeys(providerId, _modelId) {
|
|
101
101
|
const all = keysStorage.loadKeys();
|
|
102
102
|
if (!providerId) return all;
|
|
103
103
|
return all.filter((k) => k.providerId === providerId);
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from "./chunk-GCTQY24J.js";
|
|
11
11
|
import {
|
|
12
12
|
failoverExecutionEngine
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UYXROZPP.js";
|
|
14
14
|
import {
|
|
15
15
|
modelCatalog
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4WUVDLIQ.js";
|
|
17
17
|
import {
|
|
18
18
|
keyStore
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-F7JDIU2C.js";
|
|
20
20
|
import {
|
|
21
21
|
aiProviderService
|
|
22
22
|
} from "./chunk-SLR6SIEU.js";
|
|
@@ -173,7 +173,7 @@ var AIKeyServiceFacade = {
|
|
|
173
173
|
version: AIKeyServiceDefinition.version,
|
|
174
174
|
runtime: "server",
|
|
175
175
|
deployment: "local",
|
|
176
|
-
getKeys: (providerId) => keyStore.getKeys(providerId),
|
|
176
|
+
getKeys: (providerId, modelId) => keyStore.getKeys(providerId, modelId),
|
|
177
177
|
getStrategy: () => keyStore.getStrategy(),
|
|
178
178
|
getUsageStats: (keyId, modelId) => keyStore.getUsageStats(keyId, modelId),
|
|
179
179
|
addKey: (input) => keyStore.addKey(input),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
modelCatalog,
|
|
3
3
|
modelHealthService
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4WUVDLIQ.js";
|
|
5
5
|
import {
|
|
6
6
|
keyStore
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F7JDIU2C.js";
|
|
8
8
|
import {
|
|
9
9
|
aiProviderService
|
|
10
10
|
} from "./chunk-SLR6SIEU.js";
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
AIRoutingServiceFacade,
|
|
139
139
|
AIToolServiceDefinition,
|
|
140
140
|
AIToolServiceFacade
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-RSKFM7AC.js";
|
|
142
142
|
import {
|
|
143
143
|
MCPEngine,
|
|
144
144
|
ToolManagerService,
|
|
@@ -279,7 +279,7 @@ import {
|
|
|
279
279
|
failoverExecutionEngine,
|
|
280
280
|
healthCheckService,
|
|
281
281
|
metricsLogger
|
|
282
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-UYXROZPP.js";
|
|
283
283
|
import {
|
|
284
284
|
EndpointRefresher,
|
|
285
285
|
ModelCatalogService,
|
|
@@ -288,14 +288,14 @@ import {
|
|
|
288
288
|
endpointRefresher,
|
|
289
289
|
modelCatalog,
|
|
290
290
|
modelHealthService
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-4WUVDLIQ.js";
|
|
292
292
|
import {
|
|
293
293
|
KeyStoreService,
|
|
294
294
|
KeysStorage,
|
|
295
295
|
keyStore,
|
|
296
296
|
keysStorage,
|
|
297
297
|
validateApiKey
|
|
298
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-F7JDIU2C.js";
|
|
299
299
|
import {
|
|
300
300
|
AIProviderService,
|
|
301
301
|
aiProviderService
|
|
@@ -66,7 +66,7 @@ declare const AIKeyServiceFacade: {
|
|
|
66
66
|
version: string;
|
|
67
67
|
runtime: "server";
|
|
68
68
|
deployment: "local";
|
|
69
|
-
getKeys: (providerId?: string) => ApiKeyEntry[];
|
|
69
|
+
getKeys: (providerId?: string, modelId?: string) => ApiKeyEntry[];
|
|
70
70
|
getStrategy: () => RotationStrategy;
|
|
71
71
|
getUsageStats: (keyId?: string, modelId?: string) => KeyModelUsageStats[];
|
|
72
72
|
addKey: (input: any) => ApiKeyEntry;
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
AIRoutingServiceFacade,
|
|
12
12
|
AIToolServiceDefinition,
|
|
13
13
|
AIToolServiceFacade
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RSKFM7AC.js";
|
|
15
15
|
import "./chunk-U4HUGPRH.js";
|
|
16
16
|
import "./chunk-TY32TUNI.js";
|
|
17
17
|
import "./chunk-GCTQY24J.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-UYXROZPP.js";
|
|
19
|
+
import "./chunk-4WUVDLIQ.js";
|
|
20
|
+
import "./chunk-F7JDIU2C.js";
|
|
21
21
|
import "./chunk-SLR6SIEU.js";
|
|
22
22
|
import "./chunk-MAMK4GDH.js";
|
|
23
23
|
import "./chunk-JSQZAFBU.js";
|