@ultrst-armada/kloks 1.21.0 → 1.21.1
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 -0
- 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-RSKFM7AC.js → chunk-KPLQLZHB.js} +7 -4
- package/packages/backend/dist/{chunk-4WUVDLIQ.js → chunk-LMWXONZG.js} +1 -1
- package/packages/backend/dist/{chunk-F7JDIU2C.js → chunk-P7H6TIEA.js} +3 -0
- package/packages/backend/dist/{chunk-UYXROZPP.js → chunk-PT6J6UEU.js} +2 -2
- package/packages/backend/dist/index.js +66 -66
- package/packages/backend/dist/krnl-ai-services.d.ts +12 -2
- package/packages/backend/dist/krnl-ai-services.js +4 -4
- package/packages/backend/dist/krnl-services.js +5 -5
- package/packages/backend/dist/services/index.js +1 -1
- package/packages/backend/dist/storage/index.js +7 -7
- package/packages/backend/dist/workspace/index.js +2 -2
- package/packages/fod/dist/index.js +2 -2
- package/packages/backend/dist/{chunk-2XTHJI4I.js → chunk-6DNGLKAV.js} +3 -3
- package/packages/backend/dist/{chunk-4ONX56XS.js → chunk-LCRK2QSY.js} +13 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"packageName": "@ultrst-armada/kloks",
|
|
4
|
-
"version": "1.21.
|
|
5
|
-
"sourceCommit": "
|
|
4
|
+
"version": "1.21.1",
|
|
5
|
+
"sourceCommit": "00c11733eb2e2db55059254b449ef2fd91f773bf",
|
|
6
6
|
"releaseWorkflow": "npm Release",
|
|
7
|
-
"workflowRunId": "
|
|
7
|
+
"workflowRunId": "41029589624"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -46,6 +46,7 @@ declare class KeyStoreService {
|
|
|
46
46
|
peekNextKey(providerId: ProviderId, _modelId?: string): ApiKeyEntry | null;
|
|
47
47
|
getNextKey(providerId: ProviderId, modelId?: string): ApiKeyEntry | null;
|
|
48
48
|
selectNextKey(providerId: ProviderId, _modelId?: string): ApiKeyEntry | undefined;
|
|
49
|
+
rotateKey(providerId: ProviderId): ApiKeyEntry | null;
|
|
49
50
|
updateKeyLabel(id: string, label: string): ApiKeyEntry | undefined;
|
|
50
51
|
deleteKey(id: string): boolean;
|
|
51
52
|
resetKeyProbabilities(id: string): ApiKeyEntry | undefined;
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
endpointRefresher,
|
|
8
8
|
modelCatalog,
|
|
9
9
|
modelHealthService
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-LMWXONZG.js";
|
|
11
|
+
import "../chunk-P7H6TIEA.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-PT6J6UEU.js";
|
|
10
|
+
import "../chunk-LMWXONZG.js";
|
|
11
|
+
import "../chunk-P7H6TIEA.js";
|
|
12
12
|
import "../chunk-SLR6SIEU.js";
|
|
13
13
|
import "../chunk-MAMK4GDH.js";
|
|
14
14
|
import "../chunk-JSQZAFBU.js";
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from "./chunk-GCTQY24J.js";
|
|
11
11
|
import {
|
|
12
12
|
failoverExecutionEngine
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PT6J6UEU.js";
|
|
14
14
|
import {
|
|
15
15
|
modelCatalog
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LMWXONZG.js";
|
|
17
17
|
import {
|
|
18
18
|
keyStore
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-P7H6TIEA.js";
|
|
20
20
|
import {
|
|
21
21
|
aiProviderService
|
|
22
22
|
} from "./chunk-SLR6SIEU.js";
|
|
@@ -175,8 +175,11 @@ var AIKeyServiceFacade = {
|
|
|
175
175
|
deployment: "local",
|
|
176
176
|
getKeys: (providerId, modelId) => keyStore.getKeys(providerId, modelId),
|
|
177
177
|
getStrategy: () => keyStore.getStrategy(),
|
|
178
|
-
getUsageStats: (keyId, modelId) => keyStore.getUsageStats(keyId, modelId),
|
|
179
178
|
addKey: (input) => keyStore.addKey(input),
|
|
179
|
+
getActiveKey: (providerId) => keyStore.getActiveKey(providerId),
|
|
180
|
+
rotateKey: (providerId) => keyStore.rotateKey(providerId),
|
|
181
|
+
importKeys: (payload) => keyStore.importKeys(payload),
|
|
182
|
+
exportKeysStructured: () => keyStore.exportKeysStructured(),
|
|
180
183
|
definition: AIKeyServiceDefinition,
|
|
181
184
|
createInstance: () => createService(AIKeyServiceDefinition),
|
|
182
185
|
execute: async (op, input) => {
|
|
@@ -175,6 +175,9 @@ var KeyStoreService = class {
|
|
|
175
175
|
selectNextKey(providerId, _modelId) {
|
|
176
176
|
return this.getActiveKey(providerId);
|
|
177
177
|
}
|
|
178
|
+
rotateKey(providerId) {
|
|
179
|
+
return this.getNextKey(providerId);
|
|
180
|
+
}
|
|
178
181
|
updateKeyLabel(id, label) {
|
|
179
182
|
const key = this.getKey(id);
|
|
180
183
|
if (!key) return void 0;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
modelCatalog,
|
|
3
3
|
modelHealthService
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LMWXONZG.js";
|
|
5
5
|
import {
|
|
6
6
|
keyStore
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P7H6TIEA.js";
|
|
8
8
|
import {
|
|
9
9
|
aiProviderService
|
|
10
10
|
} from "./chunk-SLR6SIEU.js";
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CANONICAL_SRKL_URL,
|
|
3
|
+
SrklClient,
|
|
4
|
+
SrklCredentialRegistry,
|
|
5
|
+
SrklVaultAccessClient,
|
|
6
|
+
createSrklClient,
|
|
7
|
+
decryptVaultBufferInBrowser,
|
|
8
|
+
getPrimarySrklDeploymentUrl as getPrimarySrklDeploymentUrl2,
|
|
9
|
+
getSrklAccounts as getSrklAccounts2,
|
|
10
|
+
getSrklStatus,
|
|
11
|
+
globalCredentialRegistry,
|
|
12
|
+
hexToBytes,
|
|
13
|
+
listBackblazeBuckets,
|
|
14
|
+
srklListBackblazeBuckets as srklListBackblazeBuckets2,
|
|
15
|
+
srklService,
|
|
16
|
+
syncSrklAccounts,
|
|
17
|
+
useSrklServices
|
|
18
|
+
} from "./chunk-3IUA66RS.js";
|
|
1
19
|
import {
|
|
2
20
|
S3Adapter
|
|
3
21
|
} from "./chunk-RBQ4CW3T.js";
|
|
@@ -16,30 +34,16 @@ import {
|
|
|
16
34
|
setWorkingWorkspaceConfig,
|
|
17
35
|
syncWorkspace,
|
|
18
36
|
workingWorkspaceService
|
|
19
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-6DNGLKAV.js";
|
|
20
38
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
24
|
-
NodeGraphPersistenceService,
|
|
25
|
-
createBackend,
|
|
26
|
-
createCompositeService,
|
|
27
|
-
createLocalService,
|
|
28
|
-
createRemoteService,
|
|
29
|
-
exportGraphAsJsonFile,
|
|
30
|
-
nodeGraphPersistence,
|
|
31
|
-
parseGraphJsonFile,
|
|
32
|
-
validateGraphDocument
|
|
33
|
-
} from "./chunk-RBF2OGMC.js";
|
|
39
|
+
validateToolInput
|
|
40
|
+
} from "./chunk-6GQNYRD6.js";
|
|
34
41
|
import {
|
|
35
42
|
BaseApiRoute,
|
|
36
43
|
createSSEResponse,
|
|
37
44
|
withAuth,
|
|
38
45
|
withCors
|
|
39
46
|
} from "./chunk-TWCEVES2.js";
|
|
40
|
-
import {
|
|
41
|
-
validateToolInput
|
|
42
|
-
} from "./chunk-6GQNYRD6.js";
|
|
43
47
|
import {
|
|
44
48
|
AdminGuard,
|
|
45
49
|
BaseAccountProvider,
|
|
@@ -108,23 +112,19 @@ import {
|
|
|
108
112
|
resolveDevelopmentCommand
|
|
109
113
|
} from "./chunk-OYVHKYJW.js";
|
|
110
114
|
import {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
srklService,
|
|
125
|
-
syncSrklAccounts,
|
|
126
|
-
useSrklServices
|
|
127
|
-
} from "./chunk-3IUA66RS.js";
|
|
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
128
|
import {
|
|
129
129
|
AIInferenceServiceDefinition,
|
|
130
130
|
AIInferenceServiceFacade,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
AIRoutingServiceFacade,
|
|
139
139
|
AIToolServiceDefinition,
|
|
140
140
|
AIToolServiceFacade
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-KPLQLZHB.js";
|
|
142
142
|
import {
|
|
143
143
|
MCPEngine,
|
|
144
144
|
ToolManagerService,
|
|
@@ -178,11 +178,31 @@ import {
|
|
|
178
178
|
krnlWorkspaceGraphServiceFacade,
|
|
179
179
|
krnlWorkspaceServiceDefinition,
|
|
180
180
|
krnlWorkspaceServiceFacade
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-LCRK2QSY.js";
|
|
182
|
+
import {
|
|
183
|
+
getPrimarySrklDeploymentUrl,
|
|
184
|
+
getSrklAccounts,
|
|
185
|
+
srklListBackblazeBuckets
|
|
186
|
+
} from "./chunk-XHADDA75.js";
|
|
187
|
+
import {
|
|
188
|
+
authorizeB2,
|
|
189
|
+
b2DownloadFile,
|
|
190
|
+
b2ListBuckets,
|
|
191
|
+
b2ListFileNames,
|
|
192
|
+
b2UploadFile
|
|
193
|
+
} from "./chunk-4QEMALXF.js";
|
|
182
194
|
import {
|
|
183
195
|
formatCanonicalWorkspaceFolderName,
|
|
184
196
|
sanitizeWorkspaceName
|
|
185
197
|
} from "./chunk-FZKBTF34.js";
|
|
198
|
+
import {
|
|
199
|
+
CanonicalAuthClient,
|
|
200
|
+
RateLimiter,
|
|
201
|
+
SessionManager,
|
|
202
|
+
createCanonicalAuthClient,
|
|
203
|
+
loginSystemUser,
|
|
204
|
+
resolveUserFromToken
|
|
205
|
+
} from "./chunk-WTBAG4AV.js";
|
|
186
206
|
import {
|
|
187
207
|
workspaceGraphService
|
|
188
208
|
} from "./chunk-47IVAXPJ.js";
|
|
@@ -221,33 +241,6 @@ import {
|
|
|
221
241
|
updateWorkspace,
|
|
222
242
|
writeWorkspaceFile
|
|
223
243
|
} from "./chunk-VN2YMZJO.js";
|
|
224
|
-
import {
|
|
225
|
-
BaseStorageAdapter,
|
|
226
|
-
GoogleDriveAdapter,
|
|
227
|
-
createGoogleDriveAuthorizationUrl,
|
|
228
|
-
exchangeGoogleDriveCode,
|
|
229
|
-
refreshGoogleDriveAccessToken
|
|
230
|
-
} from "./chunk-KKRWZDMN.js";
|
|
231
|
-
import {
|
|
232
|
-
CanonicalAuthClient,
|
|
233
|
-
RateLimiter,
|
|
234
|
-
SessionManager,
|
|
235
|
-
createCanonicalAuthClient,
|
|
236
|
-
loginSystemUser,
|
|
237
|
-
resolveUserFromToken
|
|
238
|
-
} from "./chunk-WTBAG4AV.js";
|
|
239
|
-
import {
|
|
240
|
-
getPrimarySrklDeploymentUrl,
|
|
241
|
-
getSrklAccounts,
|
|
242
|
-
srklListBackblazeBuckets
|
|
243
|
-
} from "./chunk-XHADDA75.js";
|
|
244
|
-
import {
|
|
245
|
-
authorizeB2,
|
|
246
|
-
b2DownloadFile,
|
|
247
|
-
b2ListBuckets,
|
|
248
|
-
b2ListFileNames,
|
|
249
|
-
b2UploadFile
|
|
250
|
-
} from "./chunk-4QEMALXF.js";
|
|
251
244
|
import {
|
|
252
245
|
b2DeleteFileVersion,
|
|
253
246
|
b2DeleteFolder,
|
|
@@ -256,6 +249,13 @@ import {
|
|
|
256
249
|
getUnifiedDbUrl,
|
|
257
250
|
queryUnifiedDb
|
|
258
251
|
} from "./chunk-VAFCR2MS.js";
|
|
252
|
+
import {
|
|
253
|
+
BaseStorageAdapter,
|
|
254
|
+
GoogleDriveAdapter,
|
|
255
|
+
createGoogleDriveAuthorizationUrl,
|
|
256
|
+
exchangeGoogleDriveCode,
|
|
257
|
+
refreshGoogleDriveAccessToken
|
|
258
|
+
} from "./chunk-KKRWZDMN.js";
|
|
259
259
|
import "./chunk-TY32TUNI.js";
|
|
260
260
|
import {
|
|
261
261
|
DeterministicEndpointExecutor,
|
|
@@ -279,7 +279,7 @@ import {
|
|
|
279
279
|
failoverExecutionEngine,
|
|
280
280
|
healthCheckService,
|
|
281
281
|
metricsLogger
|
|
282
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-PT6J6UEU.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-LMWXONZG.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-P7H6TIEA.js";
|
|
299
299
|
import {
|
|
300
300
|
AIProviderService,
|
|
301
301
|
aiProviderService
|
|
@@ -2,7 +2,7 @@ import * as _ultrst_armada_krnl from '@ultrst-armada/krnl';
|
|
|
2
2
|
import { ServiceDefinition } from '@ultrst-armada/krnl';
|
|
3
3
|
import { P as ProviderId } from './types-Di4ZAQYA.js';
|
|
4
4
|
import { M as ModelCatalogEntry } from './types-fYUdf9oB.js';
|
|
5
|
-
import { A as ApiKeyEntry, R as RotationStrategy
|
|
5
|
+
import { A as ApiKeyEntry, R as RotationStrategy } from './types-NITEaxAh.js';
|
|
6
6
|
|
|
7
7
|
declare const AIProviderServiceDefinition: ServiceDefinition;
|
|
8
8
|
declare const AIProviderServiceFacade: {
|
|
@@ -68,8 +68,18 @@ declare const AIKeyServiceFacade: {
|
|
|
68
68
|
deployment: "local";
|
|
69
69
|
getKeys: (providerId?: string, modelId?: string) => ApiKeyEntry[];
|
|
70
70
|
getStrategy: () => RotationStrategy;
|
|
71
|
-
getUsageStats: (keyId?: string, modelId?: string) => KeyModelUsageStats[];
|
|
72
71
|
addKey: (input: any) => ApiKeyEntry;
|
|
72
|
+
getActiveKey: (providerId: string) => ApiKeyEntry;
|
|
73
|
+
rotateKey: (providerId: string) => ApiKeyEntry;
|
|
74
|
+
importKeys: (payload: unknown) => Promise<{
|
|
75
|
+
importedCount: number;
|
|
76
|
+
keys: ApiKeyEntry[];
|
|
77
|
+
}>;
|
|
78
|
+
exportKeysStructured: () => {
|
|
79
|
+
version: 1;
|
|
80
|
+
exportedAt: string;
|
|
81
|
+
keys: ApiKeyEntry[];
|
|
82
|
+
};
|
|
73
83
|
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
74
84
|
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
75
85
|
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
AIRoutingServiceFacade,
|
|
12
12
|
AIToolServiceDefinition,
|
|
13
13
|
AIToolServiceFacade
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KPLQLZHB.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-PT6J6UEU.js";
|
|
19
|
+
import "./chunk-LMWXONZG.js";
|
|
20
|
+
import "./chunk-P7H6TIEA.js";
|
|
21
21
|
import "./chunk-SLR6SIEU.js";
|
|
22
22
|
import "./chunk-MAMK4GDH.js";
|
|
23
23
|
import "./chunk-JSQZAFBU.js";
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
krnlWorkspaceGraphServiceFacade,
|
|
32
32
|
krnlWorkspaceServiceDefinition,
|
|
33
33
|
krnlWorkspaceServiceFacade
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LCRK2QSY.js";
|
|
35
|
+
import "./chunk-XHADDA75.js";
|
|
36
|
+
import "./chunk-4QEMALXF.js";
|
|
35
37
|
import "./chunk-FZKBTF34.js";
|
|
38
|
+
import "./chunk-WTBAG4AV.js";
|
|
36
39
|
import "./chunk-47IVAXPJ.js";
|
|
37
40
|
import "./chunk-SHZAQTIT.js";
|
|
38
41
|
import "./chunk-VN2YMZJO.js";
|
|
39
|
-
import "./chunk-KKRWZDMN.js";
|
|
40
|
-
import "./chunk-WTBAG4AV.js";
|
|
41
|
-
import "./chunk-XHADDA75.js";
|
|
42
|
-
import "./chunk-4QEMALXF.js";
|
|
43
42
|
import "./chunk-VAFCR2MS.js";
|
|
43
|
+
import "./chunk-KKRWZDMN.js";
|
|
44
44
|
import "./chunk-TY32TUNI.js";
|
|
45
45
|
export {
|
|
46
46
|
AuthServiceDefinition,
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
} from "../chunk-47IVAXPJ.js";
|
|
18
18
|
import "../chunk-SHZAQTIT.js";
|
|
19
19
|
import "../chunk-VN2YMZJO.js";
|
|
20
|
-
import "../chunk-KKRWZDMN.js";
|
|
21
20
|
import "../chunk-VAFCR2MS.js";
|
|
21
|
+
import "../chunk-KKRWZDMN.js";
|
|
22
22
|
import "../chunk-TY32TUNI.js";
|
|
23
23
|
export {
|
|
24
24
|
CompositeBackend,
|
|
@@ -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,
|
|
@@ -21,13 +28,6 @@ import {
|
|
|
21
28
|
exchangeGoogleDriveCode,
|
|
22
29
|
refreshGoogleDriveAccessToken
|
|
23
30
|
} from "../chunk-KKRWZDMN.js";
|
|
24
|
-
import {
|
|
25
|
-
authorizeB2,
|
|
26
|
-
b2DownloadFile,
|
|
27
|
-
b2ListBuckets,
|
|
28
|
-
b2ListFileNames,
|
|
29
|
-
b2UploadFile
|
|
30
|
-
} from "../chunk-4QEMALXF.js";
|
|
31
31
|
export {
|
|
32
32
|
BackblazeB2Adapter,
|
|
33
33
|
BaseStorageAdapter,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
WorkspaceFS,
|
|
7
7
|
remoteWorkspaceService,
|
|
8
8
|
workingWorkspaceService
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-6DNGLKAV.js";
|
|
10
10
|
import {
|
|
11
11
|
formatCanonicalWorkspaceFolderName,
|
|
12
12
|
sanitizeWorkspaceName
|
|
13
13
|
} from "../chunk-FZKBTF34.js";
|
|
14
14
|
import "../chunk-VN2YMZJO.js";
|
|
15
|
-
import "../chunk-KKRWZDMN.js";
|
|
16
15
|
import "../chunk-VAFCR2MS.js";
|
|
16
|
+
import "../chunk-KKRWZDMN.js";
|
|
17
17
|
export {
|
|
18
18
|
RemoteWorkspaceService,
|
|
19
19
|
SyncEngine,
|
|
@@ -132,7 +132,7 @@ async function executeFodFlow(flow, endpoints, onEvent, initialInput) {
|
|
|
132
132
|
remaining.delete(node.id);
|
|
133
133
|
emit({ type: "node-started", timestamp: Date.now(), flowId: flow.id, nodeId: node.id });
|
|
134
134
|
try {
|
|
135
|
-
const endpointId = String(node.data
|
|
135
|
+
const endpointId = String(node.data?.endpointId ?? node.data?.apiId ?? node.type.replace(/^(host|gutts)\//, ""));
|
|
136
136
|
const endpoint = endpoints.get(endpointId);
|
|
137
137
|
if (!endpoint) throw new Error(`No executable endpoint registered for node '${node.type}'.`);
|
|
138
138
|
const input = {};
|
|
@@ -146,7 +146,7 @@ async function executeFodFlow(flow, endpoints, onEvent, initialInput) {
|
|
|
146
146
|
for (const edge of incoming(node.id)) {
|
|
147
147
|
input[String(edge.targetHandle ?? "input")] = values.get(`${edge.source}:${edge.sourceHandle ?? "result"}`);
|
|
148
148
|
}
|
|
149
|
-
const configured = node.data
|
|
149
|
+
const configured = node.data?.inputs ?? {};
|
|
150
150
|
Object.assign(input, configured);
|
|
151
151
|
const result = await endpoint.invoke(input);
|
|
152
152
|
outputs[node.id] = result;
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
getWorkspaces,
|
|
6
6
|
updateWorkspace
|
|
7
7
|
} from "./chunk-VN2YMZJO.js";
|
|
8
|
-
import {
|
|
9
|
-
GoogleDriveAdapter
|
|
10
|
-
} from "./chunk-KKRWZDMN.js";
|
|
11
8
|
import {
|
|
12
9
|
b2DownloadFile,
|
|
13
10
|
b2ListFileNames,
|
|
14
11
|
b2UploadFile,
|
|
15
12
|
queryUnifiedDb
|
|
16
13
|
} from "./chunk-VAFCR2MS.js";
|
|
14
|
+
import {
|
|
15
|
+
GoogleDriveAdapter
|
|
16
|
+
} from "./chunk-KKRWZDMN.js";
|
|
17
17
|
|
|
18
18
|
// src/workspace/WorkspaceFS.ts
|
|
19
19
|
import { SkipoBase } from "@ultrst-armada/kloks/functions";
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSrklAccounts,
|
|
3
|
+
srklListBackblazeBuckets
|
|
4
|
+
} from "./chunk-XHADDA75.js";
|
|
5
|
+
import {
|
|
6
|
+
b2ListBuckets
|
|
7
|
+
} from "./chunk-4QEMALXF.js";
|
|
1
8
|
import {
|
|
2
9
|
formatCanonicalWorkspaceFolderName,
|
|
3
10
|
sanitizeWorkspaceName
|
|
4
11
|
} from "./chunk-FZKBTF34.js";
|
|
12
|
+
import {
|
|
13
|
+
RateLimiter,
|
|
14
|
+
SessionManager,
|
|
15
|
+
loginSystemUser,
|
|
16
|
+
resolveUserFromToken
|
|
17
|
+
} from "./chunk-WTBAG4AV.js";
|
|
5
18
|
import {
|
|
6
19
|
workspaceGraphService
|
|
7
20
|
} from "./chunk-47IVAXPJ.js";
|
|
@@ -15,19 +28,6 @@ import {
|
|
|
15
28
|
getWorkspaces,
|
|
16
29
|
updateWorkspace
|
|
17
30
|
} from "./chunk-VN2YMZJO.js";
|
|
18
|
-
import {
|
|
19
|
-
RateLimiter,
|
|
20
|
-
SessionManager,
|
|
21
|
-
loginSystemUser,
|
|
22
|
-
resolveUserFromToken
|
|
23
|
-
} from "./chunk-WTBAG4AV.js";
|
|
24
|
-
import {
|
|
25
|
-
getSrklAccounts,
|
|
26
|
-
srklListBackblazeBuckets
|
|
27
|
-
} from "./chunk-XHADDA75.js";
|
|
28
|
-
import {
|
|
29
|
-
b2ListBuckets
|
|
30
|
-
} from "./chunk-4QEMALXF.js";
|
|
31
31
|
import {
|
|
32
32
|
queryUnifiedDb
|
|
33
33
|
} from "./chunk-VAFCR2MS.js";
|