@ornncompute/cli 1.0.263 → 1.0.265

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.
@@ -2,8 +2,8 @@
2
2
  async function listModels(request) {
3
3
  return await request("/v1/inference/models");
4
4
  }
5
- function postInference(fetcher, path5, body2, signal) {
6
- return fetcher(path5, {
5
+ function postInference(fetcher, path6, body2, signal) {
6
+ return fetcher(path6, {
7
7
  method: "POST",
8
8
  headers: { "Content-Type": "application/json" },
9
9
  body: JSON.stringify(body2),
@@ -417,8 +417,8 @@ function createController(request, body2, options) {
417
417
  return request(controllersSocketPath, { ...options, method: "POST", body: body2 });
418
418
  }
419
419
  function controllerWorkerPath(id, resource2, workerId, tenantId) {
420
- const path5 = `${controllerPath(id)}/${resource2}/${encodeURIComponent(workerId)}`;
421
- return tenantId === void 0 ? path5 : `${path5}?${new URLSearchParams({ tenant_id: tenantId })}`;
420
+ const path6 = `${controllerPath(id)}/${resource2}/${encodeURIComponent(workerId)}`;
421
+ return tenantId === void 0 ? path6 : `${path6}?${new URLSearchParams({ tenant_id: tenantId })}`;
422
422
  }
423
423
  function addControllerNode(request, id, nodeId3, { tenant_id, ...options } = {}) {
424
424
  return request(controllerWorkerPath(id, "nodes", nodeId3, tenant_id), {
@@ -448,6 +448,60 @@ function setControlplaneSize(request, controllerId, body2) {
448
448
  });
449
449
  }
450
450
 
451
+ // ../../packages/api-client/dist/orchestrator/disks.js
452
+ function listDisks(request, query3 = {}, signal) {
453
+ const params = new URLSearchParams();
454
+ for (const key of ["scope", "organization_id", "limit", "q", "exclude_failed"]) {
455
+ if (query3[key] !== void 0)
456
+ params.set(key, String(query3[key]));
457
+ }
458
+ return request(`/v1/orchestrator/disks${params.size ? `?${params}` : ""}`, {
459
+ method: "GET",
460
+ ...signal ? { signal } : {}
461
+ });
462
+ }
463
+ function getDisk(request, id, signal) {
464
+ return request(`/v1/orchestrator/disks/${encodeURIComponent(id)}`, {
465
+ method: "GET",
466
+ ...signal ? { signal } : {}
467
+ });
468
+ }
469
+ function createDisk(request, body2) {
470
+ return request("/v1/orchestrator/disks", { method: "POST", body: body2 });
471
+ }
472
+ function requestDiskRebuilds(request, body2) {
473
+ return request("/v1/orchestrator/disks/rebuilds", { method: "POST", body: body2 });
474
+ }
475
+ function updateDisk(request, id, body2) {
476
+ return request(`/v1/orchestrator/disks/${encodeURIComponent(id)}`, {
477
+ method: "PATCH",
478
+ body: body2
479
+ });
480
+ }
481
+ function deleteDisk(request, id) {
482
+ return request(`/v1/orchestrator/disks/${encodeURIComponent(id)}`, {
483
+ method: "DELETE"
484
+ });
485
+ }
486
+ function startDiskUpload(request, body2) {
487
+ return request("/v1/orchestrator/disks/uploads", {
488
+ method: "POST",
489
+ body: body2
490
+ });
491
+ }
492
+ function postDiskObject(request, body2) {
493
+ return request("/v1/orchestrator/disks/objects", { method: "POST", body: body2 });
494
+ }
495
+ function completeDiskUpload(request, id, body2) {
496
+ return request(`/v1/orchestrator/disks/uploads/${encodeURIComponent(id)}/complete`, {
497
+ method: "POST",
498
+ body: body2
499
+ });
500
+ }
501
+ function importDisk(request, body2) {
502
+ return request("/v1/orchestrator/disks/imports", { method: "POST", body: body2 });
503
+ }
504
+
451
505
  // ../../packages/api-client/dist/orchestrator/drive-files.js
452
506
  function drivePath(id) {
453
507
  return `/v1/orchestrator/drives/${encodeURIComponent(id)}`;
@@ -468,13 +522,13 @@ function clearDriveContents(request, id) {
468
522
  }
469
523
 
470
524
  // ../../packages/api-client/dist/orchestrator/drives.js
471
- function queryPath(path5, query3) {
525
+ function queryPath(path6, query3) {
472
526
  const params = new URLSearchParams();
473
527
  for (const [key, value] of Object.entries(query3)) {
474
528
  if (value !== void 0 && value !== null)
475
529
  params.set(key, String(value));
476
530
  }
477
- return `${path5}${params.size ? `?${params}` : ""}`;
531
+ return `${path6}${params.size ? `?${params}` : ""}`;
478
532
  }
479
533
  function listDrives(request, query3 = {}, signal) {
480
534
  return request(queryPath("/v1/orchestrator/drives", query3), {
@@ -535,6 +589,38 @@ function rotateEnrollmentAdminSshKey(request, nodeId3) {
535
589
  return request(`/v1/orchestrator/enrollment/admin-ssh-key?node_id=${encodeURIComponent(nodeId3)}`, { method: "POST" });
536
590
  }
537
591
 
592
+ // ../../packages/api-client/dist/orchestrator/images.js
593
+ function listCatalogImages(request, query3 = {}, signal) {
594
+ const params = new URLSearchParams();
595
+ if (query3.include_pending !== void 0) {
596
+ params.set("include_pending", String(query3.include_pending));
597
+ }
598
+ return request(`/v1/orchestrator/catalog/images${params.size ? `?${params}` : ""}`, {
599
+ method: "GET",
600
+ ...signal ? { signal } : {}
601
+ });
602
+ }
603
+ function startImageUpload(request, body2) {
604
+ return request("/v1/orchestrator/images/uploads", {
605
+ method: "POST",
606
+ body: body2
607
+ });
608
+ }
609
+ function postImageObject(request, body2) {
610
+ return request("/v1/orchestrator/images/objects", { method: "POST", body: body2 });
611
+ }
612
+ function completeImageUpload(request, id, body2) {
613
+ return request(`/v1/orchestrator/images/uploads/${encodeURIComponent(id)}/complete`, {
614
+ method: "POST",
615
+ body: body2
616
+ });
617
+ }
618
+ function deleteImage(request, id) {
619
+ return request(`/v1/orchestrator/images/${encodeURIComponent(id)}`, {
620
+ method: "DELETE"
621
+ });
622
+ }
623
+
538
624
  // ../../packages/api-client/dist/orchestrator/locality.js
539
625
  var localityGeolocatePath = "/v1/orchestrator/locality/geolocate";
540
626
  function geolocate(request, query3, signal) {
@@ -1330,8 +1416,8 @@ function revokeControlplaneLicense(request, id) {
1330
1416
  import { z as z4 } from "zod";
1331
1417
 
1332
1418
  // ../../packages/capabilities/dist/capabilities/staff-shared.js
1333
- function adminCli(path5, outcome, usage, options) {
1334
- const command = ["admin", ...path5];
1419
+ function adminCli(path6, outcome, usage, options) {
1420
+ const command = ["admin", ...path6];
1335
1421
  const human = ["ornn", ...command, usage].filter(Boolean).join(" ");
1336
1422
  return {
1337
1423
  command: [...command],
@@ -1683,8 +1769,8 @@ var nodeSupplierTransferCapability = defineStaffMcpCapability({
1683
1769
 
1684
1770
  // ../../packages/capabilities/dist/capabilities/staff-support-diagnosis.js
1685
1771
  import { z as z5 } from "zod";
1686
- function diagnosisCli(path5, outcome, usage, options) {
1687
- const command = ["admin", "nodes", "diagnosis", ...path5];
1772
+ function diagnosisCli(path6, outcome, usage, options) {
1773
+ const command = ["admin", "nodes", "diagnosis", ...path6];
1688
1774
  const human = ["ornn", ...command, usage].filter(Boolean).join(" ");
1689
1775
  return {
1690
1776
  command,
@@ -1699,10 +1785,10 @@ function diagnosisCli(path5, outcome, usage, options) {
1699
1785
  }
1700
1786
  };
1701
1787
  }
1702
- function staffCapability(id, domain, description, mutation, input, execute2, cli) {
1788
+ function staffCapability(id, domain2, description, mutation, input, execute2, cli) {
1703
1789
  return defineStaffMcpCapability({
1704
1790
  id,
1705
- domain,
1791
+ domain: domain2,
1706
1792
  roles: ["admin"],
1707
1793
  description: `Staff only: ${description}`,
1708
1794
  mutation,
@@ -1853,31 +1939,43 @@ var staffDowntimeCapabilities = [
1853
1939
  downtimeUpdateCapability
1854
1940
  ];
1855
1941
 
1942
+ // ../../packages/api-client/dist/internal/disk-builders.js
1943
+ var path4 = "/v1/staff/disk-builders";
1944
+ function listDiskBuilders(request, signal) {
1945
+ return request(path4, {
1946
+ method: "GET",
1947
+ ...signal ? { signal } : {}
1948
+ });
1949
+ }
1950
+ function setDiskBuilderCount(request, body2) {
1951
+ return request(path4, { method: "PATCH", body: body2 });
1952
+ }
1953
+
1856
1954
  // ../../packages/api-client/dist/internal/test-pool.js
1857
- var path4 = "/v1/staff/test-pool";
1955
+ var path5 = "/v1/staff/test-pool";
1858
1956
  function getTestPool(request, signal) {
1859
- return request(path4, {
1957
+ return request(path5, {
1860
1958
  method: "GET",
1861
1959
  ...signal ? { signal } : {}
1862
1960
  });
1863
1961
  }
1864
1962
  function updateEnvironmentTestPool(request, body2) {
1865
- return request(path4, { method: "PATCH", body: body2 });
1963
+ return request(path5, { method: "PATCH", body: body2 });
1866
1964
  }
1867
1965
  function listTemporaryTestNodes(request, query3 = {}, signal) {
1868
1966
  const params = new URLSearchParams();
1869
1967
  if (query3.node_id !== void 0)
1870
1968
  params.set("node_id", query3.node_id);
1871
- return request(`${path4}/runs${params.size ? `?${params}` : ""}`, {
1969
+ return request(`${path5}/runs${params.size ? `?${params}` : ""}`, {
1872
1970
  method: "GET",
1873
1971
  ...signal ? { signal } : {}
1874
1972
  });
1875
1973
  }
1876
1974
  function createTemporaryTestNode(request, body2) {
1877
- return request(`${path4}/runs`, { method: "POST", body: body2 });
1975
+ return request(`${path5}/runs`, { method: "POST", body: body2 });
1878
1976
  }
1879
1977
  function deleteTemporaryTestNode(request, runId) {
1880
- return request(`${path4}/runs/${encodeURIComponent(runId)}`, {
1978
+ return request(`${path5}/runs/${encodeURIComponent(runId)}`, {
1881
1979
  method: "DELETE"
1882
1980
  });
1883
1981
  }
@@ -2179,7 +2277,9 @@ var ADMIN_CLI_ROOTS = [
2179
2277
  { name: "ssh" },
2180
2278
  { name: "gifts" },
2181
2279
  { name: "inference" },
2182
- { name: "downtime" }
2280
+ { name: "downtime" },
2281
+ { name: "disks" },
2282
+ { name: "images" }
2183
2283
  ];
2184
2284
  var nodeInput = z8.object({ node_id: z8.string().min(1) });
2185
2285
  var adminNodeHealthCapability = defineCapability({
@@ -4897,14 +4997,600 @@ var creditAdjustmentsListCapability = defineCapability({
4897
4997
  }
4898
4998
  });
4899
4999
 
4900
- // ../../packages/capabilities/dist/capabilities/gifts.js
5000
+ // ../../packages/capabilities/dist/capabilities/disks.js
4901
5001
  import { z as z23 } from "zod";
5002
+
5003
+ // ../../packages/capabilities/dist/byte-size.js
5004
+ function formatBytes(bytes) {
5005
+ const units = ["B", "KB", "MB", "GB", "TB"];
5006
+ let value = bytes;
5007
+ let unit = 0;
5008
+ while (value >= 1024 && unit < units.length - 1) {
5009
+ value /= 1024;
5010
+ unit += 1;
5011
+ }
5012
+ return `${value >= 10 || unit === 0 ? Math.round(value) : value.toFixed(1)} ${units[unit]}`;
5013
+ }
5014
+
5015
+ // ../../packages/capabilities/dist/capabilities/disks.js
5016
+ var uuid4 = z23.string().uuid();
5017
+ var domain = "storage";
5018
+ var displayName = z23.string().trim().min(1);
5019
+ var software = {
5020
+ cuda_version: z23.string().nullable().optional().describe("CUDA version slug, or null for none."),
5021
+ nvidia_driver_version: z23.string().nullable().optional().describe("NVIDIA driver version slug, or null for none."),
5022
+ dcgmi_version: z23.string().nullable().optional().describe("DCGM version slug, or null for none."),
5023
+ python_version: z23.string().nullable().optional().describe("Python version slug, or null for none."),
5024
+ python_packages: z23.array(z23.string()).optional().describe("Python package slugs.")
5025
+ };
5026
+ var owner = {
5027
+ scope: z23.literal("global").optional().describe("Staff only: a global disk every organization can launch. Customers omit it."),
5028
+ organization_id: uuid4.optional().describe("Staff only: the organization that owns the disk. Customers omit it.")
5029
+ };
5030
+ function softwareOf(input) {
5031
+ return Object.fromEntries(Object.keys(software).filter((key) => input[key] !== void 0).map((key) => [key, input[key]]));
5032
+ }
5033
+ function diskOwner(ctx, input) {
5034
+ if (ctx.role !== "admin") {
5035
+ if (input.scope !== void 0 || input.organization_id !== void 0) {
5036
+ throw new Error("Only staff choose a disk's scope or organization; your disks belong to your organization.");
5037
+ }
5038
+ return {};
5039
+ }
5040
+ if (input.scope === "global" === (input.organization_id !== void 0)) {
5041
+ throw new Error("Staff supply exactly one of scope='global' or organization_id.");
5042
+ }
5043
+ return input.scope ? { scope: "global" } : { organization_id: input.organization_id };
5044
+ }
5045
+ function requireStaffSoftware(ctx, input) {
5046
+ const named = softwareOf(input);
5047
+ if (ctx.role !== "admin" && Object.keys(named).length) {
5048
+ throw new Error("Only staff record the software an uploaded disk already has.");
5049
+ }
5050
+ return named;
5051
+ }
5052
+ function requireAdmin2(ctx) {
5053
+ if (ctx.role !== "admin")
5054
+ throw new Error("Admin role required.");
5055
+ }
5056
+ var maxBase64Bytes = 1048576;
5057
+ function decodedBase64Bytes(value) {
5058
+ const padding = value.endsWith("==") ? 2 : value.endsWith("=") ? 1 : 0;
5059
+ return value.length / 4 * 3 - padding;
5060
+ }
5061
+ var boundedBase64 = z23.string().min(4).max(1398104).regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, "Expected standard padded base64.").refine((value) => decodedBase64Bytes(value) <= maxBase64Bytes, "Decoded payload must not exceed 1 MiB.");
5062
+ function interactionOf(ctx) {
5063
+ const interaction = ctx.cli?.interaction;
5064
+ if (!interaction)
5065
+ throw new Error("This command runs only in the Ornn CLI.");
5066
+ return interaction;
5067
+ }
5068
+ function diskLine(disk) {
5069
+ const status = disk.build_status ?? "ready";
5070
+ const size = disk.size_bytes > 0 ? ` ${formatBytes(disk.size_bytes)}` : "";
5071
+ const scope2 = disk.organization_id === null ? " global" : "";
5072
+ return `${disk.id} ${disk.display_name} ${status}${size}${scope2}`;
5073
+ }
5074
+ function diskResult(ctx, disk) {
5075
+ return interactionOf(ctx).result({
5076
+ data: disk,
5077
+ presentation: { lines: [diskLine(disk)], next: `ornn disks show ${disk.id}` }
5078
+ });
5079
+ }
5080
+ function customerHelp(outcome, human, automation, options) {
5081
+ return {
5082
+ arguments: "semantic",
5083
+ audience: "customer",
5084
+ category: "resource",
5085
+ order: options.order,
5086
+ outcome,
5087
+ human,
5088
+ automation,
5089
+ acceptedReferences: options.references ?? [],
5090
+ related: ["disks list", "disks show"]
5091
+ };
5092
+ }
5093
+ function adminHelp3(outcome, human, options) {
5094
+ return {
5095
+ audience: "admin",
5096
+ category: "resource",
5097
+ outcome,
5098
+ human,
5099
+ automation: `${human} --format json`,
5100
+ acceptedReferences: options.references ?? [],
5101
+ related: options.related
5102
+ };
5103
+ }
5104
+ var noPositionals = { $positionals: z23.tuple([]).default([]) };
5105
+ var diskIdArguments = z23.object({ $positionals: z23.tuple([uuid4]) }).strict();
5106
+ var diskListInput = z23.object({
5107
+ q: z23.string().optional().describe("Optional case-insensitive match on a disk's name or ID."),
5108
+ limit: z23.number().int().safe().min(1).max(500).optional().describe("Maximum disks to return, 1 to 500."),
5109
+ exclude_failed: z23.boolean().optional().describe("Omit disks whose last build failed."),
5110
+ scope: z23.enum(["global", "tenant"]).optional().describe("Staff only and required for staff: global lists global disks; tenant lists organization disks. Customers omit it and see their organization's disks and the global ones."),
5111
+ organization_id: uuid4.optional().describe("Staff only, with scope tenant: one organization's disks. Omit for every organization.")
5112
+ }).strict().refine((input) => input.scope !== "global" || input.organization_id === void 0, {
5113
+ message: "Global scope does not take organization_id.",
5114
+ path: ["organization_id"]
5115
+ });
5116
+ async function listDisks2(ctx, input) {
5117
+ if (ctx.role !== "admin" && (input.scope !== void 0 || input.organization_id !== void 0)) {
5118
+ throw new Error("Only staff choose a disk scope or organization; you see your organization's disks and the global ones.");
5119
+ }
5120
+ if (ctx.role === "admin" && input.scope === void 0) {
5121
+ throw new Error("Staff choose scope: global, or tenant with an optional organization_id.");
5122
+ }
5123
+ return listDisks(ctx.fetch, input);
5124
+ }
5125
+ var diskListCliInput = z23.object({
5126
+ ...noPositionals,
5127
+ query: z23.string().optional(),
5128
+ limit: z23.coerce.number().int().min(1).max(500).optional()
5129
+ }).strict();
5130
+ var diskListCapability = defineCapability({
5131
+ id: "disk.list",
5132
+ domain,
5133
+ roles: ["user", "admin"],
5134
+ description: "List VM disks. Customers see their organization's disks and the global ones. Staff pass scope global, or scope tenant with an optional organization_id. Returns the owner's disk JSON unchanged.",
5135
+ mutation: "read",
5136
+ input: diskListInput,
5137
+ execute: async (ctx, input) => listDisks2(ctx, diskListInput.parse(input)),
5138
+ cli: {
5139
+ command: ["disks", "list"],
5140
+ input: diskListCliInput,
5141
+ execute: async (ctx, raw) => {
5142
+ const input = diskListCliInput.parse(raw);
5143
+ const listed = await listDisks2(ctx, {
5144
+ ...input.query ? { q: input.query } : {},
5145
+ ...input.limit ? { limit: input.limit } : {}
5146
+ });
5147
+ return interactionOf(ctx).result({
5148
+ data: listed,
5149
+ presentation: {
5150
+ lines: listed.disks.length ? listed.disks.map(diskLine) : ["No disks yet."]
5151
+ }
5152
+ });
5153
+ },
5154
+ vnext: customerHelp("List your organization's disks and the global ones.", "ornn disks list [--query <text>] [--limit <1-500>]", "ornn disks list --format json", { order: 700 })
5155
+ }
5156
+ });
5157
+ var diskShowInput = z23.object({ disk_id: uuid4.describe("Disk UUID.") }).strict();
5158
+ var diskShowCapability = defineCapability({
5159
+ id: "disk.show",
5160
+ domain,
5161
+ roles: ["user", "admin"],
5162
+ description: "Show one VM disk: its build status, size, software and SHA-256. Customers read their organization's disks and the global ones.",
5163
+ mutation: "read",
5164
+ input: diskShowInput,
5165
+ execute: async (ctx, input) => getDisk(ctx.fetch, diskShowInput.parse(input).disk_id),
5166
+ cli: {
5167
+ command: ["disks", "show"],
5168
+ input: diskIdArguments,
5169
+ execute: async (ctx, raw) => {
5170
+ const [diskId] = diskIdArguments.parse(raw).$positionals;
5171
+ const disk = await getDisk(ctx.fetch, diskId);
5172
+ return interactionOf(ctx).result({ data: disk, presentation: { lines: [diskLine(disk)] } });
5173
+ },
5174
+ vnext: customerHelp("Show one disk's build status, size and software.", "ornn disks show <disk-id>", "ornn disks show <disk-id> --format json", { references: ["canonical disk ID"], order: 701 })
5175
+ }
5176
+ });
5177
+ var diskCreateInput = z23.object({
5178
+ display_name: displayName.describe("Name for the new disk."),
5179
+ image_id: uuid4.describe("Base image UUID the disk is built from."),
5180
+ ...owner,
5181
+ ...software
5182
+ }).strict();
5183
+ async function createDisk2(ctx, input) {
5184
+ const body2 = {
5185
+ display_name: input.display_name,
5186
+ image_id: input.image_id,
5187
+ ...diskOwner(ctx, input),
5188
+ ...softwareOf(input)
5189
+ };
5190
+ if (!ctx.confirmed)
5191
+ return preview("disk.create", body2);
5192
+ return createDisk(ctx.fetch, body2);
5193
+ }
5194
+ var diskCreateCliInput = z23.object({
5195
+ ...noPositionals,
5196
+ name: displayName,
5197
+ image: uuid4,
5198
+ python: z23.string().optional(),
5199
+ cuda: z23.string().optional(),
5200
+ nvidiaDriver: z23.string().optional(),
5201
+ dcgmi: z23.string().optional(),
5202
+ packages: z23.string().optional()
5203
+ }).strict();
5204
+ var diskCreateCapability = defineCapability({
5205
+ id: "disk.create",
5206
+ domain,
5207
+ roles: ["user", "admin"],
5208
+ description: "Create a VM disk from a base image with optional Python, CUDA, NVIDIA driver, DCGM and package choices. The disk builds before its first launch. Customers create it in their organization; staff pass scope global or organization_id.",
5209
+ mutation: "preview-confirm",
5210
+ input: diskCreateInput,
5211
+ execute: async (ctx, input) => createDisk2(ctx, diskCreateInput.parse(input)),
5212
+ cli: {
5213
+ command: ["disks", "create"],
5214
+ input: diskCreateCliInput,
5215
+ execute: async (ctx, raw) => {
5216
+ const input = diskCreateCliInput.parse(raw);
5217
+ const disk = await createDisk2({ ...ctx, confirmed: true }, diskCreateInput.parse({
5218
+ display_name: input.name,
5219
+ image_id: input.image,
5220
+ ...input.python ? { python_version: input.python } : {},
5221
+ ...input.cuda ? { cuda_version: input.cuda } : {},
5222
+ ...input.nvidiaDriver ? { nvidia_driver_version: input.nvidiaDriver } : {},
5223
+ ...input.dcgmi ? { dcgmi_version: input.dcgmi } : {},
5224
+ ...input.packages ? { python_packages: input.packages.split(",").map((name2) => name2.trim()) } : {}
5225
+ }));
5226
+ return diskResult(ctx, disk);
5227
+ },
5228
+ vnext: customerHelp("Create a disk from a base image; it builds before its first launch.", "ornn disks create --name <name> --image <image-id> [--python <version>] [--cuda <version>] [--nvidia-driver <version>] [--dcgmi <version>] [--packages <a,b>]", "ornn disks create --name <name> --image <image-id> --format json", { order: 702 })
5229
+ }
5230
+ });
5231
+ var diskImportInput = z23.object({
5232
+ url: z23.string().url().describe("Public HTTPS URL of a qcow2 image."),
5233
+ display_name: displayName.describe("Name for the imported disk.")
5234
+ }).strict();
5235
+ async function importDisk2(ctx, input) {
5236
+ if (!ctx.confirmed)
5237
+ return preview("disk.import", input);
5238
+ return importDisk(ctx.fetch, input);
5239
+ }
5240
+ var diskImportCliInput = z23.object({ $positionals: z23.tuple([z23.string().url()]), name: displayName }).strict();
5241
+ var diskImportCapability = defineCapability({
5242
+ id: "disk.import",
5243
+ domain,
5244
+ roles: ["user"],
5245
+ description: "Import a VM disk into the caller's organization from a public qcow2 URL. The request returns once the image is copied and checked.",
5246
+ mutation: "preview-confirm",
5247
+ input: diskImportInput,
5248
+ mcp: false,
5249
+ slack: false,
5250
+ execute: async (ctx, input) => importDisk2(ctx, diskImportInput.parse(input)),
5251
+ cli: {
5252
+ command: ["disks", "import"],
5253
+ input: diskImportCliInput,
5254
+ execute: async (ctx, raw) => {
5255
+ const input = diskImportCliInput.parse(raw);
5256
+ const disk = await importDisk2({ ...ctx, confirmed: true }, { url: input.$positionals[0], display_name: input.name });
5257
+ return diskResult(ctx, disk);
5258
+ },
5259
+ vnext: customerHelp("Import a disk from a public qcow2 URL.", "ornn disks import <url> --name <name>", "ornn disks import <url> --name <name> --format json", { references: ["public qcow2 URL"], order: 703 })
5260
+ }
5261
+ });
5262
+ var diskUploadStartInput = z23.object({
5263
+ display_name: displayName.describe("Name for the uploaded disk."),
5264
+ disk_id: uuid4.optional().describe("Replace this uploaded disk's file instead of creating a disk."),
5265
+ ...owner,
5266
+ ...software
5267
+ }).strict().refine((input) => input.disk_id === void 0 || input.scope === void 0 && input.organization_id === void 0, {
5268
+ message: "A replacement keeps its disk's owner; omit scope and organization_id.",
5269
+ path: ["disk_id"]
5270
+ });
5271
+ var diskUploadCliInput = z23.object({ $positionals: z23.tuple([z23.string().min(1)]), name: displayName, disk: uuid4.optional() }).strict();
5272
+ var diskUploadStartCapability = defineCapability({
5273
+ id: "disk.upload.start",
5274
+ domain,
5275
+ roles: ["user", "admin"],
5276
+ description: "Begin a qcow2 disk upload. Returns the upload target: PUT the file to a signed_put upload_url, or send it with disk.upload.object in local_proxy mode, then call disk.upload.complete. Pass disk_id to replace an uploaded disk's file. Customers upload into their organization; staff pass scope global or organization_id and may record the disk's software.",
5277
+ mutation: "preview-confirm",
5278
+ input: diskUploadStartInput,
5279
+ slack: false,
5280
+ execute: async (ctx, raw) => {
5281
+ const input = diskUploadStartInput.parse(raw);
5282
+ const body2 = {
5283
+ display_name: input.display_name,
5284
+ ...input.disk_id ? { disk_id: input.disk_id } : diskOwner(ctx, input),
5285
+ ...requireStaffSoftware(ctx, input)
5286
+ };
5287
+ if (!ctx.confirmed)
5288
+ return preview("disk.upload.start", body2);
5289
+ return startDiskUpload(ctx.fetch, body2);
5290
+ },
5291
+ cli: {
5292
+ command: ["disks", "upload"],
5293
+ input: diskUploadCliInput,
5294
+ execute: (ctx, input) => {
5295
+ const interaction = interactionOf(ctx);
5296
+ if (!interaction.disks)
5297
+ throw new Error("ornn disks upload runs only in the Ornn CLI.");
5298
+ return interaction.disks("disk.upload", diskUploadCliInput.parse(input));
5299
+ },
5300
+ vnext: customerHelp("Upload a local qcow2 file as a disk, or replace an uploaded disk's file.", "ornn disks upload <file> --name <name> [--disk <disk-id>]", "ornn disks upload <file> --name <name> --format json", { references: ["local qcow2 file"], order: 704 })
5301
+ }
5302
+ });
5303
+ var diskUploadObjectInput = z23.object({
5304
+ id: uuid4.describe("Disk UUID returned by disk.upload.start."),
5305
+ disk_b64: boundedBase64.describe("Standard base64 disk bytes for the local_proxy mode only; at most 1 MiB decoded.")
5306
+ }).strict();
5307
+ var diskUploadObjectCapability = defineCapability({
5308
+ id: "disk.upload.object",
5309
+ domain,
5310
+ roles: ["user", "admin"],
5311
+ description: "Send a small qcow2 file of at most 1 MiB decoded, for the local_proxy upload mode only. signed_put uploads go straight to their upload_url.",
5312
+ mutation: "preview-confirm",
5313
+ input: diskUploadObjectInput,
5314
+ slack: false,
5315
+ execute: async (ctx, raw) => {
5316
+ const input = diskUploadObjectInput.parse(raw);
5317
+ if (!ctx.confirmed) {
5318
+ return preview("disk.upload.object", {
5319
+ id: input.id,
5320
+ decoded_bytes: decodedBase64Bytes(input.disk_b64)
5321
+ });
5322
+ }
5323
+ return postDiskObject(ctx.fetch, input);
5324
+ }
5325
+ });
5326
+ var diskUploadCompleteInput = z23.object({
5327
+ disk_id: uuid4.describe("Disk UUID whose upload to complete."),
5328
+ display_name: displayName.describe("The disk's name."),
5329
+ ...software
5330
+ }).strict();
5331
+ var diskUploadCompleteCapability = defineCapability({
5332
+ id: "disk.upload.complete",
5333
+ domain,
5334
+ roles: ["user", "admin"],
5335
+ description: "Complete a disk upload after its file was transferred. The owner checks the qcow2 file before the disk becomes ready. Staff may record the disk's software.",
5336
+ mutation: "preview-confirm",
5337
+ input: diskUploadCompleteInput,
5338
+ slack: false,
5339
+ execute: async (ctx, raw) => {
5340
+ const input = diskUploadCompleteInput.parse(raw);
5341
+ const body2 = { display_name: input.display_name, ...requireStaffSoftware(ctx, input) };
5342
+ if (!ctx.confirmed) {
5343
+ return preview("disk.upload.complete", { disk_id: input.disk_id, ...body2 });
5344
+ }
5345
+ return completeDiskUpload(ctx.fetch, input.disk_id, body2);
5346
+ }
5347
+ });
5348
+ async function deleteDisk2(ctx, diskId) {
5349
+ if (!ctx.confirmed)
5350
+ return preview("disk.delete", { disk_id: diskId });
5351
+ return deleteDisk(ctx.fetch, diskId);
5352
+ }
5353
+ var diskDeleteCapability = defineCapability({
5354
+ id: "disk.delete",
5355
+ domain,
5356
+ roles: ["user", "admin"],
5357
+ description: "Delete one VM disk. The owner refuses a disk a VM still uses. Customers delete their organization's disks.",
5358
+ mutation: "preview-confirm",
5359
+ input: diskShowInput,
5360
+ execute: async (ctx, input) => deleteDisk2(ctx, diskShowInput.parse(input).disk_id),
5361
+ cli: {
5362
+ command: ["disks", "delete"],
5363
+ input: diskIdArguments,
5364
+ execute: async (ctx, raw) => {
5365
+ const [diskId] = diskIdArguments.parse(raw).$positionals;
5366
+ const deleted = await deleteDisk2({ ...ctx, confirmed: true }, diskId);
5367
+ return interactionOf(ctx).result({
5368
+ data: deleted,
5369
+ presentation: { lines: [`Deleted disk ${diskId}.`] }
5370
+ });
5371
+ },
5372
+ vnext: customerHelp("Delete a disk no VM uses.", "ornn disks delete <disk-id>", "ornn disks delete <disk-id> --format json", { references: ["canonical disk ID"], order: 705 })
5373
+ }
5374
+ });
5375
+ var diskRebuildInput = z23.object({
5376
+ disk_ids: z23.array(uuid4).optional().describe("Image-built disk UUIDs to rebuild. Omit or pass none to rebuild every image-built disk.")
5377
+ }).strict();
5378
+ var diskRebuildCapability = defineCapability({
5379
+ id: "disk.rebuild",
5380
+ domain,
5381
+ roles: ["admin"],
5382
+ description: "Staff disk write: rebuild image-built disks on the current build recipe, global and organization disks alike. Pass disk_ids for specific disks, or none for every image-built disk. A rebuilt disk stays ready and keeps its ID; launches use the new build once it publishes. Returns the requested disk IDs.",
5383
+ mutation: "preview-confirm",
5384
+ input: diskRebuildInput,
5385
+ execute: async (ctx, raw) => {
5386
+ requireAdmin2(ctx);
5387
+ const input = diskRebuildInput.parse(raw);
5388
+ const body2 = input.disk_ids?.length ? { disk_ids: input.disk_ids } : {};
5389
+ if (!ctx.confirmed) {
5390
+ return preview("disk.rebuild", input.disk_ids?.length ? body2 : { disk_ids: "every image-built disk" });
5391
+ }
5392
+ return requestDiskRebuilds(ctx.fetch, body2);
5393
+ },
5394
+ cli: {
5395
+ command: ["admin", "disks", "rebuild"],
5396
+ vnext: adminHelp3("Rebuild image-built disks on the current build recipe.", "ornn admin disks rebuild [--disk <disk-id> ...]", { related: ["admin disks builders", "admin disks prewarm"] })
5397
+ }
5398
+ });
5399
+ var diskPrewarmUpdateInput = z23.object({
5400
+ disk_id: uuid4.describe("Disk UUID whose prewarm state to change."),
5401
+ prewarm: z23.boolean().describe("Whether this global ready disk should be prewarmed.")
5402
+ }).strict();
5403
+ var diskPrewarmUpdateCapability = defineCapability({
5404
+ id: "disk.prewarm.update",
5405
+ domain,
5406
+ roles: ["admin"],
5407
+ description: "Staff disk write: enable or disable prewarming for a global ready disk; the orchestrator validates eligibility.",
5408
+ mutation: "preview-confirm",
5409
+ input: diskPrewarmUpdateInput,
5410
+ execute: async (ctx, raw) => {
5411
+ requireAdmin2(ctx);
5412
+ const { disk_id, ...body2 } = diskPrewarmUpdateInput.parse(raw);
5413
+ if (!ctx.confirmed)
5414
+ return preview("disk.prewarm.update", { disk_id, ...body2 });
5415
+ return updateDisk(ctx.fetch, disk_id, body2);
5416
+ },
5417
+ cli: {
5418
+ command: ["admin", "disks", "prewarm"],
5419
+ vnext: adminHelp3("Turn prewarming on or off for a global ready disk.", "ornn admin disks prewarm <disk-id> --enabled true|false", { references: ["canonical disk ID"], related: ["admin disks rebuild"] })
5420
+ }
5421
+ });
5422
+ var diskBuildersListCapability = defineCapability({
5423
+ id: "disk.builders.list",
5424
+ domain,
5425
+ roles: ["admin"],
5426
+ description: "Staff disk read: show the disk builder fleet, its desired and maximum count, whether builders are configured in this environment, and each builder's status.",
5427
+ mutation: "read",
5428
+ input: z23.object({}).strict(),
5429
+ execute: async (ctx) => {
5430
+ requireAdmin2(ctx);
5431
+ return listDiskBuilders(ctx.fetch);
5432
+ },
5433
+ cli: {
5434
+ command: ["admin", "disks", "builders"],
5435
+ vnext: adminHelp3("Show the disk builder fleet, or set how many builders run.", "ornn admin disks builders [--count <n>]", { related: ["admin disks rebuild"] })
5436
+ }
5437
+ });
5438
+ var diskBuildersSetInput = z23.object({
5439
+ desired_count: z23.number().int().safe().nonnegative().describe("How many disk builders to run, up to the fleet's max_count. 0 stops them.")
5440
+ }).strict();
5441
+ var diskBuildersSetCapability = defineCapability({
5442
+ id: "disk.builders.set",
5443
+ domain,
5444
+ roles: ["admin"],
5445
+ description: "Staff disk write: set how many dedicated disk builders run. Builders above the count drain after their current build; 0 stops them, so new disks build on their first launch's node instead.",
5446
+ mutation: "preview-confirm",
5447
+ input: diskBuildersSetInput,
5448
+ execute: async (ctx, raw) => {
5449
+ requireAdmin2(ctx);
5450
+ const body2 = diskBuildersSetInput.parse(raw);
5451
+ if (!ctx.confirmed)
5452
+ return preview("disk.builders.set", body2);
5453
+ return setDiskBuilderCount(ctx.fetch, body2);
5454
+ }
5455
+ });
5456
+ var imageListCapability = defineCapability({
5457
+ id: "image.list",
5458
+ domain,
5459
+ roles: ["admin"],
5460
+ description: "Staff image catalog read: list base images including pending uploads. Returns the orchestrator-owned catalog response unchanged.",
5461
+ mutation: "read",
5462
+ input: z23.object({}).strict(),
5463
+ execute: async (ctx) => {
5464
+ requireAdmin2(ctx);
5465
+ return listCatalogImages(ctx.fetch, { include_pending: true });
5466
+ },
5467
+ cli: {
5468
+ command: ["admin", "images", "list"],
5469
+ vnext: adminHelp3("List base images, including pending uploads.", "ornn admin images list", {
5470
+ related: ["admin images upload", "admin images delete"]
5471
+ })
5472
+ }
5473
+ });
5474
+ var imageUploadStartInput = z23.object({
5475
+ display_name: displayName.describe("Name for the new image."),
5476
+ os_release: z23.string().nullable().describe("Operating-system release label, or null when it is not known.")
5477
+ }).strict();
5478
+ var imageUploadStartCapability = defineCapability({
5479
+ id: "image.upload.start",
5480
+ domain,
5481
+ roles: ["admin"],
5482
+ description: "Staff image write: begin a base image upload. Returns the upload target: PUT the file to a signed_put upload_url, or send it with image.upload.object in local_proxy mode, then call image.upload.complete.",
5483
+ mutation: "preview-confirm",
5484
+ input: imageUploadStartInput,
5485
+ slack: false,
5486
+ execute: async (ctx, raw) => {
5487
+ requireAdmin2(ctx);
5488
+ const body2 = imageUploadStartInput.parse(raw);
5489
+ if (!ctx.confirmed)
5490
+ return preview("image.upload.start", body2);
5491
+ return startImageUpload(ctx.fetch, body2);
5492
+ },
5493
+ cli: {
5494
+ command: ["admin", "images", "upload"],
5495
+ vnext: adminHelp3("Upload a local qcow2 file as a base image.", "ornn admin images upload <file> --name <name> [--os-release <release>]", { references: ["local qcow2 file"], related: ["admin images list"] })
5496
+ }
5497
+ });
5498
+ var imageUploadObjectInput = z23.object({
5499
+ id: uuid4.describe("Image UUID returned by image.upload.start."),
5500
+ image_b64: boundedBase64.describe("Standard base64 image bytes for the local_proxy mode only; at most 1 MiB decoded.")
5501
+ }).strict();
5502
+ var imageUploadObjectCapability = defineCapability({
5503
+ id: "image.upload.object",
5504
+ domain,
5505
+ roles: ["admin"],
5506
+ description: "Staff image write for local_proxy mode only: send a small qcow2 payload of at most 1 MiB decoded. signed_put uploads go straight to their upload_url.",
5507
+ mutation: "preview-confirm",
5508
+ input: imageUploadObjectInput,
5509
+ slack: false,
5510
+ execute: async (ctx, raw) => {
5511
+ requireAdmin2(ctx);
5512
+ const input = imageUploadObjectInput.parse(raw);
5513
+ if (!ctx.confirmed) {
5514
+ return preview("image.upload.object", {
5515
+ id: input.id,
5516
+ decoded_bytes: decodedBase64Bytes(input.image_b64)
5517
+ });
5518
+ }
5519
+ return postImageObject(ctx.fetch, input);
5520
+ }
5521
+ });
5522
+ var imageUploadCompleteInput = z23.object({
5523
+ image_id: uuid4.describe("Image UUID whose upload to complete."),
5524
+ display_name: displayName.describe("The image's name."),
5525
+ os_release: z23.string().nullable().describe("Operating-system release label, or null when it is not known.")
5526
+ }).strict();
5527
+ var imageUploadCompleteCapability = defineCapability({
5528
+ id: "image.upload.complete",
5529
+ domain,
5530
+ roles: ["admin"],
5531
+ description: "Staff image write: complete a base image upload after its file was transferred.",
5532
+ mutation: "preview-confirm",
5533
+ input: imageUploadCompleteInput,
5534
+ slack: false,
5535
+ execute: async (ctx, raw) => {
5536
+ requireAdmin2(ctx);
5537
+ const { image_id, ...body2 } = imageUploadCompleteInput.parse(raw);
5538
+ if (!ctx.confirmed)
5539
+ return preview("image.upload.complete", { image_id, ...body2 });
5540
+ return completeImageUpload(ctx.fetch, image_id, body2);
5541
+ }
5542
+ });
5543
+ var imageDeleteInput = z23.object({ image_id: uuid4.describe("Image UUID to delete.") }).strict();
5544
+ var imageDeleteCapability = defineCapability({
5545
+ id: "image.delete",
5546
+ domain,
5547
+ roles: ["admin"],
5548
+ description: "Destructive staff image write: delete a base image; the owner rejects deletion when the image is in use.",
5549
+ mutation: "preview-confirm",
5550
+ input: imageDeleteInput,
5551
+ execute: async (ctx, raw) => {
5552
+ requireAdmin2(ctx);
5553
+ const input = imageDeleteInput.parse(raw);
5554
+ if (!ctx.confirmed)
5555
+ return preview("image.delete", input);
5556
+ return deleteImage(ctx.fetch, input.image_id);
5557
+ },
5558
+ cli: {
5559
+ command: ["admin", "images", "delete"],
5560
+ vnext: adminHelp3("Delete a base image no disk uses.", "ornn admin images delete <image-id>", {
5561
+ references: ["canonical image ID"],
5562
+ related: ["admin images list"]
5563
+ })
5564
+ }
5565
+ });
5566
+ var diskCapabilities = [
5567
+ diskListCapability,
5568
+ diskShowCapability,
5569
+ diskCreateCapability,
5570
+ diskImportCapability,
5571
+ diskUploadStartCapability,
5572
+ diskUploadObjectCapability,
5573
+ diskUploadCompleteCapability,
5574
+ diskDeleteCapability,
5575
+ diskRebuildCapability,
5576
+ diskPrewarmUpdateCapability,
5577
+ diskBuildersListCapability,
5578
+ diskBuildersSetCapability,
5579
+ imageListCapability,
5580
+ imageUploadStartCapability,
5581
+ imageUploadObjectCapability,
5582
+ imageUploadCompleteCapability,
5583
+ imageDeleteCapability
5584
+ ];
5585
+
5586
+ // ../../packages/capabilities/dist/capabilities/gifts.js
5587
+ import { z as z24 } from "zod";
4902
5588
  var DEFAULT_EXPIRY_DAYS = 30;
4903
- var giftCreateInput = z23.object({
4904
- amountUsd: z23.number().min(1).max(1e4).multipleOf(0.01).describe("Gift value in USD: 50 is $50.00 of Ornn credits. From $1 to $10,000."),
4905
- expiresInDays: z23.number().int().min(1).max(365).default(DEFAULT_EXPIRY_DAYS).describe(`Days until the link expires. Defaults to ${DEFAULT_EXPIRY_DAYS}; at most 365.`),
4906
- note: z23.string().trim().max(500).optional().describe("Internal reason for the gift, for example the promotion or customer. Never shown to the recipient."),
4907
- confirm: z23.boolean().optional()
5589
+ var giftCreateInput = z24.object({
5590
+ amountUsd: z24.number().min(1).max(1e4).multipleOf(0.01).describe("Gift value in USD: 50 is $50.00 of Ornn credits. From $1 to $10,000."),
5591
+ expiresInDays: z24.number().int().min(1).max(365).default(DEFAULT_EXPIRY_DAYS).describe(`Days until the link expires. Defaults to ${DEFAULT_EXPIRY_DAYS}; at most 365.`),
5592
+ note: z24.string().trim().max(500).optional().describe("Internal reason for the gift, for example the promotion or customer. Never shown to the recipient."),
5593
+ confirm: z24.boolean().optional()
4908
5594
  });
4909
5595
  var giftCreateCapability = defineCapability({
4910
5596
  id: "gifts.create",
@@ -4966,20 +5652,20 @@ var giftCreateCapability = defineCapability({
4966
5652
  });
4967
5653
 
4968
5654
  // ../../packages/capabilities/dist/capabilities/cli.js
4969
- import { z as z24 } from "zod";
4970
- var emptyInput3 = z24.object({});
5655
+ import { z as z25 } from "zod";
5656
+ var emptyInput3 = z25.object({});
4971
5657
  function requireCliRuntime(context) {
4972
5658
  if (!context.cli) {
4973
5659
  throw new Error("This capability must execute through the Ornn CLI runtime.");
4974
5660
  }
4975
5661
  return context.cli;
4976
5662
  }
4977
- var updateInput = z24.object({
4978
- $positionals: z24.array(z24.string()).max(0).default([]),
4979
- major: z24.boolean().optional()
5663
+ var updateInput = z25.object({
5664
+ $positionals: z25.array(z25.string()).max(0).default([]),
5665
+ major: z25.boolean().optional()
4980
5666
  });
4981
- var completionInput = z24.object({
4982
- $positionals: z24.tuple([z24.enum(["bash", "fish", "zsh"])])
5667
+ var completionInput = z25.object({
5668
+ $positionals: z25.tuple([z25.enum(["bash", "fish", "zsh"])])
4983
5669
  }).transform(({ $positionals }) => ({ shell: $positionals[0] }));
4984
5670
  var versionCapability = defineCapability({
4985
5671
  id: "cli.version",
@@ -5120,23 +5806,23 @@ var cliShellCapabilities = [
5120
5806
  ];
5121
5807
 
5122
5808
  // ../../packages/capabilities/dist/capabilities/clusters.js
5123
- import { z as z25 } from "zod";
5124
- var clusterCliInput = z25.object({
5125
- $positionals: z25.array(z25.string()).optional(),
5126
- cursor: z25.string().optional(),
5127
- guided: z25.boolean().optional(),
5128
- idempotencyKey: z25.string().optional(),
5129
- limit: z25.union([z25.string(), z25.number()]).optional(),
5130
- machine: z25.string().optional(),
5131
- machines: z25.string().optional(),
5132
- network: z25.enum(["public", "private"]).optional(),
5133
- noWait: z25.boolean().optional(),
5134
- nodes: z25.union([z25.string(), z25.number()]).optional(),
5135
- output: z25.string().optional(),
5136
- overwrite: z25.boolean().optional(),
5137
- timeout: z25.string().optional(),
5138
- wait: z25.boolean().optional(),
5139
- yes: z25.boolean().optional()
5809
+ import { z as z26 } from "zod";
5810
+ var clusterCliInput = z26.object({
5811
+ $positionals: z26.array(z26.string()).optional(),
5812
+ cursor: z26.string().optional(),
5813
+ guided: z26.boolean().optional(),
5814
+ idempotencyKey: z26.string().optional(),
5815
+ limit: z26.union([z26.string(), z26.number()]).optional(),
5816
+ machine: z26.string().optional(),
5817
+ machines: z26.string().optional(),
5818
+ network: z26.enum(["public", "private"]).optional(),
5819
+ noWait: z26.boolean().optional(),
5820
+ nodes: z26.union([z26.string(), z26.number()]).optional(),
5821
+ output: z26.string().optional(),
5822
+ overwrite: z26.boolean().optional(),
5823
+ timeout: z26.string().optional(),
5824
+ wait: z26.boolean().optional(),
5825
+ yes: z26.boolean().optional()
5140
5826
  }).strict();
5141
5827
  function executeCluster(command) {
5142
5828
  return (context, input) => {
@@ -5175,13 +5861,13 @@ function clusterCliCapability({ acceptedReferences = [], automation, command, de
5175
5861
  execute: executeCluster(id)
5176
5862
  });
5177
5863
  }
5178
- var clusterType = z25.enum(["kubernetes", "slurm"]);
5179
- var reservationCluster = z25.object({ reservationId: z25.string(), type: clusterType });
5180
- var reservationWrite = reservationCluster.extend({ confirm: z25.boolean().optional() });
5181
- var controllerNode = z25.object({
5182
- controllerId: z25.string(),
5183
- nodeId: z25.string(),
5184
- confirm: z25.boolean().optional()
5864
+ var clusterType = z26.enum(["kubernetes", "slurm"]);
5865
+ var reservationCluster = z26.object({ reservationId: z26.string(), type: clusterType });
5866
+ var reservationWrite = reservationCluster.extend({ confirm: z26.boolean().optional() });
5867
+ var controllerNode = z26.object({
5868
+ controllerId: z26.string(),
5869
+ nodeId: z26.string(),
5870
+ confirm: z26.boolean().optional()
5185
5871
  });
5186
5872
  var clusterListCapability = defineCapability({
5187
5873
  id: "clusters.list",
@@ -5189,7 +5875,7 @@ var clusterListCapability = defineCapability({
5189
5875
  roles: ["user"],
5190
5876
  description: "List this tenant's kubernetes/slurm clusters.",
5191
5877
  mutation: "read",
5192
- input: z25.object({}),
5878
+ input: z26.object({}),
5193
5879
  mcp: { name: "clusters_list" },
5194
5880
  execute: (ctx) => listClusters(ctx.fetch),
5195
5881
  cli: {
@@ -5241,7 +5927,7 @@ var clusterTeardownCapability = defineCapability({
5241
5927
  roles: ["user"],
5242
5928
  description: "Tear down a kubernetes or slurm cluster on a reservation.",
5243
5929
  mutation: "preview-confirm",
5244
- input: reservationWrite.extend({ idempotencyKey: z25.string().optional() }),
5930
+ input: reservationWrite.extend({ idempotencyKey: z26.string().optional() }),
5245
5931
  mcp: { name: "clusters_teardown", input: reservationWrite },
5246
5932
  execute: (ctx, input) => teardownReservationCluster(ctx.fetch, input.type, input.reservationId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
5247
5933
  cli: {
@@ -5278,7 +5964,7 @@ var clusterAddNodeCapability = defineCapability({
5278
5964
  roles: ["user"],
5279
5965
  description: "Join a node to a controller.",
5280
5966
  mutation: "preview-confirm",
5281
- input: controllerNode.extend({ idempotencyKey: z25.string().optional() }),
5967
+ input: controllerNode.extend({ idempotencyKey: z26.string().optional() }),
5282
5968
  mcp: { name: "clusters_add_node", input: controllerNode },
5283
5969
  cli: {
5284
5970
  command: ["clusters", "add-node"],
@@ -5310,7 +5996,7 @@ var clusterRemoveNodeCapability = defineCapability({
5310
5996
  roles: ["user"],
5311
5997
  description: "Remove a node from a controller.",
5312
5998
  mutation: "preview-confirm",
5313
- input: controllerNode.extend({ idempotencyKey: z25.string().optional() }),
5999
+ input: controllerNode.extend({ idempotencyKey: z26.string().optional() }),
5314
6000
  mcp: { name: "clusters_remove_node", input: controllerNode },
5315
6001
  cli: {
5316
6002
  command: ["clusters", "remove-node"],
@@ -5336,13 +6022,13 @@ var clusterRemoveNodeCapability = defineCapability({
5336
6022
  },
5337
6023
  execute: (ctx, input) => removeControllerNode(ctx.fetch, input.controllerId, input.nodeId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0)
5338
6024
  });
5339
- var clusterCreateInput = z25.object({
5340
- reservationId: z25.string(),
6025
+ var clusterCreateInput = z26.object({
6026
+ reservationId: z26.string(),
5341
6027
  type: clusterType,
5342
- networkMode: z25.enum(["public", "private"]).optional(),
5343
- nodeIds: z25.array(z25.string()).optional(),
5344
- nodeCount: z25.number().int().positive().optional(),
5345
- confirm: z25.boolean().optional()
6028
+ networkMode: z26.enum(["public", "private"]).optional(),
6029
+ nodeIds: z26.array(z26.string()).optional(),
6030
+ nodeCount: z26.number().int().positive().optional(),
6031
+ confirm: z26.boolean().optional()
5346
6032
  }).strict();
5347
6033
  var clusterCreateCapability = defineCapability({
5348
6034
  id: "cluster.create",
@@ -5351,9 +6037,9 @@ var clusterCreateCapability = defineCapability({
5351
6037
  description: "Launch a kubernetes or slurm cluster on a reservation.",
5352
6038
  mutation: "preview-confirm",
5353
6039
  input: clusterCreateInput.extend({
5354
- virtualMachineIds: z25.array(z25.string()).optional(),
5355
- sshKeyIds: z25.array(z25.string()).optional(),
5356
- idempotencyKey: z25.string().optional()
6040
+ virtualMachineIds: z26.array(z26.string()).optional(),
6041
+ sshKeyIds: z26.array(z26.string()).optional(),
6042
+ idempotencyKey: z26.string().optional()
5357
6043
  }),
5358
6044
  mcp: { name: "clusters_create", input: clusterCreateInput },
5359
6045
  execute: (ctx, input) => createController(ctx.fetch, {
@@ -5397,8 +6083,8 @@ var clusterCapabilities = [
5397
6083
  roles: ["user"],
5398
6084
  description: "List active reservations eligible for cluster creation (kubernetes/slurm), 100 per page. Pass the response's nextCursor as cursor for the next page.",
5399
6085
  mutation: "read",
5400
- input: z25.object({
5401
- cursor: z25.string().min(1).optional().describe("nextCursor from the previous page.")
6086
+ input: z26.object({
6087
+ cursor: z26.string().min(1).optional().describe("nextCursor from the previous page.")
5402
6088
  }),
5403
6089
  mcp: { name: "clusters_reservations_list" },
5404
6090
  // A cluster launches on an active reservation. Commerce pages at most 100.
@@ -5414,7 +6100,7 @@ var clusterCapabilities = [
5414
6100
  roles: ["user"],
5415
6101
  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.",
5416
6102
  mutation: "read",
5417
- input: z25.object({ reservationId: z25.string() }),
6103
+ input: z26.object({ reservationId: z26.string() }),
5418
6104
  mcp: { name: "clusters_kubeconfig" },
5419
6105
  execute: async (ctx, input) => {
5420
6106
  const credentials = await clusterCredentialsCapability.execute(ctx, {
@@ -5433,55 +6119,55 @@ var clusterCapabilities = [
5433
6119
  ];
5434
6120
 
5435
6121
  // ../../packages/capabilities/dist/capabilities/external-buckets.js
5436
- import { z as z26 } from "zod";
5437
- var pageInput2 = z26.object({
5438
- $positionals: z26.array(z26.string()).optional(),
5439
- cursor: z26.string().optional(),
5440
- limit: z26.union([z26.string(), z26.number()]).optional()
6122
+ import { z as z27 } from "zod";
6123
+ var pageInput2 = z27.object({
6124
+ $positionals: z27.array(z27.string()).optional(),
6125
+ cursor: z27.string().optional(),
6126
+ limit: z27.union([z27.string(), z27.number()]).optional()
5441
6127
  }).strict();
5442
- var showInput = z26.object({
5443
- $positionals: z26.array(z26.string()).optional()
6128
+ var showInput = z27.object({
6129
+ $positionals: z27.array(z27.string()).optional()
5444
6130
  }).strict();
5445
- var verificationInput = z26.object({
5446
- $positionals: z26.array(z26.string()).optional(),
5447
- idempotencyKey: z26.string().optional()
6131
+ var verificationInput = z27.object({
6132
+ $positionals: z27.array(z27.string()).optional(),
6133
+ idempotencyKey: z27.string().optional()
5448
6134
  }).strict();
5449
- var disconnectInput = z26.object({
5450
- $positionals: z26.array(z26.string()).optional(),
5451
- idempotencyKey: z26.string().optional(),
5452
- yes: z26.boolean().optional()
6135
+ var disconnectInput = z27.object({
6136
+ $positionals: z27.array(z27.string()).optional(),
6137
+ idempotencyKey: z27.string().optional(),
6138
+ yes: z27.boolean().optional()
5453
6139
  }).strict();
5454
- var connectInput = z26.object({
5455
- $positionals: z26.array(z26.string()).optional(),
5456
- accessKeyId: z26.string().optional(),
5457
- accountId: z26.string().optional(),
5458
- bucket: z26.string().optional(),
5459
- endpointUrl: z26.string().optional(),
5460
- idempotencyKey: z26.string().optional(),
5461
- name: z26.string().optional(),
5462
- prefix: z26.string().optional(),
5463
- readOnly: z26.boolean().optional(),
5464
- readWrite: z26.boolean().optional(),
5465
- region: z26.string().optional(),
5466
- secretAccessKeyFile: z26.string().optional(),
5467
- url: z26.string().optional(),
5468
- yes: z26.boolean().optional()
6140
+ var connectInput = z27.object({
6141
+ $positionals: z27.array(z27.string()).optional(),
6142
+ accessKeyId: z27.string().optional(),
6143
+ accountId: z27.string().optional(),
6144
+ bucket: z27.string().optional(),
6145
+ endpointUrl: z27.string().optional(),
6146
+ idempotencyKey: z27.string().optional(),
6147
+ name: z27.string().optional(),
6148
+ prefix: z27.string().optional(),
6149
+ readOnly: z27.boolean().optional(),
6150
+ readWrite: z27.boolean().optional(),
6151
+ region: z27.string().optional(),
6152
+ secretAccessKeyFile: z27.string().optional(),
6153
+ url: z27.string().optional(),
6154
+ yes: z27.boolean().optional()
5469
6155
  }).strict();
5470
- var credentialInput = z26.object({
5471
- $positionals: z26.array(z26.string()).optional(),
5472
- accessKeyId: z26.string().optional(),
5473
- idempotencyKey: z26.string().optional(),
5474
- secretAccessKeyFile: z26.string().optional(),
5475
- yes: z26.boolean().optional()
6156
+ var credentialInput = z27.object({
6157
+ $positionals: z27.array(z27.string()).optional(),
6158
+ accessKeyId: z27.string().optional(),
6159
+ idempotencyKey: z27.string().optional(),
6160
+ secretAccessKeyFile: z27.string().optional(),
6161
+ yes: z27.boolean().optional()
5476
6162
  }).strict();
5477
- var importInput = z26.object({
5478
- $positionals: z26.array(z26.string()).optional(),
5479
- idempotencyKey: z26.string().optional(),
5480
- noWait: z26.boolean().optional(),
5481
- reservation: z26.string().optional(),
5482
- timeout: z26.string().optional(),
5483
- wait: z26.boolean().optional(),
5484
- yes: z26.boolean().optional()
6163
+ var importInput = z27.object({
6164
+ $positionals: z27.array(z27.string()).optional(),
6165
+ idempotencyKey: z27.string().optional(),
6166
+ noWait: z27.boolean().optional(),
6167
+ reservation: z27.string().optional(),
6168
+ timeout: z27.string().optional(),
6169
+ wait: z27.boolean().optional(),
6170
+ yes: z27.boolean().optional()
5485
6171
  }).strict();
5486
6172
  function externalBucketExecutor(context) {
5487
6173
  const interaction = context.cli?.interaction;
@@ -5497,16 +6183,16 @@ function isExternalBucket(drive) {
5497
6183
  return false;
5498
6184
  return ["external_gcs", "s3", "r2", "cloudflare_r2"].includes(source.provider ?? "") || Boolean(source.bucket);
5499
6185
  }
5500
- var bucketInput = z26.object({ driveId: z26.string() });
6186
+ var bucketInput = z27.object({ driveId: z27.string() });
5501
6187
  var bucketListCapability = defineCapability({
5502
6188
  id: "storage.external-buckets.list",
5503
6189
  domain: "storage",
5504
6190
  roles: ["user"],
5505
6191
  description: "List a page of connected external buckets. Pass next_cursor as cursor to continue.",
5506
6192
  mutation: "read",
5507
- input: z26.object({
5508
- limit: z26.number().int().min(1).max(100).optional(),
5509
- cursor: z26.string().optional()
6193
+ input: z27.object({
6194
+ limit: z27.number().int().min(1).max(100).optional(),
6195
+ cursor: z27.string().optional()
5510
6196
  }),
5511
6197
  mcp: { name: "storage_buckets_list" },
5512
6198
  execute: async (context, input) => {
@@ -5598,18 +6284,18 @@ var bucketDisconnectCapability = defineCapability({
5598
6284
  }
5599
6285
  }
5600
6286
  });
5601
- var bucketConnectInput = z26.object({
5602
- provider: z26.enum(["gcs", "s3", "r2"]),
5603
- bucket: z26.string(),
5604
- name: z26.string().optional(),
5605
- prefix: z26.string().optional(),
5606
- region: z26.string().optional(),
5607
- endpointUrl: z26.string().optional(),
5608
- accountId: z26.string().optional(),
5609
- accessKeyId: z26.string().optional(),
5610
- secretAccessKey: z26.string().optional(),
5611
- readOnly: z26.boolean().optional(),
5612
- confirm: z26.boolean().optional()
6287
+ var bucketConnectInput = z27.object({
6288
+ provider: z27.enum(["gcs", "s3", "r2"]),
6289
+ bucket: z27.string(),
6290
+ name: z27.string().optional(),
6291
+ prefix: z27.string().optional(),
6292
+ region: z27.string().optional(),
6293
+ endpointUrl: z27.string().optional(),
6294
+ accountId: z27.string().optional(),
6295
+ accessKeyId: z27.string().optional(),
6296
+ secretAccessKey: z27.string().optional(),
6297
+ readOnly: z27.boolean().optional(),
6298
+ confirm: z27.boolean().optional()
5613
6299
  }).refine((input) => !(input.provider === "gcs" && (input.accessKeyId || input.secretAccessKey)), {
5614
6300
  message: "Access key credentials are only supported for S3-compatible buckets."
5615
6301
  }).refine((input) => Boolean(input.accessKeyId) === Boolean(input.secretAccessKey), {
@@ -5617,10 +6303,10 @@ var bucketConnectInput = z26.object({
5617
6303
  }).refine((input) => input.provider !== "r2" || Boolean(input.endpointUrl || input.accountId), {
5618
6304
  message: "R2 buckets require either --endpointUrl or --accountId."
5619
6305
  });
5620
- var bucketWriteInput = bucketInput.extend({ confirm: z26.boolean().optional() });
6306
+ var bucketWriteInput = bucketInput.extend({ confirm: z27.boolean().optional() });
5621
6307
  var bucketCredentialInput = bucketWriteInput.extend({
5622
- accessKeyId: z26.string(),
5623
- secretAccessKey: z26.string()
6308
+ accessKeyId: z27.string(),
6309
+ secretAccessKey: z27.string()
5624
6310
  });
5625
6311
  var bucketConnectCapability = defineCapability({
5626
6312
  id: "storage.external-buckets.connect",
@@ -5628,7 +6314,7 @@ var bucketConnectCapability = defineCapability({
5628
6314
  roles: ["user"],
5629
6315
  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).",
5630
6316
  mutation: "preview-confirm",
5631
- input: bucketConnectInput.safeExtend({ idempotencyKey: z26.string().optional() }),
6317
+ input: bucketConnectInput.safeExtend({ idempotencyKey: z27.string().optional() }),
5632
6318
  mcp: { name: "storage_buckets_connect", input: bucketConnectInput },
5633
6319
  execute: (context, input) => {
5634
6320
  const endpoint = input.endpointUrl ?? (input.provider === "r2" && input.accountId ? `https://${input.accountId}.r2.cloudflarestorage.com` : void 0);
@@ -5671,7 +6357,7 @@ var bucketUpdateCredentialsCapability = defineCapability({
5671
6357
  roles: ["user"],
5672
6358
  description: "Update a connected S3-compatible bucket's access key credentials.",
5673
6359
  mutation: "preview-confirm",
5674
- input: bucketCredentialInput.extend({ idempotencyKey: z26.string().optional() }),
6360
+ input: bucketCredentialInput.extend({ idempotencyKey: z27.string().optional() }),
5675
6361
  mcp: { name: "storage_buckets_update_credentials", input: bucketCredentialInput },
5676
6362
  execute: (context, input) => updateDrive(context.fetch, input.driveId, {
5677
6363
  source_credentials: {
@@ -5703,7 +6389,7 @@ var bucketVerifyCapability = defineCapability({
5703
6389
  roles: ["user"],
5704
6390
  description: "Verify a connected S3-compatible bucket's source credentials/connectivity.",
5705
6391
  mutation: "preview-confirm",
5706
- input: bucketWriteInput.extend({ idempotencyKey: z26.string().optional() }),
6392
+ input: bucketWriteInput.extend({ idempotencyKey: z27.string().optional() }),
5707
6393
  mcp: { name: "storage_buckets_verify", input: bucketWriteInput },
5708
6394
  execute: (context, input) => updateDrive(context.fetch, input.driveId, { verify_source: true }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
5709
6395
  cli: {
@@ -5760,22 +6446,22 @@ var externalBucketCapabilities = [
5760
6446
  ];
5761
6447
 
5762
6448
  // ../../packages/capabilities/dist/capabilities/evidence.js
5763
- import { z as z27 } from "zod";
5764
- var positionals3 = z27.array(z27.string()).default([]);
5765
- var evidenceInput = z27.object({
6449
+ import { z as z28 } from "zod";
6450
+ var positionals3 = z28.array(z28.string()).default([]);
6451
+ var evidenceInput = z28.object({
5766
6452
  $positionals: positionals3,
5767
- before: z27.string().optional(),
5768
- count: z27.string().optional(),
5769
- cursor: z27.string().optional(),
5770
- end: z27.string().optional(),
5771
- follow: z27.boolean().optional(),
5772
- guided: z27.boolean().optional(),
5773
- interval: z27.string().optional(),
5774
- limit: z27.string().optional(),
5775
- maxPoints: z27.string().optional(),
5776
- start: z27.string().optional(),
5777
- stream: z27.enum(["kernel", "serial"]).optional(),
5778
- timeout: z27.string().optional()
6453
+ before: z28.string().optional(),
6454
+ count: z28.string().optional(),
6455
+ cursor: z28.string().optional(),
6456
+ end: z28.string().optional(),
6457
+ follow: z28.boolean().optional(),
6458
+ guided: z28.boolean().optional(),
6459
+ interval: z28.string().optional(),
6460
+ limit: z28.string().optional(),
6461
+ maxPoints: z28.string().optional(),
6462
+ start: z28.string().optional(),
6463
+ stream: z28.enum(["kernel", "serial"]).optional(),
6464
+ timeout: z28.string().optional()
5779
6465
  }).strict();
5780
6466
  function runtime2(context) {
5781
6467
  const interaction = context.cli?.interaction;
@@ -5904,13 +6590,13 @@ var evidenceCapabilities = [
5904
6590
  ];
5905
6591
 
5906
6592
  // ../../packages/api-client/dist/authorization/paths.js
5907
- function withQuery(path5, values) {
6593
+ function withQuery(path6, values) {
5908
6594
  const query3 = new URLSearchParams();
5909
6595
  for (const [key, value] of Object.entries(values)) {
5910
6596
  if (value !== void 0 && value !== null && value !== "")
5911
6597
  query3.set(key, Array.isArray(value) ? value.join(",") : String(value));
5912
6598
  }
5913
- return query3.size ? `${path5}?${query3}` : path5;
6599
+ return query3.size ? `${path6}?${query3}` : path6;
5914
6600
  }
5915
6601
 
5916
6602
  // ../../packages/api-client/dist/authorization/organizations.js
@@ -5941,46 +6627,46 @@ function getCliSession(request) {
5941
6627
  }
5942
6628
 
5943
6629
  // ../../packages/capabilities/dist/capabilities/fleet.js
5944
- import { z as z28 } from "zod";
5945
- var suppliersInput = z28.object({
5946
- q: z28.string().optional(),
5947
- offset: z28.number().int().min(0).optional(),
5948
- limit: z28.number().int().min(1).max(1e3).optional()
5949
- });
5950
- var facilitiesInput = z28.object({
5951
- organization_id: z28.string().optional(),
5952
- cursor: z28.string().optional(),
5953
- limit: z28.number().int().min(1).max(100).optional()
5954
- });
5955
- var nodesInput = z28.object({
5956
- organization_id: z28.string().optional(),
5957
- facility_id: z28.string().optional(),
5958
- status: z28.string().optional(),
5959
- reservation_id: z28.string().optional(),
5960
- cursor: z28.string().optional(),
5961
- max: z28.number().int().positive().max(5e3).optional(),
5962
- limit: z28.number().int().positive().max(5e3).optional()
5963
- });
5964
- var nodeLifecycleInput = z28.object({
5965
- node_id: z28.string().min(1),
5966
- maintenance_batch_id: z28.string().uuid().optional(),
5967
- node_ref: z28.string().optional(),
5968
- reason: z28.string().optional(),
5969
- delete_node_record: z28.literal(true).optional(),
5970
- idempotency_key: z28.string().optional(),
5971
- yes: z28.boolean().optional(),
5972
- wait: z28.boolean().optional(),
5973
- timeout_seconds: z28.number().positive().optional()
5974
- });
5975
- var nodeSshRemoteInput = z28.object({
5976
- node_id: z28.string().min(1).optional(),
5977
- host: z28.string().min(1).optional(),
5978
- username: z28.string().min(1).optional(),
5979
- port: z28.number().int().min(1).max(65535).optional(),
5980
- private_key: z28.string().min(1).optional(),
5981
- command: z28.string().min(1),
5982
- timeout_seconds: z28.number().int().positive(),
5983
- yes: z28.boolean().optional()
6630
+ import { z as z29 } from "zod";
6631
+ var suppliersInput = z29.object({
6632
+ q: z29.string().optional(),
6633
+ offset: z29.number().int().min(0).optional(),
6634
+ limit: z29.number().int().min(1).max(1e3).optional()
6635
+ });
6636
+ var facilitiesInput = z29.object({
6637
+ organization_id: z29.string().optional(),
6638
+ cursor: z29.string().optional(),
6639
+ limit: z29.number().int().min(1).max(100).optional()
6640
+ });
6641
+ var nodesInput = z29.object({
6642
+ organization_id: z29.string().optional(),
6643
+ facility_id: z29.string().optional(),
6644
+ status: z29.string().optional(),
6645
+ reservation_id: z29.string().optional(),
6646
+ cursor: z29.string().optional(),
6647
+ max: z29.number().int().positive().max(5e3).optional(),
6648
+ limit: z29.number().int().positive().max(5e3).optional()
6649
+ });
6650
+ var nodeLifecycleInput = z29.object({
6651
+ node_id: z29.string().min(1),
6652
+ maintenance_batch_id: z29.string().uuid().optional(),
6653
+ node_ref: z29.string().optional(),
6654
+ reason: z29.string().optional(),
6655
+ delete_node_record: z29.literal(true).optional(),
6656
+ idempotency_key: z29.string().optional(),
6657
+ yes: z29.boolean().optional(),
6658
+ wait: z29.boolean().optional(),
6659
+ timeout_seconds: z29.number().positive().optional()
6660
+ });
6661
+ var nodeSshRemoteInput = z29.object({
6662
+ node_id: z29.string().min(1).optional(),
6663
+ host: z29.string().min(1).optional(),
6664
+ username: z29.string().min(1).optional(),
6665
+ port: z29.number().int().min(1).max(65535).optional(),
6666
+ private_key: z29.string().min(1).optional(),
6667
+ command: z29.string().min(1),
6668
+ timeout_seconds: z29.number().int().positive(),
6669
+ yes: z29.boolean().optional()
5984
6670
  });
5985
6671
  var listSuppliersCapability = defineCapability({
5986
6672
  id: "supplier.list",
@@ -6077,7 +6763,7 @@ var listFacilitiesCapability = defineCapability({
6077
6763
  });
6078
6764
  }
6079
6765
  });
6080
- var facilityShowInput = z28.object({ facilityId: z28.uuid() });
6766
+ var facilityShowInput = z29.object({ facilityId: z29.uuid() });
6081
6767
  var facilityShowCapability = defineCapability({
6082
6768
  id: "facilities.show",
6083
6769
  domain: "fleet",
@@ -6172,12 +6858,12 @@ var listNodesCapability = defineCapability({
6172
6858
  });
6173
6859
  }
6174
6860
  });
6175
- var nodeSshInput = z28.object({
6176
- node_id: z28.string().min(1).refine((value) => value === value.trim(), {
6861
+ var nodeSshInput = z29.object({
6862
+ node_id: z29.string().min(1).refine((value) => value === value.trim(), {
6177
6863
  message: "node_id must be an exact canonical node ID without surrounding whitespace"
6178
6864
  }),
6179
- command: z28.string().min(1),
6180
- timeout_seconds: z28.number().int().min(1).max(900)
6865
+ command: z29.string().min(1),
6866
+ timeout_seconds: z29.number().int().min(1).max(900)
6181
6867
  });
6182
6868
  var nodeSshCapability = defineCapability({
6183
6869
  id: "node.ssh",
@@ -6281,8 +6967,8 @@ var fleetCapabilities = [
6281
6967
  ];
6282
6968
 
6283
6969
  // ../../packages/capabilities/dist/capabilities/metrics.js
6284
- import { z as z29 } from "zod";
6285
- var metricInput = z29.object({ reservationId: z29.string(), machineId: z29.string().optional() });
6970
+ import { z as z30 } from "zod";
6971
+ var metricInput = z30.object({ reservationId: z30.string(), machineId: z30.string().optional() });
6286
6972
  async function nodeIds(context, input) {
6287
6973
  if (input.machineId)
6288
6974
  return [input.machineId];
@@ -6317,9 +7003,9 @@ var metricsHistoryCapability = defineCapability({
6317
7003
  mutation: "read",
6318
7004
  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.",
6319
7005
  input: metricInput.extend({
6320
- start: z29.string().optional(),
6321
- end: z29.string().optional(),
6322
- maxPoints: z29.number().int().positive().optional()
7006
+ start: z30.string().optional(),
7007
+ end: z30.string().optional(),
7008
+ maxPoints: z30.number().int().positive().optional()
6323
7009
  }),
6324
7010
  execute: async (context, input) => {
6325
7011
  const [nodeId3] = await nodeIds(context, input);
@@ -6334,18 +7020,18 @@ var metricsHistoryCapability = defineCapability({
6334
7020
  var metricsCapabilities = [metricsSnapshotCapability, metricsHistoryCapability];
6335
7021
 
6336
7022
  // ../../packages/capabilities/dist/capabilities/mounts.js
6337
- import { z as z30 } from "zod";
6338
- var mountCliInput = z30.object({
6339
- $positionals: z30.array(z30.string()).default([]),
6340
- access: z30.string().optional(),
6341
- cursor: z30.string().optional(),
6342
- idempotencyKey: z30.string().optional(),
6343
- limit: z30.union([z30.string(), z30.number()]).optional(),
6344
- noWait: z30.boolean().optional(),
6345
- timeout: z30.string().optional(),
6346
- volume: z30.string().optional(),
6347
- wait: z30.boolean().optional(),
6348
- yes: z30.boolean().optional()
7023
+ import { z as z31 } from "zod";
7024
+ var mountCliInput = z31.object({
7025
+ $positionals: z31.array(z31.string()).default([]),
7026
+ access: z31.string().optional(),
7027
+ cursor: z31.string().optional(),
7028
+ idempotencyKey: z31.string().optional(),
7029
+ limit: z31.union([z31.string(), z31.number()]).optional(),
7030
+ noWait: z31.boolean().optional(),
7031
+ timeout: z31.string().optional(),
7032
+ volume: z31.string().optional(),
7033
+ wait: z31.boolean().optional(),
7034
+ yes: z31.boolean().optional()
6349
7035
  }).strict();
6350
7036
  function executeMount(command) {
6351
7037
  return (context, input) => {
@@ -6359,11 +7045,11 @@ function executeMount(command) {
6359
7045
  function mutationOptions(idempotencyKey) {
6360
7046
  return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
6361
7047
  }
6362
- var reservationInput = z30.object({ reservationId: z30.string() });
6363
- var reservationWrite2 = reservationInput.extend({ confirm: z30.boolean().optional() });
7048
+ var reservationInput = z31.object({ reservationId: z31.string() });
7049
+ var reservationWrite2 = reservationInput.extend({ confirm: z31.boolean().optional() });
6364
7050
  var attachInput = reservationWrite2.extend({
6365
- driveId: z30.string(),
6366
- readOnly: z30.boolean().optional()
7051
+ driveId: z31.string(),
7052
+ readOnly: z31.boolean().optional()
6367
7053
  });
6368
7054
  var volumeMountCandidatesCapability = defineCapability({
6369
7055
  id: "storage.volume-mounts.candidates",
@@ -6371,7 +7057,7 @@ var volumeMountCandidatesCapability = defineCapability({
6371
7057
  roles: ["user"],
6372
7058
  description: "List reservations that can receive a storage deploy, grouped the same way as the console picker.",
6373
7059
  mutation: "read",
6374
- input: z30.object({}),
7060
+ input: z31.object({}),
6375
7061
  mcp: { name: "storage_targets" },
6376
7062
  cli: {
6377
7063
  command: ["volume-mounts", "candidates"],
@@ -6426,9 +7112,9 @@ var volumeMountAttachCapability = defineCapability({
6426
7112
  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.",
6427
7113
  mutation: "preview-confirm",
6428
7114
  input: attachInput.extend({
6429
- mountPath: z30.string().optional(),
6430
- mountMode: z30.literal("fuse").optional(),
6431
- idempotencyKey: z30.string().optional()
7115
+ mountPath: z31.string().optional(),
7116
+ mountMode: z31.literal("fuse").optional(),
7117
+ idempotencyKey: z31.string().optional()
6432
7118
  }),
6433
7119
  mcp: { name: "storage_deploy", input: attachInput },
6434
7120
  cli: {
@@ -6465,7 +7151,7 @@ var volumeMountDetachCapability = defineCapability({
6465
7151
  roles: ["user"],
6466
7152
  description: "Detach the reservation storage attachment (after unmount) so the volume can be deleted.",
6467
7153
  mutation: "preview-confirm",
6468
- input: reservationWrite2.extend({ idempotencyKey: z30.string().optional() }),
7154
+ input: reservationWrite2.extend({ idempotencyKey: z31.string().optional() }),
6469
7155
  mcp: { name: "storage_undeploy", input: reservationWrite2 },
6470
7156
  cli: {
6471
7157
  command: ["volume-mounts", "detach"],
@@ -6521,13 +7207,13 @@ var mountCapabilities = [
6521
7207
  ];
6522
7208
 
6523
7209
  // ../../packages/capabilities/dist/capabilities/identity.js
6524
- import { z as z31 } from "zod";
6525
- var emptyInput4 = z31.object({});
6526
- var loginInput = z31.object({
6527
- authBase: z31.string().min(1).optional(),
6528
- noBrowser: z31.boolean().optional(),
6529
- pollInterval: z31.number().positive().optional(),
6530
- timeout: z31.number().positive().optional()
7210
+ import { z as z32 } from "zod";
7211
+ var emptyInput4 = z32.object({});
7212
+ var loginInput = z32.object({
7213
+ authBase: z32.string().min(1).optional(),
7214
+ noBrowser: z32.boolean().optional(),
7215
+ pollInterval: z32.number().positive().optional(),
7216
+ timeout: z32.number().positive().optional()
6531
7217
  });
6532
7218
  function executeSession(context, command, input) {
6533
7219
  if (!context.cli?.session) {
@@ -6646,50 +7332,50 @@ var identityCapabilities = [
6646
7332
  ];
6647
7333
 
6648
7334
  // ../../packages/capabilities/dist/capabilities/listings.js
6649
- import { z as z32 } from "zod";
6650
- var listingCreateInput = z32.object({
6651
- organizationId: z32.string().optional(),
6652
- organization_id: z32.string().optional(),
6653
- facilityId: z32.string().optional(),
6654
- facility_id: z32.string().optional(),
6655
- kind: z32.enum(["gpu", "cpu", "node", "link"]).optional(),
6656
- gpu: z32.string().optional(),
6657
- cpu: z32.string().optional(),
6658
- site: z32.string().optional(),
6659
- fabric: z32.string().optional(),
6660
- min_nodes: z32.number().int().optional(),
6661
- starts_after: z32.string().optional(),
6662
- starts_before: z32.string().optional(),
6663
- ends_after: z32.string().optional(),
6664
- ends_before: z32.string().optional(),
6665
- gpu_type: z32.string().optional(),
6666
- node_model: z32.string().optional(),
6667
- fabric_type: z32.string().optional(),
6668
- node_count: z32.number().int().optional(),
6669
- gpus_per_node: z32.number().int().optional(),
6670
- cores_per_node: z32.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".'),
6671
- site_nickname: z32.string().optional().describe("Where the capacity is, exactly as the user said it: a state, city, address, or catalog region such as us-west-3. Ornn places it in a catalog region."),
6672
- site_supplier: z32.string().optional(),
6673
- ram: z32.string().optional(),
6674
- storage: z32.string().optional(),
6675
- internet: z32.string().optional(),
6676
- network_hardware: z32.string().optional(),
6677
- available_start_at: z32.string().optional().describe("Start of the availability window. YYYY-MM-DD or RFC3339."),
6678
- available_end_at: z32.string().optional().describe("End of the availability window. YYYY-MM-DD or RFC3339."),
6679
- available_from: z32.string().optional().describe("Alias for available_start_at."),
6680
- available_to: z32.string().optional().describe("Alias for available_end_at."),
6681
- buy_now_price_per_gpu_hour: z32.number().optional().describe("Price buyers pay, USD per GPU-hour (per vCPU-hour on CPU listings)."),
6682
- deposit_percent: z32.number().optional(),
6683
- down_payment_cents: z32.number().int().nonnegative().optional(),
6684
- access_mode: z32.enum(["bare-metal", "virtual-machine"]).optional(),
6685
- state: z32.enum(["available", "draft"]).optional(),
6686
- price_omitted: z32.boolean().optional(),
6687
- announce: z32.boolean().optional(),
6688
- text: z32.string().optional(),
6689
- confirm: z32.boolean().optional(),
6690
- idempotencyKey: z32.string().min(1).max(200).optional()
6691
- });
6692
- var catalogTermsInput = z32.object({ kind: z32.enum(["gpu", "cpu", "node", "link"]).optional() });
7335
+ import { z as z33 } from "zod";
7336
+ var listingCreateInput = z33.object({
7337
+ organizationId: z33.string().optional(),
7338
+ organization_id: z33.string().optional(),
7339
+ facilityId: z33.string().optional(),
7340
+ facility_id: z33.string().optional(),
7341
+ kind: z33.enum(["gpu", "cpu", "node", "link"]).optional(),
7342
+ gpu: z33.string().optional(),
7343
+ cpu: z33.string().optional(),
7344
+ site: z33.string().optional(),
7345
+ fabric: z33.string().optional(),
7346
+ min_nodes: z33.number().int().optional(),
7347
+ starts_after: z33.string().optional(),
7348
+ starts_before: z33.string().optional(),
7349
+ ends_after: z33.string().optional(),
7350
+ ends_before: z33.string().optional(),
7351
+ gpu_type: z33.string().optional(),
7352
+ node_model: z33.string().optional(),
7353
+ fabric_type: z33.string().optional(),
7354
+ node_count: z33.number().int().optional(),
7355
+ gpus_per_node: z33.number().int().optional(),
7356
+ cores_per_node: z33.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".'),
7357
+ site_nickname: z33.string().optional().describe("Where the capacity is, exactly as the user said it: a state, city, address, or catalog region such as us-west-3. Ornn places it in a catalog region."),
7358
+ site_supplier: z33.string().optional(),
7359
+ ram: z33.string().optional(),
7360
+ storage: z33.string().optional(),
7361
+ internet: z33.string().optional(),
7362
+ network_hardware: z33.string().optional(),
7363
+ available_start_at: z33.string().optional().describe("Start of the availability window. YYYY-MM-DD or RFC3339."),
7364
+ available_end_at: z33.string().optional().describe("End of the availability window. YYYY-MM-DD or RFC3339."),
7365
+ available_from: z33.string().optional().describe("Alias for available_start_at."),
7366
+ available_to: z33.string().optional().describe("Alias for available_end_at."),
7367
+ buy_now_price_per_gpu_hour: z33.number().optional().describe("Price buyers pay, USD per GPU-hour (per vCPU-hour on CPU listings)."),
7368
+ deposit_percent: z33.number().optional(),
7369
+ down_payment_cents: z33.number().int().nonnegative().optional(),
7370
+ access_mode: z33.enum(["bare-metal", "virtual-machine"]).optional(),
7371
+ state: z33.enum(["available", "draft"]).optional(),
7372
+ price_omitted: z33.boolean().optional(),
7373
+ announce: z33.boolean().optional(),
7374
+ text: z33.string().optional(),
7375
+ confirm: z33.boolean().optional(),
7376
+ idempotencyKey: z33.string().min(1).max(200).optional()
7377
+ });
7378
+ var catalogTermsInput = z33.object({ kind: z33.enum(["gpu", "cpu", "node", "link"]).optional() });
6693
7379
  var listCatalogTermsCapability = defineCapability({
6694
7380
  id: "listings.catalog_terms",
6695
7381
  mcp: false,
@@ -6968,13 +7654,13 @@ var listingCapabilities = [
6968
7654
  // ../../packages/api-client/dist/observability/index.js
6969
7655
  var base3 = "/v1/observability";
6970
7656
  var nodePath = (id) => `${base3}/nodes/${encodeURIComponent(id)}`;
6971
- function queryPath2(path5, input) {
7657
+ function queryPath2(path6, input) {
6972
7658
  const query3 = new URLSearchParams();
6973
7659
  for (const [key, value] of Object.entries(input)) {
6974
7660
  if (value !== void 0)
6975
7661
  query3.set(key, String(value));
6976
7662
  }
6977
- return query3.size ? `${path5}?${query3}` : path5;
7663
+ return query3.size ? `${path6}?${query3}` : path6;
6978
7664
  }
6979
7665
  function getNodeLatestTelemetry(request, id, input = {}, signal) {
6980
7666
  return request(queryPath2(`${nodePath(id)}/telemetry/latest`, input), {
@@ -7009,38 +7695,38 @@ function nodeLogsSubscribePath(id, stream) {
7009
7695
  }
7010
7696
 
7011
7697
  // ../../packages/capabilities/dist/capabilities/observability.js
7012
- import { z as z33 } from "zod";
7013
- function tailPath(path5, input) {
7698
+ import { z as z34 } from "zod";
7699
+ function tailPath(path6, input) {
7014
7700
  const query3 = new URLSearchParams({
7015
7701
  duration: String(input.duration ?? 20),
7016
7702
  max_events: String(input.max_events ?? 40)
7017
7703
  });
7018
- return `${path5}${path5.includes("?") ? "&" : "?"}${query3}`;
7019
- }
7020
- var latestInput = z33.object({
7021
- node_id: z33.string().min(1),
7022
- start: z33.string().optional(),
7023
- end: z33.string().optional(),
7024
- span: z33.string().optional(),
7025
- max_points: z33.number().int().min(1).max(500).optional(),
7026
- metrics: z33.string().optional()
7027
- });
7028
- var logsLatestInput = z33.object({
7029
- node_id: z33.string().min(1),
7030
- stream: z33.enum(["serial", "kernel"]).default("kernel"),
7031
- count: z33.number().int().min(1).max(1e3).optional(),
7032
- before: z33.string().optional(),
7033
- start: z33.string().optional(),
7034
- cursor: z33.string().optional()
7035
- });
7036
- var tailInput = z33.object({
7037
- node_id: z33.string().min(1),
7038
- duration: z33.number().int().min(1).max(120).optional(),
7039
- max_events: z33.number().int().min(1).max(200).optional(),
7040
- fields: z33.string().optional()
7704
+ return `${path6}${path6.includes("?") ? "&" : "?"}${query3}`;
7705
+ }
7706
+ var latestInput = z34.object({
7707
+ node_id: z34.string().min(1),
7708
+ start: z34.string().optional(),
7709
+ end: z34.string().optional(),
7710
+ span: z34.string().optional(),
7711
+ max_points: z34.number().int().min(1).max(500).optional(),
7712
+ metrics: z34.string().optional()
7713
+ });
7714
+ var logsLatestInput = z34.object({
7715
+ node_id: z34.string().min(1),
7716
+ stream: z34.enum(["serial", "kernel"]).default("kernel"),
7717
+ count: z34.number().int().min(1).max(1e3).optional(),
7718
+ before: z34.string().optional(),
7719
+ start: z34.string().optional(),
7720
+ cursor: z34.string().optional()
7721
+ });
7722
+ var tailInput = z34.object({
7723
+ node_id: z34.string().min(1),
7724
+ duration: z34.number().int().min(1).max(120).optional(),
7725
+ max_events: z34.number().int().min(1).max(200).optional(),
7726
+ fields: z34.string().optional()
7041
7727
  });
7042
7728
  var logsTailInput = tailInput.extend({
7043
- stream: z33.enum(["serial", "kernel"]).default("kernel")
7729
+ stream: z34.enum(["serial", "kernel"]).default("kernel")
7044
7730
  });
7045
7731
  function expandSpan(span, start, end) {
7046
7732
  if (start?.trim() && end?.trim()) {
@@ -7121,7 +7807,7 @@ var telemetryLatestBatchCapability = defineCapability({
7121
7807
  required: ["node_ids"]
7122
7808
  }
7123
7809
  },
7124
- input: z33.object({ node_ids: z33.array(z33.uuid()).min(1).max(100) }),
7810
+ input: z34.object({ node_ids: z34.array(z34.uuid()).min(1).max(100) }),
7125
7811
  execute: async (ctx, input) => getLatestTelemetry(ctx.fetch, { node_ids: input.node_ids })
7126
7812
  });
7127
7813
  var logsLatestCapability = defineCapability({
@@ -7193,9 +7879,9 @@ var telemetrySnapshotCapability = defineCapability({
7193
7879
  required: ["node_id"]
7194
7880
  }
7195
7881
  },
7196
- input: z33.object({
7197
- node_id: z33.string().min(1),
7198
- limit: z33.number().int().min(1).max(1e3).optional()
7882
+ input: z34.object({
7883
+ node_id: z34.string().min(1),
7884
+ limit: z34.number().int().min(1).max(1e3).optional()
7199
7885
  }),
7200
7886
  execute: async (ctx, input) => getNodeLatestTelemetry(ctx.fetch, input.node_id, { limit: input.limit ?? 1 })
7201
7887
  });
@@ -7262,12 +7948,12 @@ var observabilityCapabilities = [
7262
7948
  ];
7263
7949
 
7264
7950
  // ../../packages/capabilities/dist/capabilities/organization-invites.js
7265
- import { z as z34 } from "zod";
7266
- var organizationInviteInput = z34.object({
7267
- organization_id: z34.uuid().optional(),
7268
- email: z34.string().trim().toLowerCase().pipe(z34.email()),
7269
- supplier: z34.boolean().optional(),
7270
- send_email: z34.boolean().optional().describe("Defaults to true for an existing organization; false returns a link. Signup invites cannot be emailed.")
7951
+ import { z as z35 } from "zod";
7952
+ var organizationInviteInput = z35.object({
7953
+ organization_id: z35.uuid().optional(),
7954
+ email: z35.string().trim().toLowerCase().pipe(z35.email()),
7955
+ supplier: z35.boolean().optional(),
7956
+ send_email: z35.boolean().optional().describe("Defaults to true for an existing organization; false returns a link. Signup invites cannot be emailed.")
7271
7957
  }).superRefine((input, ctx) => {
7272
7958
  if (!input.organization_id && input.send_email === true) {
7273
7959
  ctx.addIssue({
@@ -7329,33 +8015,33 @@ var organizationInviteCapability = defineCapability({
7329
8015
  });
7330
8016
 
7331
8017
  // ../../packages/capabilities/dist/capabilities/networks.js
7332
- import { z as z35 } from "zod";
8018
+ import { z as z36 } from "zod";
7333
8019
  var globalInput = {
7334
- $positionals: z35.array(z35.string()).optional(),
7335
- guided: z35.boolean().optional(),
7336
- idempotencyKey: z35.string().optional(),
7337
- noBrowser: z35.boolean().optional(),
7338
- noWait: z35.boolean().optional(),
7339
- overwrite: z35.boolean().optional(),
7340
- print: z35.boolean().optional(),
7341
- wait: z35.boolean().optional(),
7342
- yes: z35.boolean().optional()
8020
+ $positionals: z36.array(z36.string()).optional(),
8021
+ guided: z36.boolean().optional(),
8022
+ idempotencyKey: z36.string().optional(),
8023
+ noBrowser: z36.boolean().optional(),
8024
+ noWait: z36.boolean().optional(),
8025
+ overwrite: z36.boolean().optional(),
8026
+ print: z36.boolean().optional(),
8027
+ wait: z36.boolean().optional(),
8028
+ yes: z36.boolean().optional()
7343
8029
  };
7344
- var noOptionsInput = z35.object(globalInput).strict();
7345
- var connectInput2 = z35.object({
8030
+ var noOptionsInput = z36.object(globalInput).strict();
8031
+ var connectInput2 = z36.object({
7346
8032
  ...globalInput,
7347
- identityFile: z35.string().optional(),
7348
- output: z35.string().optional(),
7349
- user: z35.string().optional()
8033
+ identityFile: z36.string().optional(),
8034
+ output: z36.string().optional(),
8035
+ user: z36.string().optional()
7350
8036
  }).strict();
7351
- var listInput = z35.object({ ...globalInput, cursor: z35.string().optional(), limit: z35.string().optional() }).strict();
7352
- var networkCreateInput = z35.object({ ...globalInput, cidr: z35.string().optional(), name: z35.string().optional() }).strict();
7353
- var networkUpdateInput = z35.object({ ...globalInput, name: z35.string().optional() }).strict();
7354
- var vpnConfigureInput = z35.object({
8037
+ var listInput = z36.object({ ...globalInput, cursor: z36.string().optional(), limit: z36.string().optional() }).strict();
8038
+ var networkCreateInput = z36.object({ ...globalInput, cidr: z36.string().optional(), name: z36.string().optional() }).strict();
8039
+ var networkUpdateInput = z36.object({ ...globalInput, name: z36.string().optional() }).strict();
8040
+ var vpnConfigureInput = z36.object({
7355
8041
  ...globalInput,
7356
- name: z35.string().optional(),
7357
- output: z35.string().optional(),
7358
- privateKey: z35.string().optional()
8042
+ name: z36.string().optional(),
8043
+ output: z36.string().optional(),
8044
+ privateKey: z36.string().optional()
7359
8045
  }).strict();
7360
8046
  function executeNetwork(command) {
7361
8047
  return (context, input) => {
@@ -7368,36 +8054,36 @@ function executeNetwork(command) {
7368
8054
  function mutationOptions2(idempotencyKey) {
7369
8055
  return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
7370
8056
  }
7371
- var networkIdInput = z35.object({ networkId: z35.string() });
7372
- var networkCreateFields = z35.object({
7373
- name: z35.string(),
7374
- cidr: z35.string().optional(),
7375
- description: z35.string().optional(),
7376
- confirm: z35.boolean().optional()
7377
- });
7378
- var networkUpdateFields = z35.object({
7379
- networkId: z35.string(),
7380
- name: z35.string().optional(),
7381
- description: z35.string().optional(),
7382
- clearDescription: z35.boolean().optional(),
7383
- confirm: z35.boolean().optional()
8057
+ var networkIdInput = z36.object({ networkId: z36.string() });
8058
+ var networkCreateFields = z36.object({
8059
+ name: z36.string(),
8060
+ cidr: z36.string().optional(),
8061
+ description: z36.string().optional(),
8062
+ confirm: z36.boolean().optional()
8063
+ });
8064
+ var networkUpdateFields = z36.object({
8065
+ networkId: z36.string(),
8066
+ name: z36.string().optional(),
8067
+ description: z36.string().optional(),
8068
+ clearDescription: z36.boolean().optional(),
8069
+ confirm: z36.boolean().optional()
7384
8070
  }).refine((input) => !(input.clearDescription && input.description !== void 0), {
7385
8071
  message: "Use either description or clearDescription, not both."
7386
8072
  }).refine((input) => input.name !== void 0 || input.description !== void 0 || input.clearDescription, { message: "Provide name, description, or clearDescription." });
7387
- var networkDeleteInput = networkIdInput.extend({ confirm: z35.boolean().optional() });
7388
- var vpnPeerCreateInput = z35.object({
7389
- publicKey: z35.string(),
7390
- label: z35.string().optional(),
7391
- confirm: z35.boolean().optional()
7392
- });
7393
- var vpnPeerDeleteInput = z35.object({ peerId: z35.string(), confirm: z35.boolean().optional() });
7394
- var reservationInput2 = { reservationId: z35.string() };
8073
+ var networkDeleteInput = networkIdInput.extend({ confirm: z36.boolean().optional() });
8074
+ var vpnPeerCreateInput = z36.object({
8075
+ publicKey: z36.string(),
8076
+ label: z36.string().optional(),
8077
+ confirm: z36.boolean().optional()
8078
+ });
8079
+ var vpnPeerDeleteInput = z36.object({ peerId: z36.string(), confirm: z36.boolean().optional() });
8080
+ var reservationInput2 = { reservationId: z36.string() };
7395
8081
  var privateNetworkListCapability = defineCapability({
7396
8082
  id: "networks.list",
7397
8083
  domain: "networks",
7398
8084
  roles: ["user"],
7399
8085
  mutation: "read",
7400
- input: z35.object({}),
8086
+ input: z36.object({}),
7401
8087
  description: "List this tenant's private networks.",
7402
8088
  mcp: { name: "networks_list" },
7403
8089
  cli: {
@@ -7448,7 +8134,7 @@ var privateNetworkCreateCapability = defineCapability({
7448
8134
  domain: "networks",
7449
8135
  roles: ["user"],
7450
8136
  mutation: "preview-confirm",
7451
- input: networkCreateFields.extend({ idempotencyKey: z35.string().optional() }),
8137
+ input: networkCreateFields.extend({ idempotencyKey: z36.string().optional() }),
7452
8138
  description: "Create a private network.",
7453
8139
  mcp: { name: "networks_create", input: networkCreateFields },
7454
8140
  cli: {
@@ -7475,7 +8161,7 @@ var privateNetworkUpdateCapability = defineCapability({
7475
8161
  domain: "networks",
7476
8162
  roles: ["user"],
7477
8163
  mutation: "preview-confirm",
7478
- input: networkUpdateFields.safeExtend({ idempotencyKey: z35.string().optional() }),
8164
+ input: networkUpdateFields.safeExtend({ idempotencyKey: z36.string().optional() }),
7479
8165
  description: "Update a private network's name or description. Pass clearDescription: true to null out the description instead of setting it.",
7480
8166
  mcp: { name: "networks_update", input: networkUpdateFields },
7481
8167
  cli: {
@@ -7505,7 +8191,7 @@ var privateNetworkDeleteCapability = defineCapability({
7505
8191
  domain: "networks",
7506
8192
  roles: ["user"],
7507
8193
  mutation: "preview-confirm",
7508
- input: networkDeleteInput.extend({ idempotencyKey: z35.string().optional() }),
8194
+ input: networkDeleteInput.extend({ idempotencyKey: z36.string().optional() }),
7509
8195
  description: "Delete a private network.",
7510
8196
  mcp: { name: "networks_delete", input: networkDeleteInput },
7511
8197
  cli: {
@@ -7535,9 +8221,9 @@ var vpnConnectionListCapability = defineCapability({
7535
8221
  domain: "vpn",
7536
8222
  roles: ["user"],
7537
8223
  mutation: "read",
7538
- input: z35.object({}),
8224
+ input: z36.object({}),
7539
8225
  description: "List WireGuard VPN peers registered on a reservation.",
7540
- mcp: { name: "vpn_peers_list", input: z35.object(reservationInput2) },
8226
+ mcp: { name: "vpn_peers_list", input: z36.object(reservationInput2) },
7541
8227
  cli: {
7542
8228
  command: ["vpn-connections", "list"],
7543
8229
  input: listInput,
@@ -7561,11 +8247,11 @@ var vpnConnectionConfigureCapability = defineCapability({
7561
8247
  domain: "vpn",
7562
8248
  roles: ["user"],
7563
8249
  mutation: "preview-confirm",
7564
- input: vpnPeerCreateInput.extend({ idempotencyKey: z35.string().optional() }),
8250
+ input: vpnPeerCreateInput.extend({ idempotencyKey: z36.string().optional() }),
7565
8251
  description: "Register a WireGuard VPN peer public key on a reservation.",
7566
8252
  mcp: {
7567
8253
  name: "vpn_peers_create",
7568
- input: z35.object({ ...reservationInput2, ...vpnPeerCreateInput.shape })
8254
+ input: z36.object({ ...reservationInput2, ...vpnPeerCreateInput.shape })
7569
8255
  },
7570
8256
  cli: {
7571
8257
  command: ["vpn-connections", "configure"],
@@ -7592,11 +8278,11 @@ var vpnConnectionDisconnectCapability = defineCapability({
7592
8278
  domain: "vpn",
7593
8279
  roles: ["user"],
7594
8280
  mutation: "preview-confirm",
7595
- input: vpnPeerDeleteInput.extend({ idempotencyKey: z35.string().optional() }),
8281
+ input: vpnPeerDeleteInput.extend({ idempotencyKey: z36.string().optional() }),
7596
8282
  description: "Revoke a WireGuard VPN peer from a reservation.",
7597
8283
  mcp: {
7598
8284
  name: "vpn_peers_delete",
7599
- input: z35.object({ ...reservationInput2, ...vpnPeerDeleteInput.shape })
8285
+ input: z36.object({ ...reservationInput2, ...vpnPeerDeleteInput.shape })
7600
8286
  },
7601
8287
  cli: {
7602
8288
  command: ["vpn-connections", "disconnect"],
@@ -7667,20 +8353,20 @@ var networkCapabilities = [
7667
8353
  ];
7668
8354
 
7669
8355
  // ../../packages/capabilities/dist/capabilities/registry.js
7670
- import { z as z36 } from "zod";
8356
+ import { z as z37 } from "zod";
7671
8357
  var globalInput2 = {
7672
- $positionals: z36.array(z36.string()).default([]),
7673
- yes: z36.boolean().optional()
8358
+ $positionals: z37.array(z37.string()).default([]),
8359
+ yes: z37.boolean().optional()
7674
8360
  };
7675
- var emptyInput5 = z36.object(globalInput2).strict();
7676
- var repositoryInput = z36.object({
8361
+ var emptyInput5 = z37.object(globalInput2).strict();
8362
+ var repositoryInput = z37.object({
7677
8363
  ...globalInput2,
7678
- repository: z36.string().optional().describe("Repository name, with or without your organization's namespace.")
8364
+ repository: z37.string().optional().describe("Repository name, with or without your organization's namespace.")
7679
8365
  }).strict();
7680
- var tagInput = z36.object({
8366
+ var tagInput = z37.object({
7681
8367
  ...globalInput2,
7682
- repository: z36.string().optional().describe("Repository name, with or without your organization's namespace."),
7683
- tag: z36.string().optional().describe("Tag to delete, such as v1.")
8368
+ repository: z37.string().optional().describe("Repository name, with or without your organization's namespace."),
8369
+ tag: z37.string().optional().describe("Tag to delete, such as v1.")
7684
8370
  }).strict();
7685
8371
  function cliInteraction(context) {
7686
8372
  return context.cli?.interaction;
@@ -7694,16 +8380,6 @@ function qualifiedRepository(value, registry) {
7694
8380
  function shortName(repository, registry) {
7695
8381
  return repository.startsWith(`${registry.namespace}/`) ? repository.slice(registry.namespace.length + 1) : repository;
7696
8382
  }
7697
- function formatBytes(bytes) {
7698
- const units = ["B", "KB", "MB", "GB", "TB"];
7699
- let value = bytes;
7700
- let unit = 0;
7701
- while (value >= 1024 && unit < units.length - 1) {
7702
- value /= 1024;
7703
- unit += 1;
7704
- }
7705
- return `${value >= 10 || unit === 0 ? Math.round(value) : value.toFixed(1)} ${units[unit]}`;
7706
- }
7707
8383
  function repositoryArgument(input, interaction) {
7708
8384
  const raw = input.repository ?? input.$positionals[0];
7709
8385
  if (!raw) {
@@ -7981,14 +8657,14 @@ var registryCapabilities = [
7981
8657
  ];
7982
8658
 
7983
8659
  // ../../packages/capabilities/dist/capabilities/reservation-list.js
7984
- import { z as z37 } from "zod";
7985
- var reservationListInput = z37.object({
7986
- customerId: z37.string().uuid().optional(),
7987
- listingId: z37.string().uuid().optional(),
7988
- listingTermId: z37.string().uuid().optional(),
7989
- status: z37.enum(["confirmed", "active", "completed", "cancelled"]).optional(),
7990
- cursor: z37.string().optional(),
7991
- limit: z37.number().int().min(1).max(100).optional()
8660
+ import { z as z38 } from "zod";
8661
+ var reservationListInput = z38.object({
8662
+ customerId: z38.string().uuid().optional(),
8663
+ listingId: z38.string().uuid().optional(),
8664
+ listingTermId: z38.string().uuid().optional(),
8665
+ status: z38.enum(["confirmed", "active", "completed", "cancelled"]).optional(),
8666
+ cursor: z38.string().optional(),
8667
+ limit: z38.number().int().min(1).max(100).optional()
7992
8668
  });
7993
8669
  var reservationListCapability = defineCapability({
7994
8670
  id: "reservation.list",
@@ -8038,20 +8714,20 @@ var reservationListCapability = defineCapability({
8038
8714
  });
8039
8715
 
8040
8716
  // ../../packages/capabilities/dist/capabilities/volumes.js
8041
- import { z as z38 } from "zod";
8042
- var storageCliInput = z38.object({
8043
- $positionals: z38.array(z38.string()).optional(),
8044
- contentType: z38.string().optional(),
8045
- cursor: z38.string().optional(),
8046
- idempotencyKey: z38.string().optional(),
8047
- limit: z38.union([z38.string(), z38.number()]).optional(),
8048
- name: z38.string().optional(),
8049
- output: z38.string().optional(),
8050
- overwrite: z38.boolean().optional(),
8051
- path: z38.string().optional(),
8052
- prefix: z38.string().optional(),
8053
- source: z38.string().optional(),
8054
- yes: z38.boolean().optional()
8717
+ import { z as z39 } from "zod";
8718
+ var storageCliInput = z39.object({
8719
+ $positionals: z39.array(z39.string()).optional(),
8720
+ contentType: z39.string().optional(),
8721
+ cursor: z39.string().optional(),
8722
+ idempotencyKey: z39.string().optional(),
8723
+ limit: z39.union([z39.string(), z39.number()]).optional(),
8724
+ name: z39.string().optional(),
8725
+ output: z39.string().optional(),
8726
+ overwrite: z39.boolean().optional(),
8727
+ path: z39.string().optional(),
8728
+ prefix: z39.string().optional(),
8729
+ source: z39.string().optional(),
8730
+ yes: z39.boolean().optional()
8055
8731
  }).strict();
8056
8732
  function storageExecutor(context) {
8057
8733
  const interaction = context.cli?.interaction;
@@ -8087,7 +8763,7 @@ function storageCapability({ id, command, description, mutation, outcome, human,
8087
8763
  execute: async (context, input) => storageExecutor(context)(id, input)
8088
8764
  });
8089
8765
  }
8090
- var filesListInput = z38.object({ driveId: z38.string(), prefix: z38.string().optional() });
8766
+ var filesListInput = z39.object({ driveId: z39.string(), prefix: z39.string().optional() });
8091
8767
  async function* listFiles(context, input) {
8092
8768
  const prefix = input.prefix ?? "";
8093
8769
  const folder = prefix.includes("/") ? prefix.slice(0, prefix.lastIndexOf("/")) : "";
@@ -8130,16 +8806,16 @@ var volumeFilesListCapability = defineCapability({
8130
8806
  }
8131
8807
  }
8132
8808
  });
8133
- var volumePageInput = z38.object({
8134
- limit: z38.number().int().min(1).max(100).optional(),
8135
- cursor: z38.string().optional()
8809
+ var volumePageInput = z39.object({
8810
+ limit: z39.number().int().min(1).max(100).optional(),
8811
+ cursor: z39.string().optional()
8136
8812
  });
8137
- var driveInput = z38.object({ driveId: z38.string() });
8138
- var driveWrite = driveInput.extend({ confirm: z38.boolean().optional() });
8139
- var volumeCreateInput = z38.object({
8140
- name: z38.string(),
8141
- sourceDriveId: z38.string().optional(),
8142
- confirm: z38.boolean().optional()
8813
+ var driveInput = z39.object({ driveId: z39.string() });
8814
+ var driveWrite = driveInput.extend({ confirm: z39.boolean().optional() });
8815
+ var volumeCreateInput = z39.object({
8816
+ name: z39.string(),
8817
+ sourceDriveId: z39.string().optional(),
8818
+ confirm: z39.boolean().optional()
8143
8819
  });
8144
8820
  var volumeListCapability = defineCapability({
8145
8821
  id: "storage.volumes.list",
@@ -8147,7 +8823,7 @@ var volumeListCapability = defineCapability({
8147
8823
  roles: ["user"],
8148
8824
  description: "List a page of storage volumes, newest updated first. Pass next_cursor as cursor to continue.",
8149
8825
  mutation: "read",
8150
- input: volumePageInput.extend({ scope: z38.enum(["all", "managed"]).optional() }),
8826
+ input: volumePageInput.extend({ scope: z39.enum(["all", "managed"]).optional() }),
8151
8827
  mcp: { name: "storage_volumes_list", input: volumePageInput },
8152
8828
  execute: (context, input) => listDrives(context.fetch, {
8153
8829
  limit: input.limit ?? 25,
@@ -8200,7 +8876,7 @@ var volumeCreateCapability = defineCapability({
8200
8876
  roles: ["user"],
8201
8877
  description: "Create a storage volume (drive), optionally cloned from an existing source drive.",
8202
8878
  mutation: "preview-confirm",
8203
- input: volumeCreateInput.extend({ idempotencyKey: z38.string().optional() }),
8879
+ input: volumeCreateInput.extend({ idempotencyKey: z39.string().optional() }),
8204
8880
  mcp: { name: "storage_volumes_create", input: volumeCreateInput },
8205
8881
  execute: (context, input) => createDrive(context.fetch, { name: input.name, source_drive_id: input.sourceDriveId ?? null }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
8206
8882
  cli: {
@@ -8276,7 +8952,7 @@ var volumeDeleteCapability = defineCapability({
8276
8952
  roles: ["user"],
8277
8953
  description: "Delete a storage volume (drive).",
8278
8954
  mutation: "preview-confirm",
8279
- input: driveWrite.extend({ idempotencyKey: z38.string().optional() }),
8955
+ input: driveWrite.extend({ idempotencyKey: z39.string().optional() }),
8280
8956
  mcp: { name: "storage_volumes_delete", input: driveWrite },
8281
8957
  execute: async (context, input) => {
8282
8958
  await deleteDrive(context.fetch, input.driveId, {}, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0);
@@ -8356,21 +9032,21 @@ var volumeCapabilities = [
8356
9032
  ];
8357
9033
 
8358
9034
  // ../../packages/capabilities/dist/capabilities/users.js
8359
- import { z as z39 } from "zod";
8360
- var directoryLimit = z39.number().int().min(1).max(100).default(25);
8361
- var directoryOffset = z39.number().int().nonnegative().optional();
8362
- var organizationListInput = z39.object({
8363
- q: z39.string().trim().optional().describe("Company name, contact/member name, or email."),
8364
- supplier: z39.boolean().optional(),
8365
- inference_provider: z39.boolean().optional(),
8366
- approved: z39.boolean().optional(),
8367
- ids: z39.array(z39.uuid()).min(1).max(100).optional(),
9035
+ import { z as z40 } from "zod";
9036
+ var directoryLimit = z40.number().int().min(1).max(100).default(25);
9037
+ var directoryOffset = z40.number().int().nonnegative().optional();
9038
+ var organizationListInput = z40.object({
9039
+ q: z40.string().trim().optional().describe("Company name, contact/member name, or email."),
9040
+ supplier: z40.boolean().optional(),
9041
+ inference_provider: z40.boolean().optional(),
9042
+ approved: z40.boolean().optional(),
9043
+ ids: z40.array(z40.uuid()).min(1).max(100).optional(),
8368
9044
  limit: directoryLimit,
8369
9045
  offset: directoryOffset
8370
9046
  });
8371
- var usersListInput = z39.object({
8372
- q: z39.string().trim().optional().describe("Person name, email, or company name."),
8373
- organization_id: z39.uuid().optional(),
9047
+ var usersListInput = z40.object({
9048
+ q: z40.string().trim().optional().describe("Person name, email, or company name."),
9049
+ organization_id: z40.uuid().optional(),
8374
9050
  limit: directoryLimit,
8375
9051
  offset: directoryOffset
8376
9052
  });
@@ -8538,6 +9214,7 @@ var catalog = [
8538
9214
  ...tokenCapabilities,
8539
9215
  ...userCapabilities,
8540
9216
  ...volumeCapabilities,
9217
+ ...diskCapabilities,
8541
9218
  ...mountCapabilities,
8542
9219
  ...externalBucketCapabilities,
8543
9220
  ...evidenceCapabilities,
@@ -8660,6 +9337,7 @@ export {
8660
9337
  clusterRemoveNodeCapability,
8661
9338
  clusterShowCapability,
8662
9339
  clusterTeardownCapability,
9340
+ diskBuildersSetCapability,
8663
9341
  gpuDisplay,
8664
9342
  isCustomerSensitiveField,
8665
9343
  machineRebootCapability,