@ornncompute/cli 1.0.331 → 1.0.333

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
@@ -58,7 +58,7 @@ still requires a user session. See the [customer guide](../../docs-site/api-keys
58
58
  ## Inference
59
59
 
60
60
  `ornn inference` covers model discovery, listing search and lookup by UUID, completions, decisions, request history/usage, recorded
61
- charges, and provider listing management through the shared capability catalog.
61
+ charges, and provider catalog reads and listing management through the shared capability catalog.
62
62
  `ornn admin inference` exposes staff model, listing, request, and charge operations after
63
63
  the standard staff preflight. Both use native gateway routes and existing auth.
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.331",
3
+ "version": "1.0.333",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -106,6 +106,24 @@ function listProviderInferenceRequests(request, query3 = {}, signal) {
106
106
  signal
107
107
  });
108
108
  }
109
+ function listProviderInferenceModels(request, signal) {
110
+ return request("/v1/inference/provider/models", {
111
+ method: "GET",
112
+ signal
113
+ });
114
+ }
115
+ function listStaffInferenceModels(request, signal) {
116
+ return request("/v1/staff/inference/models", {
117
+ method: "GET",
118
+ signal
119
+ });
120
+ }
121
+ function createStaffInferenceModel(request, body2) {
122
+ return request("/v1/staff/inference/models", {
123
+ method: "POST",
124
+ body: body2
125
+ });
126
+ }
109
127
  function renameStaffInferenceModel(request, modelId, body2) {
110
128
  return request(`/v1/staff/inference/models/${encodeURIComponent(modelId)}`, {
111
129
  method: "PATCH",
@@ -446,6 +464,13 @@ var inferenceCapabilities = [
446
464
  execute: readCharges
447
465
  }),
448
466
  ...[false, true].flatMap((staff) => [
467
+ operation({
468
+ command: [...staff ? [] : ["provider"], "models", "list"],
469
+ staff,
470
+ description: "List catalog models, including releases without an available listing.",
471
+ input: z2.strictObject({}),
472
+ execute: (ctx) => staff ? listStaffInferenceModels(ctx.fetch) : listProviderInferenceModels(ctx.fetch)
473
+ }),
449
474
  operation({
450
475
  command: [...staff ? [] : ["provider"], "listings", "list"],
451
476
  staff,
@@ -487,11 +512,20 @@ var inferenceCapabilities = [
487
512
  execute: (ctx, { listing_id, body: body2 }) => staff ? updateStaffInferenceListing(ctx.fetch, listing_id, body2) : updateProviderInferenceListing(ctx.fetch, listing_id, body2)
488
513
  })
489
514
  ]),
515
+ operation({
516
+ command: ["models", "create"],
517
+ staff: true,
518
+ write: true,
519
+ description: "Add a publisher/name release to the inference catalog.",
520
+ input: z2.strictObject({ public_model_id: text }),
521
+ usage: "--public-model-id PUBLISHER/NAME",
522
+ execute: (ctx, body2) => createStaffInferenceModel(ctx.fetch, body2)
523
+ }),
490
524
  operation({
491
525
  command: ["models", "rename"],
492
526
  staff: true,
493
527
  write: true,
494
- description: "Rename a catalog model across all its listings. Use the model_id from a managed listing.",
528
+ description: "Rename a catalog model across all its listings. Use its UUID from the staff model catalog.",
495
529
  input: z2.strictObject({ model_id: z2.uuid(), public_model_id: text }),
496
530
  usage: "--model-id UUID --public-model-id PUBLISHER/NAME",
497
531
  execute: (ctx, { model_id, public_model_id }) => renameStaffInferenceModel(ctx.fetch, model_id, { public_model_id })