@ultrst-armada/kloks 2.2.5 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.krusbl-release-attestation.json +8 -0
- package/package.json +1 -1
- package/packages/backend/dist/ai-models/index.js +2 -2
- package/packages/backend/dist/ai-routing/index.js +3 -3
- package/packages/backend/dist/{chunk-F6CHRGJ6.js → chunk-2DVRZKOK.js} +2 -2
- package/packages/backend/dist/{chunk-YZNQA3FU.js → chunk-3V5B2BOP.js} +1 -1
- package/packages/backend/dist/{chunk-UVNKDM7N.js → chunk-4BCTI7BL.js} +1 -1
- package/packages/backend/dist/{chunk-WPN3SMIT.js → chunk-4LRMJIJ4.js} +1 -1
- package/packages/backend/dist/{chunk-DMBDZHJF.js → chunk-4NTZRTRY.js} +1 -1
- package/packages/backend/dist/{chunk-X57LLCAQ.js → chunk-5S5CDQXD.js} +5 -1
- package/packages/backend/dist/{chunk-PECE5QKV.js → chunk-5SKQBVYU.js} +2 -2
- package/packages/backend/dist/chunk-FFYTCLFC.js +93 -0
- package/packages/backend/dist/{chunk-SR3DALCH.js → chunk-FGZA6PDX.js} +4 -4
- package/packages/backend/dist/{chunk-26NAKO4V.js → chunk-H47NEPYG.js} +6 -6
- package/packages/backend/dist/{chunk-PT6J6UEU.js → chunk-LMAU62ZG.js} +4 -4
- package/packages/backend/dist/{chunk-FKK23J2A.js → chunk-LN274IE5.js} +63 -12
- package/packages/backend/dist/{chunk-K5LKAEBJ.js → chunk-OJCSPAFE.js} +1 -1
- package/packages/backend/dist/{chunk-KQ6IWV3F.js → chunk-YTJTF7LS.js} +2 -2
- package/packages/backend/dist/{client-5SGUJCV5.js → client-S4R4MZ6K.js} +2 -2
- package/packages/backend/dist/index.js +19 -11
- package/packages/backend/dist/krnl-ai-services.js +5 -5
- package/packages/backend/dist/krnl-services.js +2 -2
- package/packages/backend/dist/node.js +51 -51
- package/packages/backend/dist/provider-services/compute-operations.d.ts +24 -0
- package/packages/backend/dist/provider-services/compute-operations.test.d.ts +1 -0
- package/packages/backend/dist/provider-services/google/cloud-run.js +1 -1
- package/packages/backend/dist/provider-services/google/cloud-shell.js +1 -1
- package/packages/backend/dist/provider-services/google/cloud-storage.js +1 -1
- package/packages/backend/dist/provider-services/google/drive.js +1 -1
- package/packages/backend/dist/provider-services/google/gemini.js +3 -3
- package/packages/backend/dist/provider-services/google/index.js +3 -3
- package/packages/backend/dist/provider-services/google/vertex-ai.js +1 -1
- package/packages/backend/dist/provider-services/index.d.ts +1 -0
- package/packages/backend/dist/provider-services/index.js +19 -11
- package/packages/backend/dist/provider-services/node.js +11 -11
- 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 +7 -7
- package/packages/backend/dist/provider-services/storage.js +6 -6
- package/packages/backend/dist/chunk-5SXOQAAX.js +0 -41
- package/packages/backend/dist/{chunk-R4B3KPHY.js → chunk-5CZUAEAD.js} +5 -5
- package/packages/backend/dist/{chunk-LMWXONZG.js → chunk-EREYT3WJ.js} +3 -3
package/package.json
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
endpointRefresher,
|
|
8
8
|
modelCatalog,
|
|
9
9
|
modelHealthService
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-P7H6TIEA.js";
|
|
10
|
+
} from "../chunk-EREYT3WJ.js";
|
|
12
11
|
import "../chunk-MAMK4GDH.js";
|
|
12
|
+
import "../chunk-P7H6TIEA.js";
|
|
13
13
|
import "../chunk-JSQZAFBU.js";
|
|
14
14
|
export {
|
|
15
15
|
EndpointRefresher,
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
failoverExecutionEngine,
|
|
7
7
|
healthCheckService,
|
|
8
8
|
metricsLogger
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-LMWXONZG.js";
|
|
11
|
-
import "../chunk-P7H6TIEA.js";
|
|
9
|
+
} from "../chunk-LMAU62ZG.js";
|
|
12
10
|
import "../chunk-SLR6SIEU.js";
|
|
11
|
+
import "../chunk-EREYT3WJ.js";
|
|
13
12
|
import "../chunk-MAMK4GDH.js";
|
|
13
|
+
import "../chunk-P7H6TIEA.js";
|
|
14
14
|
import "../chunk-JSQZAFBU.js";
|
|
15
15
|
export {
|
|
16
16
|
FailoverExecutionEngine,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
continueDropboxFolder,
|
|
3
3
|
listDropboxFolder
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5SKQBVYU.js";
|
|
5
5
|
import {
|
|
6
6
|
normalizeStoragePath
|
|
7
7
|
} from "./chunk-HJE4CVKY.js";
|
|
@@ -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-S4R4MZ6K.js");
|
|
63
63
|
await createProviderClient(connection, transport).request({
|
|
64
64
|
path: "/2/files/delete_v2",
|
|
65
65
|
method: "POST",
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getProviderService,
|
|
3
3
|
resolveProviderServiceId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LN274IE5.js";
|
|
5
5
|
|
|
6
6
|
// src/provider-services/client.ts
|
|
7
7
|
import { resolveTrustedApiUrl } from "@dinilmusick/gutts/urls/safety";
|
|
8
8
|
var origins = {
|
|
9
9
|
cloudflare: "https://api.cloudflare.com",
|
|
10
10
|
vercel: "https://api.vercel.com",
|
|
11
|
+
railway: "https://backboard.railway.com",
|
|
12
|
+
fly: "https://api.machines.dev",
|
|
13
|
+
render: "https://api.render.com",
|
|
14
|
+
"google-cloud-run": "https://run.googleapis.com",
|
|
11
15
|
google: "https://www.googleapis.com",
|
|
12
16
|
"google-gemini": "https://generativelanguage.googleapis.com",
|
|
13
17
|
"google-drive": "https://www.googleapis.com",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProviderClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5S5CDQXD.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveProviderServiceId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LN274IE5.js";
|
|
7
7
|
|
|
8
8
|
// src/provider-services/storage-providers.ts
|
|
9
9
|
import { encodeSafePathSegments } from "@dinilmusick/gutts/urls/safety";
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createProviderClient
|
|
3
|
+
} from "./chunk-5S5CDQXD.js";
|
|
4
|
+
|
|
5
|
+
// src/provider-services/capacity.ts
|
|
6
|
+
function calculateProviderCapacity(snapshot, now = /* @__PURE__ */ new Date(), maxAgeMs = 10 * 6e4) {
|
|
7
|
+
const checkedAt = now.toISOString();
|
|
8
|
+
const unknown = (reason) => ({ status: "unknown", weight: 0, percentRemaining: null, bottleneck: null, reason, checkedAt });
|
|
9
|
+
const timestamp = Date.parse(snapshot.capturedAt);
|
|
10
|
+
if (!Number.isFinite(timestamp) || now.getTime() < timestamp - 3e4 || now.getTime() - timestamp > maxAgeMs) return unknown("Telemetry is stale or undated");
|
|
11
|
+
if (snapshot.error || snapshot.coverage === "unavailable") {
|
|
12
|
+
return unknown(snapshot.error || "Provider quota telemetry unavailable");
|
|
13
|
+
}
|
|
14
|
+
const enforced = snapshot.metrics.filter((m) => m.enforceable);
|
|
15
|
+
if (!enforced.length) return unknown("No provider-confirmed renewable quota windows");
|
|
16
|
+
if (snapshot.coverage !== "complete") return unknown("Required quota coverage is incomplete");
|
|
17
|
+
let bottleneck = null;
|
|
18
|
+
let minimum = 1;
|
|
19
|
+
for (const metric of enforced) {
|
|
20
|
+
if (metric.source !== "provider" || !validQuota(metric) || !metric.resetAt || Date.parse(metric.resetAt) <= now.getTime()) {
|
|
21
|
+
return unknown("Quota metric missing, estimated, or outside its reset window: " + metric.id);
|
|
22
|
+
}
|
|
23
|
+
const remaining = Math.max(0, Math.min(1, (metric.limit - metric.used) / metric.limit));
|
|
24
|
+
if (!bottleneck || remaining < minimum) {
|
|
25
|
+
minimum = remaining;
|
|
26
|
+
bottleneck = metric;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const status = minimum === 0 ? "exhausted" : "eligible";
|
|
30
|
+
return {
|
|
31
|
+
status,
|
|
32
|
+
weight: status === "eligible" ? Number(minimum.toFixed(4)) : 0,
|
|
33
|
+
percentRemaining: Math.round(minimum * 100),
|
|
34
|
+
bottleneck: bottleneck?.id ?? null,
|
|
35
|
+
reason: status === "eligible" ? "Provider-measured quota remaining" : "A required quota is exhausted",
|
|
36
|
+
checkedAt
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function validQuota(metric) {
|
|
40
|
+
return metric.used !== null && metric.limit !== null && Number.isFinite(metric.used) && Number.isFinite(metric.limit) && metric.used >= 0 && metric.limit > 0 && typeof metric.resetAt === "string" && Number.isFinite(Date.parse(metric.resetAt));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// src/provider-services/compute-operations.ts
|
|
44
|
+
function connectionFor(input, expected) {
|
|
45
|
+
if (input.providerId !== expected) throw new Error("Credential/provider mismatch");
|
|
46
|
+
return input;
|
|
47
|
+
}
|
|
48
|
+
function requiredProject(input, name, pattern) {
|
|
49
|
+
if (!pattern.test(input)) throw new Error("Invalid " + name);
|
|
50
|
+
return input;
|
|
51
|
+
}
|
|
52
|
+
async function getRailwayAccount(connection, transport = fetch) {
|
|
53
|
+
const client = createProviderClient(connectionFor(connection, "railway"), transport);
|
|
54
|
+
const { data } = await client.request({
|
|
55
|
+
path: "/graphql/v2",
|
|
56
|
+
method: "POST",
|
|
57
|
+
body: { query: "query FrnesIdentity { me { name email } }" }
|
|
58
|
+
});
|
|
59
|
+
if (data.errors?.length || !data.data?.me || typeof data.data.me !== "object" || !(typeof data.data.me.email === "string" && data.data.me.email.trim() || typeof data.data.me.name === "string" && data.data.me.name.trim()))
|
|
60
|
+
throw new Error("Railway account token could not be authorized");
|
|
61
|
+
return data.data.me;
|
|
62
|
+
}
|
|
63
|
+
async function listFlyApps(connection, transport = fetch) {
|
|
64
|
+
const client = createProviderClient(connectionFor(connection, "fly"), transport);
|
|
65
|
+
const { data } = await client.request({ path: "/v1/apps" });
|
|
66
|
+
if (!Array.isArray(data?.apps) || data.apps.some((item) => typeof item.name !== "string" || !item.name))
|
|
67
|
+
throw new Error("Invalid Fly Machines app listing");
|
|
68
|
+
return data.apps;
|
|
69
|
+
}
|
|
70
|
+
async function listRenderServices(connection, transport = fetch) {
|
|
71
|
+
const client = createProviderClient(connectionFor(connection, "render"), transport);
|
|
72
|
+
const { data } = await client.request({ path: "/v1/services", query: { limit: 20 } });
|
|
73
|
+
if (!Array.isArray(data) || data.some((item) => typeof item.service?.id !== "string" || !item.service.id || typeof item.service.name !== "string" || !item.service.name))
|
|
74
|
+
throw new Error("Invalid Render services response");
|
|
75
|
+
return data;
|
|
76
|
+
}
|
|
77
|
+
async function listGoogleCloudRunServices(connection, project, region, transport = fetch) {
|
|
78
|
+
connectionFor(connection, "google-cloud-run");
|
|
79
|
+
const projectId = requiredProject(project, "Google project ID", /^[a-z][a-z0-9-]{4,61}[a-z0-9]$/);
|
|
80
|
+
const location = requiredProject(region, "Google Cloud location", /^[a-z][a-z0-9-]{1,40}$/);
|
|
81
|
+
const { data } = await createProviderClient(connection, transport).request({ path: `/v2/projects/${projectId}/locations/${location}/services` });
|
|
82
|
+
if (!data || data.services !== void 0 && (!Array.isArray(data.services) || data.services.some((item) => typeof item.name !== "string" || !item.name)))
|
|
83
|
+
throw new Error("Invalid Cloud Run service listing");
|
|
84
|
+
return data.services || [];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export {
|
|
88
|
+
calculateProviderCapacity,
|
|
89
|
+
getRailwayAccount,
|
|
90
|
+
listFlyApps,
|
|
91
|
+
listRenderServices,
|
|
92
|
+
listGoogleCloudRunServices
|
|
93
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchCloudflareCapacity,
|
|
3
3
|
fetchVercelCapacity
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3V5B2BOP.js";
|
|
5
5
|
import {
|
|
6
6
|
getGeminiQuotaStatus,
|
|
7
7
|
listGeminiModels
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4NTZRTRY.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-4BCTI7BL.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-5SKQBVYU.js";
|
|
25
25
|
import {
|
|
26
26
|
b2ListBuckets,
|
|
27
27
|
b2ListFileNames
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
failoverExecutionEngine
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LMAU62ZG.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
aiProviderService
|
|
6
|
+
} from "./chunk-SLR6SIEU.js";
|
|
7
7
|
import {
|
|
8
8
|
toolManagerService
|
|
9
9
|
} from "./chunk-U4HUGPRH.js";
|
|
10
10
|
import {
|
|
11
11
|
inferenceExecutor
|
|
12
12
|
} from "./chunk-MK4ZRBFI.js";
|
|
13
|
+
import {
|
|
14
|
+
modelCatalog
|
|
15
|
+
} from "./chunk-EREYT3WJ.js";
|
|
13
16
|
import {
|
|
14
17
|
keyStore
|
|
15
18
|
} from "./chunk-P7H6TIEA.js";
|
|
16
|
-
import {
|
|
17
|
-
aiProviderService
|
|
18
|
-
} from "./chunk-SLR6SIEU.js";
|
|
19
19
|
|
|
20
20
|
// src/krnl-ai-services.ts
|
|
21
21
|
import {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
aiProviderService
|
|
3
|
+
} from "./chunk-SLR6SIEU.js";
|
|
1
4
|
import {
|
|
2
5
|
modelCatalog,
|
|
3
6
|
modelHealthService
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EREYT3WJ.js";
|
|
5
8
|
import {
|
|
6
9
|
keyStore
|
|
7
10
|
} from "./chunk-P7H6TIEA.js";
|
|
8
|
-
import {
|
|
9
|
-
aiProviderService
|
|
10
|
-
} from "./chunk-SLR6SIEU.js";
|
|
11
11
|
|
|
12
12
|
// src/ai-routing/metricsLogger.ts
|
|
13
13
|
var MetricsLogger = class {
|
|
@@ -12,6 +12,19 @@ var definitions = [
|
|
|
12
12
|
usageImplemented: true,
|
|
13
13
|
docsUrl: "https://developers.cloudflare.com/api/"
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
id: "cloudflare-containers",
|
|
17
|
+
parentId: "cloudflare",
|
|
18
|
+
name: "Cloudflare Containers (Workers Paid)",
|
|
19
|
+
category: "cloud",
|
|
20
|
+
status: "catalogued",
|
|
21
|
+
credentialModes: ["api-token"],
|
|
22
|
+
capabilities: ["containers"],
|
|
23
|
+
renewal: "monthly",
|
|
24
|
+
apiImplemented: false,
|
|
25
|
+
usageImplemented: false,
|
|
26
|
+
docsUrl: "https://developers.cloudflare.com/containers/"
|
|
27
|
+
},
|
|
15
28
|
{
|
|
16
29
|
id: "vercel",
|
|
17
30
|
name: "Vercel",
|
|
@@ -24,6 +37,19 @@ var definitions = [
|
|
|
24
37
|
usageImplemented: true,
|
|
25
38
|
docsUrl: "https://vercel.com/docs/rest-api"
|
|
26
39
|
},
|
|
40
|
+
{
|
|
41
|
+
id: "vercel-sandbox",
|
|
42
|
+
parentId: "vercel",
|
|
43
|
+
name: "Vercel Sandbox",
|
|
44
|
+
category: "cloud",
|
|
45
|
+
status: "catalogued",
|
|
46
|
+
credentialModes: ["api-token"],
|
|
47
|
+
capabilities: ["sandboxes"],
|
|
48
|
+
renewal: "monthly",
|
|
49
|
+
apiImplemented: false,
|
|
50
|
+
usageImplemented: false,
|
|
51
|
+
docsUrl: "https://vercel.com/docs/vercel-sandbox"
|
|
52
|
+
},
|
|
27
53
|
{
|
|
28
54
|
id: "google",
|
|
29
55
|
name: "Google",
|
|
@@ -68,11 +94,11 @@ var definitions = [
|
|
|
68
94
|
parentId: "google",
|
|
69
95
|
name: "Google Cloud Run",
|
|
70
96
|
category: "cloud",
|
|
71
|
-
status: "
|
|
97
|
+
status: "ready",
|
|
72
98
|
credentialModes: ["oauth2"],
|
|
73
|
-
capabilities: ["services"
|
|
99
|
+
capabilities: ["list-services"],
|
|
74
100
|
renewal: "monthly",
|
|
75
|
-
apiImplemented:
|
|
101
|
+
apiImplemented: true,
|
|
76
102
|
usageImplemented: false,
|
|
77
103
|
docsUrl: "https://cloud.google.com/run/docs"
|
|
78
104
|
},
|
|
@@ -215,11 +241,11 @@ var definitions = [
|
|
|
215
241
|
id: "render",
|
|
216
242
|
name: "Render",
|
|
217
243
|
category: "deployment",
|
|
218
|
-
status: "
|
|
244
|
+
status: "ready",
|
|
219
245
|
credentialModes: ["api-key"],
|
|
220
|
-
capabilities: ["services"
|
|
246
|
+
capabilities: ["list-services"],
|
|
221
247
|
renewal: "monthly",
|
|
222
|
-
apiImplemented:
|
|
248
|
+
apiImplemented: true,
|
|
223
249
|
usageImplemented: false,
|
|
224
250
|
docsUrl: "https://render.com/docs/free"
|
|
225
251
|
},
|
|
@@ -227,13 +253,38 @@ var definitions = [
|
|
|
227
253
|
id: "railway",
|
|
228
254
|
name: "Railway",
|
|
229
255
|
category: "deployment",
|
|
256
|
+
status: "ready",
|
|
257
|
+
credentialModes: ["api-token"],
|
|
258
|
+
capabilities: ["account-identity"],
|
|
259
|
+
renewal: "monthly",
|
|
260
|
+
apiImplemented: true,
|
|
261
|
+
usageImplemented: false,
|
|
262
|
+
docsUrl: "https://docs.railway.com/pricing/plans"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: "koyeb",
|
|
266
|
+
name: "Koyeb Free Instance",
|
|
267
|
+
category: "cloud",
|
|
230
268
|
status: "catalogued",
|
|
231
269
|
credentialModes: ["api-token"],
|
|
232
|
-
capabilities: ["
|
|
270
|
+
capabilities: ["instances", "services"],
|
|
271
|
+
renewal: "ongoing",
|
|
272
|
+
apiImplemented: false,
|
|
273
|
+
usageImplemented: false,
|
|
274
|
+
docsUrl: "https://www.koyeb.com/docs"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
id: "google-compute-engine",
|
|
278
|
+
parentId: "google",
|
|
279
|
+
name: "Google Compute Engine",
|
|
280
|
+
category: "cloud",
|
|
281
|
+
status: "catalogued",
|
|
282
|
+
credentialModes: ["oauth2"],
|
|
283
|
+
capabilities: ["instances"],
|
|
233
284
|
renewal: "monthly",
|
|
234
285
|
apiImplemented: false,
|
|
235
286
|
usageImplemented: false,
|
|
236
|
-
docsUrl: "https://
|
|
287
|
+
docsUrl: "https://cloud.google.com/compute/docs"
|
|
237
288
|
},
|
|
238
289
|
{
|
|
239
290
|
id: "oracle-cloud",
|
|
@@ -261,13 +312,13 @@ var definitions = [
|
|
|
261
312
|
},
|
|
262
313
|
{
|
|
263
314
|
id: "fly",
|
|
264
|
-
name: "Fly.io (
|
|
315
|
+
name: "Fly.io (nonrenewable trial)",
|
|
265
316
|
category: "cloud",
|
|
266
|
-
status: "
|
|
317
|
+
status: "ready",
|
|
267
318
|
credentialModes: ["api-token"],
|
|
268
|
-
capabilities: ["
|
|
319
|
+
capabilities: ["list-apps"],
|
|
269
320
|
renewal: "trial",
|
|
270
|
-
apiImplemented:
|
|
321
|
+
apiImplemented: true,
|
|
271
322
|
usageImplemented: false,
|
|
272
323
|
docsUrl: "https://fly.io/docs/about/free-trial/"
|
|
273
324
|
},
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-O25T5KCE.js";
|
|
4
4
|
import {
|
|
5
5
|
createDropboxStorageService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2DVRZKOK.js";
|
|
7
7
|
import {
|
|
8
8
|
createGitHubStorageService
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4LRMJIJ4.js";
|
|
10
10
|
import {
|
|
11
11
|
createGoogleDriveStorageService
|
|
12
12
|
} from "./chunk-CTBVXX5C.js";
|
|
@@ -2,8 +2,12 @@ import "./chunk-GVMVYC6C.js";
|
|
|
2
2
|
import "./chunk-2Y2EXYDK.js";
|
|
3
3
|
import "./chunk-RABSY2JU.js";
|
|
4
4
|
import {
|
|
5
|
-
calculateProviderCapacity
|
|
6
|
-
|
|
5
|
+
calculateProviderCapacity,
|
|
6
|
+
getRailwayAccount,
|
|
7
|
+
listFlyApps,
|
|
8
|
+
listGoogleCloudRunServices,
|
|
9
|
+
listRenderServices
|
|
10
|
+
} from "./chunk-FFYTCLFC.js";
|
|
7
11
|
import "./chunk-DAG2L4RN.js";
|
|
8
12
|
import {
|
|
9
13
|
isSecretMasked,
|
|
@@ -19,11 +23,11 @@ import {
|
|
|
19
23
|
import {
|
|
20
24
|
fetchCloudflareCapacity,
|
|
21
25
|
fetchVercelCapacity
|
|
22
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3V5B2BOP.js";
|
|
23
27
|
import {
|
|
24
28
|
getGeminiQuotaStatus,
|
|
25
29
|
listGeminiModels
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4NTZRTRY.js";
|
|
27
31
|
import {
|
|
28
32
|
getGoogleAccountProfile,
|
|
29
33
|
listCloudflareAccounts,
|
|
@@ -31,21 +35,21 @@ import {
|
|
|
31
35
|
listCloudflareWorkers,
|
|
32
36
|
listVercelDeployments,
|
|
33
37
|
listVercelProjects
|
|
34
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-4BCTI7BL.js";
|
|
35
39
|
import {
|
|
36
40
|
createCanonicalStorageService,
|
|
37
41
|
getCanonicalStorageCapabilities,
|
|
38
42
|
listCanonicalStorageProviders
|
|
39
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-YTJTF7LS.js";
|
|
40
44
|
import {
|
|
41
45
|
createBackblazeB2StorageService
|
|
42
46
|
} from "./chunk-O25T5KCE.js";
|
|
43
47
|
import {
|
|
44
48
|
createDropboxStorageService
|
|
45
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-2DVRZKOK.js";
|
|
46
50
|
import {
|
|
47
51
|
createGitHubStorageService
|
|
48
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-4LRMJIJ4.js";
|
|
49
53
|
import {
|
|
50
54
|
continueDropboxFolder,
|
|
51
55
|
listDropboxFolder,
|
|
@@ -53,7 +57,7 @@ import {
|
|
|
53
57
|
listGitHubRepositoryContents,
|
|
54
58
|
listGitLabProjects,
|
|
55
59
|
listGitLabRepositoryTree
|
|
56
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-5SKQBVYU.js";
|
|
57
61
|
import {
|
|
58
62
|
createGoogleDriveStorageService
|
|
59
63
|
} from "./chunk-CTBVXX5C.js";
|
|
@@ -65,7 +69,7 @@ import {
|
|
|
65
69
|
} from "./chunk-HJE4CVKY.js";
|
|
66
70
|
import {
|
|
67
71
|
createProviderClient
|
|
68
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-5S5CDQXD.js";
|
|
69
73
|
import {
|
|
70
74
|
getProviderService,
|
|
71
75
|
getProviderServicePath,
|
|
@@ -74,7 +78,7 @@ import {
|
|
|
74
78
|
listProviderServices,
|
|
75
79
|
listRecognizedAccountServices,
|
|
76
80
|
resolveProviderServiceId
|
|
77
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-LN274IE5.js";
|
|
78
82
|
import {
|
|
79
83
|
BaseApiRoute,
|
|
80
84
|
createSSEResponse,
|
|
@@ -192,6 +196,7 @@ export {
|
|
|
192
196
|
getGoogleAccountProfile,
|
|
193
197
|
getProviderService,
|
|
194
198
|
getProviderServicePath,
|
|
199
|
+
getRailwayAccount,
|
|
195
200
|
isSecretMasked,
|
|
196
201
|
b2ListBuckets as listBackblazeB2Buckets,
|
|
197
202
|
b2ListFileNames as listBackblazeB2Files,
|
|
@@ -200,15 +205,18 @@ export {
|
|
|
200
205
|
listCloudflarePages,
|
|
201
206
|
listCloudflareWorkers,
|
|
202
207
|
listDropboxFolder,
|
|
208
|
+
listFlyApps,
|
|
203
209
|
listGeminiModels,
|
|
204
210
|
listGitHubRepositories,
|
|
205
211
|
listGitHubRepositoryContents,
|
|
206
212
|
listGitLabProjects,
|
|
207
213
|
listGitLabRepositoryTree,
|
|
214
|
+
listGoogleCloudRunServices,
|
|
208
215
|
listProviderServiceChildren,
|
|
209
216
|
listProviderServiceTree,
|
|
210
217
|
listProviderServices,
|
|
211
218
|
listRecognizedAccountServices,
|
|
219
|
+
listRenderServices,
|
|
212
220
|
listVercelDeployments,
|
|
213
221
|
listVercelProjects,
|
|
214
222
|
normalizeBackblazeCredentials,
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
AIRoutingServiceFacade,
|
|
12
12
|
AIToolServiceDefinition,
|
|
13
13
|
AIToolServiceFacade
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-H47NEPYG.js";
|
|
15
|
+
import "./chunk-LMAU62ZG.js";
|
|
16
|
+
import "./chunk-SLR6SIEU.js";
|
|
17
17
|
import "./chunk-U4HUGPRH.js";
|
|
18
18
|
import "./chunk-MK4ZRBFI.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-SLR6SIEU.js";
|
|
19
|
+
import "./chunk-EREYT3WJ.js";
|
|
21
20
|
import "./chunk-MAMK4GDH.js";
|
|
21
|
+
import "./chunk-P7H6TIEA.js";
|
|
22
22
|
import "./chunk-JSQZAFBU.js";
|
|
23
23
|
export {
|
|
24
24
|
AIInferenceServiceDefinition,
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
krnlStorageServiceFacade,
|
|
28
28
|
krnlWorkspaceServiceDefinition,
|
|
29
29
|
krnlWorkspaceServiceFacade
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5CZUAEAD.js";
|
|
31
31
|
import "./chunk-FZKBTF34.js";
|
|
32
|
+
import "./chunk-IRKJ6HKP.js";
|
|
32
33
|
import "./chunk-7XTURV44.js";
|
|
33
34
|
import "./chunk-GCVR257U.js";
|
|
34
|
-
import "./chunk-IRKJ6HKP.js";
|
|
35
35
|
import "./chunk-3ZL2DX73.js";
|
|
36
36
|
import "./chunk-3RTRATDJ.js";
|
|
37
37
|
import "./chunk-2COYZMUJ.js";
|
|
@@ -13,21 +13,6 @@ import {
|
|
|
13
13
|
syncWorkspace,
|
|
14
14
|
workingWorkspaceService
|
|
15
15
|
} from "./chunk-NUBA6A5T.js";
|
|
16
|
-
import {
|
|
17
|
-
CompositeBackend,
|
|
18
|
-
EndpointGenerator,
|
|
19
|
-
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
20
|
-
NodeGraphPersistenceService,
|
|
21
|
-
createBackend,
|
|
22
|
-
createCompositeService,
|
|
23
|
-
createLocalService,
|
|
24
|
-
createRemoteService,
|
|
25
|
-
exportGraphAsJsonFile,
|
|
26
|
-
nodeGraphPersistence,
|
|
27
|
-
parseGraphJsonFile,
|
|
28
|
-
validateGraphDocument,
|
|
29
|
-
workspaceGraphService
|
|
30
|
-
} from "./chunk-4X4QGVAO.js";
|
|
31
16
|
import {
|
|
32
17
|
CANONICAL_SRKL_URL,
|
|
33
18
|
SrklClient,
|
|
@@ -46,6 +31,21 @@ import {
|
|
|
46
31
|
syncSrklAccounts,
|
|
47
32
|
useSrklServices
|
|
48
33
|
} from "./chunk-IIOQ7HXV.js";
|
|
34
|
+
import {
|
|
35
|
+
CompositeBackend,
|
|
36
|
+
EndpointGenerator,
|
|
37
|
+
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
38
|
+
NodeGraphPersistenceService,
|
|
39
|
+
createBackend,
|
|
40
|
+
createCompositeService,
|
|
41
|
+
createLocalService,
|
|
42
|
+
createRemoteService,
|
|
43
|
+
exportGraphAsJsonFile,
|
|
44
|
+
nodeGraphPersistence,
|
|
45
|
+
parseGraphJsonFile,
|
|
46
|
+
validateGraphDocument,
|
|
47
|
+
workspaceGraphService
|
|
48
|
+
} from "./chunk-4X4QGVAO.js";
|
|
49
49
|
import "./chunk-G4EDIAHW.js";
|
|
50
50
|
import {
|
|
51
51
|
BackblazeB2Adapter,
|
|
@@ -81,11 +81,11 @@ import {
|
|
|
81
81
|
GoogleAccountProviderService,
|
|
82
82
|
GoogleDriveProviderService,
|
|
83
83
|
VercelProviderService
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-FGZA6PDX.js";
|
|
85
85
|
import {
|
|
86
86
|
CanonicalStorageProviderService
|
|
87
|
-
} from "./chunk-
|
|
88
|
-
import "./chunk-
|
|
87
|
+
} from "./chunk-OJCSPAFE.js";
|
|
88
|
+
import "./chunk-LV55WKZR.js";
|
|
89
89
|
import "./chunk-WVDSMTW3.js";
|
|
90
90
|
import {
|
|
91
91
|
validateToolInput
|
|
@@ -111,18 +111,18 @@ import {
|
|
|
111
111
|
import {
|
|
112
112
|
WorkspaceCloneSyncEngine
|
|
113
113
|
} from "./chunk-CDRHYO44.js";
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
114
|
+
import "./chunk-3V5B2BOP.js";
|
|
115
|
+
import "./chunk-4NTZRTRY.js";
|
|
116
|
+
import "./chunk-4BCTI7BL.js";
|
|
117
|
+
import "./chunk-YTJTF7LS.js";
|
|
118
118
|
import "./chunk-O25T5KCE.js";
|
|
119
|
-
import "./chunk-
|
|
120
|
-
import "./chunk-
|
|
121
|
-
import "./chunk-
|
|
119
|
+
import "./chunk-2DVRZKOK.js";
|
|
120
|
+
import "./chunk-4LRMJIJ4.js";
|
|
121
|
+
import "./chunk-5SKQBVYU.js";
|
|
122
122
|
import "./chunk-CTBVXX5C.js";
|
|
123
123
|
import "./chunk-HJE4CVKY.js";
|
|
124
|
-
import "./chunk-
|
|
125
|
-
import "./chunk-
|
|
124
|
+
import "./chunk-5S5CDQXD.js";
|
|
125
|
+
import "./chunk-LN274IE5.js";
|
|
126
126
|
import {
|
|
127
127
|
BaseApiRoute,
|
|
128
128
|
createSSEResponse,
|
|
@@ -180,7 +180,7 @@ import {
|
|
|
180
180
|
AIRoutingServiceFacade,
|
|
181
181
|
AIToolServiceDefinition,
|
|
182
182
|
AIToolServiceFacade
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-H47NEPYG.js";
|
|
184
184
|
import {
|
|
185
185
|
FailoverExecutionEngine,
|
|
186
186
|
HealthCheckService,
|
|
@@ -188,16 +188,11 @@ import {
|
|
|
188
188
|
failoverExecutionEngine,
|
|
189
189
|
healthCheckService,
|
|
190
190
|
metricsLogger
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-LMAU62ZG.js";
|
|
192
192
|
import {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
STATIC_MODELS_CATALOG,
|
|
197
|
-
endpointRefresher,
|
|
198
|
-
modelCatalog,
|
|
199
|
-
modelHealthService
|
|
200
|
-
} from "./chunk-LMWXONZG.js";
|
|
193
|
+
AIProviderService,
|
|
194
|
+
aiProviderService
|
|
195
|
+
} from "./chunk-SLR6SIEU.js";
|
|
201
196
|
import {
|
|
202
197
|
MCPEngine,
|
|
203
198
|
ToolManagerService,
|
|
@@ -241,11 +236,16 @@ import {
|
|
|
241
236
|
readUserWorkspaceStorageFile,
|
|
242
237
|
verifyGoogleDriveAuthorizationState,
|
|
243
238
|
writeUserWorkspaceStorageFile
|
|
244
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-5CZUAEAD.js";
|
|
245
240
|
import {
|
|
246
241
|
formatCanonicalWorkspaceFolderName,
|
|
247
242
|
sanitizeWorkspaceName
|
|
248
243
|
} from "./chunk-FZKBTF34.js";
|
|
244
|
+
import {
|
|
245
|
+
getPrimarySrklDeploymentUrl,
|
|
246
|
+
getSrklAccounts,
|
|
247
|
+
srklListBackblazeBuckets
|
|
248
|
+
} from "./chunk-IRKJ6HKP.js";
|
|
249
249
|
import {
|
|
250
250
|
createWorkspace,
|
|
251
251
|
deleteWorkspace,
|
|
@@ -273,11 +273,6 @@ import {
|
|
|
273
273
|
readWorkspaceFile,
|
|
274
274
|
writeWorkspaceFile
|
|
275
275
|
} from "./chunk-GCVR257U.js";
|
|
276
|
-
import {
|
|
277
|
-
getPrimarySrklDeploymentUrl,
|
|
278
|
-
getSrklAccounts,
|
|
279
|
-
srklListBackblazeBuckets
|
|
280
|
-
} from "./chunk-IRKJ6HKP.js";
|
|
281
276
|
import {
|
|
282
277
|
completeGoogleDriveAuthorization,
|
|
283
278
|
createBackblazeStorageConnection,
|
|
@@ -342,6 +337,19 @@ import {
|
|
|
342
337
|
performInference
|
|
343
338
|
} from "./chunk-MK4ZRBFI.js";
|
|
344
339
|
import "./chunk-IN3WRHXE.js";
|
|
340
|
+
import "./chunk-UU6M3L3O.js";
|
|
341
|
+
import {
|
|
342
|
+
EndpointRefresher,
|
|
343
|
+
ModelCatalogService,
|
|
344
|
+
ModelHealthService,
|
|
345
|
+
STATIC_MODELS_CATALOG,
|
|
346
|
+
endpointRefresher,
|
|
347
|
+
modelCatalog,
|
|
348
|
+
modelHealthService
|
|
349
|
+
} from "./chunk-EREYT3WJ.js";
|
|
350
|
+
import {
|
|
351
|
+
AITransportClient
|
|
352
|
+
} from "./chunk-MAMK4GDH.js";
|
|
345
353
|
import {
|
|
346
354
|
KeyStoreService,
|
|
347
355
|
KeysStorage,
|
|
@@ -349,14 +357,6 @@ import {
|
|
|
349
357
|
keysStorage,
|
|
350
358
|
validateApiKey
|
|
351
359
|
} from "./chunk-P7H6TIEA.js";
|
|
352
|
-
import "./chunk-LV55WKZR.js";
|
|
353
|
-
import {
|
|
354
|
-
AIProviderService,
|
|
355
|
-
aiProviderService
|
|
356
|
-
} from "./chunk-SLR6SIEU.js";
|
|
357
|
-
import {
|
|
358
|
-
AITransportClient
|
|
359
|
-
} from "./chunk-MAMK4GDH.js";
|
|
360
360
|
import {
|
|
361
361
|
PROVIDERS_META,
|
|
362
362
|
PROVIDER_COLORS,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ProviderConnection } from './types.js';
|
|
2
|
+
/** Railway account tokens use Bearer; project tokens require a separate auth contract. */
|
|
3
|
+
export declare function getRailwayAccount(connection: ProviderConnection, transport?: typeof fetch): Promise<{
|
|
4
|
+
name?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
}>;
|
|
7
|
+
/** Fetch a page of account-owned Fly apps; trial credit is not renewable quota. */
|
|
8
|
+
export declare function listFlyApps(connection: ProviderConnection, transport?: typeof fetch): Promise<Array<{
|
|
9
|
+
name: string;
|
|
10
|
+
machine_count?: number;
|
|
11
|
+
}>>;
|
|
12
|
+
/** Render services API, first page only (not a complete account inventory). */
|
|
13
|
+
export declare function listRenderServices(connection: ProviderConnection, transport?: typeof fetch): Promise<Array<{
|
|
14
|
+
service?: {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
cursor?: string;
|
|
19
|
+
}>>;
|
|
20
|
+
/** IAM-scoped Cloud Run v2 service discovery for an exact project and region. */
|
|
21
|
+
export declare function listGoogleCloudRunServices(connection: ProviderConnection, project: string, region: string, transport?: typeof fetch): Promise<Array<{
|
|
22
|
+
name: string;
|
|
23
|
+
uri?: string;
|
|
24
|
+
}>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGeminiQuotaStatus,
|
|
3
3
|
listGeminiModels
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-4NTZRTRY.js";
|
|
5
|
+
import "../../chunk-5S5CDQXD.js";
|
|
6
|
+
import "../../chunk-LN274IE5.js";
|
|
7
7
|
export {
|
|
8
8
|
getGeminiQuotaStatus,
|
|
9
9
|
listGeminiModels
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGoogleAccountProfile
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-4BCTI7BL.js";
|
|
4
|
+
import "../../chunk-5S5CDQXD.js";
|
|
5
5
|
import {
|
|
6
6
|
getProviderService,
|
|
7
7
|
listProviderServiceChildren
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-LN274IE5.js";
|
|
9
9
|
|
|
10
10
|
// src/provider-services/google/index.ts
|
|
11
11
|
var getGoogleSuite = () => getProviderService("google");
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
calculateProviderCapacity
|
|
3
|
-
|
|
2
|
+
calculateProviderCapacity,
|
|
3
|
+
getRailwayAccount,
|
|
4
|
+
listFlyApps,
|
|
5
|
+
listGoogleCloudRunServices,
|
|
6
|
+
listRenderServices
|
|
7
|
+
} from "../chunk-FFYTCLFC.js";
|
|
4
8
|
import {
|
|
5
9
|
fetchCloudflareCapacity,
|
|
6
10
|
fetchVercelCapacity
|
|
7
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-3V5B2BOP.js";
|
|
8
12
|
import {
|
|
9
13
|
getGeminiQuotaStatus,
|
|
10
14
|
listGeminiModels
|
|
11
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-4NTZRTRY.js";
|
|
12
16
|
import {
|
|
13
17
|
getGoogleAccountProfile,
|
|
14
18
|
listCloudflareAccounts,
|
|
@@ -16,21 +20,21 @@ import {
|
|
|
16
20
|
listCloudflareWorkers,
|
|
17
21
|
listVercelDeployments,
|
|
18
22
|
listVercelProjects
|
|
19
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-4BCTI7BL.js";
|
|
20
24
|
import {
|
|
21
25
|
createCanonicalStorageService,
|
|
22
26
|
getCanonicalStorageCapabilities,
|
|
23
27
|
listCanonicalStorageProviders
|
|
24
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-YTJTF7LS.js";
|
|
25
29
|
import {
|
|
26
30
|
createBackblazeB2StorageService
|
|
27
31
|
} from "../chunk-O25T5KCE.js";
|
|
28
32
|
import {
|
|
29
33
|
createDropboxStorageService
|
|
30
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-2DVRZKOK.js";
|
|
31
35
|
import {
|
|
32
36
|
createGitHubStorageService
|
|
33
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-4LRMJIJ4.js";
|
|
34
38
|
import {
|
|
35
39
|
continueDropboxFolder,
|
|
36
40
|
listDropboxFolder,
|
|
@@ -38,7 +42,7 @@ import {
|
|
|
38
42
|
listGitHubRepositoryContents,
|
|
39
43
|
listGitLabProjects,
|
|
40
44
|
listGitLabRepositoryTree
|
|
41
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-5SKQBVYU.js";
|
|
42
46
|
import {
|
|
43
47
|
createGoogleDriveStorageService
|
|
44
48
|
} from "../chunk-CTBVXX5C.js";
|
|
@@ -50,7 +54,7 @@ import {
|
|
|
50
54
|
} from "../chunk-HJE4CVKY.js";
|
|
51
55
|
import {
|
|
52
56
|
createProviderClient
|
|
53
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-5S5CDQXD.js";
|
|
54
58
|
import {
|
|
55
59
|
getProviderService,
|
|
56
60
|
getProviderServicePath,
|
|
@@ -59,7 +63,7 @@ import {
|
|
|
59
63
|
listProviderServices,
|
|
60
64
|
listRecognizedAccountServices,
|
|
61
65
|
resolveProviderServiceId
|
|
62
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-LN274IE5.js";
|
|
63
67
|
import {
|
|
64
68
|
authorizeB2,
|
|
65
69
|
b2DownloadFile,
|
|
@@ -93,6 +97,7 @@ export {
|
|
|
93
97
|
getGoogleAccountProfile,
|
|
94
98
|
getProviderService,
|
|
95
99
|
getProviderServicePath,
|
|
100
|
+
getRailwayAccount,
|
|
96
101
|
b2ListBuckets as listBackblazeB2Buckets,
|
|
97
102
|
b2ListFileNames as listBackblazeB2Files,
|
|
98
103
|
listCanonicalStorageProviders,
|
|
@@ -100,15 +105,18 @@ export {
|
|
|
100
105
|
listCloudflarePages,
|
|
101
106
|
listCloudflareWorkers,
|
|
102
107
|
listDropboxFolder,
|
|
108
|
+
listFlyApps,
|
|
103
109
|
listGeminiModels,
|
|
104
110
|
listGitHubRepositories,
|
|
105
111
|
listGitHubRepositoryContents,
|
|
106
112
|
listGitLabProjects,
|
|
107
113
|
listGitLabRepositoryTree,
|
|
114
|
+
listGoogleCloudRunServices,
|
|
108
115
|
listProviderServiceChildren,
|
|
109
116
|
listProviderServiceTree,
|
|
110
117
|
listProviderServices,
|
|
111
118
|
listRecognizedAccountServices,
|
|
119
|
+
listRenderServices,
|
|
112
120
|
listVercelDeployments,
|
|
113
121
|
listVercelProjects,
|
|
114
122
|
normalizeStoragePath,
|
|
@@ -8,22 +8,22 @@ import {
|
|
|
8
8
|
GoogleAccountProviderService,
|
|
9
9
|
GoogleDriveProviderService,
|
|
10
10
|
VercelProviderService
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-FGZA6PDX.js";
|
|
12
12
|
import {
|
|
13
13
|
CanonicalStorageProviderService
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-OJCSPAFE.js";
|
|
15
|
+
import "../chunk-3V5B2BOP.js";
|
|
16
|
+
import "../chunk-4NTZRTRY.js";
|
|
17
|
+
import "../chunk-4BCTI7BL.js";
|
|
18
|
+
import "../chunk-YTJTF7LS.js";
|
|
19
19
|
import "../chunk-O25T5KCE.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-2DVRZKOK.js";
|
|
21
|
+
import "../chunk-4LRMJIJ4.js";
|
|
22
|
+
import "../chunk-5SKQBVYU.js";
|
|
23
23
|
import "../chunk-CTBVXX5C.js";
|
|
24
24
|
import "../chunk-HJE4CVKY.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-5S5CDQXD.js";
|
|
26
|
+
import "../chunk-LN274IE5.js";
|
|
27
27
|
import "../chunk-I6T64MLT.js";
|
|
28
28
|
import "../chunk-EMSSTOOK.js";
|
|
29
29
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDropboxStorageService
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-2DVRZKOK.js";
|
|
4
|
+
import "../../chunk-5SKQBVYU.js";
|
|
5
5
|
import "../../chunk-HJE4CVKY.js";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-5S5CDQXD.js";
|
|
7
|
+
import "../../chunk-LN274IE5.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-
|
|
3
|
+
} from "../../chunk-4LRMJIJ4.js";
|
|
4
|
+
import "../../chunk-5SKQBVYU.js";
|
|
5
5
|
import "../../chunk-HJE4CVKY.js";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-5S5CDQXD.js";
|
|
7
|
+
import "../../chunk-LN274IE5.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-
|
|
3
|
+
} from "../../chunk-OJCSPAFE.js";
|
|
4
|
+
import "../../chunk-YTJTF7LS.js";
|
|
5
5
|
import "../../chunk-O25T5KCE.js";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-2DVRZKOK.js";
|
|
7
|
+
import "../../chunk-4LRMJIJ4.js";
|
|
8
|
+
import "../../chunk-5SKQBVYU.js";
|
|
9
9
|
import "../../chunk-CTBVXX5C.js";
|
|
10
10
|
import "../../chunk-HJE4CVKY.js";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-5S5CDQXD.js";
|
|
12
|
+
import "../../chunk-LN274IE5.js";
|
|
13
13
|
import "../../chunk-I6T64MLT.js";
|
|
14
14
|
import "../../chunk-EMSSTOOK.js";
|
|
15
15
|
export {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
createCanonicalStorageService,
|
|
3
3
|
getCanonicalStorageCapabilities,
|
|
4
4
|
listCanonicalStorageProviders
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-YTJTF7LS.js";
|
|
6
6
|
import "../chunk-O25T5KCE.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-2DVRZKOK.js";
|
|
8
|
+
import "../chunk-4LRMJIJ4.js";
|
|
9
|
+
import "../chunk-5SKQBVYU.js";
|
|
10
10
|
import "../chunk-CTBVXX5C.js";
|
|
11
11
|
import {
|
|
12
12
|
UnsupportedStorageOperation,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
normalizeStoragePath,
|
|
15
15
|
readOnlyService
|
|
16
16
|
} from "../chunk-HJE4CVKY.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-5S5CDQXD.js";
|
|
18
|
+
import "../chunk-LN274IE5.js";
|
|
19
19
|
import "../chunk-I6T64MLT.js";
|
|
20
20
|
import "../chunk-EMSSTOOK.js";
|
|
21
21
|
export {
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// src/provider-services/capacity.ts
|
|
2
|
-
function calculateProviderCapacity(snapshot, now = /* @__PURE__ */ new Date(), maxAgeMs = 10 * 6e4) {
|
|
3
|
-
const checkedAt = now.toISOString();
|
|
4
|
-
const unknown = (reason) => ({ status: "unknown", weight: 0, percentRemaining: null, bottleneck: null, reason, checkedAt });
|
|
5
|
-
const timestamp = Date.parse(snapshot.capturedAt);
|
|
6
|
-
if (!Number.isFinite(timestamp) || now.getTime() < timestamp - 3e4 || now.getTime() - timestamp > maxAgeMs) return unknown("Telemetry is stale or undated");
|
|
7
|
-
if (snapshot.error || snapshot.coverage === "unavailable") {
|
|
8
|
-
return unknown(snapshot.error || "Provider quota telemetry unavailable");
|
|
9
|
-
}
|
|
10
|
-
const enforced = snapshot.metrics.filter((m) => m.enforceable);
|
|
11
|
-
if (!enforced.length) return unknown("No provider-confirmed renewable quota windows");
|
|
12
|
-
if (snapshot.coverage !== "complete") return unknown("Required quota coverage is incomplete");
|
|
13
|
-
let bottleneck = null;
|
|
14
|
-
let minimum = 1;
|
|
15
|
-
for (const metric of enforced) {
|
|
16
|
-
if (metric.source !== "provider" || !validQuota(metric) || !metric.resetAt || Date.parse(metric.resetAt) <= now.getTime()) {
|
|
17
|
-
return unknown("Quota metric missing, estimated, or outside its reset window: " + metric.id);
|
|
18
|
-
}
|
|
19
|
-
const remaining = Math.max(0, Math.min(1, (metric.limit - metric.used) / metric.limit));
|
|
20
|
-
if (!bottleneck || remaining < minimum) {
|
|
21
|
-
minimum = remaining;
|
|
22
|
-
bottleneck = metric;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const status = minimum === 0 ? "exhausted" : "eligible";
|
|
26
|
-
return {
|
|
27
|
-
status,
|
|
28
|
-
weight: status === "eligible" ? Number(minimum.toFixed(4)) : 0,
|
|
29
|
-
percentRemaining: Math.round(minimum * 100),
|
|
30
|
-
bottleneck: bottleneck?.id ?? null,
|
|
31
|
-
reason: status === "eligible" ? "Provider-measured quota remaining" : "A required quota is exhausted",
|
|
32
|
-
checkedAt
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function validQuota(metric) {
|
|
36
|
-
return metric.used !== null && metric.limit !== null && Number.isFinite(metric.used) && Number.isFinite(metric.limit) && metric.used >= 0 && metric.limit > 0 && typeof metric.resetAt === "string" && Number.isFinite(Date.parse(metric.resetAt));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export {
|
|
40
|
-
calculateProviderCapacity
|
|
41
|
-
};
|
|
@@ -2,6 +2,11 @@ import {
|
|
|
2
2
|
formatCanonicalWorkspaceFolderName,
|
|
3
3
|
sanitizeWorkspaceName
|
|
4
4
|
} from "./chunk-FZKBTF34.js";
|
|
5
|
+
import {
|
|
6
|
+
getPrimarySrklDeploymentUrl,
|
|
7
|
+
getSrklAccounts,
|
|
8
|
+
srklListBackblazeBuckets
|
|
9
|
+
} from "./chunk-IRKJ6HKP.js";
|
|
5
10
|
import {
|
|
6
11
|
createWorkspace,
|
|
7
12
|
deleteWorkspace,
|
|
@@ -15,11 +20,6 @@ import {
|
|
|
15
20
|
readWorkspaceFile,
|
|
16
21
|
writeWorkspaceFile
|
|
17
22
|
} from "./chunk-GCVR257U.js";
|
|
18
|
-
import {
|
|
19
|
-
getPrimarySrklDeploymentUrl,
|
|
20
|
-
getSrklAccounts,
|
|
21
|
-
srklListBackblazeBuckets
|
|
22
|
-
} from "./chunk-IRKJ6HKP.js";
|
|
23
23
|
import {
|
|
24
24
|
completeGoogleDriveAuthorization,
|
|
25
25
|
createBackblazeStorageConnection,
|