@soat/cli 0.37.1 → 0.38.1
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 +23 -5
- 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.1";
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -2987,12 +2987,18 @@ var routes = {
|
|
|
2987
2987
|
"create-embeddings": {
|
|
2988
2988
|
serviceClass: "Embeddings",
|
|
2989
2989
|
operationId: "createEmbeddings",
|
|
2990
|
-
description: "Generates embedding vectors for one or more text inputs using the server's configured embedding model. Provide `input` for a single text or `inputs` for a batch. At least one is required. Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.",
|
|
2990
|
+
description: "Generates embedding vectors for one or more text inputs using the server's configured embedding model. Provide `input` for a single text or `inputs` for a batch. At least one is required. Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used. `project_id` names the project the call's token usage is metered against, so embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens` quotas. A project-scoped credential supplies its own project; a call that names none and is bound to none is served but not metered.",
|
|
2991
2991
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/embeddings",
|
|
2992
2992
|
httpMethod: "post",
|
|
2993
2993
|
pathParams: [],
|
|
2994
2994
|
queryParams: [],
|
|
2995
2995
|
flags: [{
|
|
2996
|
+
"name": "project_id",
|
|
2997
|
+
"description": "Project the call's usage is billed to. Optional; a project-scoped credential supplies its own. Requires write access to the named project.",
|
|
2998
|
+
"required": false,
|
|
2999
|
+
"type": "string",
|
|
3000
|
+
"in": "body"
|
|
3001
|
+
}, {
|
|
2996
3002
|
"name": "input",
|
|
2997
3003
|
"description": "Single text to embed.",
|
|
2998
3004
|
"required": false,
|
|
@@ -7774,7 +7780,7 @@ var routes = {
|
|
|
7774
7780
|
"in": "query"
|
|
7775
7781
|
}, {
|
|
7776
7782
|
"name": "source",
|
|
7777
|
-
"description": "Filter by what the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`). Ordinary agent traffic carries no source and is matched by
|
|
7783
|
+
"description": "Filter by what the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`); `embedding` is any embedding call. Ordinary agent traffic carries no source and is matched by none of them.\n",
|
|
7778
7784
|
"required": false,
|
|
7779
7785
|
"type": "string",
|
|
7780
7786
|
"in": "query"
|
|
@@ -7795,11 +7801,11 @@ var routes = {
|
|
|
7795
7801
|
"get-usage": {
|
|
7796
7802
|
serviceClass: "Usage",
|
|
7797
7803
|
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.",
|
|
7804
|
+
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
7805
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/usage",
|
|
7800
7806
|
httpMethod: "get",
|
|
7801
7807
|
pathParams: [],
|
|
7802
|
-
queryParams: ["project_id", "group_by", "from", "to", "meter_type"],
|
|
7808
|
+
queryParams: ["project_id", "group_by", "from", "to", "meter_type", "limit", "offset"],
|
|
7803
7809
|
flags: [{
|
|
7804
7810
|
"name": "project_id",
|
|
7805
7811
|
"description": "Project public ID to aggregate usage for",
|
|
@@ -7830,6 +7836,18 @@ var routes = {
|
|
|
7830
7836
|
"required": false,
|
|
7831
7837
|
"type": "string",
|
|
7832
7838
|
"in": "query"
|
|
7839
|
+
}, {
|
|
7840
|
+
"name": "limit",
|
|
7841
|
+
"description": "Maximum number of `groups` entries to return. Clamped to 100. Does not affect `totals` or `groups.total`, which describe the whole window.\n",
|
|
7842
|
+
"required": false,
|
|
7843
|
+
"type": "integer",
|
|
7844
|
+
"in": "query"
|
|
7845
|
+
}, {
|
|
7846
|
+
"name": "offset",
|
|
7847
|
+
"description": "Number of `groups` entries to skip",
|
|
7848
|
+
"required": false,
|
|
7849
|
+
"type": "integer",
|
|
7850
|
+
"in": "query"
|
|
7833
7851
|
}]
|
|
7834
7852
|
},
|
|
7835
7853
|
"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.1",
|
|
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.1",
|
|
26
26
|
"@ttoss/logger": "^0.8.19",
|
|
27
27
|
"commander": "^15.0.0",
|
|
28
28
|
"js-yaml": "^5.2.1"
|