@naturali/cli 0.273.1 → 0.274.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.
Files changed (2) hide show
  1. package/dist/index.mjs +20 -6
  2. 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.273.1";
20
+ var version = "0.274.1";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1428,7 +1428,7 @@ var AgentVersions = class {
1428
1428
  *
1429
1429
  * Makes the canary version's config the agent's live config and clears the release. The canary is pinned by version, so an edit that landed mid-rollout is not promoted in its place — it stays an unreleased draft in the version history.
1430
1430
  *
1431
- * When the release carries a `promotion_gate`, the eval it names must have a run that finished `completed` with `passed: true` **and** was pinned to the canary version (`agent_version`); otherwise the call is a `409` and the rollout is left running untouched. The run that cleared the gate is recorded as `eval_run_id` on the version that goes live.
1431
+ * When the release carries a `promotion_gate`, the newest `completed` run of the eval it names that was recorded against this agent (`agent_id`) and pinned to the canary version (`agent_version`) must read `verdict: supported`. A newer run revokes an older one. Otherwise the call is a `409`, whose `meta` names that run's `eval_run_id`, `verdict` and `verdict_reasons` when there is one, and the rollout is left running untouched. The run that cleared the gate is recorded as `eval_run_id` on the version that goes live.
1432
1432
  *
1433
1433
  */
1434
1434
  static promoteAgentRelease(options) {
@@ -9786,7 +9786,7 @@ const routes = {
9786
9786
  "promote-agent-release": {
9787
9787
  serviceClass: "AgentVersions",
9788
9788
  operationId: "promoteAgentRelease",
9789
- description: "Makes the canary version's config the agent's live config and clears the release. The canary is pinned by version, so an edit that landed mid-rollout is not promoted in its place — it stays an unreleased draft in the version history. When the release carries a `promotion_gate`, the eval it names must have a run that finished `completed` with `passed: true` **and** was pinned to the canary version (`agent_version`); otherwise the call is a `409` and the rollout is left running untouched. The run that cleared the gate is recorded as `eval_run_id` on the version that goes live.",
9789
+ description: "Makes the canary version's config the agent's live config and clears the release. The canary is pinned by version, so an edit that landed mid-rollout is not promoted in its place — it stays an unreleased draft in the version history. When the release carries a `promotion_gate`, the newest `completed` run of the eval it names that was recorded against this agent (`agent_id`) and pinned to the canary version (`agent_version`) must read `verdict: supported`. A newer run revokes an older one. Otherwise the call is a `409`, whose `meta` names that run's `eval_run_id`, `verdict` and `verdict_reasons` when there is one, and the rollout is left running untouched. The run that cleared the gate is recorded as `eval_run_id` on the version that goes live.",
9790
9790
  moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
9791
9791
  httpMethod: "post",
9792
9792
  pathParams: ["project_id", "agent_id"],
@@ -15211,7 +15211,7 @@ const routes = {
15211
15211
  },
15212
15212
  {
15213
15213
  "name": "pass_threshold",
15214
- "description": "0–1. The run passes iff its pass rate — passed items over non-errored items — is at least this. Null reports scores without gating on them.",
15214
+ "description": "0–1. A run's verdict reads the 95% interval of its pass rate (passed items over non-errored items) against this. Null reports scores without a verdict.",
15215
15215
  "required": false,
15216
15216
  "type": "number",
15217
15217
  "in": "body"
@@ -15222,6 +15222,13 @@ const routes = {
15222
15222
  "required": false,
15223
15223
  "type": "string",
15224
15224
  "in": "body"
15225
+ },
15226
+ {
15227
+ "name": "evidence",
15228
+ "description": "The rules a run's verdict reads beyond the threshold. Null declares none.",
15229
+ "required": false,
15230
+ "type": "object",
15231
+ "in": "body"
15225
15232
  }
15226
15233
  ]
15227
15234
  },
@@ -15318,10 +15325,17 @@ const routes = {
15318
15325
  },
15319
15326
  {
15320
15327
  "name": "group_by",
15321
- "description": "A key of the items' `metadata` to group run scores by; null clears it, omitting it leaves it unchanged.",
15328
+ "description": "A key of the items' `metadata` to group run scores by; null clears it, omitting it leaves it unchanged. Refused while `evidence.required_groups` names a group.",
15322
15329
  "required": false,
15323
15330
  "type": "string",
15324
15331
  "in": "body"
15332
+ },
15333
+ {
15334
+ "name": "evidence",
15335
+ "description": "Replaces the stored evidence; null clears it, omitting it leaves it unchanged.",
15336
+ "required": false,
15337
+ "type": "object",
15338
+ "in": "body"
15325
15339
  }
15326
15340
  ]
15327
15341
  },
@@ -15438,7 +15452,7 @@ const routes = {
15438
15452
  },
15439
15453
  {
15440
15454
  "name": "metadata",
15441
- "description": "Caller-supplied key/value metadata attached to the run record for attribution — what this measurement was of (the commit or release candidate being scored, the CI job that asked for it). Round-trips verbatim on every read of the run, the list included.\n\nThe bag is caller-owned and no key is reserved: everything the platform decides about a run (`status`, `agent_version`, `baseline_run_id`, `aggregate_scores`, `passed`, the counts) is a field of its own and cannot be written from here. Nothing in the scoring path reads it. A non-object is rejected with `400 VALIDATION_FAILED` and no run is created.",
15455
+ "description": "Caller-supplied key/value metadata attached to the run record for attribution — what this measurement was of (the commit or release candidate being scored, the CI job that asked for it). Round-trips verbatim on every read of the run, the list included.\n\nThe bag is caller-owned and no key is reserved: everything the platform decides about a run (`status`, `agent_version`, `baseline_run_id`, `aggregate_scores`, `verdict`, the counts) is a field of its own and cannot be written from here. Nothing in the scoring path reads it. A non-object is rejected with `400 VALIDATION_FAILED` and no run is created.",
15442
15456
  "required": false,
15443
15457
  "type": "object",
15444
15458
  "in": "body"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.273.1",
3
+ "version": "0.274.1",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -31,7 +31,7 @@
31
31
  "yaml": "^2.9.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@naturali/sdk": "0.273.1",
34
+ "@naturali/sdk": "0.274.1",
35
35
  "@ttoss/openapi-codegen": "^0.10.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",