@ornncompute/cli 1.0.422 → 1.0.423

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.422",
3
+ "version": "1.0.423",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -4441,7 +4441,10 @@ import { z as z21 } from "zod";
4441
4441
  // ../../packages/capabilities/dist/capabilities/ssh-keys.js
4442
4442
  import { z as z20 } from "zod";
4443
4443
  async function activeReservationNodes(context, reservationId) {
4444
- const { nodes: nodes2 } = await listNodes(context.fetch, { reservation_id: reservationId });
4444
+ const { nodes: nodes2 } = await listNodes(context.fetch, {
4445
+ scope: "reservations",
4446
+ reservation_id: reservationId
4447
+ });
4445
4448
  return nodes2.filter((node) => node.status !== "terminated");
4446
4449
  }
4447
4450
  async function reservationKeyStatus(context, reservationId) {
@@ -5086,7 +5089,10 @@ var accessShowCapability = defineCapability({
5086
5089
  description: "Show VM and Bare Metal SSH access machines for a reservation.",
5087
5090
  mutation: "read",
5088
5091
  input: z21.object({ reservationId: z21.string() }),
5089
- execute: (ctx, input) => listNodes(ctx.fetch, { reservation_id: input.reservationId })
5092
+ execute: (ctx, input) => listNodes(ctx.fetch, {
5093
+ scope: "reservations",
5094
+ reservation_id: input.reservationId
5095
+ })
5090
5096
  });
5091
5097
  var accessActivateInput = z21.object({
5092
5098
  reservationId: z21.string(),
@@ -7234,6 +7240,7 @@ async function nodeIds(context, input) {
7234
7240
  if (input.machineId)
7235
7241
  return [input.machineId];
7236
7242
  const { nodes: nodes2 } = await listNodes(context.fetch, {
7243
+ scope: "reservations",
7237
7244
  reservation_id: input.reservationId
7238
7245
  });
7239
7246
  if (!nodes2.length)