@ornncompute/cli 1.0.298 → 1.0.300

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.298",
3
+ "version": "1.0.300",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1044,10 +1044,12 @@ async function listStaffVirtualMachines(request, input, signal) {
1044
1044
  let cursor = input.cursor;
1045
1045
  const seen = new Set(cursor ? [cursor] : []);
1046
1046
  for (; ; ) {
1047
- const query = new URLSearchParams({
1048
- node_ids: input.node_ids.join(","),
1049
- limit: String(input.limit ?? 500)
1050
- });
1047
+ const query = new URLSearchParams();
1048
+ if (input.node_ids)
1049
+ query.set("node_ids", input.node_ids.join(","));
1050
+ else
1051
+ query.set("reservation_id", input.reservation_id);
1052
+ query.set("limit", String(input.limit ?? 500));
1051
1053
  if (cursor)
1052
1054
  query.set("cursor", cursor);
1053
1055
  const page = await request(`/v1/staff/virtual-machines?${query}`, {