@ultrst-armada/kloks 1.2.0 → 1.3.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/package.json +2 -1
- package/packages/audio-midi/dist/chunk-3GRGELA4.js +6 -6
- package/packages/audio-midi/dist/index.d.ts +3 -3
- package/packages/audio-midi/dist/index.js +10 -10
- package/packages/backend/dist/BaseAccountProvider-DduKf5HG.d.ts +1 -1
- package/packages/backend/dist/BaseStorageAdapter-tosOoSUg.d.ts +1 -1
- package/packages/backend/dist/api/index.d.ts +1 -1
- package/packages/backend/dist/auth/index.d.ts +1 -1
- package/packages/backend/dist/chunk-4ZFXEFOE.js +2 -2
- package/packages/backend/dist/chunk-BM4QMVPA.js +338 -0
- package/packages/backend/dist/chunk-J2J24JVC.js +1 -1
- package/packages/backend/dist/chunk-KTLD7Z4L.js +3 -3
- package/packages/backend/dist/{chunk-MN54ZIKZ.js → chunk-KX3OTBQ3.js} +309 -4
- package/packages/backend/dist/chunk-RCCQ7IRM.js +3 -3
- package/packages/backend/dist/chunk-TWCEVES2.js +1 -1
- package/packages/backend/dist/control-plane/index.d.ts +1 -1
- package/packages/backend/dist/index.d.ts +146 -5
- package/packages/backend/dist/index.js +50 -19
- package/packages/backend/dist/krnl-services.js +2 -2
- package/packages/backend/dist/services/index.d.ts +168 -1
- package/packages/backend/dist/services/index.js +15 -3
- package/packages/backend/dist/srkl/index.d.ts +108 -1
- package/packages/backend/dist/srkl/index.js +15 -1
- package/packages/backend/dist/storage/index.d.ts +1 -1
- package/packages/backend/dist/workspace/index.d.ts +1 -1
- package/packages/orchestrations/dist/index.d.ts +3 -3
- package/packages/orchestrations/dist/index.js +3 -3
- package/packages/services/dist/index.d.ts +3 -3
- package/packages/state-graph/dist/index.js +11 -11
- package/packages/backend/dist/chunk-P4HL4C6V.js +0 -149
- package/packages/backend/dist/{chunk-OYQKQAEF.js → chunk-CU7RZBMF.js} +4 -4
|
@@ -1,12 +1,33 @@
|
|
|
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-BM4QMVPA.js";
|
|
1
15
|
import {
|
|
2
16
|
CANONICAL_SRKL_URL,
|
|
3
17
|
SrklClient,
|
|
18
|
+
SrklCredentialRegistry,
|
|
19
|
+
SrklVaultAccessClient,
|
|
4
20
|
createSrklClient,
|
|
21
|
+
decryptVaultBufferInBrowser,
|
|
5
22
|
getPrimarySrklDeploymentUrl,
|
|
6
23
|
getSrklAccounts,
|
|
24
|
+
globalCredentialRegistry,
|
|
25
|
+
hexToBytes,
|
|
7
26
|
srklListBackblazeBuckets,
|
|
27
|
+
srklService,
|
|
28
|
+
syncSrklAccounts,
|
|
8
29
|
useSrklServices
|
|
9
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KX3OTBQ3.js";
|
|
10
31
|
import "./chunk-LS3HWJBX.js";
|
|
11
32
|
import {
|
|
12
33
|
authorizeB2,
|
|
@@ -15,12 +36,6 @@ import {
|
|
|
15
36
|
b2ListFileNames,
|
|
16
37
|
b2UploadFile
|
|
17
38
|
} from "./chunk-4QEMALXF.js";
|
|
18
|
-
import {
|
|
19
|
-
BaseApiRoute,
|
|
20
|
-
createSSEResponse,
|
|
21
|
-
withAuth,
|
|
22
|
-
withCors
|
|
23
|
-
} from "./chunk-TWCEVES2.js";
|
|
24
39
|
import {
|
|
25
40
|
SyncEngine,
|
|
26
41
|
WorkspaceCloneSyncEngine,
|
|
@@ -41,7 +56,8 @@ import {
|
|
|
41
56
|
StorageServiceFacade,
|
|
42
57
|
WorkspaceServiceDefinition,
|
|
43
58
|
WorkspaceServiceFacade
|
|
44
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-CU7RZBMF.js";
|
|
60
|
+
import "./chunk-IPP4VURQ.js";
|
|
45
61
|
import {
|
|
46
62
|
BackblazeB2Adapter,
|
|
47
63
|
BaseStorageAdapter,
|
|
@@ -61,6 +77,12 @@ import {
|
|
|
61
77
|
formatCanonicalWorkspaceFolderName,
|
|
62
78
|
sanitizeWorkspaceName
|
|
63
79
|
} from "./chunk-FZKBTF34.js";
|
|
80
|
+
import {
|
|
81
|
+
BaseApiRoute,
|
|
82
|
+
createSSEResponse,
|
|
83
|
+
withAuth,
|
|
84
|
+
withCors
|
|
85
|
+
} from "./chunk-TWCEVES2.js";
|
|
64
86
|
import {
|
|
65
87
|
AdminGuard,
|
|
66
88
|
BaseAccountProvider,
|
|
@@ -124,18 +146,9 @@ import {
|
|
|
124
146
|
import {
|
|
125
147
|
IdempotencyManager
|
|
126
148
|
} from "./chunk-3EPY34R6.js";
|
|
127
|
-
import {
|
|
128
|
-
CompositeBackend,
|
|
129
|
-
EndpointGenerator,
|
|
130
|
-
createBackend,
|
|
131
|
-
createCompositeService,
|
|
132
|
-
createLocalService,
|
|
133
|
-
createRemoteService
|
|
134
|
-
} from "./chunk-P4HL4C6V.js";
|
|
135
|
-
import "./chunk-IPP4VURQ.js";
|
|
136
149
|
|
|
137
150
|
// src/data/BaseDataProvider.ts
|
|
138
|
-
import { SkipoBase } from "@kloks/functions";
|
|
151
|
+
import { SkipoBase } from "@ultrst-armada/kloks/functions";
|
|
139
152
|
var BaseDataProvider = class extends SkipoBase {
|
|
140
153
|
};
|
|
141
154
|
|
|
@@ -4276,7 +4289,7 @@ async function deleteAssetFromGraph(params) {
|
|
|
4276
4289
|
// src/server/services/graphPackageService.ts
|
|
4277
4290
|
import fs6 from "fs";
|
|
4278
4291
|
import path6 from "path";
|
|
4279
|
-
import { validateGraphImport } from "@kloks/state-graph";
|
|
4292
|
+
import { validateGraphImport } from "@ultrst-armada/kloks/state-graph";
|
|
4280
4293
|
var WORKSPACE_ROOT2 = path6.join(process.cwd(), "workspaces", "default");
|
|
4281
4294
|
var GRAPHS_ROOT2 = path6.join(WORKSPACE_ROOT2, "graphs");
|
|
4282
4295
|
var LEGACY_PROJECTS_ROOT = path6.join(process.cwd(), "projects");
|
|
@@ -5340,10 +5353,12 @@ export {
|
|
|
5340
5353
|
JobDependencyGraph,
|
|
5341
5354
|
JobScheduler,
|
|
5342
5355
|
LEGACY_PROJECTS_ROOT,
|
|
5356
|
+
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
5343
5357
|
LoadBalancer,
|
|
5344
5358
|
LocalAccountProvider,
|
|
5345
5359
|
LocalFSAdapter,
|
|
5346
5360
|
LockManager,
|
|
5361
|
+
NodeGraphPersistenceService,
|
|
5347
5362
|
PROJECTS_ROOT,
|
|
5348
5363
|
PasswordHasher,
|
|
5349
5364
|
RateLimiter,
|
|
@@ -5358,7 +5373,9 @@ export {
|
|
|
5358
5373
|
ServiceDispatcher,
|
|
5359
5374
|
SessionManager,
|
|
5360
5375
|
SrklClient,
|
|
5376
|
+
SrklCredentialRegistry,
|
|
5361
5377
|
SrklStorageService,
|
|
5378
|
+
SrklVaultAccessClient,
|
|
5362
5379
|
StorageAdapterFactory,
|
|
5363
5380
|
StorageServiceDefinition,
|
|
5364
5381
|
StorageServiceFacade,
|
|
@@ -5383,6 +5400,8 @@ export {
|
|
|
5383
5400
|
buildProjectObservability,
|
|
5384
5401
|
buildProjectsList,
|
|
5385
5402
|
cleanDbUrl,
|
|
5403
|
+
computeDeploymentFinalWeight,
|
|
5404
|
+
computeUsageWeightScore,
|
|
5386
5405
|
configureStarterProjectTemplate,
|
|
5387
5406
|
createAssetSubfolder,
|
|
5388
5407
|
createBackend,
|
|
@@ -5402,6 +5421,7 @@ export {
|
|
|
5402
5421
|
createWorkspace,
|
|
5403
5422
|
createWorkspaceGraph,
|
|
5404
5423
|
decryptSecretFromBlob,
|
|
5424
|
+
decryptVaultBufferInBrowser,
|
|
5405
5425
|
deleteAssetFromGraph,
|
|
5406
5426
|
deleteAssetFromPool,
|
|
5407
5427
|
deleteCredential,
|
|
@@ -5424,6 +5444,7 @@ export {
|
|
|
5424
5444
|
ensureS3DirectoryMarker,
|
|
5425
5445
|
ensureWorkspaceStructure,
|
|
5426
5446
|
exportEncryptedCredentials,
|
|
5447
|
+
exportGraphAsJsonFile,
|
|
5427
5448
|
fetchCloudflareData,
|
|
5428
5449
|
fetchVercelData,
|
|
5429
5450
|
findUserWorkspace,
|
|
@@ -5434,6 +5455,8 @@ export {
|
|
|
5434
5455
|
getAssetPoolLocationPath,
|
|
5435
5456
|
getAssetPoolPublicUrl,
|
|
5436
5457
|
getB2BucketId,
|
|
5458
|
+
getConnectedDeploymentNode,
|
|
5459
|
+
getConnectedWeightModifiers,
|
|
5437
5460
|
getCredential,
|
|
5438
5461
|
getDefaultWorkingWorkspaceDir,
|
|
5439
5462
|
getExecutions,
|
|
@@ -5450,6 +5473,7 @@ export {
|
|
|
5450
5473
|
getSystemDatabaseUrls,
|
|
5451
5474
|
getUnifiedDbUrl,
|
|
5452
5475
|
getUsers,
|
|
5476
|
+
getWeightModifierScore,
|
|
5453
5477
|
getWorkingWorkspaceConfig,
|
|
5454
5478
|
getWorkingWorkspaceDir,
|
|
5455
5479
|
getWorkspaceFolderKey,
|
|
@@ -5457,6 +5481,8 @@ export {
|
|
|
5457
5481
|
getWorkspaceGraph,
|
|
5458
5482
|
getWorkspaceStorageDetails,
|
|
5459
5483
|
getWorkspaces,
|
|
5484
|
+
globalCredentialRegistry,
|
|
5485
|
+
hexToBytes,
|
|
5460
5486
|
importEncryptedCredentials,
|
|
5461
5487
|
importGraphDependency,
|
|
5462
5488
|
initGlobalSamplesDirectory,
|
|
@@ -5476,7 +5502,9 @@ export {
|
|
|
5476
5502
|
loginUser,
|
|
5477
5503
|
matchGatewayIngress,
|
|
5478
5504
|
matchGatewayIngressAsync,
|
|
5505
|
+
nodeGraphPersistence,
|
|
5479
5506
|
normalizeBackblazeCredentials,
|
|
5507
|
+
parseGraphJsonFile,
|
|
5480
5508
|
permanentDeleteS3Folder,
|
|
5481
5509
|
permanentDeleteS3Object,
|
|
5482
5510
|
queryUnifiedDb,
|
|
@@ -5510,6 +5538,8 @@ export {
|
|
|
5510
5538
|
setWorkingWorkspaceConfig,
|
|
5511
5539
|
srklListBackblazeBuckets2 as srklCoreListBackblazeBuckets,
|
|
5512
5540
|
srklListBackblazeBuckets,
|
|
5541
|
+
srklService,
|
|
5542
|
+
syncSrklAccounts,
|
|
5513
5543
|
syncWorkspace,
|
|
5514
5544
|
syncWorkspaceCreateToBucket,
|
|
5515
5545
|
syncWorkspaceDataToBucket,
|
|
@@ -5520,6 +5550,7 @@ export {
|
|
|
5520
5550
|
useBackend,
|
|
5521
5551
|
useBackendClient,
|
|
5522
5552
|
useSrklServices,
|
|
5553
|
+
validateGraphDocument,
|
|
5523
5554
|
validateServiceDefinition,
|
|
5524
5555
|
withAuth,
|
|
5525
5556
|
withCors,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
StorageServiceFacade,
|
|
14
14
|
WorkspaceServiceDefinition,
|
|
15
15
|
WorkspaceServiceFacade
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CU7RZBMF.js";
|
|
17
|
+
import "./chunk-IPP4VURQ.js";
|
|
17
18
|
import "./chunk-J2J24JVC.js";
|
|
18
19
|
import "./chunk-FZKBTF34.js";
|
|
19
20
|
import "./chunk-25Y7AVTP.js";
|
|
20
21
|
import "./chunk-QGHDJGYS.js";
|
|
21
22
|
import "./chunk-3EPY34R6.js";
|
|
22
|
-
import "./chunk-IPP4VURQ.js";
|
|
23
23
|
export {
|
|
24
24
|
AuthServiceDefinition,
|
|
25
25
|
AuthServiceFacade,
|
|
@@ -63,4 +63,171 @@ declare class EndpointGenerator {
|
|
|
63
63
|
declare function createBackend(name: string): CompositeBackend;
|
|
64
64
|
declare function createCompositeService(name: string): CompositeBackend;
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
/**
|
|
67
|
+
* @file types.ts
|
|
68
|
+
* @description Universal types for node graph document persistence, serialization, and storage sync.
|
|
69
|
+
*/
|
|
70
|
+
interface UniversalGraphNode {
|
|
71
|
+
id: string;
|
|
72
|
+
type?: string;
|
|
73
|
+
label?: string;
|
|
74
|
+
name?: string;
|
|
75
|
+
appId?: string;
|
|
76
|
+
deploymentId?: string;
|
|
77
|
+
position?: {
|
|
78
|
+
x: number;
|
|
79
|
+
y: number;
|
|
80
|
+
};
|
|
81
|
+
data?: Record<string, any>;
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}
|
|
84
|
+
interface UniversalGraphEdge {
|
|
85
|
+
id: string;
|
|
86
|
+
source: string;
|
|
87
|
+
target: string;
|
|
88
|
+
sourceSocket?: string;
|
|
89
|
+
targetSocket?: string;
|
|
90
|
+
appId?: string;
|
|
91
|
+
data?: Record<string, any>;
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
}
|
|
94
|
+
interface UniversalAppEntity {
|
|
95
|
+
id: string;
|
|
96
|
+
name: string;
|
|
97
|
+
icon?: string;
|
|
98
|
+
description?: string;
|
|
99
|
+
publicLink?: string;
|
|
100
|
+
createdAt?: string;
|
|
101
|
+
updatedAt?: string;
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}
|
|
104
|
+
interface UniversalStorageConnection {
|
|
105
|
+
id: string;
|
|
106
|
+
provider: 'local_fs' | 'backblaze_b2' | 'cloudflare_r2' | 'aws_s3' | 'supabase' | string;
|
|
107
|
+
localFolderName?: string;
|
|
108
|
+
b2BucketName?: string;
|
|
109
|
+
s3BucketName?: string;
|
|
110
|
+
r2BucketName?: string;
|
|
111
|
+
supabaseBucketName?: string;
|
|
112
|
+
[key: string]: any;
|
|
113
|
+
}
|
|
114
|
+
interface UniversalNodeGraphDocument {
|
|
115
|
+
$schema?: string;
|
|
116
|
+
version: string;
|
|
117
|
+
appId: string;
|
|
118
|
+
appName: string;
|
|
119
|
+
appIcon?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
publicLink?: string;
|
|
122
|
+
createdAt: string;
|
|
123
|
+
updatedAt: string;
|
|
124
|
+
exportedAt: string;
|
|
125
|
+
author?: {
|
|
126
|
+
userId?: string;
|
|
127
|
+
username?: string;
|
|
128
|
+
email?: string;
|
|
129
|
+
name?: string;
|
|
130
|
+
role?: string;
|
|
131
|
+
};
|
|
132
|
+
viewport?: {
|
|
133
|
+
zoom: number;
|
|
134
|
+
pan: {
|
|
135
|
+
x: number;
|
|
136
|
+
y: number;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
graph: {
|
|
140
|
+
nodes: UniversalGraphNode[];
|
|
141
|
+
edges: UniversalGraphEdge[];
|
|
142
|
+
};
|
|
143
|
+
deployments?: any[];
|
|
144
|
+
storageMetadata?: {
|
|
145
|
+
provider: string;
|
|
146
|
+
targetName: string;
|
|
147
|
+
targetPath: string;
|
|
148
|
+
storageConnectionId?: string;
|
|
149
|
+
checksum?: string;
|
|
150
|
+
syncedAt?: string;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
interface NodeGraphValidationResult {
|
|
154
|
+
valid: boolean;
|
|
155
|
+
errors: string[];
|
|
156
|
+
document?: UniversalNodeGraphDocument;
|
|
157
|
+
}
|
|
158
|
+
interface SaveGraphOptions {
|
|
159
|
+
app: UniversalAppEntity;
|
|
160
|
+
nodes: UniversalGraphNode[];
|
|
161
|
+
edges: UniversalGraphEdge[];
|
|
162
|
+
deployments?: any[];
|
|
163
|
+
viewport?: {
|
|
164
|
+
zoom: number;
|
|
165
|
+
pan: {
|
|
166
|
+
x: number;
|
|
167
|
+
y: number;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
storageConnection?: UniversalStorageConnection;
|
|
171
|
+
}
|
|
172
|
+
declare const LOCAL_STORAGE_GRAPHS_PREFIX = "depm_graph_doc_";
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @file helpers.ts
|
|
176
|
+
* @description Helper functions for validating, exporting, and parsing universal node graph documents.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Validates a parsed JSON object to verify it matches the UniversalNodeGraphDocument schema.
|
|
181
|
+
*/
|
|
182
|
+
declare function validateGraphDocument(data: any): NodeGraphValidationResult;
|
|
183
|
+
/**
|
|
184
|
+
* Triggers a browser download of the node graph as a portable JSON file.
|
|
185
|
+
*/
|
|
186
|
+
declare function exportGraphAsJsonFile(graphDoc: UniversalNodeGraphDocument): void;
|
|
187
|
+
/**
|
|
188
|
+
* Reads and parses a graph JSON file from an input file element.
|
|
189
|
+
*/
|
|
190
|
+
declare function parseGraphJsonFile(file: File): Promise<NodeGraphValidationResult>;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @file nodeGraphPersistence.ts
|
|
194
|
+
* @description Universal Node Graph Persistence Service.
|
|
195
|
+
* Manages serialization, schema validation, browser localStorage caching,
|
|
196
|
+
* and direct persistence to file system or cloud storage adapters.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
declare class NodeGraphPersistenceService {
|
|
200
|
+
/**
|
|
201
|
+
* Generates a fully compliant v1.0.0 JSON document representing the app's complete node graph.
|
|
202
|
+
*/
|
|
203
|
+
createGraphDocument(options: SaveGraphOptions): UniversalNodeGraphDocument;
|
|
204
|
+
/**
|
|
205
|
+
* Validates a parsed JSON object to verify it matches the NodeGraphDocument schema.
|
|
206
|
+
*/
|
|
207
|
+
validateGraphDocument(data: any): NodeGraphValidationResult;
|
|
208
|
+
/**
|
|
209
|
+
* Saves the node graph to the selected user storage option (Local Folder or Cloud Bucket)
|
|
210
|
+
* and caches it in LocalStorage.
|
|
211
|
+
*/
|
|
212
|
+
saveGraphToStorage(options: SaveGraphOptions, customDirectoryHandle?: any): Promise<{
|
|
213
|
+
success: boolean;
|
|
214
|
+
document: UniversalNodeGraphDocument;
|
|
215
|
+
message: string;
|
|
216
|
+
targetPath: string;
|
|
217
|
+
}>;
|
|
218
|
+
/**
|
|
219
|
+
* Loads a cached or previously saved node graph document for an app.
|
|
220
|
+
*/
|
|
221
|
+
loadSavedGraph(appId: string): UniversalNodeGraphDocument | null;
|
|
222
|
+
/**
|
|
223
|
+
* Triggers a browser download of the node graph as a portable JSON file.
|
|
224
|
+
*/
|
|
225
|
+
exportGraphAsJsonFile(graphDoc: UniversalNodeGraphDocument): void;
|
|
226
|
+
/**
|
|
227
|
+
* Reads and parses a graph JSON file from an input file element.
|
|
228
|
+
*/
|
|
229
|
+
parseGraphJsonFile(file: File): Promise<NodeGraphValidationResult>;
|
|
230
|
+
}
|
|
231
|
+
declare const nodeGraphPersistence: NodeGraphPersistenceService;
|
|
232
|
+
|
|
233
|
+
export { CompositeBackend, EndpointGenerator, type GeneratedEndpointSummary, LOCAL_STORAGE_GRAPHS_PREFIX, type LocalService, NodeGraphPersistenceService, type NodeGraphValidationResult, type RemoteServiceProxy, type SaveGraphOptions, type UniversalAppEntity, type UniversalGraphEdge, type UniversalGraphNode, type UniversalNodeGraphDocument, type UniversalStorageConnection, createBackend, createCompositeService, createLocalService, createRemoteService, exportGraphAsJsonFile, nodeGraphPersistence, parseGraphJsonFile, validateGraphDocument };
|
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompositeBackend,
|
|
3
3
|
EndpointGenerator,
|
|
4
|
+
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
5
|
+
NodeGraphPersistenceService,
|
|
4
6
|
createBackend,
|
|
5
7
|
createCompositeService,
|
|
6
8
|
createLocalService,
|
|
7
|
-
createRemoteService
|
|
8
|
-
|
|
9
|
+
createRemoteService,
|
|
10
|
+
exportGraphAsJsonFile,
|
|
11
|
+
nodeGraphPersistence,
|
|
12
|
+
parseGraphJsonFile,
|
|
13
|
+
validateGraphDocument
|
|
14
|
+
} from "../chunk-BM4QMVPA.js";
|
|
9
15
|
import "../chunk-IPP4VURQ.js";
|
|
10
16
|
export {
|
|
11
17
|
CompositeBackend,
|
|
12
18
|
EndpointGenerator,
|
|
19
|
+
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
20
|
+
NodeGraphPersistenceService,
|
|
13
21
|
createBackend,
|
|
14
22
|
createCompositeService,
|
|
15
23
|
createLocalService,
|
|
16
|
-
createRemoteService
|
|
24
|
+
createRemoteService,
|
|
25
|
+
exportGraphAsJsonFile,
|
|
26
|
+
nodeGraphPersistence,
|
|
27
|
+
parseGraphJsonFile,
|
|
28
|
+
validateGraphDocument
|
|
17
29
|
};
|
|
@@ -96,6 +96,38 @@ interface AdaptedStorageConnection {
|
|
|
96
96
|
s3Region?: string;
|
|
97
97
|
s3Endpoint?: string;
|
|
98
98
|
}
|
|
99
|
+
interface KeyMaterial {
|
|
100
|
+
secretHex: string;
|
|
101
|
+
cipher: 'aes-256-gcm';
|
|
102
|
+
envelope: 'salt_iv_tag_ciphertext';
|
|
103
|
+
}
|
|
104
|
+
interface SrklVaultAccessResponse {
|
|
105
|
+
success: boolean;
|
|
106
|
+
appId: string;
|
|
107
|
+
workspaceId: string;
|
|
108
|
+
workspaceName: string;
|
|
109
|
+
folderPrefix: string;
|
|
110
|
+
storageProvider: 'backblaze_b2' | 'cloudflare_r2' | 'aws_s3' | string;
|
|
111
|
+
presignedUrl: string;
|
|
112
|
+
keyMaterial: KeyMaterial;
|
|
113
|
+
supportedServices: string[];
|
|
114
|
+
expiresAt: string;
|
|
115
|
+
ttlSeconds: number;
|
|
116
|
+
}
|
|
117
|
+
interface ServiceAccountEntry {
|
|
118
|
+
id: string;
|
|
119
|
+
serviceId: string;
|
|
120
|
+
name: string;
|
|
121
|
+
credentials: Record<string, any>;
|
|
122
|
+
status?: string;
|
|
123
|
+
lastSync?: string;
|
|
124
|
+
metadata?: Record<string, any>;
|
|
125
|
+
createdAt?: string;
|
|
126
|
+
updatedAt?: string;
|
|
127
|
+
}
|
|
128
|
+
interface CredentialRegistryMap {
|
|
129
|
+
[serviceId: string]: ServiceAccountEntry[];
|
|
130
|
+
}
|
|
99
131
|
|
|
100
132
|
/**
|
|
101
133
|
* @file SrklClient.ts
|
|
@@ -188,4 +220,79 @@ interface UseSrklServicesResult {
|
|
|
188
220
|
}
|
|
189
221
|
declare function useSrklServices(options: UseSrklServicesOptions): UseSrklServicesResult;
|
|
190
222
|
|
|
191
|
-
|
|
223
|
+
declare function hexToBytes(hex: string): Uint8Array;
|
|
224
|
+
/**
|
|
225
|
+
* Decrypt an AES-256-GCM vault envelope in browser memory using Web Crypto API.
|
|
226
|
+
*/
|
|
227
|
+
declare function decryptVaultBufferInBrowser(envelopeBuffer: ArrayBuffer | Uint8Array, secretHex: string): Promise<Uint8Array>;
|
|
228
|
+
|
|
229
|
+
declare class SrklCredentialRegistry {
|
|
230
|
+
private registry;
|
|
231
|
+
constructor();
|
|
232
|
+
/**
|
|
233
|
+
* Populate the in-memory registry directly from an initialized sql.js Database instance.
|
|
234
|
+
* Performs the set intersection: DB.services ∩ DEPM.supported_services.
|
|
235
|
+
*/
|
|
236
|
+
populateFromSqlite(db: any, supportedServices: string[]): void;
|
|
237
|
+
/**
|
|
238
|
+
* Register a service account in volatile memory (for manual entry or synced accounts)
|
|
239
|
+
*/
|
|
240
|
+
registerServiceAccount(account: ServiceAccountEntry): void;
|
|
241
|
+
getAccountsForService(serviceId: string): ServiceAccountEntry[];
|
|
242
|
+
getPrimaryAccount(serviceId: string): ServiceAccountEntry | null;
|
|
243
|
+
hasCredentials(serviceId: string): boolean;
|
|
244
|
+
listAvailableServices(): string[];
|
|
245
|
+
toMap(): CredentialRegistryMap;
|
|
246
|
+
clear(): void;
|
|
247
|
+
}
|
|
248
|
+
declare const globalCredentialRegistry: SrklCredentialRegistry;
|
|
249
|
+
|
|
250
|
+
interface VaultAccessClientOptions {
|
|
251
|
+
srklApiBaseUrl: string;
|
|
252
|
+
appId: string;
|
|
253
|
+
supportedServices: string[];
|
|
254
|
+
}
|
|
255
|
+
declare class SrklVaultAccessClient {
|
|
256
|
+
private readonly options;
|
|
257
|
+
private registry;
|
|
258
|
+
private activeGrant;
|
|
259
|
+
private sqlEngine;
|
|
260
|
+
constructor(options: VaultAccessClientOptions);
|
|
261
|
+
/**
|
|
262
|
+
* Initialize sql.js engine (WASM).
|
|
263
|
+
* Consumers can pass pre-loaded initSqlJs or let this load from window or CDN.
|
|
264
|
+
*/
|
|
265
|
+
initSqlEngine(customInitSqlJs?: any): Promise<any>;
|
|
266
|
+
/**
|
|
267
|
+
* Full pipeline: Authorize → Presigned URL → Direct Download → Decrypt → SQLite Query → Registry.
|
|
268
|
+
*/
|
|
269
|
+
loadCredentials(userSessionToken: string, workspaceId?: string, customInitSqlJs?: any): Promise<SrklCredentialRegistry>;
|
|
270
|
+
getRegistry(): SrklCredentialRegistry;
|
|
271
|
+
getActiveGrant(): SrklVaultAccessResponse | null;
|
|
272
|
+
clear(): void;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
declare function syncSrklAccounts(userId: string, sessionToken: string, srklUrl?: string): Promise<{
|
|
276
|
+
success: boolean;
|
|
277
|
+
accounts?: any[];
|
|
278
|
+
error?: string;
|
|
279
|
+
sourceUrl?: string;
|
|
280
|
+
}>;
|
|
281
|
+
|
|
282
|
+
declare const srklService: {
|
|
283
|
+
name: string;
|
|
284
|
+
description: string;
|
|
285
|
+
runtime: {
|
|
286
|
+
VaultAccessClient: typeof SrklVaultAccessClient;
|
|
287
|
+
CredentialRegistry: typeof SrklCredentialRegistry;
|
|
288
|
+
decryptVaultBufferInBrowser: typeof decryptVaultBufferInBrowser;
|
|
289
|
+
hexToBytes: typeof hexToBytes;
|
|
290
|
+
};
|
|
291
|
+
deployment: {
|
|
292
|
+
target: string;
|
|
293
|
+
supportedEngines: string[];
|
|
294
|
+
version: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
export { type AdaptedStorageConnection, type AppAccountManifest, type AppServiceDeclaration, CANONICAL_SRKL_URL, type CredentialRegistryMap, type EcosystemAccount, type EcosystemAccountsRequest, type EcosystemAccountsResponse, type EcosystemServiceCategory, type KeyMaterial, type ServiceAccountEntry, SrklClient, type SrklClientOptions, SrklCredentialRegistry, type SrklEcosystemQueryOptions, type SrklEcosystemResponse, type SrklServiceAccount, SrklVaultAccessClient, type SrklVaultAccessResponse, type UseSrklServicesOptions, type UseSrklServicesResult, type VaultAccessClientOptions, createSrklClient, decryptVaultBufferInBrowser, getPrimarySrklDeploymentUrl, getSrklAccounts, globalCredentialRegistry, hexToBytes, srklListBackblazeBuckets, srklService, syncSrklAccounts, useSrklServices };
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CANONICAL_SRKL_URL,
|
|
3
3
|
SrklClient,
|
|
4
|
+
SrklCredentialRegistry,
|
|
5
|
+
SrklVaultAccessClient,
|
|
4
6
|
createSrklClient,
|
|
7
|
+
decryptVaultBufferInBrowser,
|
|
5
8
|
getPrimarySrklDeploymentUrl,
|
|
6
9
|
getSrklAccounts,
|
|
10
|
+
globalCredentialRegistry,
|
|
11
|
+
hexToBytes,
|
|
7
12
|
srklListBackblazeBuckets,
|
|
13
|
+
srklService,
|
|
14
|
+
syncSrklAccounts,
|
|
8
15
|
useSrklServices
|
|
9
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-KX3OTBQ3.js";
|
|
10
17
|
import "../chunk-4QEMALXF.js";
|
|
11
18
|
export {
|
|
12
19
|
CANONICAL_SRKL_URL,
|
|
13
20
|
SrklClient,
|
|
21
|
+
SrklCredentialRegistry,
|
|
22
|
+
SrklVaultAccessClient,
|
|
14
23
|
createSrklClient,
|
|
24
|
+
decryptVaultBufferInBrowser,
|
|
15
25
|
getPrimarySrklDeploymentUrl,
|
|
16
26
|
getSrklAccounts,
|
|
27
|
+
globalCredentialRegistry,
|
|
28
|
+
hexToBytes,
|
|
17
29
|
srklListBackblazeBuckets,
|
|
30
|
+
srklService,
|
|
31
|
+
syncSrklAccounts,
|
|
18
32
|
useSrklServices
|
|
19
33
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as BaseStorageAdapter, S as StorageConfig, F as FileInfo, D as DeleteFolderResult, R as RenameFolderResult, C as ConnectionTestResult } from '../BaseStorageAdapter-tosOoSUg.js';
|
|
2
2
|
export { a as StorageMode, b as StorageProviderType, U as UploadResult } from '../BaseStorageAdapter-tosOoSUg.js';
|
|
3
|
-
import '@kloks/functions';
|
|
3
|
+
import '@ultrst-armada/kloks/functions';
|
|
4
4
|
|
|
5
5
|
declare class LocalFSAdapter extends BaseStorageAdapter {
|
|
6
6
|
private basePath;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CounterState, TelemetryEvents } from '@kloks/services';
|
|
2
|
-
import { ExecutableBackendFacade, WorkerExecutionBoundary } from '@kloks/backend/execution';
|
|
1
|
+
import { CounterState, TelemetryEvents } from '@ultrst-armada/kloks/services';
|
|
2
|
+
import { ExecutableBackendFacade, WorkerExecutionBoundary } from '@ultrst-armada/kloks/backend/execution';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @file backendExecutionFacade.ts
|
|
@@ -14,7 +14,7 @@ declare const workerExecutionBoundary: WorkerExecutionBoundary;
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @file index.ts
|
|
17
|
-
* @description @kloks/orchestrations — Canonical Orchestrators A & B built on KrnlTS & @kloks/services.
|
|
17
|
+
* @description @ultrst-armada/kloks/orchestrations — Canonical Orchestrators A & B built on KrnlTS & @ultrst-armada/kloks/services.
|
|
18
18
|
* Orchestrator A: Service A (Pure) -> Service B (Stateful)
|
|
19
19
|
* Orchestrator B: Service B (Stateful) -> Service C (Event-Emitting)
|
|
20
20
|
*/
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ServiceAFacade,
|
|
4
4
|
ServiceBFacade,
|
|
5
5
|
ServiceCFacade
|
|
6
|
-
} from "@kloks/services";
|
|
6
|
+
} from "@ultrst-armada/kloks/services";
|
|
7
7
|
|
|
8
8
|
// src/worker-facade/backendExecutionFacade.ts
|
|
9
9
|
import {
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
WorkerExecutionBoundary,
|
|
12
12
|
ServiceDispatcher,
|
|
13
13
|
createOperationComponent
|
|
14
|
-
} from "@kloks/backend/execution";
|
|
15
|
-
import { SKIPO_EXECUTION } from "@kloks/state-graph";
|
|
14
|
+
} from "@ultrst-armada/kloks/backend/execution";
|
|
15
|
+
import { SKIPO_EXECUTION } from "@ultrst-armada/kloks/state-graph";
|
|
16
16
|
var WorkspaceBackendFacade = class extends ExecutableBackendFacade {
|
|
17
17
|
};
|
|
18
18
|
var backendFacade = new WorkspaceBackendFacade("WorkspaceBackendFacade");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _ultrst_armada_krnl from '@ultrst-armada/krnl';
|
|
2
2
|
import { ServiceDefinition, IService, EndpointDescriptor, ProtocolAdapter } from '@ultrst-armada/krnl';
|
|
3
|
-
import { AdminDatabaseClusterConfig, DatabaseConnectionEntry, UserStorageConnection, AuthState, UserAccount, UserRole, UserWorkspaceRecord } from '@kloks/state-graph';
|
|
4
|
-
export { AuthState, UserAccount, UserRole, UserSession, UserStorageConnection, UserWorkspaceRecord } from '@kloks/state-graph';
|
|
3
|
+
import { AdminDatabaseClusterConfig, DatabaseConnectionEntry, UserStorageConnection, AuthState, UserAccount, UserRole, UserWorkspaceRecord } from '@ultrst-armada/kloks/state-graph';
|
|
4
|
+
export { AuthState, UserAccount, UserRole, UserSession, UserStorageConnection, UserWorkspaceRecord } from '@ultrst-armada/kloks/state-graph';
|
|
5
5
|
|
|
6
6
|
interface SystemEnvironmentStatus {
|
|
7
7
|
databaseUrlConfigured: boolean;
|
|
@@ -282,7 +282,7 @@ declare const SystemDbClientServiceFacade: {
|
|
|
282
282
|
|
|
283
283
|
/**
|
|
284
284
|
* @file index.ts
|
|
285
|
-
* @description @kloks/services — Canonical KrnlTS Services A, B, C, D.
|
|
285
|
+
* @description @ultrst-armada/kloks/services — Canonical KrnlTS Services A, B, C, D.
|
|
286
286
|
* Exports ServiceFacade, ServiceDefinition, and related types for each service.
|
|
287
287
|
* Built strictly on KrnlTS with zero dependency on Skipo or Floks.
|
|
288
288
|
*/
|
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
SkipoExecutionEngine,
|
|
14
14
|
useCommand
|
|
15
15
|
} from "./chunk-ZTHBPV24.js";
|
|
16
|
-
import "./chunk-RHRXPY2U.js";
|
|
17
16
|
import {
|
|
18
17
|
AttractionEngine,
|
|
19
18
|
GhostInferenceEngine,
|
|
@@ -23,12 +22,23 @@ import {
|
|
|
23
22
|
getBeamPoints,
|
|
24
23
|
useMagneticTraces
|
|
25
24
|
} from "./chunk-JXDJZSFW.js";
|
|
25
|
+
import "./chunk-RHRXPY2U.js";
|
|
26
26
|
import {
|
|
27
27
|
ConnectionRuleStore,
|
|
28
28
|
HandleTypeRegistry,
|
|
29
29
|
WireTypeRegistry,
|
|
30
30
|
initializeDefaultGraphRules
|
|
31
31
|
} from "./chunk-TZOL3RN7.js";
|
|
32
|
+
import "./chunk-Q5I42UX7.js";
|
|
33
|
+
import {
|
|
34
|
+
LifecycleCycleError,
|
|
35
|
+
LifecycleGraph,
|
|
36
|
+
SKIPO_STATE,
|
|
37
|
+
SkipoStateEngine,
|
|
38
|
+
useLifecycleScope,
|
|
39
|
+
useSkipoBind,
|
|
40
|
+
useSkipoState
|
|
41
|
+
} from "./chunk-SHIBCPGQ.js";
|
|
32
42
|
import {
|
|
33
43
|
CommandApi,
|
|
34
44
|
GhostStore,
|
|
@@ -56,16 +66,6 @@ import {
|
|
|
56
66
|
import {
|
|
57
67
|
CompatibilityMatrix
|
|
58
68
|
} from "./chunk-ISFNY7EZ.js";
|
|
59
|
-
import "./chunk-Q5I42UX7.js";
|
|
60
|
-
import {
|
|
61
|
-
LifecycleCycleError,
|
|
62
|
-
LifecycleGraph,
|
|
63
|
-
SKIPO_STATE,
|
|
64
|
-
SkipoStateEngine,
|
|
65
|
-
useLifecycleScope,
|
|
66
|
-
useSkipoBind,
|
|
67
|
-
useSkipoState
|
|
68
|
-
} from "./chunk-SHIBCPGQ.js";
|
|
69
69
|
import "./chunk-3RG5ZIWI.js";
|
|
70
70
|
|
|
71
71
|
// ../../node_modules/.pnpm/@ultrst-armada+krnl@1.0.0/node_modules/@ultrst-armada/krnl/packages/core/dist/index.js
|