@ornncompute/cli 0.2.14 → 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/README.md CHANGED
@@ -385,6 +385,9 @@ Ctrl+C or SIGTERM releases the lock after installer teardown. An interrupted
385
385
  package installation may still require reinstalling the CLI if the package
386
386
  manager has already removed the previous version.
387
387
 
388
+ On POSIX, SIGHUP and SIGQUIT are forwarded to the package installer so it can
389
+ exit before the update lock is released.
390
+
388
391
  ## Deployment
389
392
 
390
393
  `deploy-cli-pipeline.yml` publishes `@ornncompute/cli` from `main`. Staging
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "0.2.14",
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 = [];
package/src/signals.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const FORWARDABLE_SIGNALS =
2
- process.platform === "win32" ? ["SIGINT", "SIGTERM"] : ["SIGINT", "SIGTERM", "SIGHUP"];
2
+ process.platform === "win32" ? ["SIGINT", "SIGTERM"] : ["SIGINT", "SIGTERM", "SIGHUP", "SIGQUIT"];
3
3
 
4
4
  export function forwardSignals(signalSource, child, onSignal) {
5
5
  const listeners = FORWARDABLE_SIGNALS.map((signal) => {
@@ -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
  })