@ornncompute/cli 1.0.316 → 1.0.318

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,9 +57,9 @@ still requires a user session. See the [customer guide](../../docs-site/api-keys
57
57
 
58
58
  ## Inference
59
59
 
60
- `ornn inference` covers models, completions, decisions, request history/usage, recorded
61
- charges, and provider model management through the shared capability catalog.
62
- `ornn admin inference` exposes staff model, request, and charge operations after
60
+ `ornn inference` covers model and listing discovery, completions, decisions, request history/usage, recorded
61
+ charges, and provider listing management through the shared capability catalog.
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.
64
64
 
65
65
  See the [Inference guide](https://docs.ornn.com/inference#cli-and-mcp) for customer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.316",
3
+ "version": "1.0.318",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,49 +58,49 @@ function listProviderInferenceRequests(request, query3 = {}, signal) {
58
58
  });
59
59
  }
60
60
  function listStaffInferenceListings(request, query3 = {}, signal) {
61
- return request(`/v1/staff/inference/models${queryString(query3)}`, {
61
+ return request(`/v1/staff/inference/listings${queryString(query3)}`, {
62
62
  method: "GET",
63
63
  signal
64
64
  });
65
65
  }
66
66
  function getStaffInferenceListing(request, listingId2, signal) {
67
- return request(`/v1/staff/inference/models/${encodeURIComponent(listingId2)}`, {
67
+ return request(`/v1/staff/inference/listings/${encodeURIComponent(listingId2)}`, {
68
68
  method: "GET",
69
69
  signal
70
70
  });
71
71
  }
72
72
  async function createStaffInferenceListing(request, body2) {
73
- return await request("/v1/staff/inference/models", {
73
+ return await request("/v1/staff/inference/listings", {
74
74
  method: "POST",
75
75
  body: body2
76
76
  });
77
77
  }
78
78
  async function updateStaffInferenceListing(request, listingId2, body2) {
79
- return await request(`/v1/staff/inference/models/${encodeURIComponent(listingId2)}`, {
79
+ return await request(`/v1/staff/inference/listings/${encodeURIComponent(listingId2)}`, {
80
80
  method: "PATCH",
81
81
  body: body2
82
82
  });
83
83
  }
84
84
  function listProviderInferenceListings(request, query3 = {}, signal) {
85
- return request(`/v1/inference/provider/models${queryString(query3)}`, {
85
+ return request(`/v1/inference/provider/listings${queryString(query3)}`, {
86
86
  method: "GET",
87
87
  signal
88
88
  });
89
89
  }
90
90
  function getProviderInferenceListing(request, listingId2, signal) {
91
- return request(`/v1/inference/provider/models/${encodeURIComponent(listingId2)}`, {
91
+ return request(`/v1/inference/provider/listings/${encodeURIComponent(listingId2)}`, {
92
92
  method: "GET",
93
93
  signal
94
94
  });
95
95
  }
96
96
  async function createProviderInferenceListing(request, body2) {
97
- return await request("/v1/inference/provider/models", {
97
+ return await request("/v1/inference/provider/listings", {
98
98
  method: "POST",
99
99
  body: body2
100
100
  });
101
101
  }
102
102
  async function updateProviderInferenceListing(request, listingId2, body2) {
103
- return await request(`/v1/inference/provider/models/${encodeURIComponent(listingId2)}`, {
103
+ return await request(`/v1/inference/provider/listings/${encodeURIComponent(listingId2)}`, {
104
104
  method: "PATCH",
105
105
  body: body2
106
106
  });
@@ -369,25 +369,25 @@ var inferenceCapabilities = [
369
369
  }),
370
370
  ...[false, true].flatMap((staff) => [
371
371
  operation({
372
- command: [...staff ? [] : ["provider"], "models", "list"],
372
+ command: [...staff ? [] : ["provider"], "listings", "list"],
373
373
  staff,
374
- description: staff ? "List inference model listings across providers. Pass next_cursor as after." : "List this provider's inference model listings, including inactive models. Pass next_cursor as after.",
374
+ description: staff ? "List inference listings across providers. Pass next_cursor as after." : "List this provider's inference listings, including inactive listings. Pass next_cursor as after.",
375
375
  input: staff ? page.extend({ provider_organization_id: z2.uuid().optional() }) : page,
376
376
  usage: `[--after CURSOR] [--limit 1-100]${staff ? " [--provider-organization-id UUID]" : ""}`,
377
377
  execute: (ctx, input) => staff ? listStaffInferenceListings(ctx.fetch, input) : listProviderInferenceListings(ctx.fetch, input)
378
378
  }),
379
379
  operation({
380
- command: [...staff ? [] : ["provider"], "models", "show"],
380
+ command: [...staff ? [] : ["provider"], "listings", "show"],
381
381
  staff,
382
- description: "Read an inference model listing by its listing UUID. Upstream credentials are never returned.",
382
+ description: "Read an inference listing by UUID. Upstream credentials are never returned.",
383
383
  input: listingId,
384
384
  usage: "--listing-id UUID",
385
385
  execute: (ctx, { listing_id }) => staff ? getStaffInferenceListing(ctx.fetch, listing_id) : getProviderInferenceListing(ctx.fetch, listing_id)
386
386
  }),
387
387
  operation({
388
- command: [...staff ? [] : ["provider"], "models", "create"],
388
+ command: [...staff ? [] : ["provider"], "listings", "create"],
389
389
  staff,
390
- description: "Create an inference model listing with an upstream endpoint and provider token prices. Prices are decimal USD per million tokens; the optional upstream credential is stored encrypted.",
390
+ description: "Create an inference listing with an upstream endpoint and provider token prices. Prices are decimal USD per million tokens; the optional upstream credential is stored encrypted.",
391
391
  input: z2.strictObject({
392
392
  body: staff ? createListing.extend({ provider_organization_id: z2.uuid() }) : createListing
393
393
  }),
@@ -396,7 +396,7 @@ var inferenceCapabilities = [
396
396
  execute: (ctx, { body: body2 }) => staff ? createStaffInferenceListing(ctx.fetch, body2) : createProviderInferenceListing(ctx.fetch, body2)
397
397
  }),
398
398
  operation({
399
- command: [...staff ? [] : ["provider"], "models", "update"],
399
+ command: [...staff ? [] : ["provider"], "listings", "update"],
400
400
  staff,
401
401
  description: "Update an inference listing's endpoint, token prices, credential, or active flag. Send only changed fields; null clears a nullable value.",
402
402
  input: listingId.extend({