@ornncompute/cli 1.0.320 → 1.0.322

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
@@ -57,7 +57,7 @@ still requires a user session. See the [customer guide](../../docs-site/api-keys
57
57
 
58
58
  ## Inference
59
59
 
60
- `ornn inference` covers model and listing discovery, completions, decisions, request history/usage, recorded
60
+ `ornn inference` covers model discovery, listing search and lookup by UUID, completions, decisions, request history/usage, recorded
61
61
  charges, and provider listing management through the shared capability catalog.
62
62
  `ornn admin inference` exposes staff listing, request, and charge operations after
63
63
  the standard staff preflight. Both use native gateway routes and existing auth.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.320",
3
+ "version": "1.0.322",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,6 +14,12 @@ function listInferenceListings(request, query3 = {}, signal) {
14
14
  signal
15
15
  });
16
16
  }
17
+ function getInferenceListing(request, listingId2, signal) {
18
+ return request(`/v1/inference/listings/${encodeURIComponent(listingId2)}`, {
19
+ method: "GET",
20
+ signal
21
+ });
22
+ }
17
23
  function postInference(fetcher, path6, body2, listingId2, signal) {
18
24
  return fetcher(path6, {
19
25
  method: "POST",
@@ -190,6 +196,7 @@ var updateListing = createListing.omit({ public_model_id: true }).partial().exte
190
196
  active: z2.boolean().optional()
191
197
  });
192
198
  var requests = z2.strictObject({
199
+ request_id: z2.uuid().optional(),
193
200
  public_model_id: text.optional(),
194
201
  model_listing_id: z2.uuid().optional(),
195
202
  from: timestamp.optional(),
@@ -291,7 +298,7 @@ async function readCharges(ctx, input) {
291
298
  }
292
299
  return listInferenceCharges(ctx.fetch, query3);
293
300
  }
294
- var requestUsage = "[--public-model-id ID] [--model-listing-id UUID] [--from TIME --to TIME] [--after CURSOR] [--limit 1-100] [--summary usage]";
301
+ var requestUsage = "[--request-id UUID] [--public-model-id ID] [--model-listing-id UUID] [--from TIME --to TIME] [--after CURSOR] [--limit 1-100] [--summary usage]";
295
302
  var chargeUsage = "[--public-model-id ID] [--request-id UUID] [--from TIME --to TIME] [--cursor CURSOR] [--limit 1-500] [--summary daily]";
296
303
  var inferenceCapabilities = [
297
304
  operation({
@@ -307,6 +314,13 @@ var inferenceCapabilities = [
307
314
  usage: "[--public-model-id ID]",
308
315
  execute: (ctx, input) => listInferenceListings(ctx.fetch, input)
309
316
  }),
317
+ operation({
318
+ command: ["listings", "show"],
319
+ description: "Read an available inference offer and its current token prices by listing UUID.",
320
+ input: listingId,
321
+ usage: "--listing-id UUID",
322
+ execute: (ctx, { listing_id }) => getInferenceListing(ctx.fetch, listing_id)
323
+ }),
310
324
  operation({
311
325
  command: ["completions", "create"],
312
326
  description: "Call an inference model using a Chat Completions body. Generation parameters pass through unchanged. Spends the organization's credits; returns the upstream JSON response. MCP uses non-streaming responses.",