@ultrst-armada/kloks 2.0.5 → 2.1.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/package.json +71 -1
- package/packages/backend/dist/{chunk-IRNQXVYA.js → chunk-23LS4LWC.js} +2 -2
- package/packages/backend/dist/chunk-3UZFKB4M.js +28 -0
- package/packages/backend/dist/chunk-5GW5PJWQ.js +96 -0
- package/packages/backend/dist/chunk-5SXOQAAX.js +41 -0
- package/packages/backend/dist/chunk-5UVJDX7Q.js +44 -0
- package/packages/backend/dist/chunk-6BL5DXFZ.js +43 -0
- package/packages/backend/dist/{chunk-Z2CT2MJ2.js → chunk-6I7I4C6H.js} +1 -1
- package/packages/backend/dist/{chunk-TRP76UR2.js → chunk-DJ457D5D.js} +1 -1
- package/packages/backend/dist/{chunk-WYEVA4RC.js → chunk-DTPCWHQJ.js} +1 -1
- package/packages/backend/dist/{chunk-XKUWLO2M.js → chunk-ENMIBY2V.js} +2 -2
- package/packages/backend/dist/chunk-EQFZX3JT.js +63 -0
- package/packages/backend/dist/chunk-FKK23J2A.js +363 -0
- package/packages/backend/dist/{chunk-BRNWUIH5.js → chunk-GTKW4IGC.js} +1 -1
- package/packages/backend/dist/chunk-HRJCGJTR.js +261 -0
- package/packages/backend/dist/chunk-IKDYKRVH.js +51 -0
- package/packages/backend/dist/chunk-JGR6BJVX.js +74 -0
- package/packages/backend/dist/chunk-NFK6YFTA.js +157 -0
- package/packages/backend/dist/chunk-NZWCPJDJ.js +82 -0
- package/packages/backend/dist/chunk-OT2PSPBK.js +74 -0
- package/packages/backend/dist/chunk-QYWVZBI6.js +54 -0
- package/packages/backend/dist/chunk-YFMHT77Z.js +58 -0
- package/packages/backend/dist/{chunk-ICVDGH2I.js → chunk-ZSH73LE5.js} +214 -6
- package/packages/backend/dist/client-JXGCPWEA.js +7 -0
- package/packages/backend/dist/core/b2ExplorerContext.d.ts +41 -0
- package/packages/backend/dist/core/b2ExplorerOperations.d.ts +2 -0
- package/packages/backend/dist/core/b2ExplorerOperations.test.d.ts +1 -0
- package/packages/backend/dist/index.d.ts +1 -0
- package/packages/backend/dist/index.js +118 -9
- package/packages/backend/dist/krnl-services.js +6 -6
- package/packages/backend/dist/node.d.ts +1 -0
- package/packages/backend/dist/node.js +79 -43
- package/packages/backend/dist/provider-services/capacity.d.ts +2 -0
- package/packages/backend/dist/provider-services/client.d.ts +18 -0
- package/packages/backend/dist/provider-services/cloudflare.d.ts +6 -0
- package/packages/backend/dist/provider-services/facades.d.ts +44 -0
- package/packages/backend/dist/provider-services/gemini.d.ts +8 -0
- package/packages/backend/dist/provider-services/google/cloud-run.d.ts +1 -0
- package/packages/backend/dist/provider-services/google/cloud-run.js +9 -0
- package/packages/backend/dist/provider-services/google/cloud-shell.d.ts +1 -0
- package/packages/backend/dist/provider-services/google/cloud-shell.js +9 -0
- package/packages/backend/dist/provider-services/google/cloud-storage.d.ts +1 -0
- package/packages/backend/dist/provider-services/google/cloud-storage.js +9 -0
- package/packages/backend/dist/provider-services/google/drive.d.ts +4 -0
- package/packages/backend/dist/provider-services/google/drive.js +20 -0
- package/packages/backend/dist/provider-services/google/gemini.d.ts +2 -0
- package/packages/backend/dist/provider-services/google/gemini.js +10 -0
- package/packages/backend/dist/provider-services/google/index.d.ts +3 -0
- package/packages/backend/dist/provider-services/google/index.js +17 -0
- package/packages/backend/dist/provider-services/google/vertex-ai.d.ts +1 -0
- package/packages/backend/dist/provider-services/google/vertex-ai.js +9 -0
- package/packages/backend/dist/provider-services/index.d.ts +11 -0
- package/packages/backend/dist/provider-services/index.js +118 -0
- package/packages/backend/dist/provider-services/node.d.ts +4 -0
- package/packages/backend/dist/provider-services/node.js +40 -0
- package/packages/backend/dist/provider-services/operations.d.ts +28 -0
- package/packages/backend/dist/provider-services/operations.test.d.ts +1 -0
- package/packages/backend/dist/provider-services/provider-services.test.d.ts +1 -0
- package/packages/backend/dist/provider-services/registry.d.ts +16 -0
- package/packages/backend/dist/provider-services/storage/backblaze-b2.d.ts +7 -0
- package/packages/backend/dist/provider-services/storage/backblaze-b2.js +8 -0
- package/packages/backend/dist/provider-services/storage/contract.d.ts +45 -0
- package/packages/backend/dist/provider-services/storage/dropbox.d.ts +3 -0
- package/packages/backend/dist/provider-services/storage/dropbox.js +12 -0
- package/packages/backend/dist/provider-services/storage/github.d.ts +4 -0
- package/packages/backend/dist/provider-services/storage/github.js +12 -0
- package/packages/backend/dist/provider-services/storage/google-drive.d.ts +4 -0
- package/packages/backend/dist/provider-services/storage/index.d.ts +7 -0
- package/packages/backend/dist/provider-services/storage/node.d.ts +2 -0
- package/packages/backend/dist/provider-services/storage/node.js +17 -0
- package/packages/backend/dist/provider-services/storage/service.d.ts +27 -0
- package/packages/backend/dist/provider-services/storage/storage-contract.test.d.ts +1 -0
- package/packages/backend/dist/provider-services/storage-facades.d.ts +55 -0
- package/packages/backend/dist/provider-services/storage-node.d.ts +11 -0
- package/packages/backend/dist/provider-services/storage-providers.d.ts +30 -0
- package/packages/backend/dist/provider-services/storage-providers.test.d.ts +1 -0
- package/packages/backend/dist/provider-services/storage.d.ts +3 -0
- package/packages/backend/dist/provider-services/storage.js +29 -0
- package/packages/backend/dist/provider-services/types.d.ts +61 -0
- package/packages/backend/dist/provider-services/vercel.d.ts +13 -0
- package/packages/backend/dist/services/node.js +5 -5
- package/packages/backend/dist/srkl/index.js +4 -4
- package/packages/backend/dist/workspace/node.js +6 -6
- package/packages/backend/dist/{workspaceFileCore-UURQPP62.js → workspaceFileCore-RQO7YMRD.js} +3 -3
- package/packages/backend/package.json +71 -1
- package/packages/state-graph/dist/browser.js +9 -9
- package/packages/state-graph/dist/index.js +9 -9
- package/packages/backend/dist/{chunk-FSOOAU6G.js → chunk-TOLAWKAY.js} +4 -4
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
workspaceGraphService
|
|
15
|
+
} from "./chunk-6I7I4C6H.js";
|
|
1
16
|
import {
|
|
2
17
|
CANONICAL_SRKL_URL,
|
|
3
18
|
SrklClient,
|
|
@@ -15,8 +30,20 @@ import {
|
|
|
15
30
|
srklService,
|
|
16
31
|
syncSrklAccounts,
|
|
17
32
|
useSrklServices
|
|
18
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-DTPCWHQJ.js";
|
|
19
34
|
import "./chunk-G4EDIAHW.js";
|
|
35
|
+
import {
|
|
36
|
+
BackblazeB2Adapter,
|
|
37
|
+
BucketStorageService,
|
|
38
|
+
LocalFSAdapter,
|
|
39
|
+
S3Adapter,
|
|
40
|
+
StorageAdapterFactory,
|
|
41
|
+
SupabaseStorageAdapter,
|
|
42
|
+
ensureS3DirectoryMarker,
|
|
43
|
+
permanentDeleteS3Folder,
|
|
44
|
+
permanentDeleteS3Object,
|
|
45
|
+
renameS3Folder
|
|
46
|
+
} from "./chunk-AUNIGE6Q.js";
|
|
20
47
|
import {
|
|
21
48
|
RemoteWorkspaceService,
|
|
22
49
|
SyncEngine,
|
|
@@ -31,37 +58,24 @@ import {
|
|
|
31
58
|
setWorkingWorkspaceConfig,
|
|
32
59
|
syncWorkspace,
|
|
33
60
|
workingWorkspaceService
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
CompositeBackend,
|
|
37
|
-
EndpointGenerator,
|
|
38
|
-
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
39
|
-
NodeGraphPersistenceService,
|
|
40
|
-
createBackend,
|
|
41
|
-
createCompositeService,
|
|
42
|
-
createLocalService,
|
|
43
|
-
createRemoteService,
|
|
44
|
-
exportGraphAsJsonFile,
|
|
45
|
-
nodeGraphPersistence,
|
|
46
|
-
parseGraphJsonFile,
|
|
47
|
-
validateGraphDocument,
|
|
48
|
-
workspaceGraphService
|
|
49
|
-
} from "./chunk-Z2CT2MJ2.js";
|
|
50
|
-
import {
|
|
51
|
-
BackblazeB2Adapter,
|
|
52
|
-
BucketStorageService,
|
|
53
|
-
LocalFSAdapter,
|
|
54
|
-
S3Adapter,
|
|
55
|
-
StorageAdapterFactory,
|
|
56
|
-
SupabaseStorageAdapter,
|
|
57
|
-
ensureS3DirectoryMarker,
|
|
58
|
-
permanentDeleteS3Folder,
|
|
59
|
-
permanentDeleteS3Object,
|
|
60
|
-
renameS3Folder
|
|
61
|
-
} from "./chunk-AUNIGE6Q.js";
|
|
61
|
+
} from "./chunk-ENMIBY2V.js";
|
|
62
62
|
import {
|
|
63
63
|
GoogleDriveStorageService
|
|
64
64
|
} from "./chunk-TRJVVNO7.js";
|
|
65
|
+
import {
|
|
66
|
+
BackblazeB2ProviderService,
|
|
67
|
+
CloudflareProviderService,
|
|
68
|
+
DropboxProviderService,
|
|
69
|
+
GeminiProviderService,
|
|
70
|
+
GitHubProviderService,
|
|
71
|
+
GitLabProviderService,
|
|
72
|
+
GoogleAccountProviderService,
|
|
73
|
+
GoogleDriveProviderService,
|
|
74
|
+
VercelProviderService
|
|
75
|
+
} from "./chunk-HRJCGJTR.js";
|
|
76
|
+
import {
|
|
77
|
+
CanonicalStorageProviderService
|
|
78
|
+
} from "./chunk-QYWVZBI6.js";
|
|
65
79
|
import "./chunk-LV55WKZR.js";
|
|
66
80
|
import "./chunk-WVDSMTW3.js";
|
|
67
81
|
import {
|
|
@@ -83,9 +97,6 @@ import {
|
|
|
83
97
|
} from "./chunk-CV55JMT7.js";
|
|
84
98
|
import "./chunk-LC6ULEM2.js";
|
|
85
99
|
import "./chunk-DAG2L4RN.js";
|
|
86
|
-
import {
|
|
87
|
-
WorkspaceCloneSyncEngine
|
|
88
|
-
} from "./chunk-CDRHYO44.js";
|
|
89
100
|
import {
|
|
90
101
|
isSecretMasked,
|
|
91
102
|
normalizeBackblazeCredentials,
|
|
@@ -94,6 +105,21 @@ import {
|
|
|
94
105
|
import {
|
|
95
106
|
BaseStorageAdapter
|
|
96
107
|
} from "./chunk-5Y7K7HAT.js";
|
|
108
|
+
import {
|
|
109
|
+
WorkspaceCloneSyncEngine
|
|
110
|
+
} from "./chunk-CDRHYO44.js";
|
|
111
|
+
import "./chunk-NFK6YFTA.js";
|
|
112
|
+
import "./chunk-3UZFKB4M.js";
|
|
113
|
+
import "./chunk-EQFZX3JT.js";
|
|
114
|
+
import "./chunk-IKDYKRVH.js";
|
|
115
|
+
import "./chunk-OT2PSPBK.js";
|
|
116
|
+
import "./chunk-NZWCPJDJ.js";
|
|
117
|
+
import "./chunk-5GW5PJWQ.js";
|
|
118
|
+
import "./chunk-6BL5DXFZ.js";
|
|
119
|
+
import "./chunk-YFMHT77Z.js";
|
|
120
|
+
import "./chunk-FKK23J2A.js";
|
|
121
|
+
import "./chunk-JGR6BJVX.js";
|
|
122
|
+
import "./chunk-5UVJDX7Q.js";
|
|
97
123
|
import {
|
|
98
124
|
BaseApiRoute,
|
|
99
125
|
createSSEResponse,
|
|
@@ -205,12 +231,12 @@ import {
|
|
|
205
231
|
readUserWorkspaceStorageFile,
|
|
206
232
|
verifyGoogleDriveAuthorizationState,
|
|
207
233
|
writeUserWorkspaceStorageFile
|
|
208
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-ZSH73LE5.js";
|
|
209
235
|
import {
|
|
210
236
|
getPrimarySrklDeploymentUrl,
|
|
211
237
|
getSrklAccounts,
|
|
212
238
|
srklListBackblazeBuckets
|
|
213
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-DJ457D5D.js";
|
|
214
240
|
import {
|
|
215
241
|
formatCanonicalWorkspaceFolderName,
|
|
216
242
|
sanitizeWorkspaceName
|
|
@@ -229,7 +255,7 @@ import {
|
|
|
229
255
|
syncWorkspaceDataToBucket,
|
|
230
256
|
syncWorkspaceDeleteToBucket,
|
|
231
257
|
updateWorkspace
|
|
232
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-23LS4LWC.js";
|
|
233
259
|
import {
|
|
234
260
|
configureLocalWorkspaceFileAdapter,
|
|
235
261
|
deleteWorkspaceFile,
|
|
@@ -241,7 +267,7 @@ import {
|
|
|
241
267
|
normalizeWorkspaceStoragePath,
|
|
242
268
|
readWorkspaceFile,
|
|
243
269
|
writeWorkspaceFile
|
|
244
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-GTKW4IGC.js";
|
|
245
271
|
import {
|
|
246
272
|
cleanDbUrl,
|
|
247
273
|
completeGoogleDriveAuthorization,
|
|
@@ -270,11 +296,17 @@ import {
|
|
|
270
296
|
testGoogleDriveConnectionForUser,
|
|
271
297
|
toPublicStorageConnection,
|
|
272
298
|
writeGoogleDriveFileForConnection
|
|
273
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-TOLAWKAY.js";
|
|
274
300
|
import {
|
|
275
301
|
loginSystemUser,
|
|
276
302
|
resolveUserFromToken
|
|
277
303
|
} from "./chunk-2COYZMUJ.js";
|
|
304
|
+
import {
|
|
305
|
+
normalizeSystemEnvironment,
|
|
306
|
+
resolveSystemDatabaseUrl,
|
|
307
|
+
resolveSystemDatabaseUrlCandidates,
|
|
308
|
+
tryResolveSystemDatabaseUrl
|
|
309
|
+
} from "./chunk-IP6XWQU2.js";
|
|
278
310
|
import {
|
|
279
311
|
authorizeB2,
|
|
280
312
|
b2DeleteFileVersion,
|
|
@@ -285,12 +317,6 @@ import {
|
|
|
285
317
|
b2UploadFile2 as b2UploadFile,
|
|
286
318
|
getB2BucketId
|
|
287
319
|
} from "./chunk-I6T64MLT.js";
|
|
288
|
-
import {
|
|
289
|
-
normalizeSystemEnvironment,
|
|
290
|
-
resolveSystemDatabaseUrl,
|
|
291
|
-
resolveSystemDatabaseUrlCandidates,
|
|
292
|
-
tryResolveSystemDatabaseUrl
|
|
293
|
-
} from "./chunk-IP6XWQU2.js";
|
|
294
320
|
import "./chunk-EMSSTOOK.js";
|
|
295
321
|
import {
|
|
296
322
|
DeterministicEndpointExecutor,
|
|
@@ -4574,6 +4600,7 @@ export {
|
|
|
4574
4600
|
AuthServiceDefinition,
|
|
4575
4601
|
AuthServiceFacade,
|
|
4576
4602
|
BackblazeB2Adapter,
|
|
4603
|
+
BackblazeB2ProviderService,
|
|
4577
4604
|
BackendClient,
|
|
4578
4605
|
BackendProvider,
|
|
4579
4606
|
BackendRegistry,
|
|
@@ -4586,6 +4613,8 @@ export {
|
|
|
4586
4613
|
CANONICAL_SRKL_URL,
|
|
4587
4614
|
CallbackRegistry,
|
|
4588
4615
|
LuthAuthClient2 as CanonicalAuthClient,
|
|
4616
|
+
CanonicalStorageProviderService,
|
|
4617
|
+
CloudflareProviderService,
|
|
4589
4618
|
CloudflareResourceFetcher,
|
|
4590
4619
|
CompositeBackend,
|
|
4591
4620
|
ConcurrencyConflictError,
|
|
@@ -4597,6 +4626,7 @@ export {
|
|
|
4597
4626
|
DatabaseServiceDefinition,
|
|
4598
4627
|
DatabaseServiceFacade,
|
|
4599
4628
|
DeterministicEndpointExecutor,
|
|
4629
|
+
DropboxProviderService,
|
|
4600
4630
|
EndpointGenerator,
|
|
4601
4631
|
EndpointRefresher,
|
|
4602
4632
|
EventBus,
|
|
@@ -4604,8 +4634,13 @@ export {
|
|
|
4604
4634
|
FrontendSession,
|
|
4605
4635
|
FunctionalityTable,
|
|
4606
4636
|
GRAPHS_ROOT,
|
|
4637
|
+
GeminiProviderService,
|
|
4607
4638
|
GeminiServiceDefinition,
|
|
4608
4639
|
GeminiServiceFacade,
|
|
4640
|
+
GitHubProviderService,
|
|
4641
|
+
GitLabProviderService,
|
|
4642
|
+
GoogleAccountProviderService,
|
|
4643
|
+
GoogleDriveProviderService,
|
|
4609
4644
|
GoogleDriveStorageService,
|
|
4610
4645
|
HTTPTransport,
|
|
4611
4646
|
HealthCheckService,
|
|
@@ -4652,6 +4687,7 @@ export {
|
|
|
4652
4687
|
SupabaseStorageAdapter,
|
|
4653
4688
|
SyncEngine,
|
|
4654
4689
|
ToolManagerService,
|
|
4690
|
+
VercelProviderService,
|
|
4655
4691
|
VercelResourceFetcher,
|
|
4656
4692
|
WORKSPACE_ASSETS_ROOT,
|
|
4657
4693
|
WORKSPACE_ROOT,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ProviderConnection } from './types.js';
|
|
2
|
+
export interface ProviderRequest {
|
|
3
|
+
path: string;
|
|
4
|
+
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
5
|
+
body?: unknown;
|
|
6
|
+
timeoutMs?: number;
|
|
7
|
+
query?: Record<string, string | number | boolean>;
|
|
8
|
+
}
|
|
9
|
+
export interface ProviderResponse<T> {
|
|
10
|
+
data: T;
|
|
11
|
+
status: number;
|
|
12
|
+
headers: Headers;
|
|
13
|
+
}
|
|
14
|
+
/** Server-side only: callers resolve scoped credentials from SRKL/Luth before creation. */
|
|
15
|
+
export declare function createProviderClient(connection: ProviderConnection, transport?: typeof fetch): {
|
|
16
|
+
providerId: string;
|
|
17
|
+
request: <T = unknown>(options: ProviderRequest) => Promise<ProviderResponse<T>>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ProviderConnection, ProviderUsageSnapshot } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Measure Cloudflare Workers Free DAILY requests, not a fictional monthly quota.
|
|
4
|
+
* Paid plans require an explicit budget policy and are not eligible by default.
|
|
5
|
+
*/
|
|
6
|
+
export declare function fetchCloudflareCapacity(connection: ProviderConnection, plan: 'free' | 'paid', now?: Date, transport?: typeof fetch): Promise<ProviderUsageSnapshot>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const CloudflareProviderService: {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
version: string;
|
|
5
|
+
runtime: "server";
|
|
6
|
+
deployment: "local";
|
|
7
|
+
definition: import("@ultrst-armada/krnl").ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
8
|
+
readonly telemetry: import("@ultrst-armada/krnl").TelemetryController;
|
|
9
|
+
createInstance: () => import("@ultrst-armada/krnl").ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
10
|
+
execute: <TIn = unknown, TOut = unknown>(operation: string, input: TIn) => Promise<TOut>;
|
|
11
|
+
};
|
|
12
|
+
export declare const VercelProviderService: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
version: string;
|
|
16
|
+
runtime: "server";
|
|
17
|
+
deployment: "local";
|
|
18
|
+
definition: import("@ultrst-armada/krnl").ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
19
|
+
readonly telemetry: import("@ultrst-armada/krnl").TelemetryController;
|
|
20
|
+
createInstance: () => import("@ultrst-armada/krnl").ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
21
|
+
execute: <TIn = unknown, TOut = unknown>(operation: string, input: TIn) => Promise<TOut>;
|
|
22
|
+
};
|
|
23
|
+
export declare const GoogleAccountProviderService: {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
version: string;
|
|
27
|
+
runtime: "server";
|
|
28
|
+
deployment: "local";
|
|
29
|
+
definition: import("@ultrst-armada/krnl").ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
30
|
+
readonly telemetry: import("@ultrst-armada/krnl").TelemetryController;
|
|
31
|
+
createInstance: () => import("@ultrst-armada/krnl").ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
32
|
+
execute: <TIn = unknown, TOut = unknown>(operation: string, input: TIn) => Promise<TOut>;
|
|
33
|
+
};
|
|
34
|
+
export declare const GeminiProviderService: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
version: string;
|
|
38
|
+
runtime: "server";
|
|
39
|
+
deployment: "local";
|
|
40
|
+
definition: import("@ultrst-armada/krnl").ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
41
|
+
readonly telemetry: import("@ultrst-armada/krnl").TelemetryController;
|
|
42
|
+
createInstance: () => import("@ultrst-armada/krnl").ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
43
|
+
execute: <TIn = unknown, TOut = unknown>(operation: string, input: TIn) => Promise<TOut>;
|
|
44
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ProviderConnection, ProviderUsageSnapshot } from './types.js';
|
|
2
|
+
/** Gemini key can enumerate models, but does not imply Google OAuth/Drive grants. */
|
|
3
|
+
export declare function listGeminiModels(connection: ProviderConnection, transport?: typeof fetch): Promise<Array<{
|
|
4
|
+
name: string;
|
|
5
|
+
displayName?: string;
|
|
6
|
+
}>>;
|
|
7
|
+
/** Model/project-specific quotas cannot be inferred from an account's API key. */
|
|
8
|
+
export declare function getGeminiQuotaStatus(accountId: string): ProviderUsageSnapshot;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cloudRunService: import("../types.js").ProviderDefinition;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cloudShellService: import("../types.js").ProviderDefinition;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cloudStorageService: import("../types.js").ProviderDefinition;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Selectively import Google Drive. No Gemini API or other Google Cloud services. */
|
|
2
|
+
export { GoogleDriveWorkspaceService, GOOGLE_DRIVE_WORKSPACE_SCOPE } from '../../storage/GoogleDriveWorkspaceService.js';
|
|
3
|
+
export { createGoogleDriveStorageService } from '../storage/google-drive.js';
|
|
4
|
+
export declare const driveService: import("../types.js").ProviderDefinition;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createGoogleDriveStorageService
|
|
3
|
+
} from "../../chunk-6BL5DXFZ.js";
|
|
4
|
+
import {
|
|
5
|
+
getProviderService
|
|
6
|
+
} from "../../chunk-FKK23J2A.js";
|
|
7
|
+
import "../../chunk-5UVJDX7Q.js";
|
|
8
|
+
import {
|
|
9
|
+
GOOGLE_DRIVE_WORKSPACE_SCOPE,
|
|
10
|
+
GoogleDriveWorkspaceService
|
|
11
|
+
} from "../../chunk-EMSSTOOK.js";
|
|
12
|
+
|
|
13
|
+
// src/provider-services/google/drive.ts
|
|
14
|
+
var driveService = getProviderService("google-drive");
|
|
15
|
+
export {
|
|
16
|
+
GOOGLE_DRIVE_WORKSPACE_SCOPE,
|
|
17
|
+
GoogleDriveWorkspaceService,
|
|
18
|
+
createGoogleDriveStorageService,
|
|
19
|
+
driveService
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getGoogleAccountProfile
|
|
3
|
+
} from "../../chunk-EQFZX3JT.js";
|
|
4
|
+
import "../../chunk-YFMHT77Z.js";
|
|
5
|
+
import {
|
|
6
|
+
getProviderService,
|
|
7
|
+
listProviderServiceChildren
|
|
8
|
+
} from "../../chunk-FKK23J2A.js";
|
|
9
|
+
|
|
10
|
+
// src/provider-services/google/index.ts
|
|
11
|
+
var getGoogleSuite = () => getProviderService("google");
|
|
12
|
+
var listGoogleServices = () => listProviderServiceChildren("google");
|
|
13
|
+
export {
|
|
14
|
+
getGoogleAccountProfile,
|
|
15
|
+
getGoogleSuite,
|
|
16
|
+
listGoogleServices
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const vertexAiService: import("../types.js").ProviderDefinition;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Stable, portable entrypoint for SRKL, DEPM, and other application consumers. */
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './registry.js';
|
|
4
|
+
export * from './capacity.js';
|
|
5
|
+
export * from './client.js';
|
|
6
|
+
export * from './cloudflare.js';
|
|
7
|
+
export * from './vercel.js';
|
|
8
|
+
export * from './gemini.js';
|
|
9
|
+
export * from './operations.js';
|
|
10
|
+
export * from './storage-providers.js';
|
|
11
|
+
export * from './storage/index.js';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import {
|
|
2
|
+
calculateProviderCapacity
|
|
3
|
+
} from "../chunk-5SXOQAAX.js";
|
|
4
|
+
import {
|
|
5
|
+
fetchCloudflareCapacity,
|
|
6
|
+
fetchVercelCapacity
|
|
7
|
+
} from "../chunk-NFK6YFTA.js";
|
|
8
|
+
import {
|
|
9
|
+
getGeminiQuotaStatus,
|
|
10
|
+
listGeminiModels
|
|
11
|
+
} from "../chunk-3UZFKB4M.js";
|
|
12
|
+
import {
|
|
13
|
+
getGoogleAccountProfile,
|
|
14
|
+
listCloudflareAccounts,
|
|
15
|
+
listCloudflarePages,
|
|
16
|
+
listCloudflareWorkers,
|
|
17
|
+
listVercelDeployments,
|
|
18
|
+
listVercelProjects
|
|
19
|
+
} from "../chunk-EQFZX3JT.js";
|
|
20
|
+
import {
|
|
21
|
+
createCanonicalStorageService,
|
|
22
|
+
getCanonicalStorageCapabilities,
|
|
23
|
+
listCanonicalStorageProviders
|
|
24
|
+
} from "../chunk-IKDYKRVH.js";
|
|
25
|
+
import {
|
|
26
|
+
createDropboxStorageService
|
|
27
|
+
} from "../chunk-OT2PSPBK.js";
|
|
28
|
+
import {
|
|
29
|
+
createGitHubStorageService
|
|
30
|
+
} from "../chunk-NZWCPJDJ.js";
|
|
31
|
+
import {
|
|
32
|
+
continueDropboxFolder,
|
|
33
|
+
listDropboxFolder,
|
|
34
|
+
listGitHubRepositories,
|
|
35
|
+
listGitHubRepositoryContents,
|
|
36
|
+
listGitLabProjects,
|
|
37
|
+
listGitLabRepositoryTree
|
|
38
|
+
} from "../chunk-5GW5PJWQ.js";
|
|
39
|
+
import {
|
|
40
|
+
createGoogleDriveStorageService
|
|
41
|
+
} from "../chunk-6BL5DXFZ.js";
|
|
42
|
+
import {
|
|
43
|
+
createProviderClient
|
|
44
|
+
} from "../chunk-YFMHT77Z.js";
|
|
45
|
+
import {
|
|
46
|
+
getProviderService,
|
|
47
|
+
getProviderServicePath,
|
|
48
|
+
listProviderServiceChildren,
|
|
49
|
+
listProviderServiceTree,
|
|
50
|
+
listProviderServices,
|
|
51
|
+
listRecognizedAccountServices,
|
|
52
|
+
resolveProviderServiceId
|
|
53
|
+
} from "../chunk-FKK23J2A.js";
|
|
54
|
+
import {
|
|
55
|
+
createBackblazeB2StorageService
|
|
56
|
+
} from "../chunk-JGR6BJVX.js";
|
|
57
|
+
import {
|
|
58
|
+
UnsupportedStorageOperation,
|
|
59
|
+
assertStorageOperation,
|
|
60
|
+
normalizeStoragePath,
|
|
61
|
+
readOnlyService
|
|
62
|
+
} from "../chunk-5UVJDX7Q.js";
|
|
63
|
+
import {
|
|
64
|
+
authorizeB2,
|
|
65
|
+
b2DownloadFile,
|
|
66
|
+
b2ListBuckets,
|
|
67
|
+
b2ListFileNames,
|
|
68
|
+
b2UploadFile2 as b2UploadFile
|
|
69
|
+
} from "../chunk-I6T64MLT.js";
|
|
70
|
+
import {
|
|
71
|
+
GOOGLE_DRIVE_WORKSPACE_SCOPE,
|
|
72
|
+
GoogleDriveWorkspaceService
|
|
73
|
+
} from "../chunk-EMSSTOOK.js";
|
|
74
|
+
export {
|
|
75
|
+
GOOGLE_DRIVE_WORKSPACE_SCOPE,
|
|
76
|
+
GoogleDriveWorkspaceService,
|
|
77
|
+
UnsupportedStorageOperation,
|
|
78
|
+
assertStorageOperation,
|
|
79
|
+
authorizeB2 as authorizeBackblazeB2,
|
|
80
|
+
calculateProviderCapacity,
|
|
81
|
+
continueDropboxFolder,
|
|
82
|
+
createBackblazeB2StorageService,
|
|
83
|
+
createCanonicalStorageService,
|
|
84
|
+
createDropboxStorageService,
|
|
85
|
+
createGitHubStorageService,
|
|
86
|
+
createGoogleDriveStorageService,
|
|
87
|
+
createProviderClient,
|
|
88
|
+
b2DownloadFile as downloadBackblazeB2File,
|
|
89
|
+
fetchCloudflareCapacity,
|
|
90
|
+
fetchVercelCapacity,
|
|
91
|
+
getCanonicalStorageCapabilities,
|
|
92
|
+
getGeminiQuotaStatus,
|
|
93
|
+
getGoogleAccountProfile,
|
|
94
|
+
getProviderService,
|
|
95
|
+
getProviderServicePath,
|
|
96
|
+
b2ListBuckets as listBackblazeB2Buckets,
|
|
97
|
+
b2ListFileNames as listBackblazeB2Files,
|
|
98
|
+
listCanonicalStorageProviders,
|
|
99
|
+
listCloudflareAccounts,
|
|
100
|
+
listCloudflarePages,
|
|
101
|
+
listCloudflareWorkers,
|
|
102
|
+
listDropboxFolder,
|
|
103
|
+
listGeminiModels,
|
|
104
|
+
listGitHubRepositories,
|
|
105
|
+
listGitHubRepositoryContents,
|
|
106
|
+
listGitLabProjects,
|
|
107
|
+
listGitLabRepositoryTree,
|
|
108
|
+
listProviderServiceChildren,
|
|
109
|
+
listProviderServiceTree,
|
|
110
|
+
listProviderServices,
|
|
111
|
+
listRecognizedAccountServices,
|
|
112
|
+
listVercelDeployments,
|
|
113
|
+
listVercelProjects,
|
|
114
|
+
normalizeStoragePath,
|
|
115
|
+
readOnlyService,
|
|
116
|
+
resolveProviderServiceId,
|
|
117
|
+
b2UploadFile as uploadBackblazeB2File
|
|
118
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BackblazeB2ProviderService,
|
|
3
|
+
CloudflareProviderService,
|
|
4
|
+
DropboxProviderService,
|
|
5
|
+
GeminiProviderService,
|
|
6
|
+
GitHubProviderService,
|
|
7
|
+
GitLabProviderService,
|
|
8
|
+
GoogleAccountProviderService,
|
|
9
|
+
GoogleDriveProviderService,
|
|
10
|
+
VercelProviderService
|
|
11
|
+
} from "../chunk-HRJCGJTR.js";
|
|
12
|
+
import {
|
|
13
|
+
CanonicalStorageProviderService
|
|
14
|
+
} from "../chunk-QYWVZBI6.js";
|
|
15
|
+
import "../chunk-NFK6YFTA.js";
|
|
16
|
+
import "../chunk-3UZFKB4M.js";
|
|
17
|
+
import "../chunk-EQFZX3JT.js";
|
|
18
|
+
import "../chunk-IKDYKRVH.js";
|
|
19
|
+
import "../chunk-OT2PSPBK.js";
|
|
20
|
+
import "../chunk-NZWCPJDJ.js";
|
|
21
|
+
import "../chunk-5GW5PJWQ.js";
|
|
22
|
+
import "../chunk-6BL5DXFZ.js";
|
|
23
|
+
import "../chunk-YFMHT77Z.js";
|
|
24
|
+
import "../chunk-FKK23J2A.js";
|
|
25
|
+
import "../chunk-JGR6BJVX.js";
|
|
26
|
+
import "../chunk-5UVJDX7Q.js";
|
|
27
|
+
import "../chunk-I6T64MLT.js";
|
|
28
|
+
import "../chunk-EMSSTOOK.js";
|
|
29
|
+
export {
|
|
30
|
+
BackblazeB2ProviderService,
|
|
31
|
+
CanonicalStorageProviderService,
|
|
32
|
+
CloudflareProviderService,
|
|
33
|
+
DropboxProviderService,
|
|
34
|
+
GeminiProviderService,
|
|
35
|
+
GitHubProviderService,
|
|
36
|
+
GitLabProviderService,
|
|
37
|
+
GoogleAccountProviderService,
|
|
38
|
+
GoogleDriveProviderService,
|
|
39
|
+
VercelProviderService
|
|
40
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ProviderConnection } from './types.js';
|
|
2
|
+
export declare function listCloudflareWorkers(connection: ProviderConnection, transport?: typeof fetch): Promise<Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
modified_on?: string;
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function listCloudflarePages(connection: ProviderConnection, transport?: typeof fetch): Promise<Array<{
|
|
7
|
+
name: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
}>>;
|
|
10
|
+
export declare function listCloudflareAccounts(connection: ProviderConnection, transport?: typeof fetch): Promise<Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}>>;
|
|
14
|
+
export declare function listVercelProjects(connection: ProviderConnection, transport?: typeof fetch): Promise<Array<{
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}>>;
|
|
18
|
+
export declare function listVercelDeployments(connection: ProviderConnection, transport?: typeof fetch): Promise<Array<{
|
|
19
|
+
uid: string;
|
|
20
|
+
name: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
}>>;
|
|
23
|
+
/** Requires a Google OAuth access token with the appropriate identity scope. */
|
|
24
|
+
export declare function getGoogleAccountProfile(connection: ProviderConnection, transport?: typeof fetch): Promise<{
|
|
25
|
+
sub: string;
|
|
26
|
+
email?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ProviderDefinition } from './types.js';
|
|
2
|
+
export declare function resolveProviderServiceId(id: string): string;
|
|
3
|
+
export declare function getProviderService(id: string): ProviderDefinition | undefined;
|
|
4
|
+
export declare function listProviderServices(category?: ProviderDefinition['category']): ProviderDefinition[];
|
|
5
|
+
/** SRKL should expose only services with a real canonical implementation. */
|
|
6
|
+
export declare function listRecognizedAccountServices(): ProviderDefinition[];
|
|
7
|
+
/** Tree view for SRKL and any consumer presenting provider families. */
|
|
8
|
+
export interface ProviderServiceNode extends ProviderDefinition {
|
|
9
|
+
children: ProviderServiceNode[];
|
|
10
|
+
}
|
|
11
|
+
/** Return direct children without exposing internal registry arrays. */
|
|
12
|
+
export declare function listProviderServiceChildren(parentId: string): ProviderDefinition[];
|
|
13
|
+
/** Canonical nested view: Google is a parent suite, Drive/Gemini/etc are children. */
|
|
14
|
+
export declare function listProviderServiceTree(): ProviderServiceNode[];
|
|
15
|
+
/** Resolve a service's identity chain for breadcrumbs and authorization scopes. */
|
|
16
|
+
export declare function getProviderServicePath(id: string): ProviderDefinition[];
|