@ornncompute/cli 1.0.397 → 1.0.398
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 +12 -7
- package/package.json +1 -1
- package/vendor/capabilities/cli.js +11 -15
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ Market commands call one gateway route each and print that route's JSON.
|
|
|
148
148
|
`capacity-offers list|show|terms` reads native Commerce capacity
|
|
149
149
|
(`/commerce/v2/listings*`). List/show return parent fields with `capacityListingId`;
|
|
150
150
|
pass it as `--listing-id`. `terms` separately returns advertised financial choices
|
|
151
|
-
with `listingTermsId`,
|
|
151
|
+
with `listingTermsId`, type, price, down payment and renewable flag.
|
|
152
152
|
List accepts limits of 1–100 and the owner cursor unchanged. `availability`
|
|
153
153
|
reads Markets `/v1/markets/listings/{id}/availability` (optional `--from`/`--to`)
|
|
154
154
|
as windows of free GPUs and the whole machines those GPUs make
|
|
@@ -157,13 +157,16 @@ as windows of free GPUs and the whole machines those GPUs make
|
|
|
157
157
|
`terms` array. The body does not take node IDs. Delisting uses the native parent’s `/delist` POST. `reservations` reads Commerce
|
|
158
158
|
reservations, schedule and spot alike; `reservations buy` books one window of a
|
|
159
159
|
relisted (secondary) listing term with Markets `POST /v1/markets/bookings`
|
|
160
|
-
(`{legs: [...]}`), at the term price `terms` shows;
|
|
161
|
-
|
|
160
|
+
(`{legs: [...]}`), at the term price `terms` shows; the window is at least an
|
|
161
|
+
hour and ends no later than the listing, and it becomes a reservation when the
|
|
162
|
+
window starts. `market` and `offers` call Markets (`/v1/markets`):
|
|
162
163
|
buy `--nodes` at market (Markets also takes limit bids; the
|
|
163
164
|
CLI does not send them yet), end a fill with
|
|
164
165
|
`market end` (Commerce `DELETE /commerce/reservations/{id}`), post an offer
|
|
165
166
|
on a whole primary listing for one of its terms (`--listing-term-id`, optional
|
|
166
|
-
`--duration-seconds`
|
|
167
|
+
`--duration-seconds` of at least an hour that ends no later than the listing;
|
|
168
|
+
omitted, the offer runs until the listing ends), list the offers your
|
|
169
|
+
organization made or received, and
|
|
167
170
|
accept or cancel offers by `--offer-id`.
|
|
168
171
|
Prices are integer micro-USD per GPU-hour (`1000000` is $1.00); CPU capacity
|
|
169
172
|
(a null GPU type, traded on the `cpu` book) is priced and counted per vCPU in
|
|
@@ -186,7 +189,8 @@ execute directly. Reservation creation books a window for a
|
|
|
186
189
|
customer and takes `--organization-id UUID`, `--listing-id UUID`,
|
|
187
190
|
`--listing-term-id UUID`, `--nodes COUNT`, `--starts-at TIME`, `--ends-at TIME`,
|
|
188
191
|
`--price-per-gpu-hour-micro-usd N`, and `--idempotency-key KEY`. The window is
|
|
189
|
-
whole seconds,
|
|
192
|
+
whole seconds, at least an hour, and ends no later than the listing. The term is
|
|
193
|
+
non-renewable Reserved, and the price is the term's.
|
|
190
194
|
Reuse the key and payload on retries. This booking command requires an eligible
|
|
191
195
|
human terminal.
|
|
192
196
|
|
|
@@ -205,8 +209,9 @@ of `--gpus-per-node`; its term prices are per vCPU-hour. Give
|
|
|
205
209
|
`--capacity-node-count`, or `--node-ids` (a JSON array) to attach nodes at creation; the count then defaults to the number of nodes.
|
|
206
210
|
Primary capacity takes both `--available-at` and `--available-until`, or
|
|
207
211
|
neither. Reuse the key and the same body on retries. Prices are integer
|
|
208
|
-
micro-USD inside terms, with
|
|
209
|
-
renewable
|
|
212
|
+
micro-USD inside terms, with a nullable deposit, renewable flag (Spot and
|
|
213
|
+
renewable Reserved terms sell by the hour; other Reserved terms sell a window),
|
|
214
|
+
optional Spot `preemptNoticeSeconds`, and an optional
|
|
210
215
|
`horizon` in hours on renewable Reserved terms: how far ahead the term can be
|
|
211
216
|
held and the notice its reservations get when the supplier stops.
|
|
212
217
|
`ornn admin capacity-offers update` edits a selected term using `--listing-id`,
|
package/package.json
CHANGED
|
@@ -2669,11 +2669,9 @@ var nativeTermFields = {
|
|
|
2669
2669
|
backendNetwork: z10.string().trim().min(1).refine((value) => new TextEncoder().encode(value).length <= 1024, "Network must be at most 1024 UTF-8 bytes.").nullable().optional(),
|
|
2670
2670
|
network: z10.string().refine((value) => new TextEncoder().encode(value).length <= 1024, "Network must be at most 1024 UTF-8 bytes.").nullable().optional().describe("Reserved network and interconnect for this choice. Immutable per term ID; create a new term for a different network."),
|
|
2671
2671
|
type: z10.enum(["reserved", "spot"]).nullable().optional(),
|
|
2672
|
-
minDurationHours: z10.coerce.number().nonnegative(),
|
|
2673
|
-
maxDurationHours: z10.coerce.number().nonnegative(),
|
|
2674
2672
|
pricePerGpuHourMicroUsd: z10.coerce.number().int().positive().describe("Micro-USD per unit-hour: per GPU, or per vCPU on CPU capacity."),
|
|
2675
2673
|
downPaymentCents: z10.coerce.number().int().nonnegative().nullable().optional(),
|
|
2676
|
-
renewable: flag,
|
|
2674
|
+
renewable: flag.describe("Spot and renewable Reserved terms sell by the hour; a non-renewable Reserved term sells a window."),
|
|
2677
2675
|
preemptNoticeSeconds: z10.coerce.number().int().nonnegative().optional(),
|
|
2678
2676
|
horizon: z10.coerce.number().int().min(1).max(87600).nullable().optional().describe("Renewable Reserved terms only: hours ahead of now the term can be held, and the notice its reservations get when the supplier stops. Omit for no rolling limit.")
|
|
2679
2677
|
};
|
|
@@ -2823,7 +2821,7 @@ var reservationCreateInput = z11.object({
|
|
|
2823
2821
|
listingTermId: z11.string().uuid().describe("The listingTermsId of a non-renewable Reserved term on that listing."),
|
|
2824
2822
|
nodes: z11.number().int().positive().max(2147483647).describe("Whole nodes to book."),
|
|
2825
2823
|
startsAt: wholeSecondInstant.describe("RFC 3339 start of the window in whole seconds, no more than five minutes ago."),
|
|
2826
|
-
endsAt: wholeSecondInstant.describe("RFC 3339 end of the window in whole seconds, at least an hour after the start and
|
|
2824
|
+
endsAt: wholeSecondInstant.describe("RFC 3339 end of the window in whole seconds, at least an hour after the start and no later than the listing's end."),
|
|
2827
2825
|
pricePerGpuHourMicroUsd: microUsd.describe("The term's price in micro-USD per GPU-hour (per vCPU-hour on CPU capacity). A changed price refuses the booking."),
|
|
2828
2826
|
idempotencyKey: z11.string().trim().min(1).max(200).describe("Reuse this key when retrying the same booking.")
|
|
2829
2827
|
});
|
|
@@ -2831,7 +2829,7 @@ var adminReservationsCreateCapability = defineCapability({
|
|
|
2831
2829
|
id: "reservations.create",
|
|
2832
2830
|
domain: "reservations",
|
|
2833
2831
|
roles: ["admin"],
|
|
2834
|
-
description: "Book a separately billed window of a listing term for a customer organization (admin). The booking becomes the customer's reservation when its window starts. Returns {bookings}.",
|
|
2832
|
+
description: "Book a separately billed window of a listing term for a customer organization (admin). A window is at least an hour and ends no later than the listing. The booking becomes the customer's reservation when its window starts. Returns {bookings}.",
|
|
2835
2833
|
mutation: "preview-confirm",
|
|
2836
2834
|
cli: {
|
|
2837
2835
|
command: ["admin", "reservations", "create"],
|
|
@@ -2851,7 +2849,7 @@ var directDeliveryInput = z11.strictObject({
|
|
|
2851
2849
|
listingTermId: z11.uuid().describe("A non-renewable Reserved term on the draft primary listing."),
|
|
2852
2850
|
nodeIds: z11.array(z11.uuid()).min(1).max(5e3).describe("One or more selected node IDs attached to the draft listing."),
|
|
2853
2851
|
startsAt: wholeSecondInstant.describe("RFC 3339 start in whole seconds, with a timezone."),
|
|
2854
|
-
endsAt: wholeSecondInstant.describe("RFC 3339 end in whole seconds,
|
|
2852
|
+
endsAt: wholeSecondInstant.describe("RFC 3339 end in whole seconds, at least an hour after the start and no later than the listing's end."),
|
|
2855
2853
|
transactionId: z11.uuid().describe("A caller-generated UUID. Reuse it on retry with the same input."),
|
|
2856
2854
|
vmDiskId: z11.uuid().optional().describe("Optional boot disk for a VM reservation.")
|
|
2857
2855
|
}).refine((input) => new Set(input.nodeIds.map((id) => id.toLowerCase())).size === input.nodeIds.length, {
|
|
@@ -2922,7 +2920,7 @@ var listingsListCapability = defineCapability({
|
|
|
2922
2920
|
id: "listings.list",
|
|
2923
2921
|
domain: "listings",
|
|
2924
2922
|
roles: ["user"],
|
|
2925
|
-
description: "List native capacity listings. Primary listings require organization approval. Returns capacityListingId, hardware, capacity and availability; when nextCursor is present, pass it back as cursor for the next page. Read listings.terms separately for prices
|
|
2923
|
+
description: "List native capacity listings. Primary listings require organization approval. Returns capacityListingId, hardware, capacity and availability; when nextCursor is present, pass it back as cursor for the next page. Read listings.terms separately for prices.",
|
|
2926
2924
|
mutation: "read",
|
|
2927
2925
|
input: listingsListInput,
|
|
2928
2926
|
cli: {
|
|
@@ -2965,7 +2963,7 @@ var listingTermsCapability = defineCapability({
|
|
|
2965
2963
|
id: "listings.terms",
|
|
2966
2964
|
domain: "listings",
|
|
2967
2965
|
roles: ["user"],
|
|
2968
|
-
description: "Read a capacity listing's advertised financial terms. Each term returns listingTermsId, capacityListingId,
|
|
2966
|
+
description: "Read a capacity listing's advertised financial terms. Each term returns listingTermsId, capacityListingId, type, pricePerGpuHourMicroUsd, downPaymentCents and renewable: Spot and renewable Reserved terms sell by the hour, other Reserved terms sell a window. Use the parent's capacityListingId as listingId. Prices are gross integer micro-USD per GPU-hour (per vCPU-hour on CPU capacity), the price reservations.purchase expects.",
|
|
2969
2967
|
mutation: "read",
|
|
2970
2968
|
input: listingShowInput,
|
|
2971
2969
|
cli: {
|
|
@@ -3052,7 +3050,7 @@ var listingUpdateCapability = defineCapability({
|
|
|
3052
3050
|
cli: {
|
|
3053
3051
|
command: ["admin", "capacity-offers", "update"],
|
|
3054
3052
|
vnext: {
|
|
3055
|
-
...help("Edit one advertised financial term as staff.", "ornn admin capacity-offers update --listing-id UUID --listing-terms-id UUID --
|
|
3053
|
+
...help("Edit one advertised financial term as staff.", "ornn admin capacity-offers update --listing-id UUID --listing-terms-id UUID --price-per-gpu-hour-micro-usd RATE --renewable true|false --idempotency-key KEY [--type reserved|spot] [--down-payment-cents CENTS]", "Requires an eligible human terminal; reuse --idempotency-key on retries.", ["capacity-offers terms"], 25),
|
|
3056
3054
|
audience: "admin"
|
|
3057
3055
|
}
|
|
3058
3056
|
},
|
|
@@ -3169,7 +3167,7 @@ var reservationPurchaseInput = z12.object({
|
|
|
3169
3167
|
listingTermId: z12.string().uuid().describe("The listingTermsId of the listing's term, from listings.terms."),
|
|
3170
3168
|
nodeCount: z12.coerce.number().int().positive().optional().describe("Whole nodes to book for the window. Defaults to every node the listing sells."),
|
|
3171
3169
|
startsAt: z12.iso.datetime({ offset: true }).describe("RFC 3339 start of the window, in whole seconds, inside the listing and not in the past."),
|
|
3172
|
-
endsAt: z12.iso.datetime({ offset: true }).describe("RFC 3339 end of the window, at least an hour after the start and
|
|
3170
|
+
endsAt: z12.iso.datetime({ offset: true }).describe("RFC 3339 end of the window, at least an hour after the start and no later than the listing's end."),
|
|
3173
3171
|
pricePerGpuHourMicroUsd: microUsd.describe("The term's price from listings.terms, in micro-USD per GPU-hour (per vCPU-hour on CPU capacity). A changed price refuses the purchase."),
|
|
3174
3172
|
idempotencyKey: z12.string().min(1).max(200).optional(),
|
|
3175
3173
|
confirm: z12.boolean().optional()
|
|
@@ -3601,7 +3599,7 @@ var offerPostInput = z13.object({
|
|
|
3601
3599
|
$positionals: positionals,
|
|
3602
3600
|
listingId: z13.string().uuid().describe("A primary listing."),
|
|
3603
3601
|
listingTermId: z13.string().uuid().describe("The listingTermsId of a non-Preemptible term of that listing, from listings.terms."),
|
|
3604
|
-
durationSeconds: z13.coerce.number().int().positive().optional().describe("How long the reservation runs
|
|
3602
|
+
durationSeconds: z13.coerce.number().int().positive().optional().describe("How long the reservation runs: at least an hour (3600), ending no later than the listing's end. Omit to run until the listing ends."),
|
|
3605
3603
|
pricePerGpuHourMicroUsd: microUsd.describe("Offer price in micro-USD per GPU-hour, or per vCPU-hour on CPU capacity (1000000 = $1.00). Covers every node on the listing."),
|
|
3606
3604
|
downPaymentCents: z13.coerce.number().int().min(0).optional().describe("The down payment you offer, in cents."),
|
|
3607
3605
|
idempotencyKey: z13.string().min(1).max(200).optional(),
|
|
@@ -3611,7 +3609,7 @@ var offerPostCapability = defineCapability({
|
|
|
3611
3609
|
id: "offers.post",
|
|
3612
3610
|
domain: "markets",
|
|
3613
3611
|
roles: ["user"],
|
|
3614
|
-
description: "Offer a price for a whole primary listing on one of its terms: every node, from the later of the listing's start and now, for durationSeconds. The listing owner accepts it to create your reservation. Relisted (secondary) capacity takes no offers: buy its windows with reservations.purchase..",
|
|
3612
|
+
description: "Offer a price for a whole primary listing on one of its terms: every node, from the later of the listing's start and now, for durationSeconds or until the listing ends. The listing owner accepts it to create your reservation. Relisted (secondary) capacity takes no offers: buy its windows with reservations.purchase..",
|
|
3615
3613
|
mutation: "preview-confirm",
|
|
3616
3614
|
input: offerPostInput,
|
|
3617
3615
|
cli: {
|
|
@@ -3632,7 +3630,7 @@ var offerPostCapability = defineCapability({
|
|
|
3632
3630
|
{ label: "Term", value: parsed.listingTermId },
|
|
3633
3631
|
{
|
|
3634
3632
|
label: "Duration",
|
|
3635
|
-
value: parsed.durationSeconds !== void 0 ? `${parsed.durationSeconds} seconds from the later of the listing's start and now` : "
|
|
3633
|
+
value: parsed.durationSeconds !== void 0 ? `${parsed.durationSeconds} seconds from the later of the listing's start and now` : "From the later of the listing's start and now until the listing ends"
|
|
3636
3634
|
},
|
|
3637
3635
|
{ label: "Price", value: microUsdLabel(parsed.pricePerGpuHourMicroUsd) },
|
|
3638
3636
|
...parsed.downPaymentCents !== void 0 ? [{ label: "Down payment", value: `$${(parsed.downPaymentCents / 100).toFixed(2)}` }] : []
|
|
@@ -7700,8 +7698,6 @@ function primaryListingBody(input, pricePerGpuHourMicroUsd, downPaymentCents) {
|
|
|
7700
7698
|
terms: [
|
|
7701
7699
|
{
|
|
7702
7700
|
type: "reserved",
|
|
7703
|
-
minDurationHours: 1 / 3600,
|
|
7704
|
-
maxDurationHours: (Date.parse(input.availableUntil) - Date.parse(input.availableAt)) / 36e5,
|
|
7705
7701
|
renewable: false,
|
|
7706
7702
|
pricePerGpuHourMicroUsd,
|
|
7707
7703
|
downPaymentCents
|