@ornncompute/cli 1.0.385 → 1.0.387

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
@@ -203,11 +203,12 @@ Native capacity creation takes
203
203
  `--cores-per-node` (a whole number of at least 1; each core is 2 vCPUs) instead
204
204
  of `--gpus-per-node`; its term prices are per vCPU-hour. Give
205
205
  `--capacity-node-count`, or `--node-ids` (a JSON array) to attach nodes at creation; the count then defaults to the number of nodes.
206
- Primary capacity takes `--days-to-rfs` (0 when ready now) or both
207
- `--available-at` and `--available-until`, not both. Reuse the key and the same
208
- body on retries. Prices are integer micro-USD inside terms, with explicit
209
- duration bounds, nullable deposit, renewable flag and optional
210
- `preemptNoticeSeconds`.
206
+ Primary capacity takes both `--available-at` and `--available-until`, or
207
+ neither. Reuse the key and the same body on retries. Prices are integer
208
+ micro-USD inside terms, with explicit duration bounds, nullable deposit,
209
+ renewable flag, optional Spot `preemptNoticeSeconds`, and an optional
210
+ `horizon` in hours on renewable Reserved terms: how far ahead the term can be
211
+ held and the notice its reservations get when the supplier stops.
211
212
  `ornn admin capacity-offers update` edits a selected term using `--listing-id`,
212
213
  `--listing-terms-id`, the complete term fields and `--idempotency-key`. Financial
213
214
  editing remains staff-only. The old customer `capacity-offers update` is removed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.385",
3
+ "version": "1.0.387",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2547,8 +2547,8 @@ function query2(params) {
2547
2547
  return text2 ? `?${text2}` : "";
2548
2548
  }
2549
2549
  var MARKETS_SOCKET_PATH = `${BASE3}/ws`;
2550
- function scope({ saleType: saleType2, region: region2 } = {}) {
2551
- return { saleType: saleType2, region: region2 };
2550
+ function scope({ region: region2 } = {}) {
2551
+ return { region: region2 };
2552
2552
  }
2553
2553
  function listOrderBooks(request, filter = {}, signal) {
2554
2554
  return request(`${BASE3}/books${query2({ gpuSlug: filter.gpuSlug, ...scope(filter) })}`, {
@@ -2557,12 +2557,10 @@ function listOrderBooks(request, filter = {}, signal) {
2557
2557
  });
2558
2558
  }
2559
2559
  function getOrderBook(request, gpuSlug, books = {}, signal) {
2560
- return request(`${BASE3}/books/${encodeURIComponent(gpuSlug)}${query2({
2561
- ...scope(books),
2562
- minStorageGb: books.minStorageGb?.toString(),
2563
- networkType: books.networkType,
2564
- clusterId: books.clusterId
2565
- })}`, { method: "GET", ...signal ? { signal } : {} });
2560
+ return request(`${BASE3}/books/${encodeURIComponent(gpuSlug)}${query2(scope(books))}`, {
2561
+ method: "GET",
2562
+ ...signal ? { signal } : {}
2563
+ });
2566
2564
  }
2567
2565
  function listTrades(request, gpuSlug, books = {}, signal) {
2568
2566
  return request(`${BASE3}/books/${encodeURIComponent(gpuSlug)}/trades${query2(scope(books))}`, {
@@ -2574,10 +2572,8 @@ function quoteBid(request, bid, signal) {
2574
2572
  return request(`${BASE3}/books/${encodeURIComponent(bid.gpuSlug)}/quote${query2({
2575
2573
  gpus: bid.gpus === void 0 ? null : String(bid.gpus),
2576
2574
  nodes: bid.nodes === void 0 ? null : String(bid.nodes),
2577
- minStorageGb: bid.minStorageGb === void 0 ? null : String(bid.minStorageGb),
2578
- networkType: bid.networkType,
2579
- clusterId: bid.clusterId,
2580
2575
  orderType: bid.orderType,
2576
+ fillBehavior: bid.fillBehavior,
2581
2577
  pricePerGpuHourMicroUsd: bid.pricePerGpuHourMicroUsd === void 0 ? null : String(bid.pricePerGpuHourMicroUsd),
2582
2578
  nodeSelections: bid.nodeSelections ? JSON.stringify(bid.nodeSelections) : null,
2583
2579
  ...scope(bid),
@@ -2672,13 +2668,14 @@ var nativeTermFields = {
2672
2668
  frontendNetwork: z10.string().trim().min(1).refine((value) => new TextEncoder().encode(value).length <= 1024, "Network must be at most 1024 UTF-8 bytes.").nullable().optional(),
2673
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(),
2674
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."),
2675
- type: z10.enum(["reserved", "spot", "on-demand"]).nullable().optional(),
2671
+ type: z10.enum(["reserved", "spot"]).nullable().optional(),
2676
2672
  minDurationHours: z10.coerce.number().nonnegative(),
2677
2673
  maxDurationHours: z10.coerce.number().nonnegative(),
2678
2674
  pricePerGpuHourMicroUsd: z10.coerce.number().int().positive().describe("Micro-USD per unit-hour: per GPU, or per vCPU on CPU capacity."),
2679
2675
  downPaymentCents: z10.coerce.number().int().nonnegative().nullable().optional(),
2680
2676
  renewable: flag,
2681
- preemptNoticeSeconds: z10.coerce.number().int().nonnegative().optional()
2677
+ preemptNoticeSeconds: z10.coerce.number().int().nonnegative().optional(),
2678
+ 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.")
2682
2679
  };
2683
2680
  var nativeTermInput = z10.object(nativeTermFields).strict();
2684
2681
  function jsonArray(item) {
@@ -2712,9 +2709,8 @@ var nativeListingCreateInput = z10.object({
2712
2709
  location: listingLocation,
2713
2710
  provisioningType: z10.enum(["bare-metal", "virtual-machine"]),
2714
2711
  state: z10.enum(["draft", "available"]),
2715
- availableAt: z10.iso.datetime({ offset: true }).nullable().optional().describe("Primary capacity takes availableAt and availableUntil, or daysToRfs, not both."),
2712
+ availableAt: z10.iso.datetime({ offset: true }).nullable().optional().describe("Primary capacity takes both availableAt and availableUntil, or neither."),
2716
2713
  availableUntil: z10.iso.datetime({ offset: true }).nullable().optional(),
2717
- daysToRfs: z10.coerce.number().int().nonnegative().optional().describe("Days until ready for service; 0 when ready now. Required unless both dates are set."),
2718
2714
  cpu: z10.string().optional(),
2719
2715
  ram: z10.string().optional(),
2720
2716
  dataStorage: z10.string().optional().describe("Data storage per node."),
@@ -2772,7 +2768,6 @@ var nativeListingUpdateFields = {
2772
2768
  provisioningType: z10.enum(["bare-metal", "virtual-machine"]).optional(),
2773
2769
  availableAt: z10.iso.datetime({ offset: true }).optional(),
2774
2770
  availableUntil: z10.iso.datetime({ offset: true }).nullable().optional(),
2775
- daysToRfs: z10.coerce.number().int().nonnegative().optional(),
2776
2771
  cpu: z10.string().optional(),
2777
2772
  ram: z10.string().optional(),
2778
2773
  dataStorage: z10.string().optional(),
@@ -2800,12 +2795,12 @@ var adminCapacityOffersCreateCapability = defineCapability({
2800
2795
  id: "listing.create",
2801
2796
  domain: "listings",
2802
2797
  roles: ["admin"],
2803
- description: "Create native capacity with an organization, a facilityId or a location, hardware, availability and advertised terms. A location is any state, city, address, or catalog region (us-west-3); Ornn places it in a catalog region and uses the organization's facility there. Primary capacity needs daysToRfs (0 when ready now) or both availableAt and availableUntil. nodeIds attach nodes at creation. Returns {listing, terms}. Requires an idempotencyKey reused on retries and confirm: true.",
2798
+ description: "Create native capacity with an organization, a facilityId or a location, hardware, availability and advertised terms. A location is any state, city, address, or catalog region (us-west-3); Ornn places it in a catalog region and uses the organization's facility there. Primary capacity takes both availableAt and availableUntil, or neither. A renewable Reserved term's horizon is the hours it can be held ahead of now and its stop notice. nodeIds attach nodes at creation. Returns {listing, terms}. Requires an idempotencyKey reused on retries and confirm: true.",
2804
2799
  mutation: "preview-confirm",
2805
2800
  input: nativeListingCreateInput,
2806
2801
  cli: {
2807
2802
  command: ["admin", "capacity-offers", "create"],
2808
- vnext: adminHelp("Create native capacity and its advertised financial terms.", "ornn admin capacity-offers create --gpu-slug GPU|cpu (--gpus-per-node COUNT | --cores-per-node COUNT) (--facility-id UUID | --location PLACE) --provisioning-type bare-metal|virtual-machine --state draft|available --terms JSON --idempotency-key KEY (--days-to-rfs DAYS | --available-at TIME --available-until TIME) [--capacity-node-count COUNT] [--node-ids JSON] [--organization-id UUID]", "Requires an eligible human terminal; --location also needs --organization-id; reuse --idempotency-key on retries.", "Review the native parent fields and each financial term before default-no consent.")
2803
+ vnext: adminHelp("Create native capacity and its advertised financial terms.", "ornn admin capacity-offers create --gpu-slug GPU|cpu (--gpus-per-node COUNT | --cores-per-node COUNT) (--facility-id UUID | --location PLACE) --provisioning-type bare-metal|virtual-machine --state draft|available --terms JSON --idempotency-key KEY [--available-at TIME --available-until TIME] [--capacity-node-count COUNT] [--node-ids JSON] [--organization-id UUID]", "Requires an eligible human terminal; --location also needs --organization-id; reuse --idempotency-key on retries.", "Review the native parent fields and each financial term before default-no consent.")
2809
2804
  },
2810
2805
  execute: async (ctx, input) => {
2811
2806
  const { confirm: _confirm, idempotencyKey, location, ...body2 } = nativeListingCreateInput.parse(input);
@@ -2916,7 +2911,7 @@ function help(outcome, human, automation, related, order, acceptedReferences = [
2916
2911
  var pageLimit = z12.coerce.number().int().min(1).max(200).optional();
2917
2912
  var listingsListInput = z12.object({
2918
2913
  $positionals: positionals,
2919
- kind: z12.enum(["primary", "secondary", "on_demand"]).optional(),
2914
+ kind: z12.enum(["primary", "secondary"]).optional(),
2920
2915
  state: z12.enum(["draft", "available", "held", "sold", "delisted"]).optional(),
2921
2916
  sourceReservationId: z12.string().uuid().optional(),
2922
2917
  sourceListingId: z12.string().uuid().optional(),
@@ -2932,7 +2927,7 @@ var listingsListCapability = defineCapability({
2932
2927
  input: listingsListInput,
2933
2928
  cli: {
2934
2929
  command: ["capacity-offers", "list"],
2935
- vnext: help("List capacity parents with bounded pagination; read their financial terms separately.", "ornn capacity-offers list [--kind primary|secondary|on_demand] [--source-reservation-id <id>] [--limit <1-100>] [--cursor <opaque>]", "ornn capacity-offers list --limit 50 --format json", ["capacity-offers show", "capacity-offers terms", "capacity-offers availability"], 20, ["opaque page cursor"])
2930
+ vnext: help("List capacity parents with bounded pagination; read their financial terms separately.", "ornn capacity-offers list [--kind primary|secondary] [--source-reservation-id <id>] [--limit <1-100>] [--cursor <opaque>]", "ornn capacity-offers list --limit 50 --format json", ["capacity-offers show", "capacity-offers terms", "capacity-offers availability"], 20, ["opaque page cursor"])
2936
2931
  },
2937
2932
  execute: async (ctx, input) => {
2938
2933
  const parsed = listingsListInput.parse(input ?? {});
@@ -3057,7 +3052,7 @@ var listingUpdateCapability = defineCapability({
3057
3052
  cli: {
3058
3053
  command: ["admin", "capacity-offers", "update"],
3059
3054
  vnext: {
3060
- ...help("Edit one advertised financial term as staff.", "ornn admin capacity-offers update --listing-id UUID --listing-terms-id UUID --min-duration-hours HOURS --max-duration-hours HOURS --price-per-gpu-hour-micro-usd RATE --renewable true|false --idempotency-key KEY [--type reserved|spot|on-demand] [--down-payment-cents CENTS]", "Requires an eligible human terminal; reuse --idempotency-key on retries.", ["capacity-offers terms"], 25),
3055
+ ...help("Edit one advertised financial term as staff.", "ornn admin capacity-offers update --listing-id UUID --listing-terms-id UUID --min-duration-hours HOURS --max-duration-hours HOURS --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),
3061
3056
  audience: "admin"
3062
3057
  }
3063
3058
  },
@@ -3079,7 +3074,7 @@ var listingDelistCapability = defineCapability({
3079
3074
  id: "listings.delist",
3080
3075
  domain: "listings",
3081
3076
  roles: ["user"],
3082
- description: "Delist a listing you own. Its unsold time leaves the market, its spot asks are cancelled and running spot reservations on it end. Windows already bought stay sold..",
3077
+ description: "Delist a listing you own. Its unsold time leaves the market, its Preemptible asks are cancelled and running Preemptible reservations on it end. Windows already bought stay sold..",
3083
3078
  mutation: "preview-confirm",
3084
3079
  input: listingDelistInput,
3085
3080
  cli: {
@@ -3092,7 +3087,7 @@ var listingDelistCapability = defineCapability({
3092
3087
  { label: "Listing", value: parsed.listingId },
3093
3088
  {
3094
3089
  label: "Consequence",
3095
- value: "Unsold time and spot asks leave the market; running spot reservations on it end."
3090
+ value: "Unsold time and Preemptible asks leave the market; running Preemptible reservations on it end."
3096
3091
  }
3097
3092
  ], { listingId: parsed.listingId });
3098
3093
  if (gate)
@@ -3119,12 +3114,12 @@ var reservationsListCapability = defineCapability({
3119
3114
  id: "reservations.list",
3120
3115
  domain: "reservations",
3121
3116
  roles: ["user"],
3122
- description: "List this organization's reservations, schedule and spot alike (a running spot reservation has no end time). With listingId, list the trades on a listing you own. When nextCursor is present, pass it back as cursor for the next page.",
3117
+ description: "List this organization's reservations, schedule and Preemptible alike (a running Preemptible reservation has no end time). With listingId, list the trades on a listing you own. When nextCursor is present, pass it back as cursor for the next page.",
3123
3118
  mutation: "read",
3124
3119
  input: reservationsListInput,
3125
3120
  cli: {
3126
3121
  command: ["reservations", "list"],
3127
- vnext: help("List your organization's schedule and spot reservations.", "ornn reservations list [--kind schedule|spot] [--status <status>] [--listing-id <id>] [--limit <1-200>] [--cursor <opaque>]", "ornn reservations list --format json", ["reservations show", "capacity-offers relist"], 27, ["opaque page cursor"])
3122
+ vnext: help("List your organization's schedule and Preemptible reservations.", "ornn reservations list [--kind schedule|spot] [--status <status>] [--listing-id <id>] [--limit <1-200>] [--cursor <opaque>]", "ornn reservations list --format json", ["reservations show", "capacity-offers relist"], 27, ["opaque page cursor"])
3128
3123
  },
3129
3124
  execute: async (ctx, input) => {
3130
3125
  const parsed = reservationsListInput.parse(input ?? {});
@@ -3354,7 +3349,6 @@ function projectCatalogTerms(terms, kind) {
3354
3349
  }
3355
3350
 
3356
3351
  // ../../packages/capabilities/dist/capabilities/markets.js
3357
- var saleType = z13.enum(["spot", "on-demand"]).optional().describe("spot (the default) yields to scheduled bookings; on-demand runs until stopped or the listing ends.");
3358
3352
  var region = z13.string().min(1).optional().describe("A region slug, for example us-east-11. Omit for every region.");
3359
3353
  var nodes = z13.coerce.number().int().min(1).describe("Nodes to buy, each the GPUs (or vCPUs on the cpu book) of one whole machine.");
3360
3354
  var bookSlug = z13.string().min(1).describe('Catalog GPU slug, for example nvidia_h100_sxm, or "cpu" for CPU capacity sold per vCPU-hour.');
@@ -3374,19 +3368,18 @@ function help2(outcome, human, automation, related, order, acceptedReferences =
3374
3368
  var marketBooksInput = z13.object({
3375
3369
  $positionals: positionals,
3376
3370
  gpuSlug: z13.string().min(1).optional().describe('Only this catalog GPU slug, or "cpu".'),
3377
- saleType,
3378
3371
  region: z13.string().min(1).optional().describe("Only this region slug, or any for the books of bids in any region.")
3379
3372
  });
3380
3373
  var marketBooksCapability = defineCapability({
3381
3374
  id: "market.books",
3382
3375
  domain: "markets",
3383
3376
  roles: ["user"],
3384
- description: "List the order books, one per GPU type (and the cpu book for CPU capacity), sale type (Spot or On-demand) and region, with the best bid and ask in micro-USD per GPU-hour (per vCPU-hour on the cpu book).",
3377
+ description: "List the order books, one per GPU type (and the cpu book for CPU capacity), and region, with the best bid and ask in micro-USD per GPU-hour (per vCPU-hour on the cpu book).",
3385
3378
  mutation: "read",
3386
3379
  input: marketBooksInput,
3387
3380
  cli: {
3388
3381
  command: ["market", "books"],
3389
- vnext: help2("List order books by GPU type, sale type and region with their best bid and ask.", "ornn market books [--gpu-slug <slug>] [--sale-type spot|on-demand] [--region <slug>]", "ornn market books --sale-type on-demand --format json", ["market book", "market quote", "market bid"], 31)
3382
+ vnext: help2("List order books by GPU type and region with their best bid and ask.", "ornn market books [--gpu-slug <slug>] [--region <slug>]", "ornn market books --format json", ["market book", "market quote", "market bid"], 31)
3390
3383
  },
3391
3384
  execute: async (ctx, input) => {
3392
3385
  const parsed = marketBooksInput.parse(input);
@@ -3396,19 +3389,18 @@ var marketBooksCapability = defineCapability({
3396
3389
  var marketBookInput = z13.object({
3397
3390
  $positionals: positionals,
3398
3391
  gpuSlug: bookSlug,
3399
- saleType,
3400
3392
  region
3401
3393
  });
3402
3394
  var marketBookCapability = defineCapability({
3403
3395
  id: "market.book",
3404
3396
  domain: "markets",
3405
3397
  roles: ["user"],
3406
- description: "Show one GPU type's depth for a sale type, in one region or across all of them: nodes and order counts at each bid and ask price level (ask levels also count their GPUs, or vCPUs on the cpu book).",
3398
+ description: "Show one GPU type's depth, in one region or across all of them: nodes and order counts at each bid and ask price level (ask levels also count their GPUs, or vCPUs on the cpu book).",
3407
3399
  mutation: "read",
3408
3400
  input: marketBookInput,
3409
3401
  cli: {
3410
3402
  command: ["market", "book"],
3411
- vnext: help2("Show bid and ask depth for one GPU type, sale type and region.", "ornn market book --gpu-slug <slug> [--sale-type spot|on-demand] [--region <slug>]", "ornn market book --gpu-slug <slug> --region us-east-11 --format json", ["market books", "market trades", "market quote"], 32, ["catalog GPU slug", "region slug"])
3403
+ vnext: help2("Show bid and ask depth for one GPU type and region.", "ornn market book --gpu-slug <slug> [--region <slug>]", "ornn market book --gpu-slug <slug> --region us-east-11 --format json", ["market books", "market trades", "market quote"], 32, ["catalog GPU slug", "region slug"])
3412
3404
  },
3413
3405
  execute: async (ctx, input) => {
3414
3406
  const parsed = marketBookInput.parse(input);
@@ -3419,12 +3411,12 @@ var marketTradesCapability = defineCapability({
3419
3411
  id: "market.trades",
3420
3412
  domain: "markets",
3421
3413
  roles: ["user"],
3422
- description: "List recent trades for one GPU type and sale type, in one region or all: price, nodes, GPUs (vCPUs on the cpu book), region and time, with no identities.",
3414
+ description: "List recent trades for one GPU type, in one region or all: price, nodes, GPUs (vCPUs on the cpu book), region and time, with no identities.",
3423
3415
  mutation: "read",
3424
3416
  input: marketBookInput,
3425
3417
  cli: {
3426
3418
  command: ["market", "trades"],
3427
- vnext: help2("List recent fills for one GPU type, sale type and region.", "ornn market trades --gpu-slug <slug> [--sale-type spot|on-demand] [--region <slug>]", "ornn market trades --gpu-slug <slug> --format json", ["market book"], 33, ["catalog GPU slug", "region slug"])
3419
+ vnext: help2("List recent fills for one GPU type and region.", "ornn market trades --gpu-slug <slug> [--region <slug>]", "ornn market trades --gpu-slug <slug> --format json", ["market book"], 33, ["catalog GPU slug", "region slug"])
3428
3420
  },
3429
3421
  execute: async (ctx, input) => {
3430
3422
  const parsed = marketBookInput.parse(input);
@@ -3434,7 +3426,6 @@ var marketTradesCapability = defineCapability({
3434
3426
  var marketQuoteInput = z13.object({
3435
3427
  $positionals: positionals,
3436
3428
  gpuSlug: bookSlug,
3437
- saleType,
3438
3429
  region: z13.string().min(1).optional().describe("A region with an order book (see market books). Omit for any region."),
3439
3430
  nodes
3440
3431
  });
@@ -3447,7 +3438,7 @@ var marketQuoteCapability = defineCapability({
3447
3438
  input: marketQuoteInput,
3448
3439
  cli: {
3449
3440
  command: ["market", "quote"],
3450
- vnext: help2("Preview which nodes a bid would take now and what each costs.", "ornn market quote --gpu-slug <slug> --nodes <n> [--sale-type spot|on-demand] [--region <slug>]", "ornn market quote --gpu-slug <slug> --nodes 2 --format json", ["market book", "market bid"], 34, ["catalog GPU slug", "region slug"])
3441
+ vnext: help2("Preview which nodes a bid would take now and what each costs.", "ornn market quote --gpu-slug <slug> --nodes <n> [--region <slug>]", "ornn market quote --gpu-slug <slug> --nodes 2 --format json", ["market book", "market bid"], 34, ["catalog GPU slug", "region slug"])
3451
3442
  },
3452
3443
  execute: async (ctx, input) => {
3453
3444
  const parsed = marketQuoteInput.parse(input);
@@ -3457,7 +3448,6 @@ var marketQuoteCapability = defineCapability({
3457
3448
  var marketBidInput = z13.object({
3458
3449
  $positionals: positionals,
3459
3450
  gpuSlug: bookSlug,
3460
- saleType,
3461
3451
  region: z13.string().min(1).optional().describe("A region with an order book (see market books), for example us-east-11. Omit to fill in any region."),
3462
3452
  nodes,
3463
3453
  diskId: z13.string().uuid().optional().describe("The disk every VM boots. Omit to boot your newest disk, else Ornn's newest."),
@@ -3468,18 +3458,17 @@ var marketBidCapability = defineCapability({
3468
3458
  id: "market.bid",
3469
3459
  domain: "markets",
3470
3460
  roles: ["user"],
3471
- description: "Buy nodes at market, each the GPUs (or vCPUs on the cpu book) of one whole machine, as Spot (the default; a scheduled booking that needs the GPUs can stop it) or On-demand (runs until stopped or the listing ends), in one region or any. The bid takes the cheapest nodes for sale now and cancels the rest. What one listing sells becomes a running reservation (a fill), prepaid hourly from Ornn credits first and then the saved card. Book prices are what you pay per GPU-hour, or per vCPU-hour on the cpu book.",
3461
+ description: "Buy nodes at market, each the GPUs (or vCPUs on the cpu book) of one whole machine, as Preemptible capacity that can yield to a scheduled reservation, in one region or any. The bid takes the cheapest nodes for sale now and cancels the rest. What one listing sells becomes a running reservation (a fill), prepaid hourly from Ornn credits first and then the saved card. Book prices are what you pay per GPU-hour, or per vCPU-hour on the cpu book.",
3472
3462
  mutation: "preview-confirm",
3473
3463
  input: marketBidInput,
3474
3464
  cli: {
3475
3465
  command: ["market", "bid"],
3476
- vnext: help2("Buy nodes at market.", "ornn market bid --gpu-slug <slug> --nodes <n> [--sale-type spot|on-demand] [--region <slug>] [--disk-id <id>]", "ornn market bid --gpu-slug <slug> --nodes 2 --format json", ["market quote", "market orders", "market fills", "market cancel"], 35, ["catalog GPU slug"])
3466
+ vnext: help2("Buy nodes at market.", "ornn market bid --gpu-slug <slug> --nodes <n> [--region <slug>] [--disk-id <id>]", "ornn market bid --gpu-slug <slug> --nodes 2 --format json", ["market quote", "market orders", "market fills", "market cancel"], 35, ["catalog GPU slug"])
3477
3467
  },
3478
3468
  execute: async (ctx, input) => {
3479
3469
  const parsed = marketBidInput.parse(input);
3480
3470
  const body2 = {
3481
3471
  gpuSlug: parsed.gpuSlug,
3482
- ...parsed.saleType ? { saleType: parsed.saleType } : {},
3483
3472
  ...parsed.region ? { region: parsed.region } : {},
3484
3473
  nodes: parsed.nodes,
3485
3474
  orderType: "market",
@@ -3488,7 +3477,6 @@ var marketBidCapability = defineCapability({
3488
3477
  const hardware = ctx.cli?.interaction ? await loadHardwareCatalog(ctx.fetch).catch(() => null) : null;
3489
3478
  const gate = await consent(ctx, "market.bid", "Place bid", [
3490
3479
  { label: "Hardware", value: gpuDisplay(hardware?.terms ?? [], parsed.gpuSlug) },
3491
- { label: "Sale type", value: parsed.saleType === "on-demand" ? "On-demand" : "Spot" },
3492
3480
  { label: "Location", value: parsed.region ?? "Any location" },
3493
3481
  { label: "Nodes", value: String(parsed.nodes) },
3494
3482
  { label: "Order", value: "Market: the cheapest nodes for sale now" }
@@ -3612,7 +3600,7 @@ var offersListCapability = defineCapability({
3612
3600
  var offerPostInput = z13.object({
3613
3601
  $positionals: positionals,
3614
3602
  listingId: z13.string().uuid().describe("A primary listing."),
3615
- listingTermId: z13.string().uuid().describe("The listingTermsId of a non-spot term of that listing, from listings.terms."),
3603
+ listingTermId: z13.string().uuid().describe("The listingTermsId of a non-Preemptible term of that listing, from listings.terms."),
3616
3604
  durationSeconds: z13.coerce.number().int().positive().optional().describe("How long the reservation runs, within the term's minimum and maximum duration. Omit only when they are equal, or when the term has none (the rest of the listing)."),
3617
3605
  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."),
3618
3606
  downPaymentCents: z13.coerce.number().int().min(0).optional().describe("The down payment you offer, in cents."),