@naturali/cli 0.144.1 → 0.146.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 +6 -6
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region package.json
|
|
20
|
-
var version = "0.
|
|
20
|
+
var version = "0.146.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -3099,7 +3099,7 @@ var Guardrails = class {
|
|
|
3099
3099
|
/**
|
|
3100
3100
|
* Dry-run evaluate a guardrail
|
|
3101
3101
|
*
|
|
3102
|
-
* Runs the full evaluation pipeline — the `class` expression, the guard, the context tool per `context_mode`, live `runtime.*` resolution — against caller-supplied `args` and `guardrail_context`, and returns the exact `guardrail_evaluation` record a real call would produce. Nothing executes, no approval item is filed, and no activity entry is written. This is the adoption path: preview a document's decisions against production-shaped calls before attaching it — or before editing a widely-attached one. Pass an optional `tool_id` to resolve `runtime.
|
|
3102
|
+
* Runs the full evaluation pipeline — the `class` expression, the guard, the context tool per `context_mode`, live `runtime.*` resolution — against caller-supplied `args` and `guardrail_context`, and returns the exact `guardrail_evaluation` record a real call would produce. Nothing executes, no approval item is filed, and no activity entry is written. This is the adoption path: preview a document's decisions against production-shaped calls before attaching it — or before editing a widely-attached one. Pass an optional `tool_id` to resolve `runtime.tools.*`.
|
|
3103
3103
|
*
|
|
3104
3104
|
*/
|
|
3105
3105
|
static evaluateGuardrail(options) {
|
|
@@ -13347,7 +13347,7 @@ const routes = {
|
|
|
13347
13347
|
"evaluate-guardrail": {
|
|
13348
13348
|
serviceClass: "Guardrails",
|
|
13349
13349
|
operationId: "evaluateGuardrail",
|
|
13350
|
-
description: "Runs the full evaluation pipeline — the `class` expression, the guard, the context tool per `context_mode`, live `runtime.*` resolution — against caller-supplied `args` and `guardrail_context`, and returns the exact `guardrail_evaluation` record a real call would produce. Nothing executes, no approval item is filed, and no activity entry is written. This is the adoption path: preview a document's decisions against production-shaped calls before attaching it — or before editing a widely-attached one. Pass an optional `tool_id` to resolve `runtime.
|
|
13350
|
+
description: "Runs the full evaluation pipeline — the `class` expression, the guard, the context tool per `context_mode`, live `runtime.*` resolution — against caller-supplied `args` and `guardrail_context`, and returns the exact `guardrail_evaluation` record a real call would produce. Nothing executes, no approval item is filed, and no activity entry is written. This is the adoption path: preview a document's decisions against production-shaped calls before attaching it — or before editing a widely-attached one. Pass an optional `tool_id` to resolve `runtime.tools.*`.",
|
|
13351
13351
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/guardrails",
|
|
13352
13352
|
httpMethod: "post",
|
|
13353
13353
|
pathParams: ["project_id", "guardrail_id"],
|
|
@@ -13385,7 +13385,7 @@ const routes = {
|
|
|
13385
13385
|
},
|
|
13386
13386
|
{
|
|
13387
13387
|
"name": "tool_id",
|
|
13388
|
-
"description": "Optional tool to resolve `runtime.
|
|
13388
|
+
"description": "Optional tool to resolve `runtime.tools.*` against.",
|
|
13389
13389
|
"required": false,
|
|
13390
13390
|
"type": "string",
|
|
13391
13391
|
"in": "body"
|
|
@@ -16391,7 +16391,7 @@ const routes = {
|
|
|
16391
16391
|
},
|
|
16392
16392
|
{
|
|
16393
16393
|
"name": "meter_type",
|
|
16394
|
-
"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",
|
|
16394
|
+
"description": "Narrow the rollup to one meter type (llm_tokens, compute_execution, api_request, storage, tool_execution). 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",
|
|
16395
16395
|
"required": false,
|
|
16396
16396
|
"type": "string",
|
|
16397
16397
|
"in": "query"
|
|
@@ -16545,7 +16545,7 @@ const routes = {
|
|
|
16545
16545
|
},
|
|
16546
16546
|
{
|
|
16547
16547
|
"name": "meter_type",
|
|
16548
|
-
"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",
|
|
16548
|
+
"description": "Narrow the rollup to one meter type (llm_tokens, compute_execution, api_request, storage, tool_execution). 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",
|
|
16549
16549
|
"required": false,
|
|
16550
16550
|
"type": "string",
|
|
16551
16551
|
"in": "query"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.146.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"yaml": "^2.9.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@naturali/sdk": "0.
|
|
28
|
+
"@naturali/sdk": "0.146.0",
|
|
29
29
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
30
30
|
"@types/node": "^26.5.1",
|
|
31
31
|
"tsdown": "^0.23.0",
|