@ornncompute/cli 1.0.107 → 1.0.109

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
@@ -110,7 +110,7 @@ reservations, schedule and spot alike; `reservations buy` books one window of a
110
110
  relisted (secondary) listing term with Markets `POST /v1/markets/bookings`
111
111
  (`{legs: [...]}`), at the term price `terms` shows; it becomes a reservation
112
112
  when the window starts. `market` and `offers` call Markets (`/v1/markets`):
113
- buy `--nodes` at market (Markets also takes GPU counts and limit bids; the
113
+ buy `--nodes` at market (Markets also takes limit bids; the
114
114
  CLI does not send them yet), end a fill with
115
115
  `market end` (Commerce `DELETE /commerce/reservations/{id}`), post an offer
116
116
  on a whole primary listing for one of its terms (`--listing-term-id`, optional
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,3 +1,5 @@
1
+ import { readFileSync } from "node:fs";
2
+
1
3
  import {
2
4
  CliApiError,
3
5
  cliRequest,
@@ -78,6 +80,9 @@ const MACHINE_SCHEMA = "ornn.cli/v1";
78
80
  const UPDATE_CHANNEL = "stable";
79
81
  const FORMATS = { human: true, json: true, ndjson: true };
80
82
  const SESSION_CAPABILITY_IDS = new Set(["identity.context", "identity.login", "identity.logout"]);
83
+ // Cloud Shell's welcome prints this file from the installed package.
84
+ const LOGO_URL = new URL("./ornn-logo.txt", import.meta.url);
85
+ const LOGO_COLUMNS = 72;
81
86
  export const CLI_EXIT_STATUS = Object.freeze({
82
87
  success: 0,
83
88
  failure: 1,
@@ -584,6 +589,9 @@ function writeRootHuman(stdout, catalog) {
584
589
  }
585
590
  stdout.write("\n");
586
591
  };
592
+ if (stdout.isTTY && stdout.columns >= LOGO_COLUMNS) {
593
+ stdout.write(`\n${readFileSync(LOGO_URL, "utf8")}\n`);
594
+ }
587
595
  stdout.write("Ornn CLI\n\n");
588
596
  stdout.write("Usage:\n ornn <command> [options]\n\n");
589
597
  stdout.write("Available commands:\n\n");
@@ -0,0 +1,8 @@
1
+ ▄██████▀▀▀▀▀▀▀▀ ▄▄█▀▀▀█▄▄
2
+ ▀▀▀▀▀▀ ▄▄▄▄▄▄▄ ▄█▀ ▀█▄
3
+ ████████ ▀▀▀▀▀▀ ██▀ ▀██ ▄▄▄ ▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄▄
4
+ ▄▄▄▄▄▄▄ ██ ██▄ ████▀▀▀ ███▄▀▀▀██▄ ██▄▀▀▀▀██
5
+ ▀▀▀▀▀▀▀▀ ██ ██▀ ███ ███ ███ ██▀ ██
6
+ ████████ ██▄ ▄██ ██▄ ███ ███ ██ ██
7
+ ▀▀▀▀▀▀▀ ▀█▄ ▄██ ███ ███ ███ ██ ██
8
+ ▄▄▄▄▄▄▄███████▀ ▀██▄▄▄██▀▀ ███ ███ ███ ██▄ ███