@ornncompute/cli 1.0.191 → 1.0.193

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.
@@ -572,7 +572,8 @@ var ADMIN_CLI_ROOTS = [
572
572
  { name: "enrollment-tokens" },
573
573
  { name: "capacity-offers" },
574
574
  { name: "reservations" },
575
- { name: "ssh" }
575
+ { name: "ssh" },
576
+ { name: "gifts" }
576
577
  ];
577
578
  var nodeInput = z3.object({ node_id: z3.string().min(1) });
578
579
  var adminNodeHealthCapability = defineCapability({
@@ -722,6 +723,11 @@ function getShowback(request, input, signal) {
722
723
  });
723
724
  }
724
725
 
726
+ // ../../packages/api-client/dist/commerce/gifts.js
727
+ function createGift(request, body2) {
728
+ return request("/gifts", { method: "POST", body: body2 });
729
+ }
730
+
725
731
  // ../../packages/api-client/dist/commerce/staff.js
726
732
  var adjustments = (organizationId) => `/internal/v1/organizations/${encodeURIComponent(organizationId)}/credit-adjustments`;
727
733
  function createCreditAdjustment(request, organizationId, body2) {
@@ -3569,21 +3575,89 @@ var creditGrantCapability = defineCapability({
3569
3575
  }
3570
3576
  });
3571
3577
 
3572
- // ../../packages/capabilities/dist/capabilities/cli.js
3578
+ // ../../packages/capabilities/dist/capabilities/gifts.js
3573
3579
  import { z as z18 } from "zod";
3574
- var emptyInput2 = z18.object({});
3580
+ var DEFAULT_EXPIRY_DAYS = 30;
3581
+ var giftCreateInput = z18.object({
3582
+ amountUsd: z18.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."),
3583
+ expiresInDays: z18.number().int().min(1).max(365).default(DEFAULT_EXPIRY_DAYS).describe(`Days until the link expires. Defaults to ${DEFAULT_EXPIRY_DAYS}; at most 365.`),
3584
+ note: z18.string().trim().max(500).optional().describe("Internal reason for the gift, for example the promotion or customer. Never shown to the recipient."),
3585
+ confirm: z18.boolean().optional()
3586
+ });
3587
+ var giftCreateCapability = defineCapability({
3588
+ id: "gifts.create",
3589
+ domain: "billing",
3590
+ roles: ["admin"],
3591
+ description: `Create a single-use gift link worth Ornn credits. Whoever opens the link and confirms first adds the credits to their organization. The link expires after ${DEFAULT_EXPIRY_DAYS} days unless expiresInDays says otherwise. Share the returned url with the recipient and keep it secret: anyone with it can claim the gift.`,
3592
+ mutation: "preview-confirm",
3593
+ cli: {
3594
+ command: ["admin", "gifts", "create"],
3595
+ vnext: {
3596
+ audience: "admin",
3597
+ category: "resource",
3598
+ outcome: "Create a single-use gift link worth Ornn credits.",
3599
+ human: "ornn admin gifts create --amount-usd N [--expires-in-days N] [--note TEXT]",
3600
+ automation: "Requires an eligible human terminal.",
3601
+ acceptedReferences: [],
3602
+ review: "Prints the USD amount, expiry and note, then creates the link.",
3603
+ related: ["admin organizations grant-credit"]
3604
+ }
3605
+ },
3606
+ slack: {
3607
+ parameters: {
3608
+ type: "object",
3609
+ properties: {
3610
+ amountUsd: {
3611
+ type: "number",
3612
+ minimum: 1,
3613
+ maximum: 1e4,
3614
+ description: "Gift value in USD: 50 is $50.00 of Ornn credits."
3615
+ },
3616
+ expiresInDays: {
3617
+ type: "integer",
3618
+ minimum: 1,
3619
+ maximum: 365,
3620
+ description: `Days until the link expires; defaults to ${DEFAULT_EXPIRY_DAYS}.`
3621
+ },
3622
+ note: {
3623
+ type: "string",
3624
+ description: "Internal reason for the gift, never shown to the recipient."
3625
+ }
3626
+ },
3627
+ required: ["amountUsd"]
3628
+ }
3629
+ },
3630
+ input: giftCreateInput,
3631
+ execute: async (ctx, input) => {
3632
+ const { amountUsd, expiresInDays, note } = giftCreateInput.parse(input);
3633
+ if (!ctx.confirmed) {
3634
+ return preview("gifts.create", { amountUsd, expiresInDays, ...note ? { note } : {} });
3635
+ }
3636
+ const gift = await createGift(ctx.fetch, {
3637
+ amountCents: Math.round(amountUsd * 100),
3638
+ expiresAt: new Date(Date.now() + expiresInDays * 864e5).toISOString(),
3639
+ ...note ? { note } : {}
3640
+ });
3641
+ const base3 = ctx.webBaseUrl?.replace(/\/+$/, "");
3642
+ return { ...gift, ...base3 ? { url: `${base3}${gift.path}` } : {} };
3643
+ }
3644
+ });
3645
+
3646
+ // ../../packages/capabilities/dist/capabilities/cli.js
3647
+ import { z as z19 } from "zod";
3648
+ var emptyInput2 = z19.object({});
3575
3649
  function requireCliRuntime(context) {
3576
3650
  if (!context.cli) {
3577
3651
  throw new Error("This capability must execute through the Ornn CLI runtime.");
3578
3652
  }
3579
3653
  return context.cli;
3580
3654
  }
3581
- var updateInput = z18.object({
3582
- $positionals: z18.array(z18.string()).max(0).default([]),
3583
- major: z18.boolean().optional()
3655
+ var updateInput = z19.object({
3656
+ $positionals: z19.array(z19.string()).max(0).default([]),
3657
+ major: z19.boolean().optional()
3584
3658
  });
3585
- var completionInput = z18.object({
3586
- $positionals: z18.tuple([z18.enum(["bash", "fish", "zsh"])])
3659
+ var completionInput = z19.object({
3660
+ $positionals: z19.tuple([z19.enum(["bash", "fish", "zsh"])])
3587
3661
  }).transform(({ $positionals }) => ({ shell: $positionals[0] }));
3588
3662
  var versionCapability = defineCapability({
3589
3663
  id: "cli.version",
@@ -3724,23 +3798,23 @@ var cliShellCapabilities = [
3724
3798
  ];
3725
3799
 
3726
3800
  // ../../packages/capabilities/dist/capabilities/clusters.js
3727
- import { z as z19 } from "zod";
3728
- var clusterCliInput = z19.object({
3729
- $positionals: z19.array(z19.string()).optional(),
3730
- cursor: z19.string().optional(),
3731
- guided: z19.boolean().optional(),
3732
- idempotencyKey: z19.string().optional(),
3733
- limit: z19.union([z19.string(), z19.number()]).optional(),
3734
- machine: z19.string().optional(),
3735
- machines: z19.string().optional(),
3736
- network: z19.enum(["public", "private"]).optional(),
3737
- noWait: z19.boolean().optional(),
3738
- nodes: z19.union([z19.string(), z19.number()]).optional(),
3739
- output: z19.string().optional(),
3740
- overwrite: z19.boolean().optional(),
3741
- timeout: z19.string().optional(),
3742
- wait: z19.boolean().optional(),
3743
- yes: z19.boolean().optional()
3801
+ import { z as z20 } from "zod";
3802
+ var clusterCliInput = z20.object({
3803
+ $positionals: z20.array(z20.string()).optional(),
3804
+ cursor: z20.string().optional(),
3805
+ guided: z20.boolean().optional(),
3806
+ idempotencyKey: z20.string().optional(),
3807
+ limit: z20.union([z20.string(), z20.number()]).optional(),
3808
+ machine: z20.string().optional(),
3809
+ machines: z20.string().optional(),
3810
+ network: z20.enum(["public", "private"]).optional(),
3811
+ noWait: z20.boolean().optional(),
3812
+ nodes: z20.union([z20.string(), z20.number()]).optional(),
3813
+ output: z20.string().optional(),
3814
+ overwrite: z20.boolean().optional(),
3815
+ timeout: z20.string().optional(),
3816
+ wait: z20.boolean().optional(),
3817
+ yes: z20.boolean().optional()
3744
3818
  }).strict();
3745
3819
  function executeCluster(command) {
3746
3820
  return (context, input) => {
@@ -3779,13 +3853,13 @@ function clusterCliCapability({ acceptedReferences = [], automation, command, de
3779
3853
  execute: executeCluster(id)
3780
3854
  });
3781
3855
  }
3782
- var clusterType = z19.enum(["kubernetes", "slurm"]);
3783
- var reservationCluster = z19.object({ reservationId: z19.string(), type: clusterType });
3784
- var reservationWrite = reservationCluster.extend({ confirm: z19.boolean().optional() });
3785
- var controllerNode = z19.object({
3786
- controllerId: z19.string(),
3787
- nodeId: z19.string(),
3788
- confirm: z19.boolean().optional()
3856
+ var clusterType = z20.enum(["kubernetes", "slurm"]);
3857
+ var reservationCluster = z20.object({ reservationId: z20.string(), type: clusterType });
3858
+ var reservationWrite = reservationCluster.extend({ confirm: z20.boolean().optional() });
3859
+ var controllerNode = z20.object({
3860
+ controllerId: z20.string(),
3861
+ nodeId: z20.string(),
3862
+ confirm: z20.boolean().optional()
3789
3863
  });
3790
3864
  var clusterListCapability = defineCapability({
3791
3865
  id: "clusters.list",
@@ -3793,7 +3867,7 @@ var clusterListCapability = defineCapability({
3793
3867
  roles: ["user"],
3794
3868
  description: "List this tenant's kubernetes/slurm clusters.",
3795
3869
  mutation: "read",
3796
- input: z19.object({}),
3870
+ input: z20.object({}),
3797
3871
  mcp: { name: "clusters_list" },
3798
3872
  slack: false,
3799
3873
  execute: (ctx) => listClusters(ctx.fetch),
@@ -3847,7 +3921,7 @@ var clusterTeardownCapability = defineCapability({
3847
3921
  roles: ["user"],
3848
3922
  description: "Tear down a kubernetes or slurm cluster on a reservation.",
3849
3923
  mutation: "preview-confirm",
3850
- input: reservationWrite.extend({ idempotencyKey: z19.string().optional() }),
3924
+ input: reservationWrite.extend({ idempotencyKey: z20.string().optional() }),
3851
3925
  mcp: { name: "clusters_teardown", input: reservationWrite },
3852
3926
  slack: false,
3853
3927
  execute: (ctx, input) => teardownReservationCluster(ctx.fetch, input.type, input.reservationId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
@@ -3886,7 +3960,7 @@ var clusterAddNodeCapability = defineCapability({
3886
3960
  roles: ["user"],
3887
3961
  description: "Join a node to a controller.",
3888
3962
  mutation: "preview-confirm",
3889
- input: controllerNode.extend({ idempotencyKey: z19.string().optional() }),
3963
+ input: controllerNode.extend({ idempotencyKey: z20.string().optional() }),
3890
3964
  mcp: { name: "clusters_add_node", input: controllerNode },
3891
3965
  slack: false,
3892
3966
  cli: {
@@ -3919,7 +3993,7 @@ var clusterRemoveNodeCapability = defineCapability({
3919
3993
  roles: ["user"],
3920
3994
  description: "Remove a node from a controller.",
3921
3995
  mutation: "preview-confirm",
3922
- input: controllerNode.extend({ idempotencyKey: z19.string().optional() }),
3996
+ input: controllerNode.extend({ idempotencyKey: z20.string().optional() }),
3923
3997
  mcp: { name: "clusters_remove_node", input: controllerNode },
3924
3998
  slack: false,
3925
3999
  cli: {
@@ -3946,13 +4020,13 @@ var clusterRemoveNodeCapability = defineCapability({
3946
4020
  },
3947
4021
  execute: (ctx, input) => removeControllerNode(ctx.fetch, input.controllerId, input.nodeId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0)
3948
4022
  });
3949
- var clusterCreateInput = z19.object({
3950
- reservationId: z19.string(),
4023
+ var clusterCreateInput = z20.object({
4024
+ reservationId: z20.string(),
3951
4025
  type: clusterType,
3952
- networkMode: z19.enum(["public", "private"]).optional(),
3953
- nodeIds: z19.array(z19.string()).optional(),
3954
- nodeCount: z19.number().int().positive().optional(),
3955
- confirm: z19.boolean().optional()
4026
+ networkMode: z20.enum(["public", "private"]).optional(),
4027
+ nodeIds: z20.array(z20.string()).optional(),
4028
+ nodeCount: z20.number().int().positive().optional(),
4029
+ confirm: z20.boolean().optional()
3956
4030
  }).strict();
3957
4031
  var clusterCreateCapability = defineCapability({
3958
4032
  id: "cluster.create",
@@ -3961,9 +4035,9 @@ var clusterCreateCapability = defineCapability({
3961
4035
  description: "Launch a kubernetes or slurm cluster on a reservation.",
3962
4036
  mutation: "preview-confirm",
3963
4037
  input: clusterCreateInput.extend({
3964
- virtualMachineIds: z19.array(z19.string()).optional(),
3965
- sshKeyIds: z19.array(z19.string()).optional(),
3966
- idempotencyKey: z19.string().optional()
4038
+ virtualMachineIds: z20.array(z20.string()).optional(),
4039
+ sshKeyIds: z20.array(z20.string()).optional(),
4040
+ idempotencyKey: z20.string().optional()
3967
4041
  }),
3968
4042
  mcp: { name: "clusters_create", input: clusterCreateInput },
3969
4043
  slack: false,
@@ -4008,8 +4082,8 @@ var clusterCapabilities = [
4008
4082
  roles: ["user"],
4009
4083
  description: "List active reservations eligible for cluster creation (kubernetes/slurm), 100 per page. Pass the response's nextCursor as cursor for the next page.",
4010
4084
  mutation: "read",
4011
- input: z19.object({
4012
- cursor: z19.string().min(1).optional().describe("nextCursor from the previous page.")
4085
+ input: z20.object({
4086
+ cursor: z20.string().min(1).optional().describe("nextCursor from the previous page.")
4013
4087
  }),
4014
4088
  mcp: { name: "clusters_reservations_list" },
4015
4089
  slack: false,
@@ -4026,7 +4100,7 @@ var clusterCapabilities = [
4026
4100
  roles: ["user"],
4027
4101
  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.",
4028
4102
  mutation: "read",
4029
- input: z19.object({ reservationId: z19.string() }),
4103
+ input: z20.object({ reservationId: z20.string() }),
4030
4104
  mcp: { name: "clusters_kubeconfig" },
4031
4105
  slack: false,
4032
4106
  execute: async (ctx, input) => {
@@ -4046,55 +4120,55 @@ var clusterCapabilities = [
4046
4120
  ];
4047
4121
 
4048
4122
  // ../../packages/capabilities/dist/capabilities/external-buckets.js
4049
- import { z as z20 } from "zod";
4050
- var pageInput2 = z20.object({
4051
- $positionals: z20.array(z20.string()).optional(),
4052
- cursor: z20.string().optional(),
4053
- limit: z20.union([z20.string(), z20.number()]).optional()
4123
+ import { z as z21 } from "zod";
4124
+ var pageInput2 = z21.object({
4125
+ $positionals: z21.array(z21.string()).optional(),
4126
+ cursor: z21.string().optional(),
4127
+ limit: z21.union([z21.string(), z21.number()]).optional()
4054
4128
  }).strict();
4055
- var showInput = z20.object({
4056
- $positionals: z20.array(z20.string()).optional()
4129
+ var showInput = z21.object({
4130
+ $positionals: z21.array(z21.string()).optional()
4057
4131
  }).strict();
4058
- var verificationInput = z20.object({
4059
- $positionals: z20.array(z20.string()).optional(),
4060
- idempotencyKey: z20.string().optional()
4132
+ var verificationInput = z21.object({
4133
+ $positionals: z21.array(z21.string()).optional(),
4134
+ idempotencyKey: z21.string().optional()
4061
4135
  }).strict();
4062
- var disconnectInput = z20.object({
4063
- $positionals: z20.array(z20.string()).optional(),
4064
- idempotencyKey: z20.string().optional(),
4065
- yes: z20.boolean().optional()
4136
+ var disconnectInput = z21.object({
4137
+ $positionals: z21.array(z21.string()).optional(),
4138
+ idempotencyKey: z21.string().optional(),
4139
+ yes: z21.boolean().optional()
4066
4140
  }).strict();
4067
- var connectInput = z20.object({
4068
- $positionals: z20.array(z20.string()).optional(),
4069
- accessKeyId: z20.string().optional(),
4070
- accountId: z20.string().optional(),
4071
- bucket: z20.string().optional(),
4072
- endpointUrl: z20.string().optional(),
4073
- idempotencyKey: z20.string().optional(),
4074
- name: z20.string().optional(),
4075
- prefix: z20.string().optional(),
4076
- readOnly: z20.boolean().optional(),
4077
- readWrite: z20.boolean().optional(),
4078
- region: z20.string().optional(),
4079
- secretAccessKeyFile: z20.string().optional(),
4080
- url: z20.string().optional(),
4081
- yes: z20.boolean().optional()
4141
+ var connectInput = z21.object({
4142
+ $positionals: z21.array(z21.string()).optional(),
4143
+ accessKeyId: z21.string().optional(),
4144
+ accountId: z21.string().optional(),
4145
+ bucket: z21.string().optional(),
4146
+ endpointUrl: z21.string().optional(),
4147
+ idempotencyKey: z21.string().optional(),
4148
+ name: z21.string().optional(),
4149
+ prefix: z21.string().optional(),
4150
+ readOnly: z21.boolean().optional(),
4151
+ readWrite: z21.boolean().optional(),
4152
+ region: z21.string().optional(),
4153
+ secretAccessKeyFile: z21.string().optional(),
4154
+ url: z21.string().optional(),
4155
+ yes: z21.boolean().optional()
4082
4156
  }).strict();
4083
- var credentialInput = z20.object({
4084
- $positionals: z20.array(z20.string()).optional(),
4085
- accessKeyId: z20.string().optional(),
4086
- idempotencyKey: z20.string().optional(),
4087
- secretAccessKeyFile: z20.string().optional(),
4088
- yes: z20.boolean().optional()
4157
+ var credentialInput = z21.object({
4158
+ $positionals: z21.array(z21.string()).optional(),
4159
+ accessKeyId: z21.string().optional(),
4160
+ idempotencyKey: z21.string().optional(),
4161
+ secretAccessKeyFile: z21.string().optional(),
4162
+ yes: z21.boolean().optional()
4089
4163
  }).strict();
4090
- var importInput = z20.object({
4091
- $positionals: z20.array(z20.string()).optional(),
4092
- idempotencyKey: z20.string().optional(),
4093
- noWait: z20.boolean().optional(),
4094
- reservation: z20.string().optional(),
4095
- timeout: z20.string().optional(),
4096
- wait: z20.boolean().optional(),
4097
- yes: z20.boolean().optional()
4164
+ var importInput = z21.object({
4165
+ $positionals: z21.array(z21.string()).optional(),
4166
+ idempotencyKey: z21.string().optional(),
4167
+ noWait: z21.boolean().optional(),
4168
+ reservation: z21.string().optional(),
4169
+ timeout: z21.string().optional(),
4170
+ wait: z21.boolean().optional(),
4171
+ yes: z21.boolean().optional()
4098
4172
  }).strict();
4099
4173
  function externalBucketExecutor(context) {
4100
4174
  const interaction = context.cli?.interaction;
@@ -4110,16 +4184,16 @@ function isExternalBucket(drive) {
4110
4184
  return false;
4111
4185
  return ["external_gcs", "s3", "r2", "cloudflare_r2"].includes(source.provider ?? "") || Boolean(source.bucket);
4112
4186
  }
4113
- var bucketInput = z20.object({ driveId: z20.string() });
4187
+ var bucketInput = z21.object({ driveId: z21.string() });
4114
4188
  var bucketListCapability = defineCapability({
4115
4189
  id: "storage.external-buckets.list",
4116
4190
  domain: "storage",
4117
4191
  roles: ["user"],
4118
4192
  description: "List a page of connected external buckets. Pass next_cursor as cursor to continue.",
4119
4193
  mutation: "read",
4120
- input: z20.object({
4121
- limit: z20.number().int().min(1).max(100).optional(),
4122
- cursor: z20.string().optional()
4194
+ input: z21.object({
4195
+ limit: z21.number().int().min(1).max(100).optional(),
4196
+ cursor: z21.string().optional()
4123
4197
  }),
4124
4198
  mcp: { name: "storage_buckets_list" },
4125
4199
  slack: false,
@@ -4214,18 +4288,18 @@ var bucketDisconnectCapability = defineCapability({
4214
4288
  }
4215
4289
  }
4216
4290
  });
4217
- var bucketConnectInput = z20.object({
4218
- provider: z20.enum(["gcs", "s3", "r2"]),
4219
- bucket: z20.string(),
4220
- name: z20.string().optional(),
4221
- prefix: z20.string().optional(),
4222
- region: z20.string().optional(),
4223
- endpointUrl: z20.string().optional(),
4224
- accountId: z20.string().optional(),
4225
- accessKeyId: z20.string().optional(),
4226
- secretAccessKey: z20.string().optional(),
4227
- readOnly: z20.boolean().optional(),
4228
- confirm: z20.boolean().optional()
4291
+ var bucketConnectInput = z21.object({
4292
+ provider: z21.enum(["gcs", "s3", "r2"]),
4293
+ bucket: z21.string(),
4294
+ name: z21.string().optional(),
4295
+ prefix: z21.string().optional(),
4296
+ region: z21.string().optional(),
4297
+ endpointUrl: z21.string().optional(),
4298
+ accountId: z21.string().optional(),
4299
+ accessKeyId: z21.string().optional(),
4300
+ secretAccessKey: z21.string().optional(),
4301
+ readOnly: z21.boolean().optional(),
4302
+ confirm: z21.boolean().optional()
4229
4303
  }).refine((input) => !(input.provider === "gcs" && (input.accessKeyId || input.secretAccessKey)), {
4230
4304
  message: "Access key credentials are only supported for S3-compatible buckets."
4231
4305
  }).refine((input) => Boolean(input.accessKeyId) === Boolean(input.secretAccessKey), {
@@ -4233,10 +4307,10 @@ var bucketConnectInput = z20.object({
4233
4307
  }).refine((input) => input.provider !== "r2" || Boolean(input.endpointUrl || input.accountId), {
4234
4308
  message: "R2 buckets require either --endpointUrl or --accountId."
4235
4309
  });
4236
- var bucketWriteInput = bucketInput.extend({ confirm: z20.boolean().optional() });
4310
+ var bucketWriteInput = bucketInput.extend({ confirm: z21.boolean().optional() });
4237
4311
  var bucketCredentialInput = bucketWriteInput.extend({
4238
- accessKeyId: z20.string(),
4239
- secretAccessKey: z20.string()
4312
+ accessKeyId: z21.string(),
4313
+ secretAccessKey: z21.string()
4240
4314
  });
4241
4315
  var bucketConnectCapability = defineCapability({
4242
4316
  id: "storage.external-buckets.connect",
@@ -4244,7 +4318,7 @@ var bucketConnectCapability = defineCapability({
4244
4318
  roles: ["user"],
4245
4319
  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).",
4246
4320
  mutation: "preview-confirm",
4247
- input: bucketConnectInput.safeExtend({ idempotencyKey: z20.string().optional() }),
4321
+ input: bucketConnectInput.safeExtend({ idempotencyKey: z21.string().optional() }),
4248
4322
  mcp: { name: "storage_buckets_connect", input: bucketConnectInput },
4249
4323
  slack: false,
4250
4324
  execute: (context, input) => {
@@ -4288,7 +4362,7 @@ var bucketUpdateCredentialsCapability = defineCapability({
4288
4362
  roles: ["user"],
4289
4363
  description: "Update a connected S3-compatible bucket's access key credentials.",
4290
4364
  mutation: "preview-confirm",
4291
- input: bucketCredentialInput.extend({ idempotencyKey: z20.string().optional() }),
4365
+ input: bucketCredentialInput.extend({ idempotencyKey: z21.string().optional() }),
4292
4366
  mcp: { name: "storage_buckets_update_credentials", input: bucketCredentialInput },
4293
4367
  slack: false,
4294
4368
  execute: (context, input) => updateDrive(context.fetch, input.driveId, {
@@ -4321,7 +4395,7 @@ var bucketVerifyCapability = defineCapability({
4321
4395
  roles: ["user"],
4322
4396
  description: "Verify a connected S3-compatible bucket's source credentials/connectivity.",
4323
4397
  mutation: "preview-confirm",
4324
- input: bucketWriteInput.extend({ idempotencyKey: z20.string().optional() }),
4398
+ input: bucketWriteInput.extend({ idempotencyKey: z21.string().optional() }),
4325
4399
  mcp: { name: "storage_buckets_verify", input: bucketWriteInput },
4326
4400
  slack: false,
4327
4401
  execute: (context, input) => updateDrive(context.fetch, input.driveId, { verify_source: true }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
@@ -4379,22 +4453,22 @@ var externalBucketCapabilities = [
4379
4453
  ];
4380
4454
 
4381
4455
  // ../../packages/capabilities/dist/capabilities/evidence.js
4382
- import { z as z21 } from "zod";
4383
- var positionals3 = z21.array(z21.string()).default([]);
4384
- var evidenceInput = z21.object({
4456
+ import { z as z22 } from "zod";
4457
+ var positionals3 = z22.array(z22.string()).default([]);
4458
+ var evidenceInput = z22.object({
4385
4459
  $positionals: positionals3,
4386
- before: z21.string().optional(),
4387
- count: z21.string().optional(),
4388
- cursor: z21.string().optional(),
4389
- end: z21.string().optional(),
4390
- follow: z21.boolean().optional(),
4391
- guided: z21.boolean().optional(),
4392
- interval: z21.string().optional(),
4393
- limit: z21.string().optional(),
4394
- maxPoints: z21.string().optional(),
4395
- start: z21.string().optional(),
4396
- stream: z21.enum(["kernel", "serial"]).optional(),
4397
- timeout: z21.string().optional()
4460
+ before: z22.string().optional(),
4461
+ count: z22.string().optional(),
4462
+ cursor: z22.string().optional(),
4463
+ end: z22.string().optional(),
4464
+ follow: z22.boolean().optional(),
4465
+ guided: z22.boolean().optional(),
4466
+ interval: z22.string().optional(),
4467
+ limit: z22.string().optional(),
4468
+ maxPoints: z22.string().optional(),
4469
+ start: z22.string().optional(),
4470
+ stream: z22.enum(["kernel", "serial"]).optional(),
4471
+ timeout: z22.string().optional()
4398
4472
  }).strict();
4399
4473
  function runtime2(context) {
4400
4474
  const interaction = context.cli?.interaction;
@@ -4560,46 +4634,46 @@ function getCliSession(request) {
4560
4634
  }
4561
4635
 
4562
4636
  // ../../packages/capabilities/dist/capabilities/fleet.js
4563
- import { z as z22 } from "zod";
4564
- var suppliersInput = z22.object({
4565
- q: z22.string().optional(),
4566
- offset: z22.number().int().min(0).optional(),
4567
- limit: z22.number().int().min(1).max(1e3).optional()
4568
- });
4569
- var facilitiesInput = z22.object({
4570
- organization_id: z22.string().optional(),
4571
- cursor: z22.string().optional(),
4572
- limit: z22.number().int().min(1).max(100).optional()
4573
- });
4574
- var nodesInput = z22.object({
4575
- organization_id: z22.string().optional(),
4576
- facility_id: z22.string().optional(),
4577
- status: z22.string().optional(),
4578
- reservation_id: z22.string().optional(),
4579
- cursor: z22.string().optional(),
4580
- max: z22.number().int().positive().max(5e3).optional(),
4581
- limit: z22.number().int().positive().max(5e3).optional()
4582
- });
4583
- var nodeLifecycleInput = z22.object({
4584
- node_id: z22.string().min(1),
4585
- maintenance_batch_id: z22.string().uuid().optional(),
4586
- node_ref: z22.string().optional(),
4587
- reason: z22.string().optional(),
4588
- delete_node_record: z22.literal(true).optional(),
4589
- idempotency_key: z22.string().optional(),
4590
- yes: z22.boolean().optional(),
4591
- wait: z22.boolean().optional(),
4592
- timeout_seconds: z22.number().positive().optional()
4593
- });
4594
- var nodeExecRemoteInput = z22.object({
4595
- node_id: z22.string().min(1).optional(),
4596
- host: z22.string().min(1).optional(),
4597
- username: z22.string().min(1).optional(),
4598
- port: z22.number().int().min(1).max(65535).optional(),
4599
- private_key: z22.string().min(1).optional(),
4600
- command: z22.string().min(1),
4601
- timeout_seconds: z22.number().int().positive(),
4602
- yes: z22.boolean().optional()
4637
+ import { z as z23 } from "zod";
4638
+ var suppliersInput = z23.object({
4639
+ q: z23.string().optional(),
4640
+ offset: z23.number().int().min(0).optional(),
4641
+ limit: z23.number().int().min(1).max(1e3).optional()
4642
+ });
4643
+ var facilitiesInput = z23.object({
4644
+ organization_id: z23.string().optional(),
4645
+ cursor: z23.string().optional(),
4646
+ limit: z23.number().int().min(1).max(100).optional()
4647
+ });
4648
+ var nodesInput = z23.object({
4649
+ organization_id: z23.string().optional(),
4650
+ facility_id: z23.string().optional(),
4651
+ status: z23.string().optional(),
4652
+ reservation_id: z23.string().optional(),
4653
+ cursor: z23.string().optional(),
4654
+ max: z23.number().int().positive().max(5e3).optional(),
4655
+ limit: z23.number().int().positive().max(5e3).optional()
4656
+ });
4657
+ var nodeLifecycleInput = z23.object({
4658
+ node_id: z23.string().min(1),
4659
+ maintenance_batch_id: z23.string().uuid().optional(),
4660
+ node_ref: z23.string().optional(),
4661
+ reason: z23.string().optional(),
4662
+ delete_node_record: z23.literal(true).optional(),
4663
+ idempotency_key: z23.string().optional(),
4664
+ yes: z23.boolean().optional(),
4665
+ wait: z23.boolean().optional(),
4666
+ timeout_seconds: z23.number().positive().optional()
4667
+ });
4668
+ var nodeExecRemoteInput = z23.object({
4669
+ node_id: z23.string().min(1).optional(),
4670
+ host: z23.string().min(1).optional(),
4671
+ username: z23.string().min(1).optional(),
4672
+ port: z23.number().int().min(1).max(65535).optional(),
4673
+ private_key: z23.string().min(1).optional(),
4674
+ command: z23.string().min(1),
4675
+ timeout_seconds: z23.number().int().positive(),
4676
+ yes: z23.boolean().optional()
4603
4677
  });
4604
4678
  var listSuppliersCapability = defineCapability({
4605
4679
  id: "supplier.list",
@@ -4696,7 +4770,7 @@ var listFacilitiesCapability = defineCapability({
4696
4770
  });
4697
4771
  }
4698
4772
  });
4699
- var facilityShowInput = z22.object({ facilityId: z22.uuid() });
4773
+ var facilityShowInput = z23.object({ facilityId: z23.uuid() });
4700
4774
  var facilityShowCapability = defineCapability({
4701
4775
  id: "facilities.show",
4702
4776
  domain: "fleet",
@@ -4788,12 +4862,12 @@ var listNodesCapability = defineCapability({
4788
4862
  });
4789
4863
  }
4790
4864
  });
4791
- var nodeExecInput = z22.object({
4792
- node_id: z22.string().min(1).refine((value) => value === value.trim(), {
4865
+ var nodeExecInput = z23.object({
4866
+ node_id: z23.string().min(1).refine((value) => value === value.trim(), {
4793
4867
  message: "node_id must be an exact canonical node ID without surrounding whitespace"
4794
4868
  }),
4795
- command: z22.string().min(1),
4796
- timeout_seconds: z22.number().int().min(1).max(900)
4869
+ command: z23.string().min(1),
4870
+ timeout_seconds: z23.number().int().min(1).max(900)
4797
4871
  });
4798
4872
  var nodeExecCapability = defineCapability({
4799
4873
  id: "node.exec",
@@ -4896,8 +4970,8 @@ var fleetCapabilities = [
4896
4970
  ];
4897
4971
 
4898
4972
  // ../../packages/capabilities/dist/capabilities/metrics.js
4899
- import { z as z23 } from "zod";
4900
- var metricInput = z23.object({ reservationId: z23.string(), machineId: z23.string().optional() });
4973
+ import { z as z24 } from "zod";
4974
+ var metricInput = z24.object({ reservationId: z24.string(), machineId: z24.string().optional() });
4901
4975
  async function nodeIds(context, input) {
4902
4976
  if (input.machineId)
4903
4977
  return [input.machineId];
@@ -4933,9 +5007,9 @@ var metricsHistoryCapability = defineCapability({
4933
5007
  mutation: "read",
4934
5008
  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.",
4935
5009
  input: metricInput.extend({
4936
- start: z23.string().optional(),
4937
- end: z23.string().optional(),
4938
- maxPoints: z23.number().int().positive().optional()
5010
+ start: z24.string().optional(),
5011
+ end: z24.string().optional(),
5012
+ maxPoints: z24.number().int().positive().optional()
4939
5013
  }),
4940
5014
  slack: false,
4941
5015
  execute: async (context, input) => {
@@ -4951,18 +5025,18 @@ var metricsHistoryCapability = defineCapability({
4951
5025
  var metricsCapabilities = [metricsSnapshotCapability, metricsHistoryCapability];
4952
5026
 
4953
5027
  // ../../packages/capabilities/dist/capabilities/mounts.js
4954
- import { z as z24 } from "zod";
4955
- var mountCliInput = z24.object({
4956
- $positionals: z24.array(z24.string()).default([]),
4957
- access: z24.string().optional(),
4958
- cursor: z24.string().optional(),
4959
- idempotencyKey: z24.string().optional(),
4960
- limit: z24.union([z24.string(), z24.number()]).optional(),
4961
- noWait: z24.boolean().optional(),
4962
- timeout: z24.string().optional(),
4963
- volume: z24.string().optional(),
4964
- wait: z24.boolean().optional(),
4965
- yes: z24.boolean().optional()
5028
+ import { z as z25 } from "zod";
5029
+ var mountCliInput = z25.object({
5030
+ $positionals: z25.array(z25.string()).default([]),
5031
+ access: z25.string().optional(),
5032
+ cursor: z25.string().optional(),
5033
+ idempotencyKey: z25.string().optional(),
5034
+ limit: z25.union([z25.string(), z25.number()]).optional(),
5035
+ noWait: z25.boolean().optional(),
5036
+ timeout: z25.string().optional(),
5037
+ volume: z25.string().optional(),
5038
+ wait: z25.boolean().optional(),
5039
+ yes: z25.boolean().optional()
4966
5040
  }).strict();
4967
5041
  function executeMount(command) {
4968
5042
  return (context, input) => {
@@ -4976,11 +5050,11 @@ function executeMount(command) {
4976
5050
  function mutationOptions(idempotencyKey) {
4977
5051
  return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
4978
5052
  }
4979
- var reservationInput = z24.object({ reservationId: z24.string() });
4980
- var reservationWrite2 = reservationInput.extend({ confirm: z24.boolean().optional() });
5053
+ var reservationInput = z25.object({ reservationId: z25.string() });
5054
+ var reservationWrite2 = reservationInput.extend({ confirm: z25.boolean().optional() });
4981
5055
  var attachInput = reservationWrite2.extend({
4982
- driveId: z24.string(),
4983
- readOnly: z24.boolean().optional()
5056
+ driveId: z25.string(),
5057
+ readOnly: z25.boolean().optional()
4984
5058
  });
4985
5059
  var volumeMountCandidatesCapability = defineCapability({
4986
5060
  id: "storage.volume-mounts.candidates",
@@ -4988,7 +5062,7 @@ var volumeMountCandidatesCapability = defineCapability({
4988
5062
  roles: ["user"],
4989
5063
  description: "List reservations that can receive a storage deploy, grouped the same way as the console picker.",
4990
5064
  mutation: "read",
4991
- input: z24.object({}),
5065
+ input: z25.object({}),
4992
5066
  mcp: { name: "storage_targets" },
4993
5067
  slack: false,
4994
5068
  cli: {
@@ -5045,9 +5119,9 @@ var volumeMountAttachCapability = defineCapability({
5045
5119
  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.",
5046
5120
  mutation: "preview-confirm",
5047
5121
  input: attachInput.extend({
5048
- mountPath: z24.string().optional(),
5049
- mountMode: z24.literal("fuse").optional(),
5050
- idempotencyKey: z24.string().optional()
5122
+ mountPath: z25.string().optional(),
5123
+ mountMode: z25.literal("fuse").optional(),
5124
+ idempotencyKey: z25.string().optional()
5051
5125
  }),
5052
5126
  mcp: { name: "storage_deploy", input: attachInput },
5053
5127
  slack: false,
@@ -5085,7 +5159,7 @@ var volumeMountDetachCapability = defineCapability({
5085
5159
  roles: ["user"],
5086
5160
  description: "Detach the reservation storage attachment (after unmount) so the volume can be deleted.",
5087
5161
  mutation: "preview-confirm",
5088
- input: reservationWrite2.extend({ idempotencyKey: z24.string().optional() }),
5162
+ input: reservationWrite2.extend({ idempotencyKey: z25.string().optional() }),
5089
5163
  mcp: { name: "storage_undeploy", input: reservationWrite2 },
5090
5164
  slack: false,
5091
5165
  cli: {
@@ -5142,13 +5216,13 @@ var mountCapabilities = [
5142
5216
  ];
5143
5217
 
5144
5218
  // ../../packages/capabilities/dist/capabilities/identity.js
5145
- import { z as z25 } from "zod";
5146
- var emptyInput3 = z25.object({});
5147
- var loginInput = z25.object({
5148
- authBase: z25.string().min(1).optional(),
5149
- noBrowser: z25.boolean().optional(),
5150
- pollInterval: z25.number().positive().optional(),
5151
- timeout: z25.number().positive().optional()
5219
+ import { z as z26 } from "zod";
5220
+ var emptyInput3 = z26.object({});
5221
+ var loginInput = z26.object({
5222
+ authBase: z26.string().min(1).optional(),
5223
+ noBrowser: z26.boolean().optional(),
5224
+ pollInterval: z26.number().positive().optional(),
5225
+ timeout: z26.number().positive().optional()
5152
5226
  });
5153
5227
  function executeSession(context, command, input) {
5154
5228
  if (!context.cli?.session) {
@@ -5267,50 +5341,50 @@ var identityCapabilities = [
5267
5341
  ];
5268
5342
 
5269
5343
  // ../../packages/capabilities/dist/capabilities/listings.js
5270
- import { z as z26 } from "zod";
5271
- var listingCreateInput = z26.object({
5272
- organizationId: z26.string().optional(),
5273
- organization_id: z26.string().optional(),
5274
- facilityId: z26.string().optional(),
5275
- facility_id: z26.string().optional(),
5276
- kind: z26.enum(["gpu", "cpu", "node", "link"]).optional(),
5277
- gpu: z26.string().optional(),
5278
- cpu: z26.string().optional(),
5279
- site: z26.string().optional(),
5280
- fabric: z26.string().optional(),
5281
- min_nodes: z26.number().int().optional(),
5282
- starts_after: z26.string().optional(),
5283
- starts_before: z26.string().optional(),
5284
- ends_after: z26.string().optional(),
5285
- ends_before: z26.string().optional(),
5286
- gpu_type: z26.string().optional(),
5287
- node_model: z26.string().optional(),
5288
- fabric_type: z26.string().optional(),
5289
- node_count: z26.number().int().optional(),
5290
- gpus_per_node: z26.number().int().optional(),
5291
- cores_per_node: z26.number().int().optional().describe('CPU listings: cores per node (2 vCPUs each), at least 1, priced per vCPU-hour. Omit gpu_type or set it to "cpu".'),
5292
- site_nickname: z26.string().optional().describe("A state, city, address, or catalog region such as us-west-3."),
5293
- site_supplier: z26.string().optional(),
5294
- ram: z26.string().optional(),
5295
- storage: z26.string().optional(),
5296
- internet: z26.string().optional(),
5297
- network_hardware: z26.string().optional(),
5298
- available_start_at: z26.string().optional().describe("Start of the availability window. YYYY-MM-DD or RFC3339."),
5299
- available_end_at: z26.string().optional().describe("End of the availability window. YYYY-MM-DD or RFC3339."),
5300
- available_from: z26.string().optional().describe("Alias for available_start_at."),
5301
- available_to: z26.string().optional().describe("Alias for available_end_at."),
5302
- buy_now_price_per_gpu_hour: z26.number().optional().describe("Price buyers pay, USD per GPU-hour (per vCPU-hour on CPU listings)."),
5303
- deposit_percent: z26.number().optional(),
5304
- down_payment_cents: z26.number().int().nonnegative().optional(),
5305
- access_mode: z26.enum(["bare-metal", "virtual-machine"]).optional(),
5306
- state: z26.enum(["available", "draft"]).optional(),
5307
- price_omitted: z26.boolean().optional(),
5308
- announce: z26.boolean().optional(),
5309
- text: z26.string().optional(),
5310
- confirm: z26.boolean().optional(),
5311
- idempotencyKey: z26.string().min(1).max(200).optional()
5312
- });
5313
- var catalogTermsInput = z26.object({ kind: z26.enum(["gpu", "cpu", "node", "link"]).optional() });
5344
+ import { z as z27 } from "zod";
5345
+ var listingCreateInput = z27.object({
5346
+ organizationId: z27.string().optional(),
5347
+ organization_id: z27.string().optional(),
5348
+ facilityId: z27.string().optional(),
5349
+ facility_id: z27.string().optional(),
5350
+ kind: z27.enum(["gpu", "cpu", "node", "link"]).optional(),
5351
+ gpu: z27.string().optional(),
5352
+ cpu: z27.string().optional(),
5353
+ site: z27.string().optional(),
5354
+ fabric: z27.string().optional(),
5355
+ min_nodes: z27.number().int().optional(),
5356
+ starts_after: z27.string().optional(),
5357
+ starts_before: z27.string().optional(),
5358
+ ends_after: z27.string().optional(),
5359
+ ends_before: z27.string().optional(),
5360
+ gpu_type: z27.string().optional(),
5361
+ node_model: z27.string().optional(),
5362
+ fabric_type: z27.string().optional(),
5363
+ node_count: z27.number().int().optional(),
5364
+ gpus_per_node: z27.number().int().optional(),
5365
+ cores_per_node: z27.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".'),
5366
+ site_nickname: z27.string().optional().describe("A state, city, address, or catalog region such as us-west-3."),
5367
+ site_supplier: z27.string().optional(),
5368
+ ram: z27.string().optional(),
5369
+ storage: z27.string().optional(),
5370
+ internet: z27.string().optional(),
5371
+ network_hardware: z27.string().optional(),
5372
+ available_start_at: z27.string().optional().describe("Start of the availability window. YYYY-MM-DD or RFC3339."),
5373
+ available_end_at: z27.string().optional().describe("End of the availability window. YYYY-MM-DD or RFC3339."),
5374
+ available_from: z27.string().optional().describe("Alias for available_start_at."),
5375
+ available_to: z27.string().optional().describe("Alias for available_end_at."),
5376
+ buy_now_price_per_gpu_hour: z27.number().optional().describe("Price buyers pay, USD per GPU-hour (per vCPU-hour on CPU listings)."),
5377
+ deposit_percent: z27.number().optional(),
5378
+ down_payment_cents: z27.number().int().nonnegative().optional(),
5379
+ access_mode: z27.enum(["bare-metal", "virtual-machine"]).optional(),
5380
+ state: z27.enum(["available", "draft"]).optional(),
5381
+ price_omitted: z27.boolean().optional(),
5382
+ announce: z27.boolean().optional(),
5383
+ text: z27.string().optional(),
5384
+ confirm: z27.boolean().optional(),
5385
+ idempotencyKey: z27.string().min(1).max(200).optional()
5386
+ });
5387
+ var catalogTermsInput = z27.object({ kind: z27.enum(["gpu", "cpu", "node", "link"]).optional() });
5314
5388
  var slackListingCreateParams = {
5315
5389
  type: "object",
5316
5390
  properties: {
@@ -5653,7 +5727,7 @@ function nodeLogsSubscribePath(id, stream) {
5653
5727
  }
5654
5728
 
5655
5729
  // ../../packages/capabilities/dist/capabilities/observability.js
5656
- import { z as z27 } from "zod";
5730
+ import { z as z28 } from "zod";
5657
5731
  function tailPath(path3, input) {
5658
5732
  const query3 = new URLSearchParams({
5659
5733
  duration: String(input.duration ?? 20),
@@ -5661,30 +5735,30 @@ function tailPath(path3, input) {
5661
5735
  });
5662
5736
  return `${path3}${path3.includes("?") ? "&" : "?"}${query3}`;
5663
5737
  }
5664
- var latestInput = z27.object({
5665
- node_id: z27.string().min(1),
5666
- start: z27.string().optional(),
5667
- end: z27.string().optional(),
5668
- span: z27.string().optional(),
5669
- max_points: z27.number().int().min(1).max(500).optional(),
5670
- metrics: z27.string().optional()
5671
- });
5672
- var logsLatestInput = z27.object({
5673
- node_id: z27.string().min(1),
5674
- stream: z27.enum(["serial", "kernel"]).default("kernel"),
5675
- count: z27.number().int().min(1).max(1e3).optional(),
5676
- before: z27.string().optional(),
5677
- start: z27.string().optional(),
5678
- cursor: z27.string().optional()
5679
- });
5680
- var tailInput = z27.object({
5681
- node_id: z27.string().min(1),
5682
- duration: z27.number().int().min(1).max(120).optional(),
5683
- max_events: z27.number().int().min(1).max(200).optional(),
5684
- fields: z27.string().optional()
5738
+ var latestInput = z28.object({
5739
+ node_id: z28.string().min(1),
5740
+ start: z28.string().optional(),
5741
+ end: z28.string().optional(),
5742
+ span: z28.string().optional(),
5743
+ max_points: z28.number().int().min(1).max(500).optional(),
5744
+ metrics: z28.string().optional()
5745
+ });
5746
+ var logsLatestInput = z28.object({
5747
+ node_id: z28.string().min(1),
5748
+ stream: z28.enum(["serial", "kernel"]).default("kernel"),
5749
+ count: z28.number().int().min(1).max(1e3).optional(),
5750
+ before: z28.string().optional(),
5751
+ start: z28.string().optional(),
5752
+ cursor: z28.string().optional()
5753
+ });
5754
+ var tailInput = z28.object({
5755
+ node_id: z28.string().min(1),
5756
+ duration: z28.number().int().min(1).max(120).optional(),
5757
+ max_events: z28.number().int().min(1).max(200).optional(),
5758
+ fields: z28.string().optional()
5685
5759
  });
5686
5760
  var logsTailInput = tailInput.extend({
5687
- stream: z27.enum(["serial", "kernel"]).default("kernel")
5761
+ stream: z28.enum(["serial", "kernel"]).default("kernel")
5688
5762
  });
5689
5763
  function expandSpan(span, start, end) {
5690
5764
  if (start?.trim() && end?.trim()) {
@@ -5765,7 +5839,7 @@ var telemetryLatestBatchCapability = defineCapability({
5765
5839
  required: ["node_ids"]
5766
5840
  }
5767
5841
  },
5768
- input: z27.object({ node_ids: z27.array(z27.uuid()).min(1).max(100) }),
5842
+ input: z28.object({ node_ids: z28.array(z28.uuid()).min(1).max(100) }),
5769
5843
  execute: async (ctx, input) => getLatestTelemetry(ctx.fetch, { node_ids: input.node_ids })
5770
5844
  });
5771
5845
  var logsLatestCapability = defineCapability({
@@ -5837,9 +5911,9 @@ var telemetrySnapshotCapability = defineCapability({
5837
5911
  required: ["node_id"]
5838
5912
  }
5839
5913
  },
5840
- input: z27.object({
5841
- node_id: z27.string().min(1),
5842
- limit: z27.number().int().min(1).max(1e3).optional()
5914
+ input: z28.object({
5915
+ node_id: z28.string().min(1),
5916
+ limit: z28.number().int().min(1).max(1e3).optional()
5843
5917
  }),
5844
5918
  execute: async (ctx, input) => getNodeLatestTelemetry(ctx.fetch, input.node_id, { limit: input.limit ?? 1 })
5845
5919
  });
@@ -5906,12 +5980,12 @@ var observabilityCapabilities = [
5906
5980
  ];
5907
5981
 
5908
5982
  // ../../packages/capabilities/dist/capabilities/organization-invites.js
5909
- import { z as z28 } from "zod";
5910
- var organizationInviteInput = z28.object({
5911
- organization_id: z28.uuid().optional(),
5912
- email: z28.string().trim().toLowerCase().pipe(z28.email()),
5913
- supplier: z28.boolean().optional(),
5914
- send_email: z28.boolean().optional().describe("Defaults to true for an existing organization; false returns a link. Signup invites cannot be emailed.")
5983
+ import { z as z29 } from "zod";
5984
+ var organizationInviteInput = z29.object({
5985
+ organization_id: z29.uuid().optional(),
5986
+ email: z29.string().trim().toLowerCase().pipe(z29.email()),
5987
+ supplier: z29.boolean().optional(),
5988
+ send_email: z29.boolean().optional().describe("Defaults to true for an existing organization; false returns a link. Signup invites cannot be emailed.")
5915
5989
  }).superRefine((input, ctx) => {
5916
5990
  if (!input.organization_id && input.send_email === true) {
5917
5991
  ctx.addIssue({
@@ -5973,33 +6047,33 @@ var organizationInviteCapability = defineCapability({
5973
6047
  });
5974
6048
 
5975
6049
  // ../../packages/capabilities/dist/capabilities/networks.js
5976
- import { z as z29 } from "zod";
6050
+ import { z as z30 } from "zod";
5977
6051
  var globalInput = {
5978
- $positionals: z29.array(z29.string()).optional(),
5979
- guided: z29.boolean().optional(),
5980
- idempotencyKey: z29.string().optional(),
5981
- noBrowser: z29.boolean().optional(),
5982
- noWait: z29.boolean().optional(),
5983
- overwrite: z29.boolean().optional(),
5984
- print: z29.boolean().optional(),
5985
- wait: z29.boolean().optional(),
5986
- yes: z29.boolean().optional()
6052
+ $positionals: z30.array(z30.string()).optional(),
6053
+ guided: z30.boolean().optional(),
6054
+ idempotencyKey: z30.string().optional(),
6055
+ noBrowser: z30.boolean().optional(),
6056
+ noWait: z30.boolean().optional(),
6057
+ overwrite: z30.boolean().optional(),
6058
+ print: z30.boolean().optional(),
6059
+ wait: z30.boolean().optional(),
6060
+ yes: z30.boolean().optional()
5987
6061
  };
5988
- var noOptionsInput = z29.object(globalInput).strict();
5989
- var connectInput2 = z29.object({
6062
+ var noOptionsInput = z30.object(globalInput).strict();
6063
+ var connectInput2 = z30.object({
5990
6064
  ...globalInput,
5991
- identityFile: z29.string().optional(),
5992
- output: z29.string().optional(),
5993
- user: z29.string().optional()
6065
+ identityFile: z30.string().optional(),
6066
+ output: z30.string().optional(),
6067
+ user: z30.string().optional()
5994
6068
  }).strict();
5995
- var listInput = z29.object({ ...globalInput, cursor: z29.string().optional(), limit: z29.string().optional() }).strict();
5996
- var networkCreateInput = z29.object({ ...globalInput, cidr: z29.string().optional(), name: z29.string().optional() }).strict();
5997
- var networkUpdateInput = z29.object({ ...globalInput, name: z29.string().optional() }).strict();
5998
- var vpnConfigureInput = z29.object({
6069
+ var listInput = z30.object({ ...globalInput, cursor: z30.string().optional(), limit: z30.string().optional() }).strict();
6070
+ var networkCreateInput = z30.object({ ...globalInput, cidr: z30.string().optional(), name: z30.string().optional() }).strict();
6071
+ var networkUpdateInput = z30.object({ ...globalInput, name: z30.string().optional() }).strict();
6072
+ var vpnConfigureInput = z30.object({
5999
6073
  ...globalInput,
6000
- name: z29.string().optional(),
6001
- output: z29.string().optional(),
6002
- privateKey: z29.string().optional()
6074
+ name: z30.string().optional(),
6075
+ output: z30.string().optional(),
6076
+ privateKey: z30.string().optional()
6003
6077
  }).strict();
6004
6078
  function executeNetwork(command) {
6005
6079
  return (context, input) => {
@@ -6012,36 +6086,36 @@ function executeNetwork(command) {
6012
6086
  function mutationOptions2(idempotencyKey) {
6013
6087
  return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
6014
6088
  }
6015
- var networkIdInput = z29.object({ networkId: z29.string() });
6016
- var networkCreateFields = z29.object({
6017
- name: z29.string(),
6018
- cidr: z29.string().optional(),
6019
- description: z29.string().optional(),
6020
- confirm: z29.boolean().optional()
6021
- });
6022
- var networkUpdateFields = z29.object({
6023
- networkId: z29.string(),
6024
- name: z29.string().optional(),
6025
- description: z29.string().optional(),
6026
- clearDescription: z29.boolean().optional(),
6027
- confirm: z29.boolean().optional()
6089
+ var networkIdInput = z30.object({ networkId: z30.string() });
6090
+ var networkCreateFields = z30.object({
6091
+ name: z30.string(),
6092
+ cidr: z30.string().optional(),
6093
+ description: z30.string().optional(),
6094
+ confirm: z30.boolean().optional()
6095
+ });
6096
+ var networkUpdateFields = z30.object({
6097
+ networkId: z30.string(),
6098
+ name: z30.string().optional(),
6099
+ description: z30.string().optional(),
6100
+ clearDescription: z30.boolean().optional(),
6101
+ confirm: z30.boolean().optional()
6028
6102
  }).refine((input) => !(input.clearDescription && input.description !== void 0), {
6029
6103
  message: "Use either description or clearDescription, not both."
6030
6104
  }).refine((input) => input.name !== void 0 || input.description !== void 0 || input.clearDescription, { message: "Provide name, description, or clearDescription." });
6031
- var networkDeleteInput = networkIdInput.extend({ confirm: z29.boolean().optional() });
6032
- var vpnPeerCreateInput = z29.object({
6033
- publicKey: z29.string(),
6034
- label: z29.string().optional(),
6035
- confirm: z29.boolean().optional()
6036
- });
6037
- var vpnPeerDeleteInput = z29.object({ peerId: z29.string(), confirm: z29.boolean().optional() });
6038
- var reservationInput2 = { reservationId: z29.string() };
6105
+ var networkDeleteInput = networkIdInput.extend({ confirm: z30.boolean().optional() });
6106
+ var vpnPeerCreateInput = z30.object({
6107
+ publicKey: z30.string(),
6108
+ label: z30.string().optional(),
6109
+ confirm: z30.boolean().optional()
6110
+ });
6111
+ var vpnPeerDeleteInput = z30.object({ peerId: z30.string(), confirm: z30.boolean().optional() });
6112
+ var reservationInput2 = { reservationId: z30.string() };
6039
6113
  var privateNetworkListCapability = defineCapability({
6040
6114
  id: "networks.list",
6041
6115
  domain: "networks",
6042
6116
  roles: ["user"],
6043
6117
  mutation: "read",
6044
- input: z29.object({}),
6118
+ input: z30.object({}),
6045
6119
  description: "List this tenant's private networks.",
6046
6120
  mcp: { name: "networks_list" },
6047
6121
  slack: false,
@@ -6094,7 +6168,7 @@ var privateNetworkCreateCapability = defineCapability({
6094
6168
  domain: "networks",
6095
6169
  roles: ["user"],
6096
6170
  mutation: "preview-confirm",
6097
- input: networkCreateFields.extend({ idempotencyKey: z29.string().optional() }),
6171
+ input: networkCreateFields.extend({ idempotencyKey: z30.string().optional() }),
6098
6172
  description: "Create a private network.",
6099
6173
  mcp: { name: "networks_create", input: networkCreateFields },
6100
6174
  slack: false,
@@ -6122,7 +6196,7 @@ var privateNetworkUpdateCapability = defineCapability({
6122
6196
  domain: "networks",
6123
6197
  roles: ["user"],
6124
6198
  mutation: "preview-confirm",
6125
- input: networkUpdateFields.safeExtend({ idempotencyKey: z29.string().optional() }),
6199
+ input: networkUpdateFields.safeExtend({ idempotencyKey: z30.string().optional() }),
6126
6200
  description: "Update a private network's name or description. Pass clearDescription: true to null out the description instead of setting it.",
6127
6201
  mcp: { name: "networks_update", input: networkUpdateFields },
6128
6202
  slack: false,
@@ -6153,7 +6227,7 @@ var privateNetworkDeleteCapability = defineCapability({
6153
6227
  domain: "networks",
6154
6228
  roles: ["user"],
6155
6229
  mutation: "preview-confirm",
6156
- input: networkDeleteInput.extend({ idempotencyKey: z29.string().optional() }),
6230
+ input: networkDeleteInput.extend({ idempotencyKey: z30.string().optional() }),
6157
6231
  description: "Delete a private network.",
6158
6232
  mcp: { name: "networks_delete", input: networkDeleteInput },
6159
6233
  slack: false,
@@ -6184,9 +6258,9 @@ var vpnConnectionListCapability = defineCapability({
6184
6258
  domain: "vpn",
6185
6259
  roles: ["user"],
6186
6260
  mutation: "read",
6187
- input: z29.object({}),
6261
+ input: z30.object({}),
6188
6262
  description: "List WireGuard VPN peers registered on a reservation.",
6189
- mcp: { name: "vpn_peers_list", input: z29.object(reservationInput2) },
6263
+ mcp: { name: "vpn_peers_list", input: z30.object(reservationInput2) },
6190
6264
  slack: false,
6191
6265
  cli: {
6192
6266
  command: ["vpn-connections", "list"],
@@ -6211,11 +6285,11 @@ var vpnConnectionConfigureCapability = defineCapability({
6211
6285
  domain: "vpn",
6212
6286
  roles: ["user"],
6213
6287
  mutation: "preview-confirm",
6214
- input: vpnPeerCreateInput.extend({ idempotencyKey: z29.string().optional() }),
6288
+ input: vpnPeerCreateInput.extend({ idempotencyKey: z30.string().optional() }),
6215
6289
  description: "Register a WireGuard VPN peer public key on a reservation.",
6216
6290
  mcp: {
6217
6291
  name: "vpn_peers_create",
6218
- input: z29.object({ ...reservationInput2, ...vpnPeerCreateInput.shape })
6292
+ input: z30.object({ ...reservationInput2, ...vpnPeerCreateInput.shape })
6219
6293
  },
6220
6294
  slack: false,
6221
6295
  cli: {
@@ -6243,11 +6317,11 @@ var vpnConnectionDisconnectCapability = defineCapability({
6243
6317
  domain: "vpn",
6244
6318
  roles: ["user"],
6245
6319
  mutation: "preview-confirm",
6246
- input: vpnPeerDeleteInput.extend({ idempotencyKey: z29.string().optional() }),
6320
+ input: vpnPeerDeleteInput.extend({ idempotencyKey: z30.string().optional() }),
6247
6321
  description: "Revoke a WireGuard VPN peer from a reservation.",
6248
6322
  mcp: {
6249
6323
  name: "vpn_peers_delete",
6250
- input: z29.object({ ...reservationInput2, ...vpnPeerDeleteInput.shape })
6324
+ input: z30.object({ ...reservationInput2, ...vpnPeerDeleteInput.shape })
6251
6325
  },
6252
6326
  slack: false,
6253
6327
  cli: {
@@ -6318,20 +6392,20 @@ var networkCapabilities = [
6318
6392
  ];
6319
6393
 
6320
6394
  // ../../packages/capabilities/dist/capabilities/registry.js
6321
- import { z as z30 } from "zod";
6395
+ import { z as z31 } from "zod";
6322
6396
  var globalInput2 = {
6323
- $positionals: z30.array(z30.string()).default([]),
6324
- yes: z30.boolean().optional()
6397
+ $positionals: z31.array(z31.string()).default([]),
6398
+ yes: z31.boolean().optional()
6325
6399
  };
6326
- var emptyInput4 = z30.object(globalInput2).strict();
6327
- var repositoryInput = z30.object({
6400
+ var emptyInput4 = z31.object(globalInput2).strict();
6401
+ var repositoryInput = z31.object({
6328
6402
  ...globalInput2,
6329
- repository: z30.string().optional().describe("Repository name, with or without your organization's namespace.")
6403
+ repository: z31.string().optional().describe("Repository name, with or without your organization's namespace.")
6330
6404
  }).strict();
6331
- var tagInput = z30.object({
6405
+ var tagInput = z31.object({
6332
6406
  ...globalInput2,
6333
- repository: z30.string().optional().describe("Repository name, with or without your organization's namespace."),
6334
- tag: z30.string().optional().describe("Tag to delete, such as v1.")
6407
+ repository: z31.string().optional().describe("Repository name, with or without your organization's namespace."),
6408
+ tag: z31.string().optional().describe("Tag to delete, such as v1.")
6335
6409
  }).strict();
6336
6410
  function cliInteraction(context) {
6337
6411
  return context.cli?.interaction;
@@ -6638,14 +6712,14 @@ var registryCapabilities = [
6638
6712
  ];
6639
6713
 
6640
6714
  // ../../packages/capabilities/dist/capabilities/reservation-list.js
6641
- import { z as z31 } from "zod";
6642
- var reservationListInput = z31.object({
6643
- customerId: z31.string().uuid().optional(),
6644
- listingId: z31.string().uuid().optional(),
6645
- listingTermId: z31.string().uuid().optional(),
6646
- status: z31.enum(["confirmed", "active", "completed", "cancelled"]).optional(),
6647
- cursor: z31.string().optional(),
6648
- limit: z31.number().int().min(1).max(100).optional()
6715
+ import { z as z32 } from "zod";
6716
+ var reservationListInput = z32.object({
6717
+ customerId: z32.string().uuid().optional(),
6718
+ listingId: z32.string().uuid().optional(),
6719
+ listingTermId: z32.string().uuid().optional(),
6720
+ status: z32.enum(["confirmed", "active", "completed", "cancelled"]).optional(),
6721
+ cursor: z32.string().optional(),
6722
+ limit: z32.number().int().min(1).max(100).optional()
6649
6723
  });
6650
6724
  var reservationListCapability = defineCapability({
6651
6725
  id: "reservation.list",
@@ -6695,20 +6769,20 @@ var reservationListCapability = defineCapability({
6695
6769
  });
6696
6770
 
6697
6771
  // ../../packages/capabilities/dist/capabilities/volumes.js
6698
- import { z as z32 } from "zod";
6699
- var storageCliInput = z32.object({
6700
- $positionals: z32.array(z32.string()).optional(),
6701
- contentType: z32.string().optional(),
6702
- cursor: z32.string().optional(),
6703
- idempotencyKey: z32.string().optional(),
6704
- limit: z32.union([z32.string(), z32.number()]).optional(),
6705
- name: z32.string().optional(),
6706
- output: z32.string().optional(),
6707
- overwrite: z32.boolean().optional(),
6708
- path: z32.string().optional(),
6709
- prefix: z32.string().optional(),
6710
- source: z32.string().optional(),
6711
- yes: z32.boolean().optional()
6772
+ import { z as z33 } from "zod";
6773
+ var storageCliInput = z33.object({
6774
+ $positionals: z33.array(z33.string()).optional(),
6775
+ contentType: z33.string().optional(),
6776
+ cursor: z33.string().optional(),
6777
+ idempotencyKey: z33.string().optional(),
6778
+ limit: z33.union([z33.string(), z33.number()]).optional(),
6779
+ name: z33.string().optional(),
6780
+ output: z33.string().optional(),
6781
+ overwrite: z33.boolean().optional(),
6782
+ path: z33.string().optional(),
6783
+ prefix: z33.string().optional(),
6784
+ source: z33.string().optional(),
6785
+ yes: z33.boolean().optional()
6712
6786
  }).strict();
6713
6787
  function storageExecutor(context) {
6714
6788
  const interaction = context.cli?.interaction;
@@ -6744,7 +6818,7 @@ function storageCapability({ id, command, description, mutation, outcome, human,
6744
6818
  execute: async (context, input) => storageExecutor(context)(id, input)
6745
6819
  });
6746
6820
  }
6747
- var filesListInput = z32.object({ driveId: z32.string(), prefix: z32.string().optional() });
6821
+ var filesListInput = z33.object({ driveId: z33.string(), prefix: z33.string().optional() });
6748
6822
  async function* listFiles(context, input) {
6749
6823
  const prefix = input.prefix ?? "";
6750
6824
  const folder = prefix.includes("/") ? prefix.slice(0, prefix.lastIndexOf("/")) : "";
@@ -6788,16 +6862,16 @@ var volumeFilesListCapability = defineCapability({
6788
6862
  }
6789
6863
  }
6790
6864
  });
6791
- var volumePageInput = z32.object({
6792
- limit: z32.number().int().min(1).max(100).optional(),
6793
- cursor: z32.string().optional()
6865
+ var volumePageInput = z33.object({
6866
+ limit: z33.number().int().min(1).max(100).optional(),
6867
+ cursor: z33.string().optional()
6794
6868
  });
6795
- var driveInput = z32.object({ driveId: z32.string() });
6796
- var driveWrite = driveInput.extend({ confirm: z32.boolean().optional() });
6797
- var volumeCreateInput = z32.object({
6798
- name: z32.string(),
6799
- sourceDriveId: z32.string().optional(),
6800
- confirm: z32.boolean().optional()
6869
+ var driveInput = z33.object({ driveId: z33.string() });
6870
+ var driveWrite = driveInput.extend({ confirm: z33.boolean().optional() });
6871
+ var volumeCreateInput = z33.object({
6872
+ name: z33.string(),
6873
+ sourceDriveId: z33.string().optional(),
6874
+ confirm: z33.boolean().optional()
6801
6875
  });
6802
6876
  var volumeListCapability = defineCapability({
6803
6877
  id: "storage.volumes.list",
@@ -6805,7 +6879,7 @@ var volumeListCapability = defineCapability({
6805
6879
  roles: ["user"],
6806
6880
  description: "List a page of storage volumes, newest updated first. Pass next_cursor as cursor to continue.",
6807
6881
  mutation: "read",
6808
- input: volumePageInput.extend({ scope: z32.enum(["all", "managed"]).optional() }),
6882
+ input: volumePageInput.extend({ scope: z33.enum(["all", "managed"]).optional() }),
6809
6883
  mcp: { name: "storage_volumes_list", input: volumePageInput },
6810
6884
  slack: false,
6811
6885
  execute: (context, input) => listDrives(context.fetch, {
@@ -6860,7 +6934,7 @@ var volumeCreateCapability = defineCapability({
6860
6934
  roles: ["user"],
6861
6935
  description: "Create a storage volume (drive), optionally cloned from an existing source drive.",
6862
6936
  mutation: "preview-confirm",
6863
- input: volumeCreateInput.extend({ idempotencyKey: z32.string().optional() }),
6937
+ input: volumeCreateInput.extend({ idempotencyKey: z33.string().optional() }),
6864
6938
  mcp: { name: "storage_volumes_create", input: volumeCreateInput },
6865
6939
  slack: false,
6866
6940
  execute: (context, input) => createDrive(context.fetch, { name: input.name, source_drive_id: input.sourceDriveId ?? null }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
@@ -6939,7 +7013,7 @@ var volumeDeleteCapability = defineCapability({
6939
7013
  roles: ["user"],
6940
7014
  description: "Delete a storage volume (drive).",
6941
7015
  mutation: "preview-confirm",
6942
- input: driveWrite.extend({ idempotencyKey: z32.string().optional() }),
7016
+ input: driveWrite.extend({ idempotencyKey: z33.string().optional() }),
6943
7017
  mcp: { name: "storage_volumes_delete", input: driveWrite },
6944
7018
  slack: false,
6945
7019
  execute: async (context, input) => {
@@ -7020,21 +7094,21 @@ var volumeCapabilities = [
7020
7094
  ];
7021
7095
 
7022
7096
  // ../../packages/capabilities/dist/capabilities/users.js
7023
- import { z as z33 } from "zod";
7024
- var directoryLimit = z33.number().int().min(1).max(100).default(25);
7025
- var directoryOffset = z33.number().int().nonnegative().optional();
7026
- var organizationListInput = z33.object({
7027
- q: z33.string().trim().optional().describe("Company name, contact/member name, or email."),
7028
- supplier: z33.boolean().optional(),
7029
- inference_provider: z33.boolean().optional(),
7030
- approved: z33.boolean().optional(),
7031
- ids: z33.array(z33.uuid()).min(1).max(100).optional(),
7097
+ import { z as z34 } from "zod";
7098
+ var directoryLimit = z34.number().int().min(1).max(100).default(25);
7099
+ var directoryOffset = z34.number().int().nonnegative().optional();
7100
+ var organizationListInput = z34.object({
7101
+ q: z34.string().trim().optional().describe("Company name, contact/member name, or email."),
7102
+ supplier: z34.boolean().optional(),
7103
+ inference_provider: z34.boolean().optional(),
7104
+ approved: z34.boolean().optional(),
7105
+ ids: z34.array(z34.uuid()).min(1).max(100).optional(),
7032
7106
  limit: directoryLimit,
7033
7107
  offset: directoryOffset
7034
7108
  });
7035
- var usersListInput = z33.object({
7036
- q: z33.string().trim().optional().describe("Person name, email, or company name."),
7037
- organization_id: z33.uuid().optional(),
7109
+ var usersListInput = z34.object({
7110
+ q: z34.string().trim().optional().describe("Person name, email, or company name."),
7111
+ organization_id: z34.uuid().optional(),
7038
7112
  limit: directoryLimit,
7039
7113
  offset: directoryOffset
7040
7114
  });
@@ -7220,7 +7294,8 @@ var catalog = [
7220
7294
  ...supplierNetworkingCapabilities,
7221
7295
  adminSshCapability,
7222
7296
  organizationInviteCapability,
7223
- creditGrantCapability
7297
+ creditGrantCapability,
7298
+ giftCreateCapability
7224
7299
  ];
7225
7300
 
7226
7301
  // ../../packages/capabilities/dist/output-safety.js