@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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CanonicalStorageService } from './contract.js';
|
|
2
|
+
export interface B2StorageCredentials {
|
|
3
|
+
readonly keyId: string;
|
|
4
|
+
readonly applicationKey: string;
|
|
5
|
+
}
|
|
6
|
+
/** Reuses existing B2 APIs and preserves the provider's bucket/file boundary. */
|
|
7
|
+
export declare function createBackblazeB2StorageService(creds: B2StorageCredentials): CanonicalStorageService;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Provider-neutral storage APIs. Credential and tenant authorization remain caller-owned. */
|
|
2
|
+
export type StorageProviderId = 'github' | 'backblaze-b2' | 'dropbox' | 'google-drive';
|
|
3
|
+
export type StorageKind = 'bucket' | 'repository' | 'folder' | 'file';
|
|
4
|
+
export type StorageOperation = 'list' | 'read' | 'write' | 'delete';
|
|
5
|
+
export interface StorageEntry {
|
|
6
|
+
id: string;
|
|
7
|
+
path: string;
|
|
8
|
+
name: string;
|
|
9
|
+
kind: StorageKind;
|
|
10
|
+
size?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface StoragePage {
|
|
13
|
+
entries: StorageEntry[];
|
|
14
|
+
nextCursor: string | null;
|
|
15
|
+
/** False signals a known provider listing limit, never silently complete. */
|
|
16
|
+
complete: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface StorageCapabilities {
|
|
19
|
+
list: boolean;
|
|
20
|
+
read: boolean;
|
|
21
|
+
write: boolean;
|
|
22
|
+
delete: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface CanonicalStorageService {
|
|
25
|
+
readonly providerId: StorageProviderId;
|
|
26
|
+
readonly capabilities: Readonly<StorageCapabilities>;
|
|
27
|
+
list(path?: string, cursor?: string): Promise<StoragePage>;
|
|
28
|
+
read(path: string): Promise<Uint8Array>;
|
|
29
|
+
write(path: string, data: Uint8Array | string, contentType?: string): Promise<void>;
|
|
30
|
+
delete(path: string): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
export declare class UnsupportedStorageOperation extends Error {
|
|
33
|
+
readonly providerId: StorageProviderId;
|
|
34
|
+
readonly operation: StorageOperation;
|
|
35
|
+
readonly code = "STORAGE_OPERATION_UNSUPPORTED";
|
|
36
|
+
constructor(providerId: StorageProviderId, operation: StorageOperation);
|
|
37
|
+
}
|
|
38
|
+
/** Check capability before performing an operation; no stubs or false support. */
|
|
39
|
+
export declare function assertStorageOperation(service: CanonicalStorageService, operation: StorageOperation): void;
|
|
40
|
+
export declare function normalizeStoragePath(path?: string): string;
|
|
41
|
+
export declare function readOnlyService(id: StorageProviderId): {
|
|
42
|
+
read: (path: string) => Promise<Uint8Array>;
|
|
43
|
+
write: (path: string, content: Uint8Array | string) => Promise<void>;
|
|
44
|
+
delete: (path: string) => Promise<void>;
|
|
45
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createDropboxStorageService
|
|
3
|
+
} from "../../chunk-OT2PSPBK.js";
|
|
4
|
+
import "../../chunk-5GW5PJWQ.js";
|
|
5
|
+
import "../../chunk-YFMHT77Z.js";
|
|
6
|
+
import "../../chunk-FKK23J2A.js";
|
|
7
|
+
import "../../chunk-5UVJDX7Q.js";
|
|
8
|
+
import "../../chunk-I6T64MLT.js";
|
|
9
|
+
import "../../chunk-EMSSTOOK.js";
|
|
10
|
+
export {
|
|
11
|
+
createDropboxStorageService
|
|
12
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ProviderConnection } from '../types.js';
|
|
2
|
+
import type { CanonicalStorageService } from './contract.js';
|
|
3
|
+
/** GitHub contents API: read/list only; commits require separate explicit revision semantics. */
|
|
4
|
+
export declare function createGitHubStorageService(connection: ProviderConnection, transport?: typeof fetch): CanonicalStorageService;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createGitHubStorageService
|
|
3
|
+
} from "../../chunk-NZWCPJDJ.js";
|
|
4
|
+
import "../../chunk-5GW5PJWQ.js";
|
|
5
|
+
import "../../chunk-YFMHT77Z.js";
|
|
6
|
+
import "../../chunk-FKK23J2A.js";
|
|
7
|
+
import "../../chunk-5UVJDX7Q.js";
|
|
8
|
+
import "../../chunk-I6T64MLT.js";
|
|
9
|
+
import "../../chunk-EMSSTOOK.js";
|
|
10
|
+
export {
|
|
11
|
+
createGitHubStorageService
|
|
12
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GoogleDriveWorkspaceOptions } from '../../storage/GoogleDriveWorkspaceService.js';
|
|
2
|
+
import type { CanonicalStorageService } from './contract.js';
|
|
3
|
+
/** Delegates OAuth refresh, root-scoping and safe writes to canonical Drive implementation. */
|
|
4
|
+
export declare function createGoogleDriveStorageService(options: GoogleDriveWorkspaceOptions): CanonicalStorageService;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Storage adapters, with identical list/read/write/delete surface and explicit capabilities. */
|
|
2
|
+
export * from './contract.js';
|
|
3
|
+
export * from './github.js';
|
|
4
|
+
export * from './dropbox.js';
|
|
5
|
+
export * from './backblaze-b2.js';
|
|
6
|
+
export * from './google-drive.js';
|
|
7
|
+
export * from './service.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CanonicalStorageProviderService
|
|
3
|
+
} from "../../chunk-QYWVZBI6.js";
|
|
4
|
+
import "../../chunk-IKDYKRVH.js";
|
|
5
|
+
import "../../chunk-OT2PSPBK.js";
|
|
6
|
+
import "../../chunk-NZWCPJDJ.js";
|
|
7
|
+
import "../../chunk-5GW5PJWQ.js";
|
|
8
|
+
import "../../chunk-6BL5DXFZ.js";
|
|
9
|
+
import "../../chunk-YFMHT77Z.js";
|
|
10
|
+
import "../../chunk-FKK23J2A.js";
|
|
11
|
+
import "../../chunk-JGR6BJVX.js";
|
|
12
|
+
import "../../chunk-5UVJDX7Q.js";
|
|
13
|
+
import "../../chunk-I6T64MLT.js";
|
|
14
|
+
import "../../chunk-EMSSTOOK.js";
|
|
15
|
+
export {
|
|
16
|
+
CanonicalStorageProviderService
|
|
17
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ProviderConnection } from '../types.js';
|
|
2
|
+
import type { GoogleDriveWorkspaceOptions } from '../../storage/GoogleDriveWorkspaceService.js';
|
|
3
|
+
import type { B2StorageCredentials } from './backblaze-b2.js';
|
|
4
|
+
import type { StorageProviderId, CanonicalStorageService, StorageCapabilities } from './contract.js';
|
|
5
|
+
/** Provider-typed connection prevents attaching an unrelated provider credential. */
|
|
6
|
+
export type StorageServiceConfig = {
|
|
7
|
+
providerId: 'github';
|
|
8
|
+
connection: ProviderConnection;
|
|
9
|
+
transport?: typeof fetch;
|
|
10
|
+
} | {
|
|
11
|
+
providerId: 'dropbox';
|
|
12
|
+
connection: ProviderConnection;
|
|
13
|
+
transport?: typeof fetch;
|
|
14
|
+
} | {
|
|
15
|
+
providerId: 'backblaze-b2';
|
|
16
|
+
credentials: B2StorageCredentials;
|
|
17
|
+
} | {
|
|
18
|
+
providerId: 'google-drive';
|
|
19
|
+
options: GoogleDriveWorkspaceOptions;
|
|
20
|
+
};
|
|
21
|
+
export declare function listCanonicalStorageProviders(): Array<{
|
|
22
|
+
id: StorageProviderId;
|
|
23
|
+
capabilities: Readonly<StorageCapabilities>;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function getCanonicalStorageCapabilities(id: StorageProviderId): Readonly<StorageCapabilities>;
|
|
26
|
+
/** One runtime-neutral contract; no per-app provider SDK code is necessary. */
|
|
27
|
+
export declare function createCanonicalStorageService(config: StorageServiceConfig): CanonicalStorageService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare const GitHubProviderService: {
|
|
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 GitLabProviderService: {
|
|
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 DropboxProviderService: {
|
|
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 BackblazeB2ProviderService: {
|
|
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
|
+
};
|
|
45
|
+
export declare const GoogleDriveProviderService: {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
version: string;
|
|
49
|
+
runtime: "server";
|
|
50
|
+
deployment: "local";
|
|
51
|
+
definition: import("@ultrst-armada/krnl").ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
52
|
+
readonly telemetry: import("@ultrst-armada/krnl").TelemetryController;
|
|
53
|
+
createInstance: () => import("@ultrst-armada/krnl").ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
54
|
+
execute: <TIn = unknown, TOut = unknown>(operation: string, input: TIn) => Promise<TOut>;
|
|
55
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const CanonicalStorageProviderService: {
|
|
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
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ProviderConnection } from './types.js';
|
|
2
|
+
export { authorizeB2 as authorizeBackblazeB2, b2ListBuckets as listBackblazeB2Buckets, b2ListFileNames as listBackblazeB2Files, b2UploadFile as uploadBackblazeB2File, b2DownloadFile as downloadBackblazeB2File, } from '../storage/B2DirectClient.js';
|
|
3
|
+
export { GoogleDriveWorkspaceService, GOOGLE_DRIVE_WORKSPACE_SCOPE, } from '../storage/GoogleDriveWorkspaceService.js';
|
|
4
|
+
export declare function listGitHubRepositories(connection: ProviderConnection, transport?: typeof fetch, page?: number): Promise<Array<{
|
|
5
|
+
id: number;
|
|
6
|
+
full_name: string;
|
|
7
|
+
private: boolean;
|
|
8
|
+
}>>;
|
|
9
|
+
export declare function listGitHubRepositoryContents(connection: ProviderConnection, owner: string, repo: string, path?: string, transport?: typeof fetch): Promise<unknown>;
|
|
10
|
+
export declare function listGitLabProjects(connection: ProviderConnection, transport?: typeof fetch): Promise<Array<{
|
|
11
|
+
id: number;
|
|
12
|
+
path_with_namespace: string;
|
|
13
|
+
}>>;
|
|
14
|
+
export declare function listGitLabRepositoryTree(connection: ProviderConnection, project: number | string, path?: string, transport?: typeof fetch): Promise<Array<{
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
}>>;
|
|
19
|
+
export interface DropboxFolderPage {
|
|
20
|
+
entries: Array<{
|
|
21
|
+
'.tag': string;
|
|
22
|
+
name: string;
|
|
23
|
+
path_lower?: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
}>;
|
|
26
|
+
cursor: string;
|
|
27
|
+
has_more: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare function listDropboxFolder(connection: ProviderConnection, path?: string, transport?: typeof fetch): Promise<DropboxFolderPage>;
|
|
30
|
+
export declare function continueDropboxFolder(connection: ProviderConnection, cursor: string, transport?: typeof fetch): Promise<DropboxFolderPage>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createCanonicalStorageService,
|
|
3
|
+
getCanonicalStorageCapabilities,
|
|
4
|
+
listCanonicalStorageProviders
|
|
5
|
+
} from "../chunk-IKDYKRVH.js";
|
|
6
|
+
import "../chunk-OT2PSPBK.js";
|
|
7
|
+
import "../chunk-NZWCPJDJ.js";
|
|
8
|
+
import "../chunk-5GW5PJWQ.js";
|
|
9
|
+
import "../chunk-6BL5DXFZ.js";
|
|
10
|
+
import "../chunk-YFMHT77Z.js";
|
|
11
|
+
import "../chunk-FKK23J2A.js";
|
|
12
|
+
import "../chunk-JGR6BJVX.js";
|
|
13
|
+
import {
|
|
14
|
+
UnsupportedStorageOperation,
|
|
15
|
+
assertStorageOperation,
|
|
16
|
+
normalizeStoragePath,
|
|
17
|
+
readOnlyService
|
|
18
|
+
} from "../chunk-5UVJDX7Q.js";
|
|
19
|
+
import "../chunk-I6T64MLT.js";
|
|
20
|
+
import "../chunk-EMSSTOOK.js";
|
|
21
|
+
export {
|
|
22
|
+
UnsupportedStorageOperation,
|
|
23
|
+
assertStorageOperation,
|
|
24
|
+
createCanonicalStorageService,
|
|
25
|
+
getCanonicalStorageCapabilities,
|
|
26
|
+
listCanonicalStorageProviders,
|
|
27
|
+
normalizeStoragePath,
|
|
28
|
+
readOnlyService
|
|
29
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/** Canonical provider/service identity and quota contracts. No secrets are persisted here. */
|
|
2
|
+
export type ProviderCategory = 'suite' | 'deployment' | 'cloud' | 'ai' | 'storage' | 'developer';
|
|
3
|
+
export type ProviderStatus = 'ready' | 'catalogued' | 'excluded';
|
|
4
|
+
export type CredentialMode = 'api-token' | 'api-key' | 'oauth2' | 'application-key';
|
|
5
|
+
export type RenewalPolicy = 'daily' | 'monthly' | 'ongoing' | 'unknown' | 'trial';
|
|
6
|
+
export interface ProviderDefinition {
|
|
7
|
+
/** A suite groups related service adapters and can expose its own identity API. */
|
|
8
|
+
kind?: 'suite' | 'service';
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
category: ProviderCategory;
|
|
12
|
+
status: ProviderStatus;
|
|
13
|
+
parentId?: string;
|
|
14
|
+
credentialModes: readonly CredentialMode[];
|
|
15
|
+
capabilities: readonly string[];
|
|
16
|
+
renewal: RenewalPolicy;
|
|
17
|
+
docsUrl: string;
|
|
18
|
+
/** True only when a specific Kloks API implementation exists. */
|
|
19
|
+
apiImplemented: boolean;
|
|
20
|
+
/** True only when this service can report quota measurements, not infer them. */
|
|
21
|
+
usageImplemented: boolean;
|
|
22
|
+
}
|
|
23
|
+
export type MetricSource = 'provider' | 'estimate' | 'unavailable';
|
|
24
|
+
export type QuotaWindow = 'minute' | 'day' | 'month' | 'billing' | 'rolling-30d';
|
|
25
|
+
export interface ProviderQuotaMetric {
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
unit: string;
|
|
29
|
+
used: number | null;
|
|
30
|
+
limit: number | null;
|
|
31
|
+
source: MetricSource;
|
|
32
|
+
window: QuotaWindow;
|
|
33
|
+
/** Only enforce when usage actually covers the corresponding quota window. */
|
|
34
|
+
enforceable: boolean;
|
|
35
|
+
resetAt: string | null;
|
|
36
|
+
}
|
|
37
|
+
export interface ProviderUsageSnapshot {
|
|
38
|
+
providerId: string;
|
|
39
|
+
serviceId: string;
|
|
40
|
+
accountId: string;
|
|
41
|
+
capturedAt: string;
|
|
42
|
+
metrics: ProviderQuotaMetric[];
|
|
43
|
+
error?: string;
|
|
44
|
+
/** A provider can have a healthy API but no accessible quota telemetry. */
|
|
45
|
+
coverage: 'complete' | 'partial' | 'unavailable';
|
|
46
|
+
}
|
|
47
|
+
export interface CapacityDecision {
|
|
48
|
+
status: 'eligible' | 'exhausted' | 'unknown';
|
|
49
|
+
weight: number;
|
|
50
|
+
percentRemaining: number | null;
|
|
51
|
+
bottleneck: string | null;
|
|
52
|
+
reason: string;
|
|
53
|
+
checkedAt: string;
|
|
54
|
+
}
|
|
55
|
+
export interface ProviderConnection {
|
|
56
|
+
providerId: string;
|
|
57
|
+
/** Stable vault account identifier. Never an API credential. */
|
|
58
|
+
accountId: string;
|
|
59
|
+
credential: string;
|
|
60
|
+
accountScope?: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ProviderConnection, ProviderUsageSnapshot } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Collect Vercel's reported usage without synthesizing CPU, bandwidth or requests.
|
|
4
|
+
* A rolling 30-day window is not assumed to equal the account's billing period.
|
|
5
|
+
*/
|
|
6
|
+
export declare function fetchVercelCapacity(connection: ProviderConnection, options: {
|
|
7
|
+
plan: 'hobby' | 'pro' | 'enterprise';
|
|
8
|
+
windowStart: string;
|
|
9
|
+
windowEnd: string;
|
|
10
|
+
/** Verified period boundary from provider billing. Otherwise metrics are informational. */
|
|
11
|
+
billingWindowVerified?: boolean;
|
|
12
|
+
resetAt?: string;
|
|
13
|
+
}, now?: Date, transport?: typeof fetch): Promise<ProviderUsageSnapshot>;
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
parseGraphJsonFile,
|
|
13
13
|
validateGraphDocument,
|
|
14
14
|
workspaceGraphService
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-6I7I4C6H.js";
|
|
16
16
|
import "../chunk-AUNIGE6Q.js";
|
|
17
17
|
import "../chunk-TRJVVNO7.js";
|
|
18
18
|
import "../chunk-HUY4272L.js";
|
|
19
19
|
import "../chunk-5Y7K7HAT.js";
|
|
20
20
|
import "../chunk-LMY6MGFD.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-I6T64MLT.js";
|
|
21
|
+
import "../chunk-23LS4LWC.js";
|
|
22
|
+
import "../chunk-GTKW4IGC.js";
|
|
23
|
+
import "../chunk-TOLAWKAY.js";
|
|
25
24
|
import "../chunk-IP6XWQU2.js";
|
|
25
|
+
import "../chunk-I6T64MLT.js";
|
|
26
26
|
import "../chunk-EMSSTOOK.js";
|
|
27
27
|
export {
|
|
28
28
|
CompositeBackend,
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
srklService,
|
|
11
11
|
syncSrklAccounts,
|
|
12
12
|
useSrklServices
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-DTPCWHQJ.js";
|
|
14
14
|
import {
|
|
15
15
|
getPrimarySrklDeploymentUrl,
|
|
16
16
|
getSrklAccounts,
|
|
17
17
|
srklListBackblazeBuckets
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-I6T64MLT.js";
|
|
18
|
+
} from "../chunk-DJ457D5D.js";
|
|
19
|
+
import "../chunk-TOLAWKAY.js";
|
|
21
20
|
import "../chunk-IP6XWQU2.js";
|
|
21
|
+
import "../chunk-I6T64MLT.js";
|
|
22
22
|
import "../chunk-EMSSTOOK.js";
|
|
23
23
|
export {
|
|
24
24
|
CANONICAL_SRKL_URL,
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
WorkspaceFS,
|
|
6
6
|
remoteWorkspaceService,
|
|
7
7
|
workingWorkspaceService
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-ENMIBY2V.js";
|
|
9
9
|
import "../chunk-TRJVVNO7.js";
|
|
10
10
|
import "../chunk-LC6ULEM2.js";
|
|
11
|
+
import "../chunk-5Y7K7HAT.js";
|
|
11
12
|
import {
|
|
12
13
|
WorkspaceCloneSyncEngine
|
|
13
14
|
} from "../chunk-CDRHYO44.js";
|
|
14
|
-
import "../chunk-5Y7K7HAT.js";
|
|
15
15
|
import "../chunk-LMY6MGFD.js";
|
|
16
16
|
import {
|
|
17
17
|
formatCanonicalWorkspaceFolderName,
|
|
18
18
|
sanitizeWorkspaceName
|
|
19
19
|
} from "../chunk-FZKBTF34.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-I6T64MLT.js";
|
|
20
|
+
import "../chunk-23LS4LWC.js";
|
|
21
|
+
import "../chunk-GTKW4IGC.js";
|
|
22
|
+
import "../chunk-TOLAWKAY.js";
|
|
24
23
|
import "../chunk-IP6XWQU2.js";
|
|
24
|
+
import "../chunk-I6T64MLT.js";
|
|
25
25
|
import "../chunk-EMSSTOOK.js";
|
|
26
26
|
export {
|
|
27
27
|
RemoteWorkspaceService,
|
package/packages/backend/dist/{workspaceFileCore-UURQPP62.js → workspaceFileCore-RQO7YMRD.js}
RENAMED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
normalizeWorkspaceStoragePath,
|
|
10
10
|
readWorkspaceFile,
|
|
11
11
|
writeWorkspaceFile
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-I6T64MLT.js";
|
|
12
|
+
} from "./chunk-GTKW4IGC.js";
|
|
13
|
+
import "./chunk-TOLAWKAY.js";
|
|
15
14
|
import "./chunk-IP6XWQU2.js";
|
|
15
|
+
import "./chunk-I6T64MLT.js";
|
|
16
16
|
import "./chunk-EMSSTOOK.js";
|
|
17
17
|
export {
|
|
18
18
|
configureLocalWorkspaceFileAdapter,
|
|
@@ -83,6 +83,76 @@
|
|
|
83
83
|
"types": "./dist/development/webContainerService.d.ts",
|
|
84
84
|
"default": "./dist/development/webContainerService.js"
|
|
85
85
|
},
|
|
86
|
+
"./provider-services": {
|
|
87
|
+
"types": "./dist/provider-services/index.d.ts",
|
|
88
|
+
"import": "./dist/provider-services/index.js",
|
|
89
|
+
"default": "./dist/provider-services/index.js"
|
|
90
|
+
},
|
|
91
|
+
"./provider-services/storage": {
|
|
92
|
+
"types": "./dist/provider-services/storage.d.ts",
|
|
93
|
+
"import": "./dist/provider-services/storage.js",
|
|
94
|
+
"default": "./dist/provider-services/storage.js"
|
|
95
|
+
},
|
|
96
|
+
"./provider-services/storage/node": {
|
|
97
|
+
"types": "./dist/provider-services/storage/node.d.ts",
|
|
98
|
+
"import": "./dist/provider-services/storage/node.js",
|
|
99
|
+
"default": "./dist/provider-services/storage/node.js"
|
|
100
|
+
},
|
|
101
|
+
"./provider-services/storage/github": {
|
|
102
|
+
"types": "./dist/provider-services/storage/github.d.ts",
|
|
103
|
+
"import": "./dist/provider-services/storage/github.js",
|
|
104
|
+
"default": "./dist/provider-services/storage/github.js"
|
|
105
|
+
},
|
|
106
|
+
"./provider-services/storage/backblaze-b2": {
|
|
107
|
+
"types": "./dist/provider-services/storage/backblaze-b2.d.ts",
|
|
108
|
+
"import": "./dist/provider-services/storage/backblaze-b2.js",
|
|
109
|
+
"default": "./dist/provider-services/storage/backblaze-b2.js"
|
|
110
|
+
},
|
|
111
|
+
"./provider-services/storage/dropbox": {
|
|
112
|
+
"types": "./dist/provider-services/storage/dropbox.d.ts",
|
|
113
|
+
"import": "./dist/provider-services/storage/dropbox.js",
|
|
114
|
+
"default": "./dist/provider-services/storage/dropbox.js"
|
|
115
|
+
},
|
|
116
|
+
"./provider-services/google": {
|
|
117
|
+
"types": "./dist/provider-services/google/index.d.ts",
|
|
118
|
+
"import": "./dist/provider-services/google/index.js",
|
|
119
|
+
"default": "./dist/provider-services/google/index.js"
|
|
120
|
+
},
|
|
121
|
+
"./provider-services/google/drive": {
|
|
122
|
+
"types": "./dist/provider-services/google/drive.d.ts",
|
|
123
|
+
"import": "./dist/provider-services/google/drive.js",
|
|
124
|
+
"default": "./dist/provider-services/google/drive.js"
|
|
125
|
+
},
|
|
126
|
+
"./provider-services/google/gemini": {
|
|
127
|
+
"types": "./dist/provider-services/google/gemini.d.ts",
|
|
128
|
+
"import": "./dist/provider-services/google/gemini.js",
|
|
129
|
+
"default": "./dist/provider-services/google/gemini.js"
|
|
130
|
+
},
|
|
131
|
+
"./provider-services/google/cloud-run": {
|
|
132
|
+
"types": "./dist/provider-services/google/cloud-run.d.ts",
|
|
133
|
+
"import": "./dist/provider-services/google/cloud-run.js",
|
|
134
|
+
"default": "./dist/provider-services/google/cloud-run.js"
|
|
135
|
+
},
|
|
136
|
+
"./provider-services/google/cloud-storage": {
|
|
137
|
+
"types": "./dist/provider-services/google/cloud-storage.d.ts",
|
|
138
|
+
"import": "./dist/provider-services/google/cloud-storage.js",
|
|
139
|
+
"default": "./dist/provider-services/google/cloud-storage.js"
|
|
140
|
+
},
|
|
141
|
+
"./provider-services/google/cloud-shell": {
|
|
142
|
+
"types": "./dist/provider-services/google/cloud-shell.d.ts",
|
|
143
|
+
"import": "./dist/provider-services/google/cloud-shell.js",
|
|
144
|
+
"default": "./dist/provider-services/google/cloud-shell.js"
|
|
145
|
+
},
|
|
146
|
+
"./provider-services/google/vertex-ai": {
|
|
147
|
+
"types": "./dist/provider-services/google/vertex-ai.d.ts",
|
|
148
|
+
"import": "./dist/provider-services/google/vertex-ai.js",
|
|
149
|
+
"default": "./dist/provider-services/google/vertex-ai.js"
|
|
150
|
+
},
|
|
151
|
+
"./provider-services/node": {
|
|
152
|
+
"types": "./dist/provider-services/node.d.ts",
|
|
153
|
+
"import": "./dist/provider-services/node.js",
|
|
154
|
+
"default": "./dist/provider-services/node.js"
|
|
155
|
+
},
|
|
86
156
|
"./ai-provider": {
|
|
87
157
|
"import": "./dist/ai-provider/index.js",
|
|
88
158
|
"types": "./dist/ai-provider/index.d.ts",
|
|
@@ -145,7 +215,7 @@
|
|
|
145
215
|
}
|
|
146
216
|
},
|
|
147
217
|
"scripts": {
|
|
148
|
-
"build": "tsup src/index.ts src/node.ts src/storage/node.ts src/services/node.ts src/workspace/node.ts src/krnl-services.ts src/krnl-ai-services.ts src/resolver/index.ts src/services/index.ts src/auth/index.ts src/storage/index.ts src/storage-workspace.ts src/workspace/index.ts src/control-plane/index.ts src/api/index.ts src/connectivity/index.ts src/client/index.ts src/srkl/index.ts src/development/index.ts src/development/webContainerService.ts src/development/webContainerRuntime.ts src/development/playwrightInspectionService.ts src/development/playwrightInspectionTypes.ts src/ai-provider/index.ts src/ai-inference/index.ts src/ai-models/index.ts src/ai-routing/index.ts src/ai-keys/index.ts src/ai-tools/index.ts --format esm --clean --external @kloks/wasm-runtime --external react --external @kloks/state-graph --external @neondatabase/serverless --external @supabase/supabase-js --external @aws-sdk/client-s3 --external @aws-sdk/lib-storage --external zod --external ws --external @webcontainer/api --external playwright --external @dinilmusick/gutts && tsc --emitDeclarationOnly --declaration --project tsconfig.json && tsup src/development/client.ts --format esm --dts --out-dir dist/development --splitting false --platform browser --external @ultrst-armada/krnl",
|
|
218
|
+
"build": "tsup src/index.ts src/node.ts src/storage/node.ts src/services/node.ts src/workspace/node.ts src/krnl-services.ts src/krnl-ai-services.ts src/resolver/index.ts src/services/index.ts src/auth/index.ts src/storage/index.ts src/storage-workspace.ts src/workspace/index.ts src/control-plane/index.ts src/api/index.ts src/connectivity/index.ts src/client/index.ts src/srkl/index.ts src/development/index.ts src/development/webContainerService.ts src/development/webContainerRuntime.ts src/development/playwrightInspectionService.ts src/development/playwrightInspectionTypes.ts src/ai-provider/index.ts src/ai-inference/index.ts src/ai-models/index.ts src/ai-routing/index.ts src/ai-keys/index.ts src/ai-tools/index.ts src/provider-services/index.ts src/provider-services/node.ts src/provider-services/storage.ts src/provider-services/storage/node.ts src/provider-services/storage/github.ts src/provider-services/storage/backblaze-b2.ts src/provider-services/storage/dropbox.ts src/provider-services/google/index.ts src/provider-services/google/drive.ts src/provider-services/google/gemini.ts src/provider-services/google/cloud-run.ts src/provider-services/google/cloud-storage.ts src/provider-services/google/cloud-shell.ts src/provider-services/google/vertex-ai.ts --format esm --clean --external @kloks/wasm-runtime --external react --external @kloks/state-graph --external @neondatabase/serverless --external @supabase/supabase-js --external @aws-sdk/client-s3 --external @aws-sdk/lib-storage --external zod --external ws --external @webcontainer/api --external playwright --external @dinilmusick/gutts && tsc --emitDeclarationOnly --declaration --project tsconfig.json && tsup src/development/client.ts --format esm --dts --out-dir dist/development --splitting false --platform browser --external @ultrst-armada/krnl",
|
|
149
219
|
"typecheck": "tsc --noEmit",
|
|
150
220
|
"clean": "rm -rf dist"
|
|
151
221
|
},
|
|
@@ -277,15 +277,6 @@ import {
|
|
|
277
277
|
WireTypeRegistry,
|
|
278
278
|
initializeDefaultGraphRules
|
|
279
279
|
} from "./chunk-TZOL3RN7.js";
|
|
280
|
-
import {
|
|
281
|
-
LifecycleCycleError,
|
|
282
|
-
LifecycleGraph,
|
|
283
|
-
SKIPO_STATE,
|
|
284
|
-
SkipoStateEngine,
|
|
285
|
-
useLifecycleScope,
|
|
286
|
-
useSkipoBind,
|
|
287
|
-
useSkipoState
|
|
288
|
-
} from "./chunk-EW4ACSZB.js";
|
|
289
280
|
import {
|
|
290
281
|
CommandApi,
|
|
291
282
|
GhostStore,
|
|
@@ -313,6 +304,15 @@ import {
|
|
|
313
304
|
import {
|
|
314
305
|
CompatibilityMatrix
|
|
315
306
|
} from "./chunk-ISFNY7EZ.js";
|
|
307
|
+
import {
|
|
308
|
+
LifecycleCycleError,
|
|
309
|
+
LifecycleGraph,
|
|
310
|
+
SKIPO_STATE,
|
|
311
|
+
SkipoStateEngine,
|
|
312
|
+
useLifecycleScope,
|
|
313
|
+
useSkipoBind,
|
|
314
|
+
useSkipoState
|
|
315
|
+
} from "./chunk-EW4ACSZB.js";
|
|
316
316
|
export {
|
|
317
317
|
ALL_GRAPH_TYPES,
|
|
318
318
|
ArrangementNodeModel,
|
|
@@ -277,15 +277,6 @@ import {
|
|
|
277
277
|
WireTypeRegistry,
|
|
278
278
|
initializeDefaultGraphRules
|
|
279
279
|
} from "./chunk-TZOL3RN7.js";
|
|
280
|
-
import {
|
|
281
|
-
LifecycleCycleError,
|
|
282
|
-
LifecycleGraph,
|
|
283
|
-
SKIPO_STATE,
|
|
284
|
-
SkipoStateEngine,
|
|
285
|
-
useLifecycleScope,
|
|
286
|
-
useSkipoBind,
|
|
287
|
-
useSkipoState
|
|
288
|
-
} from "./chunk-EW4ACSZB.js";
|
|
289
280
|
import {
|
|
290
281
|
CommandApi,
|
|
291
282
|
GhostStore,
|
|
@@ -313,6 +304,15 @@ import {
|
|
|
313
304
|
import {
|
|
314
305
|
CompatibilityMatrix
|
|
315
306
|
} from "./chunk-ISFNY7EZ.js";
|
|
307
|
+
import {
|
|
308
|
+
LifecycleCycleError,
|
|
309
|
+
LifecycleGraph,
|
|
310
|
+
SKIPO_STATE,
|
|
311
|
+
SkipoStateEngine,
|
|
312
|
+
useLifecycleScope,
|
|
313
|
+
useSkipoBind,
|
|
314
|
+
useSkipoState
|
|
315
|
+
} from "./chunk-EW4ACSZB.js";
|
|
316
316
|
|
|
317
317
|
// src/index.ts
|
|
318
318
|
import {
|