@soat/cli 0.37.1 → 0.38.0
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/index.mjs +15 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import * as os from "node:os";
|
|
|
13
13
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
|
-
var version = "0.
|
|
16
|
+
var version = "0.38.0";
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -7795,11 +7795,11 @@ var routes = {
|
|
|
7795
7795
|
"get-usage": {
|
|
7796
7796
|
serviceClass: "Usage",
|
|
7797
7797
|
operationId: "getUsage",
|
|
7798
|
-
description: "Returns a project's usage rolled up over an optional `[from, to]` time window, bucketed by a single dimension and optionally narrowed to one `meter_type`. Each group and the grand total carry summed token counts, a measured `quantity` per component (so infra meters report their real amount, not zeros), and `cost_usd` (null when no event in the bucket was priced). This is the per-project cost-by-range/by-category query — a monthly figure without scanning raw meter rows client-side.",
|
|
7798
|
+
description: "Returns a project's usage rolled up over an optional `[from, to]` time window, bucketed by a single dimension and optionally narrowed to one `meter_type`. Each group and the grand total carry an `event_count`, summed token counts, a measured `quantity` per component (so infra meters report their real amount, not zeros), and `cost_usd` (null when no event in the bucket was priced). This is the per-project cost-by-range/by-category query — a monthly figure without scanning raw meter rows client-side. `groups` is paginated. Its `total` is the number of distinct buckets in the window, so \"how many runs this cycle\" is one small response rather than a page walk, and `totals` always describes the whole window — never the page above it.",
|
|
7799
7799
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/usage",
|
|
7800
7800
|
httpMethod: "get",
|
|
7801
7801
|
pathParams: [],
|
|
7802
|
-
queryParams: ["project_id", "group_by", "from", "to", "meter_type"],
|
|
7802
|
+
queryParams: ["project_id", "group_by", "from", "to", "meter_type", "limit", "offset"],
|
|
7803
7803
|
flags: [{
|
|
7804
7804
|
"name": "project_id",
|
|
7805
7805
|
"description": "Project public ID to aggregate usage for",
|
|
@@ -7830,6 +7830,18 @@ var routes = {
|
|
|
7830
7830
|
"required": false,
|
|
7831
7831
|
"type": "string",
|
|
7832
7832
|
"in": "query"
|
|
7833
|
+
}, {
|
|
7834
|
+
"name": "limit",
|
|
7835
|
+
"description": "Maximum number of `groups` entries to return. Clamped to 100. Does not affect `totals` or `groups.total`, which describe the whole window.\n",
|
|
7836
|
+
"required": false,
|
|
7837
|
+
"type": "integer",
|
|
7838
|
+
"in": "query"
|
|
7839
|
+
}, {
|
|
7840
|
+
"name": "offset",
|
|
7841
|
+
"description": "Number of `groups` entries to skip",
|
|
7842
|
+
"required": false,
|
|
7843
|
+
"type": "integer",
|
|
7844
|
+
"in": "query"
|
|
7833
7845
|
}]
|
|
7834
7846
|
},
|
|
7835
7847
|
"list-usage-thresholds": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "CLI for SOAT — open-source infrastructure for production-ready AI agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@inquirer/input": "^5.1.2",
|
|
24
24
|
"@inquirer/password": "^5.1.1",
|
|
25
|
-
"@soat/sdk": "0.
|
|
25
|
+
"@soat/sdk": "0.38.0",
|
|
26
26
|
"@ttoss/logger": "^0.8.19",
|
|
27
27
|
"commander": "^15.0.0",
|
|
28
28
|
"js-yaml": "^5.2.1"
|