@ornncompute/cli 1.0.270 → 1.0.271

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.270",
3
+ "version": "1.0.271",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2335,26 +2335,32 @@ function listOrderBooks(request, filter = {}, signal) {
2335
2335
  ...signal ? { signal } : {}
2336
2336
  });
2337
2337
  }
2338
- function getOrderBook(request, gpuSlug, books = {}) {
2339
- return request(`${BASE3}/books/${encodeURIComponent(gpuSlug)}${query2(scope(books))}`, {
2340
- method: "GET"
2341
- });
2338
+ function getOrderBook(request, gpuSlug, books = {}, signal) {
2339
+ return request(`${BASE3}/books/${encodeURIComponent(gpuSlug)}${query2({
2340
+ ...scope(books),
2341
+ minStorageGb: books.minStorageGb?.toString(),
2342
+ networkType: books.networkType,
2343
+ clusterId: books.clusterId
2344
+ })}`, { method: "GET", ...signal ? { signal } : {} });
2342
2345
  }
2343
2346
  function listTrades(request, gpuSlug, books = {}) {
2344
2347
  return request(`${BASE3}/books/${encodeURIComponent(gpuSlug)}/trades${query2(scope(books))}`, {
2345
2348
  method: "GET"
2346
2349
  });
2347
2350
  }
2348
- function quoteBid(request, bid) {
2351
+ function quoteBid(request, bid, signal) {
2349
2352
  return request(`${BASE3}/books/${encodeURIComponent(bid.gpuSlug)}/quote${query2({
2350
2353
  gpus: bid.gpus === void 0 ? null : String(bid.gpus),
2351
2354
  nodes: bid.nodes === void 0 ? null : String(bid.nodes),
2355
+ minStorageGb: bid.minStorageGb === void 0 ? null : String(bid.minStorageGb),
2356
+ networkType: bid.networkType,
2357
+ clusterId: bid.clusterId,
2352
2358
  orderType: bid.orderType,
2353
2359
  pricePerGpuHourMicroUsd: bid.pricePerGpuHourMicroUsd === void 0 ? null : String(bid.pricePerGpuHourMicroUsd),
2354
2360
  nodeSelections: bid.nodeSelections ? JSON.stringify(bid.nodeSelections) : null,
2355
2361
  ...scope(bid),
2356
2362
  organizationId: bid.organizationId
2357
- })}`, { method: "GET" });
2363
+ })}`, { method: "GET", ...signal ? { signal } : {} });
2358
2364
  }
2359
2365
  function placeBid(request, bid, idempotencyKey) {
2360
2366
  return request(`${BASE3}/orders`, body(bid, idempotencyKey));