@ornncompute/cli 1.0.415 → 1.0.417
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 +28 -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 catalog reads and listing management through the shared capability catalog.
|
|
62
|
-
`ornn admin inference` exposes staff model, listing, request, and charge operations after
|
|
62
|
+
`ornn admin inference` exposes staff fee, 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
|
@@ -115,6 +115,15 @@ function listProviderInferenceRequests(request, query3 = {}, signal) {
|
|
|
115
115
|
signal
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
+
function getStaffInferenceFees(request, signal) {
|
|
119
|
+
return request("/v1/staff/inference/fees", {
|
|
120
|
+
method: "GET",
|
|
121
|
+
signal
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function updateStaffInferenceFees(request, body2) {
|
|
125
|
+
return request("/v1/staff/inference/fees", { method: "PUT", body: body2 });
|
|
126
|
+
}
|
|
118
127
|
function listProviderInferenceModels(request, signal) {
|
|
119
128
|
return request("/v1/inference/provider/models", {
|
|
120
129
|
method: "GET",
|
|
@@ -328,6 +337,9 @@ function cliInput(schema) {
|
|
|
328
337
|
}
|
|
329
338
|
if (typeof fields.ids === "string")
|
|
330
339
|
fields.ids = fields.ids.split(",").map((id) => id.trim());
|
|
340
|
+
if (typeof fields.transactionFeePpm === "string" && /^\d+$/.test(fields.transactionFeePpm)) {
|
|
341
|
+
fields.transactionFeePpm = Number(fields.transactionFeePpm);
|
|
342
|
+
}
|
|
331
343
|
if (typeof fields.body === "string") {
|
|
332
344
|
try {
|
|
333
345
|
fields.body = JSON.parse(fields.body);
|
|
@@ -530,6 +542,22 @@ var inferenceCapabilities = [
|
|
|
530
542
|
execute: (ctx, { listing_id, body: body2 }) => staff ? updateStaffInferenceListing(ctx.fetch, listing_id, body2) : updateProviderInferenceListing(ctx.fetch, listing_id, body2)
|
|
531
543
|
})
|
|
532
544
|
]),
|
|
545
|
+
operation({
|
|
546
|
+
command: ["fees", "show"],
|
|
547
|
+
staff: true,
|
|
548
|
+
description: "Read the configured inference fee and its last editor. Returns null until set.",
|
|
549
|
+
input: z2.strictObject({}),
|
|
550
|
+
execute: (ctx) => getStaffInferenceFees(ctx.fetch)
|
|
551
|
+
}),
|
|
552
|
+
operation({
|
|
553
|
+
command: ["fees", "update"],
|
|
554
|
+
staff: true,
|
|
555
|
+
write: true,
|
|
556
|
+
description: "Set the transaction fee for new inference requests in parts per million (10,000 = 1%).",
|
|
557
|
+
input: z2.strictObject({ transaction_fee_ppm: z2.int().min(0).max(1e6) }),
|
|
558
|
+
usage: "--transaction-fee-ppm PPM",
|
|
559
|
+
execute: (ctx, body2) => updateStaffInferenceFees(ctx.fetch, body2)
|
|
560
|
+
}),
|
|
533
561
|
operation({
|
|
534
562
|
command: ["models", "create"],
|
|
535
563
|
staff: true,
|