@ornncompute/cli 1.0.174 → 1.0.176
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/README.md +22 -0
- package/package.json +1 -1
- package/src/admin-command-handlers.mjs +2 -0
- package/src/admin-supplier-networking.mjs +37 -0
- package/src/catalog-shell.mjs +15 -4
- package/src/interaction-runtime.mjs +1 -0
- package/vendor/api-client/orchestrator.js +13 -0
- package/vendor/capabilities/cli.js +947 -753
|
@@ -64,13 +64,13 @@ function clearDriveContents(request, id) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
// ../../packages/api-client/dist/orchestrator/drives.js
|
|
67
|
-
function queryPath(
|
|
67
|
+
function queryPath(path3, query3) {
|
|
68
68
|
const params = new URLSearchParams();
|
|
69
69
|
for (const [key, value] of Object.entries(query3)) {
|
|
70
70
|
if (value !== void 0 && value !== null)
|
|
71
71
|
params.set(key, String(value));
|
|
72
72
|
}
|
|
73
|
-
return `${
|
|
73
|
+
return `${path3}${params.size ? `?${params}` : ""}`;
|
|
74
74
|
}
|
|
75
75
|
function listDrives(request, query3 = {}, signal) {
|
|
76
76
|
return request(queryPath("/v1/orchestrator/drives", query3), {
|
|
@@ -312,12 +312,60 @@ function runRemote(request, body2) {
|
|
|
312
312
|
return request(remoteRunPath, { method: "POST", body: body2 });
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
+
// ../../packages/api-client/dist/orchestrator/supplier-gateways.js
|
|
316
|
+
var path = "/v1/orchestrator/supplier-gateways";
|
|
317
|
+
function createSupplierGateway(request, body2) {
|
|
318
|
+
return request(path, { method: "POST", body: body2 });
|
|
319
|
+
}
|
|
320
|
+
function listSupplierGatewayRegions(request, signal) {
|
|
321
|
+
return request("/v1/orchestrator/supplier-gateway-regions", {
|
|
322
|
+
method: "GET",
|
|
323
|
+
...signal ? { signal } : {}
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
function getSupplierGateway(request, id, signal) {
|
|
327
|
+
return request(`${path}/${encodeURIComponent(id)}`, {
|
|
328
|
+
method: "GET",
|
|
329
|
+
...signal ? { signal } : {}
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
function registerSupplierGateway(request, body2) {
|
|
333
|
+
return request(`${path}/register`, { method: "POST", body: body2 });
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// ../../packages/api-client/dist/orchestrator/supplier-connection-configs.js
|
|
337
|
+
var path2 = "/v1/orchestrator/supplier-connection-configs";
|
|
338
|
+
function listSupplierConnectionConfigs(request, query3 = {}, signal) {
|
|
339
|
+
const params = new URLSearchParams();
|
|
340
|
+
if (query3.organization_id !== void 0)
|
|
341
|
+
params.set("organization_id", query3.organization_id);
|
|
342
|
+
if (query3.gateway_id !== void 0)
|
|
343
|
+
params.set("gateway_id", query3.gateway_id);
|
|
344
|
+
if (query3.after !== void 0)
|
|
345
|
+
params.set("after", query3.after);
|
|
346
|
+
if (query3.limit !== void 0)
|
|
347
|
+
params.set("limit", String(query3.limit));
|
|
348
|
+
return request(`${path2}${params.size ? `?${params}` : ""}`, {
|
|
349
|
+
method: "GET",
|
|
350
|
+
...signal ? { signal } : {}
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
function getSupplierConnectionConfig(request, id, signal) {
|
|
354
|
+
return request(`${path2}/${encodeURIComponent(id)}`, {
|
|
355
|
+
method: "GET",
|
|
356
|
+
...signal ? { signal } : {}
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
function createSupplierConnectionConfig(request, body2) {
|
|
360
|
+
return request(path2, { method: "POST", body: body2 });
|
|
361
|
+
}
|
|
362
|
+
|
|
315
363
|
// ../../packages/api-client/dist/orchestrator/virtual-machines.js
|
|
316
364
|
function rebootVirtualMachine(request, nodeId3, id, body2 = {}) {
|
|
317
365
|
return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId3)}/virtual-machines/${encodeURIComponent(id)}/reboot`, { method: "POST", body: body2 });
|
|
318
366
|
}
|
|
319
367
|
|
|
320
|
-
// ../../packages/capabilities/dist/capabilities/
|
|
368
|
+
// ../../packages/capabilities/dist/capabilities/supplier-networking.js
|
|
321
369
|
import { z } from "zod";
|
|
322
370
|
|
|
323
371
|
// ../../packages/capabilities/dist/names.js
|
|
@@ -346,7 +394,148 @@ function defineCapability(spec) {
|
|
|
346
394
|
};
|
|
347
395
|
}
|
|
348
396
|
|
|
397
|
+
// ../../packages/capabilities/dist/capabilities/supplier-networking.js
|
|
398
|
+
var uuid = z.uuid();
|
|
399
|
+
var name = z.string().trim().min(1).max(128);
|
|
400
|
+
var idInput = z.strictObject({ id: uuid });
|
|
401
|
+
var connectionCreateInput = z.discriminatedUnion("kind", [
|
|
402
|
+
z.strictObject({ organization_id: uuid, name, kind: z.literal("reverse_ssh") }),
|
|
403
|
+
z.strictObject({
|
|
404
|
+
organization_id: uuid,
|
|
405
|
+
name,
|
|
406
|
+
kind: z.literal("netbird"),
|
|
407
|
+
netbird_management_url: z.url(),
|
|
408
|
+
netbird_setup_key_secret_ref: z.string().regex(/^projects\/[^/]+\/secrets\/[^/]+\/versions\/[1-9]\d*$/),
|
|
409
|
+
netbird_version: z.string().trim().min(1)
|
|
410
|
+
})
|
|
411
|
+
]);
|
|
412
|
+
function supplierCommand(spec) {
|
|
413
|
+
const human = `ornn admin suppliers ${spec.command.join(" ")}${spec.usage ? ` ${spec.usage}` : ""}`;
|
|
414
|
+
return defineCapability({
|
|
415
|
+
id: spec.id,
|
|
416
|
+
domain: "fleet",
|
|
417
|
+
roles: ["admin"],
|
|
418
|
+
description: spec.description,
|
|
419
|
+
mutation: spec.write ? "immediate" : "read",
|
|
420
|
+
input: spec.input,
|
|
421
|
+
mcp: false,
|
|
422
|
+
slack: false,
|
|
423
|
+
cli: {
|
|
424
|
+
command: ["admin", "suppliers", ...spec.command],
|
|
425
|
+
vnext: {
|
|
426
|
+
audience: "admin",
|
|
427
|
+
category: "resource",
|
|
428
|
+
outcome: spec.description,
|
|
429
|
+
human,
|
|
430
|
+
automation: `${human} --format json`,
|
|
431
|
+
related: spec.related
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
execute: (ctx, input) => {
|
|
435
|
+
if (ctx.role !== "admin")
|
|
436
|
+
throw new Error("This capability requires the admin role.");
|
|
437
|
+
return spec.execute(ctx, spec.input.parse(input));
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
var supplierNetworkingCapabilities = [
|
|
442
|
+
supplierCommand({
|
|
443
|
+
id: "supplier-connection.list",
|
|
444
|
+
command: ["connections", "list"],
|
|
445
|
+
input: z.strictObject({
|
|
446
|
+
organization_id: uuid.optional(),
|
|
447
|
+
gateway_id: uuid.optional(),
|
|
448
|
+
after: uuid.optional(),
|
|
449
|
+
limit: z.number().int().min(1).max(100).optional()
|
|
450
|
+
}),
|
|
451
|
+
description: "List saved supplier connection configs and their gateway IDs. Pass a returned config ID to enrollment; forward next_cursor unchanged as --cursor.",
|
|
452
|
+
usage: "[--supplier UUID] [--gateway UUID] [--cursor UUID] [--limit 1-100]",
|
|
453
|
+
related: [
|
|
454
|
+
"admin suppliers gateways register",
|
|
455
|
+
"admin suppliers connections show",
|
|
456
|
+
"admin enrollment-tokens create"
|
|
457
|
+
],
|
|
458
|
+
execute: (ctx, input) => listSupplierConnectionConfigs(ctx.fetch, input)
|
|
459
|
+
}),
|
|
460
|
+
supplierCommand({
|
|
461
|
+
id: "supplier-connection.get",
|
|
462
|
+
command: ["connections", "show"],
|
|
463
|
+
input: idInput,
|
|
464
|
+
description: "Read a saved supplier connection config by ID before using it for enrollment.",
|
|
465
|
+
usage: "--id UUID",
|
|
466
|
+
related: ["admin suppliers connections list"],
|
|
467
|
+
execute: (ctx, input) => getSupplierConnectionConfig(ctx.fetch, input.id)
|
|
468
|
+
}),
|
|
469
|
+
supplierCommand({
|
|
470
|
+
id: "supplier-connection.create",
|
|
471
|
+
command: ["connections", "create"],
|
|
472
|
+
input: connectionCreateInput,
|
|
473
|
+
write: true,
|
|
474
|
+
description: "Save a NetBird or reverse-SSH connection config without provisioning a gateway. For an existing jump host, use gateways register instead. NetBird takes a Secret Manager version reference, never an inline setup key.",
|
|
475
|
+
usage: "--supplier UUID --name NAME --kind netbird|reverse_ssh [--netbird-management-url URL --netbird-setup-key-secret-ref REF --netbird-version VERSION]",
|
|
476
|
+
related: ["admin suppliers gateways register", "admin suppliers gateways create"],
|
|
477
|
+
execute: (ctx, input) => createSupplierConnectionConfig(ctx.fetch, input)
|
|
478
|
+
}),
|
|
479
|
+
supplierCommand({
|
|
480
|
+
id: "supplier-gateway.register",
|
|
481
|
+
command: ["gateways", "register"],
|
|
482
|
+
write: true,
|
|
483
|
+
input: z.strictObject({
|
|
484
|
+
organization_id: uuid,
|
|
485
|
+
name,
|
|
486
|
+
address: z.string().trim().min(1).max(253),
|
|
487
|
+
ssh_port: z.number().int().min(1).max(65535).default(22),
|
|
488
|
+
ssh_username: z.string().trim().min(1).max(32).default("admin")
|
|
489
|
+
}),
|
|
490
|
+
description: "Register an existing Supplier Jump Host and its connection config for enrollment. Does not provision a VM. Then list connections with --gateway using the returned gateway ID to obtain the enrollment connection ID. If a response is lost, inspect saved connections by supplier before retrying.",
|
|
491
|
+
usage: "--supplier UUID --name NAME --address IP_OR_HOSTNAME [--ssh-port PORT] [--ssh-username USER]",
|
|
492
|
+
related: [
|
|
493
|
+
"admin suppliers connections list",
|
|
494
|
+
"admin enrollment-tokens create",
|
|
495
|
+
"admin nodes enroll"
|
|
496
|
+
],
|
|
497
|
+
execute: (ctx, input) => registerSupplierGateway(ctx.fetch, input)
|
|
498
|
+
}),
|
|
499
|
+
supplierCommand({
|
|
500
|
+
id: "supplier-gateway.regions",
|
|
501
|
+
command: ["gateways", "regions"],
|
|
502
|
+
input: z.strictObject({}),
|
|
503
|
+
description: "List supported gateway provisioning regions and the environment default.",
|
|
504
|
+
usage: "",
|
|
505
|
+
related: ["admin suppliers gateways create"],
|
|
506
|
+
execute: (ctx) => listSupplierGatewayRegions(ctx.fetch)
|
|
507
|
+
}),
|
|
508
|
+
supplierCommand({
|
|
509
|
+
id: "supplier-gateway.create",
|
|
510
|
+
command: ["gateways", "create"],
|
|
511
|
+
write: true,
|
|
512
|
+
input: z.strictObject({
|
|
513
|
+
connection_config_id: uuid,
|
|
514
|
+
region: z.string().trim().min(1).optional(),
|
|
515
|
+
retry: z.boolean().optional()
|
|
516
|
+
}),
|
|
517
|
+
description: "Provision a billable Fabric gateway for a saved NetBird or reverse-SSH config. Choose a supported region for creation; --retry explicitly retries a failed attempt using its saved placement. Existing supplier jump hosts use gateways register.",
|
|
518
|
+
usage: "--connection-config-id UUID [--region REGION] [--retry]",
|
|
519
|
+
related: [
|
|
520
|
+
"admin suppliers gateways regions",
|
|
521
|
+
"admin suppliers gateways show",
|
|
522
|
+
"admin suppliers gateways register"
|
|
523
|
+
],
|
|
524
|
+
execute: (ctx, input) => createSupplierGateway(ctx.fetch, input)
|
|
525
|
+
}),
|
|
526
|
+
supplierCommand({
|
|
527
|
+
id: "supplier-gateway.get",
|
|
528
|
+
command: ["gateways", "show"],
|
|
529
|
+
input: idInput,
|
|
530
|
+
description: "Read a supplier gateway's saved endpoint and creation status. Registration or creation acceptance does not verify node reachability.",
|
|
531
|
+
usage: "--id UUID",
|
|
532
|
+
related: ["admin suppliers gateways create", "admin suppliers connections list"],
|
|
533
|
+
execute: (ctx, input) => getSupplierGateway(ctx.fetch, input.id)
|
|
534
|
+
})
|
|
535
|
+
];
|
|
536
|
+
|
|
349
537
|
// ../../packages/capabilities/dist/capabilities/admin-ssh.js
|
|
538
|
+
import { z as z2 } from "zod";
|
|
350
539
|
var adminSshCapability = defineCapability({
|
|
351
540
|
id: "node.ssh",
|
|
352
541
|
domain: "fleet",
|
|
@@ -366,14 +555,14 @@ var adminSshCapability = defineCapability({
|
|
|
366
555
|
automation: "Requires an interactive terminal."
|
|
367
556
|
}
|
|
368
557
|
},
|
|
369
|
-
input:
|
|
558
|
+
input: z2.object({ node_id: z2.string().uuid(), public_key: z2.string().min(1) }),
|
|
370
559
|
execute: (ctx, input) => issueNodeSshCertificate(ctx.fetch, input.node_id, {
|
|
371
560
|
public_key: input.public_key
|
|
372
561
|
})
|
|
373
562
|
});
|
|
374
563
|
|
|
375
564
|
// ../../packages/capabilities/dist/capabilities/admin.js
|
|
376
|
-
import { z as
|
|
565
|
+
import { z as z3 } from "zod";
|
|
377
566
|
var ADMIN_CLI_ROOTS = [
|
|
378
567
|
{ name: "users" },
|
|
379
568
|
{ name: "organizations" },
|
|
@@ -385,7 +574,7 @@ var ADMIN_CLI_ROOTS = [
|
|
|
385
574
|
{ name: "reservations" },
|
|
386
575
|
{ name: "ssh" }
|
|
387
576
|
];
|
|
388
|
-
var nodeInput =
|
|
577
|
+
var nodeInput = z3.object({ node_id: z3.string().min(1) });
|
|
389
578
|
var adminNodeHealthCapability = defineCapability({
|
|
390
579
|
id: "nodes.health",
|
|
391
580
|
domain: "fleet",
|
|
@@ -407,7 +596,7 @@ var adminNodeHealthCapability = defineCapability({
|
|
|
407
596
|
},
|
|
408
597
|
mcp: { name: "node_show" },
|
|
409
598
|
slack: false,
|
|
410
|
-
input:
|
|
599
|
+
input: z3.object({ nodeId: z3.string() }),
|
|
411
600
|
execute: async (ctx, input) => {
|
|
412
601
|
return getNode(ctx.fetch, input.nodeId);
|
|
413
602
|
}
|
|
@@ -648,7 +837,7 @@ function listOffers(request, filter = {}, signal) {
|
|
|
648
837
|
}
|
|
649
838
|
|
|
650
839
|
// ../../packages/capabilities/dist/capabilities/admin-capacity-reservations.js
|
|
651
|
-
import { z as
|
|
840
|
+
import { z as z6 } from "zod";
|
|
652
841
|
|
|
653
842
|
// ../../packages/capabilities/dist/capabilities/staff-shared.js
|
|
654
843
|
function statusOf(error) {
|
|
@@ -676,8 +865,8 @@ async function locateRegion(fetch, place) {
|
|
|
676
865
|
const region2 = typeof located?.facility_slug === "string" ? located.facility_slug.trim() : "";
|
|
677
866
|
if (!region2)
|
|
678
867
|
return null;
|
|
679
|
-
const
|
|
680
|
-
return { region: region2, name };
|
|
868
|
+
const name2 = typeof located?.region === "string" && located.region.trim() ? located.region.trim() : region2;
|
|
869
|
+
return { region: region2, name: name2 };
|
|
681
870
|
}
|
|
682
871
|
function unplacedLocation(place) {
|
|
683
872
|
return `Ornn could not place "${place}". Give a state, city, address, or catalog region such as us-west-3.`;
|
|
@@ -685,7 +874,7 @@ function unplacedLocation(place) {
|
|
|
685
874
|
var LOCATION_LOOKUP_UNAVAILABLE = "Ornn's location lookup is unavailable right now. Keep this location and try again in a moment.";
|
|
686
875
|
|
|
687
876
|
// ../../packages/capabilities/dist/capabilities/native-listing.js
|
|
688
|
-
import { z as
|
|
877
|
+
import { z as z5 } from "zod";
|
|
689
878
|
|
|
690
879
|
// ../../packages/capabilities/dist/compute-units.js
|
|
691
880
|
var CPU_SLUG = "cpu";
|
|
@@ -701,10 +890,10 @@ function unitsPerNode(listing) {
|
|
|
701
890
|
}
|
|
702
891
|
|
|
703
892
|
// ../../packages/capabilities/dist/capabilities/market-shared.js
|
|
704
|
-
import { z as
|
|
705
|
-
var positionals =
|
|
706
|
-
var microUsd =
|
|
707
|
-
var flag =
|
|
893
|
+
import { z as z4 } from "zod";
|
|
894
|
+
var positionals = z4.array(z4.string()).max(0).default([]);
|
|
895
|
+
var microUsd = z4.coerce.number().int().positive();
|
|
896
|
+
var flag = z4.preprocess((value) => value === "true" ? true : value === "false" ? false : value, z4.boolean());
|
|
708
897
|
function resolveIdempotencyKey(ctx, supplied) {
|
|
709
898
|
return ctx.cli?.interaction?.idempotencyKey(supplied) ?? supplied?.trim();
|
|
710
899
|
}
|
|
@@ -729,18 +918,18 @@ function microUsdLabel(value) {
|
|
|
729
918
|
|
|
730
919
|
// ../../packages/capabilities/dist/capabilities/native-listing.js
|
|
731
920
|
var nativeTermFields = {
|
|
732
|
-
network:
|
|
733
|
-
type:
|
|
734
|
-
minDurationHours:
|
|
735
|
-
maxDurationHours:
|
|
736
|
-
pricePerGpuHourMicroUsd:
|
|
737
|
-
downPaymentCents:
|
|
921
|
+
network: z5.string().refine((value) => new TextEncoder().encode(value).length <= 1024, "Network must be at most 1024 UTF-8 bytes.").nullable().optional().describe("Reserved network and interconnect for this choice. Immutable per term ID; create a new term for a different network."),
|
|
922
|
+
type: z5.enum(["reserved", "spot", "on-demand"]).nullable().optional(),
|
|
923
|
+
minDurationHours: z5.coerce.number().nonnegative(),
|
|
924
|
+
maxDurationHours: z5.coerce.number().nonnegative(),
|
|
925
|
+
pricePerGpuHourMicroUsd: z5.coerce.number().int().positive().describe("Micro-USD per unit-hour: per GPU, or per vCPU on CPU capacity."),
|
|
926
|
+
downPaymentCents: z5.coerce.number().int().nonnegative().nullable().optional(),
|
|
738
927
|
renewable: flag,
|
|
739
|
-
preemptNoticeSeconds:
|
|
928
|
+
preemptNoticeSeconds: z5.coerce.number().int().nonnegative().optional()
|
|
740
929
|
};
|
|
741
|
-
var nativeTermInput =
|
|
930
|
+
var nativeTermInput = z5.object(nativeTermFields).strict();
|
|
742
931
|
function jsonArray(item) {
|
|
743
|
-
return
|
|
932
|
+
return z5.preprocess((value) => {
|
|
744
933
|
if (typeof value !== "string")
|
|
745
934
|
return value;
|
|
746
935
|
try {
|
|
@@ -748,36 +937,36 @@ function jsonArray(item) {
|
|
|
748
937
|
} catch {
|
|
749
938
|
return value;
|
|
750
939
|
}
|
|
751
|
-
},
|
|
940
|
+
}, z5.array(item));
|
|
752
941
|
}
|
|
753
942
|
var nativeTermsInput = jsonArray(nativeTermInput);
|
|
754
943
|
var listingWriteControls = {
|
|
755
|
-
confirm:
|
|
756
|
-
idempotencyKey:
|
|
944
|
+
confirm: z5.boolean().optional(),
|
|
945
|
+
idempotencyKey: z5.string().min(1).max(200)
|
|
757
946
|
};
|
|
758
|
-
var listingLocation =
|
|
947
|
+
var listingLocation = z5.string().trim().min(1).max(256).optional().describe("Instead of facilityId: a state, city, address, or catalog region such as us-west-3. Ornn places it in a catalog region and uses the supplier's facility there.");
|
|
759
948
|
var CPU_CORES_MESSAGE = "CPU capacity is sold in whole cores (2 vCPUs each).";
|
|
760
|
-
var coresPerNode =
|
|
761
|
-
var nativeListingCreateInput =
|
|
762
|
-
organizationId:
|
|
763
|
-
kind:
|
|
764
|
-
gpuSlug:
|
|
765
|
-
gpusPerNode:
|
|
949
|
+
var coresPerNode = z5.coerce.number().int(CPU_CORES_MESSAGE).min(1, CPU_CORES_MESSAGE).nullable().optional().describe("CPU capacity only: cores per node (2 vCPUs each), priced per vCPU-hour.");
|
|
950
|
+
var nativeListingCreateInput = z5.object({
|
|
951
|
+
organizationId: z5.string().uuid().nullable().optional(),
|
|
952
|
+
kind: z5.enum(["primary", "secondary"]).default("primary"),
|
|
953
|
+
gpuSlug: z5.string().min(1).nullable().describe('Catalog GPU slug; null or "cpu" lists CPU capacity sold per vCPU-hour.'),
|
|
954
|
+
gpusPerNode: z5.coerce.number().int().nonnegative().optional().describe("GPUs per node; 0 or omitted on CPU capacity."),
|
|
766
955
|
coresPerNode,
|
|
767
|
-
capacityNodeCount:
|
|
768
|
-
nodeIds: jsonArray(
|
|
769
|
-
facilityId:
|
|
956
|
+
capacityNodeCount: z5.coerce.number().int().positive().optional().describe("Defaults to the number of nodeIds."),
|
|
957
|
+
nodeIds: jsonArray(z5.string().uuid()).optional(),
|
|
958
|
+
facilityId: z5.string().uuid().optional(),
|
|
770
959
|
location: listingLocation,
|
|
771
|
-
provisioningType:
|
|
772
|
-
state:
|
|
773
|
-
availableAt:
|
|
774
|
-
availableUntil:
|
|
775
|
-
daysToRfs:
|
|
776
|
-
cpu:
|
|
777
|
-
ram:
|
|
778
|
-
storage:
|
|
779
|
-
fabricType:
|
|
780
|
-
internet:
|
|
960
|
+
provisioningType: z5.enum(["bare-metal", "virtual-machine"]),
|
|
961
|
+
state: z5.enum(["draft", "available"]),
|
|
962
|
+
availableAt: z5.iso.datetime({ offset: true }).nullable().optional().describe("Primary capacity takes availableAt and availableUntil, or daysToRfs, not both."),
|
|
963
|
+
availableUntil: z5.iso.datetime({ offset: true }).nullable().optional(),
|
|
964
|
+
daysToRfs: z5.coerce.number().int().nonnegative().optional().describe("Days until ready for service; 0 when ready now. Required unless both dates are set."),
|
|
965
|
+
cpu: z5.string().optional(),
|
|
966
|
+
ram: z5.string().optional(),
|
|
967
|
+
storage: z5.string().optional(),
|
|
968
|
+
fabricType: z5.string().optional(),
|
|
969
|
+
internet: z5.string().optional(),
|
|
781
970
|
terms: nativeTermsInput,
|
|
782
971
|
...listingWriteControls
|
|
783
972
|
}).strict().refine((value) => Boolean(value.facilityId) !== Boolean(value.location), {
|
|
@@ -816,22 +1005,22 @@ var nativeListingCreateInput = z4.object({
|
|
|
816
1005
|
});
|
|
817
1006
|
});
|
|
818
1007
|
var nativeListingUpdateFields = {
|
|
819
|
-
state:
|
|
820
|
-
nodeCount:
|
|
821
|
-
gpuSlug:
|
|
822
|
-
gpusPerNode:
|
|
1008
|
+
state: z5.enum(["draft", "available", "delisted"]).optional(),
|
|
1009
|
+
nodeCount: z5.coerce.number().int().positive().optional(),
|
|
1010
|
+
gpuSlug: z5.string().min(1).nullable().optional().describe('Catalog GPU slug; null or "cpu" for CPU capacity.'),
|
|
1011
|
+
gpusPerNode: z5.coerce.number().int().nonnegative().optional(),
|
|
823
1012
|
coresPerNode,
|
|
824
|
-
facilityId:
|
|
1013
|
+
facilityId: z5.string().uuid().optional(),
|
|
825
1014
|
location: listingLocation,
|
|
826
|
-
provisioningType:
|
|
827
|
-
availableAt:
|
|
828
|
-
availableUntil:
|
|
829
|
-
daysToRfs:
|
|
830
|
-
cpu:
|
|
831
|
-
ram:
|
|
832
|
-
storage:
|
|
833
|
-
fabricType:
|
|
834
|
-
internet:
|
|
1015
|
+
provisioningType: z5.enum(["bare-metal", "virtual-machine"]).optional(),
|
|
1016
|
+
availableAt: z5.iso.datetime({ offset: true }).optional(),
|
|
1017
|
+
availableUntil: z5.iso.datetime({ offset: true }).nullable().optional(),
|
|
1018
|
+
daysToRfs: z5.coerce.number().int().nonnegative().optional(),
|
|
1019
|
+
cpu: z5.string().optional(),
|
|
1020
|
+
ram: z5.string().optional(),
|
|
1021
|
+
storage: z5.string().optional(),
|
|
1022
|
+
fabricType: z5.string().optional(),
|
|
1023
|
+
internet: z5.string().optional()
|
|
835
1024
|
};
|
|
836
1025
|
|
|
837
1026
|
// ../../packages/capabilities/dist/capabilities/admin-capacity-reservations.js
|
|
@@ -872,16 +1061,16 @@ var adminCapacityOffersCreateCapability = defineCapability({
|
|
|
872
1061
|
return createCapacityListing(ctx.fetch, { ...body2, facilityId }, resolveIdempotencyKey(ctx, idempotencyKey));
|
|
873
1062
|
}
|
|
874
1063
|
});
|
|
875
|
-
var wholeSecondInstant =
|
|
876
|
-
var reservationCreateInput =
|
|
877
|
-
organizationId:
|
|
878
|
-
listingId:
|
|
879
|
-
listingTermId:
|
|
880
|
-
nodes:
|
|
1064
|
+
var wholeSecondInstant = z6.iso.datetime({ offset: true }).refine((value) => !/\.\d*[1-9]/.test(value), "Use a time in whole seconds.");
|
|
1065
|
+
var reservationCreateInput = z6.object({
|
|
1066
|
+
organizationId: z6.string().uuid().describe("The customer organization the window is booked for."),
|
|
1067
|
+
listingId: z6.string().uuid().describe("The listing's capacityListingId. Staff may book any available listing."),
|
|
1068
|
+
listingTermId: z6.string().uuid().describe("The listingTermsId of a non-renewable Reserved term on that listing."),
|
|
1069
|
+
nodes: z6.number().int().positive().max(2147483647).describe("Whole nodes to book."),
|
|
881
1070
|
startsAt: wholeSecondInstant.describe("RFC 3339 start of the window in whole seconds, no more than five minutes ago."),
|
|
882
1071
|
endsAt: wholeSecondInstant.describe("RFC 3339 end of the window in whole seconds, at least an hour after the start and within the term's duration range."),
|
|
883
1072
|
pricePerGpuHourMicroUsd: microUsd.describe("The term's price in micro-USD per GPU-hour (per vCPU-hour on CPU capacity). A changed price refuses the booking."),
|
|
884
|
-
idempotencyKey:
|
|
1073
|
+
idempotencyKey: z6.string().trim().min(1).max(200).describe("Reuse this key when retrying the same booking.")
|
|
885
1074
|
});
|
|
886
1075
|
var adminReservationsCreateCapability = defineCapability({
|
|
887
1076
|
id: "reservations.create",
|
|
@@ -909,7 +1098,7 @@ var adminCapacityReservationCapabilities = [
|
|
|
909
1098
|
];
|
|
910
1099
|
|
|
911
1100
|
// ../../packages/capabilities/dist/capabilities/commerce-market.js
|
|
912
|
-
import { z as
|
|
1101
|
+
import { z as z7 } from "zod";
|
|
913
1102
|
function help(outcome, human, automation, related, order, acceptedReferences = []) {
|
|
914
1103
|
return {
|
|
915
1104
|
arguments: "semantic",
|
|
@@ -923,15 +1112,15 @@ function help(outcome, human, automation, related, order, acceptedReferences = [
|
|
|
923
1112
|
order
|
|
924
1113
|
};
|
|
925
1114
|
}
|
|
926
|
-
var pageLimit =
|
|
927
|
-
var listingsListInput =
|
|
1115
|
+
var pageLimit = z7.coerce.number().int().min(1).max(200).optional();
|
|
1116
|
+
var listingsListInput = z7.object({
|
|
928
1117
|
$positionals: positionals,
|
|
929
|
-
kind:
|
|
930
|
-
state:
|
|
931
|
-
sourceReservationId:
|
|
932
|
-
sourceListingId:
|
|
933
|
-
limit:
|
|
934
|
-
cursor:
|
|
1118
|
+
kind: z7.enum(["primary", "secondary", "on_demand"]).optional(),
|
|
1119
|
+
state: z7.enum(["draft", "available", "held", "sold", "delisted"]).optional(),
|
|
1120
|
+
sourceReservationId: z7.string().uuid().optional(),
|
|
1121
|
+
sourceListingId: z7.string().uuid().optional(),
|
|
1122
|
+
limit: z7.coerce.number().int().min(1).max(100).optional(),
|
|
1123
|
+
cursor: z7.string().min(1).optional()
|
|
935
1124
|
});
|
|
936
1125
|
var listingsListCapability = defineCapability({
|
|
937
1126
|
id: "listings.list",
|
|
@@ -957,9 +1146,9 @@ var listingsListCapability = defineCapability({
|
|
|
957
1146
|
});
|
|
958
1147
|
}
|
|
959
1148
|
});
|
|
960
|
-
var listingShowInput =
|
|
1149
|
+
var listingShowInput = z7.object({
|
|
961
1150
|
$positionals: positionals,
|
|
962
|
-
listingId:
|
|
1151
|
+
listingId: z7.string().uuid()
|
|
963
1152
|
});
|
|
964
1153
|
var listingShowCapability = defineCapability({
|
|
965
1154
|
id: "listings.show",
|
|
@@ -995,11 +1184,11 @@ var listingTermsCapability = defineCapability({
|
|
|
995
1184
|
return listCapacityTerms(ctx.fetch, parsed.listingId);
|
|
996
1185
|
}
|
|
997
1186
|
});
|
|
998
|
-
var listingAvailabilityInput =
|
|
1187
|
+
var listingAvailabilityInput = z7.object({
|
|
999
1188
|
$positionals: positionals,
|
|
1000
|
-
listingId:
|
|
1001
|
-
from:
|
|
1002
|
-
to:
|
|
1189
|
+
listingId: z7.string().uuid(),
|
|
1190
|
+
from: z7.iso.datetime({ offset: true }).optional().describe("RFC 3339 start of the range to read. Defaults to now or the listing's start."),
|
|
1191
|
+
to: z7.iso.datetime({ offset: true }).optional().describe("RFC 3339 end of the range to read. Defaults to the listing's end.")
|
|
1003
1192
|
});
|
|
1004
1193
|
var listingAvailabilityCapability = defineCapability({
|
|
1005
1194
|
id: "listings.availability",
|
|
@@ -1021,16 +1210,16 @@ var listingAvailabilityCapability = defineCapability({
|
|
|
1021
1210
|
});
|
|
1022
1211
|
}
|
|
1023
1212
|
});
|
|
1024
|
-
var listingRelistInput =
|
|
1213
|
+
var listingRelistInput = z7.strictObject({
|
|
1025
1214
|
$positionals: positionals,
|
|
1026
|
-
reservationId:
|
|
1027
|
-
startsAt:
|
|
1028
|
-
endsAt:
|
|
1029
|
-
nodeCount:
|
|
1215
|
+
reservationId: z7.string().uuid(),
|
|
1216
|
+
startsAt: z7.iso.datetime({ offset: true }),
|
|
1217
|
+
endsAt: z7.iso.datetime({ offset: true }),
|
|
1218
|
+
nodeCount: z7.coerce.number().int().positive(),
|
|
1030
1219
|
terms: nativeTermsInput,
|
|
1031
|
-
idempotencyKey:
|
|
1032
|
-
confirm:
|
|
1033
|
-
yes:
|
|
1220
|
+
idempotencyKey: z7.string().min(1).max(200).optional(),
|
|
1221
|
+
confirm: z7.boolean().optional(),
|
|
1222
|
+
yes: z7.boolean().optional()
|
|
1034
1223
|
});
|
|
1035
1224
|
var listingRelistCapability = defineCapability({
|
|
1036
1225
|
id: "listings.relist",
|
|
@@ -1055,10 +1244,10 @@ var listingRelistCapability = defineCapability({
|
|
|
1055
1244
|
return relistReservation(ctx.fetch, reservationId, body2, resolveIdempotencyKey(ctx, idempotencyKey));
|
|
1056
1245
|
}
|
|
1057
1246
|
});
|
|
1058
|
-
var listingUpdateInput =
|
|
1247
|
+
var listingUpdateInput = z7.object({
|
|
1059
1248
|
$positionals: positionals,
|
|
1060
|
-
listingId:
|
|
1061
|
-
listingTermsId:
|
|
1249
|
+
listingId: z7.string().uuid(),
|
|
1250
|
+
listingTermsId: z7.string().uuid(),
|
|
1062
1251
|
...nativeTermFields,
|
|
1063
1252
|
...listingWriteControls
|
|
1064
1253
|
}).strict();
|
|
@@ -1085,10 +1274,10 @@ var listingUpdateCapability = defineCapability({
|
|
|
1085
1274
|
return editCapacityTerms(ctx.fetch, listingId, listingTermsId, body2, resolveIdempotencyKey(ctx, idempotencyKey));
|
|
1086
1275
|
}
|
|
1087
1276
|
});
|
|
1088
|
-
var listingDelistInput =
|
|
1277
|
+
var listingDelistInput = z7.object({
|
|
1089
1278
|
$positionals: positionals,
|
|
1090
|
-
listingId:
|
|
1091
|
-
confirm:
|
|
1279
|
+
listingId: z7.string().uuid(),
|
|
1280
|
+
confirm: z7.boolean().optional()
|
|
1092
1281
|
});
|
|
1093
1282
|
var listingDelistCapability = defineCapability({
|
|
1094
1283
|
id: "listings.delist",
|
|
@@ -1116,10 +1305,10 @@ var listingDelistCapability = defineCapability({
|
|
|
1116
1305
|
return delistCapacityListing(ctx.fetch, parsed.listingId);
|
|
1117
1306
|
}
|
|
1118
1307
|
});
|
|
1119
|
-
var reservationsListInput =
|
|
1308
|
+
var reservationsListInput = z7.object({
|
|
1120
1309
|
$positionals: positionals,
|
|
1121
|
-
kind:
|
|
1122
|
-
status:
|
|
1310
|
+
kind: z7.enum(["schedule", "spot"]).optional(),
|
|
1311
|
+
status: z7.enum([
|
|
1123
1312
|
"awaiting_down_payment",
|
|
1124
1313
|
"awaiting_payment",
|
|
1125
1314
|
"confirmed",
|
|
@@ -1127,9 +1316,9 @@ var reservationsListInput = z6.object({
|
|
|
1127
1316
|
"completed",
|
|
1128
1317
|
"cancelled"
|
|
1129
1318
|
]).optional(),
|
|
1130
|
-
listingId:
|
|
1319
|
+
listingId: z7.string().uuid().optional().describe("Trades on a listing you own."),
|
|
1131
1320
|
limit: pageLimit,
|
|
1132
|
-
cursor:
|
|
1321
|
+
cursor: z7.string().min(1).optional()
|
|
1133
1322
|
});
|
|
1134
1323
|
var reservationsListCapability = defineCapability({
|
|
1135
1324
|
id: "reservations.list",
|
|
@@ -1149,9 +1338,9 @@ var reservationsListCapability = defineCapability({
|
|
|
1149
1338
|
return listReservations(ctx.fetch, filter);
|
|
1150
1339
|
}
|
|
1151
1340
|
});
|
|
1152
|
-
var reservationLookupInput =
|
|
1341
|
+
var reservationLookupInput = z7.object({
|
|
1153
1342
|
$positionals: positionals,
|
|
1154
|
-
reservationId:
|
|
1343
|
+
reservationId: z7.string().uuid()
|
|
1155
1344
|
});
|
|
1156
1345
|
var reservationsShowCapability = defineCapability({
|
|
1157
1346
|
id: "reservations.show",
|
|
@@ -1187,16 +1376,16 @@ var reservationInvoicesCapability = defineCapability({
|
|
|
1187
1376
|
return listReservationInvoices(ctx.fetch, parsed.reservationId);
|
|
1188
1377
|
}
|
|
1189
1378
|
});
|
|
1190
|
-
var reservationPurchaseInput =
|
|
1379
|
+
var reservationPurchaseInput = z7.object({
|
|
1191
1380
|
$positionals: positionals,
|
|
1192
|
-
listingId:
|
|
1193
|
-
listingTermId:
|
|
1194
|
-
nodeCount:
|
|
1195
|
-
startsAt:
|
|
1196
|
-
endsAt:
|
|
1381
|
+
listingId: z7.string().uuid().describe("The relisted (secondary) listing's capacityListingId, from listings.list."),
|
|
1382
|
+
listingTermId: z7.string().uuid().describe("The listingTermsId of the listing's term, from listings.terms."),
|
|
1383
|
+
nodeCount: z7.coerce.number().int().positive().optional().describe("Whole nodes to book for the window. Defaults to every node the listing sells."),
|
|
1384
|
+
startsAt: z7.iso.datetime({ offset: true }).describe("RFC 3339 start of the window, in whole seconds, inside the listing and not in the past."),
|
|
1385
|
+
endsAt: z7.iso.datetime({ offset: true }).describe("RFC 3339 end of the window, at least an hour after the start and within the term's duration range, or at the listing's end."),
|
|
1197
1386
|
pricePerGpuHourMicroUsd: microUsd.describe("The term's price from listings.terms, in micro-USD per GPU-hour (per vCPU-hour on CPU capacity). A changed price refuses the purchase."),
|
|
1198
|
-
idempotencyKey:
|
|
1199
|
-
confirm:
|
|
1387
|
+
idempotencyKey: z7.string().min(1).max(200).optional(),
|
|
1388
|
+
confirm: z7.boolean().optional()
|
|
1200
1389
|
});
|
|
1201
1390
|
var reservationPurchaseCapability = defineCapability({
|
|
1202
1391
|
id: "reservations.purchase",
|
|
@@ -1254,7 +1443,7 @@ var commerceMarketCapabilities = [
|
|
|
1254
1443
|
];
|
|
1255
1444
|
|
|
1256
1445
|
// ../../packages/capabilities/dist/capabilities/markets.js
|
|
1257
|
-
import { z as
|
|
1446
|
+
import { z as z8 } from "zod";
|
|
1258
1447
|
|
|
1259
1448
|
// ../../packages/capabilities/dist/spec-catalog.js
|
|
1260
1449
|
var UNRESOLVED_CATALOG_HINT = "Leave this field empty. Only dictionary.csv product names are allowed. Do not ask to add spec-sheet text to the dictionary.";
|
|
@@ -1375,10 +1564,10 @@ function projectCatalogTerms(terms, kind) {
|
|
|
1375
1564
|
}
|
|
1376
1565
|
|
|
1377
1566
|
// ../../packages/capabilities/dist/capabilities/markets.js
|
|
1378
|
-
var saleType =
|
|
1379
|
-
var region =
|
|
1380
|
-
var nodes =
|
|
1381
|
-
var bookSlug =
|
|
1567
|
+
var saleType = z8.enum(["spot", "on-demand"]).optional().describe("spot (the default) yields to scheduled bookings; on-demand runs until stopped or the listing ends.");
|
|
1568
|
+
var region = z8.string().min(1).optional().describe("A region slug, for example us-east-11. Omit for every region.");
|
|
1569
|
+
var nodes = z8.coerce.number().int().min(1).describe("Nodes to buy, each the GPUs (or vCPUs on the cpu book) of one whole machine.");
|
|
1570
|
+
var bookSlug = z8.string().min(1).describe('Catalog GPU slug, for example nvidia_h100_sxm, or "cpu" for CPU capacity sold per vCPU-hour.');
|
|
1382
1571
|
function help2(outcome, human, automation, related, order, acceptedReferences = []) {
|
|
1383
1572
|
return {
|
|
1384
1573
|
arguments: "semantic",
|
|
@@ -1392,11 +1581,11 @@ function help2(outcome, human, automation, related, order, acceptedReferences =
|
|
|
1392
1581
|
order
|
|
1393
1582
|
};
|
|
1394
1583
|
}
|
|
1395
|
-
var marketBooksInput =
|
|
1584
|
+
var marketBooksInput = z8.object({
|
|
1396
1585
|
$positionals: positionals,
|
|
1397
|
-
gpuSlug:
|
|
1586
|
+
gpuSlug: z8.string().min(1).optional().describe('Only this catalog GPU slug, or "cpu".'),
|
|
1398
1587
|
saleType,
|
|
1399
|
-
region:
|
|
1588
|
+
region: z8.string().min(1).optional().describe("Only this region slug, or any for the books of bids in any region.")
|
|
1400
1589
|
});
|
|
1401
1590
|
var marketBooksCapability = defineCapability({
|
|
1402
1591
|
id: "market.books",
|
|
@@ -1415,7 +1604,7 @@ var marketBooksCapability = defineCapability({
|
|
|
1415
1604
|
return listOrderBooks(ctx.fetch, parsed);
|
|
1416
1605
|
}
|
|
1417
1606
|
});
|
|
1418
|
-
var marketBookInput =
|
|
1607
|
+
var marketBookInput = z8.object({
|
|
1419
1608
|
$positionals: positionals,
|
|
1420
1609
|
gpuSlug: bookSlug,
|
|
1421
1610
|
saleType,
|
|
@@ -1455,11 +1644,11 @@ var marketTradesCapability = defineCapability({
|
|
|
1455
1644
|
return listTrades(ctx.fetch, parsed.gpuSlug, parsed);
|
|
1456
1645
|
}
|
|
1457
1646
|
});
|
|
1458
|
-
var marketQuoteInput =
|
|
1647
|
+
var marketQuoteInput = z8.object({
|
|
1459
1648
|
$positionals: positionals,
|
|
1460
1649
|
gpuSlug: bookSlug,
|
|
1461
1650
|
saleType,
|
|
1462
|
-
region:
|
|
1651
|
+
region: z8.string().min(1).optional().describe("A region with an order book (see market books). Omit for any region."),
|
|
1463
1652
|
nodes
|
|
1464
1653
|
});
|
|
1465
1654
|
var marketQuoteCapability = defineCapability({
|
|
@@ -1479,15 +1668,15 @@ var marketQuoteCapability = defineCapability({
|
|
|
1479
1668
|
return quoteBid(ctx.fetch, { ...parsed, orderType: "market" });
|
|
1480
1669
|
}
|
|
1481
1670
|
});
|
|
1482
|
-
var marketBidInput =
|
|
1671
|
+
var marketBidInput = z8.object({
|
|
1483
1672
|
$positionals: positionals,
|
|
1484
1673
|
gpuSlug: bookSlug,
|
|
1485
1674
|
saleType,
|
|
1486
|
-
region:
|
|
1675
|
+
region: z8.string().min(1).optional().describe("A region with an order book (see market books), for example us-east-11. Omit to fill in any region."),
|
|
1487
1676
|
nodes,
|
|
1488
|
-
diskId:
|
|
1489
|
-
idempotencyKey:
|
|
1490
|
-
confirm:
|
|
1677
|
+
diskId: z8.string().uuid().optional().describe("The disk every VM boots. Omit to boot your newest disk, else Ornn's newest."),
|
|
1678
|
+
idempotencyKey: z8.string().min(1).max(200).optional(),
|
|
1679
|
+
confirm: z8.boolean().optional()
|
|
1491
1680
|
});
|
|
1492
1681
|
var marketBidCapability = defineCapability({
|
|
1493
1682
|
id: "market.bid",
|
|
@@ -1524,7 +1713,7 @@ var marketBidCapability = defineCapability({
|
|
|
1524
1713
|
return placeBid(ctx.fetch, body2, resolveIdempotencyKey(ctx, parsed.idempotencyKey));
|
|
1525
1714
|
}
|
|
1526
1715
|
});
|
|
1527
|
-
var marketOrdersInput =
|
|
1716
|
+
var marketOrdersInput = z8.object({ $positionals: positionals });
|
|
1528
1717
|
var marketOrdersCapability = defineCapability({
|
|
1529
1718
|
id: "market.orders",
|
|
1530
1719
|
domain: "markets",
|
|
@@ -1539,10 +1728,10 @@ var marketOrdersCapability = defineCapability({
|
|
|
1539
1728
|
slack: false,
|
|
1540
1729
|
execute: async (ctx) => listOrders(ctx.fetch)
|
|
1541
1730
|
});
|
|
1542
|
-
var marketCancelInput =
|
|
1731
|
+
var marketCancelInput = z8.object({
|
|
1543
1732
|
$positionals: positionals,
|
|
1544
|
-
orderId:
|
|
1545
|
-
confirm:
|
|
1733
|
+
orderId: z8.string().uuid().describe("A resting bid ID."),
|
|
1734
|
+
confirm: z8.boolean().optional()
|
|
1546
1735
|
});
|
|
1547
1736
|
var marketCancelCapability = defineCapability({
|
|
1548
1737
|
id: "market.cancel",
|
|
@@ -1570,9 +1759,9 @@ var marketCancelCapability = defineCapability({
|
|
|
1570
1759
|
return cancelOrder(ctx.fetch, parsed.orderId);
|
|
1571
1760
|
}
|
|
1572
1761
|
});
|
|
1573
|
-
var marketFillsInput =
|
|
1762
|
+
var marketFillsInput = z8.object({
|
|
1574
1763
|
$positionals: positionals,
|
|
1575
|
-
orderId:
|
|
1764
|
+
orderId: z8.string().uuid().optional().describe("Only this bid's fills.")
|
|
1576
1765
|
});
|
|
1577
1766
|
var marketFillsCapability = defineCapability({
|
|
1578
1767
|
id: "market.fills",
|
|
@@ -1591,10 +1780,10 @@ var marketFillsCapability = defineCapability({
|
|
|
1591
1780
|
return listFills(ctx.fetch, { orderId: parsed.orderId });
|
|
1592
1781
|
}
|
|
1593
1782
|
});
|
|
1594
|
-
var marketEndInput =
|
|
1783
|
+
var marketEndInput = z8.object({
|
|
1595
1784
|
$positionals: positionals,
|
|
1596
|
-
fillId:
|
|
1597
|
-
confirm:
|
|
1785
|
+
fillId: z8.string().uuid().describe("A fill ID; it is also its reservation ID."),
|
|
1786
|
+
confirm: z8.boolean().optional()
|
|
1598
1787
|
});
|
|
1599
1788
|
var marketEndCapability = defineCapability({
|
|
1600
1789
|
id: "market.end",
|
|
@@ -1619,9 +1808,9 @@ var marketEndCapability = defineCapability({
|
|
|
1619
1808
|
return stopReservation(ctx.fetch, parsed.fillId);
|
|
1620
1809
|
}
|
|
1621
1810
|
});
|
|
1622
|
-
var offersListInput =
|
|
1811
|
+
var offersListInput = z8.object({
|
|
1623
1812
|
$positionals: positionals,
|
|
1624
|
-
listingId:
|
|
1813
|
+
listingId: z8.string().uuid().optional().describe("A primary listing whose offer book to read. Omit for your organization's offers.")
|
|
1625
1814
|
});
|
|
1626
1815
|
var offersListCapability = defineCapability({
|
|
1627
1816
|
id: "offers.list",
|
|
@@ -1640,15 +1829,15 @@ var offersListCapability = defineCapability({
|
|
|
1640
1829
|
return listOffers(ctx.fetch, { listingId: parsed.listingId });
|
|
1641
1830
|
}
|
|
1642
1831
|
});
|
|
1643
|
-
var offerPostInput =
|
|
1832
|
+
var offerPostInput = z8.object({
|
|
1644
1833
|
$positionals: positionals,
|
|
1645
|
-
listingId:
|
|
1646
|
-
listingTermId:
|
|
1647
|
-
durationSeconds:
|
|
1834
|
+
listingId: z8.string().uuid().describe("A primary listing."),
|
|
1835
|
+
listingTermId: z8.string().uuid().describe("The listingTermsId of a non-spot term of that listing, from listings.terms."),
|
|
1836
|
+
durationSeconds: z8.coerce.number().int().positive().optional().describe("How long the reservation runs, within the term's minimum and maximum duration. Omit only when they are equal, or when the term has none (the rest of the listing)."),
|
|
1648
1837
|
pricePerGpuHourMicroUsd: microUsd.describe("Offer price in micro-USD per GPU-hour, or per vCPU-hour on CPU capacity (1000000 = $1.00). Covers every node on the listing."),
|
|
1649
|
-
downPaymentCents:
|
|
1650
|
-
idempotencyKey:
|
|
1651
|
-
confirm:
|
|
1838
|
+
downPaymentCents: z8.coerce.number().int().min(0).optional().describe("The down payment you offer, in cents."),
|
|
1839
|
+
idempotencyKey: z8.string().min(1).max(200).optional(),
|
|
1840
|
+
confirm: z8.boolean().optional()
|
|
1652
1841
|
});
|
|
1653
1842
|
var offerPostCapability = defineCapability({
|
|
1654
1843
|
id: "offers.post",
|
|
@@ -1686,10 +1875,10 @@ var offerPostCapability = defineCapability({
|
|
|
1686
1875
|
return postOffer(ctx.fetch, body2, resolveIdempotencyKey(ctx, parsed.idempotencyKey));
|
|
1687
1876
|
}
|
|
1688
1877
|
});
|
|
1689
|
-
var offerDecisionInput =
|
|
1878
|
+
var offerDecisionInput = z8.object({
|
|
1690
1879
|
$positionals: positionals,
|
|
1691
|
-
offerId:
|
|
1692
|
-
confirm:
|
|
1880
|
+
offerId: z8.string().uuid(),
|
|
1881
|
+
confirm: z8.boolean().optional()
|
|
1693
1882
|
});
|
|
1694
1883
|
var offerAcceptCapability = defineCapability({
|
|
1695
1884
|
id: "offers.accept",
|
|
@@ -1754,20 +1943,20 @@ var marketCapabilities = [
|
|
|
1754
1943
|
];
|
|
1755
1944
|
|
|
1756
1945
|
// ../../packages/capabilities/dist/capabilities/admin-enrollment.js
|
|
1757
|
-
import { z as
|
|
1946
|
+
import { z as z10 } from "zod";
|
|
1758
1947
|
|
|
1759
1948
|
// ../../packages/capabilities/dist/capabilities/tokens.js
|
|
1760
|
-
import { z as
|
|
1761
|
-
var emptyInput =
|
|
1762
|
-
var tokenCreateInput =
|
|
1763
|
-
organization_id:
|
|
1764
|
-
profile_id:
|
|
1765
|
-
expires_in_seconds:
|
|
1766
|
-
host:
|
|
1767
|
-
hosts:
|
|
1768
|
-
username:
|
|
1769
|
-
port:
|
|
1770
|
-
private_key:
|
|
1949
|
+
import { z as z9 } from "zod";
|
|
1950
|
+
var emptyInput = z9.object({});
|
|
1951
|
+
var tokenCreateInput = z9.object({
|
|
1952
|
+
organization_id: z9.string().uuid(),
|
|
1953
|
+
profile_id: z9.string().uuid().optional(),
|
|
1954
|
+
expires_in_seconds: z9.number().int().min(300).max(86400).nullish(),
|
|
1955
|
+
host: z9.string().min(1).nullish(),
|
|
1956
|
+
hosts: z9.array(z9.string().min(1)).max(64).nullish(),
|
|
1957
|
+
username: z9.string().min(1).nullish(),
|
|
1958
|
+
port: z9.number().int().min(1).max(65535).nullish(),
|
|
1959
|
+
private_key: z9.string().min(1).nullish()
|
|
1771
1960
|
});
|
|
1772
1961
|
function tokenMetadata(value) {
|
|
1773
1962
|
if (!value || typeof value !== "object")
|
|
@@ -1825,7 +2014,8 @@ var tokensCreateCapability = defineCapability({
|
|
|
1825
2014
|
human: "ornn admin enrollment-tokens create --supplier UUID --expires-in SECONDS (--print | --output PATH) [--overwrite]",
|
|
1826
2015
|
automation: "Unsupported: token creation requires an eligible human terminal.",
|
|
1827
2016
|
acceptedReferences: ["canonical supplier organization UUID"],
|
|
1828
|
-
review: "Review the supplier, expiry, and secret destination before creating the command."
|
|
2017
|
+
review: "Review the supplier, expiry, and secret destination before creating the command.",
|
|
2018
|
+
related: ["admin suppliers gateways register", "admin suppliers connections list"]
|
|
1829
2019
|
}
|
|
1830
2020
|
},
|
|
1831
2021
|
slack: {
|
|
@@ -1881,9 +2071,9 @@ var tokensCreateCapability = defineCapability({
|
|
|
1881
2071
|
var tokenCapabilities = [tokensListCapability, tokensCreateCapability];
|
|
1882
2072
|
|
|
1883
2073
|
// ../../packages/capabilities/dist/capabilities/admin-enrollment.js
|
|
1884
|
-
var UUID =
|
|
1885
|
-
var nonEmpty =
|
|
1886
|
-
var tokenTtl =
|
|
2074
|
+
var UUID = z10.string().uuid();
|
|
2075
|
+
var nonEmpty = z10.string().trim().min(1);
|
|
2076
|
+
var tokenTtl = z10.number().int().min(60).max(24 * 60 * 60);
|
|
1887
2077
|
function adminHelp2(outcome, human, automation, acceptedReferences = [], review) {
|
|
1888
2078
|
return {
|
|
1889
2079
|
audience: "admin",
|
|
@@ -1895,12 +2085,12 @@ function adminHelp2(outcome, human, automation, acceptedReferences = [], review)
|
|
|
1895
2085
|
...review ? { review } : {}
|
|
1896
2086
|
};
|
|
1897
2087
|
}
|
|
1898
|
-
var tokenRevokeInput =
|
|
1899
|
-
tokenId:
|
|
2088
|
+
var tokenRevokeInput = z10.object({
|
|
2089
|
+
tokenId: z10.string().min(1),
|
|
1900
2090
|
token_id: UUID.optional(),
|
|
1901
2091
|
expected_created_at: nonEmpty.optional(),
|
|
1902
2092
|
idempotency_key: nonEmpty.optional(),
|
|
1903
|
-
confirm:
|
|
2093
|
+
confirm: z10.boolean().optional()
|
|
1904
2094
|
});
|
|
1905
2095
|
function codedError(code, message) {
|
|
1906
2096
|
const error = new Error(message);
|
|
@@ -1969,17 +2159,17 @@ var adminEnrollmentTokenRevokeCapability = defineCapability({
|
|
|
1969
2159
|
};
|
|
1970
2160
|
}
|
|
1971
2161
|
});
|
|
1972
|
-
var nodeEnrollInput =
|
|
2162
|
+
var nodeEnrollInput = z10.object({
|
|
1973
2163
|
node_id: UUID,
|
|
1974
2164
|
host: nonEmpty,
|
|
1975
2165
|
organization_id: UUID,
|
|
1976
2166
|
facility_id: UUID,
|
|
1977
2167
|
identity_file: nonEmpty,
|
|
1978
|
-
private_key:
|
|
2168
|
+
private_key: z10.string().min(1).optional(),
|
|
1979
2169
|
username: nonEmpty.default("root"),
|
|
1980
|
-
port:
|
|
2170
|
+
port: z10.number().int().min(1).max(65535).default(22),
|
|
1981
2171
|
expires_in_seconds: tokenTtl,
|
|
1982
|
-
replace_existing_management:
|
|
2172
|
+
replace_existing_management: z10.literal(true)
|
|
1983
2173
|
});
|
|
1984
2174
|
var adminNodeEnrollCapability = defineCapability({
|
|
1985
2175
|
id: "nodes.enroll",
|
|
@@ -1989,7 +2179,10 @@ var adminNodeEnrollCapability = defineCapability({
|
|
|
1989
2179
|
mutation: "preview-confirm",
|
|
1990
2180
|
cli: {
|
|
1991
2181
|
command: ["admin", "nodes", "enroll"],
|
|
1992
|
-
vnext:
|
|
2182
|
+
vnext: {
|
|
2183
|
+
...adminHelp2("Install Ornn management on one explicitly assigned node.", "ornn admin nodes enroll <node-id> --host HOST --supplier UUID --facility UUID --identity-file PATH --token-ttl SECONDS --replace-existing-management []", "Unsupported: remote enrollment requires an eligible human terminal.", ["canonical node UUID", "canonical supplier organization UUID", "canonical facility UUID"], "Review node identity, SSH target, assignment, and replacement of existing management."),
|
|
2184
|
+
related: ["admin suppliers gateways register", "admin suppliers connections list"]
|
|
2185
|
+
}
|
|
1993
2186
|
},
|
|
1994
2187
|
mcp: false,
|
|
1995
2188
|
slack: false,
|
|
@@ -2027,7 +2220,7 @@ var adminNodeEnrollCapability = defineCapability({
|
|
|
2027
2220
|
return run;
|
|
2028
2221
|
}
|
|
2029
2222
|
});
|
|
2030
|
-
var nodeKeyInput =
|
|
2223
|
+
var nodeKeyInput = z10.object({ node_id: UUID });
|
|
2031
2224
|
var adminNodeExportKeyCapability = defineCapability({
|
|
2032
2225
|
id: "nodes.export-key",
|
|
2033
2226
|
domain: "fleet",
|
|
@@ -2081,11 +2274,11 @@ function createJob(request, body2) {
|
|
|
2081
2274
|
}
|
|
2082
2275
|
|
|
2083
2276
|
// ../../packages/capabilities/dist/capabilities/admin-node-diagnostics.js
|
|
2084
|
-
import { z as
|
|
2085
|
-
var nodeId =
|
|
2277
|
+
import { z as z11 } from "zod";
|
|
2278
|
+
var nodeId = z11.string().min(1).refine((value) => value === value.trim(), {
|
|
2086
2279
|
message: "node_id must be an exact canonical node ID without surrounding whitespace"
|
|
2087
2280
|
});
|
|
2088
|
-
var adminNodeDiagnoseInput =
|
|
2281
|
+
var adminNodeDiagnoseInput = z11.object({
|
|
2089
2282
|
node_id: nodeId
|
|
2090
2283
|
});
|
|
2091
2284
|
var adminNodeDiagnoseCapability = defineCapability({
|
|
@@ -2124,8 +2317,8 @@ var adminNodeDiagnoseCapability = defineCapability({
|
|
|
2124
2317
|
var adminNodeDiagnosticCapabilities = [adminNodeDiagnoseCapability];
|
|
2125
2318
|
|
|
2126
2319
|
// ../../packages/capabilities/dist/capabilities/admin-node-sanitize.js
|
|
2127
|
-
import { z as
|
|
2128
|
-
var
|
|
2320
|
+
import { z as z12 } from "zod";
|
|
2321
|
+
var uuid2 = z12.string().uuid();
|
|
2129
2322
|
var sanitizeOperations = ["data_wipe", "ram_roundtrip", "node_turnover", "host_restore"];
|
|
2130
2323
|
var sanitizeConfirmations = [
|
|
2131
2324
|
"SANITIZE",
|
|
@@ -2144,13 +2337,13 @@ var startConfirmation = {
|
|
|
2144
2337
|
node_turnover: "WIPE AND RESTORE",
|
|
2145
2338
|
host_restore: "RESTORE HOST"
|
|
2146
2339
|
};
|
|
2147
|
-
var nodeSanitizeStartInput =
|
|
2148
|
-
node_id:
|
|
2149
|
-
job_id:
|
|
2150
|
-
operation:
|
|
2151
|
-
maintenance_batch_id:
|
|
2152
|
-
recovery_uuid:
|
|
2153
|
-
confirmation:
|
|
2340
|
+
var nodeSanitizeStartInput = z12.object({
|
|
2341
|
+
node_id: uuid2.describe("Node UUID whose drives will be sanitized."),
|
|
2342
|
+
job_id: uuid2.describe("Caller-supplied stable sanitize job UUID; reuse it when retrying."),
|
|
2343
|
+
operation: z12.enum(sanitizeOperations).optional().describe("Sanitize operation; omission defaults to data_wipe."),
|
|
2344
|
+
maintenance_batch_id: uuid2.optional().describe("Optional maintenance batch UUID recorded by the audit middleware."),
|
|
2345
|
+
recovery_uuid: uuid2.optional().describe("Recovery boot identity: required for ram_roundtrip, optional for node_turnover and host_restore, rejected for data_wipe."),
|
|
2346
|
+
confirmation: z12.enum(sanitizeConfirmations).describe("Exact confirmation phrase required for the selected operation.")
|
|
2154
2347
|
}).strict().refine((input) => input.confirmation === startConfirmation[input.operation ?? "data_wipe"], {
|
|
2155
2348
|
message: "confirmation must exactly match the selected sanitize operation.",
|
|
2156
2349
|
path: ["confirmation"]
|
|
@@ -2163,30 +2356,30 @@ var nodeSanitizeStartInput = z11.object({
|
|
|
2163
2356
|
message: "recovery_uuid is required for ram_roundtrip and not accepted for data_wipe.",
|
|
2164
2357
|
path: ["recovery_uuid"]
|
|
2165
2358
|
});
|
|
2166
|
-
var nodeSanitizeShowInput =
|
|
2167
|
-
node_id:
|
|
2168
|
-
job_id:
|
|
2359
|
+
var nodeSanitizeShowInput = z12.object({
|
|
2360
|
+
node_id: uuid2.describe("Node UUID associated with the sanitize job."),
|
|
2361
|
+
job_id: uuid2.describe("Sanitize job UUID to read.")
|
|
2169
2362
|
}).strict();
|
|
2170
|
-
var manualCleanupInput =
|
|
2171
|
-
reservation_id:
|
|
2172
|
-
lifecycle_operation_id:
|
|
2173
|
-
reason:
|
|
2174
|
-
evidence_sha256:
|
|
2175
|
-
acknowledge_retained_os:
|
|
2176
|
-
tenant_access_revoked:
|
|
2177
|
-
data_drives_sanitized:
|
|
2363
|
+
var manualCleanupInput = z12.object({
|
|
2364
|
+
reservation_id: uuid2.describe("Reservation whose Bare Metal release this turnover job holds."),
|
|
2365
|
+
lifecycle_operation_id: uuid2.describe("The current orchestrator release operation UUID that owns the hold, not a Commerce operation."),
|
|
2366
|
+
reason: z12.string().trim().min(20).max(2e3).describe("Cleanup performed and why the existing OS must be retained."),
|
|
2367
|
+
evidence_sha256: z12.string().regex(/^[0-9a-f]{64}$/, "evidence_sha256 must be 64 lowercase hex characters.").describe("Lowercase SHA-256 of the immutable cleanup evidence file kept outside the host."),
|
|
2368
|
+
acknowledge_retained_os: z12.literal(true).describe("The existing OS is retained; OS integrity and full-media erasure are not established."),
|
|
2369
|
+
tenant_access_revoked: z12.literal(true).describe("Former tenant workloads, keys, and active access were removed and verified."),
|
|
2370
|
+
data_drives_sanitized: z12.literal(true).describe("Every local data drive was sanitized with retained per-drive receipts.")
|
|
2178
2371
|
}).strict();
|
|
2179
|
-
var nodeSanitizeUpdateInput =
|
|
2180
|
-
node_id:
|
|
2181
|
-
job_id:
|
|
2182
|
-
confirmation:
|
|
2372
|
+
var nodeSanitizeUpdateInput = z12.object({
|
|
2373
|
+
node_id: uuid2.describe("Node UUID associated with the sanitize job."),
|
|
2374
|
+
job_id: uuid2.describe("Sanitize job UUID to decide."),
|
|
2375
|
+
confirmation: z12.enum(sanitizeDecisions).describe("APPROVE SANITIZATION runs the held job, SKIP SANITIZATION skips an eligible first-use wipe, ACCEPT MANUAL CLEANUP attests manual cleanup with the OS retained."),
|
|
2183
2376
|
manual_cleanup: manualCleanupInput.optional().describe("Required with ACCEPT MANUAL CLEANUP and rejected with any other decision.")
|
|
2184
2377
|
}).strict().refine((input) => input.confirmation === "ACCEPT MANUAL CLEANUP" === (input.manual_cleanup !== void 0), {
|
|
2185
2378
|
message: "manual_cleanup is required with ACCEPT MANUAL CLEANUP and allowed only with it.",
|
|
2186
2379
|
path: ["manual_cleanup"]
|
|
2187
2380
|
});
|
|
2188
2381
|
function slackParameters(schema) {
|
|
2189
|
-
const json =
|
|
2382
|
+
const json = z12.toJSONSchema(schema);
|
|
2190
2383
|
return {
|
|
2191
2384
|
type: "object",
|
|
2192
2385
|
properties: json.properties,
|
|
@@ -2274,32 +2467,32 @@ var adminNodeSanitizeCapabilities = [
|
|
|
2274
2467
|
];
|
|
2275
2468
|
|
|
2276
2469
|
// ../../packages/capabilities/dist/capabilities/admin-nodes-lifecycle.js
|
|
2277
|
-
import { z as
|
|
2278
|
-
var nodeReference =
|
|
2279
|
-
var optionalText =
|
|
2470
|
+
import { z as z13 } from "zod";
|
|
2471
|
+
var nodeReference = z13.string().trim().min(1);
|
|
2472
|
+
var optionalText = z13.string().trim().min(1).optional();
|
|
2280
2473
|
var commonInput = {
|
|
2281
2474
|
node_ref: nodeReference,
|
|
2282
2475
|
node_id: optionalText,
|
|
2283
2476
|
idempotency_key: optionalText,
|
|
2284
2477
|
reason: optionalText,
|
|
2285
|
-
yes:
|
|
2286
|
-
wait:
|
|
2287
|
-
timeout_seconds:
|
|
2478
|
+
yes: z13.boolean().optional(),
|
|
2479
|
+
wait: z13.boolean().optional(),
|
|
2480
|
+
timeout_seconds: z13.number().positive().optional()
|
|
2288
2481
|
};
|
|
2289
|
-
var rebootInput =
|
|
2482
|
+
var rebootInput = z13.object({
|
|
2290
2483
|
...commonInput,
|
|
2291
2484
|
machine_id: optionalText
|
|
2292
2485
|
});
|
|
2293
2486
|
var hardResetInput = rebootInput.extend({
|
|
2294
|
-
erase_local_data:
|
|
2487
|
+
erase_local_data: z13.literal(true)
|
|
2295
2488
|
});
|
|
2296
|
-
var assignmentInput =
|
|
2489
|
+
var assignmentInput = z13.object({
|
|
2297
2490
|
...commonInput,
|
|
2298
|
-
reservation_id:
|
|
2299
|
-
expected_reservation_id:
|
|
2491
|
+
reservation_id: z13.string().trim().min(1),
|
|
2492
|
+
expected_reservation_id: z13.string().nullable().optional()
|
|
2300
2493
|
});
|
|
2301
|
-
var machineRebootInput =
|
|
2302
|
-
var rebootOperationInput = machineRebootInput.extend({ idempotencyKey:
|
|
2494
|
+
var machineRebootInput = z13.object({ instanceId: z13.string(), confirm: z13.boolean().optional() });
|
|
2495
|
+
var rebootOperationInput = machineRebootInput.extend({ idempotencyKey: z13.string().optional() });
|
|
2303
2496
|
function adminLifecycleHelp(outcome, human, automation, review) {
|
|
2304
2497
|
return {
|
|
2305
2498
|
audience: "admin",
|
|
@@ -2380,11 +2573,11 @@ var adminNodeHardResetCapability = defineCapability({
|
|
|
2380
2573
|
input: rebootOperationInput,
|
|
2381
2574
|
execute: (ctx, input) => reboot(ctx, input, "hard_reset")
|
|
2382
2575
|
});
|
|
2383
|
-
var nodeAssignInput =
|
|
2384
|
-
nodeId:
|
|
2385
|
-
reservationId:
|
|
2386
|
-
expectedReservationId:
|
|
2387
|
-
confirm:
|
|
2576
|
+
var nodeAssignInput = z13.object({
|
|
2577
|
+
nodeId: z13.string(),
|
|
2578
|
+
reservationId: z13.string(),
|
|
2579
|
+
expectedReservationId: z13.string().nullable().optional().describe("The reservation the node is expected to currently hold, or null/omitted for a free node. The owner re-checks this under a row lock and rejects the assignment if the node's actual reservation differs, so a mistyped occupied node is never silently evicted. Pass the current reservation id to intentionally move an already-assigned node."),
|
|
2580
|
+
confirm: z13.boolean().optional()
|
|
2388
2581
|
});
|
|
2389
2582
|
var adminNodeAssignCapability = defineCapability({
|
|
2390
2583
|
id: "nodes.assign",
|
|
@@ -2408,7 +2601,7 @@ var adminNodeAssignCapability = defineCapability({
|
|
|
2408
2601
|
},
|
|
2409
2602
|
mcp: { name: "node_assign", input: nodeAssignInput },
|
|
2410
2603
|
slack: false,
|
|
2411
|
-
input: nodeAssignInput.extend({ idempotencyKey:
|
|
2604
|
+
input: nodeAssignInput.extend({ idempotencyKey: z13.string().optional() }),
|
|
2412
2605
|
execute: async (ctx, input) => {
|
|
2413
2606
|
const body2 = {
|
|
2414
2607
|
reservation_id: input.reservationId,
|
|
@@ -2428,7 +2621,7 @@ var adminNodeLifecycleCapabilities = [
|
|
|
2428
2621
|
];
|
|
2429
2622
|
|
|
2430
2623
|
// ../../packages/capabilities/dist/capabilities/billing.js
|
|
2431
|
-
import { z as
|
|
2624
|
+
import { z as z14 } from "zod";
|
|
2432
2625
|
var DATE_ONLY = /^\d{4}-\d{2}-\d{2}$/;
|
|
2433
2626
|
var billingCapabilities = [
|
|
2434
2627
|
defineCapability({
|
|
@@ -2437,7 +2630,7 @@ var billingCapabilities = [
|
|
|
2437
2630
|
roles: ["user"],
|
|
2438
2631
|
description: "Read account billing totals: open balance, earliest due date, and paid monthly totals grouped by currency. Usage estimates are available separately through billing_showback.",
|
|
2439
2632
|
mutation: "read",
|
|
2440
|
-
input:
|
|
2633
|
+
input: z14.object({}),
|
|
2441
2634
|
slack: false,
|
|
2442
2635
|
execute: (ctx) => getBillingSummary(ctx.fetch)
|
|
2443
2636
|
}),
|
|
@@ -2447,9 +2640,9 @@ var billingCapabilities = [
|
|
|
2447
2640
|
roles: ["user"],
|
|
2448
2641
|
description: "List a page of this tenant's invoices.",
|
|
2449
2642
|
mutation: "read",
|
|
2450
|
-
input:
|
|
2451
|
-
limit:
|
|
2452
|
-
cursor:
|
|
2643
|
+
input: z14.object({
|
|
2644
|
+
limit: z14.number().int().min(1).max(500).optional(),
|
|
2645
|
+
cursor: z14.string().trim().min(1).max(2048).optional()
|
|
2453
2646
|
}),
|
|
2454
2647
|
slack: false,
|
|
2455
2648
|
execute: (ctx, input) => listInvoices(ctx.fetch, input)
|
|
@@ -2460,9 +2653,9 @@ var billingCapabilities = [
|
|
|
2460
2653
|
roles: ["user"],
|
|
2461
2654
|
description: "Get a showback report of this tenant's usage for a date range: per-reservation unit-hours, estimated cost, and share of total. Each row's unit is a GPU, or a vCPU when its `unit` is `vcpu` (CPU capacity); gpuCount and gpuHours count that unit. Unit-hours are the billable reservation interval that falls inside the inclusive dates, not a whole calendar day. This is an estimate from reservation windows, not a bill. Use billing_summary or billing_invoices for amounts actually charged.",
|
|
2462
2655
|
mutation: "read",
|
|
2463
|
-
input:
|
|
2464
|
-
start:
|
|
2465
|
-
end:
|
|
2656
|
+
input: z14.object({
|
|
2657
|
+
start: z14.string().regex(DATE_ONLY, "start must be a date in yyyy-mm-dd format."),
|
|
2658
|
+
end: z14.string().regex(DATE_ONLY, "end must be a date in yyyy-mm-dd format.")
|
|
2466
2659
|
}).refine((input) => input.start <= input.end, { message: "start must be on or before end." }),
|
|
2467
2660
|
slack: false,
|
|
2468
2661
|
execute: (ctx, input) => getShowback(ctx.fetch, input)
|
|
@@ -2552,10 +2745,10 @@ function getCliStatus(request) {
|
|
|
2552
2745
|
}
|
|
2553
2746
|
|
|
2554
2747
|
// ../../packages/capabilities/dist/capabilities/compute.js
|
|
2555
|
-
import { z as
|
|
2748
|
+
import { z as z16 } from "zod";
|
|
2556
2749
|
|
|
2557
2750
|
// ../../packages/capabilities/dist/capabilities/ssh-keys.js
|
|
2558
|
-
import { z as
|
|
2751
|
+
import { z as z15 } from "zod";
|
|
2559
2752
|
async function activeReservationNodes(context, reservationId) {
|
|
2560
2753
|
const { nodes: nodes2 } = await listNodes(context.fetch, { reservation_id: reservationId });
|
|
2561
2754
|
return nodes2.filter((node) => node.status !== "terminated");
|
|
@@ -2588,10 +2781,10 @@ var reservationKeysPushCapability = defineCapability({
|
|
|
2588
2781
|
roles: ["user"],
|
|
2589
2782
|
description: "Push SSH key(s) onto all active machines for a reservation.",
|
|
2590
2783
|
mutation: "immediate",
|
|
2591
|
-
input:
|
|
2592
|
-
reservationId:
|
|
2593
|
-
sshKeyIds:
|
|
2594
|
-
requestId:
|
|
2784
|
+
input: z15.object({
|
|
2785
|
+
reservationId: z15.string(),
|
|
2786
|
+
sshKeyIds: z15.array(z15.string()).min(1),
|
|
2787
|
+
requestId: z15.string().optional()
|
|
2595
2788
|
}),
|
|
2596
2789
|
mcp: { aliases: ["access_keys_push"] },
|
|
2597
2790
|
slack: false,
|
|
@@ -2611,94 +2804,94 @@ var reservationKeysPushCapability = defineCapability({
|
|
|
2611
2804
|
});
|
|
2612
2805
|
|
|
2613
2806
|
// ../../packages/capabilities/dist/capabilities/compute.js
|
|
2614
|
-
var positionals2 =
|
|
2615
|
-
var launchInput =
|
|
2807
|
+
var positionals2 = z16.array(z16.string()).default([]);
|
|
2808
|
+
var launchInput = z16.object({
|
|
2616
2809
|
$positionals: positionals2,
|
|
2617
|
-
guided:
|
|
2618
|
-
idempotencyKey:
|
|
2619
|
-
key:
|
|
2620
|
-
keyId:
|
|
2621
|
-
label:
|
|
2622
|
-
machine:
|
|
2623
|
-
machines:
|
|
2624
|
-
mode:
|
|
2625
|
-
mountAccess:
|
|
2626
|
-
network:
|
|
2627
|
-
noWait:
|
|
2628
|
-
nodes:
|
|
2629
|
-
publicKey:
|
|
2630
|
-
publicKeyFile:
|
|
2631
|
-
reservation:
|
|
2632
|
-
resume:
|
|
2633
|
-
timeout:
|
|
2634
|
-
username:
|
|
2635
|
-
vms:
|
|
2636
|
-
wait:
|
|
2637
|
-
yes:
|
|
2638
|
-
volume:
|
|
2810
|
+
guided: z16.boolean().optional(),
|
|
2811
|
+
idempotencyKey: z16.string().optional(),
|
|
2812
|
+
key: z16.string().optional(),
|
|
2813
|
+
keyId: z16.string().optional(),
|
|
2814
|
+
label: z16.string().optional(),
|
|
2815
|
+
machine: z16.string().optional(),
|
|
2816
|
+
machines: z16.string().optional(),
|
|
2817
|
+
mode: z16.string().optional(),
|
|
2818
|
+
mountAccess: z16.string().optional(),
|
|
2819
|
+
network: z16.string().optional(),
|
|
2820
|
+
noWait: z16.boolean().optional(),
|
|
2821
|
+
nodes: z16.union([z16.string(), z16.number()]).optional(),
|
|
2822
|
+
publicKey: z16.string().optional(),
|
|
2823
|
+
publicKeyFile: z16.string().optional(),
|
|
2824
|
+
reservation: z16.string().optional(),
|
|
2825
|
+
resume: z16.union([z16.string().min(1), z16.literal(true)]).optional(),
|
|
2826
|
+
timeout: z16.string().optional(),
|
|
2827
|
+
username: z16.string().optional(),
|
|
2828
|
+
vms: z16.string().optional(),
|
|
2829
|
+
wait: z16.boolean().optional(),
|
|
2830
|
+
yes: z16.boolean().optional(),
|
|
2831
|
+
volume: z16.string().optional()
|
|
2639
2832
|
}).strict();
|
|
2640
|
-
var pageInput =
|
|
2641
|
-
limit:
|
|
2642
|
-
cursor:
|
|
2833
|
+
var pageInput = z16.object({
|
|
2834
|
+
limit: z16.number().int().min(1).max(500).optional(),
|
|
2835
|
+
cursor: z16.string().optional()
|
|
2643
2836
|
});
|
|
2644
|
-
var publicKeyInput =
|
|
2645
|
-
publicKey:
|
|
2646
|
-
label:
|
|
2647
|
-
confirm:
|
|
2837
|
+
var publicKeyInput = z16.object({
|
|
2838
|
+
publicKey: z16.string(),
|
|
2839
|
+
label: z16.string().optional(),
|
|
2840
|
+
confirm: z16.boolean().optional()
|
|
2648
2841
|
});
|
|
2649
|
-
var keyIdInput =
|
|
2650
|
-
var reservationKeyInput = publicKeyInput.extend({ reservationId:
|
|
2842
|
+
var keyIdInput = z16.object({ keyId: z16.string(), confirm: z16.boolean().optional() });
|
|
2843
|
+
var reservationKeyInput = publicKeyInput.extend({ reservationId: z16.string() });
|
|
2651
2844
|
var ADDED_KEY_OUTCOME = "The response's outcome field says whether the key was created, was already_registered (returned unchanged, so the submitted label is not applied), or was reactivated from a revoked key.";
|
|
2652
|
-
var keyListInput =
|
|
2845
|
+
var keyListInput = z16.object({
|
|
2653
2846
|
$positionals: positionals2,
|
|
2654
|
-
cursor:
|
|
2655
|
-
limit:
|
|
2847
|
+
cursor: z16.string().optional(),
|
|
2848
|
+
limit: z16.coerce.number().int().min(1).max(500).optional()
|
|
2656
2849
|
}).strict();
|
|
2657
|
-
var keyMutationInput =
|
|
2850
|
+
var keyMutationInput = z16.object({
|
|
2658
2851
|
$positionals: positionals2,
|
|
2659
|
-
idempotencyKey:
|
|
2660
|
-
key:
|
|
2661
|
-
keyId:
|
|
2662
|
-
label:
|
|
2663
|
-
publicKey:
|
|
2664
|
-
publicKeyFile:
|
|
2665
|
-
yes:
|
|
2852
|
+
idempotencyKey: z16.string().optional(),
|
|
2853
|
+
key: z16.string().optional(),
|
|
2854
|
+
keyId: z16.string().optional(),
|
|
2855
|
+
label: z16.string().optional(),
|
|
2856
|
+
publicKey: z16.string().optional(),
|
|
2857
|
+
publicKeyFile: z16.string().optional(),
|
|
2858
|
+
yes: z16.boolean().optional()
|
|
2666
2859
|
}).strict();
|
|
2667
|
-
var machineListInput =
|
|
2860
|
+
var machineListInput = z16.object({
|
|
2668
2861
|
$positionals: positionals2,
|
|
2669
|
-
cursor:
|
|
2670
|
-
limit:
|
|
2862
|
+
cursor: z16.string().optional(),
|
|
2863
|
+
limit: z16.coerce.number().int().min(1).max(500).optional()
|
|
2671
2864
|
}).strict();
|
|
2672
|
-
var machineShowInput =
|
|
2865
|
+
var machineShowInput = z16.object({
|
|
2673
2866
|
$positionals: positionals2,
|
|
2674
|
-
guided:
|
|
2867
|
+
guided: z16.boolean().optional()
|
|
2675
2868
|
}).strict();
|
|
2676
|
-
var machineWaitInput =
|
|
2869
|
+
var machineWaitInput = z16.object({
|
|
2677
2870
|
$positionals: positionals2,
|
|
2678
|
-
guided:
|
|
2679
|
-
timeout:
|
|
2871
|
+
guided: z16.boolean().optional(),
|
|
2872
|
+
timeout: z16.string().optional()
|
|
2680
2873
|
}).strict();
|
|
2681
|
-
var machineSwitchInput =
|
|
2874
|
+
var machineSwitchInput = z16.object({
|
|
2682
2875
|
$positionals: positionals2,
|
|
2683
|
-
guided:
|
|
2684
|
-
eraseLocalData:
|
|
2685
|
-
idempotencyKey:
|
|
2686
|
-
mode:
|
|
2687
|
-
network:
|
|
2688
|
-
noWait:
|
|
2689
|
-
timeout:
|
|
2690
|
-
wait:
|
|
2691
|
-
yes:
|
|
2876
|
+
guided: z16.boolean().optional(),
|
|
2877
|
+
eraseLocalData: z16.boolean().optional(),
|
|
2878
|
+
idempotencyKey: z16.string().optional(),
|
|
2879
|
+
mode: z16.string().optional(),
|
|
2880
|
+
network: z16.string().optional(),
|
|
2881
|
+
noWait: z16.boolean().optional(),
|
|
2882
|
+
timeout: z16.string().optional(),
|
|
2883
|
+
wait: z16.boolean().optional(),
|
|
2884
|
+
yes: z16.boolean().optional()
|
|
2692
2885
|
}).strict();
|
|
2693
|
-
var machineMaintenanceInput =
|
|
2886
|
+
var machineMaintenanceInput = z16.object({
|
|
2694
2887
|
$positionals: positionals2,
|
|
2695
|
-
eraseLocalData:
|
|
2696
|
-
guided:
|
|
2697
|
-
idempotencyKey:
|
|
2698
|
-
noWait:
|
|
2699
|
-
timeout:
|
|
2700
|
-
wait:
|
|
2701
|
-
yes:
|
|
2888
|
+
eraseLocalData: z16.boolean().optional(),
|
|
2889
|
+
guided: z16.boolean().optional(),
|
|
2890
|
+
idempotencyKey: z16.string().optional(),
|
|
2891
|
+
noWait: z16.boolean().optional(),
|
|
2892
|
+
timeout: z16.string().optional(),
|
|
2893
|
+
wait: z16.boolean().optional(),
|
|
2894
|
+
yes: z16.boolean().optional()
|
|
2702
2895
|
}).strict();
|
|
2703
2896
|
function runtime(context) {
|
|
2704
2897
|
const interaction = context.cli?.interaction;
|
|
@@ -2852,19 +3045,19 @@ var machineWaitCapability = cliOnly({
|
|
|
2852
3045
|
},
|
|
2853
3046
|
execute: executeMachines("wait")
|
|
2854
3047
|
});
|
|
2855
|
-
var accessSwitchInput =
|
|
2856
|
-
reservationId:
|
|
2857
|
-
networkMode:
|
|
2858
|
-
sshKeyIds:
|
|
2859
|
-
accessMode:
|
|
2860
|
-
username:
|
|
2861
|
-
requestId:
|
|
2862
|
-
confirm:
|
|
3048
|
+
var accessSwitchInput = z16.object({
|
|
3049
|
+
reservationId: z16.string(),
|
|
3050
|
+
networkMode: z16.enum(["public", "private"]),
|
|
3051
|
+
sshKeyIds: z16.array(z16.string()).min(1),
|
|
3052
|
+
accessMode: z16.enum(["bare-metal", "virtual-machine"]).optional(),
|
|
3053
|
+
username: z16.string().optional(),
|
|
3054
|
+
requestId: z16.string().regex(/\S/),
|
|
3055
|
+
confirm: z16.boolean().optional()
|
|
2863
3056
|
});
|
|
2864
|
-
var nodeIdInput =
|
|
3057
|
+
var nodeIdInput = z16.object({ nodeId: z16.string(), confirm: z16.boolean().optional() });
|
|
2865
3058
|
var nodeMaintenanceInput = nodeIdInput.extend({
|
|
2866
|
-
requestId:
|
|
2867
|
-
eraseLocalData:
|
|
3059
|
+
requestId: z16.string().optional(),
|
|
3060
|
+
eraseLocalData: z16.boolean().optional()
|
|
2868
3061
|
});
|
|
2869
3062
|
function rebootMachine(mode) {
|
|
2870
3063
|
return (ctx, input) => input.virtualMachineId ? rebootVirtualMachine(ctx.fetch, input.nodeId, input.virtualMachineId, { mode }) : rebootNode(ctx.fetch, input.nodeId, {
|
|
@@ -2880,9 +3073,9 @@ var machineSwitchCapability = defineCapability({
|
|
|
2880
3073
|
description: "Switch a live reservation between public/private network mode (and optionally VM/Bare Metal) via switch-access. Use this instead of re-launching when machines are already running. Supply a unique requestId and keep it to check progress, including after a timeout. Acceptance does not confirm completion.",
|
|
2881
3074
|
mutation: "preview-confirm",
|
|
2882
3075
|
input: accessSwitchInput.extend({
|
|
2883
|
-
accessMode:
|
|
2884
|
-
eraseLocalData:
|
|
2885
|
-
machineCount:
|
|
3076
|
+
accessMode: z16.enum(["bare-metal", "virtual-machine"]).nullable().optional(),
|
|
3077
|
+
eraseLocalData: z16.boolean().optional(),
|
|
3078
|
+
machineCount: z16.number().int().positive().optional()
|
|
2886
3079
|
}),
|
|
2887
3080
|
mcp: { name: "access_switch", input: accessSwitchInput },
|
|
2888
3081
|
slack: false,
|
|
@@ -2919,7 +3112,7 @@ var machineRebootCapability = defineCapability({
|
|
|
2919
3112
|
roles: ["user"],
|
|
2920
3113
|
description: "Reboot a running reservation machine. Keeps storage and SSH keys. Pass the machine/node instance id from access_show.",
|
|
2921
3114
|
mutation: "preview-confirm",
|
|
2922
|
-
input: nodeMaintenanceInput.extend({ virtualMachineId:
|
|
3115
|
+
input: nodeMaintenanceInput.extend({ virtualMachineId: z16.string().optional() }),
|
|
2923
3116
|
mcp: { name: "nodes_reboot", input: nodeIdInput },
|
|
2924
3117
|
slack: false,
|
|
2925
3118
|
cli: {
|
|
@@ -2984,7 +3177,7 @@ var sshKeyListCapability = defineCapability({
|
|
|
2984
3177
|
domain: "access",
|
|
2985
3178
|
roles: ["user"],
|
|
2986
3179
|
mutation: "read",
|
|
2987
|
-
input: pageInput.extend({ status:
|
|
3180
|
+
input: pageInput.extend({ status: z16.enum(["active", "all"]).optional() }),
|
|
2988
3181
|
description: "List a page of account SSH keys. Pass next_cursor as cursor to continue.",
|
|
2989
3182
|
mcp: { name: "ssh_keys_list", aliases: ["cluster_users_list"], input: pageInput },
|
|
2990
3183
|
slack: false,
|
|
@@ -3016,8 +3209,8 @@ var sshKeyAddCapability = defineCapability({
|
|
|
3016
3209
|
roles: ["user"],
|
|
3017
3210
|
mutation: "preview-confirm",
|
|
3018
3211
|
input: publicKeyInput.extend({
|
|
3019
|
-
label:
|
|
3020
|
-
idempotencyKey:
|
|
3212
|
+
label: z16.string().nullable().optional(),
|
|
3213
|
+
idempotencyKey: z16.string().optional()
|
|
3021
3214
|
}),
|
|
3022
3215
|
description: `Add an SSH public key to the account. ${ADDED_KEY_OUTCOME}`,
|
|
3023
3216
|
mcp: { name: "ssh_keys_add", aliases: ["cluster_users_add"], input: publicKeyInput },
|
|
@@ -3046,7 +3239,7 @@ var sshKeyDeleteCapability = defineCapability({
|
|
|
3046
3239
|
domain: "access",
|
|
3047
3240
|
roles: ["user"],
|
|
3048
3241
|
mutation: "preview-confirm",
|
|
3049
|
-
input: keyIdInput.extend({ idempotencyKey:
|
|
3242
|
+
input: keyIdInput.extend({ idempotencyKey: z16.string().optional() }),
|
|
3050
3243
|
description: "Delete an SSH key from the account.",
|
|
3051
3244
|
mcp: { name: "ssh_keys_delete", aliases: ["cluster_users_revoke"], input: keyIdInput },
|
|
3052
3245
|
slack: false,
|
|
@@ -3078,7 +3271,7 @@ var sshKeyAssignmentListCapability = defineCapability({
|
|
|
3078
3271
|
domain: "access",
|
|
3079
3272
|
roles: ["user"],
|
|
3080
3273
|
mutation: "read",
|
|
3081
|
-
input:
|
|
3274
|
+
input: z16.object({ reservationId: z16.string() }),
|
|
3082
3275
|
description: "List SSH keys registered for a reservation.",
|
|
3083
3276
|
mcp: { name: "access_keys_list" },
|
|
3084
3277
|
slack: false,
|
|
@@ -3105,9 +3298,9 @@ var sshKeyAssignmentAssignCapability = defineCapability({
|
|
|
3105
3298
|
domain: "access",
|
|
3106
3299
|
roles: ["user"],
|
|
3107
3300
|
mutation: "preview-confirm",
|
|
3108
|
-
input:
|
|
3109
|
-
reservationKeyInput.extend({ idempotencyKey:
|
|
3110
|
-
keyIdInput.extend({ reservationId:
|
|
3301
|
+
input: z16.union([
|
|
3302
|
+
reservationKeyInput.extend({ idempotencyKey: z16.string().optional() }),
|
|
3303
|
+
keyIdInput.extend({ reservationId: z16.string(), idempotencyKey: z16.string().optional() })
|
|
3111
3304
|
]),
|
|
3112
3305
|
description: `Add an SSH key to a reservation. ${ADDED_KEY_OUTCOME}`,
|
|
3113
3306
|
mcp: { name: "access_keys_add", input: reservationKeyInput },
|
|
@@ -3166,7 +3359,7 @@ var sshKeyAssignmentStatusCapability = defineCapability({
|
|
|
3166
3359
|
domain: "access",
|
|
3167
3360
|
roles: ["user"],
|
|
3168
3361
|
mutation: "read",
|
|
3169
|
-
input:
|
|
3362
|
+
input: z16.object({ reservationId: z16.string() }),
|
|
3170
3363
|
description: "Show SSH key push status per machine for a reservation.",
|
|
3171
3364
|
mcp: { name: "access_keys_status" },
|
|
3172
3365
|
slack: false,
|
|
@@ -3211,22 +3404,22 @@ var accessShowCapability = defineCapability({
|
|
|
3211
3404
|
roles: ["user"],
|
|
3212
3405
|
description: "Show VM and Bare Metal SSH access machines for a reservation.",
|
|
3213
3406
|
mutation: "read",
|
|
3214
|
-
input:
|
|
3407
|
+
input: z16.object({ reservationId: z16.string() }),
|
|
3215
3408
|
slack: false,
|
|
3216
3409
|
execute: (ctx, input) => listNodes(ctx.fetch, { reservation_id: input.reservationId })
|
|
3217
3410
|
});
|
|
3218
|
-
var accessActivateInput =
|
|
3219
|
-
reservationId:
|
|
3220
|
-
sshKeyIds:
|
|
3221
|
-
username:
|
|
3222
|
-
machineCount:
|
|
3223
|
-
requestId:
|
|
3224
|
-
accessMode:
|
|
3225
|
-
networkMode:
|
|
3226
|
-
diskId:
|
|
3227
|
-
storageLoadDriveId:
|
|
3228
|
-
storageSaveDriveId:
|
|
3229
|
-
confirm:
|
|
3411
|
+
var accessActivateInput = z16.object({
|
|
3412
|
+
reservationId: z16.string(),
|
|
3413
|
+
sshKeyIds: z16.array(z16.string()).min(1),
|
|
3414
|
+
username: z16.string().optional(),
|
|
3415
|
+
machineCount: z16.number().int().positive().optional(),
|
|
3416
|
+
requestId: z16.string().optional(),
|
|
3417
|
+
accessMode: z16.enum(["bare-metal", "vm"]).optional(),
|
|
3418
|
+
networkMode: z16.enum(["public", "private"]).optional(),
|
|
3419
|
+
diskId: z16.string().optional(),
|
|
3420
|
+
storageLoadDriveId: z16.string().optional(),
|
|
3421
|
+
storageSaveDriveId: z16.string().optional(),
|
|
3422
|
+
confirm: z16.boolean().optional()
|
|
3230
3423
|
});
|
|
3231
3424
|
var accessActivateCapability = defineCapability({
|
|
3232
3425
|
id: "access.activate",
|
|
@@ -3235,8 +3428,8 @@ var accessActivateCapability = defineCapability({
|
|
|
3235
3428
|
description: "Activate access (bare-metal by default, or VM via accessMode) for a reservation and launch machine(s) with the given SSH key(s), optionally on the private network via networkMode. A VM launches on the reservation's saved disk; pass diskId to choose one, which a reservation without a saved disk needs.",
|
|
3236
3429
|
mutation: "preview-confirm",
|
|
3237
3430
|
input: accessActivateInput.extend({
|
|
3238
|
-
diskId:
|
|
3239
|
-
zone:
|
|
3431
|
+
diskId: z16.string().nullable().optional(),
|
|
3432
|
+
zone: z16.string().nullable().optional()
|
|
3240
3433
|
}),
|
|
3241
3434
|
mcp: { input: accessActivateInput },
|
|
3242
3435
|
slack: false,
|
|
@@ -3257,14 +3450,14 @@ var accessActivateCapability = defineCapability({
|
|
|
3257
3450
|
var accessVerbCapabilities = [accessShowCapability, accessActivateCapability];
|
|
3258
3451
|
|
|
3259
3452
|
// ../../packages/capabilities/dist/capabilities/credits.js
|
|
3260
|
-
import { z as
|
|
3261
|
-
var creditGrantInput =
|
|
3262
|
-
organizationId:
|
|
3263
|
-
adjustmentId:
|
|
3264
|
-
amountCents:
|
|
3265
|
-
direction:
|
|
3266
|
-
note:
|
|
3267
|
-
confirm:
|
|
3453
|
+
import { z as z17 } from "zod";
|
|
3454
|
+
var creditGrantInput = z17.object({
|
|
3455
|
+
organizationId: z17.uuid().describe("Customer organization UUID. Resolve names or emails with organization_list; ask which organization if matches are ambiguous."),
|
|
3456
|
+
adjustmentId: z17.uuid().describe("The credit-adjustment API's required grant UUID. Keep the same UUID when confirming this grant."),
|
|
3457
|
+
amountCents: z17.number().int().min(1).max(1e8).describe("USD cents: 10000 grants $100.00."),
|
|
3458
|
+
direction: z17.enum(["credit", "debit"]).optional().describe("credit adds funds (default); debit removes funds. Choose explicitly for a debit."),
|
|
3459
|
+
note: z17.string().trim().min(1).refine((value) => new TextEncoder().encode(value).length <= 500, "Keep the note under 500 UTF-8 bytes.").describe("Reason for the credit grant."),
|
|
3460
|
+
confirm: z17.boolean().optional()
|
|
3268
3461
|
});
|
|
3269
3462
|
var creditGrantCapability = defineCapability({
|
|
3270
3463
|
id: "credits.grant",
|
|
@@ -3324,20 +3517,20 @@ var creditGrantCapability = defineCapability({
|
|
|
3324
3517
|
});
|
|
3325
3518
|
|
|
3326
3519
|
// ../../packages/capabilities/dist/capabilities/cli.js
|
|
3327
|
-
import { z as
|
|
3328
|
-
var emptyInput2 =
|
|
3520
|
+
import { z as z18 } from "zod";
|
|
3521
|
+
var emptyInput2 = z18.object({});
|
|
3329
3522
|
function requireCliRuntime(context) {
|
|
3330
3523
|
if (!context.cli) {
|
|
3331
3524
|
throw new Error("This capability must execute through the Ornn CLI runtime.");
|
|
3332
3525
|
}
|
|
3333
3526
|
return context.cli;
|
|
3334
3527
|
}
|
|
3335
|
-
var updateInput =
|
|
3336
|
-
$positionals:
|
|
3337
|
-
major:
|
|
3528
|
+
var updateInput = z18.object({
|
|
3529
|
+
$positionals: z18.array(z18.string()).max(0).default([]),
|
|
3530
|
+
major: z18.boolean().optional()
|
|
3338
3531
|
});
|
|
3339
|
-
var completionInput =
|
|
3340
|
-
$positionals:
|
|
3532
|
+
var completionInput = z18.object({
|
|
3533
|
+
$positionals: z18.tuple([z18.enum(["bash", "fish", "zsh"])])
|
|
3341
3534
|
}).transform(({ $positionals }) => ({ shell: $positionals[0] }));
|
|
3342
3535
|
var versionCapability = defineCapability({
|
|
3343
3536
|
id: "cli.version",
|
|
@@ -3478,23 +3671,23 @@ var cliShellCapabilities = [
|
|
|
3478
3671
|
];
|
|
3479
3672
|
|
|
3480
3673
|
// ../../packages/capabilities/dist/capabilities/clusters.js
|
|
3481
|
-
import { z as
|
|
3482
|
-
var clusterCliInput =
|
|
3483
|
-
$positionals:
|
|
3484
|
-
cursor:
|
|
3485
|
-
guided:
|
|
3486
|
-
idempotencyKey:
|
|
3487
|
-
limit:
|
|
3488
|
-
machine:
|
|
3489
|
-
machines:
|
|
3490
|
-
network:
|
|
3491
|
-
noWait:
|
|
3492
|
-
nodes:
|
|
3493
|
-
output:
|
|
3494
|
-
overwrite:
|
|
3495
|
-
timeout:
|
|
3496
|
-
wait:
|
|
3497
|
-
yes:
|
|
3674
|
+
import { z as z19 } from "zod";
|
|
3675
|
+
var clusterCliInput = z19.object({
|
|
3676
|
+
$positionals: z19.array(z19.string()).optional(),
|
|
3677
|
+
cursor: z19.string().optional(),
|
|
3678
|
+
guided: z19.boolean().optional(),
|
|
3679
|
+
idempotencyKey: z19.string().optional(),
|
|
3680
|
+
limit: z19.union([z19.string(), z19.number()]).optional(),
|
|
3681
|
+
machine: z19.string().optional(),
|
|
3682
|
+
machines: z19.string().optional(),
|
|
3683
|
+
network: z19.enum(["public", "private"]).optional(),
|
|
3684
|
+
noWait: z19.boolean().optional(),
|
|
3685
|
+
nodes: z19.union([z19.string(), z19.number()]).optional(),
|
|
3686
|
+
output: z19.string().optional(),
|
|
3687
|
+
overwrite: z19.boolean().optional(),
|
|
3688
|
+
timeout: z19.string().optional(),
|
|
3689
|
+
wait: z19.boolean().optional(),
|
|
3690
|
+
yes: z19.boolean().optional()
|
|
3498
3691
|
}).strict();
|
|
3499
3692
|
function executeCluster(command) {
|
|
3500
3693
|
return (context, input) => {
|
|
@@ -3533,13 +3726,13 @@ function clusterCliCapability({ acceptedReferences = [], automation, command, de
|
|
|
3533
3726
|
execute: executeCluster(id)
|
|
3534
3727
|
});
|
|
3535
3728
|
}
|
|
3536
|
-
var clusterType =
|
|
3537
|
-
var reservationCluster =
|
|
3538
|
-
var reservationWrite = reservationCluster.extend({ confirm:
|
|
3539
|
-
var controllerNode =
|
|
3540
|
-
controllerId:
|
|
3541
|
-
nodeId:
|
|
3542
|
-
confirm:
|
|
3729
|
+
var clusterType = z19.enum(["kubernetes", "slurm"]);
|
|
3730
|
+
var reservationCluster = z19.object({ reservationId: z19.string(), type: clusterType });
|
|
3731
|
+
var reservationWrite = reservationCluster.extend({ confirm: z19.boolean().optional() });
|
|
3732
|
+
var controllerNode = z19.object({
|
|
3733
|
+
controllerId: z19.string(),
|
|
3734
|
+
nodeId: z19.string(),
|
|
3735
|
+
confirm: z19.boolean().optional()
|
|
3543
3736
|
});
|
|
3544
3737
|
var clusterListCapability = defineCapability({
|
|
3545
3738
|
id: "clusters.list",
|
|
@@ -3547,7 +3740,7 @@ var clusterListCapability = defineCapability({
|
|
|
3547
3740
|
roles: ["user"],
|
|
3548
3741
|
description: "List this tenant's kubernetes/slurm clusters.",
|
|
3549
3742
|
mutation: "read",
|
|
3550
|
-
input:
|
|
3743
|
+
input: z19.object({}),
|
|
3551
3744
|
mcp: { name: "clusters_list" },
|
|
3552
3745
|
slack: false,
|
|
3553
3746
|
execute: (ctx) => listClusters(ctx.fetch),
|
|
@@ -3601,7 +3794,7 @@ var clusterTeardownCapability = defineCapability({
|
|
|
3601
3794
|
roles: ["user"],
|
|
3602
3795
|
description: "Tear down a kubernetes or slurm cluster on a reservation.",
|
|
3603
3796
|
mutation: "preview-confirm",
|
|
3604
|
-
input: reservationWrite.extend({ idempotencyKey:
|
|
3797
|
+
input: reservationWrite.extend({ idempotencyKey: z19.string().optional() }),
|
|
3605
3798
|
mcp: { name: "clusters_teardown", input: reservationWrite },
|
|
3606
3799
|
slack: false,
|
|
3607
3800
|
execute: (ctx, input) => teardownReservationCluster(ctx.fetch, input.type, input.reservationId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
|
|
@@ -3640,7 +3833,7 @@ var clusterAddNodeCapability = defineCapability({
|
|
|
3640
3833
|
roles: ["user"],
|
|
3641
3834
|
description: "Join a node to a controller.",
|
|
3642
3835
|
mutation: "preview-confirm",
|
|
3643
|
-
input: controllerNode.extend({ idempotencyKey:
|
|
3836
|
+
input: controllerNode.extend({ idempotencyKey: z19.string().optional() }),
|
|
3644
3837
|
mcp: { name: "clusters_add_node", input: controllerNode },
|
|
3645
3838
|
slack: false,
|
|
3646
3839
|
cli: {
|
|
@@ -3673,7 +3866,7 @@ var clusterRemoveNodeCapability = defineCapability({
|
|
|
3673
3866
|
roles: ["user"],
|
|
3674
3867
|
description: "Remove a node from a controller.",
|
|
3675
3868
|
mutation: "preview-confirm",
|
|
3676
|
-
input: controllerNode.extend({ idempotencyKey:
|
|
3869
|
+
input: controllerNode.extend({ idempotencyKey: z19.string().optional() }),
|
|
3677
3870
|
mcp: { name: "clusters_remove_node", input: controllerNode },
|
|
3678
3871
|
slack: false,
|
|
3679
3872
|
cli: {
|
|
@@ -3700,13 +3893,13 @@ var clusterRemoveNodeCapability = defineCapability({
|
|
|
3700
3893
|
},
|
|
3701
3894
|
execute: (ctx, input) => removeControllerNode(ctx.fetch, input.controllerId, input.nodeId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0)
|
|
3702
3895
|
});
|
|
3703
|
-
var clusterCreateInput =
|
|
3704
|
-
reservationId:
|
|
3896
|
+
var clusterCreateInput = z19.object({
|
|
3897
|
+
reservationId: z19.string(),
|
|
3705
3898
|
type: clusterType,
|
|
3706
|
-
networkMode:
|
|
3707
|
-
nodeIds:
|
|
3708
|
-
nodeCount:
|
|
3709
|
-
confirm:
|
|
3899
|
+
networkMode: z19.enum(["public", "private"]).optional(),
|
|
3900
|
+
nodeIds: z19.array(z19.string()).optional(),
|
|
3901
|
+
nodeCount: z19.number().int().positive().optional(),
|
|
3902
|
+
confirm: z19.boolean().optional()
|
|
3710
3903
|
}).strict();
|
|
3711
3904
|
var clusterCreateCapability = defineCapability({
|
|
3712
3905
|
id: "cluster.create",
|
|
@@ -3715,9 +3908,9 @@ var clusterCreateCapability = defineCapability({
|
|
|
3715
3908
|
description: "Launch a kubernetes or slurm cluster on a reservation.",
|
|
3716
3909
|
mutation: "preview-confirm",
|
|
3717
3910
|
input: clusterCreateInput.extend({
|
|
3718
|
-
virtualMachineIds:
|
|
3719
|
-
sshKeyIds:
|
|
3720
|
-
idempotencyKey:
|
|
3911
|
+
virtualMachineIds: z19.array(z19.string()).optional(),
|
|
3912
|
+
sshKeyIds: z19.array(z19.string()).optional(),
|
|
3913
|
+
idempotencyKey: z19.string().optional()
|
|
3721
3914
|
}),
|
|
3722
3915
|
mcp: { name: "clusters_create", input: clusterCreateInput },
|
|
3723
3916
|
slack: false,
|
|
@@ -3762,8 +3955,8 @@ var clusterCapabilities = [
|
|
|
3762
3955
|
roles: ["user"],
|
|
3763
3956
|
description: "List active reservations eligible for cluster creation (kubernetes/slurm), 100 per page. Pass the response's nextCursor as cursor for the next page.",
|
|
3764
3957
|
mutation: "read",
|
|
3765
|
-
input:
|
|
3766
|
-
cursor:
|
|
3958
|
+
input: z19.object({
|
|
3959
|
+
cursor: z19.string().min(1).optional().describe("nextCursor from the previous page.")
|
|
3767
3960
|
}),
|
|
3768
3961
|
mcp: { name: "clusters_reservations_list" },
|
|
3769
3962
|
slack: false,
|
|
@@ -3780,7 +3973,7 @@ var clusterCapabilities = [
|
|
|
3780
3973
|
roles: ["user"],
|
|
3781
3974
|
description: "Fetch the raw kubeconfig text for a kubernetes cluster reservation. Unlike `ornn clusters kubeconfig`, this does not write a file locally -- the caller is responsible for saving the returned text if needed.",
|
|
3782
3975
|
mutation: "read",
|
|
3783
|
-
input:
|
|
3976
|
+
input: z19.object({ reservationId: z19.string() }),
|
|
3784
3977
|
mcp: { name: "clusters_kubeconfig" },
|
|
3785
3978
|
slack: false,
|
|
3786
3979
|
execute: async (ctx, input) => {
|
|
@@ -3800,55 +3993,55 @@ var clusterCapabilities = [
|
|
|
3800
3993
|
];
|
|
3801
3994
|
|
|
3802
3995
|
// ../../packages/capabilities/dist/capabilities/external-buckets.js
|
|
3803
|
-
import { z as
|
|
3804
|
-
var pageInput2 =
|
|
3805
|
-
$positionals:
|
|
3806
|
-
cursor:
|
|
3807
|
-
limit:
|
|
3996
|
+
import { z as z20 } from "zod";
|
|
3997
|
+
var pageInput2 = z20.object({
|
|
3998
|
+
$positionals: z20.array(z20.string()).optional(),
|
|
3999
|
+
cursor: z20.string().optional(),
|
|
4000
|
+
limit: z20.union([z20.string(), z20.number()]).optional()
|
|
3808
4001
|
}).strict();
|
|
3809
|
-
var showInput =
|
|
3810
|
-
$positionals:
|
|
4002
|
+
var showInput = z20.object({
|
|
4003
|
+
$positionals: z20.array(z20.string()).optional()
|
|
3811
4004
|
}).strict();
|
|
3812
|
-
var verificationInput =
|
|
3813
|
-
$positionals:
|
|
3814
|
-
idempotencyKey:
|
|
4005
|
+
var verificationInput = z20.object({
|
|
4006
|
+
$positionals: z20.array(z20.string()).optional(),
|
|
4007
|
+
idempotencyKey: z20.string().optional()
|
|
3815
4008
|
}).strict();
|
|
3816
|
-
var disconnectInput =
|
|
3817
|
-
$positionals:
|
|
3818
|
-
idempotencyKey:
|
|
3819
|
-
yes:
|
|
4009
|
+
var disconnectInput = z20.object({
|
|
4010
|
+
$positionals: z20.array(z20.string()).optional(),
|
|
4011
|
+
idempotencyKey: z20.string().optional(),
|
|
4012
|
+
yes: z20.boolean().optional()
|
|
3820
4013
|
}).strict();
|
|
3821
|
-
var connectInput =
|
|
3822
|
-
$positionals:
|
|
3823
|
-
accessKeyId:
|
|
3824
|
-
accountId:
|
|
3825
|
-
bucket:
|
|
3826
|
-
endpointUrl:
|
|
3827
|
-
idempotencyKey:
|
|
3828
|
-
name:
|
|
3829
|
-
prefix:
|
|
3830
|
-
readOnly:
|
|
3831
|
-
readWrite:
|
|
3832
|
-
region:
|
|
3833
|
-
secretAccessKeyFile:
|
|
3834
|
-
url:
|
|
3835
|
-
yes:
|
|
4014
|
+
var connectInput = z20.object({
|
|
4015
|
+
$positionals: z20.array(z20.string()).optional(),
|
|
4016
|
+
accessKeyId: z20.string().optional(),
|
|
4017
|
+
accountId: z20.string().optional(),
|
|
4018
|
+
bucket: z20.string().optional(),
|
|
4019
|
+
endpointUrl: z20.string().optional(),
|
|
4020
|
+
idempotencyKey: z20.string().optional(),
|
|
4021
|
+
name: z20.string().optional(),
|
|
4022
|
+
prefix: z20.string().optional(),
|
|
4023
|
+
readOnly: z20.boolean().optional(),
|
|
4024
|
+
readWrite: z20.boolean().optional(),
|
|
4025
|
+
region: z20.string().optional(),
|
|
4026
|
+
secretAccessKeyFile: z20.string().optional(),
|
|
4027
|
+
url: z20.string().optional(),
|
|
4028
|
+
yes: z20.boolean().optional()
|
|
3836
4029
|
}).strict();
|
|
3837
|
-
var credentialInput =
|
|
3838
|
-
$positionals:
|
|
3839
|
-
accessKeyId:
|
|
3840
|
-
idempotencyKey:
|
|
3841
|
-
secretAccessKeyFile:
|
|
3842
|
-
yes:
|
|
4030
|
+
var credentialInput = z20.object({
|
|
4031
|
+
$positionals: z20.array(z20.string()).optional(),
|
|
4032
|
+
accessKeyId: z20.string().optional(),
|
|
4033
|
+
idempotencyKey: z20.string().optional(),
|
|
4034
|
+
secretAccessKeyFile: z20.string().optional(),
|
|
4035
|
+
yes: z20.boolean().optional()
|
|
3843
4036
|
}).strict();
|
|
3844
|
-
var importInput =
|
|
3845
|
-
$positionals:
|
|
3846
|
-
idempotencyKey:
|
|
3847
|
-
noWait:
|
|
3848
|
-
reservation:
|
|
3849
|
-
timeout:
|
|
3850
|
-
wait:
|
|
3851
|
-
yes:
|
|
4037
|
+
var importInput = z20.object({
|
|
4038
|
+
$positionals: z20.array(z20.string()).optional(),
|
|
4039
|
+
idempotencyKey: z20.string().optional(),
|
|
4040
|
+
noWait: z20.boolean().optional(),
|
|
4041
|
+
reservation: z20.string().optional(),
|
|
4042
|
+
timeout: z20.string().optional(),
|
|
4043
|
+
wait: z20.boolean().optional(),
|
|
4044
|
+
yes: z20.boolean().optional()
|
|
3852
4045
|
}).strict();
|
|
3853
4046
|
function externalBucketExecutor(context) {
|
|
3854
4047
|
const interaction = context.cli?.interaction;
|
|
@@ -3864,16 +4057,16 @@ function isExternalBucket(drive) {
|
|
|
3864
4057
|
return false;
|
|
3865
4058
|
return ["external_gcs", "s3", "r2", "cloudflare_r2"].includes(source.provider ?? "") || Boolean(source.bucket);
|
|
3866
4059
|
}
|
|
3867
|
-
var bucketInput =
|
|
4060
|
+
var bucketInput = z20.object({ driveId: z20.string() });
|
|
3868
4061
|
var bucketListCapability = defineCapability({
|
|
3869
4062
|
id: "storage.external-buckets.list",
|
|
3870
4063
|
domain: "storage",
|
|
3871
4064
|
roles: ["user"],
|
|
3872
4065
|
description: "List a page of connected external buckets. Pass next_cursor as cursor to continue.",
|
|
3873
4066
|
mutation: "read",
|
|
3874
|
-
input:
|
|
3875
|
-
limit:
|
|
3876
|
-
cursor:
|
|
4067
|
+
input: z20.object({
|
|
4068
|
+
limit: z20.number().int().min(1).max(100).optional(),
|
|
4069
|
+
cursor: z20.string().optional()
|
|
3877
4070
|
}),
|
|
3878
4071
|
mcp: { name: "storage_buckets_list" },
|
|
3879
4072
|
slack: false,
|
|
@@ -3968,18 +4161,18 @@ var bucketDisconnectCapability = defineCapability({
|
|
|
3968
4161
|
}
|
|
3969
4162
|
}
|
|
3970
4163
|
});
|
|
3971
|
-
var bucketConnectInput =
|
|
3972
|
-
provider:
|
|
3973
|
-
bucket:
|
|
3974
|
-
name:
|
|
3975
|
-
prefix:
|
|
3976
|
-
region:
|
|
3977
|
-
endpointUrl:
|
|
3978
|
-
accountId:
|
|
3979
|
-
accessKeyId:
|
|
3980
|
-
secretAccessKey:
|
|
3981
|
-
readOnly:
|
|
3982
|
-
confirm:
|
|
4164
|
+
var bucketConnectInput = z20.object({
|
|
4165
|
+
provider: z20.enum(["gcs", "s3", "r2"]),
|
|
4166
|
+
bucket: z20.string(),
|
|
4167
|
+
name: z20.string().optional(),
|
|
4168
|
+
prefix: z20.string().optional(),
|
|
4169
|
+
region: z20.string().optional(),
|
|
4170
|
+
endpointUrl: z20.string().optional(),
|
|
4171
|
+
accountId: z20.string().optional(),
|
|
4172
|
+
accessKeyId: z20.string().optional(),
|
|
4173
|
+
secretAccessKey: z20.string().optional(),
|
|
4174
|
+
readOnly: z20.boolean().optional(),
|
|
4175
|
+
confirm: z20.boolean().optional()
|
|
3983
4176
|
}).refine((input) => !(input.provider === "gcs" && (input.accessKeyId || input.secretAccessKey)), {
|
|
3984
4177
|
message: "Access key credentials are only supported for S3-compatible buckets."
|
|
3985
4178
|
}).refine((input) => Boolean(input.accessKeyId) === Boolean(input.secretAccessKey), {
|
|
@@ -3987,10 +4180,10 @@ var bucketConnectInput = z19.object({
|
|
|
3987
4180
|
}).refine((input) => input.provider !== "r2" || Boolean(input.endpointUrl || input.accountId), {
|
|
3988
4181
|
message: "R2 buckets require either --endpointUrl or --accountId."
|
|
3989
4182
|
});
|
|
3990
|
-
var bucketWriteInput = bucketInput.extend({ confirm:
|
|
4183
|
+
var bucketWriteInput = bucketInput.extend({ confirm: z20.boolean().optional() });
|
|
3991
4184
|
var bucketCredentialInput = bucketWriteInput.extend({
|
|
3992
|
-
accessKeyId:
|
|
3993
|
-
secretAccessKey:
|
|
4185
|
+
accessKeyId: z20.string(),
|
|
4186
|
+
secretAccessKey: z20.string()
|
|
3994
4187
|
});
|
|
3995
4188
|
var bucketConnectCapability = defineCapability({
|
|
3996
4189
|
id: "storage.external-buckets.connect",
|
|
@@ -3998,7 +4191,7 @@ var bucketConnectCapability = defineCapability({
|
|
|
3998
4191
|
roles: ["user"],
|
|
3999
4192
|
description: "Connect an external bucket (GCS, S3, or Cloudflare R2) as a storage volume. Cloudflare R2 deployment support is coming soon (connect succeeds, but deployment is not yet available).",
|
|
4000
4193
|
mutation: "preview-confirm",
|
|
4001
|
-
input: bucketConnectInput.safeExtend({ idempotencyKey:
|
|
4194
|
+
input: bucketConnectInput.safeExtend({ idempotencyKey: z20.string().optional() }),
|
|
4002
4195
|
mcp: { name: "storage_buckets_connect", input: bucketConnectInput },
|
|
4003
4196
|
slack: false,
|
|
4004
4197
|
execute: (context, input) => {
|
|
@@ -4042,7 +4235,7 @@ var bucketUpdateCredentialsCapability = defineCapability({
|
|
|
4042
4235
|
roles: ["user"],
|
|
4043
4236
|
description: "Update a connected S3-compatible bucket's access key credentials.",
|
|
4044
4237
|
mutation: "preview-confirm",
|
|
4045
|
-
input: bucketCredentialInput.extend({ idempotencyKey:
|
|
4238
|
+
input: bucketCredentialInput.extend({ idempotencyKey: z20.string().optional() }),
|
|
4046
4239
|
mcp: { name: "storage_buckets_update_credentials", input: bucketCredentialInput },
|
|
4047
4240
|
slack: false,
|
|
4048
4241
|
execute: (context, input) => updateDrive(context.fetch, input.driveId, {
|
|
@@ -4075,7 +4268,7 @@ var bucketVerifyCapability = defineCapability({
|
|
|
4075
4268
|
roles: ["user"],
|
|
4076
4269
|
description: "Verify a connected S3-compatible bucket's source credentials/connectivity.",
|
|
4077
4270
|
mutation: "preview-confirm",
|
|
4078
|
-
input: bucketWriteInput.extend({ idempotencyKey:
|
|
4271
|
+
input: bucketWriteInput.extend({ idempotencyKey: z20.string().optional() }),
|
|
4079
4272
|
mcp: { name: "storage_buckets_verify", input: bucketWriteInput },
|
|
4080
4273
|
slack: false,
|
|
4081
4274
|
execute: (context, input) => updateDrive(context.fetch, input.driveId, { verify_source: true }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
|
|
@@ -4133,22 +4326,22 @@ var externalBucketCapabilities = [
|
|
|
4133
4326
|
];
|
|
4134
4327
|
|
|
4135
4328
|
// ../../packages/capabilities/dist/capabilities/evidence.js
|
|
4136
|
-
import { z as
|
|
4137
|
-
var positionals3 =
|
|
4138
|
-
var evidenceInput =
|
|
4329
|
+
import { z as z21 } from "zod";
|
|
4330
|
+
var positionals3 = z21.array(z21.string()).default([]);
|
|
4331
|
+
var evidenceInput = z21.object({
|
|
4139
4332
|
$positionals: positionals3,
|
|
4140
|
-
before:
|
|
4141
|
-
count:
|
|
4142
|
-
cursor:
|
|
4143
|
-
end:
|
|
4144
|
-
follow:
|
|
4145
|
-
guided:
|
|
4146
|
-
interval:
|
|
4147
|
-
limit:
|
|
4148
|
-
maxPoints:
|
|
4149
|
-
start:
|
|
4150
|
-
stream:
|
|
4151
|
-
timeout:
|
|
4333
|
+
before: z21.string().optional(),
|
|
4334
|
+
count: z21.string().optional(),
|
|
4335
|
+
cursor: z21.string().optional(),
|
|
4336
|
+
end: z21.string().optional(),
|
|
4337
|
+
follow: z21.boolean().optional(),
|
|
4338
|
+
guided: z21.boolean().optional(),
|
|
4339
|
+
interval: z21.string().optional(),
|
|
4340
|
+
limit: z21.string().optional(),
|
|
4341
|
+
maxPoints: z21.string().optional(),
|
|
4342
|
+
start: z21.string().optional(),
|
|
4343
|
+
stream: z21.enum(["kernel", "serial"]).optional(),
|
|
4344
|
+
timeout: z21.string().optional()
|
|
4152
4345
|
}).strict();
|
|
4153
4346
|
function runtime2(context) {
|
|
4154
4347
|
const interaction = context.cli?.interaction;
|
|
@@ -4277,13 +4470,13 @@ var evidenceCapabilities = [
|
|
|
4277
4470
|
];
|
|
4278
4471
|
|
|
4279
4472
|
// ../../packages/api-client/dist/authorization/paths.js
|
|
4280
|
-
function withQuery(
|
|
4473
|
+
function withQuery(path3, values) {
|
|
4281
4474
|
const query3 = new URLSearchParams();
|
|
4282
4475
|
for (const [key, value] of Object.entries(values)) {
|
|
4283
4476
|
if (value !== void 0 && value !== null && value !== "")
|
|
4284
4477
|
query3.set(key, Array.isArray(value) ? value.join(",") : String(value));
|
|
4285
4478
|
}
|
|
4286
|
-
return query3.size ? `${
|
|
4479
|
+
return query3.size ? `${path3}?${query3}` : path3;
|
|
4287
4480
|
}
|
|
4288
4481
|
|
|
4289
4482
|
// ../../packages/api-client/dist/authorization/organizations.js
|
|
@@ -4314,46 +4507,46 @@ function getCliSession(request) {
|
|
|
4314
4507
|
}
|
|
4315
4508
|
|
|
4316
4509
|
// ../../packages/capabilities/dist/capabilities/fleet.js
|
|
4317
|
-
import { z as
|
|
4318
|
-
var suppliersInput =
|
|
4319
|
-
q:
|
|
4320
|
-
offset:
|
|
4321
|
-
limit:
|
|
4322
|
-
});
|
|
4323
|
-
var facilitiesInput =
|
|
4324
|
-
organization_id:
|
|
4325
|
-
cursor:
|
|
4326
|
-
limit:
|
|
4327
|
-
});
|
|
4328
|
-
var nodesInput =
|
|
4329
|
-
organization_id:
|
|
4330
|
-
facility_id:
|
|
4331
|
-
status:
|
|
4332
|
-
reservation_id:
|
|
4333
|
-
cursor:
|
|
4334
|
-
max:
|
|
4335
|
-
limit:
|
|
4336
|
-
});
|
|
4337
|
-
var nodeLifecycleInput =
|
|
4338
|
-
node_id:
|
|
4339
|
-
maintenance_batch_id:
|
|
4340
|
-
node_ref:
|
|
4341
|
-
reason:
|
|
4342
|
-
delete_node_record:
|
|
4343
|
-
idempotency_key:
|
|
4344
|
-
yes:
|
|
4345
|
-
wait:
|
|
4346
|
-
timeout_seconds:
|
|
4347
|
-
});
|
|
4348
|
-
var nodeExecRemoteInput =
|
|
4349
|
-
node_id:
|
|
4350
|
-
host:
|
|
4351
|
-
username:
|
|
4352
|
-
port:
|
|
4353
|
-
private_key:
|
|
4354
|
-
command:
|
|
4355
|
-
timeout_seconds:
|
|
4356
|
-
yes:
|
|
4510
|
+
import { z as z22 } from "zod";
|
|
4511
|
+
var suppliersInput = z22.object({
|
|
4512
|
+
q: z22.string().optional(),
|
|
4513
|
+
offset: z22.number().int().min(0).optional(),
|
|
4514
|
+
limit: z22.number().int().min(1).max(1e3).optional()
|
|
4515
|
+
});
|
|
4516
|
+
var facilitiesInput = z22.object({
|
|
4517
|
+
organization_id: z22.string().optional(),
|
|
4518
|
+
cursor: z22.string().optional(),
|
|
4519
|
+
limit: z22.number().int().min(1).max(100).optional()
|
|
4520
|
+
});
|
|
4521
|
+
var nodesInput = z22.object({
|
|
4522
|
+
organization_id: z22.string().optional(),
|
|
4523
|
+
facility_id: z22.string().optional(),
|
|
4524
|
+
status: z22.string().optional(),
|
|
4525
|
+
reservation_id: z22.string().optional(),
|
|
4526
|
+
cursor: z22.string().optional(),
|
|
4527
|
+
max: z22.number().int().positive().max(5e3).optional(),
|
|
4528
|
+
limit: z22.number().int().positive().max(5e3).optional()
|
|
4529
|
+
});
|
|
4530
|
+
var nodeLifecycleInput = z22.object({
|
|
4531
|
+
node_id: z22.string().min(1),
|
|
4532
|
+
maintenance_batch_id: z22.string().uuid().optional(),
|
|
4533
|
+
node_ref: z22.string().optional(),
|
|
4534
|
+
reason: z22.string().optional(),
|
|
4535
|
+
delete_node_record: z22.literal(true).optional(),
|
|
4536
|
+
idempotency_key: z22.string().optional(),
|
|
4537
|
+
yes: z22.boolean().optional(),
|
|
4538
|
+
wait: z22.boolean().optional(),
|
|
4539
|
+
timeout_seconds: z22.number().positive().optional()
|
|
4540
|
+
});
|
|
4541
|
+
var nodeExecRemoteInput = z22.object({
|
|
4542
|
+
node_id: z22.string().min(1).optional(),
|
|
4543
|
+
host: z22.string().min(1).optional(),
|
|
4544
|
+
username: z22.string().min(1).optional(),
|
|
4545
|
+
port: z22.number().int().min(1).max(65535).optional(),
|
|
4546
|
+
private_key: z22.string().min(1).optional(),
|
|
4547
|
+
command: z22.string().min(1),
|
|
4548
|
+
timeout_seconds: z22.number().int().positive(),
|
|
4549
|
+
yes: z22.boolean().optional()
|
|
4357
4550
|
});
|
|
4358
4551
|
var listSuppliersCapability = defineCapability({
|
|
4359
4552
|
id: "supplier.list",
|
|
@@ -4450,7 +4643,7 @@ var listFacilitiesCapability = defineCapability({
|
|
|
4450
4643
|
});
|
|
4451
4644
|
}
|
|
4452
4645
|
});
|
|
4453
|
-
var facilityShowInput =
|
|
4646
|
+
var facilityShowInput = z22.object({ facilityId: z22.uuid() });
|
|
4454
4647
|
var facilityShowCapability = defineCapability({
|
|
4455
4648
|
id: "facilities.show",
|
|
4456
4649
|
domain: "fleet",
|
|
@@ -4542,12 +4735,12 @@ var listNodesCapability = defineCapability({
|
|
|
4542
4735
|
});
|
|
4543
4736
|
}
|
|
4544
4737
|
});
|
|
4545
|
-
var nodeExecInput =
|
|
4546
|
-
node_id:
|
|
4738
|
+
var nodeExecInput = z22.object({
|
|
4739
|
+
node_id: z22.string().min(1).refine((value) => value === value.trim(), {
|
|
4547
4740
|
message: "node_id must be an exact canonical node ID without surrounding whitespace"
|
|
4548
4741
|
}),
|
|
4549
|
-
command:
|
|
4550
|
-
timeout_seconds:
|
|
4742
|
+
command: z22.string().min(1),
|
|
4743
|
+
timeout_seconds: z22.number().int().min(1).max(900)
|
|
4551
4744
|
});
|
|
4552
4745
|
var nodeExecCapability = defineCapability({
|
|
4553
4746
|
id: "node.exec",
|
|
@@ -4650,8 +4843,8 @@ var fleetCapabilities = [
|
|
|
4650
4843
|
];
|
|
4651
4844
|
|
|
4652
4845
|
// ../../packages/capabilities/dist/capabilities/metrics.js
|
|
4653
|
-
import { z as
|
|
4654
|
-
var metricInput =
|
|
4846
|
+
import { z as z23 } from "zod";
|
|
4847
|
+
var metricInput = z23.object({ reservationId: z23.string(), machineId: z23.string().optional() });
|
|
4655
4848
|
async function nodeIds(context, input) {
|
|
4656
4849
|
if (input.machineId)
|
|
4657
4850
|
return [input.machineId];
|
|
@@ -4687,9 +4880,9 @@ var metricsHistoryCapability = defineCapability({
|
|
|
4687
4880
|
mutation: "read",
|
|
4688
4881
|
description: "Fetch historical telemetry for a reservation's machine over a time range. machineId is optional: omit it to use the first active machine on the reservation.",
|
|
4689
4882
|
input: metricInput.extend({
|
|
4690
|
-
start:
|
|
4691
|
-
end:
|
|
4692
|
-
maxPoints:
|
|
4883
|
+
start: z23.string().optional(),
|
|
4884
|
+
end: z23.string().optional(),
|
|
4885
|
+
maxPoints: z23.number().int().positive().optional()
|
|
4693
4886
|
}),
|
|
4694
4887
|
slack: false,
|
|
4695
4888
|
execute: async (context, input) => {
|
|
@@ -4705,18 +4898,18 @@ var metricsHistoryCapability = defineCapability({
|
|
|
4705
4898
|
var metricsCapabilities = [metricsSnapshotCapability, metricsHistoryCapability];
|
|
4706
4899
|
|
|
4707
4900
|
// ../../packages/capabilities/dist/capabilities/mounts.js
|
|
4708
|
-
import { z as
|
|
4709
|
-
var mountCliInput =
|
|
4710
|
-
$positionals:
|
|
4711
|
-
access:
|
|
4712
|
-
cursor:
|
|
4713
|
-
idempotencyKey:
|
|
4714
|
-
limit:
|
|
4715
|
-
noWait:
|
|
4716
|
-
timeout:
|
|
4717
|
-
volume:
|
|
4718
|
-
wait:
|
|
4719
|
-
yes:
|
|
4901
|
+
import { z as z24 } from "zod";
|
|
4902
|
+
var mountCliInput = z24.object({
|
|
4903
|
+
$positionals: z24.array(z24.string()).default([]),
|
|
4904
|
+
access: z24.string().optional(),
|
|
4905
|
+
cursor: z24.string().optional(),
|
|
4906
|
+
idempotencyKey: z24.string().optional(),
|
|
4907
|
+
limit: z24.union([z24.string(), z24.number()]).optional(),
|
|
4908
|
+
noWait: z24.boolean().optional(),
|
|
4909
|
+
timeout: z24.string().optional(),
|
|
4910
|
+
volume: z24.string().optional(),
|
|
4911
|
+
wait: z24.boolean().optional(),
|
|
4912
|
+
yes: z24.boolean().optional()
|
|
4720
4913
|
}).strict();
|
|
4721
4914
|
function executeMount(command) {
|
|
4722
4915
|
return (context, input) => {
|
|
@@ -4730,11 +4923,11 @@ function executeMount(command) {
|
|
|
4730
4923
|
function mutationOptions(idempotencyKey) {
|
|
4731
4924
|
return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
|
|
4732
4925
|
}
|
|
4733
|
-
var reservationInput =
|
|
4734
|
-
var reservationWrite2 = reservationInput.extend({ confirm:
|
|
4926
|
+
var reservationInput = z24.object({ reservationId: z24.string() });
|
|
4927
|
+
var reservationWrite2 = reservationInput.extend({ confirm: z24.boolean().optional() });
|
|
4735
4928
|
var attachInput = reservationWrite2.extend({
|
|
4736
|
-
driveId:
|
|
4737
|
-
readOnly:
|
|
4929
|
+
driveId: z24.string(),
|
|
4930
|
+
readOnly: z24.boolean().optional()
|
|
4738
4931
|
});
|
|
4739
4932
|
var volumeMountCandidatesCapability = defineCapability({
|
|
4740
4933
|
id: "storage.volume-mounts.candidates",
|
|
@@ -4742,7 +4935,7 @@ var volumeMountCandidatesCapability = defineCapability({
|
|
|
4742
4935
|
roles: ["user"],
|
|
4743
4936
|
description: "List reservations that can receive a storage deploy, grouped the same way as the console picker.",
|
|
4744
4937
|
mutation: "read",
|
|
4745
|
-
input:
|
|
4938
|
+
input: z24.object({}),
|
|
4746
4939
|
mcp: { name: "storage_targets" },
|
|
4747
4940
|
slack: false,
|
|
4748
4941
|
cli: {
|
|
@@ -4799,9 +4992,9 @@ var volumeMountAttachCapability = defineCapability({
|
|
|
4799
4992
|
description: "Attach an existing storage volume (drive) to a reservation -- the inverse of storage_undeploy. Always mounts at the platform path /home/tenant/volume (fuse). There is no customer mount-path override.",
|
|
4800
4993
|
mutation: "preview-confirm",
|
|
4801
4994
|
input: attachInput.extend({
|
|
4802
|
-
mountPath:
|
|
4803
|
-
mountMode:
|
|
4804
|
-
idempotencyKey:
|
|
4995
|
+
mountPath: z24.string().optional(),
|
|
4996
|
+
mountMode: z24.literal("fuse").optional(),
|
|
4997
|
+
idempotencyKey: z24.string().optional()
|
|
4805
4998
|
}),
|
|
4806
4999
|
mcp: { name: "storage_deploy", input: attachInput },
|
|
4807
5000
|
slack: false,
|
|
@@ -4839,7 +5032,7 @@ var volumeMountDetachCapability = defineCapability({
|
|
|
4839
5032
|
roles: ["user"],
|
|
4840
5033
|
description: "Detach the reservation storage attachment (after unmount) so the volume can be deleted.",
|
|
4841
5034
|
mutation: "preview-confirm",
|
|
4842
|
-
input: reservationWrite2.extend({ idempotencyKey:
|
|
5035
|
+
input: reservationWrite2.extend({ idempotencyKey: z24.string().optional() }),
|
|
4843
5036
|
mcp: { name: "storage_undeploy", input: reservationWrite2 },
|
|
4844
5037
|
slack: false,
|
|
4845
5038
|
cli: {
|
|
@@ -4896,13 +5089,13 @@ var mountCapabilities = [
|
|
|
4896
5089
|
];
|
|
4897
5090
|
|
|
4898
5091
|
// ../../packages/capabilities/dist/capabilities/identity.js
|
|
4899
|
-
import { z as
|
|
4900
|
-
var emptyInput3 =
|
|
4901
|
-
var loginInput =
|
|
4902
|
-
authBase:
|
|
4903
|
-
noBrowser:
|
|
4904
|
-
pollInterval:
|
|
4905
|
-
timeout:
|
|
5092
|
+
import { z as z25 } from "zod";
|
|
5093
|
+
var emptyInput3 = z25.object({});
|
|
5094
|
+
var loginInput = z25.object({
|
|
5095
|
+
authBase: z25.string().min(1).optional(),
|
|
5096
|
+
noBrowser: z25.boolean().optional(),
|
|
5097
|
+
pollInterval: z25.number().positive().optional(),
|
|
5098
|
+
timeout: z25.number().positive().optional()
|
|
4906
5099
|
});
|
|
4907
5100
|
function executeSession(context, command, input) {
|
|
4908
5101
|
if (!context.cli?.session) {
|
|
@@ -5021,50 +5214,50 @@ var identityCapabilities = [
|
|
|
5021
5214
|
];
|
|
5022
5215
|
|
|
5023
5216
|
// ../../packages/capabilities/dist/capabilities/listings.js
|
|
5024
|
-
import { z as
|
|
5025
|
-
var listingCreateInput =
|
|
5026
|
-
organizationId:
|
|
5027
|
-
organization_id:
|
|
5028
|
-
facilityId:
|
|
5029
|
-
facility_id:
|
|
5030
|
-
kind:
|
|
5031
|
-
gpu:
|
|
5032
|
-
cpu:
|
|
5033
|
-
site:
|
|
5034
|
-
fabric:
|
|
5035
|
-
min_nodes:
|
|
5036
|
-
starts_after:
|
|
5037
|
-
starts_before:
|
|
5038
|
-
ends_after:
|
|
5039
|
-
ends_before:
|
|
5040
|
-
gpu_type:
|
|
5041
|
-
node_model:
|
|
5042
|
-
fabric_type:
|
|
5043
|
-
node_count:
|
|
5044
|
-
gpus_per_node:
|
|
5045
|
-
cores_per_node:
|
|
5046
|
-
site_nickname:
|
|
5047
|
-
site_supplier:
|
|
5048
|
-
ram:
|
|
5049
|
-
storage:
|
|
5050
|
-
internet:
|
|
5051
|
-
network_hardware:
|
|
5052
|
-
available_start_at:
|
|
5053
|
-
available_end_at:
|
|
5054
|
-
available_from:
|
|
5055
|
-
available_to:
|
|
5056
|
-
buy_now_price_per_gpu_hour:
|
|
5057
|
-
deposit_percent:
|
|
5058
|
-
down_payment_cents:
|
|
5059
|
-
access_mode:
|
|
5060
|
-
state:
|
|
5061
|
-
price_omitted:
|
|
5062
|
-
announce:
|
|
5063
|
-
text:
|
|
5064
|
-
confirm:
|
|
5065
|
-
idempotencyKey:
|
|
5066
|
-
});
|
|
5067
|
-
var catalogTermsInput =
|
|
5217
|
+
import { z as z26 } from "zod";
|
|
5218
|
+
var listingCreateInput = z26.object({
|
|
5219
|
+
organizationId: z26.string().optional(),
|
|
5220
|
+
organization_id: z26.string().optional(),
|
|
5221
|
+
facilityId: z26.string().optional(),
|
|
5222
|
+
facility_id: z26.string().optional(),
|
|
5223
|
+
kind: z26.enum(["gpu", "cpu", "node", "link"]).optional(),
|
|
5224
|
+
gpu: z26.string().optional(),
|
|
5225
|
+
cpu: z26.string().optional(),
|
|
5226
|
+
site: z26.string().optional(),
|
|
5227
|
+
fabric: z26.string().optional(),
|
|
5228
|
+
min_nodes: z26.number().int().optional(),
|
|
5229
|
+
starts_after: z26.string().optional(),
|
|
5230
|
+
starts_before: z26.string().optional(),
|
|
5231
|
+
ends_after: z26.string().optional(),
|
|
5232
|
+
ends_before: z26.string().optional(),
|
|
5233
|
+
gpu_type: z26.string().optional(),
|
|
5234
|
+
node_model: z26.string().optional(),
|
|
5235
|
+
fabric_type: z26.string().optional(),
|
|
5236
|
+
node_count: z26.number().int().optional(),
|
|
5237
|
+
gpus_per_node: z26.number().int().optional(),
|
|
5238
|
+
cores_per_node: z26.number().int().optional().describe('CPU listings: cores per node (2 vCPUs each), at least 1, priced per vCPU-hour. Omit gpu_type or set it to "cpu".'),
|
|
5239
|
+
site_nickname: z26.string().optional().describe("A state, city, address, or catalog region such as us-west-3."),
|
|
5240
|
+
site_supplier: z26.string().optional(),
|
|
5241
|
+
ram: z26.string().optional(),
|
|
5242
|
+
storage: z26.string().optional(),
|
|
5243
|
+
internet: z26.string().optional(),
|
|
5244
|
+
network_hardware: z26.string().optional(),
|
|
5245
|
+
available_start_at: z26.string().optional().describe("Start of the availability window. YYYY-MM-DD or RFC3339."),
|
|
5246
|
+
available_end_at: z26.string().optional().describe("End of the availability window. YYYY-MM-DD or RFC3339."),
|
|
5247
|
+
available_from: z26.string().optional().describe("Alias for available_start_at."),
|
|
5248
|
+
available_to: z26.string().optional().describe("Alias for available_end_at."),
|
|
5249
|
+
buy_now_price_per_gpu_hour: z26.number().optional().describe("Price buyers pay, USD per GPU-hour (per vCPU-hour on CPU listings)."),
|
|
5250
|
+
deposit_percent: z26.number().optional(),
|
|
5251
|
+
down_payment_cents: z26.number().int().nonnegative().optional(),
|
|
5252
|
+
access_mode: z26.enum(["bare-metal", "virtual-machine"]).optional(),
|
|
5253
|
+
state: z26.enum(["available", "draft"]).optional(),
|
|
5254
|
+
price_omitted: z26.boolean().optional(),
|
|
5255
|
+
announce: z26.boolean().optional(),
|
|
5256
|
+
text: z26.string().optional(),
|
|
5257
|
+
confirm: z26.boolean().optional(),
|
|
5258
|
+
idempotencyKey: z26.string().min(1).max(200).optional()
|
|
5259
|
+
});
|
|
5260
|
+
var catalogTermsInput = z26.object({ kind: z26.enum(["gpu", "cpu", "node", "link"]).optional() });
|
|
5068
5261
|
var slackListingCreateParams = {
|
|
5069
5262
|
type: "object",
|
|
5070
5263
|
properties: {
|
|
@@ -5366,13 +5559,13 @@ var listingCapabilities = [
|
|
|
5366
5559
|
// ../../packages/api-client/dist/observability/index.js
|
|
5367
5560
|
var base2 = "/v1/observability";
|
|
5368
5561
|
var nodePath = (id) => `${base2}/nodes/${encodeURIComponent(id)}`;
|
|
5369
|
-
function queryPath2(
|
|
5562
|
+
function queryPath2(path3, input) {
|
|
5370
5563
|
const query3 = new URLSearchParams();
|
|
5371
5564
|
for (const [key, value] of Object.entries(input)) {
|
|
5372
5565
|
if (value !== void 0)
|
|
5373
5566
|
query3.set(key, String(value));
|
|
5374
5567
|
}
|
|
5375
|
-
return query3.size ? `${
|
|
5568
|
+
return query3.size ? `${path3}?${query3}` : path3;
|
|
5376
5569
|
}
|
|
5377
5570
|
function getNodeLatestTelemetry(request, id, input = {}, signal) {
|
|
5378
5571
|
return request(queryPath2(`${nodePath(id)}/telemetry/latest`, input), {
|
|
@@ -5407,38 +5600,38 @@ function nodeLogsSubscribePath(id, stream) {
|
|
|
5407
5600
|
}
|
|
5408
5601
|
|
|
5409
5602
|
// ../../packages/capabilities/dist/capabilities/observability.js
|
|
5410
|
-
import { z as
|
|
5411
|
-
function tailPath(
|
|
5603
|
+
import { z as z27 } from "zod";
|
|
5604
|
+
function tailPath(path3, input) {
|
|
5412
5605
|
const query3 = new URLSearchParams({
|
|
5413
5606
|
duration: String(input.duration ?? 20),
|
|
5414
5607
|
max_events: String(input.max_events ?? 40)
|
|
5415
5608
|
});
|
|
5416
|
-
return `${
|
|
5417
|
-
}
|
|
5418
|
-
var latestInput =
|
|
5419
|
-
node_id:
|
|
5420
|
-
start:
|
|
5421
|
-
end:
|
|
5422
|
-
span:
|
|
5423
|
-
max_points:
|
|
5424
|
-
metrics:
|
|
5425
|
-
});
|
|
5426
|
-
var logsLatestInput =
|
|
5427
|
-
node_id:
|
|
5428
|
-
stream:
|
|
5429
|
-
count:
|
|
5430
|
-
before:
|
|
5431
|
-
start:
|
|
5432
|
-
cursor:
|
|
5433
|
-
});
|
|
5434
|
-
var tailInput =
|
|
5435
|
-
node_id:
|
|
5436
|
-
duration:
|
|
5437
|
-
max_events:
|
|
5438
|
-
fields:
|
|
5609
|
+
return `${path3}${path3.includes("?") ? "&" : "?"}${query3}`;
|
|
5610
|
+
}
|
|
5611
|
+
var latestInput = z27.object({
|
|
5612
|
+
node_id: z27.string().min(1),
|
|
5613
|
+
start: z27.string().optional(),
|
|
5614
|
+
end: z27.string().optional(),
|
|
5615
|
+
span: z27.string().optional(),
|
|
5616
|
+
max_points: z27.number().int().min(1).max(500).optional(),
|
|
5617
|
+
metrics: z27.string().optional()
|
|
5618
|
+
});
|
|
5619
|
+
var logsLatestInput = z27.object({
|
|
5620
|
+
node_id: z27.string().min(1),
|
|
5621
|
+
stream: z27.enum(["serial", "kernel"]).default("kernel"),
|
|
5622
|
+
count: z27.number().int().min(1).max(1e3).optional(),
|
|
5623
|
+
before: z27.string().optional(),
|
|
5624
|
+
start: z27.string().optional(),
|
|
5625
|
+
cursor: z27.string().optional()
|
|
5626
|
+
});
|
|
5627
|
+
var tailInput = z27.object({
|
|
5628
|
+
node_id: z27.string().min(1),
|
|
5629
|
+
duration: z27.number().int().min(1).max(120).optional(),
|
|
5630
|
+
max_events: z27.number().int().min(1).max(200).optional(),
|
|
5631
|
+
fields: z27.string().optional()
|
|
5439
5632
|
});
|
|
5440
5633
|
var logsTailInput = tailInput.extend({
|
|
5441
|
-
stream:
|
|
5634
|
+
stream: z27.enum(["serial", "kernel"]).default("kernel")
|
|
5442
5635
|
});
|
|
5443
5636
|
function expandSpan(span, start, end) {
|
|
5444
5637
|
if (start?.trim() && end?.trim()) {
|
|
@@ -5519,7 +5712,7 @@ var telemetryLatestBatchCapability = defineCapability({
|
|
|
5519
5712
|
required: ["node_ids"]
|
|
5520
5713
|
}
|
|
5521
5714
|
},
|
|
5522
|
-
input:
|
|
5715
|
+
input: z27.object({ node_ids: z27.array(z27.uuid()).min(1).max(100) }),
|
|
5523
5716
|
execute: async (ctx, input) => getLatestTelemetry(ctx.fetch, { node_ids: input.node_ids })
|
|
5524
5717
|
});
|
|
5525
5718
|
var logsLatestCapability = defineCapability({
|
|
@@ -5591,9 +5784,9 @@ var telemetrySnapshotCapability = defineCapability({
|
|
|
5591
5784
|
required: ["node_id"]
|
|
5592
5785
|
}
|
|
5593
5786
|
},
|
|
5594
|
-
input:
|
|
5595
|
-
node_id:
|
|
5596
|
-
limit:
|
|
5787
|
+
input: z27.object({
|
|
5788
|
+
node_id: z27.string().min(1),
|
|
5789
|
+
limit: z27.number().int().min(1).max(1e3).optional()
|
|
5597
5790
|
}),
|
|
5598
5791
|
execute: async (ctx, input) => getNodeLatestTelemetry(ctx.fetch, input.node_id, { limit: input.limit ?? 1 })
|
|
5599
5792
|
});
|
|
@@ -5660,12 +5853,12 @@ var observabilityCapabilities = [
|
|
|
5660
5853
|
];
|
|
5661
5854
|
|
|
5662
5855
|
// ../../packages/capabilities/dist/capabilities/organization-invites.js
|
|
5663
|
-
import { z as
|
|
5664
|
-
var organizationInviteInput =
|
|
5665
|
-
organization_id:
|
|
5666
|
-
email:
|
|
5667
|
-
organization_role:
|
|
5668
|
-
send_email:
|
|
5856
|
+
import { z as z28 } from "zod";
|
|
5857
|
+
var organizationInviteInput = z28.object({
|
|
5858
|
+
organization_id: z28.uuid().optional(),
|
|
5859
|
+
email: z28.string().trim().toLowerCase().pipe(z28.email()),
|
|
5860
|
+
organization_role: z28.enum(["consumer", "supplier"]).optional(),
|
|
5861
|
+
send_email: z28.boolean().optional().describe("Defaults to true for an existing organization; false returns a link. Signup invites cannot be emailed.")
|
|
5669
5862
|
}).superRefine((input, ctx) => {
|
|
5670
5863
|
if (!input.organization_id && input.send_email === true) {
|
|
5671
5864
|
ctx.addIssue({
|
|
@@ -5724,33 +5917,33 @@ var organizationInviteCapability = defineCapability({
|
|
|
5724
5917
|
});
|
|
5725
5918
|
|
|
5726
5919
|
// ../../packages/capabilities/dist/capabilities/networks.js
|
|
5727
|
-
import { z as
|
|
5920
|
+
import { z as z29 } from "zod";
|
|
5728
5921
|
var globalInput = {
|
|
5729
|
-
$positionals:
|
|
5730
|
-
guided:
|
|
5731
|
-
idempotencyKey:
|
|
5732
|
-
noBrowser:
|
|
5733
|
-
noWait:
|
|
5734
|
-
overwrite:
|
|
5735
|
-
print:
|
|
5736
|
-
wait:
|
|
5737
|
-
yes:
|
|
5922
|
+
$positionals: z29.array(z29.string()).optional(),
|
|
5923
|
+
guided: z29.boolean().optional(),
|
|
5924
|
+
idempotencyKey: z29.string().optional(),
|
|
5925
|
+
noBrowser: z29.boolean().optional(),
|
|
5926
|
+
noWait: z29.boolean().optional(),
|
|
5927
|
+
overwrite: z29.boolean().optional(),
|
|
5928
|
+
print: z29.boolean().optional(),
|
|
5929
|
+
wait: z29.boolean().optional(),
|
|
5930
|
+
yes: z29.boolean().optional()
|
|
5738
5931
|
};
|
|
5739
|
-
var noOptionsInput =
|
|
5740
|
-
var connectInput2 =
|
|
5932
|
+
var noOptionsInput = z29.object(globalInput).strict();
|
|
5933
|
+
var connectInput2 = z29.object({
|
|
5741
5934
|
...globalInput,
|
|
5742
|
-
identityFile:
|
|
5743
|
-
output:
|
|
5744
|
-
user:
|
|
5935
|
+
identityFile: z29.string().optional(),
|
|
5936
|
+
output: z29.string().optional(),
|
|
5937
|
+
user: z29.string().optional()
|
|
5745
5938
|
}).strict();
|
|
5746
|
-
var listInput =
|
|
5747
|
-
var networkCreateInput =
|
|
5748
|
-
var networkUpdateInput =
|
|
5749
|
-
var vpnConfigureInput =
|
|
5939
|
+
var listInput = z29.object({ ...globalInput, cursor: z29.string().optional(), limit: z29.string().optional() }).strict();
|
|
5940
|
+
var networkCreateInput = z29.object({ ...globalInput, cidr: z29.string().optional(), name: z29.string().optional() }).strict();
|
|
5941
|
+
var networkUpdateInput = z29.object({ ...globalInput, name: z29.string().optional() }).strict();
|
|
5942
|
+
var vpnConfigureInput = z29.object({
|
|
5750
5943
|
...globalInput,
|
|
5751
|
-
name:
|
|
5752
|
-
output:
|
|
5753
|
-
privateKey:
|
|
5944
|
+
name: z29.string().optional(),
|
|
5945
|
+
output: z29.string().optional(),
|
|
5946
|
+
privateKey: z29.string().optional()
|
|
5754
5947
|
}).strict();
|
|
5755
5948
|
function executeNetwork(command) {
|
|
5756
5949
|
return (context, input) => {
|
|
@@ -5763,36 +5956,36 @@ function executeNetwork(command) {
|
|
|
5763
5956
|
function mutationOptions2(idempotencyKey) {
|
|
5764
5957
|
return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
|
|
5765
5958
|
}
|
|
5766
|
-
var networkIdInput =
|
|
5767
|
-
var networkCreateFields =
|
|
5768
|
-
name:
|
|
5769
|
-
cidr:
|
|
5770
|
-
description:
|
|
5771
|
-
confirm:
|
|
5772
|
-
});
|
|
5773
|
-
var networkUpdateFields =
|
|
5774
|
-
networkId:
|
|
5775
|
-
name:
|
|
5776
|
-
description:
|
|
5777
|
-
clearDescription:
|
|
5778
|
-
confirm:
|
|
5959
|
+
var networkIdInput = z29.object({ networkId: z29.string() });
|
|
5960
|
+
var networkCreateFields = z29.object({
|
|
5961
|
+
name: z29.string(),
|
|
5962
|
+
cidr: z29.string().optional(),
|
|
5963
|
+
description: z29.string().optional(),
|
|
5964
|
+
confirm: z29.boolean().optional()
|
|
5965
|
+
});
|
|
5966
|
+
var networkUpdateFields = z29.object({
|
|
5967
|
+
networkId: z29.string(),
|
|
5968
|
+
name: z29.string().optional(),
|
|
5969
|
+
description: z29.string().optional(),
|
|
5970
|
+
clearDescription: z29.boolean().optional(),
|
|
5971
|
+
confirm: z29.boolean().optional()
|
|
5779
5972
|
}).refine((input) => !(input.clearDescription && input.description !== void 0), {
|
|
5780
5973
|
message: "Use either description or clearDescription, not both."
|
|
5781
5974
|
}).refine((input) => input.name !== void 0 || input.description !== void 0 || input.clearDescription, { message: "Provide name, description, or clearDescription." });
|
|
5782
|
-
var networkDeleteInput = networkIdInput.extend({ confirm:
|
|
5783
|
-
var vpnPeerCreateInput =
|
|
5784
|
-
publicKey:
|
|
5785
|
-
label:
|
|
5786
|
-
confirm:
|
|
5787
|
-
});
|
|
5788
|
-
var vpnPeerDeleteInput =
|
|
5789
|
-
var reservationInput2 = { reservationId:
|
|
5975
|
+
var networkDeleteInput = networkIdInput.extend({ confirm: z29.boolean().optional() });
|
|
5976
|
+
var vpnPeerCreateInput = z29.object({
|
|
5977
|
+
publicKey: z29.string(),
|
|
5978
|
+
label: z29.string().optional(),
|
|
5979
|
+
confirm: z29.boolean().optional()
|
|
5980
|
+
});
|
|
5981
|
+
var vpnPeerDeleteInput = z29.object({ peerId: z29.string(), confirm: z29.boolean().optional() });
|
|
5982
|
+
var reservationInput2 = { reservationId: z29.string() };
|
|
5790
5983
|
var privateNetworkListCapability = defineCapability({
|
|
5791
5984
|
id: "networks.list",
|
|
5792
5985
|
domain: "networks",
|
|
5793
5986
|
roles: ["user"],
|
|
5794
5987
|
mutation: "read",
|
|
5795
|
-
input:
|
|
5988
|
+
input: z29.object({}),
|
|
5796
5989
|
description: "List this tenant's private networks.",
|
|
5797
5990
|
mcp: { name: "networks_list" },
|
|
5798
5991
|
slack: false,
|
|
@@ -5845,7 +6038,7 @@ var privateNetworkCreateCapability = defineCapability({
|
|
|
5845
6038
|
domain: "networks",
|
|
5846
6039
|
roles: ["user"],
|
|
5847
6040
|
mutation: "preview-confirm",
|
|
5848
|
-
input: networkCreateFields.extend({ idempotencyKey:
|
|
6041
|
+
input: networkCreateFields.extend({ idempotencyKey: z29.string().optional() }),
|
|
5849
6042
|
description: "Create a private network.",
|
|
5850
6043
|
mcp: { name: "networks_create", input: networkCreateFields },
|
|
5851
6044
|
slack: false,
|
|
@@ -5873,7 +6066,7 @@ var privateNetworkUpdateCapability = defineCapability({
|
|
|
5873
6066
|
domain: "networks",
|
|
5874
6067
|
roles: ["user"],
|
|
5875
6068
|
mutation: "preview-confirm",
|
|
5876
|
-
input: networkUpdateFields.safeExtend({ idempotencyKey:
|
|
6069
|
+
input: networkUpdateFields.safeExtend({ idempotencyKey: z29.string().optional() }),
|
|
5877
6070
|
description: "Update a private network's name or description. Pass clearDescription: true to null out the description instead of setting it.",
|
|
5878
6071
|
mcp: { name: "networks_update", input: networkUpdateFields },
|
|
5879
6072
|
slack: false,
|
|
@@ -5904,7 +6097,7 @@ var privateNetworkDeleteCapability = defineCapability({
|
|
|
5904
6097
|
domain: "networks",
|
|
5905
6098
|
roles: ["user"],
|
|
5906
6099
|
mutation: "preview-confirm",
|
|
5907
|
-
input: networkDeleteInput.extend({ idempotencyKey:
|
|
6100
|
+
input: networkDeleteInput.extend({ idempotencyKey: z29.string().optional() }),
|
|
5908
6101
|
description: "Delete a private network.",
|
|
5909
6102
|
mcp: { name: "networks_delete", input: networkDeleteInput },
|
|
5910
6103
|
slack: false,
|
|
@@ -5935,9 +6128,9 @@ var vpnConnectionListCapability = defineCapability({
|
|
|
5935
6128
|
domain: "vpn",
|
|
5936
6129
|
roles: ["user"],
|
|
5937
6130
|
mutation: "read",
|
|
5938
|
-
input:
|
|
6131
|
+
input: z29.object({}),
|
|
5939
6132
|
description: "List WireGuard VPN peers registered on a reservation.",
|
|
5940
|
-
mcp: { name: "vpn_peers_list", input:
|
|
6133
|
+
mcp: { name: "vpn_peers_list", input: z29.object(reservationInput2) },
|
|
5941
6134
|
slack: false,
|
|
5942
6135
|
cli: {
|
|
5943
6136
|
command: ["vpn-connections", "list"],
|
|
@@ -5962,11 +6155,11 @@ var vpnConnectionConfigureCapability = defineCapability({
|
|
|
5962
6155
|
domain: "vpn",
|
|
5963
6156
|
roles: ["user"],
|
|
5964
6157
|
mutation: "preview-confirm",
|
|
5965
|
-
input: vpnPeerCreateInput.extend({ idempotencyKey:
|
|
6158
|
+
input: vpnPeerCreateInput.extend({ idempotencyKey: z29.string().optional() }),
|
|
5966
6159
|
description: "Register a WireGuard VPN peer public key on a reservation.",
|
|
5967
6160
|
mcp: {
|
|
5968
6161
|
name: "vpn_peers_create",
|
|
5969
|
-
input:
|
|
6162
|
+
input: z29.object({ ...reservationInput2, ...vpnPeerCreateInput.shape })
|
|
5970
6163
|
},
|
|
5971
6164
|
slack: false,
|
|
5972
6165
|
cli: {
|
|
@@ -5994,11 +6187,11 @@ var vpnConnectionDisconnectCapability = defineCapability({
|
|
|
5994
6187
|
domain: "vpn",
|
|
5995
6188
|
roles: ["user"],
|
|
5996
6189
|
mutation: "preview-confirm",
|
|
5997
|
-
input: vpnPeerDeleteInput.extend({ idempotencyKey:
|
|
6190
|
+
input: vpnPeerDeleteInput.extend({ idempotencyKey: z29.string().optional() }),
|
|
5998
6191
|
description: "Revoke a WireGuard VPN peer from a reservation.",
|
|
5999
6192
|
mcp: {
|
|
6000
6193
|
name: "vpn_peers_delete",
|
|
6001
|
-
input:
|
|
6194
|
+
input: z29.object({ ...reservationInput2, ...vpnPeerDeleteInput.shape })
|
|
6002
6195
|
},
|
|
6003
6196
|
slack: false,
|
|
6004
6197
|
cli: {
|
|
@@ -6069,29 +6262,29 @@ var networkCapabilities = [
|
|
|
6069
6262
|
];
|
|
6070
6263
|
|
|
6071
6264
|
// ../../packages/capabilities/dist/capabilities/registry.js
|
|
6072
|
-
import { z as
|
|
6265
|
+
import { z as z30 } from "zod";
|
|
6073
6266
|
var globalInput2 = {
|
|
6074
|
-
$positionals:
|
|
6075
|
-
yes:
|
|
6267
|
+
$positionals: z30.array(z30.string()).default([]),
|
|
6268
|
+
yes: z30.boolean().optional()
|
|
6076
6269
|
};
|
|
6077
|
-
var emptyInput4 =
|
|
6078
|
-
var repositoryInput =
|
|
6270
|
+
var emptyInput4 = z30.object(globalInput2).strict();
|
|
6271
|
+
var repositoryInput = z30.object({
|
|
6079
6272
|
...globalInput2,
|
|
6080
|
-
repository:
|
|
6273
|
+
repository: z30.string().optional().describe("Repository name, with or without your organization's namespace.")
|
|
6081
6274
|
}).strict();
|
|
6082
|
-
var tagInput =
|
|
6275
|
+
var tagInput = z30.object({
|
|
6083
6276
|
...globalInput2,
|
|
6084
|
-
repository:
|
|
6085
|
-
tag:
|
|
6277
|
+
repository: z30.string().optional().describe("Repository name, with or without your organization's namespace."),
|
|
6278
|
+
tag: z30.string().optional().describe("Tag to delete, such as v1.")
|
|
6086
6279
|
}).strict();
|
|
6087
6280
|
function cliInteraction(context) {
|
|
6088
6281
|
return context.cli?.interaction;
|
|
6089
6282
|
}
|
|
6090
6283
|
function qualifiedRepository(value, registry) {
|
|
6091
|
-
let
|
|
6092
|
-
if (
|
|
6093
|
-
|
|
6094
|
-
return
|
|
6284
|
+
let name2 = value.trim();
|
|
6285
|
+
if (name2.startsWith(`${registry.host}/`))
|
|
6286
|
+
name2 = name2.slice(registry.host.length + 1);
|
|
6287
|
+
return name2.startsWith(`${registry.namespace}/`) ? name2 : `${registry.namespace}/${name2}`;
|
|
6095
6288
|
}
|
|
6096
6289
|
function shortName(repository, registry) {
|
|
6097
6290
|
return repository.startsWith(`${registry.namespace}/`) ? repository.slice(registry.namespace.length + 1) : repository;
|
|
@@ -6389,14 +6582,14 @@ var registryCapabilities = [
|
|
|
6389
6582
|
];
|
|
6390
6583
|
|
|
6391
6584
|
// ../../packages/capabilities/dist/capabilities/reservation-list.js
|
|
6392
|
-
import { z as
|
|
6393
|
-
var reservationListInput =
|
|
6394
|
-
customerId:
|
|
6395
|
-
listingId:
|
|
6396
|
-
listingTermId:
|
|
6397
|
-
status:
|
|
6398
|
-
cursor:
|
|
6399
|
-
limit:
|
|
6585
|
+
import { z as z31 } from "zod";
|
|
6586
|
+
var reservationListInput = z31.object({
|
|
6587
|
+
customerId: z31.string().uuid().optional(),
|
|
6588
|
+
listingId: z31.string().uuid().optional(),
|
|
6589
|
+
listingTermId: z31.string().uuid().optional(),
|
|
6590
|
+
status: z31.enum(["confirmed", "active", "completed", "cancelled"]).optional(),
|
|
6591
|
+
cursor: z31.string().optional(),
|
|
6592
|
+
limit: z31.number().int().min(1).max(100).optional()
|
|
6400
6593
|
});
|
|
6401
6594
|
var reservationListCapability = defineCapability({
|
|
6402
6595
|
id: "reservation.list",
|
|
@@ -6446,20 +6639,20 @@ var reservationListCapability = defineCapability({
|
|
|
6446
6639
|
});
|
|
6447
6640
|
|
|
6448
6641
|
// ../../packages/capabilities/dist/capabilities/volumes.js
|
|
6449
|
-
import { z as
|
|
6450
|
-
var storageCliInput =
|
|
6451
|
-
$positionals:
|
|
6452
|
-
contentType:
|
|
6453
|
-
cursor:
|
|
6454
|
-
idempotencyKey:
|
|
6455
|
-
limit:
|
|
6456
|
-
name:
|
|
6457
|
-
output:
|
|
6458
|
-
overwrite:
|
|
6459
|
-
path:
|
|
6460
|
-
prefix:
|
|
6461
|
-
source:
|
|
6462
|
-
yes:
|
|
6642
|
+
import { z as z32 } from "zod";
|
|
6643
|
+
var storageCliInput = z32.object({
|
|
6644
|
+
$positionals: z32.array(z32.string()).optional(),
|
|
6645
|
+
contentType: z32.string().optional(),
|
|
6646
|
+
cursor: z32.string().optional(),
|
|
6647
|
+
idempotencyKey: z32.string().optional(),
|
|
6648
|
+
limit: z32.union([z32.string(), z32.number()]).optional(),
|
|
6649
|
+
name: z32.string().optional(),
|
|
6650
|
+
output: z32.string().optional(),
|
|
6651
|
+
overwrite: z32.boolean().optional(),
|
|
6652
|
+
path: z32.string().optional(),
|
|
6653
|
+
prefix: z32.string().optional(),
|
|
6654
|
+
source: z32.string().optional(),
|
|
6655
|
+
yes: z32.boolean().optional()
|
|
6463
6656
|
}).strict();
|
|
6464
6657
|
function storageExecutor(context) {
|
|
6465
6658
|
const interaction = context.cli?.interaction;
|
|
@@ -6495,7 +6688,7 @@ function storageCapability({ id, command, description, mutation, outcome, human,
|
|
|
6495
6688
|
execute: async (context, input) => storageExecutor(context)(id, input)
|
|
6496
6689
|
});
|
|
6497
6690
|
}
|
|
6498
|
-
var filesListInput =
|
|
6691
|
+
var filesListInput = z32.object({ driveId: z32.string(), prefix: z32.string().optional() });
|
|
6499
6692
|
async function* listFiles(context, input) {
|
|
6500
6693
|
const prefix = input.prefix ?? "";
|
|
6501
6694
|
const folder = prefix.includes("/") ? prefix.slice(0, prefix.lastIndexOf("/")) : "";
|
|
@@ -6539,16 +6732,16 @@ var volumeFilesListCapability = defineCapability({
|
|
|
6539
6732
|
}
|
|
6540
6733
|
}
|
|
6541
6734
|
});
|
|
6542
|
-
var volumePageInput =
|
|
6543
|
-
limit:
|
|
6544
|
-
cursor:
|
|
6735
|
+
var volumePageInput = z32.object({
|
|
6736
|
+
limit: z32.number().int().min(1).max(100).optional(),
|
|
6737
|
+
cursor: z32.string().optional()
|
|
6545
6738
|
});
|
|
6546
|
-
var driveInput =
|
|
6547
|
-
var driveWrite = driveInput.extend({ confirm:
|
|
6548
|
-
var volumeCreateInput =
|
|
6549
|
-
name:
|
|
6550
|
-
sourceDriveId:
|
|
6551
|
-
confirm:
|
|
6739
|
+
var driveInput = z32.object({ driveId: z32.string() });
|
|
6740
|
+
var driveWrite = driveInput.extend({ confirm: z32.boolean().optional() });
|
|
6741
|
+
var volumeCreateInput = z32.object({
|
|
6742
|
+
name: z32.string(),
|
|
6743
|
+
sourceDriveId: z32.string().optional(),
|
|
6744
|
+
confirm: z32.boolean().optional()
|
|
6552
6745
|
});
|
|
6553
6746
|
var volumeListCapability = defineCapability({
|
|
6554
6747
|
id: "storage.volumes.list",
|
|
@@ -6556,7 +6749,7 @@ var volumeListCapability = defineCapability({
|
|
|
6556
6749
|
roles: ["user"],
|
|
6557
6750
|
description: "List a page of storage volumes, newest updated first. Pass next_cursor as cursor to continue.",
|
|
6558
6751
|
mutation: "read",
|
|
6559
|
-
input: volumePageInput.extend({ scope:
|
|
6752
|
+
input: volumePageInput.extend({ scope: z32.enum(["all", "managed"]).optional() }),
|
|
6560
6753
|
mcp: { name: "storage_volumes_list", input: volumePageInput },
|
|
6561
6754
|
slack: false,
|
|
6562
6755
|
execute: (context, input) => listDrives(context.fetch, {
|
|
@@ -6611,7 +6804,7 @@ var volumeCreateCapability = defineCapability({
|
|
|
6611
6804
|
roles: ["user"],
|
|
6612
6805
|
description: "Create a storage volume (drive), optionally cloned from an existing source drive.",
|
|
6613
6806
|
mutation: "preview-confirm",
|
|
6614
|
-
input: volumeCreateInput.extend({ idempotencyKey:
|
|
6807
|
+
input: volumeCreateInput.extend({ idempotencyKey: z32.string().optional() }),
|
|
6615
6808
|
mcp: { name: "storage_volumes_create", input: volumeCreateInput },
|
|
6616
6809
|
slack: false,
|
|
6617
6810
|
execute: (context, input) => createDrive(context.fetch, { name: input.name, source_drive_id: input.sourceDriveId ?? null }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
|
|
@@ -6690,7 +6883,7 @@ var volumeDeleteCapability = defineCapability({
|
|
|
6690
6883
|
roles: ["user"],
|
|
6691
6884
|
description: "Delete a storage volume (drive).",
|
|
6692
6885
|
mutation: "preview-confirm",
|
|
6693
|
-
input: driveWrite.extend({ idempotencyKey:
|
|
6886
|
+
input: driveWrite.extend({ idempotencyKey: z32.string().optional() }),
|
|
6694
6887
|
mcp: { name: "storage_volumes_delete", input: driveWrite },
|
|
6695
6888
|
slack: false,
|
|
6696
6889
|
execute: async (context, input) => {
|
|
@@ -6771,20 +6964,20 @@ var volumeCapabilities = [
|
|
|
6771
6964
|
];
|
|
6772
6965
|
|
|
6773
6966
|
// ../../packages/capabilities/dist/capabilities/users.js
|
|
6774
|
-
import { z as
|
|
6775
|
-
var directoryLimit =
|
|
6776
|
-
var directoryOffset =
|
|
6777
|
-
var organizationListInput =
|
|
6778
|
-
q:
|
|
6779
|
-
role:
|
|
6780
|
-
approved:
|
|
6781
|
-
ids:
|
|
6967
|
+
import { z as z33 } from "zod";
|
|
6968
|
+
var directoryLimit = z33.number().int().min(1).max(100).default(25);
|
|
6969
|
+
var directoryOffset = z33.number().int().nonnegative().optional();
|
|
6970
|
+
var organizationListInput = z33.object({
|
|
6971
|
+
q: z33.string().trim().optional().describe("Company name, contact/member name, or email."),
|
|
6972
|
+
role: z33.enum(["consumer", "supplier"]).optional(),
|
|
6973
|
+
approved: z33.boolean().optional(),
|
|
6974
|
+
ids: z33.array(z33.uuid()).min(1).max(100).optional(),
|
|
6782
6975
|
limit: directoryLimit,
|
|
6783
6976
|
offset: directoryOffset
|
|
6784
6977
|
});
|
|
6785
|
-
var usersListInput =
|
|
6786
|
-
q:
|
|
6787
|
-
organization_id:
|
|
6978
|
+
var usersListInput = z33.object({
|
|
6979
|
+
q: z33.string().trim().optional().describe("Person name, email, or company name."),
|
|
6980
|
+
organization_id: z33.uuid().optional(),
|
|
6788
6981
|
limit: directoryLimit,
|
|
6789
6982
|
offset: directoryOffset
|
|
6790
6983
|
});
|
|
@@ -6964,6 +7157,7 @@ var catalog = [
|
|
|
6964
7157
|
...adminNodeDiagnosticCapabilities,
|
|
6965
7158
|
...adminNodeSanitizeCapabilities,
|
|
6966
7159
|
...adminEnrollmentCapabilities,
|
|
7160
|
+
...supplierNetworkingCapabilities,
|
|
6967
7161
|
adminSshCapability,
|
|
6968
7162
|
organizationInviteCapability,
|
|
6969
7163
|
creditGrantCapability
|