@ornncompute/cli 1.0.322 → 1.0.323

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.322",
3
+ "version": "1.0.323",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -175,6 +175,7 @@ function defineStaffMcpCapability(spec) {
175
175
 
176
176
  // ../../packages/capabilities/dist/capabilities/inference.js
177
177
  var text = z2.string().min(1);
178
+ var apiType = z2.enum(inferenceApiTypes).optional();
178
179
  var timestamp = z2.iso.datetime({ offset: true });
179
180
  var limit = z2.coerce.number().int().min(1).max(100).optional();
180
181
  var listingId = z2.strictObject({ listing_id: z2.uuid() });
@@ -186,7 +187,7 @@ var rates = {
186
187
  };
187
188
  var createListing = z2.strictObject({
188
189
  public_model_id: text,
189
- api_type: z2.enum(inferenceApiTypes).optional(),
190
+ api_type: apiType,
190
191
  upstream_url: text,
191
192
  upstream_model: text,
192
193
  upstream_credential: z2.string().nullable().optional(),
@@ -214,6 +215,7 @@ var requests = z2.strictObject({
214
215
  });
215
216
  var chargeFields = {
216
217
  public_model_id: text.optional(),
218
+ model_listing_id: z2.uuid().optional(),
217
219
  request_id: z2.uuid().optional(),
218
220
  from: timestamp.optional(),
219
221
  to: timestamp.optional(),
@@ -299,7 +301,7 @@ async function readCharges(ctx, input) {
299
301
  return listInferenceCharges(ctx.fetch, query3);
300
302
  }
301
303
  var requestUsage = "[--request-id UUID] [--public-model-id ID] [--model-listing-id UUID] [--from TIME --to TIME] [--after CURSOR] [--limit 1-100] [--summary usage]";
302
- var chargeUsage = "[--public-model-id ID] [--request-id UUID] [--from TIME --to TIME] [--cursor CURSOR] [--limit 1-500] [--summary daily]";
304
+ var chargeUsage = "[--public-model-id ID] [--model-listing-id UUID] [--request-id UUID] [--from TIME --to TIME] [--cursor CURSOR] [--limit 1-500] [--summary daily]";
303
305
  var inferenceCapabilities = [
304
306
  operation({
305
307
  command: ["models", "list"],
@@ -310,8 +312,11 @@ var inferenceCapabilities = [
310
312
  operation({
311
313
  command: ["listings", "list"],
312
314
  description: "List active inference offers with their API format and token prices.",
313
- input: z2.strictObject({ public_model_id: text.optional() }),
314
- usage: "[--public-model-id ID]",
315
+ input: z2.strictObject({
316
+ public_model_id: text.optional(),
317
+ api_type: apiType
318
+ }),
319
+ usage: `[--public-model-id ID] [--api-type ${inferenceApiTypes.join("|")}]`,
315
320
  execute: (ctx, input) => listInferenceListings(ctx.fetch, input)
316
321
  }),
317
322
  operation({