@ornncompute/cli 0.2.2 → 0.2.3

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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/package.json +1 -1
  3. package/src/cli.mjs +2 -14
package/README.md CHANGED
@@ -44,6 +44,7 @@ ornn whoami [--json]
44
44
  ornn status [--json]
45
45
  ornn listings list [--gpu-type <type>] [--facility <name>] [--operator <name>] [--json]
46
46
  ornn listings show <listing-id> [--open] [--json]
47
+ ornn listings create [--gpu-type <type>] [--node-count <n>] [--yes] [--json]
47
48
  ornn buy <listing-id> [--no-open] [--json]
48
49
  ornn exchange create <listing-id> --node-count <n> [--min-node-count <n>] --start-date <yyyy-mm-dd> --end-date <yyyy-mm-dd> --price <usd> [--no-open] [--json]
49
50
  ornn exchange list [--limit <1-500>] [--cursor <last-id>] [--json]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.mjs CHANGED
@@ -1,11 +1,6 @@
1
1
  import { spawn } from "node:child_process";
2
- import { randomUUID } from "node:crypto";
3
2
  import { createReadStream, createWriteStream, existsSync } from "node:fs";
4
3
  import {
5
- chmod,
6
- mkdir,
7
- mkdtemp,
8
- open,
9
4
  readFile,
10
5
  rename,
11
6
  rm,
@@ -13,9 +8,8 @@ import {
13
8
  writeFile,
14
9
  } from "node:fs/promises";
15
10
  import { createRequire } from "node:module";
16
- import { isIP } from "node:net";
17
- import { homedir, hostname, tmpdir } from "node:os";
18
- import { basename, dirname, join } from "node:path";
11
+ import { homedir } from "node:os";
12
+ import { basename, join } from "node:path";
19
13
  import { Readable } from "node:stream";
20
14
  import { pipeline } from "node:stream/promises";
21
15
 
@@ -8690,12 +8684,6 @@ function validateMinNodeCount(minNodeCount, nodeCount) {
8690
8684
  }
8691
8685
  }
8692
8686
 
8693
- function validateMinGpuCount(minGpuCount, gpuCount) {
8694
- if (minGpuCount > gpuCount) {
8695
- throw new Error("--min-gpu-count must be less than or equal to --gpu-count.");
8696
- }
8697
- }
8698
-
8699
8687
  function arrayOption(value) {
8700
8688
  if (value === undefined || value === null || value === "") {
8701
8689
  return [];