@naturali/cli 0.56.5 → 0.58.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 +33 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.58.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
@@ -1858,6 +1858,8 @@ var Projects = class {
|
|
|
1858
1858
|
*
|
|
1859
1859
|
* The per-project meter — the re-billing view (A11/C12/P3). Aggregates the project's usage over an optional [from, to] window, bucketed by a single dimension. Costs are the billing-grade cost_usd the runtime freezes at write time; null means nothing in the bucket was priced (never that it was free). Only managed providers are priced (on the runtime), so cost reflects managed usage; BYOK usage carries no LLM cost.
|
|
1860
1860
|
*
|
|
1861
|
+
* Every bucket also carries components — the amounts actually measured. The token counts describe LLM usage alone, so that is where a storage, api_request or compute_execution bucket reports its real quantity instead of zeroed token fields.
|
|
1862
|
+
*
|
|
1861
1863
|
*/
|
|
1862
1864
|
static getProjectUsage(options) {
|
|
1863
1865
|
return (options.client ?? client).get({
|
|
@@ -6080,6 +6082,13 @@ const routes = {
|
|
|
6080
6082
|
"type": "object",
|
|
6081
6083
|
"in": "body"
|
|
6082
6084
|
},
|
|
6085
|
+
{
|
|
6086
|
+
"name": "tool_context",
|
|
6087
|
+
"description": "Write-only. Per-run context forwarded to the run's tool calls: every entry is sent as an `X-Naturali-Context-<key>` request header on each `http`/`mcp` tool call the run's agent nodes make, including those of a `loop` or `sub_orchestration` child run. This is how a per-user credential reaches a tool endpoint without being written into the prompt — the endpoint reads it from a header it can trust rather than from model output.\n\nThe bag is stored on the run, so it survives an `awaiting_input` pause, a durable wait and a restart. It is never returned on a read: any principal on the project can read the project's runs.\n\nA key becomes an HTTP header name verbatim — no character is re-cased, so `ocaToken` and `oca_token` are two different keys — and must contain only letters, digits and `!#$%&'*+-.^_`|~`; two keys that differ only in case are rejected, since HTTP folds them into one. To land a value in a header the target already expects (usually `Authorization`), have the tool declare it with a `{{context:<key>}}` reference in its own `headers`, and set the tool's `context_keys` so the value reaches that tool alone.",
|
|
6088
|
+
"required": false,
|
|
6089
|
+
"type": "object",
|
|
6090
|
+
"in": "body"
|
|
6091
|
+
},
|
|
6083
6092
|
{
|
|
6084
6093
|
"name": "wait",
|
|
6085
6094
|
"description": "When true, block until the run reaches a terminal or `awaiting_input` state and return the settled run. When false (default), return immediately with `status: \"queued\"`.",
|
|
@@ -6319,12 +6328,13 @@ const routes = {
|
|
|
6319
6328
|
"get-project-usage": {
|
|
6320
6329
|
serviceClass: "Projects",
|
|
6321
6330
|
operationId: "getProjectUsage",
|
|
6322
|
-
description: "The per-project meter — the re-billing view (A11/C12/P3). Aggregates the project's usage over an optional [from, to] window, bucketed by a single dimension. Costs are the billing-grade cost_usd the runtime freezes at write time; null means nothing in the bucket was priced (never that it was free). Only managed providers are priced (on the runtime), so cost reflects managed usage; BYOK usage carries no LLM cost.",
|
|
6331
|
+
description: "The per-project meter — the re-billing view (A11/C12/P3). Aggregates the project's usage over an optional [from, to] window, bucketed by a single dimension. Costs are the billing-grade cost_usd the runtime freezes at write time; null means nothing in the bucket was priced (never that it was free). Only managed providers are priced (on the runtime), so cost reflects managed usage; BYOK usage carries no LLM cost. Every bucket also carries components — the amounts actually measured. The token counts describe LLM usage alone, so that is where a storage, api_request or compute_execution bucket reports its real quantity instead of zeroed token fields.",
|
|
6323
6332
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/projects",
|
|
6324
6333
|
httpMethod: "get",
|
|
6325
6334
|
pathParams: ["project_id"],
|
|
6326
6335
|
queryParams: [
|
|
6327
6336
|
"group_by",
|
|
6337
|
+
"meter_type",
|
|
6328
6338
|
"from",
|
|
6329
6339
|
"to"
|
|
6330
6340
|
],
|
|
@@ -6343,6 +6353,13 @@ const routes = {
|
|
|
6343
6353
|
"type": "string",
|
|
6344
6354
|
"in": "query"
|
|
6345
6355
|
},
|
|
6356
|
+
{
|
|
6357
|
+
"name": "meter_type",
|
|
6358
|
+
"description": "Narrow the rollup to one meter type (llm_tokens, compute_execution, api_request, storage). Omit to include every meter. Useful with group_by=model, whose dimension otherwise mixes model ids with platform SKUs. An unrecognized value yields an empty rollup, not an error.\n",
|
|
6359
|
+
"required": false,
|
|
6360
|
+
"type": "string",
|
|
6361
|
+
"in": "query"
|
|
6362
|
+
},
|
|
6346
6363
|
{
|
|
6347
6364
|
"name": "from",
|
|
6348
6365
|
"description": "Inclusive lower bound (ISO-8601) on event time. Omit for no lower bound.",
|
|
@@ -7220,6 +7237,13 @@ const routes = {
|
|
|
7220
7237
|
"required": false,
|
|
7221
7238
|
"type": "array",
|
|
7222
7239
|
"in": "body"
|
|
7240
|
+
},
|
|
7241
|
+
{
|
|
7242
|
+
"name": "context_keys",
|
|
7243
|
+
"description": "Allowlist of `tool_context` keys forwarded to this tool as `X-Naturali-Context-<key>` headers. Omit (or `null`) to forward every key the caller supplied; `[]` forwards none. Set it on the tools that need a given credential and the credential stops egressing to the rest of the agent's tool set — a key a tool consumes through a `{{context:<key>}}` reference in its own `headers` is substituted either way, since the tool declared that header itself.",
|
|
7244
|
+
"required": false,
|
|
7245
|
+
"type": "array",
|
|
7246
|
+
"in": "body"
|
|
7223
7247
|
}
|
|
7224
7248
|
]
|
|
7225
7249
|
},
|
|
@@ -7331,6 +7355,13 @@ const routes = {
|
|
|
7331
7355
|
"type": "array",
|
|
7332
7356
|
"in": "body"
|
|
7333
7357
|
},
|
|
7358
|
+
{
|
|
7359
|
+
"name": "context_keys",
|
|
7360
|
+
"description": "Replace the allowlist of `tool_context` keys forwarded to this tool. `null` clears it (every key is forwarded again) — unlike omitting the field, which leaves the current allowlist alone.",
|
|
7361
|
+
"required": false,
|
|
7362
|
+
"type": "array",
|
|
7363
|
+
"in": "body"
|
|
7364
|
+
},
|
|
7334
7365
|
{
|
|
7335
7366
|
"name": "status",
|
|
7336
7367
|
"description": "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.58.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|