@ornncompute/cli 1.0.330 → 1.0.331
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 +1 -1
- package/package.json +1 -1
- package/vendor/capabilities/cli.js +15 -0
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ still requires a user session. See the [customer guide](../../docs-site/api-keys
|
|
|
59
59
|
|
|
60
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
|
-
`ornn admin inference` exposes staff listing, request, and charge operations after
|
|
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
|
|
|
65
65
|
See the [Inference guide](https://docs.ornn.com/inference#cli-and-mcp) for customer
|
package/package.json
CHANGED
|
@@ -106,6 +106,12 @@ function listProviderInferenceRequests(request, query3 = {}, signal) {
|
|
|
106
106
|
signal
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
+
function renameStaffInferenceModel(request, modelId, body2) {
|
|
110
|
+
return request(`/v1/staff/inference/models/${encodeURIComponent(modelId)}`, {
|
|
111
|
+
method: "PATCH",
|
|
112
|
+
body: body2
|
|
113
|
+
});
|
|
114
|
+
}
|
|
109
115
|
function listStaffInferenceListings(request, query3 = {}, signal) {
|
|
110
116
|
return request(`/v1/staff/inference/listings${queryString(query3)}`, {
|
|
111
117
|
method: "GET",
|
|
@@ -481,6 +487,15 @@ var inferenceCapabilities = [
|
|
|
481
487
|
execute: (ctx, { listing_id, body: body2 }) => staff ? updateStaffInferenceListing(ctx.fetch, listing_id, body2) : updateProviderInferenceListing(ctx.fetch, listing_id, body2)
|
|
482
488
|
})
|
|
483
489
|
]),
|
|
490
|
+
operation({
|
|
491
|
+
command: ["models", "rename"],
|
|
492
|
+
staff: true,
|
|
493
|
+
write: true,
|
|
494
|
+
description: "Rename a catalog model across all its listings. Use the model_id from a managed listing.",
|
|
495
|
+
input: z2.strictObject({ model_id: z2.uuid(), public_model_id: text }),
|
|
496
|
+
usage: "--model-id UUID --public-model-id PUBLISHER/NAME",
|
|
497
|
+
execute: (ctx, { model_id, public_model_id }) => renameStaffInferenceModel(ctx.fetch, model_id, { public_model_id })
|
|
498
|
+
}),
|
|
484
499
|
operation({
|
|
485
500
|
command: ["requests", "list"],
|
|
486
501
|
staff: true,
|