@ornncompute/cli 1.0.257 → 1.0.258

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.
@@ -641,9 +641,6 @@ function assignNode(request, id, body2, headers) {
641
641
  ...headers ? { headers } : {}
642
642
  });
643
643
  }
644
- function issueNodeSshCertificate(request, id, body2) {
645
- return request(`${nodeResourcePath(id)}/ssh-certificates`, { method: "POST", body: body2 });
646
- }
647
644
  function rebootNode(request, id, body2, headers) {
648
645
  return request(`${nodeResourcePath(id)}/reboot`, {
649
646
  method: "POST",
@@ -884,35 +881,8 @@ var supplierNetworkingCapabilities = [
884
881
  })
885
882
  ];
886
883
 
887
- // ../../packages/capabilities/dist/capabilities/admin-ssh.js
888
- import { z as z4 } from "zod";
889
- var adminSshCapability = defineCapability({
890
- id: "node.ssh",
891
- domain: "fleet",
892
- roles: ["admin"],
893
- description: "Open staff SSH using a temporary local key and a short-lived node certificate.",
894
- mutation: "local",
895
- mcp: false,
896
- slack: false,
897
- cli: {
898
- command: ["admin", "ssh"],
899
- vnext: {
900
- audience: "admin",
901
- category: "journey",
902
- arguments: "semantic",
903
- outcome: "Open an SSH session to a node that trusts the SSH CA with a 15-minute certificate.",
904
- human: "ornn admin ssh <node-id>",
905
- automation: "Requires an interactive terminal."
906
- }
907
- },
908
- input: z4.object({ node_id: z4.string().uuid(), public_key: z4.string().min(1) }),
909
- execute: (ctx, input) => issueNodeSshCertificate(ctx.fetch, input.node_id, {
910
- public_key: input.public_key
911
- })
912
- });
913
-
914
884
  // ../../packages/capabilities/dist/capabilities/admin.js
915
- import { z as z5 } from "zod";
885
+ import { z as z4 } from "zod";
916
886
  var ADMIN_CLI_ROOTS = [
917
887
  { name: "users" },
918
888
  { name: "organizations" },
@@ -926,7 +896,7 @@ var ADMIN_CLI_ROOTS = [
926
896
  { name: "gifts" },
927
897
  { name: "inference" }
928
898
  ];
929
- var nodeInput = z5.object({ node_id: z5.string().min(1) });
899
+ var nodeInput = z4.object({ node_id: z4.string().min(1) });
930
900
  var adminNodeHealthCapability = defineCapability({
931
901
  id: "nodes.health",
932
902
  domain: "fleet",
@@ -947,7 +917,7 @@ var adminNodeHealthCapability = defineCapability({
947
917
  }
948
918
  },
949
919
  mcp: { name: "node_show" },
950
- input: z5.object({ nodeId: z5.string() }),
920
+ input: z4.object({ nodeId: z4.string() }),
951
921
  execute: async (ctx, input) => {
952
922
  return getNode(ctx.fetch, input.nodeId);
953
923
  }
@@ -1201,7 +1171,7 @@ function listOffers(request, filter = {}, signal) {
1201
1171
  }
1202
1172
 
1203
1173
  // ../../packages/capabilities/dist/capabilities/admin-capacity-reservations.js
1204
- import { z as z8 } from "zod";
1174
+ import { z as z7 } from "zod";
1205
1175
 
1206
1176
  // ../../packages/capabilities/dist/capabilities/staff-shared.js
1207
1177
  function statusOf(error) {
@@ -1238,7 +1208,7 @@ function unplacedLocation(place) {
1238
1208
  var LOCATION_LOOKUP_UNAVAILABLE = "Ornn's location lookup is unavailable right now. Keep this location and try again in a moment.";
1239
1209
 
1240
1210
  // ../../packages/capabilities/dist/capabilities/native-listing.js
1241
- import { z as z7 } from "zod";
1211
+ import { z as z6 } from "zod";
1242
1212
 
1243
1213
  // ../../packages/capabilities/dist/compute-units.js
1244
1214
  var CPU_SLUG = "cpu";
@@ -1254,10 +1224,10 @@ function unitsPerNode(listing) {
1254
1224
  }
1255
1225
 
1256
1226
  // ../../packages/capabilities/dist/capabilities/market-shared.js
1257
- import { z as z6 } from "zod";
1258
- var positionals = z6.array(z6.string()).max(0).default([]);
1259
- var microUsd = z6.coerce.number().int().positive();
1260
- var flag = z6.preprocess((value) => value === "true" ? true : value === "false" ? false : value, z6.boolean());
1227
+ import { z as z5 } from "zod";
1228
+ var positionals = z5.array(z5.string()).max(0).default([]);
1229
+ var microUsd = z5.coerce.number().int().positive();
1230
+ var flag = z5.preprocess((value) => value === "true" ? true : value === "false" ? false : value, z5.boolean());
1261
1231
  function resolveIdempotencyKey(ctx, supplied) {
1262
1232
  return ctx.cli?.interaction?.idempotencyKey(supplied) ?? supplied?.trim();
1263
1233
  }
@@ -1282,18 +1252,18 @@ function microUsdLabel(value) {
1282
1252
 
1283
1253
  // ../../packages/capabilities/dist/capabilities/native-listing.js
1284
1254
  var nativeTermFields = {
1285
- network: z7.string().refine((value) => new TextEncoder().encode(value).length <= 1024, "Network must be at most 1024 UTF-8 bytes.").nullable().optional().describe("Reserved network and interconnect for this choice. Immutable per term ID; create a new term for a different network."),
1286
- type: z7.enum(["reserved", "spot", "on-demand"]).nullable().optional(),
1287
- minDurationHours: z7.coerce.number().nonnegative(),
1288
- maxDurationHours: z7.coerce.number().nonnegative(),
1289
- pricePerGpuHourMicroUsd: z7.coerce.number().int().positive().describe("Micro-USD per unit-hour: per GPU, or per vCPU on CPU capacity."),
1290
- downPaymentCents: z7.coerce.number().int().nonnegative().nullable().optional(),
1255
+ network: z6.string().refine((value) => new TextEncoder().encode(value).length <= 1024, "Network must be at most 1024 UTF-8 bytes.").nullable().optional().describe("Reserved network and interconnect for this choice. Immutable per term ID; create a new term for a different network."),
1256
+ type: z6.enum(["reserved", "spot", "on-demand"]).nullable().optional(),
1257
+ minDurationHours: z6.coerce.number().nonnegative(),
1258
+ maxDurationHours: z6.coerce.number().nonnegative(),
1259
+ pricePerGpuHourMicroUsd: z6.coerce.number().int().positive().describe("Micro-USD per unit-hour: per GPU, or per vCPU on CPU capacity."),
1260
+ downPaymentCents: z6.coerce.number().int().nonnegative().nullable().optional(),
1291
1261
  renewable: flag,
1292
- preemptNoticeSeconds: z7.coerce.number().int().nonnegative().optional()
1262
+ preemptNoticeSeconds: z6.coerce.number().int().nonnegative().optional()
1293
1263
  };
1294
- var nativeTermInput = z7.object(nativeTermFields).strict();
1264
+ var nativeTermInput = z6.object(nativeTermFields).strict();
1295
1265
  function jsonArray(item) {
1296
- return z7.preprocess((value) => {
1266
+ return z6.preprocess((value) => {
1297
1267
  if (typeof value !== "string")
1298
1268
  return value;
1299
1269
  try {
@@ -1301,36 +1271,36 @@ function jsonArray(item) {
1301
1271
  } catch {
1302
1272
  return value;
1303
1273
  }
1304
- }, z7.array(item));
1274
+ }, z6.array(item));
1305
1275
  }
1306
1276
  var nativeTermsInput = jsonArray(nativeTermInput);
1307
1277
  var listingWriteControls = {
1308
- confirm: z7.boolean().optional(),
1309
- idempotencyKey: z7.string().min(1).max(200)
1278
+ confirm: z6.boolean().optional(),
1279
+ idempotencyKey: z6.string().min(1).max(200)
1310
1280
  };
1311
- var listingLocation = z7.string().trim().min(1).max(256).optional().describe("Instead of facilityId: a state, city, address, or catalog region such as us-west-3. Ornn places it in a catalog region and uses the supplier's facility there.");
1281
+ var listingLocation = z6.string().trim().min(1).max(256).optional().describe("Instead of facilityId: a state, city, address, or catalog region such as us-west-3. Ornn places it in a catalog region and uses the supplier's facility there.");
1312
1282
  var CPU_CORES_MESSAGE = "CPU capacity is sold in whole cores (2 vCPUs each).";
1313
- var coresPerNode = z7.coerce.number().int(CPU_CORES_MESSAGE).min(1, CPU_CORES_MESSAGE).nullable().optional().describe("CPU capacity only: cores per node (2 vCPUs each), priced per vCPU-hour.");
1314
- var nativeListingCreateInput = z7.object({
1315
- organizationId: z7.string().uuid().nullable().optional(),
1316
- kind: z7.enum(["primary", "secondary"]).default("primary"),
1317
- gpuSlug: z7.string().min(1).nullable().describe('Catalog GPU slug; null or "cpu" lists CPU capacity sold per vCPU-hour.'),
1318
- gpusPerNode: z7.coerce.number().int().nonnegative().optional().describe("GPUs per node; 0 or omitted on CPU capacity."),
1283
+ var coresPerNode = z6.coerce.number().int(CPU_CORES_MESSAGE).min(1, CPU_CORES_MESSAGE).nullable().optional().describe("CPU capacity only: cores per node (2 vCPUs each), priced per vCPU-hour.");
1284
+ var nativeListingCreateInput = z6.object({
1285
+ organizationId: z6.string().uuid().nullable().optional(),
1286
+ kind: z6.enum(["primary", "secondary"]).default("primary"),
1287
+ gpuSlug: z6.string().min(1).nullable().describe('Catalog GPU slug; null or "cpu" lists CPU capacity sold per vCPU-hour.'),
1288
+ gpusPerNode: z6.coerce.number().int().nonnegative().optional().describe("GPUs per node; 0 or omitted on CPU capacity."),
1319
1289
  coresPerNode,
1320
- capacityNodeCount: z7.coerce.number().int().positive().optional().describe("Defaults to the number of nodeIds."),
1321
- nodeIds: jsonArray(z7.string().uuid()).optional(),
1322
- facilityId: z7.string().uuid().optional(),
1290
+ capacityNodeCount: z6.coerce.number().int().positive().optional().describe("Defaults to the number of nodeIds."),
1291
+ nodeIds: jsonArray(z6.string().uuid()).optional(),
1292
+ facilityId: z6.string().uuid().optional(),
1323
1293
  location: listingLocation,
1324
- provisioningType: z7.enum(["bare-metal", "virtual-machine"]),
1325
- state: z7.enum(["draft", "available"]),
1326
- availableAt: z7.iso.datetime({ offset: true }).nullable().optional().describe("Primary capacity takes availableAt and availableUntil, or daysToRfs, not both."),
1327
- availableUntil: z7.iso.datetime({ offset: true }).nullable().optional(),
1328
- daysToRfs: z7.coerce.number().int().nonnegative().optional().describe("Days until ready for service; 0 when ready now. Required unless both dates are set."),
1329
- cpu: z7.string().optional(),
1330
- ram: z7.string().optional(),
1331
- storage: z7.string().optional(),
1332
- fabricType: z7.string().optional(),
1333
- internet: z7.string().optional(),
1294
+ provisioningType: z6.enum(["bare-metal", "virtual-machine"]),
1295
+ state: z6.enum(["draft", "available"]),
1296
+ availableAt: z6.iso.datetime({ offset: true }).nullable().optional().describe("Primary capacity takes availableAt and availableUntil, or daysToRfs, not both."),
1297
+ availableUntil: z6.iso.datetime({ offset: true }).nullable().optional(),
1298
+ daysToRfs: z6.coerce.number().int().nonnegative().optional().describe("Days until ready for service; 0 when ready now. Required unless both dates are set."),
1299
+ cpu: z6.string().optional(),
1300
+ ram: z6.string().optional(),
1301
+ storage: z6.string().optional(),
1302
+ fabricType: z6.string().optional(),
1303
+ internet: z6.string().optional(),
1334
1304
  terms: nativeTermsInput,
1335
1305
  ...listingWriteControls
1336
1306
  }).strict().refine((value) => Boolean(value.facilityId) !== Boolean(value.location), {
@@ -1369,22 +1339,22 @@ var nativeListingCreateInput = z7.object({
1369
1339
  });
1370
1340
  });
1371
1341
  var nativeListingUpdateFields = {
1372
- state: z7.enum(["draft", "available", "delisted"]).optional(),
1373
- nodeCount: z7.coerce.number().int().positive().optional(),
1374
- gpuSlug: z7.string().min(1).nullable().optional().describe('Catalog GPU slug; null or "cpu" for CPU capacity.'),
1375
- gpusPerNode: z7.coerce.number().int().nonnegative().optional(),
1342
+ state: z6.enum(["draft", "available", "delisted"]).optional(),
1343
+ nodeCount: z6.coerce.number().int().positive().optional(),
1344
+ gpuSlug: z6.string().min(1).nullable().optional().describe('Catalog GPU slug; null or "cpu" for CPU capacity.'),
1345
+ gpusPerNode: z6.coerce.number().int().nonnegative().optional(),
1376
1346
  coresPerNode,
1377
- facilityId: z7.string().uuid().optional(),
1347
+ facilityId: z6.string().uuid().optional(),
1378
1348
  location: listingLocation,
1379
- provisioningType: z7.enum(["bare-metal", "virtual-machine"]).optional(),
1380
- availableAt: z7.iso.datetime({ offset: true }).optional(),
1381
- availableUntil: z7.iso.datetime({ offset: true }).nullable().optional(),
1382
- daysToRfs: z7.coerce.number().int().nonnegative().optional(),
1383
- cpu: z7.string().optional(),
1384
- ram: z7.string().optional(),
1385
- storage: z7.string().optional(),
1386
- fabricType: z7.string().optional(),
1387
- internet: z7.string().optional()
1349
+ provisioningType: z6.enum(["bare-metal", "virtual-machine"]).optional(),
1350
+ availableAt: z6.iso.datetime({ offset: true }).optional(),
1351
+ availableUntil: z6.iso.datetime({ offset: true }).nullable().optional(),
1352
+ daysToRfs: z6.coerce.number().int().nonnegative().optional(),
1353
+ cpu: z6.string().optional(),
1354
+ ram: z6.string().optional(),
1355
+ storage: z6.string().optional(),
1356
+ fabricType: z6.string().optional(),
1357
+ internet: z6.string().optional()
1388
1358
  };
1389
1359
 
1390
1360
  // ../../packages/capabilities/dist/capabilities/admin-capacity-reservations.js
@@ -1424,16 +1394,16 @@ var adminCapacityOffersCreateCapability = defineCapability({
1424
1394
  return createCapacityListing(ctx.fetch, { ...body2, facilityId }, resolveIdempotencyKey(ctx, idempotencyKey));
1425
1395
  }
1426
1396
  });
1427
- var wholeSecondInstant = z8.iso.datetime({ offset: true }).refine((value) => !/\.\d*[1-9]/.test(value), "Use a time in whole seconds.");
1428
- var reservationCreateInput = z8.object({
1429
- organizationId: z8.string().uuid().describe("The customer organization the window is booked for."),
1430
- listingId: z8.string().uuid().describe("The listing's capacityListingId. Staff may book any available listing."),
1431
- listingTermId: z8.string().uuid().describe("The listingTermsId of a non-renewable Reserved term on that listing."),
1432
- nodes: z8.number().int().positive().max(2147483647).describe("Whole nodes to book."),
1397
+ var wholeSecondInstant = z7.iso.datetime({ offset: true }).refine((value) => !/\.\d*[1-9]/.test(value), "Use a time in whole seconds.");
1398
+ var reservationCreateInput = z7.object({
1399
+ organizationId: z7.string().uuid().describe("The customer organization the window is booked for."),
1400
+ listingId: z7.string().uuid().describe("The listing's capacityListingId. Staff may book any available listing."),
1401
+ listingTermId: z7.string().uuid().describe("The listingTermsId of a non-renewable Reserved term on that listing."),
1402
+ nodes: z7.number().int().positive().max(2147483647).describe("Whole nodes to book."),
1433
1403
  startsAt: wholeSecondInstant.describe("RFC 3339 start of the window in whole seconds, no more than five minutes ago."),
1434
1404
  endsAt: wholeSecondInstant.describe("RFC 3339 end of the window in whole seconds, at least an hour after the start and within the term's duration range."),
1435
1405
  pricePerGpuHourMicroUsd: microUsd.describe("The term's price in micro-USD per GPU-hour (per vCPU-hour on CPU capacity). A changed price refuses the booking."),
1436
- idempotencyKey: z8.string().trim().min(1).max(200).describe("Reuse this key when retrying the same booking.")
1406
+ idempotencyKey: z7.string().trim().min(1).max(200).describe("Reuse this key when retrying the same booking.")
1437
1407
  });
1438
1408
  var adminReservationsCreateCapability = defineCapability({
1439
1409
  id: "reservations.create",
@@ -1460,7 +1430,7 @@ var adminCapacityReservationCapabilities = [
1460
1430
  ];
1461
1431
 
1462
1432
  // ../../packages/capabilities/dist/capabilities/commerce-market.js
1463
- import { z as z9 } from "zod";
1433
+ import { z as z8 } from "zod";
1464
1434
  function help(outcome, human, automation, related, order, acceptedReferences = []) {
1465
1435
  return {
1466
1436
  arguments: "semantic",
@@ -1474,15 +1444,15 @@ function help(outcome, human, automation, related, order, acceptedReferences = [
1474
1444
  order
1475
1445
  };
1476
1446
  }
1477
- var pageLimit = z9.coerce.number().int().min(1).max(200).optional();
1478
- var listingsListInput = z9.object({
1447
+ var pageLimit = z8.coerce.number().int().min(1).max(200).optional();
1448
+ var listingsListInput = z8.object({
1479
1449
  $positionals: positionals,
1480
- kind: z9.enum(["primary", "secondary", "on_demand"]).optional(),
1481
- state: z9.enum(["draft", "available", "held", "sold", "delisted"]).optional(),
1482
- sourceReservationId: z9.string().uuid().optional(),
1483
- sourceListingId: z9.string().uuid().optional(),
1484
- limit: z9.coerce.number().int().min(1).max(100).optional(),
1485
- cursor: z9.string().min(1).optional()
1450
+ kind: z8.enum(["primary", "secondary", "on_demand"]).optional(),
1451
+ state: z8.enum(["draft", "available", "held", "sold", "delisted"]).optional(),
1452
+ sourceReservationId: z8.string().uuid().optional(),
1453
+ sourceListingId: z8.string().uuid().optional(),
1454
+ limit: z8.coerce.number().int().min(1).max(100).optional(),
1455
+ cursor: z8.string().min(1).optional()
1486
1456
  });
1487
1457
  var listingsListCapability = defineCapability({
1488
1458
  id: "listings.list",
@@ -1507,9 +1477,9 @@ var listingsListCapability = defineCapability({
1507
1477
  });
1508
1478
  }
1509
1479
  });
1510
- var listingShowInput = z9.object({
1480
+ var listingShowInput = z8.object({
1511
1481
  $positionals: positionals,
1512
- listingId: z9.string().uuid()
1482
+ listingId: z8.string().uuid()
1513
1483
  });
1514
1484
  var listingShowCapability = defineCapability({
1515
1485
  id: "listings.show",
@@ -1543,11 +1513,11 @@ var listingTermsCapability = defineCapability({
1543
1513
  return listCapacityTerms(ctx.fetch, parsed.listingId);
1544
1514
  }
1545
1515
  });
1546
- var listingAvailabilityInput = z9.object({
1516
+ var listingAvailabilityInput = z8.object({
1547
1517
  $positionals: positionals,
1548
- listingId: z9.string().uuid(),
1549
- from: z9.iso.datetime({ offset: true }).optional().describe("RFC 3339 start of the range to read. Defaults to now or the listing's start."),
1550
- to: z9.iso.datetime({ offset: true }).optional().describe("RFC 3339 end of the range to read. Defaults to the listing's end.")
1518
+ listingId: z8.string().uuid(),
1519
+ from: z8.iso.datetime({ offset: true }).optional().describe("RFC 3339 start of the range to read. Defaults to now or the listing's start."),
1520
+ to: z8.iso.datetime({ offset: true }).optional().describe("RFC 3339 end of the range to read. Defaults to the listing's end.")
1551
1521
  });
1552
1522
  var listingAvailabilityCapability = defineCapability({
1553
1523
  id: "listings.availability",
@@ -1568,16 +1538,16 @@ var listingAvailabilityCapability = defineCapability({
1568
1538
  });
1569
1539
  }
1570
1540
  });
1571
- var listingRelistInput = z9.strictObject({
1541
+ var listingRelistInput = z8.strictObject({
1572
1542
  $positionals: positionals,
1573
- reservationId: z9.string().uuid(),
1574
- startsAt: z9.iso.datetime({ offset: true }),
1575
- endsAt: z9.iso.datetime({ offset: true }),
1576
- nodeCount: z9.coerce.number().int().positive(),
1543
+ reservationId: z8.string().uuid(),
1544
+ startsAt: z8.iso.datetime({ offset: true }),
1545
+ endsAt: z8.iso.datetime({ offset: true }),
1546
+ nodeCount: z8.coerce.number().int().positive(),
1577
1547
  terms: nativeTermsInput,
1578
- idempotencyKey: z9.string().min(1).max(200).optional(),
1579
- confirm: z9.boolean().optional(),
1580
- yes: z9.boolean().optional()
1548
+ idempotencyKey: z8.string().min(1).max(200).optional(),
1549
+ confirm: z8.boolean().optional(),
1550
+ yes: z8.boolean().optional()
1581
1551
  });
1582
1552
  var listingRelistCapability = defineCapability({
1583
1553
  id: "listings.relist",
@@ -1601,10 +1571,10 @@ var listingRelistCapability = defineCapability({
1601
1571
  return relistReservation(ctx.fetch, reservationId, body2, resolveIdempotencyKey(ctx, idempotencyKey));
1602
1572
  }
1603
1573
  });
1604
- var listingUpdateInput = z9.object({
1574
+ var listingUpdateInput = z8.object({
1605
1575
  $positionals: positionals,
1606
- listingId: z9.string().uuid(),
1607
- listingTermsId: z9.string().uuid(),
1576
+ listingId: z8.string().uuid(),
1577
+ listingTermsId: z8.string().uuid(),
1608
1578
  ...nativeTermFields,
1609
1579
  ...listingWriteControls
1610
1580
  }).strict();
@@ -1631,10 +1601,10 @@ var listingUpdateCapability = defineCapability({
1631
1601
  return editCapacityTerms(ctx.fetch, listingId2, listingTermsId, body2, resolveIdempotencyKey(ctx, idempotencyKey));
1632
1602
  }
1633
1603
  });
1634
- var listingDelistInput = z9.object({
1604
+ var listingDelistInput = z8.object({
1635
1605
  $positionals: positionals,
1636
- listingId: z9.string().uuid(),
1637
- confirm: z9.boolean().optional()
1606
+ listingId: z8.string().uuid(),
1607
+ confirm: z8.boolean().optional()
1638
1608
  });
1639
1609
  var listingDelistCapability = defineCapability({
1640
1610
  id: "listings.delist",
@@ -1661,10 +1631,10 @@ var listingDelistCapability = defineCapability({
1661
1631
  return delistCapacityListing(ctx.fetch, parsed.listingId);
1662
1632
  }
1663
1633
  });
1664
- var reservationsListInput = z9.object({
1634
+ var reservationsListInput = z8.object({
1665
1635
  $positionals: positionals,
1666
- kind: z9.enum(["schedule", "spot"]).optional(),
1667
- status: z9.enum([
1636
+ kind: z8.enum(["schedule", "spot"]).optional(),
1637
+ status: z8.enum([
1668
1638
  "awaiting_down_payment",
1669
1639
  "awaiting_payment",
1670
1640
  "confirmed",
@@ -1672,9 +1642,9 @@ var reservationsListInput = z9.object({
1672
1642
  "completed",
1673
1643
  "cancelled"
1674
1644
  ]).optional(),
1675
- listingId: z9.string().uuid().optional().describe("Trades on a listing you own."),
1645
+ listingId: z8.string().uuid().optional().describe("Trades on a listing you own."),
1676
1646
  limit: pageLimit,
1677
- cursor: z9.string().min(1).optional()
1647
+ cursor: z8.string().min(1).optional()
1678
1648
  });
1679
1649
  var reservationsListCapability = defineCapability({
1680
1650
  id: "reservations.list",
@@ -1693,9 +1663,9 @@ var reservationsListCapability = defineCapability({
1693
1663
  return listReservations(ctx.fetch, filter);
1694
1664
  }
1695
1665
  });
1696
- var reservationLookupInput = z9.object({
1666
+ var reservationLookupInput = z8.object({
1697
1667
  $positionals: positionals,
1698
- reservationId: z9.string().uuid()
1668
+ reservationId: z8.string().uuid()
1699
1669
  });
1700
1670
  var reservationsShowCapability = defineCapability({
1701
1671
  id: "reservations.show",
@@ -1729,16 +1699,16 @@ var reservationInvoicesCapability = defineCapability({
1729
1699
  return listReservationInvoices(ctx.fetch, parsed.reservationId);
1730
1700
  }
1731
1701
  });
1732
- var reservationPurchaseInput = z9.object({
1702
+ var reservationPurchaseInput = z8.object({
1733
1703
  $positionals: positionals,
1734
- listingId: z9.string().uuid().describe("The relisted (secondary) listing's capacityListingId, from listings.list."),
1735
- listingTermId: z9.string().uuid().describe("The listingTermsId of the listing's term, from listings.terms."),
1736
- nodeCount: z9.coerce.number().int().positive().optional().describe("Whole nodes to book for the window. Defaults to every node the listing sells."),
1737
- startsAt: z9.iso.datetime({ offset: true }).describe("RFC 3339 start of the window, in whole seconds, inside the listing and not in the past."),
1738
- endsAt: z9.iso.datetime({ offset: true }).describe("RFC 3339 end of the window, at least an hour after the start and within the term's duration range, or at the listing's end."),
1704
+ listingId: z8.string().uuid().describe("The relisted (secondary) listing's capacityListingId, from listings.list."),
1705
+ listingTermId: z8.string().uuid().describe("The listingTermsId of the listing's term, from listings.terms."),
1706
+ nodeCount: z8.coerce.number().int().positive().optional().describe("Whole nodes to book for the window. Defaults to every node the listing sells."),
1707
+ startsAt: z8.iso.datetime({ offset: true }).describe("RFC 3339 start of the window, in whole seconds, inside the listing and not in the past."),
1708
+ endsAt: z8.iso.datetime({ offset: true }).describe("RFC 3339 end of the window, at least an hour after the start and within the term's duration range, or at the listing's end."),
1739
1709
  pricePerGpuHourMicroUsd: microUsd.describe("The term's price from listings.terms, in micro-USD per GPU-hour (per vCPU-hour on CPU capacity). A changed price refuses the purchase."),
1740
- idempotencyKey: z9.string().min(1).max(200).optional(),
1741
- confirm: z9.boolean().optional()
1710
+ idempotencyKey: z8.string().min(1).max(200).optional(),
1711
+ confirm: z8.boolean().optional()
1742
1712
  });
1743
1713
  var reservationPurchaseCapability = defineCapability({
1744
1714
  id: "reservations.purchase",
@@ -1795,7 +1765,7 @@ var commerceMarketCapabilities = [
1795
1765
  ];
1796
1766
 
1797
1767
  // ../../packages/capabilities/dist/capabilities/markets.js
1798
- import { z as z10 } from "zod";
1768
+ import { z as z9 } from "zod";
1799
1769
 
1800
1770
  // ../../packages/capabilities/dist/spec-catalog.js
1801
1771
  var UNRESOLVED_CATALOG_HINT = "Leave this field empty. Only dictionary.csv product names are allowed. Do not ask to add spec-sheet text to the dictionary.";
@@ -1916,10 +1886,10 @@ function projectCatalogTerms(terms, kind) {
1916
1886
  }
1917
1887
 
1918
1888
  // ../../packages/capabilities/dist/capabilities/markets.js
1919
- var saleType = z10.enum(["spot", "on-demand"]).optional().describe("spot (the default) yields to scheduled bookings; on-demand runs until stopped or the listing ends.");
1920
- var region = z10.string().min(1).optional().describe("A region slug, for example us-east-11. Omit for every region.");
1921
- var nodes = z10.coerce.number().int().min(1).describe("Nodes to buy, each the GPUs (or vCPUs on the cpu book) of one whole machine.");
1922
- var bookSlug = z10.string().min(1).describe('Catalog GPU slug, for example nvidia_h100_sxm, or "cpu" for CPU capacity sold per vCPU-hour.');
1889
+ var saleType = z9.enum(["spot", "on-demand"]).optional().describe("spot (the default) yields to scheduled bookings; on-demand runs until stopped or the listing ends.");
1890
+ var region = z9.string().min(1).optional().describe("A region slug, for example us-east-11. Omit for every region.");
1891
+ var nodes = z9.coerce.number().int().min(1).describe("Nodes to buy, each the GPUs (or vCPUs on the cpu book) of one whole machine.");
1892
+ var bookSlug = z9.string().min(1).describe('Catalog GPU slug, for example nvidia_h100_sxm, or "cpu" for CPU capacity sold per vCPU-hour.');
1923
1893
  function help2(outcome, human, automation, related, order, acceptedReferences = []) {
1924
1894
  return {
1925
1895
  arguments: "semantic",
@@ -1933,11 +1903,11 @@ function help2(outcome, human, automation, related, order, acceptedReferences =
1933
1903
  order
1934
1904
  };
1935
1905
  }
1936
- var marketBooksInput = z10.object({
1906
+ var marketBooksInput = z9.object({
1937
1907
  $positionals: positionals,
1938
- gpuSlug: z10.string().min(1).optional().describe('Only this catalog GPU slug, or "cpu".'),
1908
+ gpuSlug: z9.string().min(1).optional().describe('Only this catalog GPU slug, or "cpu".'),
1939
1909
  saleType,
1940
- region: z10.string().min(1).optional().describe("Only this region slug, or any for the books of bids in any region.")
1910
+ region: z9.string().min(1).optional().describe("Only this region slug, or any for the books of bids in any region.")
1941
1911
  });
1942
1912
  var marketBooksCapability = defineCapability({
1943
1913
  id: "market.books",
@@ -1955,7 +1925,7 @@ var marketBooksCapability = defineCapability({
1955
1925
  return listOrderBooks(ctx.fetch, parsed);
1956
1926
  }
1957
1927
  });
1958
- var marketBookInput = z10.object({
1928
+ var marketBookInput = z9.object({
1959
1929
  $positionals: positionals,
1960
1930
  gpuSlug: bookSlug,
1961
1931
  saleType,
@@ -1993,11 +1963,11 @@ var marketTradesCapability = defineCapability({
1993
1963
  return listTrades(ctx.fetch, parsed.gpuSlug, parsed);
1994
1964
  }
1995
1965
  });
1996
- var marketQuoteInput = z10.object({
1966
+ var marketQuoteInput = z9.object({
1997
1967
  $positionals: positionals,
1998
1968
  gpuSlug: bookSlug,
1999
1969
  saleType,
2000
- region: z10.string().min(1).optional().describe("A region with an order book (see market books). Omit for any region."),
1970
+ region: z9.string().min(1).optional().describe("A region with an order book (see market books). Omit for any region."),
2001
1971
  nodes
2002
1972
  });
2003
1973
  var marketQuoteCapability = defineCapability({
@@ -2016,15 +1986,15 @@ var marketQuoteCapability = defineCapability({
2016
1986
  return quoteBid(ctx.fetch, { ...parsed, orderType: "market" });
2017
1987
  }
2018
1988
  });
2019
- var marketBidInput = z10.object({
1989
+ var marketBidInput = z9.object({
2020
1990
  $positionals: positionals,
2021
1991
  gpuSlug: bookSlug,
2022
1992
  saleType,
2023
- region: z10.string().min(1).optional().describe("A region with an order book (see market books), for example us-east-11. Omit to fill in any region."),
1993
+ region: z9.string().min(1).optional().describe("A region with an order book (see market books), for example us-east-11. Omit to fill in any region."),
2024
1994
  nodes,
2025
- diskId: z10.string().uuid().optional().describe("The disk every VM boots. Omit to boot your newest disk, else Ornn's newest."),
2026
- idempotencyKey: z10.string().min(1).max(200).optional(),
2027
- confirm: z10.boolean().optional()
1995
+ diskId: z9.string().uuid().optional().describe("The disk every VM boots. Omit to boot your newest disk, else Ornn's newest."),
1996
+ idempotencyKey: z9.string().min(1).max(200).optional(),
1997
+ confirm: z9.boolean().optional()
2028
1998
  });
2029
1999
  var marketBidCapability = defineCapability({
2030
2000
  id: "market.bid",
@@ -2060,7 +2030,7 @@ var marketBidCapability = defineCapability({
2060
2030
  return placeBid(ctx.fetch, body2, resolveIdempotencyKey(ctx, parsed.idempotencyKey));
2061
2031
  }
2062
2032
  });
2063
- var marketOrdersInput = z10.object({ $positionals: positionals });
2033
+ var marketOrdersInput = z9.object({ $positionals: positionals });
2064
2034
  var marketOrdersCapability = defineCapability({
2065
2035
  id: "market.orders",
2066
2036
  domain: "markets",
@@ -2074,10 +2044,10 @@ var marketOrdersCapability = defineCapability({
2074
2044
  },
2075
2045
  execute: async (ctx) => listOrders(ctx.fetch)
2076
2046
  });
2077
- var marketCancelInput = z10.object({
2047
+ var marketCancelInput = z9.object({
2078
2048
  $positionals: positionals,
2079
- orderId: z10.string().uuid().describe("A resting bid ID."),
2080
- confirm: z10.boolean().optional()
2049
+ orderId: z9.string().uuid().describe("A resting bid ID."),
2050
+ confirm: z9.boolean().optional()
2081
2051
  });
2082
2052
  var marketCancelCapability = defineCapability({
2083
2053
  id: "market.cancel",
@@ -2104,9 +2074,9 @@ var marketCancelCapability = defineCapability({
2104
2074
  return cancelOrder(ctx.fetch, parsed.orderId);
2105
2075
  }
2106
2076
  });
2107
- var marketFillsInput = z10.object({
2077
+ var marketFillsInput = z9.object({
2108
2078
  $positionals: positionals,
2109
- orderId: z10.string().uuid().optional().describe("Only this bid's fills.")
2079
+ orderId: z9.string().uuid().optional().describe("Only this bid's fills.")
2110
2080
  });
2111
2081
  var marketFillsCapability = defineCapability({
2112
2082
  id: "market.fills",
@@ -2124,10 +2094,10 @@ var marketFillsCapability = defineCapability({
2124
2094
  return listFills(ctx.fetch, { orderId: parsed.orderId });
2125
2095
  }
2126
2096
  });
2127
- var marketEndInput = z10.object({
2097
+ var marketEndInput = z9.object({
2128
2098
  $positionals: positionals,
2129
- fillId: z10.string().uuid().describe("A fill ID; it is also its reservation ID."),
2130
- confirm: z10.boolean().optional()
2099
+ fillId: z9.string().uuid().describe("A fill ID; it is also its reservation ID."),
2100
+ confirm: z9.boolean().optional()
2131
2101
  });
2132
2102
  var marketEndCapability = defineCapability({
2133
2103
  id: "market.end",
@@ -2151,9 +2121,9 @@ var marketEndCapability = defineCapability({
2151
2121
  return stopReservation(ctx.fetch, parsed.fillId);
2152
2122
  }
2153
2123
  });
2154
- var offersListInput = z10.object({
2124
+ var offersListInput = z9.object({
2155
2125
  $positionals: positionals,
2156
- listingId: z10.string().uuid().optional().describe("A primary listing whose offer book to read. Omit for your organization's offers.")
2126
+ listingId: z9.string().uuid().optional().describe("A primary listing whose offer book to read. Omit for your organization's offers.")
2157
2127
  });
2158
2128
  var offersListCapability = defineCapability({
2159
2129
  id: "offers.list",
@@ -2171,15 +2141,15 @@ var offersListCapability = defineCapability({
2171
2141
  return listOffers(ctx.fetch, { listingId: parsed.listingId });
2172
2142
  }
2173
2143
  });
2174
- var offerPostInput = z10.object({
2144
+ var offerPostInput = z9.object({
2175
2145
  $positionals: positionals,
2176
- listingId: z10.string().uuid().describe("A primary listing."),
2177
- listingTermId: z10.string().uuid().describe("The listingTermsId of a non-spot term of that listing, from listings.terms."),
2178
- durationSeconds: z10.coerce.number().int().positive().optional().describe("How long the reservation runs, within the term's minimum and maximum duration. Omit only when they are equal, or when the term has none (the rest of the listing)."),
2146
+ listingId: z9.string().uuid().describe("A primary listing."),
2147
+ listingTermId: z9.string().uuid().describe("The listingTermsId of a non-spot term of that listing, from listings.terms."),
2148
+ durationSeconds: z9.coerce.number().int().positive().optional().describe("How long the reservation runs, within the term's minimum and maximum duration. Omit only when they are equal, or when the term has none (the rest of the listing)."),
2179
2149
  pricePerGpuHourMicroUsd: microUsd.describe("Offer price in micro-USD per GPU-hour, or per vCPU-hour on CPU capacity (1000000 = $1.00). Covers every node on the listing."),
2180
- downPaymentCents: z10.coerce.number().int().min(0).optional().describe("The down payment you offer, in cents."),
2181
- idempotencyKey: z10.string().min(1).max(200).optional(),
2182
- confirm: z10.boolean().optional()
2150
+ downPaymentCents: z9.coerce.number().int().min(0).optional().describe("The down payment you offer, in cents."),
2151
+ idempotencyKey: z9.string().min(1).max(200).optional(),
2152
+ confirm: z9.boolean().optional()
2183
2153
  });
2184
2154
  var offerPostCapability = defineCapability({
2185
2155
  id: "offers.post",
@@ -2216,10 +2186,10 @@ var offerPostCapability = defineCapability({
2216
2186
  return postOffer(ctx.fetch, body2, resolveIdempotencyKey(ctx, parsed.idempotencyKey));
2217
2187
  }
2218
2188
  });
2219
- var offerDecisionInput = z10.object({
2189
+ var offerDecisionInput = z9.object({
2220
2190
  $positionals: positionals,
2221
- offerId: z10.string().uuid(),
2222
- confirm: z10.boolean().optional()
2191
+ offerId: z9.string().uuid(),
2192
+ confirm: z9.boolean().optional()
2223
2193
  });
2224
2194
  var offerAcceptCapability = defineCapability({
2225
2195
  id: "offers.accept",
@@ -2282,20 +2252,20 @@ var marketCapabilities = [
2282
2252
  ];
2283
2253
 
2284
2254
  // ../../packages/capabilities/dist/capabilities/admin-enrollment.js
2285
- import { z as z12 } from "zod";
2255
+ import { z as z11 } from "zod";
2286
2256
 
2287
2257
  // ../../packages/capabilities/dist/capabilities/tokens.js
2288
- import { z as z11 } from "zod";
2289
- var emptyInput = z11.object({});
2290
- var tokenCreateInput = z11.object({
2291
- organization_id: z11.string().uuid(),
2292
- profile_id: z11.string().uuid().optional(),
2293
- expires_in_seconds: z11.number().int().min(300).max(86400).nullish(),
2294
- host: z11.string().min(1).nullish(),
2295
- hosts: z11.array(z11.string().min(1)).max(64).nullish(),
2296
- username: z11.string().min(1).nullish(),
2297
- port: z11.number().int().min(1).max(65535).nullish(),
2298
- private_key: z11.string().min(1).nullish()
2258
+ import { z as z10 } from "zod";
2259
+ var emptyInput = z10.object({});
2260
+ var tokenCreateInput = z10.object({
2261
+ organization_id: z10.string().uuid(),
2262
+ profile_id: z10.string().uuid().optional(),
2263
+ expires_in_seconds: z10.number().int().min(300).max(86400).nullish(),
2264
+ host: z10.string().min(1).nullish(),
2265
+ hosts: z10.array(z10.string().min(1)).max(64).nullish(),
2266
+ username: z10.string().min(1).nullish(),
2267
+ port: z10.number().int().min(1).max(65535).nullish(),
2268
+ private_key: z10.string().min(1).nullish()
2299
2269
  });
2300
2270
  function tokenMetadata(value) {
2301
2271
  if (!value || typeof value !== "object")
@@ -2410,9 +2380,9 @@ var tokensCreateCapability = defineCapability({
2410
2380
  var tokenCapabilities = [tokensListCapability, tokensCreateCapability];
2411
2381
 
2412
2382
  // ../../packages/capabilities/dist/capabilities/admin-enrollment.js
2413
- var UUID = z12.string().uuid();
2414
- var nonEmpty = z12.string().trim().min(1);
2415
- var tokenTtl = z12.number().int().min(60).max(24 * 60 * 60);
2383
+ var UUID = z11.string().uuid();
2384
+ var nonEmpty = z11.string().trim().min(1);
2385
+ var tokenTtl = z11.number().int().min(60).max(24 * 60 * 60);
2416
2386
  function adminHelp2(outcome, human, automation, acceptedReferences = [], review) {
2417
2387
  return {
2418
2388
  audience: "admin",
@@ -2424,12 +2394,12 @@ function adminHelp2(outcome, human, automation, acceptedReferences = [], review)
2424
2394
  ...review ? { review } : {}
2425
2395
  };
2426
2396
  }
2427
- var tokenRevokeInput = z12.object({
2428
- tokenId: z12.string().min(1),
2397
+ var tokenRevokeInput = z11.object({
2398
+ tokenId: z11.string().min(1),
2429
2399
  token_id: UUID.optional(),
2430
2400
  expected_created_at: nonEmpty.optional(),
2431
2401
  idempotency_key: nonEmpty.optional(),
2432
- confirm: z12.boolean().optional()
2402
+ confirm: z11.boolean().optional()
2433
2403
  });
2434
2404
  function codedError(code, message) {
2435
2405
  const error = new Error(message);
@@ -2497,17 +2467,17 @@ var adminEnrollmentTokenRevokeCapability = defineCapability({
2497
2467
  };
2498
2468
  }
2499
2469
  });
2500
- var nodeEnrollInput = z12.object({
2470
+ var nodeEnrollInput = z11.object({
2501
2471
  node_id: UUID,
2502
2472
  host: nonEmpty,
2503
2473
  organization_id: UUID,
2504
2474
  facility_id: UUID,
2505
2475
  identity_file: nonEmpty,
2506
- private_key: z12.string().min(1).optional(),
2476
+ private_key: z11.string().min(1).optional(),
2507
2477
  username: nonEmpty.default("root"),
2508
- port: z12.number().int().min(1).max(65535).default(22),
2478
+ port: z11.number().int().min(1).max(65535).default(22),
2509
2479
  expires_in_seconds: tokenTtl,
2510
- replace_existing_management: z12.literal(true)
2480
+ replace_existing_management: z11.literal(true)
2511
2481
  });
2512
2482
  var adminNodeEnrollCapability = defineCapability({
2513
2483
  id: "nodes.enroll",
@@ -2558,7 +2528,7 @@ var adminNodeEnrollCapability = defineCapability({
2558
2528
  return run;
2559
2529
  }
2560
2530
  });
2561
- var nodeKeyInput = z12.object({ node_id: UUID });
2531
+ var nodeKeyInput = z11.object({ node_id: UUID });
2562
2532
  var adminNodeExportKeyCapability = defineCapability({
2563
2533
  id: "nodes.export-key",
2564
2534
  domain: "fleet",
@@ -2612,11 +2582,11 @@ function createJob(request, body2) {
2612
2582
  }
2613
2583
 
2614
2584
  // ../../packages/capabilities/dist/capabilities/admin-node-diagnostics.js
2615
- import { z as z13 } from "zod";
2616
- var nodeId = z13.string().min(1).refine((value) => value === value.trim(), {
2585
+ import { z as z12 } from "zod";
2586
+ var nodeId = z12.string().min(1).refine((value) => value === value.trim(), {
2617
2587
  message: "node_id must be an exact canonical node ID without surrounding whitespace"
2618
2588
  });
2619
- var adminNodeDiagnoseInput = z13.object({
2589
+ var adminNodeDiagnoseInput = z12.object({
2620
2590
  node_id: nodeId
2621
2591
  });
2622
2592
  var adminNodeDiagnoseCapability = defineCapability({
@@ -2654,8 +2624,8 @@ var adminNodeDiagnoseCapability = defineCapability({
2654
2624
  var adminNodeDiagnosticCapabilities = [adminNodeDiagnoseCapability];
2655
2625
 
2656
2626
  // ../../packages/capabilities/dist/capabilities/admin-node-sanitize.js
2657
- import { z as z14 } from "zod";
2658
- var uuid2 = z14.string().uuid();
2627
+ import { z as z13 } from "zod";
2628
+ var uuid2 = z13.string().uuid();
2659
2629
  var sanitizeOperations = ["data_wipe", "ram_roundtrip", "node_turnover", "host_restore"];
2660
2630
  var sanitizeConfirmations = [
2661
2631
  "SANITIZE",
@@ -2674,13 +2644,13 @@ var startConfirmation = {
2674
2644
  node_turnover: "WIPE AND RESTORE",
2675
2645
  host_restore: "RESTORE HOST"
2676
2646
  };
2677
- var nodeSanitizeStartInput = z14.object({
2647
+ var nodeSanitizeStartInput = z13.object({
2678
2648
  node_id: uuid2.describe("Node UUID whose drives will be sanitized."),
2679
2649
  job_id: uuid2.describe("Caller-supplied stable sanitize job UUID; reuse it when retrying."),
2680
- operation: z14.enum(sanitizeOperations).optional().describe("Sanitize operation; omission defaults to data_wipe."),
2650
+ operation: z13.enum(sanitizeOperations).optional().describe("Sanitize operation; omission defaults to data_wipe."),
2681
2651
  maintenance_batch_id: uuid2.optional().describe("Optional maintenance batch UUID recorded by the audit middleware."),
2682
2652
  recovery_uuid: uuid2.optional().describe("Recovery boot identity: required for ram_roundtrip, optional for node_turnover and host_restore, rejected for data_wipe."),
2683
- confirmation: z14.enum(sanitizeConfirmations).describe("Exact confirmation phrase required for the selected operation.")
2653
+ confirmation: z13.enum(sanitizeConfirmations).describe("Exact confirmation phrase required for the selected operation.")
2684
2654
  }).strict().refine((input) => input.confirmation === startConfirmation[input.operation ?? "data_wipe"], {
2685
2655
  message: "confirmation must exactly match the selected sanitize operation.",
2686
2656
  path: ["confirmation"]
@@ -2693,30 +2663,30 @@ var nodeSanitizeStartInput = z14.object({
2693
2663
  message: "recovery_uuid is required for ram_roundtrip and not accepted for data_wipe.",
2694
2664
  path: ["recovery_uuid"]
2695
2665
  });
2696
- var nodeSanitizeShowInput = z14.object({
2666
+ var nodeSanitizeShowInput = z13.object({
2697
2667
  node_id: uuid2.describe("Node UUID associated with the sanitize job."),
2698
2668
  job_id: uuid2.describe("Sanitize job UUID to read.")
2699
2669
  }).strict();
2700
- var manualCleanupInput = z14.object({
2670
+ var manualCleanupInput = z13.object({
2701
2671
  reservation_id: uuid2.describe("Reservation whose Bare Metal release this turnover job holds."),
2702
2672
  lifecycle_operation_id: uuid2.describe("The current orchestrator release operation UUID that owns the hold, not a Commerce operation."),
2703
- reason: z14.string().trim().min(20).max(2e3).describe("Cleanup performed and why the existing OS must be retained."),
2704
- evidence_sha256: z14.string().regex(/^[0-9a-f]{64}$/, "evidence_sha256 must be 64 lowercase hex characters.").describe("Lowercase SHA-256 of the immutable cleanup evidence file kept outside the host."),
2705
- acknowledge_retained_os: z14.literal(true).describe("The existing OS is retained; OS integrity and full-media erasure are not established."),
2706
- tenant_access_revoked: z14.literal(true).describe("Former tenant workloads, keys, and active access were removed and verified."),
2707
- data_drives_sanitized: z14.literal(true).describe("Every local data drive was sanitized with retained per-drive receipts.")
2673
+ reason: z13.string().trim().min(20).max(2e3).describe("Cleanup performed and why the existing OS must be retained."),
2674
+ evidence_sha256: z13.string().regex(/^[0-9a-f]{64}$/, "evidence_sha256 must be 64 lowercase hex characters.").describe("Lowercase SHA-256 of the immutable cleanup evidence file kept outside the host."),
2675
+ acknowledge_retained_os: z13.literal(true).describe("The existing OS is retained; OS integrity and full-media erasure are not established."),
2676
+ tenant_access_revoked: z13.literal(true).describe("Former tenant workloads, keys, and active access were removed and verified."),
2677
+ data_drives_sanitized: z13.literal(true).describe("Every local data drive was sanitized with retained per-drive receipts.")
2708
2678
  }).strict();
2709
- var nodeSanitizeUpdateInput = z14.object({
2679
+ var nodeSanitizeUpdateInput = z13.object({
2710
2680
  node_id: uuid2.describe("Node UUID associated with the sanitize job."),
2711
2681
  job_id: uuid2.describe("Sanitize job UUID to decide."),
2712
- confirmation: z14.enum(sanitizeDecisions).describe("APPROVE SANITIZATION runs the held job, SKIP SANITIZATION skips an eligible first-use wipe, ACCEPT MANUAL CLEANUP attests manual cleanup with the OS retained."),
2682
+ confirmation: z13.enum(sanitizeDecisions).describe("APPROVE SANITIZATION runs the held job, SKIP SANITIZATION skips an eligible first-use wipe, ACCEPT MANUAL CLEANUP attests manual cleanup with the OS retained."),
2713
2683
  manual_cleanup: manualCleanupInput.optional().describe("Required with ACCEPT MANUAL CLEANUP and rejected with any other decision.")
2714
2684
  }).strict().refine((input) => input.confirmation === "ACCEPT MANUAL CLEANUP" === (input.manual_cleanup !== void 0), {
2715
2685
  message: "manual_cleanup is required with ACCEPT MANUAL CLEANUP and allowed only with it.",
2716
2686
  path: ["manual_cleanup"]
2717
2687
  });
2718
2688
  function slackParameters(schema) {
2719
- const json = z14.toJSONSchema(schema);
2689
+ const json = z13.toJSONSchema(schema);
2720
2690
  return {
2721
2691
  type: "object",
2722
2692
  properties: json.properties,
@@ -2804,32 +2774,32 @@ var adminNodeSanitizeCapabilities = [
2804
2774
  ];
2805
2775
 
2806
2776
  // ../../packages/capabilities/dist/capabilities/admin-nodes-lifecycle.js
2807
- import { z as z15 } from "zod";
2808
- var nodeReference = z15.string().trim().min(1);
2809
- var optionalText = z15.string().trim().min(1).optional();
2777
+ import { z as z14 } from "zod";
2778
+ var nodeReference = z14.string().trim().min(1);
2779
+ var optionalText = z14.string().trim().min(1).optional();
2810
2780
  var commonInput = {
2811
2781
  node_ref: nodeReference,
2812
2782
  node_id: optionalText,
2813
2783
  idempotency_key: optionalText,
2814
2784
  reason: optionalText,
2815
- yes: z15.boolean().optional(),
2816
- wait: z15.boolean().optional(),
2817
- timeout_seconds: z15.number().positive().optional()
2785
+ yes: z14.boolean().optional(),
2786
+ wait: z14.boolean().optional(),
2787
+ timeout_seconds: z14.number().positive().optional()
2818
2788
  };
2819
- var rebootInput = z15.object({
2789
+ var rebootInput = z14.object({
2820
2790
  ...commonInput,
2821
2791
  machine_id: optionalText
2822
2792
  });
2823
2793
  var hardResetInput = rebootInput.extend({
2824
- erase_local_data: z15.literal(true)
2794
+ erase_local_data: z14.literal(true)
2825
2795
  });
2826
- var assignmentInput = z15.object({
2796
+ var assignmentInput = z14.object({
2827
2797
  ...commonInput,
2828
- reservation_id: z15.string().trim().min(1),
2829
- expected_reservation_id: z15.string().nullable().optional()
2798
+ reservation_id: z14.string().trim().min(1),
2799
+ expected_reservation_id: z14.string().nullable().optional()
2830
2800
  });
2831
- var machineRebootInput = z15.object({ instanceId: z15.string(), confirm: z15.boolean().optional() });
2832
- var rebootOperationInput = machineRebootInput.extend({ idempotencyKey: z15.string().optional() });
2801
+ var machineRebootInput = z14.object({ instanceId: z14.string(), confirm: z14.boolean().optional() });
2802
+ var rebootOperationInput = machineRebootInput.extend({ idempotencyKey: z14.string().optional() });
2833
2803
  function adminLifecycleHelp(outcome, human, automation, review) {
2834
2804
  return {
2835
2805
  audience: "admin",
@@ -2908,11 +2878,11 @@ var adminNodeHardResetCapability = defineCapability({
2908
2878
  input: rebootOperationInput,
2909
2879
  execute: (ctx, input) => reboot(ctx, input, "hard_reset")
2910
2880
  });
2911
- var nodeAssignInput = z15.object({
2912
- nodeId: z15.string(),
2913
- reservationId: z15.string(),
2914
- expectedReservationId: z15.string().nullable().optional().describe("The reservation the node is expected to currently hold, or null/omitted for a free node. The owner re-checks this under a row lock and rejects the assignment if the node's actual reservation differs, so a mistyped occupied node is never silently evicted. Pass the current reservation id to intentionally move an already-assigned node."),
2915
- confirm: z15.boolean().optional()
2881
+ var nodeAssignInput = z14.object({
2882
+ nodeId: z14.string(),
2883
+ reservationId: z14.string(),
2884
+ expectedReservationId: z14.string().nullable().optional().describe("The reservation the node is expected to currently hold, or null/omitted for a free node. The owner re-checks this under a row lock and rejects the assignment if the node's actual reservation differs, so a mistyped occupied node is never silently evicted. Pass the current reservation id to intentionally move an already-assigned node."),
2885
+ confirm: z14.boolean().optional()
2916
2886
  });
2917
2887
  var adminNodeAssignCapability = defineCapability({
2918
2888
  id: "nodes.assign",
@@ -2935,7 +2905,7 @@ var adminNodeAssignCapability = defineCapability({
2935
2905
  vnext: adminLifecycleHelp("Assign one exact node to one exact capacity reservation.", "ornn admin nodes assign <node-ref> --reservation <reservation-id> [] [--no-wait]", "ornn admin nodes assign <node-id> --reservation <reservation-id> --idempotency-key KEY --format json", "Node, supplier, facility, previous and requested capacity assignments, and tenant access change.")
2936
2906
  },
2937
2907
  mcp: { name: "node_assign", input: nodeAssignInput },
2938
- input: nodeAssignInput.extend({ idempotencyKey: z15.string().optional() }),
2908
+ input: nodeAssignInput.extend({ idempotencyKey: z14.string().optional() }),
2939
2909
  execute: async (ctx, input) => {
2940
2910
  const body2 = {
2941
2911
  reservation_id: input.reservationId,
@@ -2955,7 +2925,7 @@ var adminNodeLifecycleCapabilities = [
2955
2925
  ];
2956
2926
 
2957
2927
  // ../../packages/capabilities/dist/capabilities/billing.js
2958
- import { z as z16 } from "zod";
2928
+ import { z as z15 } from "zod";
2959
2929
  var DATE_ONLY = /^\d{4}-\d{2}-\d{2}$/;
2960
2930
  var billingCapabilities = [
2961
2931
  defineCapability({
@@ -2964,7 +2934,7 @@ var billingCapabilities = [
2964
2934
  roles: ["user"],
2965
2935
  description: "Read account billing totals: open balance, earliest due date, and paid monthly totals grouped by currency. Usage estimates are available separately through billing_showback.",
2966
2936
  mutation: "read",
2967
- input: z16.object({}),
2937
+ input: z15.object({}),
2968
2938
  execute: (ctx) => getBillingSummary(ctx.fetch)
2969
2939
  }),
2970
2940
  defineCapability({
@@ -2973,9 +2943,9 @@ var billingCapabilities = [
2973
2943
  roles: ["user"],
2974
2944
  description: "List a page of this tenant's invoices.",
2975
2945
  mutation: "read",
2976
- input: z16.object({
2977
- limit: z16.number().int().min(1).max(500).optional(),
2978
- cursor: z16.string().trim().min(1).max(2048).optional()
2946
+ input: z15.object({
2947
+ limit: z15.number().int().min(1).max(500).optional(),
2948
+ cursor: z15.string().trim().min(1).max(2048).optional()
2979
2949
  }),
2980
2950
  execute: (ctx, input) => listInvoices(ctx.fetch, input)
2981
2951
  }),
@@ -2985,9 +2955,9 @@ var billingCapabilities = [
2985
2955
  roles: ["user"],
2986
2956
  description: "Get a showback report of this tenant's usage for a date range: per-reservation unit-hours, estimated cost, and share of total. Each row's unit is a GPU, or a vCPU when its `unit` is `vcpu` (CPU capacity); gpuCount and gpuHours count that unit. Unit-hours are the billable reservation interval that falls inside the inclusive dates, not a whole calendar day. This is an estimate from reservation windows, not a bill. Use billing_summary or billing_invoices for amounts actually charged.",
2987
2957
  mutation: "read",
2988
- input: z16.object({
2989
- start: z16.string().regex(DATE_ONLY, "start must be a date in yyyy-mm-dd format."),
2990
- end: z16.string().regex(DATE_ONLY, "end must be a date in yyyy-mm-dd format.")
2958
+ input: z15.object({
2959
+ start: z15.string().regex(DATE_ONLY, "start must be a date in yyyy-mm-dd format."),
2960
+ end: z15.string().regex(DATE_ONLY, "end must be a date in yyyy-mm-dd format.")
2991
2961
  }).refine((input) => input.start <= input.end, { message: "start must be on or before end." }),
2992
2962
  execute: (ctx, input) => getShowback(ctx.fetch, input)
2993
2963
  })
@@ -3076,10 +3046,10 @@ function getCliStatus(request) {
3076
3046
  }
3077
3047
 
3078
3048
  // ../../packages/capabilities/dist/capabilities/compute.js
3079
- import { z as z18 } from "zod";
3049
+ import { z as z17 } from "zod";
3080
3050
 
3081
3051
  // ../../packages/capabilities/dist/capabilities/ssh-keys.js
3082
- import { z as z17 } from "zod";
3052
+ import { z as z16 } from "zod";
3083
3053
  async function activeReservationNodes(context, reservationId) {
3084
3054
  const { nodes: nodes2 } = await listNodes(context.fetch, { reservation_id: reservationId });
3085
3055
  return nodes2.filter((node) => node.status !== "terminated");
@@ -3112,10 +3082,10 @@ var reservationKeysPushCapability = defineCapability({
3112
3082
  roles: ["user"],
3113
3083
  description: "Push SSH key(s) onto all active machines for a reservation.",
3114
3084
  mutation: "immediate",
3115
- input: z17.object({
3116
- reservationId: z17.string(),
3117
- sshKeyIds: z17.array(z17.string()).min(1),
3118
- requestId: z17.string().optional()
3085
+ input: z16.object({
3086
+ reservationId: z16.string(),
3087
+ sshKeyIds: z16.array(z16.string()).min(1),
3088
+ requestId: z16.string().optional()
3119
3089
  }),
3120
3090
  mcp: { aliases: ["access_keys_push"] },
3121
3091
  execute: async (context, input) => {
@@ -3134,94 +3104,94 @@ var reservationKeysPushCapability = defineCapability({
3134
3104
  });
3135
3105
 
3136
3106
  // ../../packages/capabilities/dist/capabilities/compute.js
3137
- var positionals2 = z18.array(z18.string()).default([]);
3138
- var launchInput = z18.object({
3107
+ var positionals2 = z17.array(z17.string()).default([]);
3108
+ var launchInput = z17.object({
3139
3109
  $positionals: positionals2,
3140
- guided: z18.boolean().optional(),
3141
- idempotencyKey: z18.string().optional(),
3142
- key: z18.string().optional(),
3143
- keyId: z18.string().optional(),
3144
- label: z18.string().optional(),
3145
- machine: z18.string().optional(),
3146
- machines: z18.string().optional(),
3147
- mode: z18.string().optional(),
3148
- mountAccess: z18.string().optional(),
3149
- network: z18.string().optional(),
3150
- noWait: z18.boolean().optional(),
3151
- nodes: z18.union([z18.string(), z18.number()]).optional(),
3152
- publicKey: z18.string().optional(),
3153
- publicKeyFile: z18.string().optional(),
3154
- reservation: z18.string().optional(),
3155
- resume: z18.union([z18.string().min(1), z18.literal(true)]).optional(),
3156
- timeout: z18.string().optional(),
3157
- username: z18.string().optional(),
3158
- vms: z18.string().optional(),
3159
- wait: z18.boolean().optional(),
3160
- yes: z18.boolean().optional(),
3161
- volume: z18.string().optional()
3110
+ guided: z17.boolean().optional(),
3111
+ idempotencyKey: z17.string().optional(),
3112
+ key: z17.string().optional(),
3113
+ keyId: z17.string().optional(),
3114
+ label: z17.string().optional(),
3115
+ machine: z17.string().optional(),
3116
+ machines: z17.string().optional(),
3117
+ mode: z17.string().optional(),
3118
+ mountAccess: z17.string().optional(),
3119
+ network: z17.string().optional(),
3120
+ noWait: z17.boolean().optional(),
3121
+ nodes: z17.union([z17.string(), z17.number()]).optional(),
3122
+ publicKey: z17.string().optional(),
3123
+ publicKeyFile: z17.string().optional(),
3124
+ reservation: z17.string().optional(),
3125
+ resume: z17.union([z17.string().min(1), z17.literal(true)]).optional(),
3126
+ timeout: z17.string().optional(),
3127
+ username: z17.string().optional(),
3128
+ vms: z17.string().optional(),
3129
+ wait: z17.boolean().optional(),
3130
+ yes: z17.boolean().optional(),
3131
+ volume: z17.string().optional()
3162
3132
  }).strict();
3163
- var pageInput = z18.object({
3164
- limit: z18.number().int().min(1).max(500).optional(),
3165
- cursor: z18.string().optional()
3133
+ var pageInput = z17.object({
3134
+ limit: z17.number().int().min(1).max(500).optional(),
3135
+ cursor: z17.string().optional()
3166
3136
  });
3167
- var publicKeyInput = z18.object({
3168
- publicKey: z18.string(),
3169
- label: z18.string().optional(),
3170
- confirm: z18.boolean().optional()
3137
+ var publicKeyInput = z17.object({
3138
+ publicKey: z17.string(),
3139
+ label: z17.string().optional(),
3140
+ confirm: z17.boolean().optional()
3171
3141
  });
3172
- var keyIdInput = z18.object({ keyId: z18.string(), confirm: z18.boolean().optional() });
3173
- var reservationKeyInput = publicKeyInput.extend({ reservationId: z18.string() });
3142
+ var keyIdInput = z17.object({ keyId: z17.string(), confirm: z17.boolean().optional() });
3143
+ var reservationKeyInput = publicKeyInput.extend({ reservationId: z17.string() });
3174
3144
  var ADDED_KEY_OUTCOME = "The response's outcome field says whether the key was created, was already_registered (returned unchanged, so the submitted label is not applied), or was reactivated from a revoked key.";
3175
- var keyListInput = z18.object({
3145
+ var keyListInput = z17.object({
3176
3146
  $positionals: positionals2,
3177
- cursor: z18.string().optional(),
3178
- limit: z18.coerce.number().int().min(1).max(500).optional()
3147
+ cursor: z17.string().optional(),
3148
+ limit: z17.coerce.number().int().min(1).max(500).optional()
3179
3149
  }).strict();
3180
- var keyMutationInput = z18.object({
3150
+ var keyMutationInput = z17.object({
3181
3151
  $positionals: positionals2,
3182
- idempotencyKey: z18.string().optional(),
3183
- key: z18.string().optional(),
3184
- keyId: z18.string().optional(),
3185
- label: z18.string().optional(),
3186
- publicKey: z18.string().optional(),
3187
- publicKeyFile: z18.string().optional(),
3188
- yes: z18.boolean().optional()
3152
+ idempotencyKey: z17.string().optional(),
3153
+ key: z17.string().optional(),
3154
+ keyId: z17.string().optional(),
3155
+ label: z17.string().optional(),
3156
+ publicKey: z17.string().optional(),
3157
+ publicKeyFile: z17.string().optional(),
3158
+ yes: z17.boolean().optional()
3189
3159
  }).strict();
3190
- var machineListInput = z18.object({
3160
+ var machineListInput = z17.object({
3191
3161
  $positionals: positionals2,
3192
- cursor: z18.string().optional(),
3193
- limit: z18.coerce.number().int().min(1).max(500).optional()
3162
+ cursor: z17.string().optional(),
3163
+ limit: z17.coerce.number().int().min(1).max(500).optional()
3194
3164
  }).strict();
3195
- var machineShowInput = z18.object({
3165
+ var machineShowInput = z17.object({
3196
3166
  $positionals: positionals2,
3197
- guided: z18.boolean().optional()
3167
+ guided: z17.boolean().optional()
3198
3168
  }).strict();
3199
- var machineWaitInput = z18.object({
3169
+ var machineWaitInput = z17.object({
3200
3170
  $positionals: positionals2,
3201
- guided: z18.boolean().optional(),
3202
- timeout: z18.string().optional()
3171
+ guided: z17.boolean().optional(),
3172
+ timeout: z17.string().optional()
3203
3173
  }).strict();
3204
- var machineSwitchInput = z18.object({
3174
+ var machineSwitchInput = z17.object({
3205
3175
  $positionals: positionals2,
3206
- guided: z18.boolean().optional(),
3207
- eraseLocalData: z18.boolean().optional(),
3208
- idempotencyKey: z18.string().optional(),
3209
- mode: z18.string().optional(),
3210
- network: z18.string().optional(),
3211
- noWait: z18.boolean().optional(),
3212
- timeout: z18.string().optional(),
3213
- wait: z18.boolean().optional(),
3214
- yes: z18.boolean().optional()
3176
+ guided: z17.boolean().optional(),
3177
+ eraseLocalData: z17.boolean().optional(),
3178
+ idempotencyKey: z17.string().optional(),
3179
+ mode: z17.string().optional(),
3180
+ network: z17.string().optional(),
3181
+ noWait: z17.boolean().optional(),
3182
+ timeout: z17.string().optional(),
3183
+ wait: z17.boolean().optional(),
3184
+ yes: z17.boolean().optional()
3215
3185
  }).strict();
3216
- var machineMaintenanceInput = z18.object({
3186
+ var machineMaintenanceInput = z17.object({
3217
3187
  $positionals: positionals2,
3218
- eraseLocalData: z18.boolean().optional(),
3219
- guided: z18.boolean().optional(),
3220
- idempotencyKey: z18.string().optional(),
3221
- noWait: z18.boolean().optional(),
3222
- timeout: z18.string().optional(),
3223
- wait: z18.boolean().optional(),
3224
- yes: z18.boolean().optional()
3188
+ eraseLocalData: z17.boolean().optional(),
3189
+ guided: z17.boolean().optional(),
3190
+ idempotencyKey: z17.string().optional(),
3191
+ noWait: z17.boolean().optional(),
3192
+ timeout: z17.string().optional(),
3193
+ wait: z17.boolean().optional(),
3194
+ yes: z17.boolean().optional()
3225
3195
  }).strict();
3226
3196
  function runtime(context) {
3227
3197
  const interaction = context.cli?.interaction;
@@ -3375,19 +3345,19 @@ var machineWaitCapability = cliOnly({
3375
3345
  },
3376
3346
  execute: executeMachines("wait")
3377
3347
  });
3378
- var accessSwitchInput = z18.object({
3379
- reservationId: z18.string(),
3380
- networkMode: z18.enum(["public", "private"]),
3381
- sshKeyIds: z18.array(z18.string()).min(1),
3382
- accessMode: z18.enum(["bare-metal", "virtual-machine"]).optional(),
3383
- username: z18.string().optional(),
3384
- requestId: z18.string().regex(/\S/),
3385
- confirm: z18.boolean().optional()
3348
+ var accessSwitchInput = z17.object({
3349
+ reservationId: z17.string(),
3350
+ networkMode: z17.enum(["public", "private"]),
3351
+ sshKeyIds: z17.array(z17.string()).min(1),
3352
+ accessMode: z17.enum(["bare-metal", "virtual-machine"]).optional(),
3353
+ username: z17.string().optional(),
3354
+ requestId: z17.string().regex(/\S/),
3355
+ confirm: z17.boolean().optional()
3386
3356
  });
3387
- var nodeIdInput = z18.object({ nodeId: z18.string(), confirm: z18.boolean().optional() });
3357
+ var nodeIdInput = z17.object({ nodeId: z17.string(), confirm: z17.boolean().optional() });
3388
3358
  var nodeMaintenanceInput = nodeIdInput.extend({
3389
- requestId: z18.string().optional(),
3390
- eraseLocalData: z18.boolean().optional()
3359
+ requestId: z17.string().optional(),
3360
+ eraseLocalData: z17.boolean().optional()
3391
3361
  });
3392
3362
  function rebootMachine(mode) {
3393
3363
  return (ctx, input) => input.virtualMachineId ? rebootVirtualMachine(ctx.fetch, input.nodeId, input.virtualMachineId, { mode }) : rebootNode(ctx.fetch, input.nodeId, {
@@ -3403,9 +3373,9 @@ var machineSwitchCapability = defineCapability({
3403
3373
  description: "Switch a live reservation between public/private network mode (and optionally VM/Bare Metal) via switch-access. Use this instead of re-launching when machines are already running. Supply a unique requestId and keep it to check progress, including after a timeout. Acceptance does not confirm completion.",
3404
3374
  mutation: "preview-confirm",
3405
3375
  input: accessSwitchInput.extend({
3406
- accessMode: z18.enum(["bare-metal", "virtual-machine"]).nullable().optional(),
3407
- eraseLocalData: z18.boolean().optional(),
3408
- machineCount: z18.number().int().positive().optional()
3376
+ accessMode: z17.enum(["bare-metal", "virtual-machine"]).nullable().optional(),
3377
+ eraseLocalData: z17.boolean().optional(),
3378
+ machineCount: z17.number().int().positive().optional()
3409
3379
  }),
3410
3380
  mcp: { name: "access_switch", input: accessSwitchInput },
3411
3381
  cli: {
@@ -3441,7 +3411,7 @@ var machineRebootCapability = defineCapability({
3441
3411
  roles: ["user"],
3442
3412
  description: "Reboot a running reservation machine. Keeps storage and SSH keys. Pass the machine/node instance id from access_show.",
3443
3413
  mutation: "preview-confirm",
3444
- input: nodeMaintenanceInput.extend({ virtualMachineId: z18.string().optional() }),
3414
+ input: nodeMaintenanceInput.extend({ virtualMachineId: z17.string().optional() }),
3445
3415
  mcp: { name: "nodes_reboot", input: nodeIdInput },
3446
3416
  cli: {
3447
3417
  input: machineMaintenanceInput,
@@ -3504,7 +3474,7 @@ var sshKeyListCapability = defineCapability({
3504
3474
  domain: "access",
3505
3475
  roles: ["user"],
3506
3476
  mutation: "read",
3507
- input: pageInput.extend({ status: z18.enum(["active", "all"]).optional() }),
3477
+ input: pageInput.extend({ status: z17.enum(["active", "all"]).optional() }),
3508
3478
  description: "List a page of account SSH keys. Pass next_cursor as cursor to continue.",
3509
3479
  mcp: { name: "ssh_keys_list", aliases: ["cluster_users_list"], input: pageInput },
3510
3480
  cli: {
@@ -3535,8 +3505,8 @@ var sshKeyAddCapability = defineCapability({
3535
3505
  roles: ["user"],
3536
3506
  mutation: "preview-confirm",
3537
3507
  input: publicKeyInput.extend({
3538
- label: z18.string().nullable().optional(),
3539
- idempotencyKey: z18.string().optional()
3508
+ label: z17.string().nullable().optional(),
3509
+ idempotencyKey: z17.string().optional()
3540
3510
  }),
3541
3511
  description: `Add an SSH public key to the account. ${ADDED_KEY_OUTCOME}`,
3542
3512
  mcp: { name: "ssh_keys_add", aliases: ["cluster_users_add"], input: publicKeyInput },
@@ -3564,7 +3534,7 @@ var sshKeyDeleteCapability = defineCapability({
3564
3534
  domain: "access",
3565
3535
  roles: ["user"],
3566
3536
  mutation: "preview-confirm",
3567
- input: keyIdInput.extend({ idempotencyKey: z18.string().optional() }),
3537
+ input: keyIdInput.extend({ idempotencyKey: z17.string().optional() }),
3568
3538
  description: "Delete an SSH key from the account.",
3569
3539
  mcp: { name: "ssh_keys_delete", aliases: ["cluster_users_revoke"], input: keyIdInput },
3570
3540
  cli: {
@@ -3595,7 +3565,7 @@ var sshKeyAssignmentListCapability = defineCapability({
3595
3565
  domain: "access",
3596
3566
  roles: ["user"],
3597
3567
  mutation: "read",
3598
- input: z18.object({ reservationId: z18.string() }),
3568
+ input: z17.object({ reservationId: z17.string() }),
3599
3569
  description: "List SSH keys registered for a reservation.",
3600
3570
  mcp: { name: "access_keys_list" },
3601
3571
  cli: {
@@ -3621,9 +3591,9 @@ var sshKeyAssignmentAssignCapability = defineCapability({
3621
3591
  domain: "access",
3622
3592
  roles: ["user"],
3623
3593
  mutation: "preview-confirm",
3624
- input: z18.union([
3625
- reservationKeyInput.extend({ idempotencyKey: z18.string().optional() }),
3626
- keyIdInput.extend({ reservationId: z18.string(), idempotencyKey: z18.string().optional() })
3594
+ input: z17.union([
3595
+ reservationKeyInput.extend({ idempotencyKey: z17.string().optional() }),
3596
+ keyIdInput.extend({ reservationId: z17.string(), idempotencyKey: z17.string().optional() })
3627
3597
  ]),
3628
3598
  description: `Add an SSH key to a reservation. ${ADDED_KEY_OUTCOME}`,
3629
3599
  mcp: { name: "access_keys_add", input: reservationKeyInput },
@@ -3681,7 +3651,7 @@ var sshKeyAssignmentStatusCapability = defineCapability({
3681
3651
  domain: "access",
3682
3652
  roles: ["user"],
3683
3653
  mutation: "read",
3684
- input: z18.object({ reservationId: z18.string() }),
3654
+ input: z17.object({ reservationId: z17.string() }),
3685
3655
  description: "Show SSH key push status per machine for a reservation.",
3686
3656
  mcp: { name: "access_keys_status" },
3687
3657
  cli: {
@@ -3725,21 +3695,21 @@ var accessShowCapability = defineCapability({
3725
3695
  roles: ["user"],
3726
3696
  description: "Show VM and Bare Metal SSH access machines for a reservation.",
3727
3697
  mutation: "read",
3728
- input: z18.object({ reservationId: z18.string() }),
3698
+ input: z17.object({ reservationId: z17.string() }),
3729
3699
  execute: (ctx, input) => listNodes(ctx.fetch, { reservation_id: input.reservationId })
3730
3700
  });
3731
- var accessActivateInput = z18.object({
3732
- reservationId: z18.string(),
3733
- sshKeyIds: z18.array(z18.string()).min(1),
3734
- username: z18.string().optional(),
3735
- machineCount: z18.number().int().positive().optional(),
3736
- requestId: z18.string().optional(),
3737
- accessMode: z18.enum(["bare-metal", "vm"]).optional(),
3738
- networkMode: z18.enum(["public", "private"]).optional(),
3739
- diskId: z18.string().optional(),
3740
- storageLoadDriveId: z18.string().optional(),
3741
- storageSaveDriveId: z18.string().optional(),
3742
- confirm: z18.boolean().optional()
3701
+ var accessActivateInput = z17.object({
3702
+ reservationId: z17.string(),
3703
+ sshKeyIds: z17.array(z17.string()).min(1),
3704
+ username: z17.string().optional(),
3705
+ machineCount: z17.number().int().positive().optional(),
3706
+ requestId: z17.string().optional(),
3707
+ accessMode: z17.enum(["bare-metal", "vm"]).optional(),
3708
+ networkMode: z17.enum(["public", "private"]).optional(),
3709
+ diskId: z17.string().optional(),
3710
+ storageLoadDriveId: z17.string().optional(),
3711
+ storageSaveDriveId: z17.string().optional(),
3712
+ confirm: z17.boolean().optional()
3743
3713
  });
3744
3714
  var accessActivateCapability = defineCapability({
3745
3715
  id: "access.activate",
@@ -3748,8 +3718,8 @@ var accessActivateCapability = defineCapability({
3748
3718
  description: "Activate access (bare-metal by default, or VM via accessMode) for a reservation and launch machine(s) with the given SSH key(s), optionally on the private network via networkMode. A VM launches on the reservation's saved disk; pass diskId to choose one, which a reservation without a saved disk needs.",
3749
3719
  mutation: "preview-confirm",
3750
3720
  input: accessActivateInput.extend({
3751
- diskId: z18.string().nullable().optional(),
3752
- zone: z18.string().nullable().optional()
3721
+ diskId: z17.string().nullable().optional(),
3722
+ zone: z17.string().nullable().optional()
3753
3723
  }),
3754
3724
  mcp: { input: accessActivateInput },
3755
3725
  // Without disk_id the orchestrator boots "virtual-machine" from the
@@ -3769,7 +3739,7 @@ var accessActivateCapability = defineCapability({
3769
3739
  var accessVerbCapabilities = [accessShowCapability, accessActivateCapability];
3770
3740
 
3771
3741
  // ../../packages/capabilities/dist/capabilities/credits.js
3772
- import { z as z19 } from "zod";
3742
+ import { z as z18 } from "zod";
3773
3743
 
3774
3744
  // ../../packages/capabilities/dist/ledger-amount.js
3775
3745
  function parsePostingCents(value) {
@@ -3816,11 +3786,11 @@ var creditBalanceCapability = defineCapability({
3816
3786
  required: ["organizationId"]
3817
3787
  }
3818
3788
  },
3819
- input: z19.object({ organizationId: z19.uuid() }),
3789
+ input: z18.object({ organizationId: z18.uuid() }),
3820
3790
  execute: async (ctx, input) => {
3821
3791
  if (ctx.role !== "admin")
3822
3792
  throw new Error("Admin role required.");
3823
- const { organizationId } = z19.object({ organizationId: z19.uuid() }).parse(input);
3793
+ const { organizationId } = z18.object({ organizationId: z18.uuid() }).parse(input);
3824
3794
  const { accounts } = await listAccounts(ctx.fetch, { organization_id: organizationId });
3825
3795
  const balance = availableCreditCents(accounts);
3826
3796
  if (balance === null)
@@ -3832,13 +3802,13 @@ var creditBalanceCapability = defineCapability({
3832
3802
  };
3833
3803
  }
3834
3804
  });
3835
- var creditGrantInput = z19.object({
3836
- organizationId: z19.uuid().describe("Customer organization UUID. Resolve names or emails with organization_list; ask which organization if matches are ambiguous."),
3837
- adjustmentId: z19.uuid().describe("The credit-adjustment API's required grant UUID. Keep the same UUID when confirming this grant."),
3838
- amountCents: z19.number().int().min(1).max(1e8).describe("USD cents: 10000 grants $100.00."),
3839
- direction: z19.enum(["credit", "debit"]).default("credit").describe("credit adds funds (default); debit removes funds. Choose explicitly for a debit."),
3840
- note: z19.string().trim().min(1).refine((value) => new TextEncoder().encode(value).length <= 500, "Keep the note under 500 UTF-8 bytes.").describe("Reason for the credit grant."),
3841
- confirm: z19.boolean().optional()
3805
+ var creditGrantInput = z18.object({
3806
+ organizationId: z18.uuid().describe("Customer organization UUID. Resolve names or emails with organization_list; ask which organization if matches are ambiguous."),
3807
+ adjustmentId: z18.uuid().describe("The credit-adjustment API's required grant UUID. Keep the same UUID when confirming this grant."),
3808
+ amountCents: z18.number().int().min(1).max(1e8).describe("USD cents: 10000 grants $100.00."),
3809
+ direction: z18.enum(["credit", "debit"]).default("credit").describe("credit adds funds (default); debit removes funds. Choose explicitly for a debit."),
3810
+ note: z18.string().trim().min(1).refine((value) => new TextEncoder().encode(value).length <= 500, "Keep the note under 500 UTF-8 bytes.").describe("Reason for the credit grant."),
3811
+ confirm: z18.boolean().optional()
3842
3812
  });
3843
3813
  var creditGrantCapability = defineCapability({
3844
3814
  id: "credits.grant",
@@ -3907,7 +3877,7 @@ var creditAdjustmentsListCapability = defineCapability({
3907
3877
  roles: ["admin"],
3908
3878
  mutation: "read",
3909
3879
  description: "Read the organization's credit/debit adjustment history, including audit notes.",
3910
- input: z19.object({ organizationId: z19.uuid() }),
3880
+ input: z18.object({ organizationId: z18.uuid() }),
3911
3881
  cli: {
3912
3882
  command: ["admin", "organizations", "credit-adjustments"],
3913
3883
  vnext: {
@@ -3923,19 +3893,19 @@ var creditAdjustmentsListCapability = defineCapability({
3923
3893
  execute: async (ctx, input) => {
3924
3894
  if (ctx.role !== "admin")
3925
3895
  throw new Error("Admin role required.");
3926
- const { organizationId } = z19.object({ organizationId: z19.uuid() }).parse(input);
3896
+ const { organizationId } = z18.object({ organizationId: z18.uuid() }).parse(input);
3927
3897
  return listCreditAdjustments(ctx.fetch, organizationId);
3928
3898
  }
3929
3899
  });
3930
3900
 
3931
3901
  // ../../packages/capabilities/dist/capabilities/gifts.js
3932
- import { z as z20 } from "zod";
3902
+ import { z as z19 } from "zod";
3933
3903
  var DEFAULT_EXPIRY_DAYS = 30;
3934
- var giftCreateInput = z20.object({
3935
- amountUsd: z20.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."),
3936
- expiresInDays: z20.number().int().min(1).max(365).default(DEFAULT_EXPIRY_DAYS).describe(`Days until the link expires. Defaults to ${DEFAULT_EXPIRY_DAYS}; at most 365.`),
3937
- note: z20.string().trim().max(500).optional().describe("Internal reason for the gift, for example the promotion or customer. Never shown to the recipient."),
3938
- confirm: z20.boolean().optional()
3904
+ var giftCreateInput = z19.object({
3905
+ amountUsd: z19.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."),
3906
+ expiresInDays: z19.number().int().min(1).max(365).default(DEFAULT_EXPIRY_DAYS).describe(`Days until the link expires. Defaults to ${DEFAULT_EXPIRY_DAYS}; at most 365.`),
3907
+ note: z19.string().trim().max(500).optional().describe("Internal reason for the gift, for example the promotion or customer. Never shown to the recipient."),
3908
+ confirm: z19.boolean().optional()
3939
3909
  });
3940
3910
  var giftCreateCapability = defineCapability({
3941
3911
  id: "gifts.create",
@@ -3997,20 +3967,20 @@ var giftCreateCapability = defineCapability({
3997
3967
  });
3998
3968
 
3999
3969
  // ../../packages/capabilities/dist/capabilities/cli.js
4000
- import { z as z21 } from "zod";
4001
- var emptyInput2 = z21.object({});
3970
+ import { z as z20 } from "zod";
3971
+ var emptyInput2 = z20.object({});
4002
3972
  function requireCliRuntime(context) {
4003
3973
  if (!context.cli) {
4004
3974
  throw new Error("This capability must execute through the Ornn CLI runtime.");
4005
3975
  }
4006
3976
  return context.cli;
4007
3977
  }
4008
- var updateInput = z21.object({
4009
- $positionals: z21.array(z21.string()).max(0).default([]),
4010
- major: z21.boolean().optional()
3978
+ var updateInput = z20.object({
3979
+ $positionals: z20.array(z20.string()).max(0).default([]),
3980
+ major: z20.boolean().optional()
4011
3981
  });
4012
- var completionInput = z21.object({
4013
- $positionals: z21.tuple([z21.enum(["bash", "fish", "zsh"])])
3982
+ var completionInput = z20.object({
3983
+ $positionals: z20.tuple([z20.enum(["bash", "fish", "zsh"])])
4014
3984
  }).transform(({ $positionals }) => ({ shell: $positionals[0] }));
4015
3985
  var versionCapability = defineCapability({
4016
3986
  id: "cli.version",
@@ -4151,23 +4121,23 @@ var cliShellCapabilities = [
4151
4121
  ];
4152
4122
 
4153
4123
  // ../../packages/capabilities/dist/capabilities/clusters.js
4154
- import { z as z22 } from "zod";
4155
- var clusterCliInput = z22.object({
4156
- $positionals: z22.array(z22.string()).optional(),
4157
- cursor: z22.string().optional(),
4158
- guided: z22.boolean().optional(),
4159
- idempotencyKey: z22.string().optional(),
4160
- limit: z22.union([z22.string(), z22.number()]).optional(),
4161
- machine: z22.string().optional(),
4162
- machines: z22.string().optional(),
4163
- network: z22.enum(["public", "private"]).optional(),
4164
- noWait: z22.boolean().optional(),
4165
- nodes: z22.union([z22.string(), z22.number()]).optional(),
4166
- output: z22.string().optional(),
4167
- overwrite: z22.boolean().optional(),
4168
- timeout: z22.string().optional(),
4169
- wait: z22.boolean().optional(),
4170
- yes: z22.boolean().optional()
4124
+ import { z as z21 } from "zod";
4125
+ var clusterCliInput = z21.object({
4126
+ $positionals: z21.array(z21.string()).optional(),
4127
+ cursor: z21.string().optional(),
4128
+ guided: z21.boolean().optional(),
4129
+ idempotencyKey: z21.string().optional(),
4130
+ limit: z21.union([z21.string(), z21.number()]).optional(),
4131
+ machine: z21.string().optional(),
4132
+ machines: z21.string().optional(),
4133
+ network: z21.enum(["public", "private"]).optional(),
4134
+ noWait: z21.boolean().optional(),
4135
+ nodes: z21.union([z21.string(), z21.number()]).optional(),
4136
+ output: z21.string().optional(),
4137
+ overwrite: z21.boolean().optional(),
4138
+ timeout: z21.string().optional(),
4139
+ wait: z21.boolean().optional(),
4140
+ yes: z21.boolean().optional()
4171
4141
  }).strict();
4172
4142
  function executeCluster(command) {
4173
4143
  return (context, input) => {
@@ -4206,13 +4176,13 @@ function clusterCliCapability({ acceptedReferences = [], automation, command, de
4206
4176
  execute: executeCluster(id)
4207
4177
  });
4208
4178
  }
4209
- var clusterType = z22.enum(["kubernetes", "slurm"]);
4210
- var reservationCluster = z22.object({ reservationId: z22.string(), type: clusterType });
4211
- var reservationWrite = reservationCluster.extend({ confirm: z22.boolean().optional() });
4212
- var controllerNode = z22.object({
4213
- controllerId: z22.string(),
4214
- nodeId: z22.string(),
4215
- confirm: z22.boolean().optional()
4179
+ var clusterType = z21.enum(["kubernetes", "slurm"]);
4180
+ var reservationCluster = z21.object({ reservationId: z21.string(), type: clusterType });
4181
+ var reservationWrite = reservationCluster.extend({ confirm: z21.boolean().optional() });
4182
+ var controllerNode = z21.object({
4183
+ controllerId: z21.string(),
4184
+ nodeId: z21.string(),
4185
+ confirm: z21.boolean().optional()
4216
4186
  });
4217
4187
  var clusterListCapability = defineCapability({
4218
4188
  id: "clusters.list",
@@ -4220,7 +4190,7 @@ var clusterListCapability = defineCapability({
4220
4190
  roles: ["user"],
4221
4191
  description: "List this tenant's kubernetes/slurm clusters.",
4222
4192
  mutation: "read",
4223
- input: z22.object({}),
4193
+ input: z21.object({}),
4224
4194
  mcp: { name: "clusters_list" },
4225
4195
  execute: (ctx) => listClusters(ctx.fetch),
4226
4196
  cli: {
@@ -4272,7 +4242,7 @@ var clusterTeardownCapability = defineCapability({
4272
4242
  roles: ["user"],
4273
4243
  description: "Tear down a kubernetes or slurm cluster on a reservation.",
4274
4244
  mutation: "preview-confirm",
4275
- input: reservationWrite.extend({ idempotencyKey: z22.string().optional() }),
4245
+ input: reservationWrite.extend({ idempotencyKey: z21.string().optional() }),
4276
4246
  mcp: { name: "clusters_teardown", input: reservationWrite },
4277
4247
  execute: (ctx, input) => teardownReservationCluster(ctx.fetch, input.type, input.reservationId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
4278
4248
  cli: {
@@ -4309,7 +4279,7 @@ var clusterAddNodeCapability = defineCapability({
4309
4279
  roles: ["user"],
4310
4280
  description: "Join a node to a controller.",
4311
4281
  mutation: "preview-confirm",
4312
- input: controllerNode.extend({ idempotencyKey: z22.string().optional() }),
4282
+ input: controllerNode.extend({ idempotencyKey: z21.string().optional() }),
4313
4283
  mcp: { name: "clusters_add_node", input: controllerNode },
4314
4284
  cli: {
4315
4285
  command: ["clusters", "add-node"],
@@ -4341,7 +4311,7 @@ var clusterRemoveNodeCapability = defineCapability({
4341
4311
  roles: ["user"],
4342
4312
  description: "Remove a node from a controller.",
4343
4313
  mutation: "preview-confirm",
4344
- input: controllerNode.extend({ idempotencyKey: z22.string().optional() }),
4314
+ input: controllerNode.extend({ idempotencyKey: z21.string().optional() }),
4345
4315
  mcp: { name: "clusters_remove_node", input: controllerNode },
4346
4316
  cli: {
4347
4317
  command: ["clusters", "remove-node"],
@@ -4367,13 +4337,13 @@ var clusterRemoveNodeCapability = defineCapability({
4367
4337
  },
4368
4338
  execute: (ctx, input) => removeControllerNode(ctx.fetch, input.controllerId, input.nodeId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0)
4369
4339
  });
4370
- var clusterCreateInput = z22.object({
4371
- reservationId: z22.string(),
4340
+ var clusterCreateInput = z21.object({
4341
+ reservationId: z21.string(),
4372
4342
  type: clusterType,
4373
- networkMode: z22.enum(["public", "private"]).optional(),
4374
- nodeIds: z22.array(z22.string()).optional(),
4375
- nodeCount: z22.number().int().positive().optional(),
4376
- confirm: z22.boolean().optional()
4343
+ networkMode: z21.enum(["public", "private"]).optional(),
4344
+ nodeIds: z21.array(z21.string()).optional(),
4345
+ nodeCount: z21.number().int().positive().optional(),
4346
+ confirm: z21.boolean().optional()
4377
4347
  }).strict();
4378
4348
  var clusterCreateCapability = defineCapability({
4379
4349
  id: "cluster.create",
@@ -4382,9 +4352,9 @@ var clusterCreateCapability = defineCapability({
4382
4352
  description: "Launch a kubernetes or slurm cluster on a reservation.",
4383
4353
  mutation: "preview-confirm",
4384
4354
  input: clusterCreateInput.extend({
4385
- virtualMachineIds: z22.array(z22.string()).optional(),
4386
- sshKeyIds: z22.array(z22.string()).optional(),
4387
- idempotencyKey: z22.string().optional()
4355
+ virtualMachineIds: z21.array(z21.string()).optional(),
4356
+ sshKeyIds: z21.array(z21.string()).optional(),
4357
+ idempotencyKey: z21.string().optional()
4388
4358
  }),
4389
4359
  mcp: { name: "clusters_create", input: clusterCreateInput },
4390
4360
  execute: (ctx, input) => createController(ctx.fetch, {
@@ -4428,8 +4398,8 @@ var clusterCapabilities = [
4428
4398
  roles: ["user"],
4429
4399
  description: "List active reservations eligible for cluster creation (kubernetes/slurm), 100 per page. Pass the response's nextCursor as cursor for the next page.",
4430
4400
  mutation: "read",
4431
- input: z22.object({
4432
- cursor: z22.string().min(1).optional().describe("nextCursor from the previous page.")
4401
+ input: z21.object({
4402
+ cursor: z21.string().min(1).optional().describe("nextCursor from the previous page.")
4433
4403
  }),
4434
4404
  mcp: { name: "clusters_reservations_list" },
4435
4405
  // A cluster launches on an active reservation. Commerce pages at most 100.
@@ -4445,7 +4415,7 @@ var clusterCapabilities = [
4445
4415
  roles: ["user"],
4446
4416
  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.",
4447
4417
  mutation: "read",
4448
- input: z22.object({ reservationId: z22.string() }),
4418
+ input: z21.object({ reservationId: z21.string() }),
4449
4419
  mcp: { name: "clusters_kubeconfig" },
4450
4420
  execute: async (ctx, input) => {
4451
4421
  const credentials = await clusterCredentialsCapability.execute(ctx, {
@@ -4464,55 +4434,55 @@ var clusterCapabilities = [
4464
4434
  ];
4465
4435
 
4466
4436
  // ../../packages/capabilities/dist/capabilities/external-buckets.js
4467
- import { z as z23 } from "zod";
4468
- var pageInput2 = z23.object({
4469
- $positionals: z23.array(z23.string()).optional(),
4470
- cursor: z23.string().optional(),
4471
- limit: z23.union([z23.string(), z23.number()]).optional()
4437
+ import { z as z22 } from "zod";
4438
+ var pageInput2 = z22.object({
4439
+ $positionals: z22.array(z22.string()).optional(),
4440
+ cursor: z22.string().optional(),
4441
+ limit: z22.union([z22.string(), z22.number()]).optional()
4472
4442
  }).strict();
4473
- var showInput = z23.object({
4474
- $positionals: z23.array(z23.string()).optional()
4443
+ var showInput = z22.object({
4444
+ $positionals: z22.array(z22.string()).optional()
4475
4445
  }).strict();
4476
- var verificationInput = z23.object({
4477
- $positionals: z23.array(z23.string()).optional(),
4478
- idempotencyKey: z23.string().optional()
4446
+ var verificationInput = z22.object({
4447
+ $positionals: z22.array(z22.string()).optional(),
4448
+ idempotencyKey: z22.string().optional()
4479
4449
  }).strict();
4480
- var disconnectInput = z23.object({
4481
- $positionals: z23.array(z23.string()).optional(),
4482
- idempotencyKey: z23.string().optional(),
4483
- yes: z23.boolean().optional()
4450
+ var disconnectInput = z22.object({
4451
+ $positionals: z22.array(z22.string()).optional(),
4452
+ idempotencyKey: z22.string().optional(),
4453
+ yes: z22.boolean().optional()
4484
4454
  }).strict();
4485
- var connectInput = z23.object({
4486
- $positionals: z23.array(z23.string()).optional(),
4487
- accessKeyId: z23.string().optional(),
4488
- accountId: z23.string().optional(),
4489
- bucket: z23.string().optional(),
4490
- endpointUrl: z23.string().optional(),
4491
- idempotencyKey: z23.string().optional(),
4492
- name: z23.string().optional(),
4493
- prefix: z23.string().optional(),
4494
- readOnly: z23.boolean().optional(),
4495
- readWrite: z23.boolean().optional(),
4496
- region: z23.string().optional(),
4497
- secretAccessKeyFile: z23.string().optional(),
4498
- url: z23.string().optional(),
4499
- yes: z23.boolean().optional()
4455
+ var connectInput = z22.object({
4456
+ $positionals: z22.array(z22.string()).optional(),
4457
+ accessKeyId: z22.string().optional(),
4458
+ accountId: z22.string().optional(),
4459
+ bucket: z22.string().optional(),
4460
+ endpointUrl: z22.string().optional(),
4461
+ idempotencyKey: z22.string().optional(),
4462
+ name: z22.string().optional(),
4463
+ prefix: z22.string().optional(),
4464
+ readOnly: z22.boolean().optional(),
4465
+ readWrite: z22.boolean().optional(),
4466
+ region: z22.string().optional(),
4467
+ secretAccessKeyFile: z22.string().optional(),
4468
+ url: z22.string().optional(),
4469
+ yes: z22.boolean().optional()
4500
4470
  }).strict();
4501
- var credentialInput = z23.object({
4502
- $positionals: z23.array(z23.string()).optional(),
4503
- accessKeyId: z23.string().optional(),
4504
- idempotencyKey: z23.string().optional(),
4505
- secretAccessKeyFile: z23.string().optional(),
4506
- yes: z23.boolean().optional()
4471
+ var credentialInput = z22.object({
4472
+ $positionals: z22.array(z22.string()).optional(),
4473
+ accessKeyId: z22.string().optional(),
4474
+ idempotencyKey: z22.string().optional(),
4475
+ secretAccessKeyFile: z22.string().optional(),
4476
+ yes: z22.boolean().optional()
4507
4477
  }).strict();
4508
- var importInput = z23.object({
4509
- $positionals: z23.array(z23.string()).optional(),
4510
- idempotencyKey: z23.string().optional(),
4511
- noWait: z23.boolean().optional(),
4512
- reservation: z23.string().optional(),
4513
- timeout: z23.string().optional(),
4514
- wait: z23.boolean().optional(),
4515
- yes: z23.boolean().optional()
4478
+ var importInput = z22.object({
4479
+ $positionals: z22.array(z22.string()).optional(),
4480
+ idempotencyKey: z22.string().optional(),
4481
+ noWait: z22.boolean().optional(),
4482
+ reservation: z22.string().optional(),
4483
+ timeout: z22.string().optional(),
4484
+ wait: z22.boolean().optional(),
4485
+ yes: z22.boolean().optional()
4516
4486
  }).strict();
4517
4487
  function externalBucketExecutor(context) {
4518
4488
  const interaction = context.cli?.interaction;
@@ -4528,16 +4498,16 @@ function isExternalBucket(drive) {
4528
4498
  return false;
4529
4499
  return ["external_gcs", "s3", "r2", "cloudflare_r2"].includes(source.provider ?? "") || Boolean(source.bucket);
4530
4500
  }
4531
- var bucketInput = z23.object({ driveId: z23.string() });
4501
+ var bucketInput = z22.object({ driveId: z22.string() });
4532
4502
  var bucketListCapability = defineCapability({
4533
4503
  id: "storage.external-buckets.list",
4534
4504
  domain: "storage",
4535
4505
  roles: ["user"],
4536
4506
  description: "List a page of connected external buckets. Pass next_cursor as cursor to continue.",
4537
4507
  mutation: "read",
4538
- input: z23.object({
4539
- limit: z23.number().int().min(1).max(100).optional(),
4540
- cursor: z23.string().optional()
4508
+ input: z22.object({
4509
+ limit: z22.number().int().min(1).max(100).optional(),
4510
+ cursor: z22.string().optional()
4541
4511
  }),
4542
4512
  mcp: { name: "storage_buckets_list" },
4543
4513
  execute: async (context, input) => {
@@ -4629,18 +4599,18 @@ var bucketDisconnectCapability = defineCapability({
4629
4599
  }
4630
4600
  }
4631
4601
  });
4632
- var bucketConnectInput = z23.object({
4633
- provider: z23.enum(["gcs", "s3", "r2"]),
4634
- bucket: z23.string(),
4635
- name: z23.string().optional(),
4636
- prefix: z23.string().optional(),
4637
- region: z23.string().optional(),
4638
- endpointUrl: z23.string().optional(),
4639
- accountId: z23.string().optional(),
4640
- accessKeyId: z23.string().optional(),
4641
- secretAccessKey: z23.string().optional(),
4642
- readOnly: z23.boolean().optional(),
4643
- confirm: z23.boolean().optional()
4602
+ var bucketConnectInput = z22.object({
4603
+ provider: z22.enum(["gcs", "s3", "r2"]),
4604
+ bucket: z22.string(),
4605
+ name: z22.string().optional(),
4606
+ prefix: z22.string().optional(),
4607
+ region: z22.string().optional(),
4608
+ endpointUrl: z22.string().optional(),
4609
+ accountId: z22.string().optional(),
4610
+ accessKeyId: z22.string().optional(),
4611
+ secretAccessKey: z22.string().optional(),
4612
+ readOnly: z22.boolean().optional(),
4613
+ confirm: z22.boolean().optional()
4644
4614
  }).refine((input) => !(input.provider === "gcs" && (input.accessKeyId || input.secretAccessKey)), {
4645
4615
  message: "Access key credentials are only supported for S3-compatible buckets."
4646
4616
  }).refine((input) => Boolean(input.accessKeyId) === Boolean(input.secretAccessKey), {
@@ -4648,10 +4618,10 @@ var bucketConnectInput = z23.object({
4648
4618
  }).refine((input) => input.provider !== "r2" || Boolean(input.endpointUrl || input.accountId), {
4649
4619
  message: "R2 buckets require either --endpointUrl or --accountId."
4650
4620
  });
4651
- var bucketWriteInput = bucketInput.extend({ confirm: z23.boolean().optional() });
4621
+ var bucketWriteInput = bucketInput.extend({ confirm: z22.boolean().optional() });
4652
4622
  var bucketCredentialInput = bucketWriteInput.extend({
4653
- accessKeyId: z23.string(),
4654
- secretAccessKey: z23.string()
4623
+ accessKeyId: z22.string(),
4624
+ secretAccessKey: z22.string()
4655
4625
  });
4656
4626
  var bucketConnectCapability = defineCapability({
4657
4627
  id: "storage.external-buckets.connect",
@@ -4659,7 +4629,7 @@ var bucketConnectCapability = defineCapability({
4659
4629
  roles: ["user"],
4660
4630
  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).",
4661
4631
  mutation: "preview-confirm",
4662
- input: bucketConnectInput.safeExtend({ idempotencyKey: z23.string().optional() }),
4632
+ input: bucketConnectInput.safeExtend({ idempotencyKey: z22.string().optional() }),
4663
4633
  mcp: { name: "storage_buckets_connect", input: bucketConnectInput },
4664
4634
  execute: (context, input) => {
4665
4635
  const endpoint = input.endpointUrl ?? (input.provider === "r2" && input.accountId ? `https://${input.accountId}.r2.cloudflarestorage.com` : void 0);
@@ -4702,7 +4672,7 @@ var bucketUpdateCredentialsCapability = defineCapability({
4702
4672
  roles: ["user"],
4703
4673
  description: "Update a connected S3-compatible bucket's access key credentials.",
4704
4674
  mutation: "preview-confirm",
4705
- input: bucketCredentialInput.extend({ idempotencyKey: z23.string().optional() }),
4675
+ input: bucketCredentialInput.extend({ idempotencyKey: z22.string().optional() }),
4706
4676
  mcp: { name: "storage_buckets_update_credentials", input: bucketCredentialInput },
4707
4677
  execute: (context, input) => updateDrive(context.fetch, input.driveId, {
4708
4678
  source_credentials: {
@@ -4734,7 +4704,7 @@ var bucketVerifyCapability = defineCapability({
4734
4704
  roles: ["user"],
4735
4705
  description: "Verify a connected S3-compatible bucket's source credentials/connectivity.",
4736
4706
  mutation: "preview-confirm",
4737
- input: bucketWriteInput.extend({ idempotencyKey: z23.string().optional() }),
4707
+ input: bucketWriteInput.extend({ idempotencyKey: z22.string().optional() }),
4738
4708
  mcp: { name: "storage_buckets_verify", input: bucketWriteInput },
4739
4709
  execute: (context, input) => updateDrive(context.fetch, input.driveId, { verify_source: true }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
4740
4710
  cli: {
@@ -4791,22 +4761,22 @@ var externalBucketCapabilities = [
4791
4761
  ];
4792
4762
 
4793
4763
  // ../../packages/capabilities/dist/capabilities/evidence.js
4794
- import { z as z24 } from "zod";
4795
- var positionals3 = z24.array(z24.string()).default([]);
4796
- var evidenceInput = z24.object({
4764
+ import { z as z23 } from "zod";
4765
+ var positionals3 = z23.array(z23.string()).default([]);
4766
+ var evidenceInput = z23.object({
4797
4767
  $positionals: positionals3,
4798
- before: z24.string().optional(),
4799
- count: z24.string().optional(),
4800
- cursor: z24.string().optional(),
4801
- end: z24.string().optional(),
4802
- follow: z24.boolean().optional(),
4803
- guided: z24.boolean().optional(),
4804
- interval: z24.string().optional(),
4805
- limit: z24.string().optional(),
4806
- maxPoints: z24.string().optional(),
4807
- start: z24.string().optional(),
4808
- stream: z24.enum(["kernel", "serial"]).optional(),
4809
- timeout: z24.string().optional()
4768
+ before: z23.string().optional(),
4769
+ count: z23.string().optional(),
4770
+ cursor: z23.string().optional(),
4771
+ end: z23.string().optional(),
4772
+ follow: z23.boolean().optional(),
4773
+ guided: z23.boolean().optional(),
4774
+ interval: z23.string().optional(),
4775
+ limit: z23.string().optional(),
4776
+ maxPoints: z23.string().optional(),
4777
+ start: z23.string().optional(),
4778
+ stream: z23.enum(["kernel", "serial"]).optional(),
4779
+ timeout: z23.string().optional()
4810
4780
  }).strict();
4811
4781
  function runtime2(context) {
4812
4782
  const interaction = context.cli?.interaction;
@@ -4972,46 +4942,46 @@ function getCliSession(request) {
4972
4942
  }
4973
4943
 
4974
4944
  // ../../packages/capabilities/dist/capabilities/fleet.js
4975
- import { z as z25 } from "zod";
4976
- var suppliersInput = z25.object({
4977
- q: z25.string().optional(),
4978
- offset: z25.number().int().min(0).optional(),
4979
- limit: z25.number().int().min(1).max(1e3).optional()
4980
- });
4981
- var facilitiesInput = z25.object({
4982
- organization_id: z25.string().optional(),
4983
- cursor: z25.string().optional(),
4984
- limit: z25.number().int().min(1).max(100).optional()
4985
- });
4986
- var nodesInput = z25.object({
4987
- organization_id: z25.string().optional(),
4988
- facility_id: z25.string().optional(),
4989
- status: z25.string().optional(),
4990
- reservation_id: z25.string().optional(),
4991
- cursor: z25.string().optional(),
4992
- max: z25.number().int().positive().max(5e3).optional(),
4993
- limit: z25.number().int().positive().max(5e3).optional()
4994
- });
4995
- var nodeLifecycleInput = z25.object({
4996
- node_id: z25.string().min(1),
4997
- maintenance_batch_id: z25.string().uuid().optional(),
4998
- node_ref: z25.string().optional(),
4999
- reason: z25.string().optional(),
5000
- delete_node_record: z25.literal(true).optional(),
5001
- idempotency_key: z25.string().optional(),
5002
- yes: z25.boolean().optional(),
5003
- wait: z25.boolean().optional(),
5004
- timeout_seconds: z25.number().positive().optional()
5005
- });
5006
- var nodeExecRemoteInput = z25.object({
5007
- node_id: z25.string().min(1).optional(),
5008
- host: z25.string().min(1).optional(),
5009
- username: z25.string().min(1).optional(),
5010
- port: z25.number().int().min(1).max(65535).optional(),
5011
- private_key: z25.string().min(1).optional(),
5012
- command: z25.string().min(1),
5013
- timeout_seconds: z25.number().int().positive(),
5014
- yes: z25.boolean().optional()
4945
+ import { z as z24 } from "zod";
4946
+ var suppliersInput = z24.object({
4947
+ q: z24.string().optional(),
4948
+ offset: z24.number().int().min(0).optional(),
4949
+ limit: z24.number().int().min(1).max(1e3).optional()
4950
+ });
4951
+ var facilitiesInput = z24.object({
4952
+ organization_id: z24.string().optional(),
4953
+ cursor: z24.string().optional(),
4954
+ limit: z24.number().int().min(1).max(100).optional()
4955
+ });
4956
+ var nodesInput = z24.object({
4957
+ organization_id: z24.string().optional(),
4958
+ facility_id: z24.string().optional(),
4959
+ status: z24.string().optional(),
4960
+ reservation_id: z24.string().optional(),
4961
+ cursor: z24.string().optional(),
4962
+ max: z24.number().int().positive().max(5e3).optional(),
4963
+ limit: z24.number().int().positive().max(5e3).optional()
4964
+ });
4965
+ var nodeLifecycleInput = z24.object({
4966
+ node_id: z24.string().min(1),
4967
+ maintenance_batch_id: z24.string().uuid().optional(),
4968
+ node_ref: z24.string().optional(),
4969
+ reason: z24.string().optional(),
4970
+ delete_node_record: z24.literal(true).optional(),
4971
+ idempotency_key: z24.string().optional(),
4972
+ yes: z24.boolean().optional(),
4973
+ wait: z24.boolean().optional(),
4974
+ timeout_seconds: z24.number().positive().optional()
4975
+ });
4976
+ var nodeSshRemoteInput = z24.object({
4977
+ node_id: z24.string().min(1).optional(),
4978
+ host: z24.string().min(1).optional(),
4979
+ username: z24.string().min(1).optional(),
4980
+ port: z24.number().int().min(1).max(65535).optional(),
4981
+ private_key: z24.string().min(1).optional(),
4982
+ command: z24.string().min(1),
4983
+ timeout_seconds: z24.number().int().positive(),
4984
+ yes: z24.boolean().optional()
5015
4985
  });
5016
4986
  var listSuppliersCapability = defineCapability({
5017
4987
  id: "supplier.list",
@@ -5108,7 +5078,7 @@ var listFacilitiesCapability = defineCapability({
5108
5078
  });
5109
5079
  }
5110
5080
  });
5111
- var facilityShowInput = z25.object({ facilityId: z25.uuid() });
5081
+ var facilityShowInput = z24.object({ facilityId: z24.uuid() });
5112
5082
  var facilityShowCapability = defineCapability({
5113
5083
  id: "facilities.show",
5114
5084
  domain: "fleet",
@@ -5203,38 +5173,39 @@ var listNodesCapability = defineCapability({
5203
5173
  });
5204
5174
  }
5205
5175
  });
5206
- var nodeExecInput = z25.object({
5207
- node_id: z25.string().min(1).refine((value) => value === value.trim(), {
5176
+ var nodeSshInput = z24.object({
5177
+ node_id: z24.string().min(1).refine((value) => value === value.trim(), {
5208
5178
  message: "node_id must be an exact canonical node ID without surrounding whitespace"
5209
5179
  }),
5210
- command: z25.string().min(1),
5211
- timeout_seconds: z25.number().int().min(1).max(900)
5180
+ command: z24.string().min(1),
5181
+ timeout_seconds: z24.number().int().min(1).max(900)
5212
5182
  });
5213
- var nodeExecCapability = defineCapability({
5214
- id: "node.exec",
5183
+ var nodeSshCapability = defineCapability({
5184
+ id: "node.ssh",
5215
5185
  domain: "fleet",
5216
5186
  roles: ["admin"],
5217
- description: "Admin-only. Run one unrestricted command over orchestrator SSH. Pass node_id for an enrolled node (uses its stored admin key), or host + private_key (+ optional username, default root, and port, default 22) for any host, including one not enrolled yet. Always pass timeout_seconds. Not an interactive shell. On NVIDIA hosts use nvidia-smi; on AMD Instinct use amd-smi. Runs on the tool call \u2014 no confirm, no y/N.",
5187
+ description: "Admin-only. SSH into a node and run one unrestricted command from the orchestrator. Pass node_id for an enrolled node (uses its stored admin key), or host + private_key (+ optional username, default root, and port, default 22) for any host, including one not enrolled yet. Always pass timeout_seconds. Not an interactive shell; staff open one locally with ornn admin ssh <node-id>. On NVIDIA hosts use nvidia-smi; on AMD Instinct use amd-smi. Runs on the tool call \u2014 no confirm, no y/N.",
5218
5188
  mutation: "immediate",
5219
5189
  cli: {
5220
- command: ["admin", "nodes", "exec"],
5190
+ command: ["admin", "ssh"],
5221
5191
  vnext: {
5222
5192
  audience: "admin",
5223
- category: "resource",
5224
- outcome: "Execute exact command bytes on one exact node.",
5225
- human: "ornn admin nodes exec <node-id> --command COMMAND --timeout DURATION",
5193
+ category: "journey",
5194
+ arguments: "semantic",
5195
+ outcome: "Open an SSH session to a node that trusts the SSH CA with a 15-minute certificate, or run one exact command on one exact node.",
5196
+ human: "ornn admin ssh <node-id> [--command COMMAND --timeout DURATION]",
5226
5197
  automation: "Unavailable in machine and redirected modes; use an eligible human terminal.",
5227
5198
  acceptedReferences: ["canonical node ID"],
5228
5199
  review: "Exact node, lifecycle, reachability, command bytes, and timeout."
5229
5200
  },
5230
5201
  execute: async (ctx, input) => {
5231
- const parsed = nodeExecInput.parse(input);
5202
+ const parsed = nodeSshInput.parse(input);
5232
5203
  if (!ctx.confirmed)
5233
- return { action: "node.exec", payload: parsed };
5234
- return nodeExecCapability.execute(ctx, parsed);
5204
+ return { action: "node.ssh", payload: parsed };
5205
+ return nodeSshCapability.execute(ctx, parsed);
5235
5206
  }
5236
5207
  },
5237
- mcp: { input: nodeExecRemoteInput },
5208
+ mcp: { input: nodeSshRemoteInput },
5238
5209
  slack: {
5239
5210
  parameters: {
5240
5211
  type: "object",
@@ -5249,9 +5220,9 @@ var nodeExecCapability = defineCapability({
5249
5220
  required: ["node_id", "command", "timeout_seconds"]
5250
5221
  }
5251
5222
  },
5252
- input: nodeExecInput,
5223
+ input: nodeSshInput,
5253
5224
  execute: async (ctx, input) => {
5254
- const { yes: _yes, ...parsed } = nodeExecRemoteInput.parse(input);
5225
+ const { yes: _yes, ...parsed } = nodeSshRemoteInput.parse(input);
5255
5226
  return runRemote(ctx.fetch, {
5256
5227
  ...parsed,
5257
5228
  node_id: parsed.node_id?.trim(),
@@ -5306,13 +5277,13 @@ var fleetCapabilities = [
5306
5277
  listFacilitiesCapability,
5307
5278
  facilityShowCapability,
5308
5279
  listNodesCapability,
5309
- nodeExecCapability,
5280
+ nodeSshCapability,
5310
5281
  nodeTerminateCapability
5311
5282
  ];
5312
5283
 
5313
5284
  // ../../packages/capabilities/dist/capabilities/metrics.js
5314
- import { z as z26 } from "zod";
5315
- var metricInput = z26.object({ reservationId: z26.string(), machineId: z26.string().optional() });
5285
+ import { z as z25 } from "zod";
5286
+ var metricInput = z25.object({ reservationId: z25.string(), machineId: z25.string().optional() });
5316
5287
  async function nodeIds(context, input) {
5317
5288
  if (input.machineId)
5318
5289
  return [input.machineId];
@@ -5347,9 +5318,9 @@ var metricsHistoryCapability = defineCapability({
5347
5318
  mutation: "read",
5348
5319
  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.",
5349
5320
  input: metricInput.extend({
5350
- start: z26.string().optional(),
5351
- end: z26.string().optional(),
5352
- maxPoints: z26.number().int().positive().optional()
5321
+ start: z25.string().optional(),
5322
+ end: z25.string().optional(),
5323
+ maxPoints: z25.number().int().positive().optional()
5353
5324
  }),
5354
5325
  execute: async (context, input) => {
5355
5326
  const [nodeId3] = await nodeIds(context, input);
@@ -5364,18 +5335,18 @@ var metricsHistoryCapability = defineCapability({
5364
5335
  var metricsCapabilities = [metricsSnapshotCapability, metricsHistoryCapability];
5365
5336
 
5366
5337
  // ../../packages/capabilities/dist/capabilities/mounts.js
5367
- import { z as z27 } from "zod";
5368
- var mountCliInput = z27.object({
5369
- $positionals: z27.array(z27.string()).default([]),
5370
- access: z27.string().optional(),
5371
- cursor: z27.string().optional(),
5372
- idempotencyKey: z27.string().optional(),
5373
- limit: z27.union([z27.string(), z27.number()]).optional(),
5374
- noWait: z27.boolean().optional(),
5375
- timeout: z27.string().optional(),
5376
- volume: z27.string().optional(),
5377
- wait: z27.boolean().optional(),
5378
- yes: z27.boolean().optional()
5338
+ import { z as z26 } from "zod";
5339
+ var mountCliInput = z26.object({
5340
+ $positionals: z26.array(z26.string()).default([]),
5341
+ access: z26.string().optional(),
5342
+ cursor: z26.string().optional(),
5343
+ idempotencyKey: z26.string().optional(),
5344
+ limit: z26.union([z26.string(), z26.number()]).optional(),
5345
+ noWait: z26.boolean().optional(),
5346
+ timeout: z26.string().optional(),
5347
+ volume: z26.string().optional(),
5348
+ wait: z26.boolean().optional(),
5349
+ yes: z26.boolean().optional()
5379
5350
  }).strict();
5380
5351
  function executeMount(command) {
5381
5352
  return (context, input) => {
@@ -5389,11 +5360,11 @@ function executeMount(command) {
5389
5360
  function mutationOptions(idempotencyKey) {
5390
5361
  return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
5391
5362
  }
5392
- var reservationInput = z27.object({ reservationId: z27.string() });
5393
- var reservationWrite2 = reservationInput.extend({ confirm: z27.boolean().optional() });
5363
+ var reservationInput = z26.object({ reservationId: z26.string() });
5364
+ var reservationWrite2 = reservationInput.extend({ confirm: z26.boolean().optional() });
5394
5365
  var attachInput = reservationWrite2.extend({
5395
- driveId: z27.string(),
5396
- readOnly: z27.boolean().optional()
5366
+ driveId: z26.string(),
5367
+ readOnly: z26.boolean().optional()
5397
5368
  });
5398
5369
  var volumeMountCandidatesCapability = defineCapability({
5399
5370
  id: "storage.volume-mounts.candidates",
@@ -5401,7 +5372,7 @@ var volumeMountCandidatesCapability = defineCapability({
5401
5372
  roles: ["user"],
5402
5373
  description: "List reservations that can receive a storage deploy, grouped the same way as the console picker.",
5403
5374
  mutation: "read",
5404
- input: z27.object({}),
5375
+ input: z26.object({}),
5405
5376
  mcp: { name: "storage_targets" },
5406
5377
  cli: {
5407
5378
  command: ["volume-mounts", "candidates"],
@@ -5456,9 +5427,9 @@ var volumeMountAttachCapability = defineCapability({
5456
5427
  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.",
5457
5428
  mutation: "preview-confirm",
5458
5429
  input: attachInput.extend({
5459
- mountPath: z27.string().optional(),
5460
- mountMode: z27.literal("fuse").optional(),
5461
- idempotencyKey: z27.string().optional()
5430
+ mountPath: z26.string().optional(),
5431
+ mountMode: z26.literal("fuse").optional(),
5432
+ idempotencyKey: z26.string().optional()
5462
5433
  }),
5463
5434
  mcp: { name: "storage_deploy", input: attachInput },
5464
5435
  cli: {
@@ -5495,7 +5466,7 @@ var volumeMountDetachCapability = defineCapability({
5495
5466
  roles: ["user"],
5496
5467
  description: "Detach the reservation storage attachment (after unmount) so the volume can be deleted.",
5497
5468
  mutation: "preview-confirm",
5498
- input: reservationWrite2.extend({ idempotencyKey: z27.string().optional() }),
5469
+ input: reservationWrite2.extend({ idempotencyKey: z26.string().optional() }),
5499
5470
  mcp: { name: "storage_undeploy", input: reservationWrite2 },
5500
5471
  cli: {
5501
5472
  command: ["volume-mounts", "detach"],
@@ -5551,13 +5522,13 @@ var mountCapabilities = [
5551
5522
  ];
5552
5523
 
5553
5524
  // ../../packages/capabilities/dist/capabilities/identity.js
5554
- import { z as z28 } from "zod";
5555
- var emptyInput3 = z28.object({});
5556
- var loginInput = z28.object({
5557
- authBase: z28.string().min(1).optional(),
5558
- noBrowser: z28.boolean().optional(),
5559
- pollInterval: z28.number().positive().optional(),
5560
- timeout: z28.number().positive().optional()
5525
+ import { z as z27 } from "zod";
5526
+ var emptyInput3 = z27.object({});
5527
+ var loginInput = z27.object({
5528
+ authBase: z27.string().min(1).optional(),
5529
+ noBrowser: z27.boolean().optional(),
5530
+ pollInterval: z27.number().positive().optional(),
5531
+ timeout: z27.number().positive().optional()
5561
5532
  });
5562
5533
  function executeSession(context, command, input) {
5563
5534
  if (!context.cli?.session) {
@@ -5676,50 +5647,50 @@ var identityCapabilities = [
5676
5647
  ];
5677
5648
 
5678
5649
  // ../../packages/capabilities/dist/capabilities/listings.js
5679
- import { z as z29 } from "zod";
5680
- var listingCreateInput = z29.object({
5681
- organizationId: z29.string().optional(),
5682
- organization_id: z29.string().optional(),
5683
- facilityId: z29.string().optional(),
5684
- facility_id: z29.string().optional(),
5685
- kind: z29.enum(["gpu", "cpu", "node", "link"]).optional(),
5686
- gpu: z29.string().optional(),
5687
- cpu: z29.string().optional(),
5688
- site: z29.string().optional(),
5689
- fabric: z29.string().optional(),
5690
- min_nodes: z29.number().int().optional(),
5691
- starts_after: z29.string().optional(),
5692
- starts_before: z29.string().optional(),
5693
- ends_after: z29.string().optional(),
5694
- ends_before: z29.string().optional(),
5695
- gpu_type: z29.string().optional(),
5696
- node_model: z29.string().optional(),
5697
- fabric_type: z29.string().optional(),
5698
- node_count: z29.number().int().optional(),
5699
- gpus_per_node: z29.number().int().optional(),
5700
- cores_per_node: z29.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".'),
5701
- site_nickname: z29.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."),
5702
- site_supplier: z29.string().optional(),
5703
- ram: z29.string().optional(),
5704
- storage: z29.string().optional(),
5705
- internet: z29.string().optional(),
5706
- network_hardware: z29.string().optional(),
5707
- available_start_at: z29.string().optional().describe("Start of the availability window. YYYY-MM-DD or RFC3339."),
5708
- available_end_at: z29.string().optional().describe("End of the availability window. YYYY-MM-DD or RFC3339."),
5709
- available_from: z29.string().optional().describe("Alias for available_start_at."),
5710
- available_to: z29.string().optional().describe("Alias for available_end_at."),
5711
- buy_now_price_per_gpu_hour: z29.number().optional().describe("Price buyers pay, USD per GPU-hour (per vCPU-hour on CPU listings)."),
5712
- deposit_percent: z29.number().optional(),
5713
- down_payment_cents: z29.number().int().nonnegative().optional(),
5714
- access_mode: z29.enum(["bare-metal", "virtual-machine"]).optional(),
5715
- state: z29.enum(["available", "draft"]).optional(),
5716
- price_omitted: z29.boolean().optional(),
5717
- announce: z29.boolean().optional(),
5718
- text: z29.string().optional(),
5719
- confirm: z29.boolean().optional(),
5720
- idempotencyKey: z29.string().min(1).max(200).optional()
5721
- });
5722
- var catalogTermsInput = z29.object({ kind: z29.enum(["gpu", "cpu", "node", "link"]).optional() });
5650
+ import { z as z28 } from "zod";
5651
+ var listingCreateInput = z28.object({
5652
+ organizationId: z28.string().optional(),
5653
+ organization_id: z28.string().optional(),
5654
+ facilityId: z28.string().optional(),
5655
+ facility_id: z28.string().optional(),
5656
+ kind: z28.enum(["gpu", "cpu", "node", "link"]).optional(),
5657
+ gpu: z28.string().optional(),
5658
+ cpu: z28.string().optional(),
5659
+ site: z28.string().optional(),
5660
+ fabric: z28.string().optional(),
5661
+ min_nodes: z28.number().int().optional(),
5662
+ starts_after: z28.string().optional(),
5663
+ starts_before: z28.string().optional(),
5664
+ ends_after: z28.string().optional(),
5665
+ ends_before: z28.string().optional(),
5666
+ gpu_type: z28.string().optional(),
5667
+ node_model: z28.string().optional(),
5668
+ fabric_type: z28.string().optional(),
5669
+ node_count: z28.number().int().optional(),
5670
+ gpus_per_node: z28.number().int().optional(),
5671
+ cores_per_node: z28.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".'),
5672
+ site_nickname: z28.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."),
5673
+ site_supplier: z28.string().optional(),
5674
+ ram: z28.string().optional(),
5675
+ storage: z28.string().optional(),
5676
+ internet: z28.string().optional(),
5677
+ network_hardware: z28.string().optional(),
5678
+ available_start_at: z28.string().optional().describe("Start of the availability window. YYYY-MM-DD or RFC3339."),
5679
+ available_end_at: z28.string().optional().describe("End of the availability window. YYYY-MM-DD or RFC3339."),
5680
+ available_from: z28.string().optional().describe("Alias for available_start_at."),
5681
+ available_to: z28.string().optional().describe("Alias for available_end_at."),
5682
+ buy_now_price_per_gpu_hour: z28.number().optional().describe("Price buyers pay, USD per GPU-hour (per vCPU-hour on CPU listings)."),
5683
+ deposit_percent: z28.number().optional(),
5684
+ down_payment_cents: z28.number().int().nonnegative().optional(),
5685
+ access_mode: z28.enum(["bare-metal", "virtual-machine"]).optional(),
5686
+ state: z28.enum(["available", "draft"]).optional(),
5687
+ price_omitted: z28.boolean().optional(),
5688
+ announce: z28.boolean().optional(),
5689
+ text: z28.string().optional(),
5690
+ confirm: z28.boolean().optional(),
5691
+ idempotencyKey: z28.string().min(1).max(200).optional()
5692
+ });
5693
+ var catalogTermsInput = z28.object({ kind: z28.enum(["gpu", "cpu", "node", "link"]).optional() });
5723
5694
  var listCatalogTermsCapability = defineCapability({
5724
5695
  id: "listings.catalog_terms",
5725
5696
  mcp: false,
@@ -6039,7 +6010,7 @@ function nodeLogsSubscribePath(id, stream) {
6039
6010
  }
6040
6011
 
6041
6012
  // ../../packages/capabilities/dist/capabilities/observability.js
6042
- import { z as z30 } from "zod";
6013
+ import { z as z29 } from "zod";
6043
6014
  function tailPath(path3, input) {
6044
6015
  const query3 = new URLSearchParams({
6045
6016
  duration: String(input.duration ?? 20),
@@ -6047,30 +6018,30 @@ function tailPath(path3, input) {
6047
6018
  });
6048
6019
  return `${path3}${path3.includes("?") ? "&" : "?"}${query3}`;
6049
6020
  }
6050
- var latestInput = z30.object({
6051
- node_id: z30.string().min(1),
6052
- start: z30.string().optional(),
6053
- end: z30.string().optional(),
6054
- span: z30.string().optional(),
6055
- max_points: z30.number().int().min(1).max(500).optional(),
6056
- metrics: z30.string().optional()
6057
- });
6058
- var logsLatestInput = z30.object({
6059
- node_id: z30.string().min(1),
6060
- stream: z30.enum(["serial", "kernel"]).default("kernel"),
6061
- count: z30.number().int().min(1).max(1e3).optional(),
6062
- before: z30.string().optional(),
6063
- start: z30.string().optional(),
6064
- cursor: z30.string().optional()
6065
- });
6066
- var tailInput = z30.object({
6067
- node_id: z30.string().min(1),
6068
- duration: z30.number().int().min(1).max(120).optional(),
6069
- max_events: z30.number().int().min(1).max(200).optional(),
6070
- fields: z30.string().optional()
6021
+ var latestInput = z29.object({
6022
+ node_id: z29.string().min(1),
6023
+ start: z29.string().optional(),
6024
+ end: z29.string().optional(),
6025
+ span: z29.string().optional(),
6026
+ max_points: z29.number().int().min(1).max(500).optional(),
6027
+ metrics: z29.string().optional()
6028
+ });
6029
+ var logsLatestInput = z29.object({
6030
+ node_id: z29.string().min(1),
6031
+ stream: z29.enum(["serial", "kernel"]).default("kernel"),
6032
+ count: z29.number().int().min(1).max(1e3).optional(),
6033
+ before: z29.string().optional(),
6034
+ start: z29.string().optional(),
6035
+ cursor: z29.string().optional()
6036
+ });
6037
+ var tailInput = z29.object({
6038
+ node_id: z29.string().min(1),
6039
+ duration: z29.number().int().min(1).max(120).optional(),
6040
+ max_events: z29.number().int().min(1).max(200).optional(),
6041
+ fields: z29.string().optional()
6071
6042
  });
6072
6043
  var logsTailInput = tailInput.extend({
6073
- stream: z30.enum(["serial", "kernel"]).default("kernel")
6044
+ stream: z29.enum(["serial", "kernel"]).default("kernel")
6074
6045
  });
6075
6046
  function expandSpan(span, start, end) {
6076
6047
  if (start?.trim() && end?.trim()) {
@@ -6151,7 +6122,7 @@ var telemetryLatestBatchCapability = defineCapability({
6151
6122
  required: ["node_ids"]
6152
6123
  }
6153
6124
  },
6154
- input: z30.object({ node_ids: z30.array(z30.uuid()).min(1).max(100) }),
6125
+ input: z29.object({ node_ids: z29.array(z29.uuid()).min(1).max(100) }),
6155
6126
  execute: async (ctx, input) => getLatestTelemetry(ctx.fetch, { node_ids: input.node_ids })
6156
6127
  });
6157
6128
  var logsLatestCapability = defineCapability({
@@ -6223,9 +6194,9 @@ var telemetrySnapshotCapability = defineCapability({
6223
6194
  required: ["node_id"]
6224
6195
  }
6225
6196
  },
6226
- input: z30.object({
6227
- node_id: z30.string().min(1),
6228
- limit: z30.number().int().min(1).max(1e3).optional()
6197
+ input: z29.object({
6198
+ node_id: z29.string().min(1),
6199
+ limit: z29.number().int().min(1).max(1e3).optional()
6229
6200
  }),
6230
6201
  execute: async (ctx, input) => getNodeLatestTelemetry(ctx.fetch, input.node_id, { limit: input.limit ?? 1 })
6231
6202
  });
@@ -6292,12 +6263,12 @@ var observabilityCapabilities = [
6292
6263
  ];
6293
6264
 
6294
6265
  // ../../packages/capabilities/dist/capabilities/organization-invites.js
6295
- import { z as z31 } from "zod";
6296
- var organizationInviteInput = z31.object({
6297
- organization_id: z31.uuid().optional(),
6298
- email: z31.string().trim().toLowerCase().pipe(z31.email()),
6299
- supplier: z31.boolean().optional(),
6300
- send_email: z31.boolean().optional().describe("Defaults to true for an existing organization; false returns a link. Signup invites cannot be emailed.")
6266
+ import { z as z30 } from "zod";
6267
+ var organizationInviteInput = z30.object({
6268
+ organization_id: z30.uuid().optional(),
6269
+ email: z30.string().trim().toLowerCase().pipe(z30.email()),
6270
+ supplier: z30.boolean().optional(),
6271
+ send_email: z30.boolean().optional().describe("Defaults to true for an existing organization; false returns a link. Signup invites cannot be emailed.")
6301
6272
  }).superRefine((input, ctx) => {
6302
6273
  if (!input.organization_id && input.send_email === true) {
6303
6274
  ctx.addIssue({
@@ -6359,33 +6330,33 @@ var organizationInviteCapability = defineCapability({
6359
6330
  });
6360
6331
 
6361
6332
  // ../../packages/capabilities/dist/capabilities/networks.js
6362
- import { z as z32 } from "zod";
6333
+ import { z as z31 } from "zod";
6363
6334
  var globalInput = {
6364
- $positionals: z32.array(z32.string()).optional(),
6365
- guided: z32.boolean().optional(),
6366
- idempotencyKey: z32.string().optional(),
6367
- noBrowser: z32.boolean().optional(),
6368
- noWait: z32.boolean().optional(),
6369
- overwrite: z32.boolean().optional(),
6370
- print: z32.boolean().optional(),
6371
- wait: z32.boolean().optional(),
6372
- yes: z32.boolean().optional()
6335
+ $positionals: z31.array(z31.string()).optional(),
6336
+ guided: z31.boolean().optional(),
6337
+ idempotencyKey: z31.string().optional(),
6338
+ noBrowser: z31.boolean().optional(),
6339
+ noWait: z31.boolean().optional(),
6340
+ overwrite: z31.boolean().optional(),
6341
+ print: z31.boolean().optional(),
6342
+ wait: z31.boolean().optional(),
6343
+ yes: z31.boolean().optional()
6373
6344
  };
6374
- var noOptionsInput = z32.object(globalInput).strict();
6375
- var connectInput2 = z32.object({
6345
+ var noOptionsInput = z31.object(globalInput).strict();
6346
+ var connectInput2 = z31.object({
6376
6347
  ...globalInput,
6377
- identityFile: z32.string().optional(),
6378
- output: z32.string().optional(),
6379
- user: z32.string().optional()
6348
+ identityFile: z31.string().optional(),
6349
+ output: z31.string().optional(),
6350
+ user: z31.string().optional()
6380
6351
  }).strict();
6381
- var listInput = z32.object({ ...globalInput, cursor: z32.string().optional(), limit: z32.string().optional() }).strict();
6382
- var networkCreateInput = z32.object({ ...globalInput, cidr: z32.string().optional(), name: z32.string().optional() }).strict();
6383
- var networkUpdateInput = z32.object({ ...globalInput, name: z32.string().optional() }).strict();
6384
- var vpnConfigureInput = z32.object({
6352
+ var listInput = z31.object({ ...globalInput, cursor: z31.string().optional(), limit: z31.string().optional() }).strict();
6353
+ var networkCreateInput = z31.object({ ...globalInput, cidr: z31.string().optional(), name: z31.string().optional() }).strict();
6354
+ var networkUpdateInput = z31.object({ ...globalInput, name: z31.string().optional() }).strict();
6355
+ var vpnConfigureInput = z31.object({
6385
6356
  ...globalInput,
6386
- name: z32.string().optional(),
6387
- output: z32.string().optional(),
6388
- privateKey: z32.string().optional()
6357
+ name: z31.string().optional(),
6358
+ output: z31.string().optional(),
6359
+ privateKey: z31.string().optional()
6389
6360
  }).strict();
6390
6361
  function executeNetwork(command) {
6391
6362
  return (context, input) => {
@@ -6398,36 +6369,36 @@ function executeNetwork(command) {
6398
6369
  function mutationOptions2(idempotencyKey) {
6399
6370
  return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
6400
6371
  }
6401
- var networkIdInput = z32.object({ networkId: z32.string() });
6402
- var networkCreateFields = z32.object({
6403
- name: z32.string(),
6404
- cidr: z32.string().optional(),
6405
- description: z32.string().optional(),
6406
- confirm: z32.boolean().optional()
6407
- });
6408
- var networkUpdateFields = z32.object({
6409
- networkId: z32.string(),
6410
- name: z32.string().optional(),
6411
- description: z32.string().optional(),
6412
- clearDescription: z32.boolean().optional(),
6413
- confirm: z32.boolean().optional()
6372
+ var networkIdInput = z31.object({ networkId: z31.string() });
6373
+ var networkCreateFields = z31.object({
6374
+ name: z31.string(),
6375
+ cidr: z31.string().optional(),
6376
+ description: z31.string().optional(),
6377
+ confirm: z31.boolean().optional()
6378
+ });
6379
+ var networkUpdateFields = z31.object({
6380
+ networkId: z31.string(),
6381
+ name: z31.string().optional(),
6382
+ description: z31.string().optional(),
6383
+ clearDescription: z31.boolean().optional(),
6384
+ confirm: z31.boolean().optional()
6414
6385
  }).refine((input) => !(input.clearDescription && input.description !== void 0), {
6415
6386
  message: "Use either description or clearDescription, not both."
6416
6387
  }).refine((input) => input.name !== void 0 || input.description !== void 0 || input.clearDescription, { message: "Provide name, description, or clearDescription." });
6417
- var networkDeleteInput = networkIdInput.extend({ confirm: z32.boolean().optional() });
6418
- var vpnPeerCreateInput = z32.object({
6419
- publicKey: z32.string(),
6420
- label: z32.string().optional(),
6421
- confirm: z32.boolean().optional()
6422
- });
6423
- var vpnPeerDeleteInput = z32.object({ peerId: z32.string(), confirm: z32.boolean().optional() });
6424
- var reservationInput2 = { reservationId: z32.string() };
6388
+ var networkDeleteInput = networkIdInput.extend({ confirm: z31.boolean().optional() });
6389
+ var vpnPeerCreateInput = z31.object({
6390
+ publicKey: z31.string(),
6391
+ label: z31.string().optional(),
6392
+ confirm: z31.boolean().optional()
6393
+ });
6394
+ var vpnPeerDeleteInput = z31.object({ peerId: z31.string(), confirm: z31.boolean().optional() });
6395
+ var reservationInput2 = { reservationId: z31.string() };
6425
6396
  var privateNetworkListCapability = defineCapability({
6426
6397
  id: "networks.list",
6427
6398
  domain: "networks",
6428
6399
  roles: ["user"],
6429
6400
  mutation: "read",
6430
- input: z32.object({}),
6401
+ input: z31.object({}),
6431
6402
  description: "List this tenant's private networks.",
6432
6403
  mcp: { name: "networks_list" },
6433
6404
  cli: {
@@ -6478,7 +6449,7 @@ var privateNetworkCreateCapability = defineCapability({
6478
6449
  domain: "networks",
6479
6450
  roles: ["user"],
6480
6451
  mutation: "preview-confirm",
6481
- input: networkCreateFields.extend({ idempotencyKey: z32.string().optional() }),
6452
+ input: networkCreateFields.extend({ idempotencyKey: z31.string().optional() }),
6482
6453
  description: "Create a private network.",
6483
6454
  mcp: { name: "networks_create", input: networkCreateFields },
6484
6455
  cli: {
@@ -6505,7 +6476,7 @@ var privateNetworkUpdateCapability = defineCapability({
6505
6476
  domain: "networks",
6506
6477
  roles: ["user"],
6507
6478
  mutation: "preview-confirm",
6508
- input: networkUpdateFields.safeExtend({ idempotencyKey: z32.string().optional() }),
6479
+ input: networkUpdateFields.safeExtend({ idempotencyKey: z31.string().optional() }),
6509
6480
  description: "Update a private network's name or description. Pass clearDescription: true to null out the description instead of setting it.",
6510
6481
  mcp: { name: "networks_update", input: networkUpdateFields },
6511
6482
  cli: {
@@ -6535,7 +6506,7 @@ var privateNetworkDeleteCapability = defineCapability({
6535
6506
  domain: "networks",
6536
6507
  roles: ["user"],
6537
6508
  mutation: "preview-confirm",
6538
- input: networkDeleteInput.extend({ idempotencyKey: z32.string().optional() }),
6509
+ input: networkDeleteInput.extend({ idempotencyKey: z31.string().optional() }),
6539
6510
  description: "Delete a private network.",
6540
6511
  mcp: { name: "networks_delete", input: networkDeleteInput },
6541
6512
  cli: {
@@ -6565,9 +6536,9 @@ var vpnConnectionListCapability = defineCapability({
6565
6536
  domain: "vpn",
6566
6537
  roles: ["user"],
6567
6538
  mutation: "read",
6568
- input: z32.object({}),
6539
+ input: z31.object({}),
6569
6540
  description: "List WireGuard VPN peers registered on a reservation.",
6570
- mcp: { name: "vpn_peers_list", input: z32.object(reservationInput2) },
6541
+ mcp: { name: "vpn_peers_list", input: z31.object(reservationInput2) },
6571
6542
  cli: {
6572
6543
  command: ["vpn-connections", "list"],
6573
6544
  input: listInput,
@@ -6591,11 +6562,11 @@ var vpnConnectionConfigureCapability = defineCapability({
6591
6562
  domain: "vpn",
6592
6563
  roles: ["user"],
6593
6564
  mutation: "preview-confirm",
6594
- input: vpnPeerCreateInput.extend({ idempotencyKey: z32.string().optional() }),
6565
+ input: vpnPeerCreateInput.extend({ idempotencyKey: z31.string().optional() }),
6595
6566
  description: "Register a WireGuard VPN peer public key on a reservation.",
6596
6567
  mcp: {
6597
6568
  name: "vpn_peers_create",
6598
- input: z32.object({ ...reservationInput2, ...vpnPeerCreateInput.shape })
6569
+ input: z31.object({ ...reservationInput2, ...vpnPeerCreateInput.shape })
6599
6570
  },
6600
6571
  cli: {
6601
6572
  command: ["vpn-connections", "configure"],
@@ -6622,11 +6593,11 @@ var vpnConnectionDisconnectCapability = defineCapability({
6622
6593
  domain: "vpn",
6623
6594
  roles: ["user"],
6624
6595
  mutation: "preview-confirm",
6625
- input: vpnPeerDeleteInput.extend({ idempotencyKey: z32.string().optional() }),
6596
+ input: vpnPeerDeleteInput.extend({ idempotencyKey: z31.string().optional() }),
6626
6597
  description: "Revoke a WireGuard VPN peer from a reservation.",
6627
6598
  mcp: {
6628
6599
  name: "vpn_peers_delete",
6629
- input: z32.object({ ...reservationInput2, ...vpnPeerDeleteInput.shape })
6600
+ input: z31.object({ ...reservationInput2, ...vpnPeerDeleteInput.shape })
6630
6601
  },
6631
6602
  cli: {
6632
6603
  command: ["vpn-connections", "disconnect"],
@@ -6697,20 +6668,20 @@ var networkCapabilities = [
6697
6668
  ];
6698
6669
 
6699
6670
  // ../../packages/capabilities/dist/capabilities/registry.js
6700
- import { z as z33 } from "zod";
6671
+ import { z as z32 } from "zod";
6701
6672
  var globalInput2 = {
6702
- $positionals: z33.array(z33.string()).default([]),
6703
- yes: z33.boolean().optional()
6673
+ $positionals: z32.array(z32.string()).default([]),
6674
+ yes: z32.boolean().optional()
6704
6675
  };
6705
- var emptyInput4 = z33.object(globalInput2).strict();
6706
- var repositoryInput = z33.object({
6676
+ var emptyInput4 = z32.object(globalInput2).strict();
6677
+ var repositoryInput = z32.object({
6707
6678
  ...globalInput2,
6708
- repository: z33.string().optional().describe("Repository name, with or without your organization's namespace.")
6679
+ repository: z32.string().optional().describe("Repository name, with or without your organization's namespace.")
6709
6680
  }).strict();
6710
- var tagInput = z33.object({
6681
+ var tagInput = z32.object({
6711
6682
  ...globalInput2,
6712
- repository: z33.string().optional().describe("Repository name, with or without your organization's namespace."),
6713
- tag: z33.string().optional().describe("Tag to delete, such as v1.")
6683
+ repository: z32.string().optional().describe("Repository name, with or without your organization's namespace."),
6684
+ tag: z32.string().optional().describe("Tag to delete, such as v1.")
6714
6685
  }).strict();
6715
6686
  function cliInteraction(context) {
6716
6687
  return context.cli?.interaction;
@@ -7011,14 +6982,14 @@ var registryCapabilities = [
7011
6982
  ];
7012
6983
 
7013
6984
  // ../../packages/capabilities/dist/capabilities/reservation-list.js
7014
- import { z as z34 } from "zod";
7015
- var reservationListInput = z34.object({
7016
- customerId: z34.string().uuid().optional(),
7017
- listingId: z34.string().uuid().optional(),
7018
- listingTermId: z34.string().uuid().optional(),
7019
- status: z34.enum(["confirmed", "active", "completed", "cancelled"]).optional(),
7020
- cursor: z34.string().optional(),
7021
- limit: z34.number().int().min(1).max(100).optional()
6985
+ import { z as z33 } from "zod";
6986
+ var reservationListInput = z33.object({
6987
+ customerId: z33.string().uuid().optional(),
6988
+ listingId: z33.string().uuid().optional(),
6989
+ listingTermId: z33.string().uuid().optional(),
6990
+ status: z33.enum(["confirmed", "active", "completed", "cancelled"]).optional(),
6991
+ cursor: z33.string().optional(),
6992
+ limit: z33.number().int().min(1).max(100).optional()
7022
6993
  });
7023
6994
  var reservationListCapability = defineCapability({
7024
6995
  id: "reservation.list",
@@ -7068,20 +7039,20 @@ var reservationListCapability = defineCapability({
7068
7039
  });
7069
7040
 
7070
7041
  // ../../packages/capabilities/dist/capabilities/volumes.js
7071
- import { z as z35 } from "zod";
7072
- var storageCliInput = z35.object({
7073
- $positionals: z35.array(z35.string()).optional(),
7074
- contentType: z35.string().optional(),
7075
- cursor: z35.string().optional(),
7076
- idempotencyKey: z35.string().optional(),
7077
- limit: z35.union([z35.string(), z35.number()]).optional(),
7078
- name: z35.string().optional(),
7079
- output: z35.string().optional(),
7080
- overwrite: z35.boolean().optional(),
7081
- path: z35.string().optional(),
7082
- prefix: z35.string().optional(),
7083
- source: z35.string().optional(),
7084
- yes: z35.boolean().optional()
7042
+ import { z as z34 } from "zod";
7043
+ var storageCliInput = z34.object({
7044
+ $positionals: z34.array(z34.string()).optional(),
7045
+ contentType: z34.string().optional(),
7046
+ cursor: z34.string().optional(),
7047
+ idempotencyKey: z34.string().optional(),
7048
+ limit: z34.union([z34.string(), z34.number()]).optional(),
7049
+ name: z34.string().optional(),
7050
+ output: z34.string().optional(),
7051
+ overwrite: z34.boolean().optional(),
7052
+ path: z34.string().optional(),
7053
+ prefix: z34.string().optional(),
7054
+ source: z34.string().optional(),
7055
+ yes: z34.boolean().optional()
7085
7056
  }).strict();
7086
7057
  function storageExecutor(context) {
7087
7058
  const interaction = context.cli?.interaction;
@@ -7117,7 +7088,7 @@ function storageCapability({ id, command, description, mutation, outcome, human,
7117
7088
  execute: async (context, input) => storageExecutor(context)(id, input)
7118
7089
  });
7119
7090
  }
7120
- var filesListInput = z35.object({ driveId: z35.string(), prefix: z35.string().optional() });
7091
+ var filesListInput = z34.object({ driveId: z34.string(), prefix: z34.string().optional() });
7121
7092
  async function* listFiles(context, input) {
7122
7093
  const prefix = input.prefix ?? "";
7123
7094
  const folder = prefix.includes("/") ? prefix.slice(0, prefix.lastIndexOf("/")) : "";
@@ -7160,16 +7131,16 @@ var volumeFilesListCapability = defineCapability({
7160
7131
  }
7161
7132
  }
7162
7133
  });
7163
- var volumePageInput = z35.object({
7164
- limit: z35.number().int().min(1).max(100).optional(),
7165
- cursor: z35.string().optional()
7134
+ var volumePageInput = z34.object({
7135
+ limit: z34.number().int().min(1).max(100).optional(),
7136
+ cursor: z34.string().optional()
7166
7137
  });
7167
- var driveInput = z35.object({ driveId: z35.string() });
7168
- var driveWrite = driveInput.extend({ confirm: z35.boolean().optional() });
7169
- var volumeCreateInput = z35.object({
7170
- name: z35.string(),
7171
- sourceDriveId: z35.string().optional(),
7172
- confirm: z35.boolean().optional()
7138
+ var driveInput = z34.object({ driveId: z34.string() });
7139
+ var driveWrite = driveInput.extend({ confirm: z34.boolean().optional() });
7140
+ var volumeCreateInput = z34.object({
7141
+ name: z34.string(),
7142
+ sourceDriveId: z34.string().optional(),
7143
+ confirm: z34.boolean().optional()
7173
7144
  });
7174
7145
  var volumeListCapability = defineCapability({
7175
7146
  id: "storage.volumes.list",
@@ -7177,7 +7148,7 @@ var volumeListCapability = defineCapability({
7177
7148
  roles: ["user"],
7178
7149
  description: "List a page of storage volumes, newest updated first. Pass next_cursor as cursor to continue.",
7179
7150
  mutation: "read",
7180
- input: volumePageInput.extend({ scope: z35.enum(["all", "managed"]).optional() }),
7151
+ input: volumePageInput.extend({ scope: z34.enum(["all", "managed"]).optional() }),
7181
7152
  mcp: { name: "storage_volumes_list", input: volumePageInput },
7182
7153
  execute: (context, input) => listDrives(context.fetch, {
7183
7154
  limit: input.limit ?? 25,
@@ -7230,7 +7201,7 @@ var volumeCreateCapability = defineCapability({
7230
7201
  roles: ["user"],
7231
7202
  description: "Create a storage volume (drive), optionally cloned from an existing source drive.",
7232
7203
  mutation: "preview-confirm",
7233
- input: volumeCreateInput.extend({ idempotencyKey: z35.string().optional() }),
7204
+ input: volumeCreateInput.extend({ idempotencyKey: z34.string().optional() }),
7234
7205
  mcp: { name: "storage_volumes_create", input: volumeCreateInput },
7235
7206
  execute: (context, input) => createDrive(context.fetch, { name: input.name, source_drive_id: input.sourceDriveId ?? null }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
7236
7207
  cli: {
@@ -7306,7 +7277,7 @@ var volumeDeleteCapability = defineCapability({
7306
7277
  roles: ["user"],
7307
7278
  description: "Delete a storage volume (drive).",
7308
7279
  mutation: "preview-confirm",
7309
- input: driveWrite.extend({ idempotencyKey: z35.string().optional() }),
7280
+ input: driveWrite.extend({ idempotencyKey: z34.string().optional() }),
7310
7281
  mcp: { name: "storage_volumes_delete", input: driveWrite },
7311
7282
  execute: async (context, input) => {
7312
7283
  await deleteDrive(context.fetch, input.driveId, {}, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0);
@@ -7386,21 +7357,21 @@ var volumeCapabilities = [
7386
7357
  ];
7387
7358
 
7388
7359
  // ../../packages/capabilities/dist/capabilities/users.js
7389
- import { z as z36 } from "zod";
7390
- var directoryLimit = z36.number().int().min(1).max(100).default(25);
7391
- var directoryOffset = z36.number().int().nonnegative().optional();
7392
- var organizationListInput = z36.object({
7393
- q: z36.string().trim().optional().describe("Company name, contact/member name, or email."),
7394
- supplier: z36.boolean().optional(),
7395
- inference_provider: z36.boolean().optional(),
7396
- approved: z36.boolean().optional(),
7397
- ids: z36.array(z36.uuid()).min(1).max(100).optional(),
7360
+ import { z as z35 } from "zod";
7361
+ var directoryLimit = z35.number().int().min(1).max(100).default(25);
7362
+ var directoryOffset = z35.number().int().nonnegative().optional();
7363
+ var organizationListInput = z35.object({
7364
+ q: z35.string().trim().optional().describe("Company name, contact/member name, or email."),
7365
+ supplier: z35.boolean().optional(),
7366
+ inference_provider: z35.boolean().optional(),
7367
+ approved: z35.boolean().optional(),
7368
+ ids: z35.array(z35.uuid()).min(1).max(100).optional(),
7398
7369
  limit: directoryLimit,
7399
7370
  offset: directoryOffset
7400
7371
  });
7401
- var usersListInput = z36.object({
7402
- q: z36.string().trim().optional().describe("Person name, email, or company name."),
7403
- organization_id: z36.uuid().optional(),
7372
+ var usersListInput = z35.object({
7373
+ q: z35.string().trim().optional().describe("Person name, email, or company name."),
7374
+ organization_id: z35.uuid().optional(),
7404
7375
  limit: directoryLimit,
7405
7376
  offset: directoryOffset
7406
7377
  });
@@ -7585,7 +7556,6 @@ var catalog = [
7585
7556
  ...adminNodeSanitizeCapabilities,
7586
7557
  ...adminEnrollmentCapabilities,
7587
7558
  ...supplierNetworkingCapabilities,
7588
- adminSshCapability,
7589
7559
  organizationInviteCapability,
7590
7560
  creditGrantCapability,
7591
7561
  creditAdjustmentsListCapability,