@ornncompute/cli 0.2.15 → 0.2.16

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": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.mjs CHANGED
@@ -7813,6 +7813,9 @@ function writeNodeKeyStatus(stdout, status) {
7813
7813
  }
7814
7814
 
7815
7815
  function sshInvocationForMachine(machine, options = {}) {
7816
+ if (String(machineState(machine, "")).toLowerCase() !== "running") {
7817
+ return null;
7818
+ }
7816
7819
  const host = machineHost(machine);
7817
7820
  if (host) {
7818
7821
  const args = [];
@@ -263,7 +263,7 @@ export const reservationListCapability = defineStaffMcpCapability({
263
263
  const parsed = reservationListInput.parse(input ?? {});
264
264
  const parts = [];
265
265
  if (parsed.organizationId) {
266
- parts.push(`organization_id=${encodeURIComponent(parsed.organizationId)}`);
266
+ parts.push(`organizationId=${encodeURIComponent(parsed.organizationId)}`);
267
267
  }
268
268
  if (parsed.status)
269
269
  parts.push(`status=${encodeURIComponent(parsed.status)}`);
@@ -1,7 +1,6 @@
1
1
  export declare function buildEnrollmentInstallCommand(options: {
2
2
  token: string;
3
3
  base?: string;
4
- nodeMode?: string;
5
4
  ip?: string;
6
5
  restoreNodeId?: string;
7
6
  force?: boolean;
@@ -24,10 +24,6 @@ const emptyInput = z.object({});
24
24
  export function buildEnrollmentInstallCommand(options) {
25
25
  const base = (options.base ?? "https://api.ornn.com/v1/orchestrator").replace(/\/+$/, "");
26
26
  const params = [`token=${encodeURIComponent(options.token)}`];
27
- if (options.nodeMode) {
28
- const mode = options.nodeMode === "vm" ? "virtual-machine" : options.nodeMode;
29
- params.push(`node_mode=${encodeURIComponent(mode)}`);
30
- }
31
27
  if (options.ip)
32
28
  params.push(`ip=${encodeURIComponent(options.ip)}`);
33
29
  if (options.restoreNodeId)
@@ -122,7 +118,6 @@ export const tokensCreateCapability = defineCapability({
122
118
  ? buildEnrollmentInstallCommand({
123
119
  token,
124
120
  base: parsed.installer_base ?? undefined,
125
- nodeMode: nodeMode ?? undefined,
126
121
  ip: parsed.ip ?? undefined,
127
122
  force: payload.remote,
128
123
  })