@ornncompute/cli 1.0.315 → 1.0.317

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.315",
3
+ "version": "1.0.317",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,10 +1,16 @@
1
1
  // ../../packages/api-client/dist/orchestrator/agent-updates.js
2
- function listAvailableAgentReleases(request, signal) {
3
- return request("/v1/orchestrator/agent-releases", {
2
+ function listAvailableAgentReleases(request, signal, filter = {}) {
3
+ const query = filter.include_drafts ? "?include_drafts=true" : "";
4
+ return request(`/v1/orchestrator/agent-releases${query}`, {
4
5
  method: "GET",
5
6
  signal
6
7
  });
7
8
  }
9
+ function activateAgentRelease(request, version) {
10
+ return request(`/v1/orchestrator/agent-releases/${encodeURIComponent(version)}/activate`, {
11
+ method: "POST"
12
+ });
13
+ }
8
14
  function startAgentReleaseRollout(request, version, body = {}) {
9
15
  return request(`/v1/orchestrator/agent-releases/${encodeURIComponent(version)}/rollouts`, {
10
16
  method: "POST",
@@ -1140,6 +1146,7 @@ function updateReservationNodeTags(request, reservationId, body) {
1140
1146
  }
1141
1147
  export {
1142
1148
  actOnEnrollmentHost,
1149
+ activateAgentRelease,
1143
1150
  addControllerNode,
1144
1151
  addControllerVirtualMachine,
1145
1152
  addReservationSshKey,