@ultrst-armada/kloks 1.11.0 → 1.13.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 +36 -1
- package/packages/backend/dist/AITransportClient-dToGr8nj.d.ts +30 -0
- package/packages/backend/dist/ai-inference/index.d.ts +99 -0
- package/packages/backend/dist/ai-inference/index.js +21 -0
- package/packages/backend/dist/ai-keys/index.d.ts +88 -0
- package/packages/backend/dist/ai-keys/index.js +16 -0
- package/packages/backend/dist/ai-models/index.d.ts +85 -0
- package/packages/backend/dist/ai-models/index.js +24 -0
- package/packages/backend/dist/ai-provider/index.d.ts +32 -0
- package/packages/backend/dist/ai-provider/index.js +23 -0
- package/packages/backend/dist/ai-routing/index.d.ts +84 -0
- package/packages/backend/dist/ai-routing/index.js +21 -0
- package/packages/backend/dist/ai-tools/index.d.ts +80 -0
- package/packages/backend/dist/ai-tools/index.js +16 -0
- package/packages/backend/dist/chunk-2WT7OUHW.js +51 -0
- package/packages/backend/dist/chunk-4IYKKD53.js +178 -0
- package/packages/backend/dist/chunk-6GQNYRD6.js +32 -0
- package/packages/backend/dist/chunk-AM2PLPNE.js +157 -0
- package/packages/backend/dist/chunk-ERDBD4TH.js +137 -0
- package/packages/backend/dist/chunk-GCTQY24J.js +195 -0
- package/packages/backend/dist/chunk-IN3WRHXE.js +0 -0
- package/packages/backend/dist/chunk-JSQZAFBU.js +153 -0
- package/packages/backend/dist/chunk-LV55WKZR.js +0 -0
- package/packages/backend/dist/chunk-MAMK4GDH.js +73 -0
- package/packages/backend/dist/chunk-NITVHSB3.js +225 -0
- package/packages/backend/dist/chunk-NSKVYL74.js +74 -0
- package/packages/backend/dist/chunk-SLR6SIEU.js +77 -0
- package/packages/backend/dist/chunk-WVDSMTW3.js +0 -0
- package/packages/backend/dist/chunk-Z2FHVSNF.js +42 -0
- package/packages/backend/dist/chunk-Z3LXEA6P.js +45 -0
- package/packages/backend/dist/index.d.ts +9 -0
- package/packages/backend/dist/index.js +230 -103
- package/packages/backend/dist/krnl-ai-services.d.ts +71 -0
- package/packages/backend/dist/krnl-ai-services.js +38 -0
- package/packages/backend/dist/krnl-services.js +4 -4
- package/packages/backend/dist/storage/index.js +7 -7
- package/packages/backend/dist/types-2p2AhboE.d.ts +33 -0
- package/packages/backend/package.json +36 -1
- package/packages/contracts/dist/index.d.ts +33 -1
- package/packages/services/dist/index.d.ts +3 -1
- package/packages/services/dist/index.js +133 -6
- package/packages/state-graph/dist/index.js +14 -14
- package/packages/backend/dist/{chunk-UMEO6XS4.js → chunk-T26VJ22Y.js} +12 -12
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CompositeBackend,
|
|
3
|
-
EndpointGenerator,
|
|
4
|
-
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
5
|
-
NodeGraphPersistenceService,
|
|
6
|
-
createBackend,
|
|
7
|
-
createCompositeService,
|
|
8
|
-
createLocalService,
|
|
9
|
-
createRemoteService,
|
|
10
|
-
exportGraphAsJsonFile,
|
|
11
|
-
nodeGraphPersistence,
|
|
12
|
-
parseGraphJsonFile,
|
|
13
|
-
validateGraphDocument
|
|
14
|
-
} from "./chunk-RBF2OGMC.js";
|
|
15
1
|
import {
|
|
16
2
|
CANONICAL_SRKL_URL,
|
|
17
3
|
SrklClient,
|
|
@@ -49,6 +35,116 @@ import {
|
|
|
49
35
|
syncWorkspace,
|
|
50
36
|
workingWorkspaceService
|
|
51
37
|
} from "./chunk-BTMIK44G.js";
|
|
38
|
+
import {
|
|
39
|
+
validateToolInput
|
|
40
|
+
} from "./chunk-6GQNYRD6.js";
|
|
41
|
+
import {
|
|
42
|
+
BaseApiRoute,
|
|
43
|
+
createSSEResponse,
|
|
44
|
+
withAuth,
|
|
45
|
+
withCors
|
|
46
|
+
} from "./chunk-TWCEVES2.js";
|
|
47
|
+
import {
|
|
48
|
+
AdminGuard,
|
|
49
|
+
BaseAccountProvider,
|
|
50
|
+
LocalAccountProvider,
|
|
51
|
+
PasswordHasher
|
|
52
|
+
} from "./chunk-W6JNJD3Q.js";
|
|
53
|
+
import {
|
|
54
|
+
BackendProvider,
|
|
55
|
+
useBackend,
|
|
56
|
+
useBackendClient
|
|
57
|
+
} from "./chunk-N7OUR5R5.js";
|
|
58
|
+
import {
|
|
59
|
+
BackendRegistry,
|
|
60
|
+
ConcurrencyConflictError,
|
|
61
|
+
ConcurrencyManager,
|
|
62
|
+
HealthMonitor,
|
|
63
|
+
IdempotencyManager,
|
|
64
|
+
InProcessExecutor,
|
|
65
|
+
JobScheduler,
|
|
66
|
+
LoadBalancer,
|
|
67
|
+
LockManager,
|
|
68
|
+
RemoteExecutor,
|
|
69
|
+
createEmptyContract
|
|
70
|
+
} from "./chunk-5E6JRFUH.js";
|
|
71
|
+
import {
|
|
72
|
+
BackendClient,
|
|
73
|
+
BackendResolver,
|
|
74
|
+
CallbackRegistry,
|
|
75
|
+
EventBus,
|
|
76
|
+
FrontendSession,
|
|
77
|
+
HTTPTransport,
|
|
78
|
+
SequenceTracker,
|
|
79
|
+
WebSocketTransport,
|
|
80
|
+
createBackendClient
|
|
81
|
+
} from "./chunk-NIP22V2G.js";
|
|
82
|
+
import {
|
|
83
|
+
AuditLogger,
|
|
84
|
+
ControlPlaneManager,
|
|
85
|
+
DatabaseClusterManager,
|
|
86
|
+
detectDatabaseEngine,
|
|
87
|
+
getSystemDatabaseUrls,
|
|
88
|
+
resolveSystemDatabaseClusterNodes
|
|
89
|
+
} from "./chunk-RCCQ7IRM.js";
|
|
90
|
+
import {
|
|
91
|
+
AgentHarnessRuntime,
|
|
92
|
+
AgentHarnessServiceDefinition,
|
|
93
|
+
AgentHarnessServiceFacade,
|
|
94
|
+
CodeDiagnosticsService,
|
|
95
|
+
CodeValidationRuntime,
|
|
96
|
+
CodeValidationServiceDefinition,
|
|
97
|
+
CodeValidationServiceFacade,
|
|
98
|
+
DevelopmentRuntime,
|
|
99
|
+
DevelopmentServiceDefinition,
|
|
100
|
+
DevelopmentServiceFacade,
|
|
101
|
+
GitHubActionsClient,
|
|
102
|
+
GitHubActionsServiceDefinition,
|
|
103
|
+
GitHubActionsServiceFacade,
|
|
104
|
+
TYPESCRIPT_LANGUAGE_SERVER_PACKAGE,
|
|
105
|
+
TYPESCRIPT_LANGUAGE_SERVER_VERSION,
|
|
106
|
+
TypeScriptLanguageServerServiceDefinition,
|
|
107
|
+
TypeScriptLanguageServerServiceFacade,
|
|
108
|
+
WebContainerRuntime,
|
|
109
|
+
WebContainerServiceDefinition,
|
|
110
|
+
WebContainerServiceFacade,
|
|
111
|
+
codeDiagnosticsService,
|
|
112
|
+
resolveDevelopmentCommand
|
|
113
|
+
} from "./chunk-OYVHKYJW.js";
|
|
114
|
+
import {
|
|
115
|
+
CompositeBackend,
|
|
116
|
+
EndpointGenerator,
|
|
117
|
+
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
118
|
+
NodeGraphPersistenceService,
|
|
119
|
+
createBackend,
|
|
120
|
+
createCompositeService,
|
|
121
|
+
createLocalService,
|
|
122
|
+
createRemoteService,
|
|
123
|
+
exportGraphAsJsonFile,
|
|
124
|
+
nodeGraphPersistence,
|
|
125
|
+
parseGraphJsonFile,
|
|
126
|
+
validateGraphDocument
|
|
127
|
+
} from "./chunk-RBF2OGMC.js";
|
|
128
|
+
import {
|
|
129
|
+
AIInferenceServiceDefinition,
|
|
130
|
+
AIInferenceServiceFacade,
|
|
131
|
+
AIKeyServiceDefinition,
|
|
132
|
+
AIKeyServiceFacade,
|
|
133
|
+
AIModelCatalogServiceDefinition,
|
|
134
|
+
AIModelCatalogServiceFacade,
|
|
135
|
+
AIProviderServiceDefinition,
|
|
136
|
+
AIProviderServiceFacade,
|
|
137
|
+
AIRoutingServiceDefinition,
|
|
138
|
+
AIRoutingServiceFacade,
|
|
139
|
+
AIToolServiceDefinition,
|
|
140
|
+
AIToolServiceFacade
|
|
141
|
+
} from "./chunk-NITVHSB3.js";
|
|
142
|
+
import {
|
|
143
|
+
MCPEngine,
|
|
144
|
+
ToolManagerService,
|
|
145
|
+
mcpEngine,
|
|
146
|
+
toolManagerService
|
|
147
|
+
} from "./chunk-NSKVYL74.js";
|
|
52
148
|
import {
|
|
53
149
|
AuthServiceDefinition,
|
|
54
150
|
AuthServiceFacade,
|
|
@@ -82,15 +178,34 @@ import {
|
|
|
82
178
|
krnlWorkspaceGraphServiceFacade,
|
|
83
179
|
krnlWorkspaceServiceDefinition,
|
|
84
180
|
krnlWorkspaceServiceFacade
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import {
|
|
87
|
-
workspaceGraphService
|
|
88
|
-
} from "./chunk-VKSGYMAH.js";
|
|
181
|
+
} from "./chunk-T26VJ22Y.js";
|
|
89
182
|
import {
|
|
90
183
|
getPrimarySrklDeploymentUrl,
|
|
91
184
|
getSrklAccounts,
|
|
92
185
|
srklListBackblazeBuckets
|
|
93
186
|
} from "./chunk-XHADDA75.js";
|
|
187
|
+
import {
|
|
188
|
+
authorizeB2,
|
|
189
|
+
b2DownloadFile,
|
|
190
|
+
b2ListBuckets,
|
|
191
|
+
b2ListFileNames,
|
|
192
|
+
b2UploadFile
|
|
193
|
+
} from "./chunk-4QEMALXF.js";
|
|
194
|
+
import {
|
|
195
|
+
formatCanonicalWorkspaceFolderName,
|
|
196
|
+
sanitizeWorkspaceName
|
|
197
|
+
} from "./chunk-FZKBTF34.js";
|
|
198
|
+
import {
|
|
199
|
+
CanonicalAuthClient,
|
|
200
|
+
RateLimiter,
|
|
201
|
+
SessionManager,
|
|
202
|
+
createCanonicalAuthClient,
|
|
203
|
+
loginSystemUser,
|
|
204
|
+
resolveUserFromToken
|
|
205
|
+
} from "./chunk-WTBAG4AV.js";
|
|
206
|
+
import {
|
|
207
|
+
workspaceGraphService
|
|
208
|
+
} from "./chunk-VKSGYMAH.js";
|
|
94
209
|
import {
|
|
95
210
|
BackblazeB2Adapter,
|
|
96
211
|
LocalFSAdapter,
|
|
@@ -104,17 +219,6 @@ import {
|
|
|
104
219
|
renameS3Folder,
|
|
105
220
|
resolveBackblazeEndpoint
|
|
106
221
|
} from "./chunk-SHZAQTIT.js";
|
|
107
|
-
import {
|
|
108
|
-
authorizeB2,
|
|
109
|
-
b2DownloadFile,
|
|
110
|
-
b2ListBuckets,
|
|
111
|
-
b2ListFileNames,
|
|
112
|
-
b2UploadFile
|
|
113
|
-
} from "./chunk-4QEMALXF.js";
|
|
114
|
-
import {
|
|
115
|
-
formatCanonicalWorkspaceFolderName,
|
|
116
|
-
sanitizeWorkspaceName
|
|
117
|
-
} from "./chunk-FZKBTF34.js";
|
|
118
222
|
import {
|
|
119
223
|
createWorkspace,
|
|
120
224
|
deleteWorkspace,
|
|
@@ -152,88 +256,62 @@ import {
|
|
|
152
256
|
exchangeGoogleDriveCode,
|
|
153
257
|
refreshGoogleDriveAccessToken
|
|
154
258
|
} from "./chunk-KKRWZDMN.js";
|
|
259
|
+
import "./chunk-TY32TUNI.js";
|
|
155
260
|
import {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
withCors
|
|
160
|
-
} from "./chunk-TWCEVES2.js";
|
|
261
|
+
DeterministicEndpointExecutor,
|
|
262
|
+
deterministicEndpointExecutor
|
|
263
|
+
} from "./chunk-Z2FHVSNF.js";
|
|
161
264
|
import {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
265
|
+
InferenceExecutorService,
|
|
266
|
+
classifyAndFormatError,
|
|
267
|
+
inferenceExecutor,
|
|
268
|
+
parseErrorJson,
|
|
269
|
+
performInference
|
|
270
|
+
} from "./chunk-GCTQY24J.js";
|
|
271
|
+
import "./chunk-IN3WRHXE.js";
|
|
167
272
|
import {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
273
|
+
KeyStoreService,
|
|
274
|
+
KeysStorage,
|
|
275
|
+
keyStore,
|
|
276
|
+
keysStorage,
|
|
277
|
+
validateApiKey
|
|
278
|
+
} from "./chunk-4IYKKD53.js";
|
|
279
|
+
import "./chunk-LV55WKZR.js";
|
|
175
280
|
import {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
} from "./chunk-N7OUR5R5.js";
|
|
281
|
+
EndpointRefresher,
|
|
282
|
+
endpointRefresher
|
|
283
|
+
} from "./chunk-2WT7OUHW.js";
|
|
180
284
|
import {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
InProcessExecutor,
|
|
187
|
-
JobScheduler,
|
|
188
|
-
LoadBalancer,
|
|
189
|
-
LockManager,
|
|
190
|
-
RemoteExecutor,
|
|
191
|
-
createEmptyContract
|
|
192
|
-
} from "./chunk-5E6JRFUH.js";
|
|
285
|
+
ModelCatalogService,
|
|
286
|
+
STATIC_MODELS_CATALOG,
|
|
287
|
+
modelCatalog
|
|
288
|
+
} from "./chunk-AM2PLPNE.js";
|
|
289
|
+
import "./chunk-WVDSMTW3.js";
|
|
193
290
|
import {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
WebSocketTransport,
|
|
202
|
-
createBackendClient
|
|
203
|
-
} from "./chunk-NIP22V2G.js";
|
|
291
|
+
FailoverExecutionEngine,
|
|
292
|
+
HealthCheckService,
|
|
293
|
+
MetricsLogger,
|
|
294
|
+
failoverExecutionEngine,
|
|
295
|
+
healthCheckService,
|
|
296
|
+
metricsLogger
|
|
297
|
+
} from "./chunk-ERDBD4TH.js";
|
|
204
298
|
import {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
detectDatabaseEngine,
|
|
209
|
-
getSystemDatabaseUrls,
|
|
210
|
-
resolveSystemDatabaseClusterNodes
|
|
211
|
-
} from "./chunk-RCCQ7IRM.js";
|
|
299
|
+
AIProviderService,
|
|
300
|
+
aiProviderService
|
|
301
|
+
} from "./chunk-SLR6SIEU.js";
|
|
212
302
|
import {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
GitHubActionsServiceFacade,
|
|
226
|
-
TYPESCRIPT_LANGUAGE_SERVER_PACKAGE,
|
|
227
|
-
TYPESCRIPT_LANGUAGE_SERVER_VERSION,
|
|
228
|
-
TypeScriptLanguageServerServiceDefinition,
|
|
229
|
-
TypeScriptLanguageServerServiceFacade,
|
|
230
|
-
WebContainerRuntime,
|
|
231
|
-
WebContainerServiceDefinition,
|
|
232
|
-
WebContainerServiceFacade,
|
|
233
|
-
codeDiagnosticsService,
|
|
234
|
-
resolveDevelopmentCommand
|
|
235
|
-
} from "./chunk-OYVHKYJW.js";
|
|
236
|
-
import "./chunk-TY32TUNI.js";
|
|
303
|
+
ModelHealthService,
|
|
304
|
+
modelHealthService
|
|
305
|
+
} from "./chunk-Z3LXEA6P.js";
|
|
306
|
+
import {
|
|
307
|
+
AITransportClient
|
|
308
|
+
} from "./chunk-MAMK4GDH.js";
|
|
309
|
+
import {
|
|
310
|
+
PROVIDERS_META,
|
|
311
|
+
PROVIDER_COLORS,
|
|
312
|
+
getProviderMeta,
|
|
313
|
+
listProviders
|
|
314
|
+
} from "./chunk-JSQZAFBU.js";
|
|
237
315
|
|
|
238
316
|
// src/data/BaseDataProvider.ts
|
|
239
317
|
import { SkipoBase } from "@ultrst-armada/kloks/functions";
|
|
@@ -4335,6 +4413,20 @@ function tryResolveSystemDatabaseUrl(env = typeof process !== "undefined" ? proc
|
|
|
4335
4413
|
return url || null;
|
|
4336
4414
|
}
|
|
4337
4415
|
export {
|
|
4416
|
+
AIInferenceServiceDefinition,
|
|
4417
|
+
AIInferenceServiceFacade,
|
|
4418
|
+
AIKeyServiceDefinition,
|
|
4419
|
+
AIKeyServiceFacade,
|
|
4420
|
+
AIModelCatalogServiceDefinition,
|
|
4421
|
+
AIModelCatalogServiceFacade,
|
|
4422
|
+
AIProviderService,
|
|
4423
|
+
AIProviderServiceDefinition,
|
|
4424
|
+
AIProviderServiceFacade,
|
|
4425
|
+
AIRoutingServiceDefinition,
|
|
4426
|
+
AIRoutingServiceFacade,
|
|
4427
|
+
AIToolServiceDefinition,
|
|
4428
|
+
AIToolServiceFacade,
|
|
4429
|
+
AITransportClient,
|
|
4338
4430
|
AdminGuard,
|
|
4339
4431
|
AgentHarnessRuntime,
|
|
4340
4432
|
AgentHarnessServiceDefinition,
|
|
@@ -4369,11 +4461,14 @@ export {
|
|
|
4369
4461
|
DatabaseClusterManager,
|
|
4370
4462
|
DatabaseServiceDefinition,
|
|
4371
4463
|
DatabaseServiceFacade,
|
|
4464
|
+
DeterministicEndpointExecutor,
|
|
4372
4465
|
DevelopmentRuntime,
|
|
4373
4466
|
DevelopmentServiceDefinition,
|
|
4374
4467
|
DevelopmentServiceFacade,
|
|
4375
4468
|
EndpointGenerator,
|
|
4469
|
+
EndpointRefresher,
|
|
4376
4470
|
EventBus,
|
|
4471
|
+
FailoverExecutionEngine,
|
|
4377
4472
|
FrontendSession,
|
|
4378
4473
|
FunctionalityTable,
|
|
4379
4474
|
GRAPHS_ROOT,
|
|
@@ -4384,18 +4479,28 @@ export {
|
|
|
4384
4479
|
GitHubActionsServiceFacade,
|
|
4385
4480
|
GoogleDriveAdapter,
|
|
4386
4481
|
HTTPTransport,
|
|
4482
|
+
HealthCheckService,
|
|
4387
4483
|
HealthMonitor,
|
|
4388
4484
|
IdempotencyManager,
|
|
4389
4485
|
InProcessExecutor,
|
|
4486
|
+
InferenceExecutorService,
|
|
4390
4487
|
JobScheduler,
|
|
4488
|
+
KeyStoreService,
|
|
4489
|
+
KeysStorage,
|
|
4391
4490
|
LEGACY_PROJECTS_ROOT,
|
|
4392
4491
|
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
4393
4492
|
LoadBalancer,
|
|
4394
4493
|
LocalAccountProvider,
|
|
4395
4494
|
LocalFSAdapter,
|
|
4396
4495
|
LockManager,
|
|
4496
|
+
MCPEngine,
|
|
4497
|
+
MetricsLogger,
|
|
4498
|
+
ModelCatalogService,
|
|
4499
|
+
ModelHealthService,
|
|
4397
4500
|
NodeGraphPersistenceService,
|
|
4398
4501
|
PROJECTS_ROOT,
|
|
4502
|
+
PROVIDERS_META,
|
|
4503
|
+
PROVIDER_COLORS,
|
|
4399
4504
|
PasswordHasher,
|
|
4400
4505
|
RateLimiter,
|
|
4401
4506
|
RemoteExecutor,
|
|
@@ -4403,6 +4508,7 @@ export {
|
|
|
4403
4508
|
ResourceFetcherRegistry,
|
|
4404
4509
|
S3Adapter,
|
|
4405
4510
|
SAMPLES_GLOBAL_ROOT,
|
|
4511
|
+
STATIC_MODELS_CATALOG,
|
|
4406
4512
|
SUPPORTED_AUDIO_EXTS,
|
|
4407
4513
|
SUPPORTED_MIDI_EXTS,
|
|
4408
4514
|
SequenceTracker,
|
|
@@ -4420,6 +4526,7 @@ export {
|
|
|
4420
4526
|
SyncEngine,
|
|
4421
4527
|
TYPESCRIPT_LANGUAGE_SERVER_PACKAGE,
|
|
4422
4528
|
TYPESCRIPT_LANGUAGE_SERVER_VERSION,
|
|
4529
|
+
ToolManagerService,
|
|
4423
4530
|
TypeScriptLanguageServerServiceDefinition,
|
|
4424
4531
|
TypeScriptLanguageServerServiceFacade,
|
|
4425
4532
|
VercelResourceFetcher,
|
|
@@ -4436,6 +4543,7 @@ export {
|
|
|
4436
4543
|
WorkspaceGraphServiceFacade,
|
|
4437
4544
|
WorkspaceServiceDefinition,
|
|
4438
4545
|
WorkspaceServiceFacade,
|
|
4546
|
+
aiProviderService,
|
|
4439
4547
|
authorizeB2,
|
|
4440
4548
|
b2DeleteFileVersion,
|
|
4441
4549
|
b2DeleteFolder,
|
|
@@ -4445,6 +4553,7 @@ export {
|
|
|
4445
4553
|
b2UploadFile,
|
|
4446
4554
|
buildProjectObservability,
|
|
4447
4555
|
buildProjectsList,
|
|
4556
|
+
classifyAndFormatError,
|
|
4448
4557
|
cleanDbUrl,
|
|
4449
4558
|
codeDiagnosticsService,
|
|
4450
4559
|
computeDeploymentFinalWeight,
|
|
@@ -4483,7 +4592,9 @@ export {
|
|
|
4483
4592
|
deleteWorkspaceFolder,
|
|
4484
4593
|
deleteWorkspaceGraph,
|
|
4485
4594
|
detectDatabaseEngine,
|
|
4595
|
+
deterministicEndpointExecutor,
|
|
4486
4596
|
encryptSecretToBlob,
|
|
4597
|
+
endpointRefresher,
|
|
4487
4598
|
ensureAssetPoolDirectories,
|
|
4488
4599
|
ensureGlobalSamples,
|
|
4489
4600
|
ensureGraphAssetDirectories,
|
|
@@ -4494,6 +4605,7 @@ export {
|
|
|
4494
4605
|
exchangeGoogleDriveCode,
|
|
4495
4606
|
exportEncryptedCredentials,
|
|
4496
4607
|
exportGraphAsJsonFile,
|
|
4608
|
+
failoverExecutionEngine,
|
|
4497
4609
|
fetchCloudflareData,
|
|
4498
4610
|
fetchVercelData,
|
|
4499
4611
|
findUserWorkspace,
|
|
@@ -4514,6 +4626,7 @@ export {
|
|
|
4514
4626
|
getPrimarySrklDeploymentUrl2 as getPrimarySrklCoreDeploymentUrl,
|
|
4515
4627
|
getPrimarySrklDeploymentUrl,
|
|
4516
4628
|
getProjectById,
|
|
4629
|
+
getProviderMeta,
|
|
4517
4630
|
getPublicRouteByPath,
|
|
4518
4631
|
getPublicRoutes,
|
|
4519
4632
|
getSrklAccounts,
|
|
@@ -4531,12 +4644,16 @@ export {
|
|
|
4531
4644
|
getWorkspaceStorageDetails,
|
|
4532
4645
|
getWorkspaces,
|
|
4533
4646
|
globalCredentialRegistry,
|
|
4647
|
+
healthCheckService,
|
|
4534
4648
|
hexToBytes,
|
|
4535
4649
|
importEncryptedCredentials,
|
|
4536
4650
|
importGraphDependency,
|
|
4651
|
+
inferenceExecutor,
|
|
4537
4652
|
initGlobalSamplesDirectory,
|
|
4538
4653
|
isB2Workspace,
|
|
4539
4654
|
isSecretMasked,
|
|
4655
|
+
keyStore,
|
|
4656
|
+
keysStorage,
|
|
4540
4657
|
krnlAuthServiceDefinition,
|
|
4541
4658
|
krnlAuthServiceFacade,
|
|
4542
4659
|
krnlControlPlaneServiceDefinition,
|
|
@@ -4559,6 +4676,7 @@ export {
|
|
|
4559
4676
|
listCredentials,
|
|
4560
4677
|
listGlobalSamples,
|
|
4561
4678
|
listProjectSamples,
|
|
4679
|
+
listProviders,
|
|
4562
4680
|
listWorkspaceFiles,
|
|
4563
4681
|
listWorkspaceGraphs,
|
|
4564
4682
|
loadCredentialManifest,
|
|
@@ -4567,11 +4685,17 @@ export {
|
|
|
4567
4685
|
loginUser,
|
|
4568
4686
|
matchGatewayIngress,
|
|
4569
4687
|
matchGatewayIngressAsync,
|
|
4688
|
+
mcpEngine,
|
|
4689
|
+
metricsLogger,
|
|
4690
|
+
modelCatalog,
|
|
4691
|
+
modelHealthService,
|
|
4570
4692
|
nodeGraphPersistence,
|
|
4571
4693
|
normalizeBackblazeCredentials,
|
|
4694
|
+
parseErrorJson,
|
|
4572
4695
|
parseGraphJsonFile,
|
|
4573
4696
|
pauseCloudflarePagesProject,
|
|
4574
4697
|
pauseVercelProject,
|
|
4698
|
+
performInference,
|
|
4575
4699
|
permanentDeleteS3Folder,
|
|
4576
4700
|
permanentDeleteS3Object,
|
|
4577
4701
|
queryUnifiedDb,
|
|
@@ -4617,6 +4741,7 @@ export {
|
|
|
4617
4741
|
syncWorkspaceCreateToBucket,
|
|
4618
4742
|
syncWorkspaceDataToBucket,
|
|
4619
4743
|
syncWorkspaceDeleteToBucket,
|
|
4744
|
+
toolManagerService,
|
|
4620
4745
|
tryResolveSystemDatabaseUrl,
|
|
4621
4746
|
updateCredential,
|
|
4622
4747
|
updateWorkspace,
|
|
@@ -4624,8 +4749,10 @@ export {
|
|
|
4624
4749
|
useBackend,
|
|
4625
4750
|
useBackendClient,
|
|
4626
4751
|
useSrklServices,
|
|
4752
|
+
validateApiKey,
|
|
4627
4753
|
validateGraphDocument,
|
|
4628
4754
|
validateServiceDefinition,
|
|
4755
|
+
validateToolInput,
|
|
4629
4756
|
withAuth,
|
|
4630
4757
|
withCors,
|
|
4631
4758
|
workingWorkspaceService,
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as _ultrst_armada_krnl from '@ultrst-armada/krnl';
|
|
2
|
+
import { ServiceDefinition } from '@ultrst-armada/krnl';
|
|
3
|
+
|
|
4
|
+
declare const AIProviderServiceDefinition: ServiceDefinition;
|
|
5
|
+
declare const AIProviderServiceFacade: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
version: string;
|
|
9
|
+
runtime: "server";
|
|
10
|
+
deployment: "local";
|
|
11
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
12
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
13
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
14
|
+
};
|
|
15
|
+
declare const AIInferenceServiceDefinition: ServiceDefinition;
|
|
16
|
+
declare const AIInferenceServiceFacade: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
version: string;
|
|
20
|
+
runtime: "server";
|
|
21
|
+
deployment: "local";
|
|
22
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
23
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
24
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
25
|
+
};
|
|
26
|
+
declare const AIModelCatalogServiceDefinition: ServiceDefinition;
|
|
27
|
+
declare const AIModelCatalogServiceFacade: {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
version: string;
|
|
31
|
+
runtime: "server";
|
|
32
|
+
deployment: "local";
|
|
33
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
34
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
35
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
36
|
+
};
|
|
37
|
+
declare const AIRoutingServiceDefinition: ServiceDefinition;
|
|
38
|
+
declare const AIRoutingServiceFacade: {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
version: string;
|
|
42
|
+
runtime: "server";
|
|
43
|
+
deployment: "local";
|
|
44
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
45
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
46
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
47
|
+
};
|
|
48
|
+
declare const AIKeyServiceDefinition: ServiceDefinition;
|
|
49
|
+
declare const AIKeyServiceFacade: {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
version: string;
|
|
53
|
+
runtime: "server";
|
|
54
|
+
deployment: "local";
|
|
55
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
56
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
57
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
58
|
+
};
|
|
59
|
+
declare const AIToolServiceDefinition: ServiceDefinition;
|
|
60
|
+
declare const AIToolServiceFacade: {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
version: string;
|
|
64
|
+
runtime: "server";
|
|
65
|
+
deployment: "local";
|
|
66
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
67
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
68
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export { AIInferenceServiceDefinition, AIInferenceServiceFacade, AIKeyServiceDefinition, AIKeyServiceFacade, AIModelCatalogServiceDefinition, AIModelCatalogServiceFacade, AIProviderServiceDefinition, AIProviderServiceFacade, AIRoutingServiceDefinition, AIRoutingServiceFacade, AIToolServiceDefinition, AIToolServiceFacade };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AIInferenceServiceDefinition,
|
|
3
|
+
AIInferenceServiceFacade,
|
|
4
|
+
AIKeyServiceDefinition,
|
|
5
|
+
AIKeyServiceFacade,
|
|
6
|
+
AIModelCatalogServiceDefinition,
|
|
7
|
+
AIModelCatalogServiceFacade,
|
|
8
|
+
AIProviderServiceDefinition,
|
|
9
|
+
AIProviderServiceFacade,
|
|
10
|
+
AIRoutingServiceDefinition,
|
|
11
|
+
AIRoutingServiceFacade,
|
|
12
|
+
AIToolServiceDefinition,
|
|
13
|
+
AIToolServiceFacade
|
|
14
|
+
} from "./chunk-NITVHSB3.js";
|
|
15
|
+
import "./chunk-NSKVYL74.js";
|
|
16
|
+
import "./chunk-TY32TUNI.js";
|
|
17
|
+
import "./chunk-GCTQY24J.js";
|
|
18
|
+
import "./chunk-4IYKKD53.js";
|
|
19
|
+
import "./chunk-AM2PLPNE.js";
|
|
20
|
+
import "./chunk-ERDBD4TH.js";
|
|
21
|
+
import "./chunk-SLR6SIEU.js";
|
|
22
|
+
import "./chunk-Z3LXEA6P.js";
|
|
23
|
+
import "./chunk-MAMK4GDH.js";
|
|
24
|
+
import "./chunk-JSQZAFBU.js";
|
|
25
|
+
export {
|
|
26
|
+
AIInferenceServiceDefinition,
|
|
27
|
+
AIInferenceServiceFacade,
|
|
28
|
+
AIKeyServiceDefinition,
|
|
29
|
+
AIKeyServiceFacade,
|
|
30
|
+
AIModelCatalogServiceDefinition,
|
|
31
|
+
AIModelCatalogServiceFacade,
|
|
32
|
+
AIProviderServiceDefinition,
|
|
33
|
+
AIProviderServiceFacade,
|
|
34
|
+
AIRoutingServiceDefinition,
|
|
35
|
+
AIRoutingServiceFacade,
|
|
36
|
+
AIToolServiceDefinition,
|
|
37
|
+
AIToolServiceFacade
|
|
38
|
+
};
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
krnlWorkspaceGraphServiceFacade,
|
|
32
32
|
krnlWorkspaceServiceDefinition,
|
|
33
33
|
krnlWorkspaceServiceFacade
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-VKSGYMAH.js";
|
|
34
|
+
} from "./chunk-T26VJ22Y.js";
|
|
36
35
|
import "./chunk-XHADDA75.js";
|
|
37
|
-
import "./chunk-SHZAQTIT.js";
|
|
38
36
|
import "./chunk-4QEMALXF.js";
|
|
39
37
|
import "./chunk-FZKBTF34.js";
|
|
38
|
+
import "./chunk-WTBAG4AV.js";
|
|
39
|
+
import "./chunk-VKSGYMAH.js";
|
|
40
|
+
import "./chunk-SHZAQTIT.js";
|
|
40
41
|
import "./chunk-6K75XXFD.js";
|
|
41
42
|
import "./chunk-VAFCR2MS.js";
|
|
42
43
|
import "./chunk-KKRWZDMN.js";
|
|
43
|
-
import "./chunk-WTBAG4AV.js";
|
|
44
44
|
import "./chunk-TY32TUNI.js";
|
|
45
45
|
export {
|
|
46
46
|
AuthServiceDefinition,
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
S3Adapter
|
|
3
3
|
} from "../chunk-RBQ4CW3T.js";
|
|
4
|
+
import {
|
|
5
|
+
authorizeB2,
|
|
6
|
+
b2DownloadFile,
|
|
7
|
+
b2ListBuckets,
|
|
8
|
+
b2ListFileNames,
|
|
9
|
+
b2UploadFile
|
|
10
|
+
} from "../chunk-4QEMALXF.js";
|
|
4
11
|
import {
|
|
5
12
|
BackblazeB2Adapter,
|
|
6
13
|
LocalFSAdapter,
|
|
@@ -14,13 +21,6 @@ import {
|
|
|
14
21
|
renameS3Folder,
|
|
15
22
|
resolveBackblazeEndpoint
|
|
16
23
|
} from "../chunk-SHZAQTIT.js";
|
|
17
|
-
import {
|
|
18
|
-
authorizeB2,
|
|
19
|
-
b2DownloadFile,
|
|
20
|
-
b2ListBuckets,
|
|
21
|
-
b2ListFileNames,
|
|
22
|
-
b2UploadFile
|
|
23
|
-
} from "../chunk-4QEMALXF.js";
|
|
24
24
|
import {
|
|
25
25
|
BaseStorageAdapter,
|
|
26
26
|
GoogleDriveAdapter,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file types.ts
|
|
3
|
+
* @description Canonical AI Provider domain types for @ultrst-armada/kloks/backend
|
|
4
|
+
*/
|
|
5
|
+
type ProviderId = 'google' | 'groq' | 'cerebras' | 'openrouter' | 'together' | 'nvidia' | 'huggingface' | 'anthropic' | 'openai' | string;
|
|
6
|
+
interface ProviderCapabilities {
|
|
7
|
+
supportsTools: boolean;
|
|
8
|
+
supportsVision: boolean;
|
|
9
|
+
supportsStreaming: boolean;
|
|
10
|
+
supportsJsonOutput: boolean;
|
|
11
|
+
supportsCreditsCheck: boolean;
|
|
12
|
+
maxContextWindow?: number;
|
|
13
|
+
}
|
|
14
|
+
interface ProviderMeta {
|
|
15
|
+
id: ProviderId;
|
|
16
|
+
name: string;
|
|
17
|
+
baseUrl: string;
|
|
18
|
+
modelsEndpoint: string;
|
|
19
|
+
defaultHeaderKey: string;
|
|
20
|
+
supportsCreditsCheck: boolean;
|
|
21
|
+
docUrl: string;
|
|
22
|
+
description: string;
|
|
23
|
+
capabilities?: Partial<ProviderCapabilities>;
|
|
24
|
+
}
|
|
25
|
+
interface AIProviderStatus {
|
|
26
|
+
id: ProviderId;
|
|
27
|
+
isOnline: boolean;
|
|
28
|
+
latencyMs: number;
|
|
29
|
+
lastCheckedAt: string;
|
|
30
|
+
error?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type { AIProviderStatus as A, ProviderCapabilities as P, ProviderId as a, ProviderMeta as b };
|