@asteroidai/cli 1.9.159 → 1.9.160

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/dist/asteroid.js CHANGED
@@ -249,6 +249,127 @@ var COMMANDS = [
249
249
  credentialOrganization: false
250
250
  }
251
251
  },
252
+ {
253
+ command: "billing balance",
254
+ tool: "billing_info_get",
255
+ title: "Get credit balance",
256
+ description: "Get the organization's credit balance broken down by pool (plan credits, top-ups, free credits), its contracts, the current period and the active contract's rates.",
257
+ method: "GET",
258
+ path: "/billing/v2/billing-info",
259
+ args: [],
260
+ query: [],
261
+ binary: false,
262
+ readOnly: true,
263
+ destructive: false
264
+ },
265
+ {
266
+ command: "billing capabilities",
267
+ tool: "billing_capabilities_get",
268
+ title: "Get plan capabilities",
269
+ description: "Get what the organization's plan and granted exceptions allow, such as Windows environments or concurrency limits, and for each missing one the cheapest tier that adds it. Use it to explain why a feature is locked.",
270
+ method: "GET",
271
+ path: "/billing/v2/capabilities",
272
+ args: [],
273
+ query: [],
274
+ binary: false,
275
+ readOnly: true,
276
+ destructive: false
277
+ },
278
+ {
279
+ command: "billing executions",
280
+ tool: "billing_execution_usage_list",
281
+ title: "List execution usage",
282
+ description: "List raw usage per execution in the organization, newest first: LLM tokens, environment seconds and proxy bytes. Pass `executionId` for one execution. Page with `page` and `pageSize`. Costs are not returned: price usage with the rates from billing_info_get.",
283
+ method: "GET",
284
+ path: "/billing/v2/execution-usage",
285
+ args: [],
286
+ query: [
287
+ {
288
+ name: "executionId",
289
+ flag: "execution-id",
290
+ type: "string",
291
+ required: false,
292
+ description: "Only the row for this execution."
293
+ },
294
+ {
295
+ name: "pageSize",
296
+ flag: "page-size",
297
+ type: "integer",
298
+ required: false
299
+ },
300
+ {
301
+ name: "page",
302
+ flag: "page",
303
+ type: "integer",
304
+ required: false
305
+ }
306
+ ],
307
+ binary: false,
308
+ readOnly: true,
309
+ destructive: false
310
+ },
311
+ {
312
+ command: "billing invoices",
313
+ tool: "billing_invoices_list",
314
+ title: "List invoices",
315
+ description: "List the organization's finalized invoices, newest first, with amount, status, period and links to the hosted invoice page and PDF where the payment provider has them.",
316
+ method: "GET",
317
+ path: "/billing/v2/invoices",
318
+ args: [],
319
+ query: [],
320
+ binary: false,
321
+ readOnly: true,
322
+ destructive: false
323
+ },
324
+ {
325
+ command: "billing subscription",
326
+ tool: "billing_subscription_get",
327
+ title: "Get subscription",
328
+ description: "Get the organization's active subscription: plan name, monthly fee, start date, and any pending downgrade or cancellation (`pendingPlanName`, `finishedAt`). Plan changes and card updates happen in the platform app's billing page.",
329
+ method: "GET",
330
+ path: "/billing/v2/subscription",
331
+ args: [],
332
+ query: [],
333
+ binary: false,
334
+ readOnly: true,
335
+ destructive: false
336
+ },
337
+ {
338
+ command: "billing usage",
339
+ tool: "billing_usage_get",
340
+ title: "Get usage over time",
341
+ description: "Get the organization's usage between `startingOn` (inclusive) and `endingBefore` (exclusive), in `hour` or `day` buckets: LLM tokens, environment time and proxy bytes. For usage per execution, use billing_execution_usage_list. Costs are not returned: price usage with the rates from billing_info_get.",
342
+ method: "GET",
343
+ path: "/billing/v2/usage-buckets",
344
+ args: [],
345
+ query: [
346
+ {
347
+ name: "startingOn",
348
+ flag: "starting-on",
349
+ type: "string",
350
+ required: true,
351
+ description: "Inclusive start of the time range (RFC3339)."
352
+ },
353
+ {
354
+ name: "endingBefore",
355
+ flag: "ending-before",
356
+ type: "string",
357
+ required: true,
358
+ description: "Exclusive end of the time range (RFC3339)."
359
+ },
360
+ {
361
+ name: "windowSize",
362
+ flag: "window-size",
363
+ type: "string",
364
+ required: true,
365
+ description: "Window size for Metronome usage time series.",
366
+ enum: ["hour", "day"]
367
+ }
368
+ ],
369
+ binary: false,
370
+ readOnly: true,
371
+ destructive: false
372
+ },
252
373
  {
253
374
  command: "catalog get",
254
375
  tool: "catalog_get",
@@ -7567,7 +7688,7 @@ var ApiError = class extends Error {
7567
7688
  status;
7568
7689
  body;
7569
7690
  };
7570
- var VERSION = "1.9.159";
7691
+ var VERSION = "1.9.160";
7571
7692
  function problem(status, body, fallback) {
7572
7693
  if (body && typeof body === "object") {
7573
7694
  const record2 = body;
package/dist/core.js CHANGED
@@ -270,6 +270,127 @@ var COMMANDS = [
270
270
  credentialOrganization: false
271
271
  }
272
272
  },
273
+ {
274
+ command: "billing balance",
275
+ tool: "billing_info_get",
276
+ title: "Get credit balance",
277
+ description: "Get the organization's credit balance broken down by pool (plan credits, top-ups, free credits), its contracts, the current period and the active contract's rates.",
278
+ method: "GET",
279
+ path: "/billing/v2/billing-info",
280
+ args: [],
281
+ query: [],
282
+ binary: false,
283
+ readOnly: true,
284
+ destructive: false
285
+ },
286
+ {
287
+ command: "billing capabilities",
288
+ tool: "billing_capabilities_get",
289
+ title: "Get plan capabilities",
290
+ description: "Get what the organization's plan and granted exceptions allow, such as Windows environments or concurrency limits, and for each missing one the cheapest tier that adds it. Use it to explain why a feature is locked.",
291
+ method: "GET",
292
+ path: "/billing/v2/capabilities",
293
+ args: [],
294
+ query: [],
295
+ binary: false,
296
+ readOnly: true,
297
+ destructive: false
298
+ },
299
+ {
300
+ command: "billing executions",
301
+ tool: "billing_execution_usage_list",
302
+ title: "List execution usage",
303
+ description: "List raw usage per execution in the organization, newest first: LLM tokens, environment seconds and proxy bytes. Pass `executionId` for one execution. Page with `page` and `pageSize`. Costs are not returned: price usage with the rates from billing_info_get.",
304
+ method: "GET",
305
+ path: "/billing/v2/execution-usage",
306
+ args: [],
307
+ query: [
308
+ {
309
+ name: "executionId",
310
+ flag: "execution-id",
311
+ type: "string",
312
+ required: false,
313
+ description: "Only the row for this execution."
314
+ },
315
+ {
316
+ name: "pageSize",
317
+ flag: "page-size",
318
+ type: "integer",
319
+ required: false
320
+ },
321
+ {
322
+ name: "page",
323
+ flag: "page",
324
+ type: "integer",
325
+ required: false
326
+ }
327
+ ],
328
+ binary: false,
329
+ readOnly: true,
330
+ destructive: false
331
+ },
332
+ {
333
+ command: "billing invoices",
334
+ tool: "billing_invoices_list",
335
+ title: "List invoices",
336
+ description: "List the organization's finalized invoices, newest first, with amount, status, period and links to the hosted invoice page and PDF where the payment provider has them.",
337
+ method: "GET",
338
+ path: "/billing/v2/invoices",
339
+ args: [],
340
+ query: [],
341
+ binary: false,
342
+ readOnly: true,
343
+ destructive: false
344
+ },
345
+ {
346
+ command: "billing subscription",
347
+ tool: "billing_subscription_get",
348
+ title: "Get subscription",
349
+ description: "Get the organization's active subscription: plan name, monthly fee, start date, and any pending downgrade or cancellation (`pendingPlanName`, `finishedAt`). Plan changes and card updates happen in the platform app's billing page.",
350
+ method: "GET",
351
+ path: "/billing/v2/subscription",
352
+ args: [],
353
+ query: [],
354
+ binary: false,
355
+ readOnly: true,
356
+ destructive: false
357
+ },
358
+ {
359
+ command: "billing usage",
360
+ tool: "billing_usage_get",
361
+ title: "Get usage over time",
362
+ description: "Get the organization's usage between `startingOn` (inclusive) and `endingBefore` (exclusive), in `hour` or `day` buckets: LLM tokens, environment time and proxy bytes. For usage per execution, use billing_execution_usage_list. Costs are not returned: price usage with the rates from billing_info_get.",
363
+ method: "GET",
364
+ path: "/billing/v2/usage-buckets",
365
+ args: [],
366
+ query: [
367
+ {
368
+ name: "startingOn",
369
+ flag: "starting-on",
370
+ type: "string",
371
+ required: true,
372
+ description: "Inclusive start of the time range (RFC3339)."
373
+ },
374
+ {
375
+ name: "endingBefore",
376
+ flag: "ending-before",
377
+ type: "string",
378
+ required: true,
379
+ description: "Exclusive end of the time range (RFC3339)."
380
+ },
381
+ {
382
+ name: "windowSize",
383
+ flag: "window-size",
384
+ type: "string",
385
+ required: true,
386
+ description: "Window size for Metronome usage time series.",
387
+ enum: ["hour", "day"]
388
+ }
389
+ ],
390
+ binary: false,
391
+ readOnly: true,
392
+ destructive: false
393
+ },
273
394
  {
274
395
  command: "catalog get",
275
396
  tool: "catalog_get",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.159",
3
+ "version": "1.9.160",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",