@ornncompute/cli 1.0.374 → 1.0.376

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.374",
3
+ "version": "1.0.376",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -110,8 +110,11 @@ function cancelEnrollmentRun(request, id) {
110
110
  body: { action: "cancel" }
111
111
  });
112
112
  }
113
- function getEnrollmentHosts(request, id) {
114
- return request(`${root}/runs/${encodeURIComponent(id)}/hosts`, { method: "GET" });
113
+ function getEnrollmentHosts(request, id, signal) {
114
+ return request(`${root}/runs/${encodeURIComponent(id)}/hosts`, {
115
+ method: "GET",
116
+ ...signal ? { signal } : {}
117
+ });
115
118
  }
116
119
  function launchEnrollmentRun(request, id, body) {
117
120
  return request(`${root}/runs/${encodeURIComponent(id)}/launch`, {
@@ -147,8 +150,11 @@ function updateEnrollmentIssue(request, id, code, body) {
147
150
  body
148
151
  });
149
152
  }
150
- function getEnrollmentSteps(request, id) {
151
- return request(`${root}/hosts/${encodeURIComponent(id)}/steps`, { method: "GET" });
153
+ function getEnrollmentSteps(request, id, signal) {
154
+ return request(`${root}/hosts/${encodeURIComponent(id)}/steps`, {
155
+ method: "GET",
156
+ ...signal ? { signal } : {}
157
+ });
152
158
  }
153
159
  function getEnrollmentStepCatalog(request, organizationId, signal) {
154
160
  return request(`${root}/steps${queryString({ organization_id: organizationId })}`, {
@@ -820,8 +826,9 @@ function updateNode(request, id, body) {
820
826
  function createGhostNodes(request, body) {
821
827
  return request("/v1/orchestrator/nodes/ghost", { method: "POST", body });
822
828
  }
823
- function terminateNode(request, id, body, headers) {
824
- return request(`${nodeResourcePath(id)}/terminate`, {
829
+ function terminateNode(request, id, body, headers, scope) {
830
+ const path6 = `${nodeResourcePath(id)}/terminate${scope === "enrolled" ? "?scope=enrolled" : ""}`;
831
+ return request(path6, {
825
832
  method: "POST",
826
833
  body,
827
834
  ...headers ? { headers } : {}
@@ -1215,6 +1222,18 @@ function updateReservationNodeTags(request, reservationId, body) {
1215
1222
  body
1216
1223
  });
1217
1224
  }
1225
+ function listEnrolledNodeTags(request, signal) {
1226
+ return request("/v1/orchestrator/nodes/tags", {
1227
+ method: "GET",
1228
+ signal
1229
+ });
1230
+ }
1231
+ function updateEnrolledNodeTags(request, body) {
1232
+ return request("/v1/orchestrator/nodes/tags", {
1233
+ method: "PATCH",
1234
+ body
1235
+ });
1236
+ }
1218
1237
  export {
1219
1238
  actOnEnrollmentHost,
1220
1239
  activateAgentRelease,
@@ -1331,6 +1350,7 @@ export {
1331
1350
  listDisks,
1332
1351
  listDriveContents,
1333
1352
  listDrives,
1353
+ listEnrolledNodeTags,
1334
1354
  listEnrollmentIssues,
1335
1355
  listEnrollmentProfiles,
1336
1356
  listEnrollmentRuns,
@@ -1412,6 +1432,7 @@ export {
1412
1432
  transferNode,
1413
1433
  updateDisk,
1414
1434
  updateDrive,
1435
+ updateEnrolledNodeTags,
1415
1436
  updateEnrollmentIssue,
1416
1437
  updateEnrollmentProfile,
1417
1438
  updateNetwork,
@@ -947,8 +947,9 @@ function getNode(request, id, signal) {
947
947
  function updateNode(request, id, body2) {
948
948
  return request(nodeResourcePath(id), { method: "PATCH", body: body2 });
949
949
  }
950
- function terminateNode(request, id, body2, headers) {
951
- return request(`${nodeResourcePath(id)}/terminate`, {
950
+ function terminateNode(request, id, body2, headers, scope2) {
951
+ const path6 = `${nodeResourcePath(id)}/terminate${scope2 === "enrolled" ? "?scope=enrolled" : ""}`;
952
+ return request(path6, {
952
953
  method: "POST",
953
954
  body: body2,
954
955
  ...headers ? { headers } : {}