@ultrst-armada/kloks 2.2.6 → 2.2.7
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 +3 -3
- package/package.json +1 -1
- package/packages/backend/dist/{chunk-5SKQBVYU.js → chunk-AMI5MY6E.js} +2 -2
- package/packages/backend/dist/{chunk-4LRMJIJ4.js → chunk-FFQJ4USX.js} +1 -1
- package/packages/backend/dist/chunk-G6FLQJS6.js +496 -0
- package/packages/backend/dist/{chunk-4NTZRTRY.js → chunk-GIUAFRAA.js} +1 -1
- package/packages/backend/dist/{chunk-OJCSPAFE.js → chunk-GZTZ376X.js} +1 -1
- package/packages/backend/dist/{chunk-4BCTI7BL.js → chunk-LAKCKX3I.js} +1 -1
- package/packages/backend/dist/{chunk-YTJTF7LS.js → chunk-LPM5E2A2.js} +2 -2
- package/packages/backend/dist/{chunk-5S5CDQXD.js → chunk-MQ6AHJ6X.js} +2 -2
- package/packages/backend/dist/{chunk-2DVRZKOK.js → chunk-QZDTABQX.js} +2 -2
- package/packages/backend/dist/{chunk-3V5B2BOP.js → chunk-RHW75K46.js} +1 -1
- package/packages/backend/dist/{chunk-FGZA6PDX.js → chunk-U5VPYALB.js} +4 -4
- package/packages/backend/dist/chunk-UI7AYFAU.js +364 -0
- package/packages/backend/dist/{client-S4R4MZ6K.js → client-R5FY5AP7.js} +2 -2
- package/packages/backend/dist/index.js +38 -12
- package/packages/backend/dist/krnl-services.js +2 -2
- package/packages/backend/dist/node.js +32 -32
- package/packages/backend/dist/provider-services/compute-routing.d.ts +65 -0
- package/packages/backend/dist/provider-services/compute-routing.test.d.ts +1 -0
- package/packages/backend/dist/provider-services/fly-machines.d.ts +52 -0
- package/packages/backend/dist/provider-services/fly-machines.test.d.ts +1 -0
- package/packages/backend/dist/provider-services/free-compute.d.ts +5 -0
- package/packages/backend/dist/provider-services/free-compute.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 +3 -0
- package/packages/backend/dist/provider-services/index.js +39 -13
- 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/provider-services/types.d.ts +16 -2
- package/packages/state-graph/dist/browser.js +24 -24
- package/packages/state-graph/dist/index.js +24 -24
- package/packages/backend/dist/chunk-FFYTCLFC.js +0 -93
- package/packages/backend/dist/chunk-LN274IE5.js +0 -414
- package/packages/backend/dist/{chunk-5CZUAEAD.js → chunk-R4B3KPHY.js} +5 -5
- package/packages/state-graph/dist/{chunk-YUJC367F.js → chunk-UKTICGGV.js} +3 -3
|
@@ -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,
|
|
@@ -263,20 +263,14 @@ import {
|
|
|
263
263
|
} from "./chunk-OXUDG6HE.js";
|
|
264
264
|
import "./chunk-RHRXPY2U.js";
|
|
265
265
|
import {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
} from "./chunk-
|
|
274
|
-
import {
|
|
275
|
-
ConnectionRuleStore,
|
|
276
|
-
HandleTypeRegistry,
|
|
277
|
-
WireTypeRegistry,
|
|
278
|
-
initializeDefaultGraphRules
|
|
279
|
-
} from "./chunk-TZOL3RN7.js";
|
|
266
|
+
LifecycleCycleError,
|
|
267
|
+
LifecycleGraph,
|
|
268
|
+
SKIPO_STATE,
|
|
269
|
+
SkipoStateEngine,
|
|
270
|
+
useLifecycleScope,
|
|
271
|
+
useSkipoBind,
|
|
272
|
+
useSkipoState
|
|
273
|
+
} from "./chunk-EW4ACSZB.js";
|
|
280
274
|
import {
|
|
281
275
|
CommandApi,
|
|
282
276
|
GhostStore,
|
|
@@ -291,6 +285,21 @@ import {
|
|
|
291
285
|
CustomViewWindow,
|
|
292
286
|
DEFAULT_GRAPH_SETTINGS
|
|
293
287
|
} from "./chunk-5KP74NMF.js";
|
|
288
|
+
import {
|
|
289
|
+
AttractionEngine,
|
|
290
|
+
GhostInferenceEngine,
|
|
291
|
+
GhostLayoutResolver,
|
|
292
|
+
GhostTracePathBuilder,
|
|
293
|
+
calculateSocketCoordinates,
|
|
294
|
+
getBeamPoints,
|
|
295
|
+
useMagneticTraces
|
|
296
|
+
} from "./chunk-JXDJZSFW.js";
|
|
297
|
+
import {
|
|
298
|
+
ConnectionRuleStore,
|
|
299
|
+
HandleTypeRegistry,
|
|
300
|
+
WireTypeRegistry,
|
|
301
|
+
initializeDefaultGraphRules
|
|
302
|
+
} from "./chunk-TZOL3RN7.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,
|
|
@@ -263,20 +263,14 @@ import {
|
|
|
263
263
|
} from "./chunk-OXUDG6HE.js";
|
|
264
264
|
import "./chunk-RHRXPY2U.js";
|
|
265
265
|
import {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
} from "./chunk-
|
|
274
|
-
import {
|
|
275
|
-
ConnectionRuleStore,
|
|
276
|
-
HandleTypeRegistry,
|
|
277
|
-
WireTypeRegistry,
|
|
278
|
-
initializeDefaultGraphRules
|
|
279
|
-
} from "./chunk-TZOL3RN7.js";
|
|
266
|
+
LifecycleCycleError,
|
|
267
|
+
LifecycleGraph,
|
|
268
|
+
SKIPO_STATE,
|
|
269
|
+
SkipoStateEngine,
|
|
270
|
+
useLifecycleScope,
|
|
271
|
+
useSkipoBind,
|
|
272
|
+
useSkipoState
|
|
273
|
+
} from "./chunk-EW4ACSZB.js";
|
|
280
274
|
import {
|
|
281
275
|
CommandApi,
|
|
282
276
|
GhostStore,
|
|
@@ -291,6 +285,21 @@ import {
|
|
|
291
285
|
CustomViewWindow,
|
|
292
286
|
DEFAULT_GRAPH_SETTINGS
|
|
293
287
|
} from "./chunk-5KP74NMF.js";
|
|
288
|
+
import {
|
|
289
|
+
AttractionEngine,
|
|
290
|
+
GhostInferenceEngine,
|
|
291
|
+
GhostLayoutResolver,
|
|
292
|
+
GhostTracePathBuilder,
|
|
293
|
+
calculateSocketCoordinates,
|
|
294
|
+
getBeamPoints,
|
|
295
|
+
useMagneticTraces
|
|
296
|
+
} from "./chunk-JXDJZSFW.js";
|
|
297
|
+
import {
|
|
298
|
+
ConnectionRuleStore,
|
|
299
|
+
HandleTypeRegistry,
|
|
300
|
+
WireTypeRegistry,
|
|
301
|
+
initializeDefaultGraphRules
|
|
302
|
+
} from "./chunk-TZOL3RN7.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,93 +0,0 @@
|
|
|
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,414 +0,0 @@
|
|
|
1
|
-
// src/provider-services/registry.ts
|
|
2
|
-
var definitions = [
|
|
3
|
-
{
|
|
4
|
-
id: "cloudflare",
|
|
5
|
-
name: "Cloudflare",
|
|
6
|
-
category: "deployment",
|
|
7
|
-
status: "ready",
|
|
8
|
-
credentialModes: ["api-token"],
|
|
9
|
-
capabilities: ["workers", "pages", "usage"],
|
|
10
|
-
renewal: "daily",
|
|
11
|
-
apiImplemented: true,
|
|
12
|
-
usageImplemented: true,
|
|
13
|
-
docsUrl: "https://developers.cloudflare.com/api/"
|
|
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
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: "vercel",
|
|
30
|
-
name: "Vercel",
|
|
31
|
-
category: "deployment",
|
|
32
|
-
status: "ready",
|
|
33
|
-
credentialModes: ["api-token"],
|
|
34
|
-
capabilities: ["projects", "deployments", "usage"],
|
|
35
|
-
renewal: "monthly",
|
|
36
|
-
apiImplemented: true,
|
|
37
|
-
usageImplemented: true,
|
|
38
|
-
docsUrl: "https://vercel.com/docs/rest-api"
|
|
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
|
-
},
|
|
53
|
-
{
|
|
54
|
-
id: "google",
|
|
55
|
-
name: "Google",
|
|
56
|
-
kind: "suite",
|
|
57
|
-
category: "suite",
|
|
58
|
-
status: "ready",
|
|
59
|
-
credentialModes: ["oauth2"],
|
|
60
|
-
capabilities: ["identity"],
|
|
61
|
-
renewal: "unknown",
|
|
62
|
-
apiImplemented: true,
|
|
63
|
-
usageImplemented: false,
|
|
64
|
-
docsUrl: "https://developers.google.com/identity"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
id: "google-gemini",
|
|
68
|
-
parentId: "google",
|
|
69
|
-
name: "Gemini Developer API",
|
|
70
|
-
category: "ai",
|
|
71
|
-
status: "ready",
|
|
72
|
-
credentialModes: ["api-key"],
|
|
73
|
-
capabilities: ["models", "inference"],
|
|
74
|
-
renewal: "daily",
|
|
75
|
-
apiImplemented: true,
|
|
76
|
-
usageImplemented: false,
|
|
77
|
-
docsUrl: "https://ai.google.dev/gemini-api/docs"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: "google-drive",
|
|
81
|
-
parentId: "google",
|
|
82
|
-
name: "Google Drive",
|
|
83
|
-
category: "storage",
|
|
84
|
-
status: "ready",
|
|
85
|
-
credentialModes: ["oauth2"],
|
|
86
|
-
capabilities: ["files", "folders"],
|
|
87
|
-
renewal: "ongoing",
|
|
88
|
-
apiImplemented: true,
|
|
89
|
-
usageImplemented: false,
|
|
90
|
-
docsUrl: "https://developers.google.com/workspace/drive/api"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: "google-cloud-run",
|
|
94
|
-
parentId: "google",
|
|
95
|
-
name: "Google Cloud Run",
|
|
96
|
-
category: "cloud",
|
|
97
|
-
status: "ready",
|
|
98
|
-
credentialModes: ["oauth2"],
|
|
99
|
-
capabilities: ["list-services"],
|
|
100
|
-
renewal: "monthly",
|
|
101
|
-
apiImplemented: true,
|
|
102
|
-
usageImplemented: false,
|
|
103
|
-
docsUrl: "https://cloud.google.com/run/docs"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
id: "google-cloud-storage",
|
|
107
|
-
parentId: "google",
|
|
108
|
-
name: "Google Cloud Storage",
|
|
109
|
-
category: "storage",
|
|
110
|
-
status: "catalogued",
|
|
111
|
-
credentialModes: ["oauth2"],
|
|
112
|
-
capabilities: ["buckets", "objects"],
|
|
113
|
-
renewal: "ongoing",
|
|
114
|
-
apiImplemented: false,
|
|
115
|
-
usageImplemented: false,
|
|
116
|
-
docsUrl: "https://cloud.google.com/storage/docs"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
id: "google-cloud-shell",
|
|
120
|
-
parentId: "google",
|
|
121
|
-
name: "Google Cloud Shell",
|
|
122
|
-
category: "cloud",
|
|
123
|
-
status: "catalogued",
|
|
124
|
-
credentialModes: ["oauth2"],
|
|
125
|
-
capabilities: ["terminal"],
|
|
126
|
-
renewal: "unknown",
|
|
127
|
-
apiImplemented: false,
|
|
128
|
-
usageImplemented: false,
|
|
129
|
-
docsUrl: "https://cloud.google.com/shell/docs"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
id: "google-vertex-ai",
|
|
133
|
-
parentId: "google",
|
|
134
|
-
name: "Vertex AI",
|
|
135
|
-
category: "ai",
|
|
136
|
-
status: "catalogued",
|
|
137
|
-
credentialModes: ["oauth2"],
|
|
138
|
-
capabilities: ["inference", "models"],
|
|
139
|
-
renewal: "monthly",
|
|
140
|
-
apiImplemented: false,
|
|
141
|
-
usageImplemented: false,
|
|
142
|
-
docsUrl: "https://cloud.google.com/vertex-ai/docs"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
id: "backblaze-b2",
|
|
146
|
-
name: "Backblaze B2",
|
|
147
|
-
category: "storage",
|
|
148
|
-
status: "ready",
|
|
149
|
-
credentialModes: ["application-key"],
|
|
150
|
-
capabilities: ["buckets", "files"],
|
|
151
|
-
renewal: "ongoing",
|
|
152
|
-
apiImplemented: true,
|
|
153
|
-
usageImplemented: false,
|
|
154
|
-
docsUrl: "https://www.backblaze.com/docs/cloud-storage"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
id: "github",
|
|
158
|
-
name: "GitHub",
|
|
159
|
-
category: "storage",
|
|
160
|
-
status: "ready",
|
|
161
|
-
credentialModes: ["oauth2", "api-token"],
|
|
162
|
-
capabilities: ["repositories", "contents"],
|
|
163
|
-
renewal: "ongoing",
|
|
164
|
-
apiImplemented: true,
|
|
165
|
-
usageImplemented: false,
|
|
166
|
-
docsUrl: "https://docs.github.com/en/rest"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
id: "gitlab",
|
|
170
|
-
name: "GitLab.com",
|
|
171
|
-
category: "storage",
|
|
172
|
-
status: "ready",
|
|
173
|
-
credentialModes: ["oauth2", "api-token"],
|
|
174
|
-
capabilities: ["projects", "repository-tree"],
|
|
175
|
-
renewal: "ongoing",
|
|
176
|
-
apiImplemented: true,
|
|
177
|
-
usageImplemented: false,
|
|
178
|
-
docsUrl: "https://docs.gitlab.com/api/"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
id: "dropbox",
|
|
182
|
-
name: "Dropbox",
|
|
183
|
-
category: "storage",
|
|
184
|
-
status: "ready",
|
|
185
|
-
credentialModes: ["oauth2"],
|
|
186
|
-
capabilities: ["list-folder", "pagination"],
|
|
187
|
-
renewal: "ongoing",
|
|
188
|
-
apiImplemented: true,
|
|
189
|
-
usageImplemented: false,
|
|
190
|
-
docsUrl: "https://www.dropbox.com/developers/documentation/http/documentation"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
id: "groq",
|
|
194
|
-
name: "Groq",
|
|
195
|
-
category: "ai",
|
|
196
|
-
status: "catalogued",
|
|
197
|
-
credentialModes: ["api-key"],
|
|
198
|
-
capabilities: ["inference", "models"],
|
|
199
|
-
renewal: "daily",
|
|
200
|
-
apiImplemented: false,
|
|
201
|
-
usageImplemented: false,
|
|
202
|
-
docsUrl: "https://console.groq.com/docs/rate-limits"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
id: "cerebras",
|
|
206
|
-
name: "Cerebras",
|
|
207
|
-
category: "ai",
|
|
208
|
-
status: "catalogued",
|
|
209
|
-
credentialModes: ["api-key"],
|
|
210
|
-
capabilities: ["inference", "models"],
|
|
211
|
-
renewal: "daily",
|
|
212
|
-
apiImplemented: false,
|
|
213
|
-
usageImplemented: false,
|
|
214
|
-
docsUrl: "https://inference-docs.cerebras.ai/"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
id: "huggingface",
|
|
218
|
-
name: "Hugging Face",
|
|
219
|
-
category: "ai",
|
|
220
|
-
status: "catalogued",
|
|
221
|
-
credentialModes: ["api-token"],
|
|
222
|
-
capabilities: ["inference", "models"],
|
|
223
|
-
renewal: "monthly",
|
|
224
|
-
apiImplemented: false,
|
|
225
|
-
usageImplemented: false,
|
|
226
|
-
docsUrl: "https://huggingface.co/docs/inference-providers/pricing"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
id: "openrouter",
|
|
230
|
-
name: "OpenRouter (free models)",
|
|
231
|
-
category: "ai",
|
|
232
|
-
status: "catalogued",
|
|
233
|
-
credentialModes: ["api-key"],
|
|
234
|
-
capabilities: ["inference", "models"],
|
|
235
|
-
renewal: "daily",
|
|
236
|
-
apiImplemented: false,
|
|
237
|
-
usageImplemented: false,
|
|
238
|
-
docsUrl: "https://openrouter.ai/collections/free-models"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
id: "render",
|
|
242
|
-
name: "Render",
|
|
243
|
-
category: "deployment",
|
|
244
|
-
status: "ready",
|
|
245
|
-
credentialModes: ["api-key"],
|
|
246
|
-
capabilities: ["list-services"],
|
|
247
|
-
renewal: "monthly",
|
|
248
|
-
apiImplemented: true,
|
|
249
|
-
usageImplemented: false,
|
|
250
|
-
docsUrl: "https://render.com/docs/free"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
id: "railway",
|
|
254
|
-
name: "Railway",
|
|
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",
|
|
268
|
-
status: "catalogued",
|
|
269
|
-
credentialModes: ["api-token"],
|
|
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"],
|
|
284
|
-
renewal: "monthly",
|
|
285
|
-
apiImplemented: false,
|
|
286
|
-
usageImplemented: false,
|
|
287
|
-
docsUrl: "https://cloud.google.com/compute/docs"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
id: "oracle-cloud",
|
|
291
|
-
name: "Oracle Cloud Always Free",
|
|
292
|
-
category: "cloud",
|
|
293
|
-
status: "catalogued",
|
|
294
|
-
credentialModes: ["api-key"],
|
|
295
|
-
capabilities: ["instances"],
|
|
296
|
-
renewal: "ongoing",
|
|
297
|
-
apiImplemented: false,
|
|
298
|
-
usageImplemented: false,
|
|
299
|
-
docsUrl: "https://www.oracle.com/cloud/free/"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
id: "replit",
|
|
303
|
-
name: "Replit",
|
|
304
|
-
category: "developer",
|
|
305
|
-
status: "catalogued",
|
|
306
|
-
credentialModes: ["api-token"],
|
|
307
|
-
capabilities: ["development"],
|
|
308
|
-
renewal: "unknown",
|
|
309
|
-
apiImplemented: false,
|
|
310
|
-
usageImplemented: false,
|
|
311
|
-
docsUrl: "https://docs.replit.com/"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
id: "fly",
|
|
315
|
-
name: "Fly.io (nonrenewable trial)",
|
|
316
|
-
category: "cloud",
|
|
317
|
-
status: "ready",
|
|
318
|
-
credentialModes: ["api-token"],
|
|
319
|
-
capabilities: ["list-apps"],
|
|
320
|
-
renewal: "trial",
|
|
321
|
-
apiImplemented: true,
|
|
322
|
-
usageImplemented: false,
|
|
323
|
-
docsUrl: "https://fly.io/docs/about/free-trial/"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
id: "openai",
|
|
327
|
-
name: "OpenAI API",
|
|
328
|
-
category: "ai",
|
|
329
|
-
status: "excluded",
|
|
330
|
-
credentialModes: ["api-key"],
|
|
331
|
-
capabilities: ["inference"],
|
|
332
|
-
renewal: "unknown",
|
|
333
|
-
apiImplemented: false,
|
|
334
|
-
usageImplemented: false,
|
|
335
|
-
docsUrl: "https://platform.openai.com/docs"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
id: "xai",
|
|
339
|
-
name: "xAI Grok API",
|
|
340
|
-
category: "ai",
|
|
341
|
-
status: "excluded",
|
|
342
|
-
credentialModes: ["api-key"],
|
|
343
|
-
capabilities: ["inference"],
|
|
344
|
-
renewal: "unknown",
|
|
345
|
-
apiImplemented: false,
|
|
346
|
-
usageImplemented: false,
|
|
347
|
-
docsUrl: "https://docs.x.ai/"
|
|
348
|
-
}
|
|
349
|
-
];
|
|
350
|
-
var byId = new Map(definitions.map((def) => [def.id, def]));
|
|
351
|
-
var aliases = {
|
|
352
|
-
cloudflare_workers: "cloudflare",
|
|
353
|
-
cloudflare_pages: "cloudflare",
|
|
354
|
-
gemini: "google-gemini",
|
|
355
|
-
google_ai_studio: "google-gemini",
|
|
356
|
-
backblaze: "backblaze-b2",
|
|
357
|
-
backblaze_b2: "backblaze-b2",
|
|
358
|
-
google_drive: "google-drive",
|
|
359
|
-
google_cloud_storage: "google-cloud-storage",
|
|
360
|
-
github_repos: "github",
|
|
361
|
-
gitlab_repos: "gitlab"
|
|
362
|
-
};
|
|
363
|
-
function resolveProviderServiceId(id) {
|
|
364
|
-
const clean = String(id || "").trim().toLowerCase().replace(/-/g, "_");
|
|
365
|
-
return aliases[clean] ?? clean.replace(/_/g, "-");
|
|
366
|
-
}
|
|
367
|
-
function getProviderService(id) {
|
|
368
|
-
const item = byId.get(resolveProviderServiceId(id));
|
|
369
|
-
return item && { ...item, credentialModes: [...item.credentialModes], capabilities: [...item.capabilities] };
|
|
370
|
-
}
|
|
371
|
-
function listProviderServices(category) {
|
|
372
|
-
return definitions.filter((item) => !category || item.category === category).map((item) => getProviderService(item.id));
|
|
373
|
-
}
|
|
374
|
-
function listRecognizedAccountServices() {
|
|
375
|
-
return listProviderServices().filter((item) => item.status === "ready" && item.apiImplemented);
|
|
376
|
-
}
|
|
377
|
-
function listProviderServiceChildren(parentId) {
|
|
378
|
-
const id = resolveProviderServiceId(parentId);
|
|
379
|
-
return listProviderServices().filter((service) => service.parentId === id);
|
|
380
|
-
}
|
|
381
|
-
function listProviderServiceTree() {
|
|
382
|
-
const nodes = new Map(listProviderServices().map((service) => [
|
|
383
|
-
service.id,
|
|
384
|
-
{ ...service, children: [] }
|
|
385
|
-
]));
|
|
386
|
-
const roots = [];
|
|
387
|
-
for (const node of nodes.values()) {
|
|
388
|
-
const parent = node.parentId && nodes.get(node.parentId);
|
|
389
|
-
if (parent && parent.id !== node.id) parent.children.push(node);
|
|
390
|
-
else roots.push(node);
|
|
391
|
-
}
|
|
392
|
-
return roots;
|
|
393
|
-
}
|
|
394
|
-
function getProviderServicePath(id) {
|
|
395
|
-
const path = [];
|
|
396
|
-
const visited = /* @__PURE__ */ new Set();
|
|
397
|
-
let current = getProviderService(id);
|
|
398
|
-
while (current && !visited.has(current.id)) {
|
|
399
|
-
visited.add(current.id);
|
|
400
|
-
path.unshift(current);
|
|
401
|
-
current = current.parentId ? getProviderService(current.parentId) : void 0;
|
|
402
|
-
}
|
|
403
|
-
return path;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
export {
|
|
407
|
-
resolveProviderServiceId,
|
|
408
|
-
getProviderService,
|
|
409
|
-
listProviderServices,
|
|
410
|
-
listRecognizedAccountServices,
|
|
411
|
-
listProviderServiceChildren,
|
|
412
|
-
listProviderServiceTree,
|
|
413
|
-
getProviderServicePath
|
|
414
|
-
};
|
|
@@ -2,11 +2,6 @@ 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";
|
|
10
5
|
import {
|
|
11
6
|
createWorkspace,
|
|
12
7
|
deleteWorkspace,
|
|
@@ -20,6 +15,11 @@ import {
|
|
|
20
15
|
readWorkspaceFile,
|
|
21
16
|
writeWorkspaceFile
|
|
22
17
|
} 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,
|
|
@@ -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
|