@ultrst-armada/kloks 2.1.1 → 2.2.2
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 +3 -3
- package/packages/backend/dist/{chunk-6BL5DXFZ.js → chunk-CTBVXX5C.js} +1 -1
- package/packages/backend/dist/{chunk-3UZFKB4M.js → chunk-DMBDZHJF.js} +1 -1
- package/packages/backend/dist/{chunk-OT2PSPBK.js → chunk-F6CHRGJ6.js} +3 -3
- package/packages/backend/dist/{chunk-5UVJDX7Q.js → chunk-HJE4CVKY.js} +3 -10
- package/packages/backend/dist/{chunk-QYWVZBI6.js → chunk-HYSBT3MP.js} +1 -1
- package/packages/backend/dist/{chunk-JGR6BJVX.js → chunk-O25T5KCE.js} +1 -1
- package/packages/backend/dist/{chunk-5GW5PJWQ.js → chunk-PECE5QKV.js} +4 -9
- package/packages/backend/dist/{chunk-HRJCGJTR.js → chunk-SR3DALCH.js} +4 -4
- package/packages/backend/dist/{chunk-IKDYKRVH.js → chunk-T7R6Q7TZ.js} +4 -4
- package/packages/backend/dist/{chunk-EQFZX3JT.js → chunk-UVNKDM7N.js} +1 -1
- package/packages/backend/dist/{chunk-NZWCPJDJ.js → chunk-WPN3SMIT.js} +2 -2
- package/packages/backend/dist/{chunk-YFMHT77Z.js → chunk-X57LLCAQ.js} +2 -5
- package/packages/backend/dist/{chunk-NFK6YFTA.js → chunk-YZNQA3FU.js} +1 -1
- package/packages/backend/dist/{client-JXGCPWEA.js → client-5SGUJCV5.js} +1 -1
- package/packages/backend/dist/index.js +12 -12
- package/packages/backend/dist/node.js +16 -16
- package/packages/backend/dist/provider-services/google/drive.js +2 -2
- package/packages/backend/dist/provider-services/google/gemini.js +2 -2
- package/packages/backend/dist/provider-services/google/index.js +2 -2
- package/packages/backend/dist/provider-services/index.js +11 -11
- package/packages/backend/dist/provider-services/node.js +13 -13
- package/packages/backend/dist/provider-services/storage/backblaze-b2.js +2 -2
- package/packages/backend/dist/provider-services/storage/contract.d.ts +1 -1
- package/packages/backend/dist/provider-services/storage/dropbox.js +4 -4
- package/packages/backend/dist/provider-services/storage/github.js +4 -4
- package/packages/backend/dist/provider-services/storage/node.js +9 -9
- package/packages/backend/dist/provider-services/storage.js +8 -8
- package/packages/backend/package.json +1 -1
- package/packages/state-graph/dist/browser.js +24 -24
- package/packages/state-graph/dist/index.js +24 -24
- package/packages/state-graph/dist/{chunk-YUJC367F.js → chunk-UKTICGGV.js} +3 -3
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultrst-armada/kloks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
8
8
|
},
|
|
9
|
-
"description": "Kloks
|
|
9
|
+
"description": "Kloks — Public Backend, State-Graph, Audio/MIDI & Service Package Library built on KrnlTS (@kloks/*)",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"main": "./index.js",
|
|
12
12
|
"module": "./index.js",
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
"verify:package-exports": "node scripts/verify-package-exports.mjs"
|
|
347
347
|
},
|
|
348
348
|
"dependencies": {
|
|
349
|
-
"@dinilmusick/gutts": "
|
|
349
|
+
"@dinilmusick/gutts": "2.2.2",
|
|
350
350
|
"@webcontainer/api": "^1.6.4",
|
|
351
351
|
"ws": "^8.18.0",
|
|
352
352
|
"zod": "^3.24.1",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
continueDropboxFolder,
|
|
3
3
|
listDropboxFolder
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PECE5QKV.js";
|
|
5
5
|
import {
|
|
6
6
|
normalizeStoragePath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HJE4CVKY.js";
|
|
8
8
|
|
|
9
9
|
// src/provider-services/storage/dropbox.ts
|
|
10
10
|
function toDropboxPath(path) {
|
|
@@ -59,7 +59,7 @@ function createDropboxStorageService(connection, transport = fetch) {
|
|
|
59
59
|
async delete(path) {
|
|
60
60
|
const target = toDropboxPath(path);
|
|
61
61
|
if (!target) throw new Error("Refusing to delete the Dropbox root");
|
|
62
|
-
const { createProviderClient } = await import("./client-
|
|
62
|
+
const { createProviderClient } = await import("./client-5SGUJCV5.js");
|
|
63
63
|
await createProviderClient(connection, transport).request({
|
|
64
64
|
path: "/2/files/delete_v2",
|
|
65
65
|
method: "POST",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/provider-services/storage/contract.ts
|
|
2
|
+
import { normalizeStoragePath } from "@dinilmusick/gutts/urls/safety";
|
|
2
3
|
var UnsupportedStorageOperation = class extends Error {
|
|
3
4
|
constructor(providerId, operation) {
|
|
4
5
|
super(`Storage provider ${providerId} does not support ${operation} through this adapter`);
|
|
@@ -14,14 +15,6 @@ function assertStorageOperation(service, operation) {
|
|
|
14
15
|
if (!service.capabilities[operation])
|
|
15
16
|
throw new UnsupportedStorageOperation(service.providerId, operation);
|
|
16
17
|
}
|
|
17
|
-
function normalizeStoragePath(path = "") {
|
|
18
|
-
if (path.includes("\\") || path.includes("?") || path.includes("#") || /[\x00-\x1f]/.test(path))
|
|
19
|
-
throw new Error("Invalid storage path");
|
|
20
|
-
const parts = path.replace(/^\/+|\/+$/g, "").split("/").filter(Boolean);
|
|
21
|
-
if (parts.some((p) => p === "." || p === ".." || p === "%2e" || p === "%2e%2e"))
|
|
22
|
-
throw new Error("Storage path traversal is not permitted");
|
|
23
|
-
return parts.join("/");
|
|
24
|
-
}
|
|
25
18
|
function readOnlyService(id) {
|
|
26
19
|
return {
|
|
27
20
|
read: async () => {
|
|
@@ -39,6 +32,6 @@ function readOnlyService(id) {
|
|
|
39
32
|
export {
|
|
40
33
|
UnsupportedStorageOperation,
|
|
41
34
|
assertStorageOperation,
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
readOnlyService,
|
|
36
|
+
normalizeStoragePath
|
|
44
37
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProviderClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X57LLCAQ.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveProviderServiceId
|
|
6
6
|
} from "./chunk-FKK23J2A.js";
|
|
7
7
|
|
|
8
8
|
// src/provider-services/storage-providers.ts
|
|
9
|
+
import { encodeSafePathSegments } from "@dinilmusick/gutts/urls/safety";
|
|
9
10
|
function serviceConnection(connection, provider) {
|
|
10
11
|
if (resolveProviderServiceId(connection.providerId) !== provider)
|
|
11
12
|
throw new Error("Credential provider does not match the requested service");
|
|
@@ -16,12 +17,6 @@ function githubName(value) {
|
|
|
16
17
|
throw new Error("Invalid GitHub repository owner or name");
|
|
17
18
|
return value;
|
|
18
19
|
}
|
|
19
|
-
function safeRepositoryPath(path) {
|
|
20
|
-
const parts = path.split("/");
|
|
21
|
-
if (parts.some((part) => part === "" || part === "." || part === ".."))
|
|
22
|
-
throw new Error("Invalid repository path");
|
|
23
|
-
return parts.map(encodeURIComponent).join("/");
|
|
24
|
-
}
|
|
25
20
|
async function listGitHubRepositories(connection, transport = fetch, page = 1) {
|
|
26
21
|
if (!Number.isSafeInteger(page) || page < 1 || page > 1e4)
|
|
27
22
|
throw new Error("Invalid GitHub repositories page");
|
|
@@ -37,7 +32,7 @@ async function listGitHubRepositories(connection, transport = fetch, page = 1) {
|
|
|
37
32
|
return data;
|
|
38
33
|
}
|
|
39
34
|
async function listGitHubRepositoryContents(connection, owner, repo, path = "", transport = fetch) {
|
|
40
|
-
const suffix = path ? "/" +
|
|
35
|
+
const suffix = path ? "/" + encodeSafePathSegments(path) : "";
|
|
41
36
|
const { data } = await createProviderClient(serviceConnection(connection, "github"), transport).request({
|
|
42
37
|
path: `/repos/${githubName(owner)}/${githubName(repo)}/contents${suffix}`
|
|
43
38
|
});
|
|
@@ -54,7 +49,7 @@ async function listGitLabProjects(connection, transport = fetch) {
|
|
|
54
49
|
async function listGitLabRepositoryTree(connection, project, path = "", transport = fetch) {
|
|
55
50
|
const key = String(project).trim();
|
|
56
51
|
if (!key || key.includes("?") || key.includes("#")) throw new Error("GitLab project required");
|
|
57
|
-
if (path)
|
|
52
|
+
if (path) encodeSafePathSegments(path);
|
|
58
53
|
const { data } = await createProviderClient(serviceConnection(connection, "gitlab"), transport).request({
|
|
59
54
|
path: `/api/v4/projects/${encodeURIComponent(key)}/repository/tree`,
|
|
60
55
|
query: { per_page: 100, ...path ? { path } : {} }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchCloudflareCapacity,
|
|
3
3
|
fetchVercelCapacity
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YZNQA3FU.js";
|
|
5
5
|
import {
|
|
6
6
|
getGeminiQuotaStatus,
|
|
7
7
|
listGeminiModels
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DMBDZHJF.js";
|
|
9
9
|
import {
|
|
10
10
|
getGoogleAccountProfile,
|
|
11
11
|
listCloudflareAccounts,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
listCloudflareWorkers,
|
|
14
14
|
listVercelDeployments,
|
|
15
15
|
listVercelProjects
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UVNKDM7N.js";
|
|
17
17
|
import {
|
|
18
18
|
continueDropboxFolder,
|
|
19
19
|
listDropboxFolder,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
listGitHubRepositoryContents,
|
|
22
22
|
listGitLabProjects,
|
|
23
23
|
listGitLabRepositoryTree
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PECE5QKV.js";
|
|
25
25
|
import {
|
|
26
26
|
b2ListBuckets,
|
|
27
27
|
b2ListFileNames
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDropboxStorageService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F6CHRGJ6.js";
|
|
4
4
|
import {
|
|
5
5
|
createGitHubStorageService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WPN3SMIT.js";
|
|
7
7
|
import {
|
|
8
8
|
createGoogleDriveStorageService
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CTBVXX5C.js";
|
|
10
10
|
import {
|
|
11
11
|
createBackblazeB2StorageService
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O25T5KCE.js";
|
|
13
13
|
|
|
14
14
|
// src/provider-services/storage/service.ts
|
|
15
15
|
var CONTRACTS = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listGitHubRepositories,
|
|
3
3
|
listGitHubRepositoryContents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PECE5QKV.js";
|
|
5
5
|
import {
|
|
6
6
|
UnsupportedStorageOperation,
|
|
7
7
|
normalizeStoragePath
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HJE4CVKY.js";
|
|
9
9
|
|
|
10
10
|
// src/provider-services/storage/github.ts
|
|
11
11
|
function splitRepo(path) {
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-FKK23J2A.js";
|
|
5
5
|
|
|
6
6
|
// src/provider-services/client.ts
|
|
7
|
+
import { resolveTrustedApiUrl } from "@dinilmusick/gutts/urls/safety";
|
|
7
8
|
var origins = {
|
|
8
9
|
cloudflare: "https://api.cloudflare.com",
|
|
9
10
|
vercel: "https://api.vercel.com",
|
|
@@ -23,11 +24,7 @@ function createProviderClient(connection, transport = fetch) {
|
|
|
23
24
|
if (!connection.accountId || !connection.credential?.trim())
|
|
24
25
|
throw new Error("A vault account and credential are required");
|
|
25
26
|
async function request(options) {
|
|
26
|
-
|
|
27
|
-
throw new Error("Only provider-relative API paths are permitted");
|
|
28
|
-
const target = new URL(options.path, origin);
|
|
29
|
-
if (target.origin !== origin || /(?:^|\/)\.\.(?:\/|$)/.test(decodeURIComponent(target.pathname)))
|
|
30
|
-
throw new Error("Provider URL crossed the allowed origin");
|
|
27
|
+
const target = resolveTrustedApiUrl(origin, options.path);
|
|
31
28
|
for (const [key, value] of Object.entries(options.query || {}))
|
|
32
29
|
target.searchParams.set(key, String(value));
|
|
33
30
|
const headers = { Accept: "application/json" };
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
fetchCloudflareCapacity,
|
|
21
21
|
fetchVercelCapacity
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YZNQA3FU.js";
|
|
23
23
|
import {
|
|
24
24
|
getGeminiQuotaStatus,
|
|
25
25
|
listGeminiModels
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DMBDZHJF.js";
|
|
27
27
|
import {
|
|
28
28
|
getGoogleAccountProfile,
|
|
29
29
|
listCloudflareAccounts,
|
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
listCloudflareWorkers,
|
|
32
32
|
listVercelDeployments,
|
|
33
33
|
listVercelProjects
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UVNKDM7N.js";
|
|
35
35
|
import {
|
|
36
36
|
createCanonicalStorageService,
|
|
37
37
|
getCanonicalStorageCapabilities,
|
|
38
38
|
listCanonicalStorageProviders
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-T7R6Q7TZ.js";
|
|
40
40
|
import {
|
|
41
41
|
createDropboxStorageService
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-F6CHRGJ6.js";
|
|
43
43
|
import {
|
|
44
44
|
createGitHubStorageService
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WPN3SMIT.js";
|
|
46
46
|
import {
|
|
47
47
|
continueDropboxFolder,
|
|
48
48
|
listDropboxFolder,
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
listGitHubRepositoryContents,
|
|
51
51
|
listGitLabProjects,
|
|
52
52
|
listGitLabRepositoryTree
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-PECE5QKV.js";
|
|
54
54
|
import {
|
|
55
55
|
createGoogleDriveStorageService
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-CTBVXX5C.js";
|
|
57
57
|
import {
|
|
58
58
|
createProviderClient
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-X57LLCAQ.js";
|
|
60
60
|
import {
|
|
61
61
|
getProviderService,
|
|
62
62
|
getProviderServicePath,
|
|
@@ -68,13 +68,13 @@ import {
|
|
|
68
68
|
} from "./chunk-FKK23J2A.js";
|
|
69
69
|
import {
|
|
70
70
|
createBackblazeB2StorageService
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-O25T5KCE.js";
|
|
72
72
|
import {
|
|
73
73
|
UnsupportedStorageOperation,
|
|
74
74
|
assertStorageOperation,
|
|
75
75
|
normalizeStoragePath,
|
|
76
76
|
readOnlyService
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-HJE4CVKY.js";
|
|
78
78
|
import {
|
|
79
79
|
BaseApiRoute,
|
|
80
80
|
createSSEResponse,
|
|
@@ -90,6 +90,7 @@ import {
|
|
|
90
90
|
resolveClientEnvironment,
|
|
91
91
|
resolveClientOrigin
|
|
92
92
|
} from "./chunk-Y7ZE6D5H.js";
|
|
93
|
+
import "./chunk-LMY6MGFD.js";
|
|
93
94
|
import {
|
|
94
95
|
BackendRegistry,
|
|
95
96
|
ConcurrencyConflictError,
|
|
@@ -114,7 +115,6 @@ import {
|
|
|
114
115
|
WebSocketTransport,
|
|
115
116
|
createBackendClient
|
|
116
117
|
} from "./chunk-NIP22V2G.js";
|
|
117
|
-
import "./chunk-LMY6MGFD.js";
|
|
118
118
|
import {
|
|
119
119
|
normalizeSystemEnvironment,
|
|
120
120
|
resolveSystemDatabaseUrl,
|
|
@@ -72,10 +72,10 @@ import {
|
|
|
72
72
|
GoogleAccountProviderService,
|
|
73
73
|
GoogleDriveProviderService,
|
|
74
74
|
VercelProviderService
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-SR3DALCH.js";
|
|
76
76
|
import {
|
|
77
77
|
CanonicalStorageProviderService
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-HYSBT3MP.js";
|
|
79
79
|
import "./chunk-LV55WKZR.js";
|
|
80
80
|
import "./chunk-WVDSMTW3.js";
|
|
81
81
|
import {
|
|
@@ -108,18 +108,18 @@ import {
|
|
|
108
108
|
import {
|
|
109
109
|
WorkspaceCloneSyncEngine
|
|
110
110
|
} from "./chunk-CDRHYO44.js";
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
118
|
-
import "./chunk-
|
|
119
|
-
import "./chunk-
|
|
111
|
+
import "./chunk-YZNQA3FU.js";
|
|
112
|
+
import "./chunk-DMBDZHJF.js";
|
|
113
|
+
import "./chunk-UVNKDM7N.js";
|
|
114
|
+
import "./chunk-T7R6Q7TZ.js";
|
|
115
|
+
import "./chunk-F6CHRGJ6.js";
|
|
116
|
+
import "./chunk-WPN3SMIT.js";
|
|
117
|
+
import "./chunk-PECE5QKV.js";
|
|
118
|
+
import "./chunk-CTBVXX5C.js";
|
|
119
|
+
import "./chunk-X57LLCAQ.js";
|
|
120
120
|
import "./chunk-FKK23J2A.js";
|
|
121
|
-
import "./chunk-
|
|
122
|
-
import "./chunk-
|
|
121
|
+
import "./chunk-O25T5KCE.js";
|
|
122
|
+
import "./chunk-HJE4CVKY.js";
|
|
123
123
|
import {
|
|
124
124
|
BaseApiRoute,
|
|
125
125
|
createSSEResponse,
|
|
@@ -135,6 +135,9 @@ import {
|
|
|
135
135
|
resolveClientEnvironment,
|
|
136
136
|
resolveClientOrigin
|
|
137
137
|
} from "./chunk-Y7ZE6D5H.js";
|
|
138
|
+
import {
|
|
139
|
+
SkipoBase
|
|
140
|
+
} from "./chunk-LMY6MGFD.js";
|
|
138
141
|
import {
|
|
139
142
|
BackendRegistry,
|
|
140
143
|
ConcurrencyConflictError,
|
|
@@ -159,9 +162,6 @@ import {
|
|
|
159
162
|
WebSocketTransport,
|
|
160
163
|
createBackendClient
|
|
161
164
|
} from "./chunk-NIP22V2G.js";
|
|
162
|
-
import {
|
|
163
|
-
SkipoBase
|
|
164
|
-
} from "./chunk-LMY6MGFD.js";
|
|
165
165
|
import {
|
|
166
166
|
AIInferenceServiceDefinition,
|
|
167
167
|
AIInferenceServiceFacade,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createGoogleDriveStorageService
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-CTBVXX5C.js";
|
|
4
4
|
import {
|
|
5
5
|
getProviderService
|
|
6
6
|
} from "../../chunk-FKK23J2A.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-HJE4CVKY.js";
|
|
8
8
|
import {
|
|
9
9
|
GOOGLE_DRIVE_WORKSPACE_SCOPE,
|
|
10
10
|
GoogleDriveWorkspaceService
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGeminiQuotaStatus,
|
|
3
3
|
listGeminiModels
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-DMBDZHJF.js";
|
|
5
|
+
import "../../chunk-X57LLCAQ.js";
|
|
6
6
|
import "../../chunk-FKK23J2A.js";
|
|
7
7
|
export {
|
|
8
8
|
getGeminiQuotaStatus,
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
fetchCloudflareCapacity,
|
|
6
6
|
fetchVercelCapacity
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-YZNQA3FU.js";
|
|
8
8
|
import {
|
|
9
9
|
getGeminiQuotaStatus,
|
|
10
10
|
listGeminiModels
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-DMBDZHJF.js";
|
|
12
12
|
import {
|
|
13
13
|
getGoogleAccountProfile,
|
|
14
14
|
listCloudflareAccounts,
|
|
@@ -16,18 +16,18 @@ import {
|
|
|
16
16
|
listCloudflareWorkers,
|
|
17
17
|
listVercelDeployments,
|
|
18
18
|
listVercelProjects
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-UVNKDM7N.js";
|
|
20
20
|
import {
|
|
21
21
|
createCanonicalStorageService,
|
|
22
22
|
getCanonicalStorageCapabilities,
|
|
23
23
|
listCanonicalStorageProviders
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-T7R6Q7TZ.js";
|
|
25
25
|
import {
|
|
26
26
|
createDropboxStorageService
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-F6CHRGJ6.js";
|
|
28
28
|
import {
|
|
29
29
|
createGitHubStorageService
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-WPN3SMIT.js";
|
|
31
31
|
import {
|
|
32
32
|
continueDropboxFolder,
|
|
33
33
|
listDropboxFolder,
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
listGitHubRepositoryContents,
|
|
36
36
|
listGitLabProjects,
|
|
37
37
|
listGitLabRepositoryTree
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-PECE5QKV.js";
|
|
39
39
|
import {
|
|
40
40
|
createGoogleDriveStorageService
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-CTBVXX5C.js";
|
|
42
42
|
import {
|
|
43
43
|
createProviderClient
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-X57LLCAQ.js";
|
|
45
45
|
import {
|
|
46
46
|
getProviderService,
|
|
47
47
|
getProviderServicePath,
|
|
@@ -53,13 +53,13 @@ import {
|
|
|
53
53
|
} from "../chunk-FKK23J2A.js";
|
|
54
54
|
import {
|
|
55
55
|
createBackblazeB2StorageService
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-O25T5KCE.js";
|
|
57
57
|
import {
|
|
58
58
|
UnsupportedStorageOperation,
|
|
59
59
|
assertStorageOperation,
|
|
60
60
|
normalizeStoragePath,
|
|
61
61
|
readOnlyService
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-HJE4CVKY.js";
|
|
63
63
|
import {
|
|
64
64
|
authorizeB2,
|
|
65
65
|
b2DownloadFile,
|
|
@@ -8,22 +8,22 @@ import {
|
|
|
8
8
|
GoogleAccountProviderService,
|
|
9
9
|
GoogleDriveProviderService,
|
|
10
10
|
VercelProviderService
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-SR3DALCH.js";
|
|
12
12
|
import {
|
|
13
13
|
CanonicalStorageProviderService
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-HYSBT3MP.js";
|
|
15
|
+
import "../chunk-YZNQA3FU.js";
|
|
16
|
+
import "../chunk-DMBDZHJF.js";
|
|
17
|
+
import "../chunk-UVNKDM7N.js";
|
|
18
|
+
import "../chunk-T7R6Q7TZ.js";
|
|
19
|
+
import "../chunk-F6CHRGJ6.js";
|
|
20
|
+
import "../chunk-WPN3SMIT.js";
|
|
21
|
+
import "../chunk-PECE5QKV.js";
|
|
22
|
+
import "../chunk-CTBVXX5C.js";
|
|
23
|
+
import "../chunk-X57LLCAQ.js";
|
|
24
24
|
import "../chunk-FKK23J2A.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-O25T5KCE.js";
|
|
26
|
+
import "../chunk-HJE4CVKY.js";
|
|
27
27
|
import "../chunk-I6T64MLT.js";
|
|
28
28
|
import "../chunk-EMSSTOOK.js";
|
|
29
29
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createBackblazeB2StorageService
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-O25T5KCE.js";
|
|
4
|
+
import "../../chunk-HJE4CVKY.js";
|
|
5
5
|
import "../../chunk-I6T64MLT.js";
|
|
6
6
|
export {
|
|
7
7
|
createBackblazeB2StorageService
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { normalizeStoragePath } from '@dinilmusick/gutts/urls/safety';
|
|
1
2
|
/** Provider-neutral storage APIs. Credential and tenant authorization remain caller-owned. */
|
|
2
3
|
export type StorageProviderId = 'github' | 'backblaze-b2' | 'dropbox' | 'google-drive';
|
|
3
4
|
export type StorageKind = 'bucket' | 'repository' | 'folder' | 'file';
|
|
@@ -37,7 +38,6 @@ export declare class UnsupportedStorageOperation extends Error {
|
|
|
37
38
|
}
|
|
38
39
|
/** Check capability before performing an operation; no stubs or false support. */
|
|
39
40
|
export declare function assertStorageOperation(service: CanonicalStorageService, operation: StorageOperation): void;
|
|
40
|
-
export declare function normalizeStoragePath(path?: string): string;
|
|
41
41
|
export declare function readOnlyService(id: StorageProviderId): {
|
|
42
42
|
read: (path: string) => Promise<Uint8Array>;
|
|
43
43
|
write: (path: string, content: Uint8Array | string) => Promise<void>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDropboxStorageService
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-F6CHRGJ6.js";
|
|
4
|
+
import "../../chunk-PECE5QKV.js";
|
|
5
|
+
import "../../chunk-X57LLCAQ.js";
|
|
6
6
|
import "../../chunk-FKK23J2A.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-HJE4CVKY.js";
|
|
8
8
|
import "../../chunk-I6T64MLT.js";
|
|
9
9
|
import "../../chunk-EMSSTOOK.js";
|
|
10
10
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createGitHubStorageService
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-WPN3SMIT.js";
|
|
4
|
+
import "../../chunk-PECE5QKV.js";
|
|
5
|
+
import "../../chunk-X57LLCAQ.js";
|
|
6
6
|
import "../../chunk-FKK23J2A.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-HJE4CVKY.js";
|
|
8
8
|
import "../../chunk-I6T64MLT.js";
|
|
9
9
|
import "../../chunk-EMSSTOOK.js";
|
|
10
10
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CanonicalStorageProviderService
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-HYSBT3MP.js";
|
|
4
|
+
import "../../chunk-T7R6Q7TZ.js";
|
|
5
|
+
import "../../chunk-F6CHRGJ6.js";
|
|
6
|
+
import "../../chunk-WPN3SMIT.js";
|
|
7
|
+
import "../../chunk-PECE5QKV.js";
|
|
8
|
+
import "../../chunk-CTBVXX5C.js";
|
|
9
|
+
import "../../chunk-X57LLCAQ.js";
|
|
10
10
|
import "../../chunk-FKK23J2A.js";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-O25T5KCE.js";
|
|
12
|
+
import "../../chunk-HJE4CVKY.js";
|
|
13
13
|
import "../../chunk-I6T64MLT.js";
|
|
14
14
|
import "../../chunk-EMSSTOOK.js";
|
|
15
15
|
export {
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
createCanonicalStorageService,
|
|
3
3
|
getCanonicalStorageCapabilities,
|
|
4
4
|
listCanonicalStorageProviders
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-T7R6Q7TZ.js";
|
|
6
|
+
import "../chunk-F6CHRGJ6.js";
|
|
7
|
+
import "../chunk-WPN3SMIT.js";
|
|
8
|
+
import "../chunk-PECE5QKV.js";
|
|
9
|
+
import "../chunk-CTBVXX5C.js";
|
|
10
|
+
import "../chunk-X57LLCAQ.js";
|
|
11
11
|
import "../chunk-FKK23J2A.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-O25T5KCE.js";
|
|
13
13
|
import {
|
|
14
14
|
UnsupportedStorageOperation,
|
|
15
15
|
assertStorageOperation,
|
|
16
16
|
normalizeStoragePath,
|
|
17
17
|
readOnlyService
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-HJE4CVKY.js";
|
|
19
19
|
import "../chunk-I6T64MLT.js";
|
|
20
20
|
import "../chunk-EMSSTOOK.js";
|
|
21
21
|
export {
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
validateProjectGraph,
|
|
253
253
|
validateUniversalConnection,
|
|
254
254
|
zoomAtPoint
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-UKTICGGV.js";
|
|
256
256
|
import {
|
|
257
257
|
BaseHandle,
|
|
258
258
|
DataHandle,
|
|
@@ -262,6 +262,29 @@ import {
|
|
|
262
262
|
instantiateSubgraph
|
|
263
263
|
} from "./chunk-OXUDG6HE.js";
|
|
264
264
|
import "./chunk-RHRXPY2U.js";
|
|
265
|
+
import {
|
|
266
|
+
CommandApi,
|
|
267
|
+
GhostStore,
|
|
268
|
+
GraphStore
|
|
269
|
+
} from "./chunk-LVULR5M4.js";
|
|
270
|
+
import {
|
|
271
|
+
BaseGraph,
|
|
272
|
+
BaseNode,
|
|
273
|
+
BaseViewWindow,
|
|
274
|
+
CustomGraph,
|
|
275
|
+
CustomNode,
|
|
276
|
+
CustomViewWindow,
|
|
277
|
+
DEFAULT_GRAPH_SETTINGS
|
|
278
|
+
} from "./chunk-5KP74NMF.js";
|
|
279
|
+
import {
|
|
280
|
+
LifecycleCycleError,
|
|
281
|
+
LifecycleGraph,
|
|
282
|
+
SKIPO_STATE,
|
|
283
|
+
SkipoStateEngine,
|
|
284
|
+
useLifecycleScope,
|
|
285
|
+
useSkipoBind,
|
|
286
|
+
useSkipoState
|
|
287
|
+
} from "./chunk-EW4ACSZB.js";
|
|
265
288
|
import {
|
|
266
289
|
AttractionEngine,
|
|
267
290
|
GhostInferenceEngine,
|
|
@@ -277,20 +300,6 @@ import {
|
|
|
277
300
|
WireTypeRegistry,
|
|
278
301
|
initializeDefaultGraphRules
|
|
279
302
|
} from "./chunk-TZOL3RN7.js";
|
|
280
|
-
import {
|
|
281
|
-
CommandApi,
|
|
282
|
-
GhostStore,
|
|
283
|
-
GraphStore
|
|
284
|
-
} from "./chunk-LVULR5M4.js";
|
|
285
|
-
import {
|
|
286
|
-
BaseGraph,
|
|
287
|
-
BaseNode,
|
|
288
|
-
BaseViewWindow,
|
|
289
|
-
CustomGraph,
|
|
290
|
-
CustomNode,
|
|
291
|
-
CustomViewWindow,
|
|
292
|
-
DEFAULT_GRAPH_SETTINGS
|
|
293
|
-
} from "./chunk-5KP74NMF.js";
|
|
294
303
|
import {
|
|
295
304
|
AutoSolidify,
|
|
296
305
|
SpatialEngine,
|
|
@@ -304,15 +313,6 @@ import {
|
|
|
304
313
|
import {
|
|
305
314
|
CompatibilityMatrix
|
|
306
315
|
} 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,
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
validateProjectGraph,
|
|
253
253
|
validateUniversalConnection,
|
|
254
254
|
zoomAtPoint
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-UKTICGGV.js";
|
|
256
256
|
import {
|
|
257
257
|
BaseHandle,
|
|
258
258
|
DataHandle,
|
|
@@ -262,6 +262,29 @@ import {
|
|
|
262
262
|
instantiateSubgraph
|
|
263
263
|
} from "./chunk-OXUDG6HE.js";
|
|
264
264
|
import "./chunk-RHRXPY2U.js";
|
|
265
|
+
import {
|
|
266
|
+
CommandApi,
|
|
267
|
+
GhostStore,
|
|
268
|
+
GraphStore
|
|
269
|
+
} from "./chunk-LVULR5M4.js";
|
|
270
|
+
import {
|
|
271
|
+
BaseGraph,
|
|
272
|
+
BaseNode,
|
|
273
|
+
BaseViewWindow,
|
|
274
|
+
CustomGraph,
|
|
275
|
+
CustomNode,
|
|
276
|
+
CustomViewWindow,
|
|
277
|
+
DEFAULT_GRAPH_SETTINGS
|
|
278
|
+
} from "./chunk-5KP74NMF.js";
|
|
279
|
+
import {
|
|
280
|
+
LifecycleCycleError,
|
|
281
|
+
LifecycleGraph,
|
|
282
|
+
SKIPO_STATE,
|
|
283
|
+
SkipoStateEngine,
|
|
284
|
+
useLifecycleScope,
|
|
285
|
+
useSkipoBind,
|
|
286
|
+
useSkipoState
|
|
287
|
+
} from "./chunk-EW4ACSZB.js";
|
|
265
288
|
import {
|
|
266
289
|
AttractionEngine,
|
|
267
290
|
GhostInferenceEngine,
|
|
@@ -277,20 +300,6 @@ import {
|
|
|
277
300
|
WireTypeRegistry,
|
|
278
301
|
initializeDefaultGraphRules
|
|
279
302
|
} from "./chunk-TZOL3RN7.js";
|
|
280
|
-
import {
|
|
281
|
-
CommandApi,
|
|
282
|
-
GhostStore,
|
|
283
|
-
GraphStore
|
|
284
|
-
} from "./chunk-LVULR5M4.js";
|
|
285
|
-
import {
|
|
286
|
-
BaseGraph,
|
|
287
|
-
BaseNode,
|
|
288
|
-
BaseViewWindow,
|
|
289
|
-
CustomGraph,
|
|
290
|
-
CustomNode,
|
|
291
|
-
CustomViewWindow,
|
|
292
|
-
DEFAULT_GRAPH_SETTINGS
|
|
293
|
-
} from "./chunk-5KP74NMF.js";
|
|
294
303
|
import {
|
|
295
304
|
AutoSolidify,
|
|
296
305
|
SpatialEngine,
|
|
@@ -304,15 +313,6 @@ import {
|
|
|
304
313
|
import {
|
|
305
314
|
CompatibilityMatrix
|
|
306
315
|
} 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 {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DataHandle
|
|
3
3
|
} from "./chunk-OXUDG6HE.js";
|
|
4
|
+
import {
|
|
5
|
+
BaseNode
|
|
6
|
+
} from "./chunk-5KP74NMF.js";
|
|
4
7
|
import {
|
|
5
8
|
AttractionEngine
|
|
6
9
|
} from "./chunk-JXDJZSFW.js";
|
|
@@ -8,9 +11,6 @@ import {
|
|
|
8
11
|
HandleTypeRegistry,
|
|
9
12
|
WireTypeRegistry
|
|
10
13
|
} from "./chunk-TZOL3RN7.js";
|
|
11
|
-
import {
|
|
12
|
-
BaseNode
|
|
13
|
-
} from "./chunk-5KP74NMF.js";
|
|
14
14
|
import {
|
|
15
15
|
AutoSolidify,
|
|
16
16
|
TraceEngine
|