@ornncompute/cli 1.0.243 → 1.0.244

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.
@@ -1,3 +1,378 @@
1
+ // ../../packages/api-client/dist/inference/index.js
2
+ async function listModels(request) {
3
+ return await request("/v1/inference/models");
4
+ }
5
+ function createChatCompletion(fetcher, body2, signal) {
6
+ return fetcher("/v1/inference/chat/completions", {
7
+ method: "POST",
8
+ headers: { "Content-Type": "application/json" },
9
+ body: JSON.stringify(body2),
10
+ signal
11
+ });
12
+ }
13
+ function requestQuery(query3) {
14
+ const params = new URLSearchParams();
15
+ for (const [key, value] of Object.entries(query3)) {
16
+ if (value !== void 0)
17
+ params.set(key, String(value));
18
+ }
19
+ return params.size ? `?${params}` : "";
20
+ }
21
+ function listInferenceRequests(request, query3 = {}, signal) {
22
+ return request(`/v1/inference/requests${requestQuery(query3)}`, {
23
+ method: "GET",
24
+ signal
25
+ });
26
+ }
27
+ function listStaffInferenceRequests(request, query3 = {}, signal) {
28
+ return request(`/v1/staff/inference/requests${requestQuery(query3)}`, {
29
+ method: "GET",
30
+ signal
31
+ });
32
+ }
33
+ function listProviderInferenceRequests(request, query3 = {}, signal) {
34
+ return request(`/v1/inference/provider/requests${requestQuery(query3)}`, {
35
+ method: "GET",
36
+ signal
37
+ });
38
+ }
39
+ async function listStaffInferenceListings(request, query3 = {}) {
40
+ const params = new URLSearchParams();
41
+ if (query3.provider_organization_id !== void 0) {
42
+ params.set("provider_organization_id", query3.provider_organization_id);
43
+ }
44
+ if (query3.after !== void 0)
45
+ params.set("after", query3.after);
46
+ if (query3.limit !== void 0)
47
+ params.set("limit", String(query3.limit));
48
+ const suffix = params.size ? `?${params}` : "";
49
+ return await request(`/v1/staff/inference/models${suffix}`);
50
+ }
51
+ async function getStaffInferenceListing(request, listingId2) {
52
+ return await request(`/v1/staff/inference/models/${encodeURIComponent(listingId2)}`);
53
+ }
54
+ async function createStaffInferenceListing(request, body2) {
55
+ return await request("/v1/staff/inference/models", {
56
+ method: "POST",
57
+ body: body2
58
+ });
59
+ }
60
+ async function updateStaffInferenceListing(request, listingId2, body2) {
61
+ return await request(`/v1/staff/inference/models/${encodeURIComponent(listingId2)}`, {
62
+ method: "PATCH",
63
+ body: body2
64
+ });
65
+ }
66
+ async function listProviderInferenceListings(request, query3 = {}) {
67
+ const params = new URLSearchParams();
68
+ if (query3.after !== void 0)
69
+ params.set("after", query3.after);
70
+ if (query3.limit !== void 0)
71
+ params.set("limit", String(query3.limit));
72
+ const suffix = params.size ? `?${params}` : "";
73
+ return await request(`/v1/inference/provider/models${suffix}`);
74
+ }
75
+ async function getProviderInferenceListing(request, listingId2) {
76
+ return await request(`/v1/inference/provider/models/${encodeURIComponent(listingId2)}`);
77
+ }
78
+ async function createProviderInferenceListing(request, body2) {
79
+ return await request("/v1/inference/provider/models", {
80
+ method: "POST",
81
+ body: body2
82
+ });
83
+ }
84
+ async function updateProviderInferenceListing(request, listingId2, body2) {
85
+ return await request(`/v1/inference/provider/models/${encodeURIComponent(listingId2)}`, {
86
+ method: "PATCH",
87
+ body: body2
88
+ });
89
+ }
90
+
91
+ // ../../packages/api-client/dist/ledger/index.js
92
+ function queryString(input) {
93
+ const query3 = new URLSearchParams();
94
+ for (const [key, value] of Object.entries(input)) {
95
+ if (value === void 0)
96
+ continue;
97
+ for (const item of Array.isArray(value) ? value : [value])
98
+ query3.append(key, String(item));
99
+ }
100
+ return query3.size ? `?${query3}` : "";
101
+ }
102
+ function listAccounts(request, input = {}, signal) {
103
+ return request(`/v1/ledger/accounts${queryString({
104
+ organization_id: Array.isArray(input.organization_id) ? input.organization_id.join(",") : input.organization_id
105
+ })}`, {
106
+ method: "GET",
107
+ signal
108
+ });
109
+ }
110
+ function listInferenceCharges(request, input = {}, signal) {
111
+ return request(`/v1/ledger/inference-charges${queryString(input)}`, {
112
+ method: "GET",
113
+ signal
114
+ });
115
+ }
116
+
117
+ // ../../packages/capabilities/dist/capabilities/inference.js
118
+ import { z as z2 } from "zod";
119
+
120
+ // ../../packages/capabilities/dist/capability.js
121
+ import { z } from "zod";
122
+
123
+ // ../../packages/capabilities/dist/names.js
124
+ function namesFromId(id) {
125
+ const wire = id.replaceAll(".", "_").replaceAll("-", "_");
126
+ return { mcp: wire, slack: wire };
127
+ }
128
+
129
+ // ../../packages/capabilities/dist/capability.js
130
+ function preview(action, payload) {
131
+ return { status: "preview", requiresConfirm: true, confirmed: false, action, payload };
132
+ }
133
+ function defineCapability(spec) {
134
+ const names = namesFromId(spec.id);
135
+ const { cli, mcp, slack, ...rest } = spec;
136
+ return {
137
+ ...rest,
138
+ ...cli ? { cli } : {},
139
+ ...mcp === false ? {} : { mcp: { ...mcp, name: mcp?.name ?? names.mcp } },
140
+ ...slack === false ? {} : {
141
+ slack: {
142
+ name: slack?.name ?? names.slack,
143
+ ...slack?.parameters ? { parameters: slack.parameters } : {}
144
+ }
145
+ }
146
+ };
147
+ }
148
+
149
+ // ../../packages/capabilities/dist/capabilities/inference.js
150
+ var text = z2.string().min(1);
151
+ var timestamp = z2.iso.datetime({ offset: true });
152
+ var limit = z2.coerce.number().int().min(1).max(100).optional();
153
+ var listingId = z2.strictObject({ listing_id: z2.uuid() });
154
+ var page = z2.strictObject({ after: text.optional(), limit });
155
+ var rates = {
156
+ provider_input_usd_per_million_tokens: z2.string().nullable().optional(),
157
+ provider_cached_input_usd_per_million_tokens: z2.string().nullable().optional(),
158
+ provider_output_usd_per_million_tokens: z2.string().nullable().optional()
159
+ };
160
+ var createListing = z2.strictObject({
161
+ public_model_id: text,
162
+ upstream_url: text,
163
+ upstream_model: text,
164
+ upstream_credential: z2.string().nullable().optional(),
165
+ ...rates
166
+ });
167
+ var updateListing = createListing.omit({ public_model_id: true }).partial().extend({
168
+ active: z2.boolean().optional()
169
+ });
170
+ var requests = z2.strictObject({
171
+ public_model_id: text.optional(),
172
+ from: timestamp.optional(),
173
+ to: timestamp.optional(),
174
+ after: text.optional(),
175
+ limit,
176
+ summary: z2.literal("usage").optional()
177
+ }).superRefine((input, ctx) => {
178
+ if (input.summary && (!input.from || !input.to || input.after || input.limit !== void 0)) {
179
+ ctx.addIssue({
180
+ code: "custom",
181
+ message: "Usage summaries require from/to and no pagination."
182
+ });
183
+ }
184
+ });
185
+ var chargeFields = {
186
+ public_model_id: text.optional(),
187
+ request_id: z2.uuid().optional(),
188
+ from: timestamp.optional(),
189
+ to: timestamp.optional(),
190
+ cursor: text.optional(),
191
+ limit: z2.coerce.number().int().min(1).max(500).optional(),
192
+ summary: z2.literal("daily").optional()
193
+ };
194
+ var charges = z2.strictObject({ ...chargeFields, view: z2.literal("provider").optional() });
195
+ var staffCharges = z2.strictObject({
196
+ ...chargeFields,
197
+ organization_id: z2.uuid().optional(),
198
+ provider_organization_id: z2.uuid().optional()
199
+ });
200
+ var completionBody = z2.looseObject({
201
+ model: text,
202
+ messages: z2.array(z2.looseObject({ role: text })),
203
+ stream: z2.boolean().nullable().optional()
204
+ });
205
+ function cliInput(schema) {
206
+ return z2.record(z2.string(), z2.unknown()).transform((input, ctx) => {
207
+ const { $positionals = [], ...fields } = input;
208
+ if (!Array.isArray($positionals) || $positionals.length) {
209
+ ctx.addIssue({ code: "custom", message: "Use named flags for this command." });
210
+ return z2.NEVER;
211
+ }
212
+ if (typeof fields.body === "string") {
213
+ try {
214
+ fields.body = JSON.parse(fields.body);
215
+ } catch {
216
+ ctx.addIssue({ code: "custom", path: ["body"], message: "Supply a JSON object." });
217
+ return z2.NEVER;
218
+ }
219
+ }
220
+ return Object.fromEntries(Object.entries(fields).map(([key, value]) => [
221
+ key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`),
222
+ value
223
+ ]));
224
+ }).pipe(schema);
225
+ }
226
+ function operation(spec) {
227
+ const command = [...spec.staff ? ["admin"] : [], "inference", ...spec.command];
228
+ const human = `ornn ${command.join(" ")}${spec.usage ? ` ${spec.usage}` : ""}`;
229
+ return defineCapability({
230
+ id: `${spec.staff ? "admin." : ""}inference.${spec.command.join(".")}`,
231
+ domain: "inference",
232
+ roles: spec.staff ? ["admin"] : ["user", "admin"],
233
+ mutation: spec.write ? "immediate" : "read",
234
+ description: spec.description,
235
+ input: spec.input,
236
+ slack: false,
237
+ mcp: spec.mcpInput ? { input: spec.mcpInput } : {},
238
+ cli: {
239
+ command,
240
+ input: cliInput(spec.input),
241
+ vnext: {
242
+ audience: spec.staff ? "admin" : "customer",
243
+ arguments: "semantic",
244
+ category: "resource",
245
+ outcome: spec.description,
246
+ human,
247
+ automation: `${human} --format json`
248
+ }
249
+ },
250
+ execute: (ctx, input) => {
251
+ if (spec.staff && ctx.role !== "admin")
252
+ throw new Error("This capability requires the admin role.");
253
+ return spec.execute(ctx, spec.input.parse(input));
254
+ }
255
+ });
256
+ }
257
+ async function readRequests(list, ctx, input) {
258
+ const { summary, ...query3 } = input;
259
+ return summary ? list(ctx.fetch, { ...query3, summary, from: input.from, to: input.to }) : list(ctx.fetch, query3);
260
+ }
261
+ async function readCharges(ctx, input) {
262
+ const { summary, ...query3 } = input;
263
+ if (summary) {
264
+ if (!query3.from || !query3.to || query3.cursor || query3.limit !== void 0) {
265
+ throw new Error("Daily summaries require from/to and no pagination.");
266
+ }
267
+ return listInferenceCharges(ctx.fetch, { ...query3, summary, from: query3.from, to: query3.to });
268
+ }
269
+ return listInferenceCharges(ctx.fetch, query3);
270
+ }
271
+ var requestUsage = "[--public-model-id ID] [--from TIME --to TIME] [--after CURSOR] [--limit 1-100] [--summary usage]";
272
+ var chargeUsage = "[--public-model-id ID] [--request-id UUID] [--from TIME --to TIME] [--cursor CURSOR] [--limit 1-500] [--summary daily]";
273
+ var inferenceCapabilities = [
274
+ operation({
275
+ command: ["models", "list"],
276
+ description: "List available inference models and their token prices in USD per million tokens.",
277
+ input: z2.strictObject({}),
278
+ execute: (ctx) => listModels(ctx.fetch)
279
+ }),
280
+ operation({
281
+ command: ["completions", "create"],
282
+ description: "Call an inference model using a Chat Completions body. Generation parameters pass through unchanged. Spends the organization's credits; returns the upstream JSON response. MCP uses non-streaming responses.",
283
+ input: z2.strictObject({ body: completionBody }),
284
+ mcpInput: z2.strictObject({
285
+ body: completionBody.extend({ stream: z2.literal(false).nullable().optional() })
286
+ }),
287
+ usage: "--body JSON",
288
+ write: true,
289
+ execute: async (ctx, { body: body2 }) => {
290
+ if (body2.stream && ctx.cli?.interaction?.format !== "human") {
291
+ throw new Error("Streaming returns raw SSE. Use --format human in the CLI, or stream=false in MCP.");
292
+ }
293
+ if (!ctx.fetchResponse)
294
+ throw new Error("This client does not support completion responses.");
295
+ const response = await createChatCompletion(ctx.fetchResponse, body2);
296
+ return body2.stream ? response : response.json();
297
+ }
298
+ }),
299
+ operation({
300
+ command: ["requests", "list"],
301
+ description: "Read the organization's inference requests, or summary=usage for token totals and per-model timing statistics. Pass next_cursor unchanged as after. Timings are relay-observed milliseconds; prices remain exact decimal strings.",
302
+ input: requests,
303
+ usage: requestUsage,
304
+ execute: (ctx, input) => readRequests(listInferenceRequests, ctx, input)
305
+ }),
306
+ operation({
307
+ command: ["provider", "requests", "list"],
308
+ description: "Read requests served by this inference provider, or summary=usage for usage and timing statistics. Requires provider access. Customer identity is omitted; pass next_cursor as after.",
309
+ input: requests,
310
+ usage: requestUsage,
311
+ execute: (ctx, input) => readRequests(listProviderInferenceRequests, ctx, input)
312
+ }),
313
+ operation({
314
+ command: ["charges", "list"],
315
+ description: "Read recorded inference charges. Use view=provider for this provider's earnings; summary=daily returns daily and per-model totals for providers. Amounts are exact decimal strings in USD cents. Unaccounted requests have no receipt; pass next_cursor as cursor.",
316
+ input: charges,
317
+ usage: `${chargeUsage} [--view provider]`,
318
+ execute: readCharges
319
+ }),
320
+ ...[false, true].flatMap((staff) => [
321
+ operation({
322
+ command: [...staff ? [] : ["provider"], "models", "list"],
323
+ staff,
324
+ description: staff ? "List inference model listings across providers. Pass next_cursor as after." : "List this provider's inference model listings, including inactive models. Pass next_cursor as after.",
325
+ input: staff ? page.extend({ provider_organization_id: z2.uuid().optional() }) : page,
326
+ usage: `[--after CURSOR] [--limit 1-100]${staff ? " [--provider-organization-id UUID]" : ""}`,
327
+ execute: (ctx, input) => staff ? listStaffInferenceListings(ctx.fetch, input) : listProviderInferenceListings(ctx.fetch, input)
328
+ }),
329
+ operation({
330
+ command: [...staff ? [] : ["provider"], "models", "show"],
331
+ staff,
332
+ description: "Read an inference model listing by its listing UUID. Upstream credentials are never returned.",
333
+ input: listingId,
334
+ usage: "--listing-id UUID",
335
+ execute: (ctx, { listing_id }) => staff ? getStaffInferenceListing(ctx.fetch, listing_id) : getProviderInferenceListing(ctx.fetch, listing_id)
336
+ }),
337
+ operation({
338
+ command: [...staff ? [] : ["provider"], "models", "create"],
339
+ staff,
340
+ description: "Create an inference model listing with an upstream endpoint and provider token prices. Prices are decimal USD per million tokens; the optional upstream credential is stored encrypted.",
341
+ input: z2.strictObject({
342
+ body: staff ? createListing.extend({ provider_organization_id: z2.uuid() }) : createListing
343
+ }),
344
+ usage: "--body JSON",
345
+ write: true,
346
+ execute: (ctx, { body: body2 }) => staff ? createStaffInferenceListing(ctx.fetch, body2) : createProviderInferenceListing(ctx.fetch, body2)
347
+ }),
348
+ operation({
349
+ command: [...staff ? [] : ["provider"], "models", "update"],
350
+ staff,
351
+ description: "Update an inference listing's endpoint, token prices, credential, or active flag. Send only changed fields; null clears a nullable value.",
352
+ input: listingId.extend({ body: updateListing }),
353
+ usage: "--listing-id UUID --body JSON",
354
+ write: true,
355
+ execute: (ctx, { listing_id, body: body2 }) => staff ? updateStaffInferenceListing(ctx.fetch, listing_id, body2) : updateProviderInferenceListing(ctx.fetch, listing_id, body2)
356
+ })
357
+ ]),
358
+ operation({
359
+ command: ["requests", "list"],
360
+ staff: true,
361
+ description: "Read inference requests across organizations, or summary=usage for usage and per-model timing statistics. Pass next_cursor unchanged as after.",
362
+ input: requests,
363
+ usage: requestUsage,
364
+ execute: (ctx, input) => readRequests(listStaffInferenceRequests, ctx, input)
365
+ }),
366
+ operation({
367
+ command: ["charges", "list"],
368
+ staff: true,
369
+ description: "Read recorded inference charges across organizations, or summary=daily for daily and per-model totals. Money stays exact in decimal USD cents; pass next_cursor unchanged as cursor.",
370
+ input: staffCharges,
371
+ usage: `${chargeUsage} [--organization-id UUID] [--provider-organization-id UUID]`,
372
+ execute: readCharges
373
+ })
374
+ ];
375
+
1
376
  // ../../packages/api-client/dist/orchestrator/catalog.js
2
377
  var hardwareCatalogPath = "/v1/orchestrator/catalog/hardware";
3
378
  function getHardwareCatalog(request, signal) {
@@ -366,50 +741,19 @@ function rebootVirtualMachine(request, nodeId3, id, body2 = {}) {
366
741
  }
367
742
 
368
743
  // ../../packages/capabilities/dist/capabilities/supplier-networking.js
369
- import { z as z2 } from "zod";
370
-
371
- // ../../packages/capabilities/dist/capability.js
372
- import { z } from "zod";
373
-
374
- // ../../packages/capabilities/dist/names.js
375
- function namesFromId(id) {
376
- const wire = id.replaceAll(".", "_").replaceAll("-", "_");
377
- return { mcp: wire, slack: wire };
378
- }
379
-
380
- // ../../packages/capabilities/dist/capability.js
381
- function preview(action, payload) {
382
- return { status: "preview", requiresConfirm: true, confirmed: false, action, payload };
383
- }
384
- function defineCapability(spec) {
385
- const names = namesFromId(spec.id);
386
- const { cli, mcp, slack, ...rest } = spec;
387
- return {
388
- ...rest,
389
- ...cli ? { cli } : {},
390
- ...mcp === false ? {} : { mcp: { ...mcp, name: mcp?.name ?? names.mcp } },
391
- ...slack === false ? {} : {
392
- slack: {
393
- name: slack?.name ?? names.slack,
394
- ...slack?.parameters ? { parameters: slack.parameters } : {}
395
- }
396
- }
397
- };
398
- }
399
-
400
- // ../../packages/capabilities/dist/capabilities/supplier-networking.js
401
- var uuid = z2.uuid();
402
- var name = z2.string().trim().min(1).max(128);
403
- var idInput = z2.strictObject({ id: uuid });
404
- var connectionCreateInput = z2.discriminatedUnion("kind", [
405
- z2.strictObject({ organization_id: uuid, name, kind: z2.literal("reverse_ssh") }),
406
- z2.strictObject({
744
+ import { z as z3 } from "zod";
745
+ var uuid = z3.uuid();
746
+ var name = z3.string().trim().min(1).max(128);
747
+ var idInput = z3.strictObject({ id: uuid });
748
+ var connectionCreateInput = z3.discriminatedUnion("kind", [
749
+ z3.strictObject({ organization_id: uuid, name, kind: z3.literal("reverse_ssh") }),
750
+ z3.strictObject({
407
751
  organization_id: uuid,
408
752
  name,
409
- kind: z2.literal("netbird"),
410
- netbird_management_url: z2.url(),
411
- netbird_setup_key_secret_ref: z2.string().regex(/^projects\/[^/]+\/secrets\/[^/]+\/versions\/[1-9]\d*$/),
412
- netbird_version: z2.string().trim().min(1)
753
+ kind: z3.literal("netbird"),
754
+ netbird_management_url: z3.url(),
755
+ netbird_setup_key_secret_ref: z3.string().regex(/^projects\/[^/]+\/secrets\/[^/]+\/versions\/[1-9]\d*$/),
756
+ netbird_version: z3.string().trim().min(1)
413
757
  })
414
758
  ]);
415
759
  function supplierCommand(spec) {
@@ -444,11 +788,11 @@ var supplierNetworkingCapabilities = [
444
788
  supplierCommand({
445
789
  id: "supplier-connection.list",
446
790
  command: ["connections", "list"],
447
- input: z2.strictObject({
791
+ input: z3.strictObject({
448
792
  organization_id: uuid.optional(),
449
793
  gateway_id: uuid.optional(),
450
794
  after: uuid.optional(),
451
- limit: z2.number().int().min(1).max(100).optional()
795
+ limit: z3.number().int().min(1).max(100).optional()
452
796
  }),
453
797
  description: "List saved supplier connection configs and their gateway IDs. Pass a returned config ID to enrollment; forward next_cursor unchanged as --cursor.",
454
798
  usage: "[--supplier UUID] [--gateway UUID] [--cursor UUID] [--limit 1-100]",
@@ -482,12 +826,12 @@ var supplierNetworkingCapabilities = [
482
826
  id: "supplier-gateway.register",
483
827
  command: ["gateways", "register"],
484
828
  write: true,
485
- input: z2.strictObject({
829
+ input: z3.strictObject({
486
830
  organization_id: uuid,
487
831
  name,
488
- address: z2.string().trim().min(1).max(253),
489
- ssh_port: z2.number().int().min(1).max(65535).default(22),
490
- ssh_username: z2.string().trim().min(1).max(32).default("admin")
832
+ address: z3.string().trim().min(1).max(253),
833
+ ssh_port: z3.number().int().min(1).max(65535).default(22),
834
+ ssh_username: z3.string().trim().min(1).max(32).default("admin")
491
835
  }),
492
836
  description: "Register an existing Supplier Jump Host and its connection config for enrollment. Does not provision a VM. Then list connections with --gateway using the returned gateway ID to obtain the enrollment connection ID. If a response is lost, inspect saved connections by supplier before retrying.",
493
837
  usage: "--supplier UUID --name NAME --address IP_OR_HOSTNAME [--ssh-port PORT] [--ssh-username USER]",
@@ -501,7 +845,7 @@ var supplierNetworkingCapabilities = [
501
845
  supplierCommand({
502
846
  id: "supplier-gateway.regions",
503
847
  command: ["gateways", "regions"],
504
- input: z2.strictObject({}),
848
+ input: z3.strictObject({}),
505
849
  description: "List supported gateway provisioning regions and the environment default.",
506
850
  usage: "",
507
851
  related: ["admin suppliers gateways create"],
@@ -511,10 +855,10 @@ var supplierNetworkingCapabilities = [
511
855
  id: "supplier-gateway.create",
512
856
  command: ["gateways", "create"],
513
857
  write: true,
514
- input: z2.strictObject({
858
+ input: z3.strictObject({
515
859
  connection_config_id: uuid,
516
- region: z2.string().trim().min(1).optional(),
517
- retry: z2.boolean().optional()
860
+ region: z3.string().trim().min(1).optional(),
861
+ retry: z3.boolean().optional()
518
862
  }),
519
863
  description: "Provision a billable Fabric gateway for a saved NetBird or reverse-SSH config. Choose a supported region for creation; --retry explicitly retries a failed attempt using its saved placement. Existing supplier jump hosts use gateways register.",
520
864
  usage: "--connection-config-id UUID [--region REGION] [--retry]",
@@ -537,7 +881,7 @@ var supplierNetworkingCapabilities = [
537
881
  ];
538
882
 
539
883
  // ../../packages/capabilities/dist/capabilities/admin-ssh.js
540
- import { z as z3 } from "zod";
884
+ import { z as z4 } from "zod";
541
885
  var adminSshCapability = defineCapability({
542
886
  id: "node.ssh",
543
887
  domain: "fleet",
@@ -557,14 +901,14 @@ var adminSshCapability = defineCapability({
557
901
  automation: "Requires an interactive terminal."
558
902
  }
559
903
  },
560
- input: z3.object({ node_id: z3.string().uuid(), public_key: z3.string().min(1) }),
904
+ input: z4.object({ node_id: z4.string().uuid(), public_key: z4.string().min(1) }),
561
905
  execute: (ctx, input) => issueNodeSshCertificate(ctx.fetch, input.node_id, {
562
906
  public_key: input.public_key
563
907
  })
564
908
  });
565
909
 
566
910
  // ../../packages/capabilities/dist/capabilities/admin.js
567
- import { z as z4 } from "zod";
911
+ import { z as z5 } from "zod";
568
912
  var ADMIN_CLI_ROOTS = [
569
913
  { name: "users" },
570
914
  { name: "organizations" },
@@ -575,9 +919,10 @@ var ADMIN_CLI_ROOTS = [
575
919
  { name: "capacity-offers" },
576
920
  { name: "reservations" },
577
921
  { name: "ssh" },
578
- { name: "gifts" }
922
+ { name: "gifts" },
923
+ { name: "inference" }
579
924
  ];
580
- var nodeInput = z4.object({ node_id: z4.string().min(1) });
925
+ var nodeInput = z5.object({ node_id: z5.string().min(1) });
581
926
  var adminNodeHealthCapability = defineCapability({
582
927
  id: "nodes.health",
583
928
  domain: "fleet",
@@ -598,7 +943,7 @@ var adminNodeHealthCapability = defineCapability({
598
943
  }
599
944
  },
600
945
  mcp: { name: "node_show" },
601
- input: z4.object({ nodeId: z4.string() }),
946
+ input: z5.object({ nodeId: z5.string() }),
602
947
  execute: async (ctx, input) => {
603
948
  return getNode(ctx.fetch, input.nodeId);
604
949
  }
@@ -666,14 +1011,14 @@ async function listReservations(request, input = {}, signal) {
666
1011
  query3.set(key, String(value));
667
1012
  }
668
1013
  const search = query3.toString();
669
- const page = await request(`${BASE2}${search ? `?${search}` : ""}`, {
1014
+ const page2 = await request(`${BASE2}${search ? `?${search}` : ""}`, {
670
1015
  method: "GET",
671
1016
  ...signal ? { signal } : {}
672
1017
  });
673
- if (input.seller && page.seller !== true) {
1018
+ if (input.seller && page2.seller !== true) {
674
1019
  throw new Error("Booking history is temporarily unavailable. Try refreshing later.");
675
1020
  }
676
- return page;
1021
+ return page2;
677
1022
  }
678
1023
  function getReservation(request, id, signal) {
679
1024
  return request(reservationPath(id), {
@@ -702,7 +1047,7 @@ function listReservationInvoices(request, id, signal) {
702
1047
  }
703
1048
 
704
1049
  // ../../packages/api-client/dist/commerce/query.js
705
- function queryString(input) {
1050
+ function queryString2(input) {
706
1051
  const query3 = new URLSearchParams();
707
1052
  for (const [key, value] of Object.entries(input))
708
1053
  if (value !== void 0 && value !== null && value !== "")
@@ -713,7 +1058,7 @@ function queryString(input) {
713
1058
 
714
1059
  // ../../packages/api-client/dist/commerce/billing.js
715
1060
  function listInvoices(request, input = {}, signal) {
716
- return request("/commerce/invoices" + queryString(input), {
1061
+ return request("/commerce/invoices" + queryString2(input), {
717
1062
  method: "GET",
718
1063
  signal
719
1064
  });
@@ -748,7 +1093,7 @@ function createCreditAdjustment(request, organizationId, body2) {
748
1093
  // ../../packages/api-client/dist/commerce/facilities.js
749
1094
  var facilityEnsurePath = "/internal/v1/facilities/ensure";
750
1095
  function listStaffFacilities(request, input = {}, signal) {
751
- return request("/internal/v1/facilities" + queryString(input), {
1096
+ return request("/internal/v1/facilities" + queryString2(input), {
752
1097
  method: "GET",
753
1098
  signal
754
1099
  });
@@ -780,8 +1125,8 @@ function query(params) {
780
1125
  for (const [key, value] of Object.entries(params))
781
1126
  if (value != null && value !== "")
782
1127
  search.set(key, String(value));
783
- const text = search.toString();
784
- return text ? `?${text}` : "";
1128
+ const text2 = search.toString();
1129
+ return text2 ? `?${text2}` : "";
785
1130
  }
786
1131
  var MARKETS_SOCKET_PATH = `${BASE3}/ws`;
787
1132
  function scope({ saleType: saleType2, region: region2 } = {}) {
@@ -829,8 +1174,8 @@ function listFills(request, filter = {}) {
829
1174
  function placeBookings(request, input, idempotencyKey) {
830
1175
  return request(`${BASE3}/bookings`, body(input, idempotencyKey));
831
1176
  }
832
- function getListingAvailability(request, listingId, window2 = {}, signal) {
833
- return request(`${BASE3}/listings/${encodeURIComponent(listingId)}/availability${query(window2)}`, {
1177
+ function getListingAvailability(request, listingId2, window2 = {}, signal) {
1178
+ return request(`${BASE3}/listings/${encodeURIComponent(listingId2)}/availability${query(window2)}`, {
834
1179
  method: "GET",
835
1180
  ...signal ? { signal } : {}
836
1181
  });
@@ -852,7 +1197,7 @@ function listOffers(request, filter = {}, signal) {
852
1197
  }
853
1198
 
854
1199
  // ../../packages/capabilities/dist/capabilities/admin-capacity-reservations.js
855
- import { z as z7 } from "zod";
1200
+ import { z as z8 } from "zod";
856
1201
 
857
1202
  // ../../packages/capabilities/dist/capabilities/staff-shared.js
858
1203
  function statusOf(error) {
@@ -889,7 +1234,7 @@ function unplacedLocation(place) {
889
1234
  var LOCATION_LOOKUP_UNAVAILABLE = "Ornn's location lookup is unavailable right now. Keep this location and try again in a moment.";
890
1235
 
891
1236
  // ../../packages/capabilities/dist/capabilities/native-listing.js
892
- import { z as z6 } from "zod";
1237
+ import { z as z7 } from "zod";
893
1238
 
894
1239
  // ../../packages/capabilities/dist/compute-units.js
895
1240
  var CPU_SLUG = "cpu";
@@ -905,10 +1250,10 @@ function unitsPerNode(listing) {
905
1250
  }
906
1251
 
907
1252
  // ../../packages/capabilities/dist/capabilities/market-shared.js
908
- import { z as z5 } from "zod";
909
- var positionals = z5.array(z5.string()).max(0).default([]);
910
- var microUsd = z5.coerce.number().int().positive();
911
- var flag = z5.preprocess((value) => value === "true" ? true : value === "false" ? false : value, z5.boolean());
1253
+ import { z as z6 } from "zod";
1254
+ var positionals = z6.array(z6.string()).max(0).default([]);
1255
+ var microUsd = z6.coerce.number().int().positive();
1256
+ var flag = z6.preprocess((value) => value === "true" ? true : value === "false" ? false : value, z6.boolean());
912
1257
  function resolveIdempotencyKey(ctx, supplied) {
913
1258
  return ctx.cli?.interaction?.idempotencyKey(supplied) ?? supplied?.trim();
914
1259
  }
@@ -933,18 +1278,18 @@ function microUsdLabel(value) {
933
1278
 
934
1279
  // ../../packages/capabilities/dist/capabilities/native-listing.js
935
1280
  var nativeTermFields = {
936
- 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."),
937
- type: z6.enum(["reserved", "spot", "on-demand"]).nullable().optional(),
938
- minDurationHours: z6.coerce.number().nonnegative(),
939
- maxDurationHours: z6.coerce.number().nonnegative(),
940
- pricePerGpuHourMicroUsd: z6.coerce.number().int().positive().describe("Micro-USD per unit-hour: per GPU, or per vCPU on CPU capacity."),
941
- downPaymentCents: z6.coerce.number().int().nonnegative().nullable().optional(),
1281
+ 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."),
1282
+ type: z7.enum(["reserved", "spot", "on-demand"]).nullable().optional(),
1283
+ minDurationHours: z7.coerce.number().nonnegative(),
1284
+ maxDurationHours: z7.coerce.number().nonnegative(),
1285
+ pricePerGpuHourMicroUsd: z7.coerce.number().int().positive().describe("Micro-USD per unit-hour: per GPU, or per vCPU on CPU capacity."),
1286
+ downPaymentCents: z7.coerce.number().int().nonnegative().nullable().optional(),
942
1287
  renewable: flag,
943
- preemptNoticeSeconds: z6.coerce.number().int().nonnegative().optional()
1288
+ preemptNoticeSeconds: z7.coerce.number().int().nonnegative().optional()
944
1289
  };
945
- var nativeTermInput = z6.object(nativeTermFields).strict();
1290
+ var nativeTermInput = z7.object(nativeTermFields).strict();
946
1291
  function jsonArray(item) {
947
- return z6.preprocess((value) => {
1292
+ return z7.preprocess((value) => {
948
1293
  if (typeof value !== "string")
949
1294
  return value;
950
1295
  try {
@@ -952,36 +1297,36 @@ function jsonArray(item) {
952
1297
  } catch {
953
1298
  return value;
954
1299
  }
955
- }, z6.array(item));
1300
+ }, z7.array(item));
956
1301
  }
957
1302
  var nativeTermsInput = jsonArray(nativeTermInput);
958
1303
  var listingWriteControls = {
959
- confirm: z6.boolean().optional(),
960
- idempotencyKey: z6.string().min(1).max(200)
1304
+ confirm: z7.boolean().optional(),
1305
+ idempotencyKey: z7.string().min(1).max(200)
961
1306
  };
962
- 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.");
1307
+ 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.");
963
1308
  var CPU_CORES_MESSAGE = "CPU capacity is sold in whole cores (2 vCPUs each).";
964
- 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.");
965
- var nativeListingCreateInput = z6.object({
966
- organizationId: z6.string().uuid().nullable().optional(),
967
- kind: z6.enum(["primary", "secondary"]).default("primary"),
968
- gpuSlug: z6.string().min(1).nullable().describe('Catalog GPU slug; null or "cpu" lists CPU capacity sold per vCPU-hour.'),
969
- gpusPerNode: z6.coerce.number().int().nonnegative().optional().describe("GPUs per node; 0 or omitted on CPU capacity."),
1309
+ 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.");
1310
+ var nativeListingCreateInput = z7.object({
1311
+ organizationId: z7.string().uuid().nullable().optional(),
1312
+ kind: z7.enum(["primary", "secondary"]).default("primary"),
1313
+ gpuSlug: z7.string().min(1).nullable().describe('Catalog GPU slug; null or "cpu" lists CPU capacity sold per vCPU-hour.'),
1314
+ gpusPerNode: z7.coerce.number().int().nonnegative().optional().describe("GPUs per node; 0 or omitted on CPU capacity."),
970
1315
  coresPerNode,
971
- capacityNodeCount: z6.coerce.number().int().positive().optional().describe("Defaults to the number of nodeIds."),
972
- nodeIds: jsonArray(z6.string().uuid()).optional(),
973
- facilityId: z6.string().uuid().optional(),
1316
+ capacityNodeCount: z7.coerce.number().int().positive().optional().describe("Defaults to the number of nodeIds."),
1317
+ nodeIds: jsonArray(z7.string().uuid()).optional(),
1318
+ facilityId: z7.string().uuid().optional(),
974
1319
  location: listingLocation,
975
- provisioningType: z6.enum(["bare-metal", "virtual-machine"]),
976
- state: z6.enum(["draft", "available"]),
977
- availableAt: z6.iso.datetime({ offset: true }).nullable().optional().describe("Primary capacity takes availableAt and availableUntil, or daysToRfs, not both."),
978
- availableUntil: z6.iso.datetime({ offset: true }).nullable().optional(),
979
- daysToRfs: z6.coerce.number().int().nonnegative().optional().describe("Days until ready for service; 0 when ready now. Required unless both dates are set."),
980
- cpu: z6.string().optional(),
981
- ram: z6.string().optional(),
982
- storage: z6.string().optional(),
983
- fabricType: z6.string().optional(),
984
- internet: z6.string().optional(),
1320
+ provisioningType: z7.enum(["bare-metal", "virtual-machine"]),
1321
+ state: z7.enum(["draft", "available"]),
1322
+ availableAt: z7.iso.datetime({ offset: true }).nullable().optional().describe("Primary capacity takes availableAt and availableUntil, or daysToRfs, not both."),
1323
+ availableUntil: z7.iso.datetime({ offset: true }).nullable().optional(),
1324
+ daysToRfs: z7.coerce.number().int().nonnegative().optional().describe("Days until ready for service; 0 when ready now. Required unless both dates are set."),
1325
+ cpu: z7.string().optional(),
1326
+ ram: z7.string().optional(),
1327
+ storage: z7.string().optional(),
1328
+ fabricType: z7.string().optional(),
1329
+ internet: z7.string().optional(),
985
1330
  terms: nativeTermsInput,
986
1331
  ...listingWriteControls
987
1332
  }).strict().refine((value) => Boolean(value.facilityId) !== Boolean(value.location), {
@@ -1020,22 +1365,22 @@ var nativeListingCreateInput = z6.object({
1020
1365
  });
1021
1366
  });
1022
1367
  var nativeListingUpdateFields = {
1023
- state: z6.enum(["draft", "available", "delisted"]).optional(),
1024
- nodeCount: z6.coerce.number().int().positive().optional(),
1025
- gpuSlug: z6.string().min(1).nullable().optional().describe('Catalog GPU slug; null or "cpu" for CPU capacity.'),
1026
- gpusPerNode: z6.coerce.number().int().nonnegative().optional(),
1368
+ state: z7.enum(["draft", "available", "delisted"]).optional(),
1369
+ nodeCount: z7.coerce.number().int().positive().optional(),
1370
+ gpuSlug: z7.string().min(1).nullable().optional().describe('Catalog GPU slug; null or "cpu" for CPU capacity.'),
1371
+ gpusPerNode: z7.coerce.number().int().nonnegative().optional(),
1027
1372
  coresPerNode,
1028
- facilityId: z6.string().uuid().optional(),
1373
+ facilityId: z7.string().uuid().optional(),
1029
1374
  location: listingLocation,
1030
- provisioningType: z6.enum(["bare-metal", "virtual-machine"]).optional(),
1031
- availableAt: z6.iso.datetime({ offset: true }).optional(),
1032
- availableUntil: z6.iso.datetime({ offset: true }).nullable().optional(),
1033
- daysToRfs: z6.coerce.number().int().nonnegative().optional(),
1034
- cpu: z6.string().optional(),
1035
- ram: z6.string().optional(),
1036
- storage: z6.string().optional(),
1037
- fabricType: z6.string().optional(),
1038
- internet: z6.string().optional()
1375
+ provisioningType: z7.enum(["bare-metal", "virtual-machine"]).optional(),
1376
+ availableAt: z7.iso.datetime({ offset: true }).optional(),
1377
+ availableUntil: z7.iso.datetime({ offset: true }).nullable().optional(),
1378
+ daysToRfs: z7.coerce.number().int().nonnegative().optional(),
1379
+ cpu: z7.string().optional(),
1380
+ ram: z7.string().optional(),
1381
+ storage: z7.string().optional(),
1382
+ fabricType: z7.string().optional(),
1383
+ internet: z7.string().optional()
1039
1384
  };
1040
1385
 
1041
1386
  // ../../packages/capabilities/dist/capabilities/admin-capacity-reservations.js
@@ -1075,16 +1420,16 @@ var adminCapacityOffersCreateCapability = defineCapability({
1075
1420
  return createCapacityListing(ctx.fetch, { ...body2, facilityId }, resolveIdempotencyKey(ctx, idempotencyKey));
1076
1421
  }
1077
1422
  });
1078
- var wholeSecondInstant = z7.iso.datetime({ offset: true }).refine((value) => !/\.\d*[1-9]/.test(value), "Use a time in whole seconds.");
1079
- var reservationCreateInput = z7.object({
1080
- organizationId: z7.string().uuid().describe("The customer organization the window is booked for."),
1081
- listingId: z7.string().uuid().describe("The listing's capacityListingId. Staff may book any available listing."),
1082
- listingTermId: z7.string().uuid().describe("The listingTermsId of a non-renewable Reserved term on that listing."),
1083
- nodes: z7.number().int().positive().max(2147483647).describe("Whole nodes to book."),
1423
+ var wholeSecondInstant = z8.iso.datetime({ offset: true }).refine((value) => !/\.\d*[1-9]/.test(value), "Use a time in whole seconds.");
1424
+ var reservationCreateInput = z8.object({
1425
+ organizationId: z8.string().uuid().describe("The customer organization the window is booked for."),
1426
+ listingId: z8.string().uuid().describe("The listing's capacityListingId. Staff may book any available listing."),
1427
+ listingTermId: z8.string().uuid().describe("The listingTermsId of a non-renewable Reserved term on that listing."),
1428
+ nodes: z8.number().int().positive().max(2147483647).describe("Whole nodes to book."),
1084
1429
  startsAt: wholeSecondInstant.describe("RFC 3339 start of the window in whole seconds, no more than five minutes ago."),
1085
1430
  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."),
1086
1431
  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."),
1087
- idempotencyKey: z7.string().trim().min(1).max(200).describe("Reuse this key when retrying the same booking.")
1432
+ idempotencyKey: z8.string().trim().min(1).max(200).describe("Reuse this key when retrying the same booking.")
1088
1433
  });
1089
1434
  var adminReservationsCreateCapability = defineCapability({
1090
1435
  id: "reservations.create",
@@ -1111,7 +1456,7 @@ var adminCapacityReservationCapabilities = [
1111
1456
  ];
1112
1457
 
1113
1458
  // ../../packages/capabilities/dist/capabilities/commerce-market.js
1114
- import { z as z8 } from "zod";
1459
+ import { z as z9 } from "zod";
1115
1460
  function help(outcome, human, automation, related, order, acceptedReferences = []) {
1116
1461
  return {
1117
1462
  arguments: "semantic",
@@ -1125,15 +1470,15 @@ function help(outcome, human, automation, related, order, acceptedReferences = [
1125
1470
  order
1126
1471
  };
1127
1472
  }
1128
- var pageLimit = z8.coerce.number().int().min(1).max(200).optional();
1129
- var listingsListInput = z8.object({
1473
+ var pageLimit = z9.coerce.number().int().min(1).max(200).optional();
1474
+ var listingsListInput = z9.object({
1130
1475
  $positionals: positionals,
1131
- kind: z8.enum(["primary", "secondary", "on_demand"]).optional(),
1132
- state: z8.enum(["draft", "available", "held", "sold", "delisted"]).optional(),
1133
- sourceReservationId: z8.string().uuid().optional(),
1134
- sourceListingId: z8.string().uuid().optional(),
1135
- limit: z8.coerce.number().int().min(1).max(100).optional(),
1136
- cursor: z8.string().min(1).optional()
1476
+ kind: z9.enum(["primary", "secondary", "on_demand"]).optional(),
1477
+ state: z9.enum(["draft", "available", "held", "sold", "delisted"]).optional(),
1478
+ sourceReservationId: z9.string().uuid().optional(),
1479
+ sourceListingId: z9.string().uuid().optional(),
1480
+ limit: z9.coerce.number().int().min(1).max(100).optional(),
1481
+ cursor: z9.string().min(1).optional()
1137
1482
  });
1138
1483
  var listingsListCapability = defineCapability({
1139
1484
  id: "listings.list",
@@ -1158,9 +1503,9 @@ var listingsListCapability = defineCapability({
1158
1503
  });
1159
1504
  }
1160
1505
  });
1161
- var listingShowInput = z8.object({
1506
+ var listingShowInput = z9.object({
1162
1507
  $positionals: positionals,
1163
- listingId: z8.string().uuid()
1508
+ listingId: z9.string().uuid()
1164
1509
  });
1165
1510
  var listingShowCapability = defineCapability({
1166
1511
  id: "listings.show",
@@ -1194,11 +1539,11 @@ var listingTermsCapability = defineCapability({
1194
1539
  return listCapacityTerms(ctx.fetch, parsed.listingId);
1195
1540
  }
1196
1541
  });
1197
- var listingAvailabilityInput = z8.object({
1542
+ var listingAvailabilityInput = z9.object({
1198
1543
  $positionals: positionals,
1199
- listingId: z8.string().uuid(),
1200
- from: z8.iso.datetime({ offset: true }).optional().describe("RFC 3339 start of the range to read. Defaults to now or the listing's start."),
1201
- to: z8.iso.datetime({ offset: true }).optional().describe("RFC 3339 end of the range to read. Defaults to the listing's end.")
1544
+ listingId: z9.string().uuid(),
1545
+ from: z9.iso.datetime({ offset: true }).optional().describe("RFC 3339 start of the range to read. Defaults to now or the listing's start."),
1546
+ to: z9.iso.datetime({ offset: true }).optional().describe("RFC 3339 end of the range to read. Defaults to the listing's end.")
1202
1547
  });
1203
1548
  var listingAvailabilityCapability = defineCapability({
1204
1549
  id: "listings.availability",
@@ -1219,16 +1564,16 @@ var listingAvailabilityCapability = defineCapability({
1219
1564
  });
1220
1565
  }
1221
1566
  });
1222
- var listingRelistInput = z8.strictObject({
1567
+ var listingRelistInput = z9.strictObject({
1223
1568
  $positionals: positionals,
1224
- reservationId: z8.string().uuid(),
1225
- startsAt: z8.iso.datetime({ offset: true }),
1226
- endsAt: z8.iso.datetime({ offset: true }),
1227
- nodeCount: z8.coerce.number().int().positive(),
1569
+ reservationId: z9.string().uuid(),
1570
+ startsAt: z9.iso.datetime({ offset: true }),
1571
+ endsAt: z9.iso.datetime({ offset: true }),
1572
+ nodeCount: z9.coerce.number().int().positive(),
1228
1573
  terms: nativeTermsInput,
1229
- idempotencyKey: z8.string().min(1).max(200).optional(),
1230
- confirm: z8.boolean().optional(),
1231
- yes: z8.boolean().optional()
1574
+ idempotencyKey: z9.string().min(1).max(200).optional(),
1575
+ confirm: z9.boolean().optional(),
1576
+ yes: z9.boolean().optional()
1232
1577
  });
1233
1578
  var listingRelistCapability = defineCapability({
1234
1579
  id: "listings.relist",
@@ -1252,10 +1597,10 @@ var listingRelistCapability = defineCapability({
1252
1597
  return relistReservation(ctx.fetch, reservationId, body2, resolveIdempotencyKey(ctx, idempotencyKey));
1253
1598
  }
1254
1599
  });
1255
- var listingUpdateInput = z8.object({
1600
+ var listingUpdateInput = z9.object({
1256
1601
  $positionals: positionals,
1257
- listingId: z8.string().uuid(),
1258
- listingTermsId: z8.string().uuid(),
1602
+ listingId: z9.string().uuid(),
1603
+ listingTermsId: z9.string().uuid(),
1259
1604
  ...nativeTermFields,
1260
1605
  ...listingWriteControls
1261
1606
  }).strict();
@@ -1276,16 +1621,16 @@ var listingUpdateCapability = defineCapability({
1276
1621
  slack: false,
1277
1622
  mcp: false,
1278
1623
  execute: async (ctx, input) => {
1279
- const { $positionals: _, listingId, listingTermsId, confirm: _confirm, idempotencyKey, ...body2 } = listingUpdateInput.parse(input);
1624
+ const { $positionals: _, listingId: listingId2, listingTermsId, confirm: _confirm, idempotencyKey, ...body2 } = listingUpdateInput.parse(input);
1280
1625
  if (!ctx.confirmed)
1281
- return preview("listings.update", { listingId, listingTermsId, ...body2 });
1282
- return editCapacityTerms(ctx.fetch, listingId, listingTermsId, body2, resolveIdempotencyKey(ctx, idempotencyKey));
1626
+ return preview("listings.update", { listingId: listingId2, listingTermsId, ...body2 });
1627
+ return editCapacityTerms(ctx.fetch, listingId2, listingTermsId, body2, resolveIdempotencyKey(ctx, idempotencyKey));
1283
1628
  }
1284
1629
  });
1285
- var listingDelistInput = z8.object({
1630
+ var listingDelistInput = z9.object({
1286
1631
  $positionals: positionals,
1287
- listingId: z8.string().uuid(),
1288
- confirm: z8.boolean().optional()
1632
+ listingId: z9.string().uuid(),
1633
+ confirm: z9.boolean().optional()
1289
1634
  });
1290
1635
  var listingDelistCapability = defineCapability({
1291
1636
  id: "listings.delist",
@@ -1312,10 +1657,10 @@ var listingDelistCapability = defineCapability({
1312
1657
  return delistCapacityListing(ctx.fetch, parsed.listingId);
1313
1658
  }
1314
1659
  });
1315
- var reservationsListInput = z8.object({
1660
+ var reservationsListInput = z9.object({
1316
1661
  $positionals: positionals,
1317
- kind: z8.enum(["schedule", "spot"]).optional(),
1318
- status: z8.enum([
1662
+ kind: z9.enum(["schedule", "spot"]).optional(),
1663
+ status: z9.enum([
1319
1664
  "awaiting_down_payment",
1320
1665
  "awaiting_payment",
1321
1666
  "confirmed",
@@ -1323,9 +1668,9 @@ var reservationsListInput = z8.object({
1323
1668
  "completed",
1324
1669
  "cancelled"
1325
1670
  ]).optional(),
1326
- listingId: z8.string().uuid().optional().describe("Trades on a listing you own."),
1671
+ listingId: z9.string().uuid().optional().describe("Trades on a listing you own."),
1327
1672
  limit: pageLimit,
1328
- cursor: z8.string().min(1).optional()
1673
+ cursor: z9.string().min(1).optional()
1329
1674
  });
1330
1675
  var reservationsListCapability = defineCapability({
1331
1676
  id: "reservations.list",
@@ -1344,9 +1689,9 @@ var reservationsListCapability = defineCapability({
1344
1689
  return listReservations(ctx.fetch, filter);
1345
1690
  }
1346
1691
  });
1347
- var reservationLookupInput = z8.object({
1692
+ var reservationLookupInput = z9.object({
1348
1693
  $positionals: positionals,
1349
- reservationId: z8.string().uuid()
1694
+ reservationId: z9.string().uuid()
1350
1695
  });
1351
1696
  var reservationsShowCapability = defineCapability({
1352
1697
  id: "reservations.show",
@@ -1380,16 +1725,16 @@ var reservationInvoicesCapability = defineCapability({
1380
1725
  return listReservationInvoices(ctx.fetch, parsed.reservationId);
1381
1726
  }
1382
1727
  });
1383
- var reservationPurchaseInput = z8.object({
1728
+ var reservationPurchaseInput = z9.object({
1384
1729
  $positionals: positionals,
1385
- listingId: z8.string().uuid().describe("The relisted (secondary) listing's capacityListingId, from listings.list."),
1386
- listingTermId: z8.string().uuid().describe("The listingTermsId of the listing's term, from listings.terms."),
1387
- nodeCount: z8.coerce.number().int().positive().optional().describe("Whole nodes to book for the window. Defaults to every node the listing sells."),
1388
- startsAt: z8.iso.datetime({ offset: true }).describe("RFC 3339 start of the window, in whole seconds, inside the listing and not in the past."),
1389
- 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."),
1730
+ listingId: z9.string().uuid().describe("The relisted (secondary) listing's capacityListingId, from listings.list."),
1731
+ listingTermId: z9.string().uuid().describe("The listingTermsId of the listing's term, from listings.terms."),
1732
+ nodeCount: z9.coerce.number().int().positive().optional().describe("Whole nodes to book for the window. Defaults to every node the listing sells."),
1733
+ startsAt: z9.iso.datetime({ offset: true }).describe("RFC 3339 start of the window, in whole seconds, inside the listing and not in the past."),
1734
+ 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."),
1390
1735
  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."),
1391
- idempotencyKey: z8.string().min(1).max(200).optional(),
1392
- confirm: z8.boolean().optional()
1736
+ idempotencyKey: z9.string().min(1).max(200).optional(),
1737
+ confirm: z9.boolean().optional()
1393
1738
  });
1394
1739
  var reservationPurchaseCapability = defineCapability({
1395
1740
  id: "reservations.purchase",
@@ -1446,7 +1791,7 @@ var commerceMarketCapabilities = [
1446
1791
  ];
1447
1792
 
1448
1793
  // ../../packages/capabilities/dist/capabilities/markets.js
1449
- import { z as z9 } from "zod";
1794
+ import { z as z10 } from "zod";
1450
1795
 
1451
1796
  // ../../packages/capabilities/dist/spec-catalog.js
1452
1797
  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.";
@@ -1567,10 +1912,10 @@ function projectCatalogTerms(terms, kind) {
1567
1912
  }
1568
1913
 
1569
1914
  // ../../packages/capabilities/dist/capabilities/markets.js
1570
- 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.");
1571
- var region = z9.string().min(1).optional().describe("A region slug, for example us-east-11. Omit for every region.");
1572
- 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.");
1573
- var bookSlug = z9.string().min(1).describe('Catalog GPU slug, for example nvidia_h100_sxm, or "cpu" for CPU capacity sold per vCPU-hour.');
1915
+ 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.");
1916
+ var region = z10.string().min(1).optional().describe("A region slug, for example us-east-11. Omit for every region.");
1917
+ 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.");
1918
+ var bookSlug = z10.string().min(1).describe('Catalog GPU slug, for example nvidia_h100_sxm, or "cpu" for CPU capacity sold per vCPU-hour.');
1574
1919
  function help2(outcome, human, automation, related, order, acceptedReferences = []) {
1575
1920
  return {
1576
1921
  arguments: "semantic",
@@ -1584,11 +1929,11 @@ function help2(outcome, human, automation, related, order, acceptedReferences =
1584
1929
  order
1585
1930
  };
1586
1931
  }
1587
- var marketBooksInput = z9.object({
1932
+ var marketBooksInput = z10.object({
1588
1933
  $positionals: positionals,
1589
- gpuSlug: z9.string().min(1).optional().describe('Only this catalog GPU slug, or "cpu".'),
1934
+ gpuSlug: z10.string().min(1).optional().describe('Only this catalog GPU slug, or "cpu".'),
1590
1935
  saleType,
1591
- region: z9.string().min(1).optional().describe("Only this region slug, or any for the books of bids in any region.")
1936
+ region: z10.string().min(1).optional().describe("Only this region slug, or any for the books of bids in any region.")
1592
1937
  });
1593
1938
  var marketBooksCapability = defineCapability({
1594
1939
  id: "market.books",
@@ -1606,7 +1951,7 @@ var marketBooksCapability = defineCapability({
1606
1951
  return listOrderBooks(ctx.fetch, parsed);
1607
1952
  }
1608
1953
  });
1609
- var marketBookInput = z9.object({
1954
+ var marketBookInput = z10.object({
1610
1955
  $positionals: positionals,
1611
1956
  gpuSlug: bookSlug,
1612
1957
  saleType,
@@ -1644,11 +1989,11 @@ var marketTradesCapability = defineCapability({
1644
1989
  return listTrades(ctx.fetch, parsed.gpuSlug, parsed);
1645
1990
  }
1646
1991
  });
1647
- var marketQuoteInput = z9.object({
1992
+ var marketQuoteInput = z10.object({
1648
1993
  $positionals: positionals,
1649
1994
  gpuSlug: bookSlug,
1650
1995
  saleType,
1651
- region: z9.string().min(1).optional().describe("A region with an order book (see market books). Omit for any region."),
1996
+ region: z10.string().min(1).optional().describe("A region with an order book (see market books). Omit for any region."),
1652
1997
  nodes
1653
1998
  });
1654
1999
  var marketQuoteCapability = defineCapability({
@@ -1667,15 +2012,15 @@ var marketQuoteCapability = defineCapability({
1667
2012
  return quoteBid(ctx.fetch, { ...parsed, orderType: "market" });
1668
2013
  }
1669
2014
  });
1670
- var marketBidInput = z9.object({
2015
+ var marketBidInput = z10.object({
1671
2016
  $positionals: positionals,
1672
2017
  gpuSlug: bookSlug,
1673
2018
  saleType,
1674
- 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."),
2019
+ 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."),
1675
2020
  nodes,
1676
- diskId: z9.string().uuid().optional().describe("The disk every VM boots. Omit to boot your newest disk, else Ornn's newest."),
1677
- idempotencyKey: z9.string().min(1).max(200).optional(),
1678
- confirm: z9.boolean().optional()
2021
+ diskId: z10.string().uuid().optional().describe("The disk every VM boots. Omit to boot your newest disk, else Ornn's newest."),
2022
+ idempotencyKey: z10.string().min(1).max(200).optional(),
2023
+ confirm: z10.boolean().optional()
1679
2024
  });
1680
2025
  var marketBidCapability = defineCapability({
1681
2026
  id: "market.bid",
@@ -1711,7 +2056,7 @@ var marketBidCapability = defineCapability({
1711
2056
  return placeBid(ctx.fetch, body2, resolveIdempotencyKey(ctx, parsed.idempotencyKey));
1712
2057
  }
1713
2058
  });
1714
- var marketOrdersInput = z9.object({ $positionals: positionals });
2059
+ var marketOrdersInput = z10.object({ $positionals: positionals });
1715
2060
  var marketOrdersCapability = defineCapability({
1716
2061
  id: "market.orders",
1717
2062
  domain: "markets",
@@ -1725,10 +2070,10 @@ var marketOrdersCapability = defineCapability({
1725
2070
  },
1726
2071
  execute: async (ctx) => listOrders(ctx.fetch)
1727
2072
  });
1728
- var marketCancelInput = z9.object({
2073
+ var marketCancelInput = z10.object({
1729
2074
  $positionals: positionals,
1730
- orderId: z9.string().uuid().describe("A resting bid ID."),
1731
- confirm: z9.boolean().optional()
2075
+ orderId: z10.string().uuid().describe("A resting bid ID."),
2076
+ confirm: z10.boolean().optional()
1732
2077
  });
1733
2078
  var marketCancelCapability = defineCapability({
1734
2079
  id: "market.cancel",
@@ -1755,9 +2100,9 @@ var marketCancelCapability = defineCapability({
1755
2100
  return cancelOrder(ctx.fetch, parsed.orderId);
1756
2101
  }
1757
2102
  });
1758
- var marketFillsInput = z9.object({
2103
+ var marketFillsInput = z10.object({
1759
2104
  $positionals: positionals,
1760
- orderId: z9.string().uuid().optional().describe("Only this bid's fills.")
2105
+ orderId: z10.string().uuid().optional().describe("Only this bid's fills.")
1761
2106
  });
1762
2107
  var marketFillsCapability = defineCapability({
1763
2108
  id: "market.fills",
@@ -1775,10 +2120,10 @@ var marketFillsCapability = defineCapability({
1775
2120
  return listFills(ctx.fetch, { orderId: parsed.orderId });
1776
2121
  }
1777
2122
  });
1778
- var marketEndInput = z9.object({
2123
+ var marketEndInput = z10.object({
1779
2124
  $positionals: positionals,
1780
- fillId: z9.string().uuid().describe("A fill ID; it is also its reservation ID."),
1781
- confirm: z9.boolean().optional()
2125
+ fillId: z10.string().uuid().describe("A fill ID; it is also its reservation ID."),
2126
+ confirm: z10.boolean().optional()
1782
2127
  });
1783
2128
  var marketEndCapability = defineCapability({
1784
2129
  id: "market.end",
@@ -1802,9 +2147,9 @@ var marketEndCapability = defineCapability({
1802
2147
  return stopReservation(ctx.fetch, parsed.fillId);
1803
2148
  }
1804
2149
  });
1805
- var offersListInput = z9.object({
2150
+ var offersListInput = z10.object({
1806
2151
  $positionals: positionals,
1807
- listingId: z9.string().uuid().optional().describe("A primary listing whose offer book to read. Omit for your organization's offers.")
2152
+ listingId: z10.string().uuid().optional().describe("A primary listing whose offer book to read. Omit for your organization's offers.")
1808
2153
  });
1809
2154
  var offersListCapability = defineCapability({
1810
2155
  id: "offers.list",
@@ -1822,15 +2167,15 @@ var offersListCapability = defineCapability({
1822
2167
  return listOffers(ctx.fetch, { listingId: parsed.listingId });
1823
2168
  }
1824
2169
  });
1825
- var offerPostInput = z9.object({
2170
+ var offerPostInput = z10.object({
1826
2171
  $positionals: positionals,
1827
- listingId: z9.string().uuid().describe("A primary listing."),
1828
- listingTermId: z9.string().uuid().describe("The listingTermsId of a non-spot term of that listing, from listings.terms."),
1829
- 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)."),
2172
+ listingId: z10.string().uuid().describe("A primary listing."),
2173
+ listingTermId: z10.string().uuid().describe("The listingTermsId of a non-spot term of that listing, from listings.terms."),
2174
+ 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)."),
1830
2175
  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."),
1831
- downPaymentCents: z9.coerce.number().int().min(0).optional().describe("The down payment you offer, in cents."),
1832
- idempotencyKey: z9.string().min(1).max(200).optional(),
1833
- confirm: z9.boolean().optional()
2176
+ downPaymentCents: z10.coerce.number().int().min(0).optional().describe("The down payment you offer, in cents."),
2177
+ idempotencyKey: z10.string().min(1).max(200).optional(),
2178
+ confirm: z10.boolean().optional()
1834
2179
  });
1835
2180
  var offerPostCapability = defineCapability({
1836
2181
  id: "offers.post",
@@ -1867,10 +2212,10 @@ var offerPostCapability = defineCapability({
1867
2212
  return postOffer(ctx.fetch, body2, resolveIdempotencyKey(ctx, parsed.idempotencyKey));
1868
2213
  }
1869
2214
  });
1870
- var offerDecisionInput = z9.object({
2215
+ var offerDecisionInput = z10.object({
1871
2216
  $positionals: positionals,
1872
- offerId: z9.string().uuid(),
1873
- confirm: z9.boolean().optional()
2217
+ offerId: z10.string().uuid(),
2218
+ confirm: z10.boolean().optional()
1874
2219
  });
1875
2220
  var offerAcceptCapability = defineCapability({
1876
2221
  id: "offers.accept",
@@ -1933,20 +2278,20 @@ var marketCapabilities = [
1933
2278
  ];
1934
2279
 
1935
2280
  // ../../packages/capabilities/dist/capabilities/admin-enrollment.js
1936
- import { z as z11 } from "zod";
2281
+ import { z as z12 } from "zod";
1937
2282
 
1938
2283
  // ../../packages/capabilities/dist/capabilities/tokens.js
1939
- import { z as z10 } from "zod";
1940
- var emptyInput = z10.object({});
1941
- var tokenCreateInput = z10.object({
1942
- organization_id: z10.string().uuid(),
1943
- profile_id: z10.string().uuid().optional(),
1944
- expires_in_seconds: z10.number().int().min(300).max(86400).nullish(),
1945
- host: z10.string().min(1).nullish(),
1946
- hosts: z10.array(z10.string().min(1)).max(64).nullish(),
1947
- username: z10.string().min(1).nullish(),
1948
- port: z10.number().int().min(1).max(65535).nullish(),
1949
- private_key: z10.string().min(1).nullish()
2284
+ import { z as z11 } from "zod";
2285
+ var emptyInput = z11.object({});
2286
+ var tokenCreateInput = z11.object({
2287
+ organization_id: z11.string().uuid(),
2288
+ profile_id: z11.string().uuid().optional(),
2289
+ expires_in_seconds: z11.number().int().min(300).max(86400).nullish(),
2290
+ host: z11.string().min(1).nullish(),
2291
+ hosts: z11.array(z11.string().min(1)).max(64).nullish(),
2292
+ username: z11.string().min(1).nullish(),
2293
+ port: z11.number().int().min(1).max(65535).nullish(),
2294
+ private_key: z11.string().min(1).nullish()
1950
2295
  });
1951
2296
  function tokenMetadata(value) {
1952
2297
  if (!value || typeof value !== "object")
@@ -2061,9 +2406,9 @@ var tokensCreateCapability = defineCapability({
2061
2406
  var tokenCapabilities = [tokensListCapability, tokensCreateCapability];
2062
2407
 
2063
2408
  // ../../packages/capabilities/dist/capabilities/admin-enrollment.js
2064
- var UUID = z11.string().uuid();
2065
- var nonEmpty = z11.string().trim().min(1);
2066
- var tokenTtl = z11.number().int().min(60).max(24 * 60 * 60);
2409
+ var UUID = z12.string().uuid();
2410
+ var nonEmpty = z12.string().trim().min(1);
2411
+ var tokenTtl = z12.number().int().min(60).max(24 * 60 * 60);
2067
2412
  function adminHelp2(outcome, human, automation, acceptedReferences = [], review) {
2068
2413
  return {
2069
2414
  audience: "admin",
@@ -2075,12 +2420,12 @@ function adminHelp2(outcome, human, automation, acceptedReferences = [], review)
2075
2420
  ...review ? { review } : {}
2076
2421
  };
2077
2422
  }
2078
- var tokenRevokeInput = z11.object({
2079
- tokenId: z11.string().min(1),
2423
+ var tokenRevokeInput = z12.object({
2424
+ tokenId: z12.string().min(1),
2080
2425
  token_id: UUID.optional(),
2081
2426
  expected_created_at: nonEmpty.optional(),
2082
2427
  idempotency_key: nonEmpty.optional(),
2083
- confirm: z11.boolean().optional()
2428
+ confirm: z12.boolean().optional()
2084
2429
  });
2085
2430
  function codedError(code, message) {
2086
2431
  const error = new Error(message);
@@ -2148,17 +2493,17 @@ var adminEnrollmentTokenRevokeCapability = defineCapability({
2148
2493
  };
2149
2494
  }
2150
2495
  });
2151
- var nodeEnrollInput = z11.object({
2496
+ var nodeEnrollInput = z12.object({
2152
2497
  node_id: UUID,
2153
2498
  host: nonEmpty,
2154
2499
  organization_id: UUID,
2155
2500
  facility_id: UUID,
2156
2501
  identity_file: nonEmpty,
2157
- private_key: z11.string().min(1).optional(),
2502
+ private_key: z12.string().min(1).optional(),
2158
2503
  username: nonEmpty.default("root"),
2159
- port: z11.number().int().min(1).max(65535).default(22),
2504
+ port: z12.number().int().min(1).max(65535).default(22),
2160
2505
  expires_in_seconds: tokenTtl,
2161
- replace_existing_management: z11.literal(true)
2506
+ replace_existing_management: z12.literal(true)
2162
2507
  });
2163
2508
  var adminNodeEnrollCapability = defineCapability({
2164
2509
  id: "nodes.enroll",
@@ -2209,7 +2554,7 @@ var adminNodeEnrollCapability = defineCapability({
2209
2554
  return run;
2210
2555
  }
2211
2556
  });
2212
- var nodeKeyInput = z11.object({ node_id: UUID });
2557
+ var nodeKeyInput = z12.object({ node_id: UUID });
2213
2558
  var adminNodeExportKeyCapability = defineCapability({
2214
2559
  id: "nodes.export-key",
2215
2560
  domain: "fleet",
@@ -2263,11 +2608,11 @@ function createJob(request, body2) {
2263
2608
  }
2264
2609
 
2265
2610
  // ../../packages/capabilities/dist/capabilities/admin-node-diagnostics.js
2266
- import { z as z12 } from "zod";
2267
- var nodeId = z12.string().min(1).refine((value) => value === value.trim(), {
2611
+ import { z as z13 } from "zod";
2612
+ var nodeId = z13.string().min(1).refine((value) => value === value.trim(), {
2268
2613
  message: "node_id must be an exact canonical node ID without surrounding whitespace"
2269
2614
  });
2270
- var adminNodeDiagnoseInput = z12.object({
2615
+ var adminNodeDiagnoseInput = z13.object({
2271
2616
  node_id: nodeId
2272
2617
  });
2273
2618
  var adminNodeDiagnoseCapability = defineCapability({
@@ -2305,8 +2650,8 @@ var adminNodeDiagnoseCapability = defineCapability({
2305
2650
  var adminNodeDiagnosticCapabilities = [adminNodeDiagnoseCapability];
2306
2651
 
2307
2652
  // ../../packages/capabilities/dist/capabilities/admin-node-sanitize.js
2308
- import { z as z13 } from "zod";
2309
- var uuid2 = z13.string().uuid();
2653
+ import { z as z14 } from "zod";
2654
+ var uuid2 = z14.string().uuid();
2310
2655
  var sanitizeOperations = ["data_wipe", "ram_roundtrip", "node_turnover", "host_restore"];
2311
2656
  var sanitizeConfirmations = [
2312
2657
  "SANITIZE",
@@ -2325,49 +2670,49 @@ var startConfirmation = {
2325
2670
  node_turnover: "WIPE AND RESTORE",
2326
2671
  host_restore: "RESTORE HOST"
2327
2672
  };
2328
- var nodeSanitizeStartInput = z13.object({
2673
+ var nodeSanitizeStartInput = z14.object({
2329
2674
  node_id: uuid2.describe("Node UUID whose drives will be sanitized."),
2330
2675
  job_id: uuid2.describe("Caller-supplied stable sanitize job UUID; reuse it when retrying."),
2331
- operation: z13.enum(sanitizeOperations).optional().describe("Sanitize operation; omission defaults to data_wipe."),
2676
+ operation: z14.enum(sanitizeOperations).optional().describe("Sanitize operation; omission defaults to data_wipe."),
2332
2677
  maintenance_batch_id: uuid2.optional().describe("Optional maintenance batch UUID recorded by the audit middleware."),
2333
2678
  recovery_uuid: uuid2.optional().describe("Recovery boot identity: required for ram_roundtrip, optional for node_turnover and host_restore, rejected for data_wipe."),
2334
- confirmation: z13.enum(sanitizeConfirmations).describe("Exact confirmation phrase required for the selected operation.")
2679
+ confirmation: z14.enum(sanitizeConfirmations).describe("Exact confirmation phrase required for the selected operation.")
2335
2680
  }).strict().refine((input) => input.confirmation === startConfirmation[input.operation ?? "data_wipe"], {
2336
2681
  message: "confirmation must exactly match the selected sanitize operation.",
2337
2682
  path: ["confirmation"]
2338
2683
  }).refine((input) => {
2339
- const operation = input.operation ?? "data_wipe";
2340
- if (operation === "ram_roundtrip")
2684
+ const operation2 = input.operation ?? "data_wipe";
2685
+ if (operation2 === "ram_roundtrip")
2341
2686
  return input.recovery_uuid !== void 0;
2342
- return operation !== "data_wipe" || input.recovery_uuid === void 0;
2687
+ return operation2 !== "data_wipe" || input.recovery_uuid === void 0;
2343
2688
  }, {
2344
2689
  message: "recovery_uuid is required for ram_roundtrip and not accepted for data_wipe.",
2345
2690
  path: ["recovery_uuid"]
2346
2691
  });
2347
- var nodeSanitizeShowInput = z13.object({
2692
+ var nodeSanitizeShowInput = z14.object({
2348
2693
  node_id: uuid2.describe("Node UUID associated with the sanitize job."),
2349
2694
  job_id: uuid2.describe("Sanitize job UUID to read.")
2350
2695
  }).strict();
2351
- var manualCleanupInput = z13.object({
2696
+ var manualCleanupInput = z14.object({
2352
2697
  reservation_id: uuid2.describe("Reservation whose Bare Metal release this turnover job holds."),
2353
2698
  lifecycle_operation_id: uuid2.describe("The current orchestrator release operation UUID that owns the hold, not a Commerce operation."),
2354
- reason: z13.string().trim().min(20).max(2e3).describe("Cleanup performed and why the existing OS must be retained."),
2355
- 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."),
2356
- acknowledge_retained_os: z13.literal(true).describe("The existing OS is retained; OS integrity and full-media erasure are not established."),
2357
- tenant_access_revoked: z13.literal(true).describe("Former tenant workloads, keys, and active access were removed and verified."),
2358
- data_drives_sanitized: z13.literal(true).describe("Every local data drive was sanitized with retained per-drive receipts.")
2699
+ reason: z14.string().trim().min(20).max(2e3).describe("Cleanup performed and why the existing OS must be retained."),
2700
+ 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."),
2701
+ acknowledge_retained_os: z14.literal(true).describe("The existing OS is retained; OS integrity and full-media erasure are not established."),
2702
+ tenant_access_revoked: z14.literal(true).describe("Former tenant workloads, keys, and active access were removed and verified."),
2703
+ data_drives_sanitized: z14.literal(true).describe("Every local data drive was sanitized with retained per-drive receipts.")
2359
2704
  }).strict();
2360
- var nodeSanitizeUpdateInput = z13.object({
2705
+ var nodeSanitizeUpdateInput = z14.object({
2361
2706
  node_id: uuid2.describe("Node UUID associated with the sanitize job."),
2362
2707
  job_id: uuid2.describe("Sanitize job UUID to decide."),
2363
- 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."),
2708
+ 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."),
2364
2709
  manual_cleanup: manualCleanupInput.optional().describe("Required with ACCEPT MANUAL CLEANUP and rejected with any other decision.")
2365
2710
  }).strict().refine((input) => input.confirmation === "ACCEPT MANUAL CLEANUP" === (input.manual_cleanup !== void 0), {
2366
2711
  message: "manual_cleanup is required with ACCEPT MANUAL CLEANUP and allowed only with it.",
2367
2712
  path: ["manual_cleanup"]
2368
2713
  });
2369
2714
  function slackParameters(schema) {
2370
- const json = z13.toJSONSchema(schema);
2715
+ const json = z14.toJSONSchema(schema);
2371
2716
  return {
2372
2717
  type: "object",
2373
2718
  properties: json.properties,
@@ -2455,32 +2800,32 @@ var adminNodeSanitizeCapabilities = [
2455
2800
  ];
2456
2801
 
2457
2802
  // ../../packages/capabilities/dist/capabilities/admin-nodes-lifecycle.js
2458
- import { z as z14 } from "zod";
2459
- var nodeReference = z14.string().trim().min(1);
2460
- var optionalText = z14.string().trim().min(1).optional();
2803
+ import { z as z15 } from "zod";
2804
+ var nodeReference = z15.string().trim().min(1);
2805
+ var optionalText = z15.string().trim().min(1).optional();
2461
2806
  var commonInput = {
2462
2807
  node_ref: nodeReference,
2463
2808
  node_id: optionalText,
2464
2809
  idempotency_key: optionalText,
2465
2810
  reason: optionalText,
2466
- yes: z14.boolean().optional(),
2467
- wait: z14.boolean().optional(),
2468
- timeout_seconds: z14.number().positive().optional()
2811
+ yes: z15.boolean().optional(),
2812
+ wait: z15.boolean().optional(),
2813
+ timeout_seconds: z15.number().positive().optional()
2469
2814
  };
2470
- var rebootInput = z14.object({
2815
+ var rebootInput = z15.object({
2471
2816
  ...commonInput,
2472
2817
  machine_id: optionalText
2473
2818
  });
2474
2819
  var hardResetInput = rebootInput.extend({
2475
- erase_local_data: z14.literal(true)
2820
+ erase_local_data: z15.literal(true)
2476
2821
  });
2477
- var assignmentInput = z14.object({
2822
+ var assignmentInput = z15.object({
2478
2823
  ...commonInput,
2479
- reservation_id: z14.string().trim().min(1),
2480
- expected_reservation_id: z14.string().nullable().optional()
2824
+ reservation_id: z15.string().trim().min(1),
2825
+ expected_reservation_id: z15.string().nullable().optional()
2481
2826
  });
2482
- var machineRebootInput = z14.object({ instanceId: z14.string(), confirm: z14.boolean().optional() });
2483
- var rebootOperationInput = machineRebootInput.extend({ idempotencyKey: z14.string().optional() });
2827
+ var machineRebootInput = z15.object({ instanceId: z15.string(), confirm: z15.boolean().optional() });
2828
+ var rebootOperationInput = machineRebootInput.extend({ idempotencyKey: z15.string().optional() });
2484
2829
  function adminLifecycleHelp(outcome, human, automation, review) {
2485
2830
  return {
2486
2831
  audience: "admin",
@@ -2559,11 +2904,11 @@ var adminNodeHardResetCapability = defineCapability({
2559
2904
  input: rebootOperationInput,
2560
2905
  execute: (ctx, input) => reboot(ctx, input, "hard_reset")
2561
2906
  });
2562
- var nodeAssignInput = z14.object({
2563
- nodeId: z14.string(),
2564
- reservationId: z14.string(),
2565
- 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."),
2566
- confirm: z14.boolean().optional()
2907
+ var nodeAssignInput = z15.object({
2908
+ nodeId: z15.string(),
2909
+ reservationId: z15.string(),
2910
+ 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."),
2911
+ confirm: z15.boolean().optional()
2567
2912
  });
2568
2913
  var adminNodeAssignCapability = defineCapability({
2569
2914
  id: "nodes.assign",
@@ -2586,7 +2931,7 @@ var adminNodeAssignCapability = defineCapability({
2586
2931
  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.")
2587
2932
  },
2588
2933
  mcp: { name: "node_assign", input: nodeAssignInput },
2589
- input: nodeAssignInput.extend({ idempotencyKey: z14.string().optional() }),
2934
+ input: nodeAssignInput.extend({ idempotencyKey: z15.string().optional() }),
2590
2935
  execute: async (ctx, input) => {
2591
2936
  const body2 = {
2592
2937
  reservation_id: input.reservationId,
@@ -2606,7 +2951,7 @@ var adminNodeLifecycleCapabilities = [
2606
2951
  ];
2607
2952
 
2608
2953
  // ../../packages/capabilities/dist/capabilities/billing.js
2609
- import { z as z15 } from "zod";
2954
+ import { z as z16 } from "zod";
2610
2955
  var DATE_ONLY = /^\d{4}-\d{2}-\d{2}$/;
2611
2956
  var billingCapabilities = [
2612
2957
  defineCapability({
@@ -2615,7 +2960,7 @@ var billingCapabilities = [
2615
2960
  roles: ["user"],
2616
2961
  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.",
2617
2962
  mutation: "read",
2618
- input: z15.object({}),
2963
+ input: z16.object({}),
2619
2964
  execute: (ctx) => getBillingSummary(ctx.fetch)
2620
2965
  }),
2621
2966
  defineCapability({
@@ -2624,9 +2969,9 @@ var billingCapabilities = [
2624
2969
  roles: ["user"],
2625
2970
  description: "List a page of this tenant's invoices.",
2626
2971
  mutation: "read",
2627
- input: z15.object({
2628
- limit: z15.number().int().min(1).max(500).optional(),
2629
- cursor: z15.string().trim().min(1).max(2048).optional()
2972
+ input: z16.object({
2973
+ limit: z16.number().int().min(1).max(500).optional(),
2974
+ cursor: z16.string().trim().min(1).max(2048).optional()
2630
2975
  }),
2631
2976
  execute: (ctx, input) => listInvoices(ctx.fetch, input)
2632
2977
  }),
@@ -2636,9 +2981,9 @@ var billingCapabilities = [
2636
2981
  roles: ["user"],
2637
2982
  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.",
2638
2983
  mutation: "read",
2639
- input: z15.object({
2640
- start: z15.string().regex(DATE_ONLY, "start must be a date in yyyy-mm-dd format."),
2641
- end: z15.string().regex(DATE_ONLY, "end must be a date in yyyy-mm-dd format.")
2984
+ input: z16.object({
2985
+ start: z16.string().regex(DATE_ONLY, "start must be a date in yyyy-mm-dd format."),
2986
+ end: z16.string().regex(DATE_ONLY, "end must be a date in yyyy-mm-dd format.")
2642
2987
  }).refine((input) => input.start <= input.end, { message: "start must be on or before end." }),
2643
2988
  execute: (ctx, input) => getShowback(ctx.fetch, input)
2644
2989
  })
@@ -2727,10 +3072,10 @@ function getCliStatus(request) {
2727
3072
  }
2728
3073
 
2729
3074
  // ../../packages/capabilities/dist/capabilities/compute.js
2730
- import { z as z17 } from "zod";
3075
+ import { z as z18 } from "zod";
2731
3076
 
2732
3077
  // ../../packages/capabilities/dist/capabilities/ssh-keys.js
2733
- import { z as z16 } from "zod";
3078
+ import { z as z17 } from "zod";
2734
3079
  async function activeReservationNodes(context, reservationId) {
2735
3080
  const { nodes: nodes2 } = await listNodes(context.fetch, { reservation_id: reservationId });
2736
3081
  return nodes2.filter((node) => node.status !== "terminated");
@@ -2763,10 +3108,10 @@ var reservationKeysPushCapability = defineCapability({
2763
3108
  roles: ["user"],
2764
3109
  description: "Push SSH key(s) onto all active machines for a reservation.",
2765
3110
  mutation: "immediate",
2766
- input: z16.object({
2767
- reservationId: z16.string(),
2768
- sshKeyIds: z16.array(z16.string()).min(1),
2769
- requestId: z16.string().optional()
3111
+ input: z17.object({
3112
+ reservationId: z17.string(),
3113
+ sshKeyIds: z17.array(z17.string()).min(1),
3114
+ requestId: z17.string().optional()
2770
3115
  }),
2771
3116
  mcp: { aliases: ["access_keys_push"] },
2772
3117
  execute: async (context, input) => {
@@ -2785,94 +3130,94 @@ var reservationKeysPushCapability = defineCapability({
2785
3130
  });
2786
3131
 
2787
3132
  // ../../packages/capabilities/dist/capabilities/compute.js
2788
- var positionals2 = z17.array(z17.string()).default([]);
2789
- var launchInput = z17.object({
3133
+ var positionals2 = z18.array(z18.string()).default([]);
3134
+ var launchInput = z18.object({
2790
3135
  $positionals: positionals2,
2791
- guided: z17.boolean().optional(),
2792
- idempotencyKey: z17.string().optional(),
2793
- key: z17.string().optional(),
2794
- keyId: z17.string().optional(),
2795
- label: z17.string().optional(),
2796
- machine: z17.string().optional(),
2797
- machines: z17.string().optional(),
2798
- mode: z17.string().optional(),
2799
- mountAccess: z17.string().optional(),
2800
- network: z17.string().optional(),
2801
- noWait: z17.boolean().optional(),
2802
- nodes: z17.union([z17.string(), z17.number()]).optional(),
2803
- publicKey: z17.string().optional(),
2804
- publicKeyFile: z17.string().optional(),
2805
- reservation: z17.string().optional(),
2806
- resume: z17.union([z17.string().min(1), z17.literal(true)]).optional(),
2807
- timeout: z17.string().optional(),
2808
- username: z17.string().optional(),
2809
- vms: z17.string().optional(),
2810
- wait: z17.boolean().optional(),
2811
- yes: z17.boolean().optional(),
2812
- volume: z17.string().optional()
3136
+ guided: z18.boolean().optional(),
3137
+ idempotencyKey: z18.string().optional(),
3138
+ key: z18.string().optional(),
3139
+ keyId: z18.string().optional(),
3140
+ label: z18.string().optional(),
3141
+ machine: z18.string().optional(),
3142
+ machines: z18.string().optional(),
3143
+ mode: z18.string().optional(),
3144
+ mountAccess: z18.string().optional(),
3145
+ network: z18.string().optional(),
3146
+ noWait: z18.boolean().optional(),
3147
+ nodes: z18.union([z18.string(), z18.number()]).optional(),
3148
+ publicKey: z18.string().optional(),
3149
+ publicKeyFile: z18.string().optional(),
3150
+ reservation: z18.string().optional(),
3151
+ resume: z18.union([z18.string().min(1), z18.literal(true)]).optional(),
3152
+ timeout: z18.string().optional(),
3153
+ username: z18.string().optional(),
3154
+ vms: z18.string().optional(),
3155
+ wait: z18.boolean().optional(),
3156
+ yes: z18.boolean().optional(),
3157
+ volume: z18.string().optional()
2813
3158
  }).strict();
2814
- var pageInput = z17.object({
2815
- limit: z17.number().int().min(1).max(500).optional(),
2816
- cursor: z17.string().optional()
3159
+ var pageInput = z18.object({
3160
+ limit: z18.number().int().min(1).max(500).optional(),
3161
+ cursor: z18.string().optional()
2817
3162
  });
2818
- var publicKeyInput = z17.object({
2819
- publicKey: z17.string(),
2820
- label: z17.string().optional(),
2821
- confirm: z17.boolean().optional()
3163
+ var publicKeyInput = z18.object({
3164
+ publicKey: z18.string(),
3165
+ label: z18.string().optional(),
3166
+ confirm: z18.boolean().optional()
2822
3167
  });
2823
- var keyIdInput = z17.object({ keyId: z17.string(), confirm: z17.boolean().optional() });
2824
- var reservationKeyInput = publicKeyInput.extend({ reservationId: z17.string() });
3168
+ var keyIdInput = z18.object({ keyId: z18.string(), confirm: z18.boolean().optional() });
3169
+ var reservationKeyInput = publicKeyInput.extend({ reservationId: z18.string() });
2825
3170
  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.";
2826
- var keyListInput = z17.object({
3171
+ var keyListInput = z18.object({
2827
3172
  $positionals: positionals2,
2828
- cursor: z17.string().optional(),
2829
- limit: z17.coerce.number().int().min(1).max(500).optional()
3173
+ cursor: z18.string().optional(),
3174
+ limit: z18.coerce.number().int().min(1).max(500).optional()
2830
3175
  }).strict();
2831
- var keyMutationInput = z17.object({
3176
+ var keyMutationInput = z18.object({
2832
3177
  $positionals: positionals2,
2833
- idempotencyKey: z17.string().optional(),
2834
- key: z17.string().optional(),
2835
- keyId: z17.string().optional(),
2836
- label: z17.string().optional(),
2837
- publicKey: z17.string().optional(),
2838
- publicKeyFile: z17.string().optional(),
2839
- yes: z17.boolean().optional()
3178
+ idempotencyKey: z18.string().optional(),
3179
+ key: z18.string().optional(),
3180
+ keyId: z18.string().optional(),
3181
+ label: z18.string().optional(),
3182
+ publicKey: z18.string().optional(),
3183
+ publicKeyFile: z18.string().optional(),
3184
+ yes: z18.boolean().optional()
2840
3185
  }).strict();
2841
- var machineListInput = z17.object({
3186
+ var machineListInput = z18.object({
2842
3187
  $positionals: positionals2,
2843
- cursor: z17.string().optional(),
2844
- limit: z17.coerce.number().int().min(1).max(500).optional()
3188
+ cursor: z18.string().optional(),
3189
+ limit: z18.coerce.number().int().min(1).max(500).optional()
2845
3190
  }).strict();
2846
- var machineShowInput = z17.object({
3191
+ var machineShowInput = z18.object({
2847
3192
  $positionals: positionals2,
2848
- guided: z17.boolean().optional()
3193
+ guided: z18.boolean().optional()
2849
3194
  }).strict();
2850
- var machineWaitInput = z17.object({
3195
+ var machineWaitInput = z18.object({
2851
3196
  $positionals: positionals2,
2852
- guided: z17.boolean().optional(),
2853
- timeout: z17.string().optional()
3197
+ guided: z18.boolean().optional(),
3198
+ timeout: z18.string().optional()
2854
3199
  }).strict();
2855
- var machineSwitchInput = z17.object({
3200
+ var machineSwitchInput = z18.object({
2856
3201
  $positionals: positionals2,
2857
- guided: z17.boolean().optional(),
2858
- eraseLocalData: z17.boolean().optional(),
2859
- idempotencyKey: z17.string().optional(),
2860
- mode: z17.string().optional(),
2861
- network: z17.string().optional(),
2862
- noWait: z17.boolean().optional(),
2863
- timeout: z17.string().optional(),
2864
- wait: z17.boolean().optional(),
2865
- yes: z17.boolean().optional()
3202
+ guided: z18.boolean().optional(),
3203
+ eraseLocalData: z18.boolean().optional(),
3204
+ idempotencyKey: z18.string().optional(),
3205
+ mode: z18.string().optional(),
3206
+ network: z18.string().optional(),
3207
+ noWait: z18.boolean().optional(),
3208
+ timeout: z18.string().optional(),
3209
+ wait: z18.boolean().optional(),
3210
+ yes: z18.boolean().optional()
2866
3211
  }).strict();
2867
- var machineMaintenanceInput = z17.object({
3212
+ var machineMaintenanceInput = z18.object({
2868
3213
  $positionals: positionals2,
2869
- eraseLocalData: z17.boolean().optional(),
2870
- guided: z17.boolean().optional(),
2871
- idempotencyKey: z17.string().optional(),
2872
- noWait: z17.boolean().optional(),
2873
- timeout: z17.string().optional(),
2874
- wait: z17.boolean().optional(),
2875
- yes: z17.boolean().optional()
3214
+ eraseLocalData: z18.boolean().optional(),
3215
+ guided: z18.boolean().optional(),
3216
+ idempotencyKey: z18.string().optional(),
3217
+ noWait: z18.boolean().optional(),
3218
+ timeout: z18.string().optional(),
3219
+ wait: z18.boolean().optional(),
3220
+ yes: z18.boolean().optional()
2876
3221
  }).strict();
2877
3222
  function runtime(context) {
2878
3223
  const interaction = context.cli?.interaction;
@@ -3026,19 +3371,19 @@ var machineWaitCapability = cliOnly({
3026
3371
  },
3027
3372
  execute: executeMachines("wait")
3028
3373
  });
3029
- var accessSwitchInput = z17.object({
3030
- reservationId: z17.string(),
3031
- networkMode: z17.enum(["public", "private"]),
3032
- sshKeyIds: z17.array(z17.string()).min(1),
3033
- accessMode: z17.enum(["bare-metal", "virtual-machine"]).optional(),
3034
- username: z17.string().optional(),
3035
- requestId: z17.string().regex(/\S/),
3036
- confirm: z17.boolean().optional()
3374
+ var accessSwitchInput = z18.object({
3375
+ reservationId: z18.string(),
3376
+ networkMode: z18.enum(["public", "private"]),
3377
+ sshKeyIds: z18.array(z18.string()).min(1),
3378
+ accessMode: z18.enum(["bare-metal", "virtual-machine"]).optional(),
3379
+ username: z18.string().optional(),
3380
+ requestId: z18.string().regex(/\S/),
3381
+ confirm: z18.boolean().optional()
3037
3382
  });
3038
- var nodeIdInput = z17.object({ nodeId: z17.string(), confirm: z17.boolean().optional() });
3383
+ var nodeIdInput = z18.object({ nodeId: z18.string(), confirm: z18.boolean().optional() });
3039
3384
  var nodeMaintenanceInput = nodeIdInput.extend({
3040
- requestId: z17.string().optional(),
3041
- eraseLocalData: z17.boolean().optional()
3385
+ requestId: z18.string().optional(),
3386
+ eraseLocalData: z18.boolean().optional()
3042
3387
  });
3043
3388
  function rebootMachine(mode) {
3044
3389
  return (ctx, input) => input.virtualMachineId ? rebootVirtualMachine(ctx.fetch, input.nodeId, input.virtualMachineId, { mode }) : rebootNode(ctx.fetch, input.nodeId, {
@@ -3054,9 +3399,9 @@ var machineSwitchCapability = defineCapability({
3054
3399
  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.",
3055
3400
  mutation: "preview-confirm",
3056
3401
  input: accessSwitchInput.extend({
3057
- accessMode: z17.enum(["bare-metal", "virtual-machine"]).nullable().optional(),
3058
- eraseLocalData: z17.boolean().optional(),
3059
- machineCount: z17.number().int().positive().optional()
3402
+ accessMode: z18.enum(["bare-metal", "virtual-machine"]).nullable().optional(),
3403
+ eraseLocalData: z18.boolean().optional(),
3404
+ machineCount: z18.number().int().positive().optional()
3060
3405
  }),
3061
3406
  mcp: { name: "access_switch", input: accessSwitchInput },
3062
3407
  cli: {
@@ -3092,7 +3437,7 @@ var machineRebootCapability = defineCapability({
3092
3437
  roles: ["user"],
3093
3438
  description: "Reboot a running reservation machine. Keeps storage and SSH keys. Pass the machine/node instance id from access_show.",
3094
3439
  mutation: "preview-confirm",
3095
- input: nodeMaintenanceInput.extend({ virtualMachineId: z17.string().optional() }),
3440
+ input: nodeMaintenanceInput.extend({ virtualMachineId: z18.string().optional() }),
3096
3441
  mcp: { name: "nodes_reboot", input: nodeIdInput },
3097
3442
  cli: {
3098
3443
  input: machineMaintenanceInput,
@@ -3155,7 +3500,7 @@ var sshKeyListCapability = defineCapability({
3155
3500
  domain: "access",
3156
3501
  roles: ["user"],
3157
3502
  mutation: "read",
3158
- input: pageInput.extend({ status: z17.enum(["active", "all"]).optional() }),
3503
+ input: pageInput.extend({ status: z18.enum(["active", "all"]).optional() }),
3159
3504
  description: "List a page of account SSH keys. Pass next_cursor as cursor to continue.",
3160
3505
  mcp: { name: "ssh_keys_list", aliases: ["cluster_users_list"], input: pageInput },
3161
3506
  cli: {
@@ -3186,8 +3531,8 @@ var sshKeyAddCapability = defineCapability({
3186
3531
  roles: ["user"],
3187
3532
  mutation: "preview-confirm",
3188
3533
  input: publicKeyInput.extend({
3189
- label: z17.string().nullable().optional(),
3190
- idempotencyKey: z17.string().optional()
3534
+ label: z18.string().nullable().optional(),
3535
+ idempotencyKey: z18.string().optional()
3191
3536
  }),
3192
3537
  description: `Add an SSH public key to the account. ${ADDED_KEY_OUTCOME}`,
3193
3538
  mcp: { name: "ssh_keys_add", aliases: ["cluster_users_add"], input: publicKeyInput },
@@ -3215,7 +3560,7 @@ var sshKeyDeleteCapability = defineCapability({
3215
3560
  domain: "access",
3216
3561
  roles: ["user"],
3217
3562
  mutation: "preview-confirm",
3218
- input: keyIdInput.extend({ idempotencyKey: z17.string().optional() }),
3563
+ input: keyIdInput.extend({ idempotencyKey: z18.string().optional() }),
3219
3564
  description: "Delete an SSH key from the account.",
3220
3565
  mcp: { name: "ssh_keys_delete", aliases: ["cluster_users_revoke"], input: keyIdInput },
3221
3566
  cli: {
@@ -3246,7 +3591,7 @@ var sshKeyAssignmentListCapability = defineCapability({
3246
3591
  domain: "access",
3247
3592
  roles: ["user"],
3248
3593
  mutation: "read",
3249
- input: z17.object({ reservationId: z17.string() }),
3594
+ input: z18.object({ reservationId: z18.string() }),
3250
3595
  description: "List SSH keys registered for a reservation.",
3251
3596
  mcp: { name: "access_keys_list" },
3252
3597
  cli: {
@@ -3272,9 +3617,9 @@ var sshKeyAssignmentAssignCapability = defineCapability({
3272
3617
  domain: "access",
3273
3618
  roles: ["user"],
3274
3619
  mutation: "preview-confirm",
3275
- input: z17.union([
3276
- reservationKeyInput.extend({ idempotencyKey: z17.string().optional() }),
3277
- keyIdInput.extend({ reservationId: z17.string(), idempotencyKey: z17.string().optional() })
3620
+ input: z18.union([
3621
+ reservationKeyInput.extend({ idempotencyKey: z18.string().optional() }),
3622
+ keyIdInput.extend({ reservationId: z18.string(), idempotencyKey: z18.string().optional() })
3278
3623
  ]),
3279
3624
  description: `Add an SSH key to a reservation. ${ADDED_KEY_OUTCOME}`,
3280
3625
  mcp: { name: "access_keys_add", input: reservationKeyInput },
@@ -3332,7 +3677,7 @@ var sshKeyAssignmentStatusCapability = defineCapability({
3332
3677
  domain: "access",
3333
3678
  roles: ["user"],
3334
3679
  mutation: "read",
3335
- input: z17.object({ reservationId: z17.string() }),
3680
+ input: z18.object({ reservationId: z18.string() }),
3336
3681
  description: "Show SSH key push status per machine for a reservation.",
3337
3682
  mcp: { name: "access_keys_status" },
3338
3683
  cli: {
@@ -3376,21 +3721,21 @@ var accessShowCapability = defineCapability({
3376
3721
  roles: ["user"],
3377
3722
  description: "Show VM and Bare Metal SSH access machines for a reservation.",
3378
3723
  mutation: "read",
3379
- input: z17.object({ reservationId: z17.string() }),
3724
+ input: z18.object({ reservationId: z18.string() }),
3380
3725
  execute: (ctx, input) => listNodes(ctx.fetch, { reservation_id: input.reservationId })
3381
3726
  });
3382
- var accessActivateInput = z17.object({
3383
- reservationId: z17.string(),
3384
- sshKeyIds: z17.array(z17.string()).min(1),
3385
- username: z17.string().optional(),
3386
- machineCount: z17.number().int().positive().optional(),
3387
- requestId: z17.string().optional(),
3388
- accessMode: z17.enum(["bare-metal", "vm"]).optional(),
3389
- networkMode: z17.enum(["public", "private"]).optional(),
3390
- diskId: z17.string().optional(),
3391
- storageLoadDriveId: z17.string().optional(),
3392
- storageSaveDriveId: z17.string().optional(),
3393
- confirm: z17.boolean().optional()
3727
+ var accessActivateInput = z18.object({
3728
+ reservationId: z18.string(),
3729
+ sshKeyIds: z18.array(z18.string()).min(1),
3730
+ username: z18.string().optional(),
3731
+ machineCount: z18.number().int().positive().optional(),
3732
+ requestId: z18.string().optional(),
3733
+ accessMode: z18.enum(["bare-metal", "vm"]).optional(),
3734
+ networkMode: z18.enum(["public", "private"]).optional(),
3735
+ diskId: z18.string().optional(),
3736
+ storageLoadDriveId: z18.string().optional(),
3737
+ storageSaveDriveId: z18.string().optional(),
3738
+ confirm: z18.boolean().optional()
3394
3739
  });
3395
3740
  var accessActivateCapability = defineCapability({
3396
3741
  id: "access.activate",
@@ -3399,8 +3744,8 @@ var accessActivateCapability = defineCapability({
3399
3744
  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.",
3400
3745
  mutation: "preview-confirm",
3401
3746
  input: accessActivateInput.extend({
3402
- diskId: z17.string().nullable().optional(),
3403
- zone: z17.string().nullable().optional()
3747
+ diskId: z18.string().nullable().optional(),
3748
+ zone: z18.string().nullable().optional()
3404
3749
  }),
3405
3750
  mcp: { input: accessActivateInput },
3406
3751
  // Without disk_id the orchestrator boots "virtual-machine" from the
@@ -3419,28 +3764,8 @@ var accessActivateCapability = defineCapability({
3419
3764
  });
3420
3765
  var accessVerbCapabilities = [accessShowCapability, accessActivateCapability];
3421
3766
 
3422
- // ../../packages/api-client/dist/ledger/index.js
3423
- function queryString2(input) {
3424
- const query3 = new URLSearchParams();
3425
- for (const [key, value] of Object.entries(input)) {
3426
- if (value === void 0)
3427
- continue;
3428
- for (const item of Array.isArray(value) ? value : [value])
3429
- query3.append(key, String(item));
3430
- }
3431
- return query3.size ? `?${query3}` : "";
3432
- }
3433
- function listAccounts(request, input = {}, signal) {
3434
- return request(`/v1/ledger/accounts${queryString2({
3435
- organization_id: Array.isArray(input.organization_id) ? input.organization_id.join(",") : input.organization_id
3436
- })}`, {
3437
- method: "GET",
3438
- signal
3439
- });
3440
- }
3441
-
3442
3767
  // ../../packages/capabilities/dist/capabilities/credits.js
3443
- import { z as z18 } from "zod";
3768
+ import { z as z19 } from "zod";
3444
3769
 
3445
3770
  // ../../packages/capabilities/dist/ledger-amount.js
3446
3771
  function parsePostingCents(value) {
@@ -3487,11 +3812,11 @@ var creditBalanceCapability = defineCapability({
3487
3812
  required: ["organizationId"]
3488
3813
  }
3489
3814
  },
3490
- input: z18.object({ organizationId: z18.uuid() }),
3815
+ input: z19.object({ organizationId: z19.uuid() }),
3491
3816
  execute: async (ctx, input) => {
3492
3817
  if (ctx.role !== "admin")
3493
3818
  throw new Error("Admin role required.");
3494
- const { organizationId } = z18.object({ organizationId: z18.uuid() }).parse(input);
3819
+ const { organizationId } = z19.object({ organizationId: z19.uuid() }).parse(input);
3495
3820
  const { accounts } = await listAccounts(ctx.fetch, { organization_id: organizationId });
3496
3821
  const balance = availableCreditCents(accounts);
3497
3822
  if (balance === null)
@@ -3503,13 +3828,13 @@ var creditBalanceCapability = defineCapability({
3503
3828
  };
3504
3829
  }
3505
3830
  });
3506
- var creditGrantInput = z18.object({
3507
- organizationId: z18.uuid().describe("Customer organization UUID. Resolve names or emails with organization_list; ask which organization if matches are ambiguous."),
3508
- adjustmentId: z18.uuid().describe("The credit-adjustment API's required grant UUID. Keep the same UUID when confirming this grant."),
3509
- amountCents: z18.number().int().min(1).max(1e8).describe("USD cents: 10000 grants $100.00."),
3510
- direction: z18.enum(["credit", "debit"]).default("credit").describe("credit adds funds (default); debit removes funds. Choose explicitly for a debit."),
3511
- 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."),
3512
- confirm: z18.boolean().optional()
3831
+ var creditGrantInput = z19.object({
3832
+ organizationId: z19.uuid().describe("Customer organization UUID. Resolve names or emails with organization_list; ask which organization if matches are ambiguous."),
3833
+ adjustmentId: z19.uuid().describe("The credit-adjustment API's required grant UUID. Keep the same UUID when confirming this grant."),
3834
+ amountCents: z19.number().int().min(1).max(1e8).describe("USD cents: 10000 grants $100.00."),
3835
+ direction: z19.enum(["credit", "debit"]).default("credit").describe("credit adds funds (default); debit removes funds. Choose explicitly for a debit."),
3836
+ 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."),
3837
+ confirm: z19.boolean().optional()
3513
3838
  });
3514
3839
  var creditGrantCapability = defineCapability({
3515
3840
  id: "credits.grant",
@@ -3578,7 +3903,7 @@ var creditAdjustmentsListCapability = defineCapability({
3578
3903
  roles: ["admin"],
3579
3904
  mutation: "read",
3580
3905
  description: "Read the organization's credit/debit adjustment history, including audit notes.",
3581
- input: z18.object({ organizationId: z18.uuid() }),
3906
+ input: z19.object({ organizationId: z19.uuid() }),
3582
3907
  cli: {
3583
3908
  command: ["admin", "organizations", "credit-adjustments"],
3584
3909
  vnext: {
@@ -3594,19 +3919,19 @@ var creditAdjustmentsListCapability = defineCapability({
3594
3919
  execute: async (ctx, input) => {
3595
3920
  if (ctx.role !== "admin")
3596
3921
  throw new Error("Admin role required.");
3597
- const { organizationId } = z18.object({ organizationId: z18.uuid() }).parse(input);
3922
+ const { organizationId } = z19.object({ organizationId: z19.uuid() }).parse(input);
3598
3923
  return listCreditAdjustments(ctx.fetch, organizationId);
3599
3924
  }
3600
3925
  });
3601
3926
 
3602
3927
  // ../../packages/capabilities/dist/capabilities/gifts.js
3603
- import { z as z19 } from "zod";
3928
+ import { z as z20 } from "zod";
3604
3929
  var DEFAULT_EXPIRY_DAYS = 30;
3605
- var giftCreateInput = z19.object({
3606
- 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."),
3607
- 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.`),
3608
- note: z19.string().trim().max(500).optional().describe("Internal reason for the gift, for example the promotion or customer. Never shown to the recipient."),
3609
- confirm: z19.boolean().optional()
3930
+ var giftCreateInput = z20.object({
3931
+ 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."),
3932
+ 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.`),
3933
+ note: z20.string().trim().max(500).optional().describe("Internal reason for the gift, for example the promotion or customer. Never shown to the recipient."),
3934
+ confirm: z20.boolean().optional()
3610
3935
  });
3611
3936
  var giftCreateCapability = defineCapability({
3612
3937
  id: "gifts.create",
@@ -3668,20 +3993,20 @@ var giftCreateCapability = defineCapability({
3668
3993
  });
3669
3994
 
3670
3995
  // ../../packages/capabilities/dist/capabilities/cli.js
3671
- import { z as z20 } from "zod";
3672
- var emptyInput2 = z20.object({});
3996
+ import { z as z21 } from "zod";
3997
+ var emptyInput2 = z21.object({});
3673
3998
  function requireCliRuntime(context) {
3674
3999
  if (!context.cli) {
3675
4000
  throw new Error("This capability must execute through the Ornn CLI runtime.");
3676
4001
  }
3677
4002
  return context.cli;
3678
4003
  }
3679
- var updateInput = z20.object({
3680
- $positionals: z20.array(z20.string()).max(0).default([]),
3681
- major: z20.boolean().optional()
4004
+ var updateInput = z21.object({
4005
+ $positionals: z21.array(z21.string()).max(0).default([]),
4006
+ major: z21.boolean().optional()
3682
4007
  });
3683
- var completionInput = z20.object({
3684
- $positionals: z20.tuple([z20.enum(["bash", "fish", "zsh"])])
4008
+ var completionInput = z21.object({
4009
+ $positionals: z21.tuple([z21.enum(["bash", "fish", "zsh"])])
3685
4010
  }).transform(({ $positionals }) => ({ shell: $positionals[0] }));
3686
4011
  var versionCapability = defineCapability({
3687
4012
  id: "cli.version",
@@ -3822,23 +4147,23 @@ var cliShellCapabilities = [
3822
4147
  ];
3823
4148
 
3824
4149
  // ../../packages/capabilities/dist/capabilities/clusters.js
3825
- import { z as z21 } from "zod";
3826
- var clusterCliInput = z21.object({
3827
- $positionals: z21.array(z21.string()).optional(),
3828
- cursor: z21.string().optional(),
3829
- guided: z21.boolean().optional(),
3830
- idempotencyKey: z21.string().optional(),
3831
- limit: z21.union([z21.string(), z21.number()]).optional(),
3832
- machine: z21.string().optional(),
3833
- machines: z21.string().optional(),
3834
- network: z21.enum(["public", "private"]).optional(),
3835
- noWait: z21.boolean().optional(),
3836
- nodes: z21.union([z21.string(), z21.number()]).optional(),
3837
- output: z21.string().optional(),
3838
- overwrite: z21.boolean().optional(),
3839
- timeout: z21.string().optional(),
3840
- wait: z21.boolean().optional(),
3841
- yes: z21.boolean().optional()
4150
+ import { z as z22 } from "zod";
4151
+ var clusterCliInput = z22.object({
4152
+ $positionals: z22.array(z22.string()).optional(),
4153
+ cursor: z22.string().optional(),
4154
+ guided: z22.boolean().optional(),
4155
+ idempotencyKey: z22.string().optional(),
4156
+ limit: z22.union([z22.string(), z22.number()]).optional(),
4157
+ machine: z22.string().optional(),
4158
+ machines: z22.string().optional(),
4159
+ network: z22.enum(["public", "private"]).optional(),
4160
+ noWait: z22.boolean().optional(),
4161
+ nodes: z22.union([z22.string(), z22.number()]).optional(),
4162
+ output: z22.string().optional(),
4163
+ overwrite: z22.boolean().optional(),
4164
+ timeout: z22.string().optional(),
4165
+ wait: z22.boolean().optional(),
4166
+ yes: z22.boolean().optional()
3842
4167
  }).strict();
3843
4168
  function executeCluster(command) {
3844
4169
  return (context, input) => {
@@ -3877,13 +4202,13 @@ function clusterCliCapability({ acceptedReferences = [], automation, command, de
3877
4202
  execute: executeCluster(id)
3878
4203
  });
3879
4204
  }
3880
- var clusterType = z21.enum(["kubernetes", "slurm"]);
3881
- var reservationCluster = z21.object({ reservationId: z21.string(), type: clusterType });
3882
- var reservationWrite = reservationCluster.extend({ confirm: z21.boolean().optional() });
3883
- var controllerNode = z21.object({
3884
- controllerId: z21.string(),
3885
- nodeId: z21.string(),
3886
- confirm: z21.boolean().optional()
4205
+ var clusterType = z22.enum(["kubernetes", "slurm"]);
4206
+ var reservationCluster = z22.object({ reservationId: z22.string(), type: clusterType });
4207
+ var reservationWrite = reservationCluster.extend({ confirm: z22.boolean().optional() });
4208
+ var controllerNode = z22.object({
4209
+ controllerId: z22.string(),
4210
+ nodeId: z22.string(),
4211
+ confirm: z22.boolean().optional()
3887
4212
  });
3888
4213
  var clusterListCapability = defineCapability({
3889
4214
  id: "clusters.list",
@@ -3891,7 +4216,7 @@ var clusterListCapability = defineCapability({
3891
4216
  roles: ["user"],
3892
4217
  description: "List this tenant's kubernetes/slurm clusters.",
3893
4218
  mutation: "read",
3894
- input: z21.object({}),
4219
+ input: z22.object({}),
3895
4220
  mcp: { name: "clusters_list" },
3896
4221
  execute: (ctx) => listClusters(ctx.fetch),
3897
4222
  cli: {
@@ -3943,7 +4268,7 @@ var clusterTeardownCapability = defineCapability({
3943
4268
  roles: ["user"],
3944
4269
  description: "Tear down a kubernetes or slurm cluster on a reservation.",
3945
4270
  mutation: "preview-confirm",
3946
- input: reservationWrite.extend({ idempotencyKey: z21.string().optional() }),
4271
+ input: reservationWrite.extend({ idempotencyKey: z22.string().optional() }),
3947
4272
  mcp: { name: "clusters_teardown", input: reservationWrite },
3948
4273
  execute: (ctx, input) => teardownReservationCluster(ctx.fetch, input.type, input.reservationId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
3949
4274
  cli: {
@@ -3980,7 +4305,7 @@ var clusterAddNodeCapability = defineCapability({
3980
4305
  roles: ["user"],
3981
4306
  description: "Join a node to a controller.",
3982
4307
  mutation: "preview-confirm",
3983
- input: controllerNode.extend({ idempotencyKey: z21.string().optional() }),
4308
+ input: controllerNode.extend({ idempotencyKey: z22.string().optional() }),
3984
4309
  mcp: { name: "clusters_add_node", input: controllerNode },
3985
4310
  cli: {
3986
4311
  command: ["clusters", "add-node"],
@@ -4012,7 +4337,7 @@ var clusterRemoveNodeCapability = defineCapability({
4012
4337
  roles: ["user"],
4013
4338
  description: "Remove a node from a controller.",
4014
4339
  mutation: "preview-confirm",
4015
- input: controllerNode.extend({ idempotencyKey: z21.string().optional() }),
4340
+ input: controllerNode.extend({ idempotencyKey: z22.string().optional() }),
4016
4341
  mcp: { name: "clusters_remove_node", input: controllerNode },
4017
4342
  cli: {
4018
4343
  command: ["clusters", "remove-node"],
@@ -4038,13 +4363,13 @@ var clusterRemoveNodeCapability = defineCapability({
4038
4363
  },
4039
4364
  execute: (ctx, input) => removeControllerNode(ctx.fetch, input.controllerId, input.nodeId, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0)
4040
4365
  });
4041
- var clusterCreateInput = z21.object({
4042
- reservationId: z21.string(),
4366
+ var clusterCreateInput = z22.object({
4367
+ reservationId: z22.string(),
4043
4368
  type: clusterType,
4044
- networkMode: z21.enum(["public", "private"]).optional(),
4045
- nodeIds: z21.array(z21.string()).optional(),
4046
- nodeCount: z21.number().int().positive().optional(),
4047
- confirm: z21.boolean().optional()
4369
+ networkMode: z22.enum(["public", "private"]).optional(),
4370
+ nodeIds: z22.array(z22.string()).optional(),
4371
+ nodeCount: z22.number().int().positive().optional(),
4372
+ confirm: z22.boolean().optional()
4048
4373
  }).strict();
4049
4374
  var clusterCreateCapability = defineCapability({
4050
4375
  id: "cluster.create",
@@ -4053,9 +4378,9 @@ var clusterCreateCapability = defineCapability({
4053
4378
  description: "Launch a kubernetes or slurm cluster on a reservation.",
4054
4379
  mutation: "preview-confirm",
4055
4380
  input: clusterCreateInput.extend({
4056
- virtualMachineIds: z21.array(z21.string()).optional(),
4057
- sshKeyIds: z21.array(z21.string()).optional(),
4058
- idempotencyKey: z21.string().optional()
4381
+ virtualMachineIds: z22.array(z22.string()).optional(),
4382
+ sshKeyIds: z22.array(z22.string()).optional(),
4383
+ idempotencyKey: z22.string().optional()
4059
4384
  }),
4060
4385
  mcp: { name: "clusters_create", input: clusterCreateInput },
4061
4386
  execute: (ctx, input) => createController(ctx.fetch, {
@@ -4099,8 +4424,8 @@ var clusterCapabilities = [
4099
4424
  roles: ["user"],
4100
4425
  description: "List active reservations eligible for cluster creation (kubernetes/slurm), 100 per page. Pass the response's nextCursor as cursor for the next page.",
4101
4426
  mutation: "read",
4102
- input: z21.object({
4103
- cursor: z21.string().min(1).optional().describe("nextCursor from the previous page.")
4427
+ input: z22.object({
4428
+ cursor: z22.string().min(1).optional().describe("nextCursor from the previous page.")
4104
4429
  }),
4105
4430
  mcp: { name: "clusters_reservations_list" },
4106
4431
  // A cluster launches on an active reservation. Commerce pages at most 100.
@@ -4116,7 +4441,7 @@ var clusterCapabilities = [
4116
4441
  roles: ["user"],
4117
4442
  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.",
4118
4443
  mutation: "read",
4119
- input: z21.object({ reservationId: z21.string() }),
4444
+ input: z22.object({ reservationId: z22.string() }),
4120
4445
  mcp: { name: "clusters_kubeconfig" },
4121
4446
  execute: async (ctx, input) => {
4122
4447
  const credentials = await clusterCredentialsCapability.execute(ctx, {
@@ -4135,55 +4460,55 @@ var clusterCapabilities = [
4135
4460
  ];
4136
4461
 
4137
4462
  // ../../packages/capabilities/dist/capabilities/external-buckets.js
4138
- import { z as z22 } from "zod";
4139
- var pageInput2 = z22.object({
4140
- $positionals: z22.array(z22.string()).optional(),
4141
- cursor: z22.string().optional(),
4142
- limit: z22.union([z22.string(), z22.number()]).optional()
4463
+ import { z as z23 } from "zod";
4464
+ var pageInput2 = z23.object({
4465
+ $positionals: z23.array(z23.string()).optional(),
4466
+ cursor: z23.string().optional(),
4467
+ limit: z23.union([z23.string(), z23.number()]).optional()
4143
4468
  }).strict();
4144
- var showInput = z22.object({
4145
- $positionals: z22.array(z22.string()).optional()
4469
+ var showInput = z23.object({
4470
+ $positionals: z23.array(z23.string()).optional()
4146
4471
  }).strict();
4147
- var verificationInput = z22.object({
4148
- $positionals: z22.array(z22.string()).optional(),
4149
- idempotencyKey: z22.string().optional()
4472
+ var verificationInput = z23.object({
4473
+ $positionals: z23.array(z23.string()).optional(),
4474
+ idempotencyKey: z23.string().optional()
4150
4475
  }).strict();
4151
- var disconnectInput = z22.object({
4152
- $positionals: z22.array(z22.string()).optional(),
4153
- idempotencyKey: z22.string().optional(),
4154
- yes: z22.boolean().optional()
4476
+ var disconnectInput = z23.object({
4477
+ $positionals: z23.array(z23.string()).optional(),
4478
+ idempotencyKey: z23.string().optional(),
4479
+ yes: z23.boolean().optional()
4155
4480
  }).strict();
4156
- var connectInput = z22.object({
4157
- $positionals: z22.array(z22.string()).optional(),
4158
- accessKeyId: z22.string().optional(),
4159
- accountId: z22.string().optional(),
4160
- bucket: z22.string().optional(),
4161
- endpointUrl: z22.string().optional(),
4162
- idempotencyKey: z22.string().optional(),
4163
- name: z22.string().optional(),
4164
- prefix: z22.string().optional(),
4165
- readOnly: z22.boolean().optional(),
4166
- readWrite: z22.boolean().optional(),
4167
- region: z22.string().optional(),
4168
- secretAccessKeyFile: z22.string().optional(),
4169
- url: z22.string().optional(),
4170
- yes: z22.boolean().optional()
4481
+ var connectInput = z23.object({
4482
+ $positionals: z23.array(z23.string()).optional(),
4483
+ accessKeyId: z23.string().optional(),
4484
+ accountId: z23.string().optional(),
4485
+ bucket: z23.string().optional(),
4486
+ endpointUrl: z23.string().optional(),
4487
+ idempotencyKey: z23.string().optional(),
4488
+ name: z23.string().optional(),
4489
+ prefix: z23.string().optional(),
4490
+ readOnly: z23.boolean().optional(),
4491
+ readWrite: z23.boolean().optional(),
4492
+ region: z23.string().optional(),
4493
+ secretAccessKeyFile: z23.string().optional(),
4494
+ url: z23.string().optional(),
4495
+ yes: z23.boolean().optional()
4171
4496
  }).strict();
4172
- var credentialInput = z22.object({
4173
- $positionals: z22.array(z22.string()).optional(),
4174
- accessKeyId: z22.string().optional(),
4175
- idempotencyKey: z22.string().optional(),
4176
- secretAccessKeyFile: z22.string().optional(),
4177
- yes: z22.boolean().optional()
4497
+ var credentialInput = z23.object({
4498
+ $positionals: z23.array(z23.string()).optional(),
4499
+ accessKeyId: z23.string().optional(),
4500
+ idempotencyKey: z23.string().optional(),
4501
+ secretAccessKeyFile: z23.string().optional(),
4502
+ yes: z23.boolean().optional()
4178
4503
  }).strict();
4179
- var importInput = z22.object({
4180
- $positionals: z22.array(z22.string()).optional(),
4181
- idempotencyKey: z22.string().optional(),
4182
- noWait: z22.boolean().optional(),
4183
- reservation: z22.string().optional(),
4184
- timeout: z22.string().optional(),
4185
- wait: z22.boolean().optional(),
4186
- yes: z22.boolean().optional()
4504
+ var importInput = z23.object({
4505
+ $positionals: z23.array(z23.string()).optional(),
4506
+ idempotencyKey: z23.string().optional(),
4507
+ noWait: z23.boolean().optional(),
4508
+ reservation: z23.string().optional(),
4509
+ timeout: z23.string().optional(),
4510
+ wait: z23.boolean().optional(),
4511
+ yes: z23.boolean().optional()
4187
4512
  }).strict();
4188
4513
  function externalBucketExecutor(context) {
4189
4514
  const interaction = context.cli?.interaction;
@@ -4199,25 +4524,25 @@ function isExternalBucket(drive) {
4199
4524
  return false;
4200
4525
  return ["external_gcs", "s3", "r2", "cloudflare_r2"].includes(source.provider ?? "") || Boolean(source.bucket);
4201
4526
  }
4202
- var bucketInput = z22.object({ driveId: z22.string() });
4527
+ var bucketInput = z23.object({ driveId: z23.string() });
4203
4528
  var bucketListCapability = defineCapability({
4204
4529
  id: "storage.external-buckets.list",
4205
4530
  domain: "storage",
4206
4531
  roles: ["user"],
4207
4532
  description: "List a page of connected external buckets. Pass next_cursor as cursor to continue.",
4208
4533
  mutation: "read",
4209
- input: z22.object({
4210
- limit: z22.number().int().min(1).max(100).optional(),
4211
- cursor: z22.string().optional()
4534
+ input: z23.object({
4535
+ limit: z23.number().int().min(1).max(100).optional(),
4536
+ cursor: z23.string().optional()
4212
4537
  }),
4213
4538
  mcp: { name: "storage_buckets_list" },
4214
4539
  execute: async (context, input) => {
4215
- const page = await listDrives(context.fetch, {
4540
+ const page2 = await listDrives(context.fetch, {
4216
4541
  limit: input.limit ?? 25,
4217
4542
  scope: "external",
4218
4543
  ...input.cursor ? { cursor: input.cursor } : {}
4219
4544
  });
4220
- return { ...page, drives: page.drives.filter(isExternalBucket) };
4545
+ return { ...page2, drives: page2.drives.filter(isExternalBucket) };
4221
4546
  },
4222
4547
  cli: {
4223
4548
  command: ["external-buckets", "list"],
@@ -4300,18 +4625,18 @@ var bucketDisconnectCapability = defineCapability({
4300
4625
  }
4301
4626
  }
4302
4627
  });
4303
- var bucketConnectInput = z22.object({
4304
- provider: z22.enum(["gcs", "s3", "r2"]),
4305
- bucket: z22.string(),
4306
- name: z22.string().optional(),
4307
- prefix: z22.string().optional(),
4308
- region: z22.string().optional(),
4309
- endpointUrl: z22.string().optional(),
4310
- accountId: z22.string().optional(),
4311
- accessKeyId: z22.string().optional(),
4312
- secretAccessKey: z22.string().optional(),
4313
- readOnly: z22.boolean().optional(),
4314
- confirm: z22.boolean().optional()
4628
+ var bucketConnectInput = z23.object({
4629
+ provider: z23.enum(["gcs", "s3", "r2"]),
4630
+ bucket: z23.string(),
4631
+ name: z23.string().optional(),
4632
+ prefix: z23.string().optional(),
4633
+ region: z23.string().optional(),
4634
+ endpointUrl: z23.string().optional(),
4635
+ accountId: z23.string().optional(),
4636
+ accessKeyId: z23.string().optional(),
4637
+ secretAccessKey: z23.string().optional(),
4638
+ readOnly: z23.boolean().optional(),
4639
+ confirm: z23.boolean().optional()
4315
4640
  }).refine((input) => !(input.provider === "gcs" && (input.accessKeyId || input.secretAccessKey)), {
4316
4641
  message: "Access key credentials are only supported for S3-compatible buckets."
4317
4642
  }).refine((input) => Boolean(input.accessKeyId) === Boolean(input.secretAccessKey), {
@@ -4319,10 +4644,10 @@ var bucketConnectInput = z22.object({
4319
4644
  }).refine((input) => input.provider !== "r2" || Boolean(input.endpointUrl || input.accountId), {
4320
4645
  message: "R2 buckets require either --endpointUrl or --accountId."
4321
4646
  });
4322
- var bucketWriteInput = bucketInput.extend({ confirm: z22.boolean().optional() });
4647
+ var bucketWriteInput = bucketInput.extend({ confirm: z23.boolean().optional() });
4323
4648
  var bucketCredentialInput = bucketWriteInput.extend({
4324
- accessKeyId: z22.string(),
4325
- secretAccessKey: z22.string()
4649
+ accessKeyId: z23.string(),
4650
+ secretAccessKey: z23.string()
4326
4651
  });
4327
4652
  var bucketConnectCapability = defineCapability({
4328
4653
  id: "storage.external-buckets.connect",
@@ -4330,7 +4655,7 @@ var bucketConnectCapability = defineCapability({
4330
4655
  roles: ["user"],
4331
4656
  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).",
4332
4657
  mutation: "preview-confirm",
4333
- input: bucketConnectInput.safeExtend({ idempotencyKey: z22.string().optional() }),
4658
+ input: bucketConnectInput.safeExtend({ idempotencyKey: z23.string().optional() }),
4334
4659
  mcp: { name: "storage_buckets_connect", input: bucketConnectInput },
4335
4660
  execute: (context, input) => {
4336
4661
  const endpoint = input.endpointUrl ?? (input.provider === "r2" && input.accountId ? `https://${input.accountId}.r2.cloudflarestorage.com` : void 0);
@@ -4373,7 +4698,7 @@ var bucketUpdateCredentialsCapability = defineCapability({
4373
4698
  roles: ["user"],
4374
4699
  description: "Update a connected S3-compatible bucket's access key credentials.",
4375
4700
  mutation: "preview-confirm",
4376
- input: bucketCredentialInput.extend({ idempotencyKey: z22.string().optional() }),
4701
+ input: bucketCredentialInput.extend({ idempotencyKey: z23.string().optional() }),
4377
4702
  mcp: { name: "storage_buckets_update_credentials", input: bucketCredentialInput },
4378
4703
  execute: (context, input) => updateDrive(context.fetch, input.driveId, {
4379
4704
  source_credentials: {
@@ -4405,7 +4730,7 @@ var bucketVerifyCapability = defineCapability({
4405
4730
  roles: ["user"],
4406
4731
  description: "Verify a connected S3-compatible bucket's source credentials/connectivity.",
4407
4732
  mutation: "preview-confirm",
4408
- input: bucketWriteInput.extend({ idempotencyKey: z22.string().optional() }),
4733
+ input: bucketWriteInput.extend({ idempotencyKey: z23.string().optional() }),
4409
4734
  mcp: { name: "storage_buckets_verify", input: bucketWriteInput },
4410
4735
  execute: (context, input) => updateDrive(context.fetch, input.driveId, { verify_source: true }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
4411
4736
  cli: {
@@ -4462,22 +4787,22 @@ var externalBucketCapabilities = [
4462
4787
  ];
4463
4788
 
4464
4789
  // ../../packages/capabilities/dist/capabilities/evidence.js
4465
- import { z as z23 } from "zod";
4466
- var positionals3 = z23.array(z23.string()).default([]);
4467
- var evidenceInput = z23.object({
4790
+ import { z as z24 } from "zod";
4791
+ var positionals3 = z24.array(z24.string()).default([]);
4792
+ var evidenceInput = z24.object({
4468
4793
  $positionals: positionals3,
4469
- before: z23.string().optional(),
4470
- count: z23.string().optional(),
4471
- cursor: z23.string().optional(),
4472
- end: z23.string().optional(),
4473
- follow: z23.boolean().optional(),
4474
- guided: z23.boolean().optional(),
4475
- interval: z23.string().optional(),
4476
- limit: z23.string().optional(),
4477
- maxPoints: z23.string().optional(),
4478
- start: z23.string().optional(),
4479
- stream: z23.enum(["kernel", "serial"]).optional(),
4480
- timeout: z23.string().optional()
4794
+ before: z24.string().optional(),
4795
+ count: z24.string().optional(),
4796
+ cursor: z24.string().optional(),
4797
+ end: z24.string().optional(),
4798
+ follow: z24.boolean().optional(),
4799
+ guided: z24.boolean().optional(),
4800
+ interval: z24.string().optional(),
4801
+ limit: z24.string().optional(),
4802
+ maxPoints: z24.string().optional(),
4803
+ start: z24.string().optional(),
4804
+ stream: z24.enum(["kernel", "serial"]).optional(),
4805
+ timeout: z24.string().optional()
4481
4806
  }).strict();
4482
4807
  function runtime2(context) {
4483
4808
  const interaction = context.cli?.interaction;
@@ -4622,11 +4947,11 @@ function listOrganizations(request, query3 = {}, signal) {
4622
4947
  async function listSupplierOrganizations(request, signal) {
4623
4948
  const rows = [];
4624
4949
  for (let offset = 0; offset < 5e4; offset += 1e3) {
4625
- const page = await listOrganizations(request, { supplier: true, limit: 1e3, offset, sort: "created_at", direction: "asc" }, signal);
4626
- if (!Array.isArray(page))
4950
+ const page2 = await listOrganizations(request, { supplier: true, limit: 1e3, offset, sort: "created_at", direction: "asc" }, signal);
4951
+ if (!Array.isArray(page2))
4627
4952
  throw new Error("Invalid supplier directory response.");
4628
- rows.push(...page);
4629
- if (page.length < 1e3)
4953
+ rows.push(...page2);
4954
+ if (page2.length < 1e3)
4630
4955
  return rows;
4631
4956
  }
4632
4957
  throw new Error("The supplier directory is too large to load completely.");
@@ -4643,46 +4968,46 @@ function getCliSession(request) {
4643
4968
  }
4644
4969
 
4645
4970
  // ../../packages/capabilities/dist/capabilities/fleet.js
4646
- import { z as z24 } from "zod";
4647
- var suppliersInput = z24.object({
4648
- q: z24.string().optional(),
4649
- offset: z24.number().int().min(0).optional(),
4650
- limit: z24.number().int().min(1).max(1e3).optional()
4651
- });
4652
- var facilitiesInput = z24.object({
4653
- organization_id: z24.string().optional(),
4654
- cursor: z24.string().optional(),
4655
- limit: z24.number().int().min(1).max(100).optional()
4656
- });
4657
- var nodesInput = z24.object({
4658
- organization_id: z24.string().optional(),
4659
- facility_id: z24.string().optional(),
4660
- status: z24.string().optional(),
4661
- reservation_id: z24.string().optional(),
4662
- cursor: z24.string().optional(),
4663
- max: z24.number().int().positive().max(5e3).optional(),
4664
- limit: z24.number().int().positive().max(5e3).optional()
4665
- });
4666
- var nodeLifecycleInput = z24.object({
4667
- node_id: z24.string().min(1),
4668
- maintenance_batch_id: z24.string().uuid().optional(),
4669
- node_ref: z24.string().optional(),
4670
- reason: z24.string().optional(),
4671
- delete_node_record: z24.literal(true).optional(),
4672
- idempotency_key: z24.string().optional(),
4673
- yes: z24.boolean().optional(),
4674
- wait: z24.boolean().optional(),
4675
- timeout_seconds: z24.number().positive().optional()
4676
- });
4677
- var nodeExecRemoteInput = z24.object({
4678
- node_id: z24.string().min(1).optional(),
4679
- host: z24.string().min(1).optional(),
4680
- username: z24.string().min(1).optional(),
4681
- port: z24.number().int().min(1).max(65535).optional(),
4682
- private_key: z24.string().min(1).optional(),
4683
- command: z24.string().min(1),
4684
- timeout_seconds: z24.number().int().positive(),
4685
- yes: z24.boolean().optional()
4971
+ import { z as z25 } from "zod";
4972
+ var suppliersInput = z25.object({
4973
+ q: z25.string().optional(),
4974
+ offset: z25.number().int().min(0).optional(),
4975
+ limit: z25.number().int().min(1).max(1e3).optional()
4976
+ });
4977
+ var facilitiesInput = z25.object({
4978
+ organization_id: z25.string().optional(),
4979
+ cursor: z25.string().optional(),
4980
+ limit: z25.number().int().min(1).max(100).optional()
4981
+ });
4982
+ var nodesInput = z25.object({
4983
+ organization_id: z25.string().optional(),
4984
+ facility_id: z25.string().optional(),
4985
+ status: z25.string().optional(),
4986
+ reservation_id: z25.string().optional(),
4987
+ cursor: z25.string().optional(),
4988
+ max: z25.number().int().positive().max(5e3).optional(),
4989
+ limit: z25.number().int().positive().max(5e3).optional()
4990
+ });
4991
+ var nodeLifecycleInput = z25.object({
4992
+ node_id: z25.string().min(1),
4993
+ maintenance_batch_id: z25.string().uuid().optional(),
4994
+ node_ref: z25.string().optional(),
4995
+ reason: z25.string().optional(),
4996
+ delete_node_record: z25.literal(true).optional(),
4997
+ idempotency_key: z25.string().optional(),
4998
+ yes: z25.boolean().optional(),
4999
+ wait: z25.boolean().optional(),
5000
+ timeout_seconds: z25.number().positive().optional()
5001
+ });
5002
+ var nodeExecRemoteInput = z25.object({
5003
+ node_id: z25.string().min(1).optional(),
5004
+ host: z25.string().min(1).optional(),
5005
+ username: z25.string().min(1).optional(),
5006
+ port: z25.number().int().min(1).max(65535).optional(),
5007
+ private_key: z25.string().min(1).optional(),
5008
+ command: z25.string().min(1),
5009
+ timeout_seconds: z25.number().int().positive(),
5010
+ yes: z25.boolean().optional()
4686
5011
  });
4687
5012
  var listSuppliersCapability = defineCapability({
4688
5013
  id: "supplier.list",
@@ -4715,11 +5040,11 @@ var listSuppliersCapability = defineCapability({
4715
5040
  execute: async (ctx, input) => {
4716
5041
  const parsed = suppliersInput.parse(input);
4717
5042
  const paged = parsed.limit !== void 0 || parsed.offset !== void 0 || parsed.q !== void 0;
4718
- const limit = parsed.limit ?? 25;
5043
+ const limit2 = parsed.limit ?? 25;
4719
5044
  const offset = parsed.offset ?? 0;
4720
5045
  const rows = paged ? await listOrganizations(ctx.fetch, {
4721
5046
  supplier: true,
4722
- limit,
5047
+ limit: limit2,
4723
5048
  offset,
4724
5049
  q: parsed.q?.trim() || void 0,
4725
5050
  sort: "created_at",
@@ -4727,7 +5052,7 @@ var listSuppliersCapability = defineCapability({
4727
5052
  }) : await listSupplierOrganizations(ctx.fetch);
4728
5053
  return {
4729
5054
  suppliers: rows.map((org) => ({ id: org.id, name: org.name })),
4730
- ...paged && rows.length === limit ? { next_offset: offset + rows.length } : {}
5055
+ ...paged && rows.length === limit2 ? { next_offset: offset + rows.length } : {}
4731
5056
  };
4732
5057
  }
4733
5058
  });
@@ -4779,7 +5104,7 @@ var listFacilitiesCapability = defineCapability({
4779
5104
  });
4780
5105
  }
4781
5106
  });
4782
- var facilityShowInput = z24.object({ facilityId: z24.uuid() });
5107
+ var facilityShowInput = z25.object({ facilityId: z25.uuid() });
4783
5108
  var facilityShowCapability = defineCapability({
4784
5109
  id: "facilities.show",
4785
5110
  domain: "fleet",
@@ -4874,12 +5199,12 @@ var listNodesCapability = defineCapability({
4874
5199
  });
4875
5200
  }
4876
5201
  });
4877
- var nodeExecInput = z24.object({
4878
- node_id: z24.string().min(1).refine((value) => value === value.trim(), {
5202
+ var nodeExecInput = z25.object({
5203
+ node_id: z25.string().min(1).refine((value) => value === value.trim(), {
4879
5204
  message: "node_id must be an exact canonical node ID without surrounding whitespace"
4880
5205
  }),
4881
- command: z24.string().min(1),
4882
- timeout_seconds: z24.number().int().min(1).max(900)
5206
+ command: z25.string().min(1),
5207
+ timeout_seconds: z25.number().int().min(1).max(900)
4883
5208
  });
4884
5209
  var nodeExecCapability = defineCapability({
4885
5210
  id: "node.exec",
@@ -4982,8 +5307,8 @@ var fleetCapabilities = [
4982
5307
  ];
4983
5308
 
4984
5309
  // ../../packages/capabilities/dist/capabilities/metrics.js
4985
- import { z as z25 } from "zod";
4986
- var metricInput = z25.object({ reservationId: z25.string(), machineId: z25.string().optional() });
5310
+ import { z as z26 } from "zod";
5311
+ var metricInput = z26.object({ reservationId: z26.string(), machineId: z26.string().optional() });
4987
5312
  async function nodeIds(context, input) {
4988
5313
  if (input.machineId)
4989
5314
  return [input.machineId];
@@ -5018,9 +5343,9 @@ var metricsHistoryCapability = defineCapability({
5018
5343
  mutation: "read",
5019
5344
  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.",
5020
5345
  input: metricInput.extend({
5021
- start: z25.string().optional(),
5022
- end: z25.string().optional(),
5023
- maxPoints: z25.number().int().positive().optional()
5346
+ start: z26.string().optional(),
5347
+ end: z26.string().optional(),
5348
+ maxPoints: z26.number().int().positive().optional()
5024
5349
  }),
5025
5350
  execute: async (context, input) => {
5026
5351
  const [nodeId3] = await nodeIds(context, input);
@@ -5035,18 +5360,18 @@ var metricsHistoryCapability = defineCapability({
5035
5360
  var metricsCapabilities = [metricsSnapshotCapability, metricsHistoryCapability];
5036
5361
 
5037
5362
  // ../../packages/capabilities/dist/capabilities/mounts.js
5038
- import { z as z26 } from "zod";
5039
- var mountCliInput = z26.object({
5040
- $positionals: z26.array(z26.string()).default([]),
5041
- access: z26.string().optional(),
5042
- cursor: z26.string().optional(),
5043
- idempotencyKey: z26.string().optional(),
5044
- limit: z26.union([z26.string(), z26.number()]).optional(),
5045
- noWait: z26.boolean().optional(),
5046
- timeout: z26.string().optional(),
5047
- volume: z26.string().optional(),
5048
- wait: z26.boolean().optional(),
5049
- yes: z26.boolean().optional()
5363
+ import { z as z27 } from "zod";
5364
+ var mountCliInput = z27.object({
5365
+ $positionals: z27.array(z27.string()).default([]),
5366
+ access: z27.string().optional(),
5367
+ cursor: z27.string().optional(),
5368
+ idempotencyKey: z27.string().optional(),
5369
+ limit: z27.union([z27.string(), z27.number()]).optional(),
5370
+ noWait: z27.boolean().optional(),
5371
+ timeout: z27.string().optional(),
5372
+ volume: z27.string().optional(),
5373
+ wait: z27.boolean().optional(),
5374
+ yes: z27.boolean().optional()
5050
5375
  }).strict();
5051
5376
  function executeMount(command) {
5052
5377
  return (context, input) => {
@@ -5060,11 +5385,11 @@ function executeMount(command) {
5060
5385
  function mutationOptions(idempotencyKey) {
5061
5386
  return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
5062
5387
  }
5063
- var reservationInput = z26.object({ reservationId: z26.string() });
5064
- var reservationWrite2 = reservationInput.extend({ confirm: z26.boolean().optional() });
5388
+ var reservationInput = z27.object({ reservationId: z27.string() });
5389
+ var reservationWrite2 = reservationInput.extend({ confirm: z27.boolean().optional() });
5065
5390
  var attachInput = reservationWrite2.extend({
5066
- driveId: z26.string(),
5067
- readOnly: z26.boolean().optional()
5391
+ driveId: z27.string(),
5392
+ readOnly: z27.boolean().optional()
5068
5393
  });
5069
5394
  var volumeMountCandidatesCapability = defineCapability({
5070
5395
  id: "storage.volume-mounts.candidates",
@@ -5072,7 +5397,7 @@ var volumeMountCandidatesCapability = defineCapability({
5072
5397
  roles: ["user"],
5073
5398
  description: "List reservations that can receive a storage deploy, grouped the same way as the console picker.",
5074
5399
  mutation: "read",
5075
- input: z26.object({}),
5400
+ input: z27.object({}),
5076
5401
  mcp: { name: "storage_targets" },
5077
5402
  cli: {
5078
5403
  command: ["volume-mounts", "candidates"],
@@ -5127,9 +5452,9 @@ var volumeMountAttachCapability = defineCapability({
5127
5452
  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.",
5128
5453
  mutation: "preview-confirm",
5129
5454
  input: attachInput.extend({
5130
- mountPath: z26.string().optional(),
5131
- mountMode: z26.literal("fuse").optional(),
5132
- idempotencyKey: z26.string().optional()
5455
+ mountPath: z27.string().optional(),
5456
+ mountMode: z27.literal("fuse").optional(),
5457
+ idempotencyKey: z27.string().optional()
5133
5458
  }),
5134
5459
  mcp: { name: "storage_deploy", input: attachInput },
5135
5460
  cli: {
@@ -5166,7 +5491,7 @@ var volumeMountDetachCapability = defineCapability({
5166
5491
  roles: ["user"],
5167
5492
  description: "Detach the reservation storage attachment (after unmount) so the volume can be deleted.",
5168
5493
  mutation: "preview-confirm",
5169
- input: reservationWrite2.extend({ idempotencyKey: z26.string().optional() }),
5494
+ input: reservationWrite2.extend({ idempotencyKey: z27.string().optional() }),
5170
5495
  mcp: { name: "storage_undeploy", input: reservationWrite2 },
5171
5496
  cli: {
5172
5497
  command: ["volume-mounts", "detach"],
@@ -5222,13 +5547,13 @@ var mountCapabilities = [
5222
5547
  ];
5223
5548
 
5224
5549
  // ../../packages/capabilities/dist/capabilities/identity.js
5225
- import { z as z27 } from "zod";
5226
- var emptyInput3 = z27.object({});
5227
- var loginInput = z27.object({
5228
- authBase: z27.string().min(1).optional(),
5229
- noBrowser: z27.boolean().optional(),
5230
- pollInterval: z27.number().positive().optional(),
5231
- timeout: z27.number().positive().optional()
5550
+ import { z as z28 } from "zod";
5551
+ var emptyInput3 = z28.object({});
5552
+ var loginInput = z28.object({
5553
+ authBase: z28.string().min(1).optional(),
5554
+ noBrowser: z28.boolean().optional(),
5555
+ pollInterval: z28.number().positive().optional(),
5556
+ timeout: z28.number().positive().optional()
5232
5557
  });
5233
5558
  function executeSession(context, command, input) {
5234
5559
  if (!context.cli?.session) {
@@ -5347,50 +5672,50 @@ var identityCapabilities = [
5347
5672
  ];
5348
5673
 
5349
5674
  // ../../packages/capabilities/dist/capabilities/listings.js
5350
- import { z as z28 } from "zod";
5351
- var listingCreateInput = z28.object({
5352
- organizationId: z28.string().optional(),
5353
- organization_id: z28.string().optional(),
5354
- facilityId: z28.string().optional(),
5355
- facility_id: z28.string().optional(),
5356
- kind: z28.enum(["gpu", "cpu", "node", "link"]).optional(),
5357
- gpu: z28.string().optional(),
5358
- cpu: z28.string().optional(),
5359
- site: z28.string().optional(),
5360
- fabric: z28.string().optional(),
5361
- min_nodes: z28.number().int().optional(),
5362
- starts_after: z28.string().optional(),
5363
- starts_before: z28.string().optional(),
5364
- ends_after: z28.string().optional(),
5365
- ends_before: z28.string().optional(),
5366
- gpu_type: z28.string().optional(),
5367
- node_model: z28.string().optional(),
5368
- fabric_type: z28.string().optional(),
5369
- node_count: z28.number().int().optional(),
5370
- gpus_per_node: z28.number().int().optional(),
5371
- 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".'),
5372
- 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."),
5373
- site_supplier: z28.string().optional(),
5374
- ram: z28.string().optional(),
5375
- storage: z28.string().optional(),
5376
- internet: z28.string().optional(),
5377
- network_hardware: z28.string().optional(),
5378
- available_start_at: z28.string().optional().describe("Start of the availability window. YYYY-MM-DD or RFC3339."),
5379
- available_end_at: z28.string().optional().describe("End of the availability window. YYYY-MM-DD or RFC3339."),
5380
- available_from: z28.string().optional().describe("Alias for available_start_at."),
5381
- available_to: z28.string().optional().describe("Alias for available_end_at."),
5382
- buy_now_price_per_gpu_hour: z28.number().optional().describe("Price buyers pay, USD per GPU-hour (per vCPU-hour on CPU listings)."),
5383
- deposit_percent: z28.number().optional(),
5384
- down_payment_cents: z28.number().int().nonnegative().optional(),
5385
- access_mode: z28.enum(["bare-metal", "virtual-machine"]).optional(),
5386
- state: z28.enum(["available", "draft"]).optional(),
5387
- price_omitted: z28.boolean().optional(),
5388
- announce: z28.boolean().optional(),
5389
- text: z28.string().optional(),
5390
- confirm: z28.boolean().optional(),
5391
- idempotencyKey: z28.string().min(1).max(200).optional()
5392
- });
5393
- var catalogTermsInput = z28.object({ kind: z28.enum(["gpu", "cpu", "node", "link"]).optional() });
5675
+ import { z as z29 } from "zod";
5676
+ var listingCreateInput = z29.object({
5677
+ organizationId: z29.string().optional(),
5678
+ organization_id: z29.string().optional(),
5679
+ facilityId: z29.string().optional(),
5680
+ facility_id: z29.string().optional(),
5681
+ kind: z29.enum(["gpu", "cpu", "node", "link"]).optional(),
5682
+ gpu: z29.string().optional(),
5683
+ cpu: z29.string().optional(),
5684
+ site: z29.string().optional(),
5685
+ fabric: z29.string().optional(),
5686
+ min_nodes: z29.number().int().optional(),
5687
+ starts_after: z29.string().optional(),
5688
+ starts_before: z29.string().optional(),
5689
+ ends_after: z29.string().optional(),
5690
+ ends_before: z29.string().optional(),
5691
+ gpu_type: z29.string().optional(),
5692
+ node_model: z29.string().optional(),
5693
+ fabric_type: z29.string().optional(),
5694
+ node_count: z29.number().int().optional(),
5695
+ gpus_per_node: z29.number().int().optional(),
5696
+ 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".'),
5697
+ 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."),
5698
+ site_supplier: z29.string().optional(),
5699
+ ram: z29.string().optional(),
5700
+ storage: z29.string().optional(),
5701
+ internet: z29.string().optional(),
5702
+ network_hardware: z29.string().optional(),
5703
+ available_start_at: z29.string().optional().describe("Start of the availability window. YYYY-MM-DD or RFC3339."),
5704
+ available_end_at: z29.string().optional().describe("End of the availability window. YYYY-MM-DD or RFC3339."),
5705
+ available_from: z29.string().optional().describe("Alias for available_start_at."),
5706
+ available_to: z29.string().optional().describe("Alias for available_end_at."),
5707
+ buy_now_price_per_gpu_hour: z29.number().optional().describe("Price buyers pay, USD per GPU-hour (per vCPU-hour on CPU listings)."),
5708
+ deposit_percent: z29.number().optional(),
5709
+ down_payment_cents: z29.number().int().nonnegative().optional(),
5710
+ access_mode: z29.enum(["bare-metal", "virtual-machine"]).optional(),
5711
+ state: z29.enum(["available", "draft"]).optional(),
5712
+ price_omitted: z29.boolean().optional(),
5713
+ announce: z29.boolean().optional(),
5714
+ text: z29.string().optional(),
5715
+ confirm: z29.boolean().optional(),
5716
+ idempotencyKey: z29.string().min(1).max(200).optional()
5717
+ });
5718
+ var catalogTermsInput = z29.object({ kind: z29.enum(["gpu", "cpu", "node", "link"]).optional() });
5394
5719
  var listCatalogTermsCapability = defineCapability({
5395
5720
  id: "listings.catalog_terms",
5396
5721
  mcp: false,
@@ -5710,7 +6035,7 @@ function nodeLogsSubscribePath(id, stream) {
5710
6035
  }
5711
6036
 
5712
6037
  // ../../packages/capabilities/dist/capabilities/observability.js
5713
- import { z as z29 } from "zod";
6038
+ import { z as z30 } from "zod";
5714
6039
  function tailPath(path3, input) {
5715
6040
  const query3 = new URLSearchParams({
5716
6041
  duration: String(input.duration ?? 20),
@@ -5718,30 +6043,30 @@ function tailPath(path3, input) {
5718
6043
  });
5719
6044
  return `${path3}${path3.includes("?") ? "&" : "?"}${query3}`;
5720
6045
  }
5721
- var latestInput = z29.object({
5722
- node_id: z29.string().min(1),
5723
- start: z29.string().optional(),
5724
- end: z29.string().optional(),
5725
- span: z29.string().optional(),
5726
- max_points: z29.number().int().min(1).max(500).optional(),
5727
- metrics: z29.string().optional()
5728
- });
5729
- var logsLatestInput = z29.object({
5730
- node_id: z29.string().min(1),
5731
- stream: z29.enum(["serial", "kernel"]).default("kernel"),
5732
- count: z29.number().int().min(1).max(1e3).optional(),
5733
- before: z29.string().optional(),
5734
- start: z29.string().optional(),
5735
- cursor: z29.string().optional()
5736
- });
5737
- var tailInput = z29.object({
5738
- node_id: z29.string().min(1),
5739
- duration: z29.number().int().min(1).max(120).optional(),
5740
- max_events: z29.number().int().min(1).max(200).optional(),
5741
- fields: z29.string().optional()
6046
+ var latestInput = z30.object({
6047
+ node_id: z30.string().min(1),
6048
+ start: z30.string().optional(),
6049
+ end: z30.string().optional(),
6050
+ span: z30.string().optional(),
6051
+ max_points: z30.number().int().min(1).max(500).optional(),
6052
+ metrics: z30.string().optional()
6053
+ });
6054
+ var logsLatestInput = z30.object({
6055
+ node_id: z30.string().min(1),
6056
+ stream: z30.enum(["serial", "kernel"]).default("kernel"),
6057
+ count: z30.number().int().min(1).max(1e3).optional(),
6058
+ before: z30.string().optional(),
6059
+ start: z30.string().optional(),
6060
+ cursor: z30.string().optional()
6061
+ });
6062
+ var tailInput = z30.object({
6063
+ node_id: z30.string().min(1),
6064
+ duration: z30.number().int().min(1).max(120).optional(),
6065
+ max_events: z30.number().int().min(1).max(200).optional(),
6066
+ fields: z30.string().optional()
5742
6067
  });
5743
6068
  var logsTailInput = tailInput.extend({
5744
- stream: z29.enum(["serial", "kernel"]).default("kernel")
6069
+ stream: z30.enum(["serial", "kernel"]).default("kernel")
5745
6070
  });
5746
6071
  function expandSpan(span, start, end) {
5747
6072
  if (start?.trim() && end?.trim()) {
@@ -5822,7 +6147,7 @@ var telemetryLatestBatchCapability = defineCapability({
5822
6147
  required: ["node_ids"]
5823
6148
  }
5824
6149
  },
5825
- input: z29.object({ node_ids: z29.array(z29.uuid()).min(1).max(100) }),
6150
+ input: z30.object({ node_ids: z30.array(z30.uuid()).min(1).max(100) }),
5826
6151
  execute: async (ctx, input) => getLatestTelemetry(ctx.fetch, { node_ids: input.node_ids })
5827
6152
  });
5828
6153
  var logsLatestCapability = defineCapability({
@@ -5894,9 +6219,9 @@ var telemetrySnapshotCapability = defineCapability({
5894
6219
  required: ["node_id"]
5895
6220
  }
5896
6221
  },
5897
- input: z29.object({
5898
- node_id: z29.string().min(1),
5899
- limit: z29.number().int().min(1).max(1e3).optional()
6222
+ input: z30.object({
6223
+ node_id: z30.string().min(1),
6224
+ limit: z30.number().int().min(1).max(1e3).optional()
5900
6225
  }),
5901
6226
  execute: async (ctx, input) => getNodeLatestTelemetry(ctx.fetch, input.node_id, { limit: input.limit ?? 1 })
5902
6227
  });
@@ -5963,12 +6288,12 @@ var observabilityCapabilities = [
5963
6288
  ];
5964
6289
 
5965
6290
  // ../../packages/capabilities/dist/capabilities/organization-invites.js
5966
- import { z as z30 } from "zod";
5967
- var organizationInviteInput = z30.object({
5968
- organization_id: z30.uuid().optional(),
5969
- email: z30.string().trim().toLowerCase().pipe(z30.email()),
5970
- supplier: z30.boolean().optional(),
5971
- send_email: z30.boolean().optional().describe("Defaults to true for an existing organization; false returns a link. Signup invites cannot be emailed.")
6291
+ import { z as z31 } from "zod";
6292
+ var organizationInviteInput = z31.object({
6293
+ organization_id: z31.uuid().optional(),
6294
+ email: z31.string().trim().toLowerCase().pipe(z31.email()),
6295
+ supplier: z31.boolean().optional(),
6296
+ send_email: z31.boolean().optional().describe("Defaults to true for an existing organization; false returns a link. Signup invites cannot be emailed.")
5972
6297
  }).superRefine((input, ctx) => {
5973
6298
  if (!input.organization_id && input.send_email === true) {
5974
6299
  ctx.addIssue({
@@ -6030,33 +6355,33 @@ var organizationInviteCapability = defineCapability({
6030
6355
  });
6031
6356
 
6032
6357
  // ../../packages/capabilities/dist/capabilities/networks.js
6033
- import { z as z31 } from "zod";
6358
+ import { z as z32 } from "zod";
6034
6359
  var globalInput = {
6035
- $positionals: z31.array(z31.string()).optional(),
6036
- guided: z31.boolean().optional(),
6037
- idempotencyKey: z31.string().optional(),
6038
- noBrowser: z31.boolean().optional(),
6039
- noWait: z31.boolean().optional(),
6040
- overwrite: z31.boolean().optional(),
6041
- print: z31.boolean().optional(),
6042
- wait: z31.boolean().optional(),
6043
- yes: z31.boolean().optional()
6360
+ $positionals: z32.array(z32.string()).optional(),
6361
+ guided: z32.boolean().optional(),
6362
+ idempotencyKey: z32.string().optional(),
6363
+ noBrowser: z32.boolean().optional(),
6364
+ noWait: z32.boolean().optional(),
6365
+ overwrite: z32.boolean().optional(),
6366
+ print: z32.boolean().optional(),
6367
+ wait: z32.boolean().optional(),
6368
+ yes: z32.boolean().optional()
6044
6369
  };
6045
- var noOptionsInput = z31.object(globalInput).strict();
6046
- var connectInput2 = z31.object({
6370
+ var noOptionsInput = z32.object(globalInput).strict();
6371
+ var connectInput2 = z32.object({
6047
6372
  ...globalInput,
6048
- identityFile: z31.string().optional(),
6049
- output: z31.string().optional(),
6050
- user: z31.string().optional()
6373
+ identityFile: z32.string().optional(),
6374
+ output: z32.string().optional(),
6375
+ user: z32.string().optional()
6051
6376
  }).strict();
6052
- var listInput = z31.object({ ...globalInput, cursor: z31.string().optional(), limit: z31.string().optional() }).strict();
6053
- var networkCreateInput = z31.object({ ...globalInput, cidr: z31.string().optional(), name: z31.string().optional() }).strict();
6054
- var networkUpdateInput = z31.object({ ...globalInput, name: z31.string().optional() }).strict();
6055
- var vpnConfigureInput = z31.object({
6377
+ var listInput = z32.object({ ...globalInput, cursor: z32.string().optional(), limit: z32.string().optional() }).strict();
6378
+ var networkCreateInput = z32.object({ ...globalInput, cidr: z32.string().optional(), name: z32.string().optional() }).strict();
6379
+ var networkUpdateInput = z32.object({ ...globalInput, name: z32.string().optional() }).strict();
6380
+ var vpnConfigureInput = z32.object({
6056
6381
  ...globalInput,
6057
- name: z31.string().optional(),
6058
- output: z31.string().optional(),
6059
- privateKey: z31.string().optional()
6382
+ name: z32.string().optional(),
6383
+ output: z32.string().optional(),
6384
+ privateKey: z32.string().optional()
6060
6385
  }).strict();
6061
6386
  function executeNetwork(command) {
6062
6387
  return (context, input) => {
@@ -6069,36 +6394,36 @@ function executeNetwork(command) {
6069
6394
  function mutationOptions2(idempotencyKey) {
6070
6395
  return idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : void 0;
6071
6396
  }
6072
- var networkIdInput = z31.object({ networkId: z31.string() });
6073
- var networkCreateFields = z31.object({
6074
- name: z31.string(),
6075
- cidr: z31.string().optional(),
6076
- description: z31.string().optional(),
6077
- confirm: z31.boolean().optional()
6078
- });
6079
- var networkUpdateFields = z31.object({
6080
- networkId: z31.string(),
6081
- name: z31.string().optional(),
6082
- description: z31.string().optional(),
6083
- clearDescription: z31.boolean().optional(),
6084
- confirm: z31.boolean().optional()
6397
+ var networkIdInput = z32.object({ networkId: z32.string() });
6398
+ var networkCreateFields = z32.object({
6399
+ name: z32.string(),
6400
+ cidr: z32.string().optional(),
6401
+ description: z32.string().optional(),
6402
+ confirm: z32.boolean().optional()
6403
+ });
6404
+ var networkUpdateFields = z32.object({
6405
+ networkId: z32.string(),
6406
+ name: z32.string().optional(),
6407
+ description: z32.string().optional(),
6408
+ clearDescription: z32.boolean().optional(),
6409
+ confirm: z32.boolean().optional()
6085
6410
  }).refine((input) => !(input.clearDescription && input.description !== void 0), {
6086
6411
  message: "Use either description or clearDescription, not both."
6087
6412
  }).refine((input) => input.name !== void 0 || input.description !== void 0 || input.clearDescription, { message: "Provide name, description, or clearDescription." });
6088
- var networkDeleteInput = networkIdInput.extend({ confirm: z31.boolean().optional() });
6089
- var vpnPeerCreateInput = z31.object({
6090
- publicKey: z31.string(),
6091
- label: z31.string().optional(),
6092
- confirm: z31.boolean().optional()
6093
- });
6094
- var vpnPeerDeleteInput = z31.object({ peerId: z31.string(), confirm: z31.boolean().optional() });
6095
- var reservationInput2 = { reservationId: z31.string() };
6413
+ var networkDeleteInput = networkIdInput.extend({ confirm: z32.boolean().optional() });
6414
+ var vpnPeerCreateInput = z32.object({
6415
+ publicKey: z32.string(),
6416
+ label: z32.string().optional(),
6417
+ confirm: z32.boolean().optional()
6418
+ });
6419
+ var vpnPeerDeleteInput = z32.object({ peerId: z32.string(), confirm: z32.boolean().optional() });
6420
+ var reservationInput2 = { reservationId: z32.string() };
6096
6421
  var privateNetworkListCapability = defineCapability({
6097
6422
  id: "networks.list",
6098
6423
  domain: "networks",
6099
6424
  roles: ["user"],
6100
6425
  mutation: "read",
6101
- input: z31.object({}),
6426
+ input: z32.object({}),
6102
6427
  description: "List this tenant's private networks.",
6103
6428
  mcp: { name: "networks_list" },
6104
6429
  cli: {
@@ -6149,7 +6474,7 @@ var privateNetworkCreateCapability = defineCapability({
6149
6474
  domain: "networks",
6150
6475
  roles: ["user"],
6151
6476
  mutation: "preview-confirm",
6152
- input: networkCreateFields.extend({ idempotencyKey: z31.string().optional() }),
6477
+ input: networkCreateFields.extend({ idempotencyKey: z32.string().optional() }),
6153
6478
  description: "Create a private network.",
6154
6479
  mcp: { name: "networks_create", input: networkCreateFields },
6155
6480
  cli: {
@@ -6176,7 +6501,7 @@ var privateNetworkUpdateCapability = defineCapability({
6176
6501
  domain: "networks",
6177
6502
  roles: ["user"],
6178
6503
  mutation: "preview-confirm",
6179
- input: networkUpdateFields.safeExtend({ idempotencyKey: z31.string().optional() }),
6504
+ input: networkUpdateFields.safeExtend({ idempotencyKey: z32.string().optional() }),
6180
6505
  description: "Update a private network's name or description. Pass clearDescription: true to null out the description instead of setting it.",
6181
6506
  mcp: { name: "networks_update", input: networkUpdateFields },
6182
6507
  cli: {
@@ -6206,7 +6531,7 @@ var privateNetworkDeleteCapability = defineCapability({
6206
6531
  domain: "networks",
6207
6532
  roles: ["user"],
6208
6533
  mutation: "preview-confirm",
6209
- input: networkDeleteInput.extend({ idempotencyKey: z31.string().optional() }),
6534
+ input: networkDeleteInput.extend({ idempotencyKey: z32.string().optional() }),
6210
6535
  description: "Delete a private network.",
6211
6536
  mcp: { name: "networks_delete", input: networkDeleteInput },
6212
6537
  cli: {
@@ -6236,9 +6561,9 @@ var vpnConnectionListCapability = defineCapability({
6236
6561
  domain: "vpn",
6237
6562
  roles: ["user"],
6238
6563
  mutation: "read",
6239
- input: z31.object({}),
6564
+ input: z32.object({}),
6240
6565
  description: "List WireGuard VPN peers registered on a reservation.",
6241
- mcp: { name: "vpn_peers_list", input: z31.object(reservationInput2) },
6566
+ mcp: { name: "vpn_peers_list", input: z32.object(reservationInput2) },
6242
6567
  cli: {
6243
6568
  command: ["vpn-connections", "list"],
6244
6569
  input: listInput,
@@ -6262,11 +6587,11 @@ var vpnConnectionConfigureCapability = defineCapability({
6262
6587
  domain: "vpn",
6263
6588
  roles: ["user"],
6264
6589
  mutation: "preview-confirm",
6265
- input: vpnPeerCreateInput.extend({ idempotencyKey: z31.string().optional() }),
6590
+ input: vpnPeerCreateInput.extend({ idempotencyKey: z32.string().optional() }),
6266
6591
  description: "Register a WireGuard VPN peer public key on a reservation.",
6267
6592
  mcp: {
6268
6593
  name: "vpn_peers_create",
6269
- input: z31.object({ ...reservationInput2, ...vpnPeerCreateInput.shape })
6594
+ input: z32.object({ ...reservationInput2, ...vpnPeerCreateInput.shape })
6270
6595
  },
6271
6596
  cli: {
6272
6597
  command: ["vpn-connections", "configure"],
@@ -6293,11 +6618,11 @@ var vpnConnectionDisconnectCapability = defineCapability({
6293
6618
  domain: "vpn",
6294
6619
  roles: ["user"],
6295
6620
  mutation: "preview-confirm",
6296
- input: vpnPeerDeleteInput.extend({ idempotencyKey: z31.string().optional() }),
6621
+ input: vpnPeerDeleteInput.extend({ idempotencyKey: z32.string().optional() }),
6297
6622
  description: "Revoke a WireGuard VPN peer from a reservation.",
6298
6623
  mcp: {
6299
6624
  name: "vpn_peers_delete",
6300
- input: z31.object({ ...reservationInput2, ...vpnPeerDeleteInput.shape })
6625
+ input: z32.object({ ...reservationInput2, ...vpnPeerDeleteInput.shape })
6301
6626
  },
6302
6627
  cli: {
6303
6628
  command: ["vpn-connections", "disconnect"],
@@ -6368,20 +6693,20 @@ var networkCapabilities = [
6368
6693
  ];
6369
6694
 
6370
6695
  // ../../packages/capabilities/dist/capabilities/registry.js
6371
- import { z as z32 } from "zod";
6696
+ import { z as z33 } from "zod";
6372
6697
  var globalInput2 = {
6373
- $positionals: z32.array(z32.string()).default([]),
6374
- yes: z32.boolean().optional()
6698
+ $positionals: z33.array(z33.string()).default([]),
6699
+ yes: z33.boolean().optional()
6375
6700
  };
6376
- var emptyInput4 = z32.object(globalInput2).strict();
6377
- var repositoryInput = z32.object({
6701
+ var emptyInput4 = z33.object(globalInput2).strict();
6702
+ var repositoryInput = z33.object({
6378
6703
  ...globalInput2,
6379
- repository: z32.string().optional().describe("Repository name, with or without your organization's namespace.")
6704
+ repository: z33.string().optional().describe("Repository name, with or without your organization's namespace.")
6380
6705
  }).strict();
6381
- var tagInput = z32.object({
6706
+ var tagInput = z33.object({
6382
6707
  ...globalInput2,
6383
- repository: z32.string().optional().describe("Repository name, with or without your organization's namespace."),
6384
- tag: z32.string().optional().describe("Tag to delete, such as v1.")
6708
+ repository: z33.string().optional().describe("Repository name, with or without your organization's namespace."),
6709
+ tag: z33.string().optional().describe("Tag to delete, such as v1.")
6385
6710
  }).strict();
6386
6711
  function cliInteraction(context) {
6387
6712
  return context.cli?.interaction;
@@ -6682,14 +7007,14 @@ var registryCapabilities = [
6682
7007
  ];
6683
7008
 
6684
7009
  // ../../packages/capabilities/dist/capabilities/reservation-list.js
6685
- import { z as z33 } from "zod";
6686
- var reservationListInput = z33.object({
6687
- customerId: z33.string().uuid().optional(),
6688
- listingId: z33.string().uuid().optional(),
6689
- listingTermId: z33.string().uuid().optional(),
6690
- status: z33.enum(["confirmed", "active", "completed", "cancelled"]).optional(),
6691
- cursor: z33.string().optional(),
6692
- limit: z33.number().int().min(1).max(100).optional()
7010
+ import { z as z34 } from "zod";
7011
+ var reservationListInput = z34.object({
7012
+ customerId: z34.string().uuid().optional(),
7013
+ listingId: z34.string().uuid().optional(),
7014
+ listingTermId: z34.string().uuid().optional(),
7015
+ status: z34.enum(["confirmed", "active", "completed", "cancelled"]).optional(),
7016
+ cursor: z34.string().optional(),
7017
+ limit: z34.number().int().min(1).max(100).optional()
6693
7018
  });
6694
7019
  var reservationListCapability = defineCapability({
6695
7020
  id: "reservation.list",
@@ -6739,20 +7064,20 @@ var reservationListCapability = defineCapability({
6739
7064
  });
6740
7065
 
6741
7066
  // ../../packages/capabilities/dist/capabilities/volumes.js
6742
- import { z as z34 } from "zod";
6743
- var storageCliInput = z34.object({
6744
- $positionals: z34.array(z34.string()).optional(),
6745
- contentType: z34.string().optional(),
6746
- cursor: z34.string().optional(),
6747
- idempotencyKey: z34.string().optional(),
6748
- limit: z34.union([z34.string(), z34.number()]).optional(),
6749
- name: z34.string().optional(),
6750
- output: z34.string().optional(),
6751
- overwrite: z34.boolean().optional(),
6752
- path: z34.string().optional(),
6753
- prefix: z34.string().optional(),
6754
- source: z34.string().optional(),
6755
- yes: z34.boolean().optional()
7067
+ import { z as z35 } from "zod";
7068
+ var storageCliInput = z35.object({
7069
+ $positionals: z35.array(z35.string()).optional(),
7070
+ contentType: z35.string().optional(),
7071
+ cursor: z35.string().optional(),
7072
+ idempotencyKey: z35.string().optional(),
7073
+ limit: z35.union([z35.string(), z35.number()]).optional(),
7074
+ name: z35.string().optional(),
7075
+ output: z35.string().optional(),
7076
+ overwrite: z35.boolean().optional(),
7077
+ path: z35.string().optional(),
7078
+ prefix: z35.string().optional(),
7079
+ source: z35.string().optional(),
7080
+ yes: z35.boolean().optional()
6756
7081
  }).strict();
6757
7082
  function storageExecutor(context) {
6758
7083
  const interaction = context.cli?.interaction;
@@ -6788,22 +7113,22 @@ function storageCapability({ id, command, description, mutation, outcome, human,
6788
7113
  execute: async (context, input) => storageExecutor(context)(id, input)
6789
7114
  });
6790
7115
  }
6791
- var filesListInput = z34.object({ driveId: z34.string(), prefix: z34.string().optional() });
7116
+ var filesListInput = z35.object({ driveId: z35.string(), prefix: z35.string().optional() });
6792
7117
  async function* listFiles(context, input) {
6793
7118
  const prefix = input.prefix ?? "";
6794
7119
  const folder = prefix.includes("/") ? prefix.slice(0, prefix.lastIndexOf("/")) : "";
6795
7120
  let cursor = 0;
6796
7121
  while (cursor !== null) {
6797
- const page = await listDriveContents(context.fetch, input.driveId, {
7122
+ const page2 = await listDriveContents(context.fetch, input.driveId, {
6798
7123
  recursive: true,
6799
7124
  ...folder ? { path: folder } : {},
6800
7125
  ...cursor ? { cursor } : {}
6801
7126
  });
6802
- for (const entry of page.entries) {
7127
+ for (const entry of page2.entries) {
6803
7128
  if (entry.kind === "file" && entry.path.startsWith(prefix))
6804
7129
  yield entry;
6805
7130
  }
6806
- cursor = page.next_cursor ?? null;
7131
+ cursor = page2.next_cursor ?? null;
6807
7132
  }
6808
7133
  }
6809
7134
  var volumeFilesListCapability = defineCapability({
@@ -6831,16 +7156,16 @@ var volumeFilesListCapability = defineCapability({
6831
7156
  }
6832
7157
  }
6833
7158
  });
6834
- var volumePageInput = z34.object({
6835
- limit: z34.number().int().min(1).max(100).optional(),
6836
- cursor: z34.string().optional()
7159
+ var volumePageInput = z35.object({
7160
+ limit: z35.number().int().min(1).max(100).optional(),
7161
+ cursor: z35.string().optional()
6837
7162
  });
6838
- var driveInput = z34.object({ driveId: z34.string() });
6839
- var driveWrite = driveInput.extend({ confirm: z34.boolean().optional() });
6840
- var volumeCreateInput = z34.object({
6841
- name: z34.string(),
6842
- sourceDriveId: z34.string().optional(),
6843
- confirm: z34.boolean().optional()
7163
+ var driveInput = z35.object({ driveId: z35.string() });
7164
+ var driveWrite = driveInput.extend({ confirm: z35.boolean().optional() });
7165
+ var volumeCreateInput = z35.object({
7166
+ name: z35.string(),
7167
+ sourceDriveId: z35.string().optional(),
7168
+ confirm: z35.boolean().optional()
6844
7169
  });
6845
7170
  var volumeListCapability = defineCapability({
6846
7171
  id: "storage.volumes.list",
@@ -6848,7 +7173,7 @@ var volumeListCapability = defineCapability({
6848
7173
  roles: ["user"],
6849
7174
  description: "List a page of storage volumes, newest updated first. Pass next_cursor as cursor to continue.",
6850
7175
  mutation: "read",
6851
- input: volumePageInput.extend({ scope: z34.enum(["all", "managed"]).optional() }),
7176
+ input: volumePageInput.extend({ scope: z35.enum(["all", "managed"]).optional() }),
6852
7177
  mcp: { name: "storage_volumes_list", input: volumePageInput },
6853
7178
  execute: (context, input) => listDrives(context.fetch, {
6854
7179
  limit: input.limit ?? 25,
@@ -6901,7 +7226,7 @@ var volumeCreateCapability = defineCapability({
6901
7226
  roles: ["user"],
6902
7227
  description: "Create a storage volume (drive), optionally cloned from an existing source drive.",
6903
7228
  mutation: "preview-confirm",
6904
- input: volumeCreateInput.extend({ idempotencyKey: z34.string().optional() }),
7229
+ input: volumeCreateInput.extend({ idempotencyKey: z35.string().optional() }),
6905
7230
  mcp: { name: "storage_volumes_create", input: volumeCreateInput },
6906
7231
  execute: (context, input) => createDrive(context.fetch, { name: input.name, source_drive_id: input.sourceDriveId ?? null }, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0),
6907
7232
  cli: {
@@ -6977,7 +7302,7 @@ var volumeDeleteCapability = defineCapability({
6977
7302
  roles: ["user"],
6978
7303
  description: "Delete a storage volume (drive).",
6979
7304
  mutation: "preview-confirm",
6980
- input: driveWrite.extend({ idempotencyKey: z34.string().optional() }),
7305
+ input: driveWrite.extend({ idempotencyKey: z35.string().optional() }),
6981
7306
  mcp: { name: "storage_volumes_delete", input: driveWrite },
6982
7307
  execute: async (context, input) => {
6983
7308
  await deleteDrive(context.fetch, input.driveId, {}, input.idempotencyKey ? { headers: { "Idempotency-Key": input.idempotencyKey } } : void 0);
@@ -7057,21 +7382,21 @@ var volumeCapabilities = [
7057
7382
  ];
7058
7383
 
7059
7384
  // ../../packages/capabilities/dist/capabilities/users.js
7060
- import { z as z35 } from "zod";
7061
- var directoryLimit = z35.number().int().min(1).max(100).default(25);
7062
- var directoryOffset = z35.number().int().nonnegative().optional();
7063
- var organizationListInput = z35.object({
7064
- q: z35.string().trim().optional().describe("Company name, contact/member name, or email."),
7065
- supplier: z35.boolean().optional(),
7066
- inference_provider: z35.boolean().optional(),
7067
- approved: z35.boolean().optional(),
7068
- ids: z35.array(z35.uuid()).min(1).max(100).optional(),
7385
+ import { z as z36 } from "zod";
7386
+ var directoryLimit = z36.number().int().min(1).max(100).default(25);
7387
+ var directoryOffset = z36.number().int().nonnegative().optional();
7388
+ var organizationListInput = z36.object({
7389
+ q: z36.string().trim().optional().describe("Company name, contact/member name, or email."),
7390
+ supplier: z36.boolean().optional(),
7391
+ inference_provider: z36.boolean().optional(),
7392
+ approved: z36.boolean().optional(),
7393
+ ids: z36.array(z36.uuid()).min(1).max(100).optional(),
7069
7394
  limit: directoryLimit,
7070
7395
  offset: directoryOffset
7071
7396
  });
7072
- var usersListInput = z35.object({
7073
- q: z35.string().trim().optional().describe("Person name, email, or company name."),
7074
- organization_id: z35.uuid().optional(),
7397
+ var usersListInput = z36.object({
7398
+ q: z36.string().trim().optional().describe("Person name, email, or company name."),
7399
+ organization_id: z36.uuid().optional(),
7075
7400
  limit: directoryLimit,
7076
7401
  offset: directoryOffset
7077
7402
  });
@@ -7128,11 +7453,11 @@ var organizationListCapability = defineCapability({
7128
7453
  input: organizationListInput,
7129
7454
  execute: async (ctx, input) => {
7130
7455
  const parsed = organizationListInput.parse(input);
7131
- const limit = parsed.limit;
7456
+ const limit2 = parsed.limit;
7132
7457
  const offset = parsed.offset ?? 0;
7133
7458
  const rows = await listOrganizations(ctx.fetch, {
7134
7459
  ...parsed,
7135
- limit,
7460
+ limit: limit2,
7136
7461
  offset,
7137
7462
  sort: "name",
7138
7463
  direction: "asc"
@@ -7150,7 +7475,7 @@ var organizationListCapability = defineCapability({
7150
7475
  name: member.name ?? null
7151
7476
  }))
7152
7477
  })),
7153
- ...rows.length === limit ? { next_offset: offset + rows.length } : {}
7478
+ ...rows.length === limit2 ? { next_offset: offset + rows.length } : {}
7154
7479
  };
7155
7480
  }
7156
7481
  });
@@ -7191,10 +7516,10 @@ var usersListCapability = defineCapability({
7191
7516
  input: usersListInput,
7192
7517
  execute: async (ctx, input) => {
7193
7518
  const parsed = usersListInput.parse(input);
7194
- const limit = parsed.limit;
7519
+ const limit2 = parsed.limit;
7195
7520
  const offset = parsed.offset ?? 0;
7196
7521
  const rows = await listOrganizations(ctx.fetch, {
7197
- limit,
7522
+ limit: limit2,
7198
7523
  offset,
7199
7524
  q: parsed.q,
7200
7525
  ids: parsed.organization_id ? [parsed.organization_id] : void 0,
@@ -7218,7 +7543,7 @@ var usersListCapability = defineCapability({
7218
7543
  });
7219
7544
  return {
7220
7545
  users,
7221
- ...rows.length === limit ? { next_offset: offset + rows.length } : {}
7546
+ ...rows.length === limit2 ? { next_offset: offset + rows.length } : {}
7222
7547
  };
7223
7548
  }
7224
7549
  });
@@ -7227,6 +7552,7 @@ var userCapabilities = [organizationListCapability, usersListCapability];
7227
7552
  // ../../packages/capabilities/dist/cli-catalog.js
7228
7553
  var catalog = [
7229
7554
  ...cliShellCapabilities,
7555
+ ...inferenceCapabilities,
7230
7556
  ...identityCapabilities,
7231
7557
  ...listingCapabilities.filter((capability) => capability.id !== "listings.create"),
7232
7558
  ...commerceMarketCapabilities,