@ornncompute/cli 1.0.295 → 1.0.297

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.295",
3
+ "version": "1.0.297",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -580,6 +580,30 @@ function getMaintenanceEvent(request, id, signal) {
580
580
  });
581
581
  }
582
582
 
583
+ // ../../packages/api-client/dist/orchestrator/maintenance-runs.js
584
+ function createMaintenanceRun(request, body) {
585
+ return request("/v1/orchestrator/maintenance-runs", {
586
+ method: "POST",
587
+ body
588
+ });
589
+ }
590
+ function listMaintenanceRuns(request, filter = {}, signal) {
591
+ const query = new URLSearchParams();
592
+ for (const [key, value] of Object.entries(filter))
593
+ if (value !== void 0)
594
+ query.set(key, value);
595
+ return request(`/v1/orchestrator/maintenance-runs${query.size ? `?${query}` : ""}`, {
596
+ method: "GET",
597
+ ...signal ? { signal } : {}
598
+ });
599
+ }
600
+ function getMaintenanceRun(request, id, signal) {
601
+ return request(`/v1/orchestrator/maintenance-runs/${encodeURIComponent(id)}`, {
602
+ method: "GET",
603
+ ...signal ? { signal } : {}
604
+ });
605
+ }
606
+
583
607
  // ../../packages/api-client/dist/orchestrator/networks.js
584
608
  var networks = "/v1/orchestrator/networks";
585
609
  function networkPath(id) {
@@ -1138,6 +1162,7 @@ export {
1138
1162
  createEnrollmentProfile,
1139
1163
  createEnrollmentRun,
1140
1164
  createGhostNodes,
1165
+ createMaintenanceRun,
1141
1166
  createNetwork,
1142
1167
  createNetworkPeer,
1143
1168
  createShellSession,
@@ -1186,6 +1211,7 @@ export {
1186
1211
  getFalcoRollout,
1187
1212
  getHardwareCatalog,
1188
1213
  getMaintenanceEvent,
1214
+ getMaintenanceRun,
1189
1215
  getNetwork,
1190
1216
  getNode,
1191
1217
  getNodeSanitize,
@@ -1227,6 +1253,7 @@ export {
1227
1253
  listGitHubRepositories,
1228
1254
  listLocalityRegions,
1229
1255
  listMaintenanceHistory,
1256
+ listMaintenanceRuns,
1230
1257
  listNetworkCompartments,
1231
1258
  listNetworkMemberPeers,
1232
1259
  listNetworkPeerConfigs,
@@ -3897,11 +3897,11 @@ var nodeSanitizeStartCapability = defineCapability({
3897
3897
  id: "node.sanitize.start",
3898
3898
  domain: "fleet",
3899
3899
  roles: ["admin"],
3900
- description: "Destructive staff maintenance write: start node drive sanitization with a stable job UUID. data_wipe erases local data drives and keeps the OS; ram_roundtrip does not erase drives; node_turnover wipes and restores the whole node; host_restore restores the host. Supply the exact operation-specific confirmation phrase yourself; it is never filled automatically. The job then waits for staff approval. Slack waits for a human confirm.",
3900
+ description: "Destructive staff maintenance write: start node drive sanitization with a stable job UUID. data_wipe erases local data drives and keeps the OS; ram_roundtrip does not erase drives; node_turnover wipes and restores the whole node; host_restore restores the host. Supply the exact operation-specific confirmation phrase yourself; it is never filled automatically. Data-only jobs start immediately after the request; whole-node turnover and host OS restoration wait for separate staff approval. Slack waits for a human confirm.",
3901
3901
  mutation: "preview-confirm",
3902
3902
  cli: {
3903
3903
  command: ["admin", "nodes", "sanitize"],
3904
- vnext: sanitizeHelp("Start one held sanitize job on one exact node.", "ornn admin nodes sanitize <node-id> --operation data_wipe|ram_roundtrip|node_turnover|host_restore --confirmation PHRASE [--recovery-uuid UUID] [--job-id UUID] [--batch UUID]", "Exact node, operation, job UUID, and confirmation phrase.")
3904
+ vnext: sanitizeHelp("Request one sanitize job on one exact node.", "ornn admin nodes sanitize <node-id> --operation data_wipe|ram_roundtrip|node_turnover|host_restore --confirmation PHRASE [--recovery-uuid UUID] [--job-id UUID] [--batch UUID]", "Exact node, operation, job UUID, and confirmation phrase.")
3905
3905
  },
3906
3906
  slack: { parameters: slackParameters(nodeSanitizeStartInput) },
3907
3907
  input: nodeSanitizeStartInput,