@naturali/cli 0.282.0 → 0.282.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 +185 -4
- 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.282.
|
|
20
|
+
var version = "0.282.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1454,7 +1454,7 @@ var AgentVersions = class {
|
|
|
1454
1454
|
*
|
|
1455
1455
|
* 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 give a claim verdict of `supported`: the run's verdict, made worse by the production and run-age rules its evidence declares. A newer run revokes an older one. Otherwise the call is a `409`, whose `meta` names that run's `eval_run_id`, `claim`, and the claim's `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.
|
|
1456
1456
|
*
|
|
1457
|
-
* Every claim the stable version's run supports must be supported by the canary too, unless the release names its eval in `released_claims`. The stable side is judged by its run's verdict alone, so a claim it demonstrated stays required when its traffic stops or its run ages; the canary side by its claim's verdict, which adds the production rules and the run age its run recorded. Otherwise the call is a `409 PROMOTION_CLAIM_UNMET` whose `meta` names the `eval_id`, the stable version's `claim`, and the canary's `eval_run_id`, `verdict` and `verdict_reasons` (null when it
|
|
1457
|
+
* Every claim the stable version's run supports must be supported by the canary too, unless the release names its eval in `released_claims`. The stable side is judged by its run's verdict alone, so a claim it demonstrated stays required when its traffic stops or its run ages; the canary side by its claim's verdict, which adds the production rules and the run age its run recorded. Otherwise the call is a `409 PROMOTION_CLAIM_UNMET` whose `meta` names the `eval_id`, the stable version's `claim`, and the canary's `eval_run_id`, `verdict` and `verdict_reasons` (null when it holds no claim of that eval: no run, or a run that carries no claim). The version that goes live records the claims the canary held (`GET /v1/projects/{project_id}/agents/{agent_id}/versions/{version}/promotion-claims`) and the release's `released_claims`.
|
|
1458
1458
|
*
|
|
1459
1459
|
*/
|
|
1460
1460
|
static promoteAgentRelease(options) {
|
|
@@ -3120,6 +3120,43 @@ var Evaluations = class {
|
|
|
3120
3120
|
});
|
|
3121
3121
|
}
|
|
3122
3122
|
/**
|
|
3123
|
+
* Clear an eval result's label
|
|
3124
|
+
*
|
|
3125
|
+
* Removes the label from one result; a result with none is unchanged.
|
|
3126
|
+
*/
|
|
3127
|
+
static clearEvalResultLabel(options) {
|
|
3128
|
+
return (options.client ?? client).delete({
|
|
3129
|
+
url: "/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/results/{eval_result_id}/label",
|
|
3130
|
+
...options
|
|
3131
|
+
});
|
|
3132
|
+
}
|
|
3133
|
+
/**
|
|
3134
|
+
* Label an eval result
|
|
3135
|
+
*
|
|
3136
|
+
* Records a person's pass/fail verdict on one result, replacing any earlier label. The result's `passed` stays what its scorers said; the label is what each scorer's agreement is measured against (`GET /v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/calibration`).
|
|
3137
|
+
*/
|
|
3138
|
+
static labelEvalResult(options) {
|
|
3139
|
+
return (options.client ?? client).put({
|
|
3140
|
+
url: "/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/results/{eval_result_id}/label",
|
|
3141
|
+
...options,
|
|
3142
|
+
headers: {
|
|
3143
|
+
"Content-Type": "application/json",
|
|
3144
|
+
...options.headers
|
|
3145
|
+
}
|
|
3146
|
+
});
|
|
3147
|
+
}
|
|
3148
|
+
/**
|
|
3149
|
+
* Read an eval run's calibration
|
|
3150
|
+
*
|
|
3151
|
+
* How far each scorer of the run agrees with the results people labeled (`PUT /v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/results/{eval_result_id}/label`), under the fingerprint of the scorers that graded it. Each disagreement is a result whose scorer outcome in `scores` differs from its `human_label`.
|
|
3152
|
+
*/
|
|
3153
|
+
static getEvalRunCalibration(options) {
|
|
3154
|
+
return (options.client ?? client).get({
|
|
3155
|
+
url: "/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/calibration",
|
|
3156
|
+
...options
|
|
3157
|
+
});
|
|
3158
|
+
}
|
|
3159
|
+
/**
|
|
3123
3160
|
* Cancel an eval run
|
|
3124
3161
|
*
|
|
3125
3162
|
* Cancels a queued or running run: its outstanding item tasks are dropped so it stops consuming provider budget, and the run settles as `cancelled`.
|
|
@@ -9925,7 +9962,7 @@ const routes = {
|
|
|
9925
9962
|
"promote-agent-release": {
|
|
9926
9963
|
serviceClass: "AgentVersions",
|
|
9927
9964
|
operationId: "promoteAgentRelease",
|
|
9928
|
-
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 give a claim verdict of `supported`: the run's verdict, made worse by the production and run-age rules its evidence declares. A newer run revokes an older one. Otherwise the call is a `409`, whose `meta` names that run's `eval_run_id`, `claim`, and the claim's `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. Every claim the stable version's run supports must be supported by the canary too, unless the release names its eval in `released_claims`. The stable side is judged by its run's verdict alone, so a claim it demonstrated stays required when its traffic stops or its run ages; the canary side by its claim's verdict, which adds the production rules and the run age its run recorded. Otherwise the call is a `409 PROMOTION_CLAIM_UNMET` whose `meta` names the `eval_id`, the stable version's `claim`, and the canary's `eval_run_id`, `verdict` and `verdict_reasons` (null when it
|
|
9965
|
+
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 give a claim verdict of `supported`: the run's verdict, made worse by the production and run-age rules its evidence declares. A newer run revokes an older one. Otherwise the call is a `409`, whose `meta` names that run's `eval_run_id`, `claim`, and the claim's `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. Every claim the stable version's run supports must be supported by the canary too, unless the release names its eval in `released_claims`. The stable side is judged by its run's verdict alone, so a claim it demonstrated stays required when its traffic stops or its run ages; the canary side by its claim's verdict, which adds the production rules and the run age its run recorded. Otherwise the call is a `409 PROMOTION_CLAIM_UNMET` whose `meta` names the `eval_id`, the stable version's `claim`, and the canary's `eval_run_id`, `verdict` and `verdict_reasons` (null when it holds no claim of that eval: no run, or a run that carries no claim). The version that goes live records the claims the canary held (`GET /v1/projects/{project_id}/agents/{agent_id}/versions/{version}/promotion-claims`) and the release's `released_claims`.",
|
|
9929
9966
|
moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
|
|
9930
9967
|
httpMethod: "post",
|
|
9931
9968
|
pathParams: ["project_id", "agent_id"],
|
|
@@ -15364,7 +15401,7 @@ const routes = {
|
|
|
15364
15401
|
},
|
|
15365
15402
|
{
|
|
15366
15403
|
"name": "evidence",
|
|
15367
|
-
"description": "The rules beyond the threshold: `required_groups` is read by the run's verdict, `live` and `
|
|
15404
|
+
"description": "The rules beyond the threshold: `required_groups` is read by the run's verdict, `live`, `max_run_age_days` and `min_calibration` only by its claim's verdict. Null declares none.",
|
|
15368
15405
|
"required": false,
|
|
15369
15406
|
"type": "object",
|
|
15370
15407
|
"in": "body"
|
|
@@ -15709,6 +15746,150 @@ const routes = {
|
|
|
15709
15746
|
}
|
|
15710
15747
|
]
|
|
15711
15748
|
},
|
|
15749
|
+
"label-eval-result": {
|
|
15750
|
+
serviceClass: "Evaluations",
|
|
15751
|
+
operationId: "labelEvalResult",
|
|
15752
|
+
description: "Records a person's pass/fail verdict on one result, replacing any earlier label. The result's `passed` stays what its scorers said; the label is what each scorer's agreement is measured against (`GET /v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/calibration`).",
|
|
15753
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/evaluations",
|
|
15754
|
+
httpMethod: "put",
|
|
15755
|
+
pathParams: [
|
|
15756
|
+
"project_id",
|
|
15757
|
+
"eval_id",
|
|
15758
|
+
"eval_run_id",
|
|
15759
|
+
"eval_result_id"
|
|
15760
|
+
],
|
|
15761
|
+
queryParams: [],
|
|
15762
|
+
headerParams: [],
|
|
15763
|
+
cookieParams: [],
|
|
15764
|
+
flags: [
|
|
15765
|
+
{
|
|
15766
|
+
"name": "project_id",
|
|
15767
|
+
"description": "Project public ID (proj_ prefix).",
|
|
15768
|
+
"required": true,
|
|
15769
|
+
"type": "string",
|
|
15770
|
+
"in": "path"
|
|
15771
|
+
},
|
|
15772
|
+
{
|
|
15773
|
+
"name": "eval_id",
|
|
15774
|
+
"description": "Eval ID",
|
|
15775
|
+
"required": true,
|
|
15776
|
+
"type": "string",
|
|
15777
|
+
"in": "path"
|
|
15778
|
+
},
|
|
15779
|
+
{
|
|
15780
|
+
"name": "eval_run_id",
|
|
15781
|
+
"description": "Eval run ID",
|
|
15782
|
+
"required": true,
|
|
15783
|
+
"type": "string",
|
|
15784
|
+
"in": "path"
|
|
15785
|
+
},
|
|
15786
|
+
{
|
|
15787
|
+
"name": "eval_result_id",
|
|
15788
|
+
"description": "Eval result ID",
|
|
15789
|
+
"required": true,
|
|
15790
|
+
"type": "string",
|
|
15791
|
+
"in": "path"
|
|
15792
|
+
},
|
|
15793
|
+
{
|
|
15794
|
+
"name": "passed",
|
|
15795
|
+
"description": "Whether the item passes, in the labeler's judgement.",
|
|
15796
|
+
"required": true,
|
|
15797
|
+
"type": "boolean",
|
|
15798
|
+
"in": "body"
|
|
15799
|
+
},
|
|
15800
|
+
{
|
|
15801
|
+
"name": "note",
|
|
15802
|
+
"description": "Why, in the labeler's words.",
|
|
15803
|
+
"required": false,
|
|
15804
|
+
"type": "string",
|
|
15805
|
+
"in": "body"
|
|
15806
|
+
}
|
|
15807
|
+
]
|
|
15808
|
+
},
|
|
15809
|
+
"clear-eval-result-label": {
|
|
15810
|
+
serviceClass: "Evaluations",
|
|
15811
|
+
operationId: "clearEvalResultLabel",
|
|
15812
|
+
description: "Removes the label from one result; a result with none is unchanged.",
|
|
15813
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/evaluations",
|
|
15814
|
+
httpMethod: "delete",
|
|
15815
|
+
pathParams: [
|
|
15816
|
+
"project_id",
|
|
15817
|
+
"eval_id",
|
|
15818
|
+
"eval_run_id",
|
|
15819
|
+
"eval_result_id"
|
|
15820
|
+
],
|
|
15821
|
+
queryParams: [],
|
|
15822
|
+
headerParams: [],
|
|
15823
|
+
cookieParams: [],
|
|
15824
|
+
flags: [
|
|
15825
|
+
{
|
|
15826
|
+
"name": "project_id",
|
|
15827
|
+
"description": "Project public ID (proj_ prefix).",
|
|
15828
|
+
"required": true,
|
|
15829
|
+
"type": "string",
|
|
15830
|
+
"in": "path"
|
|
15831
|
+
},
|
|
15832
|
+
{
|
|
15833
|
+
"name": "eval_id",
|
|
15834
|
+
"description": "Eval ID",
|
|
15835
|
+
"required": true,
|
|
15836
|
+
"type": "string",
|
|
15837
|
+
"in": "path"
|
|
15838
|
+
},
|
|
15839
|
+
{
|
|
15840
|
+
"name": "eval_run_id",
|
|
15841
|
+
"description": "Eval run ID",
|
|
15842
|
+
"required": true,
|
|
15843
|
+
"type": "string",
|
|
15844
|
+
"in": "path"
|
|
15845
|
+
},
|
|
15846
|
+
{
|
|
15847
|
+
"name": "eval_result_id",
|
|
15848
|
+
"description": "Eval result ID",
|
|
15849
|
+
"required": true,
|
|
15850
|
+
"type": "string",
|
|
15851
|
+
"in": "path"
|
|
15852
|
+
}
|
|
15853
|
+
]
|
|
15854
|
+
},
|
|
15855
|
+
"get-eval-run-calibration": {
|
|
15856
|
+
serviceClass: "Evaluations",
|
|
15857
|
+
operationId: "getEvalRunCalibration",
|
|
15858
|
+
description: "How far each scorer of the run agrees with the results people labeled (`PUT /v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/results/{eval_result_id}/label`), under the fingerprint of the scorers that graded it. Each disagreement is a result whose scorer outcome in `scores` differs from its `human_label`.",
|
|
15859
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/evaluations",
|
|
15860
|
+
httpMethod: "get",
|
|
15861
|
+
pathParams: [
|
|
15862
|
+
"project_id",
|
|
15863
|
+
"eval_id",
|
|
15864
|
+
"eval_run_id"
|
|
15865
|
+
],
|
|
15866
|
+
queryParams: [],
|
|
15867
|
+
headerParams: [],
|
|
15868
|
+
cookieParams: [],
|
|
15869
|
+
flags: [
|
|
15870
|
+
{
|
|
15871
|
+
"name": "project_id",
|
|
15872
|
+
"description": "Project public ID (proj_ prefix).",
|
|
15873
|
+
"required": true,
|
|
15874
|
+
"type": "string",
|
|
15875
|
+
"in": "path"
|
|
15876
|
+
},
|
|
15877
|
+
{
|
|
15878
|
+
"name": "eval_id",
|
|
15879
|
+
"description": "Eval ID",
|
|
15880
|
+
"required": true,
|
|
15881
|
+
"type": "string",
|
|
15882
|
+
"in": "path"
|
|
15883
|
+
},
|
|
15884
|
+
{
|
|
15885
|
+
"name": "eval_run_id",
|
|
15886
|
+
"description": "Eval run ID",
|
|
15887
|
+
"required": true,
|
|
15888
|
+
"type": "string",
|
|
15889
|
+
"in": "path"
|
|
15890
|
+
}
|
|
15891
|
+
]
|
|
15892
|
+
},
|
|
15712
15893
|
"cancel-eval-run": {
|
|
15713
15894
|
serviceClass: "Evaluations",
|
|
15714
15895
|
operationId: "cancelEvalRun",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.282.
|
|
3
|
+
"version": "0.282.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.282.
|
|
34
|
+
"@naturali/sdk": "0.282.1",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|