@naturali/cli 0.276.2 → 0.276.3
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 +34 -19
- 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.276.
|
|
20
|
+
var version = "0.276.3";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -648,7 +648,7 @@ var Activity = class {
|
|
|
648
648
|
/**
|
|
649
649
|
* Export the activity feed as NDJSON
|
|
650
650
|
*
|
|
651
|
-
* Streams a project's activity entries as newline-delimited JSON — one entry object per line, **oldest first**, where the feed itself reads newest first: a feed answers what just happened, and a file is read start to end. `project_id`
|
|
651
|
+
* Streams a project's activity entries as newline-delimited JSON — one entry object per line, **oldest first**, where the feed itself reads newest first: a feed answers what just happened, and a file is read start to end. The export is per-project: `project_id` names it, or a project-bound credential implies its own. Filters behave exactly as they do on the list endpoint.
|
|
652
652
|
*/
|
|
653
653
|
static exportActivity(options) {
|
|
654
654
|
return (options.client ?? client).get({
|
|
@@ -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 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.
|
|
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`, `claim`, `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) {
|
|
@@ -1495,7 +1495,7 @@ var AiProviders = class {
|
|
|
1495
1495
|
*
|
|
1496
1496
|
* Deletes an AI provider configuration.
|
|
1497
1497
|
*
|
|
1498
|
-
* Live references — agents
|
|
1498
|
+
* Live references — the provider project's agents, model routes whose targets name this provider, and providers whose `model_aliases` forward to it (`meta.ai_provider_ids`) — always block deletion with `409 AI_PROVIDER_HAS_DEPENDENTS`; `force` does not override them, so delete or repoint those resources first. Soft dependents — price overrides, usage/generation records and shares another project has accepted — also block with `409` unless `force=true`, which deletes the provider's price overrides, revokes its shares and unlinks its usage history, preserving those rows: each usage event keeps the provider's id as its `ai_provider_id`. A grantee project's agents pinned to the provider fall back to that project's default route. The `409` body's `error.meta` reports the counts, a sample of offending IDs, and a `forcible` flag that is `true` when a `force=true` retry would succeed.
|
|
1499
1499
|
*
|
|
1500
1500
|
*/
|
|
1501
1501
|
static deleteAiProvider(options) {
|
|
@@ -1507,7 +1507,8 @@ var AiProviders = class {
|
|
|
1507
1507
|
/**
|
|
1508
1508
|
* Get an AI provider
|
|
1509
1509
|
*
|
|
1510
|
-
* Returns a specific AI provider configuration
|
|
1510
|
+
* Returns a specific AI provider configuration. A credential scoped to a project the provider is shared with, through an accepted share, reads its `id`, `name`, `provider`, `default_model` and `model_alias_names` only.
|
|
1511
|
+
*
|
|
1511
1512
|
*/
|
|
1512
1513
|
static getAiProvider(options) {
|
|
1513
1514
|
return (options.client ?? client).get({
|
|
@@ -1900,7 +1901,7 @@ var AuditLog = class {
|
|
|
1900
1901
|
/**
|
|
1901
1902
|
* Export audit entries as NDJSON
|
|
1902
1903
|
*
|
|
1903
|
-
* Streams a project's audit-log entries as newline-delimited JSON — one entry object per line, oldest first — for archival before the retention window expires, or for shipping into an external system. `project_id`
|
|
1904
|
+
* Streams a project's audit-log entries as newline-delimited JSON — one entry object per line, oldest first — for archival before the retention window expires, or for shipping into an external system. The export is per-project: `project_id` names it, or a project-bound credential implies its own. Filters behave exactly as they do on the list endpoint.
|
|
1904
1905
|
*/
|
|
1905
1906
|
static exportAuditEntries(options) {
|
|
1906
1907
|
return (options.client ?? client).get({
|
|
@@ -2581,7 +2582,7 @@ var Documents = class {
|
|
|
2581
2582
|
/**
|
|
2582
2583
|
* Export documents as NDJSON
|
|
2583
2584
|
*
|
|
2584
|
-
* Streams a project's documents as newline-delimited JSON — one document object per line, oldest first — for archiving the corpus or shipping it into another system. `project_id`
|
|
2585
|
+
* Streams a project's documents as newline-delimited JSON — one document object per line, oldest first — for archiving the corpus or shipping it into another system. The export is per-project: `project_id` names it, or a project-bound credential implies its own. The rows are the rows the listing returns for the same caller, so a policy that hides a document hides it here too, and withdrawn documents and the reserved `/.system/` root are left out.
|
|
2585
2586
|
*/
|
|
2586
2587
|
static exportDocuments(options) {
|
|
2587
2588
|
return (options.client ?? client).get({
|
|
@@ -4799,7 +4800,7 @@ var Playbooks = class {
|
|
|
4799
4800
|
*
|
|
4800
4801
|
* Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write.
|
|
4801
4802
|
*
|
|
4802
|
-
* With `project_id`, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`) and not be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), and each transformation's tool must not be a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.
|
|
4803
|
+
* With a project (`project_id`, or the one a project-bound credential names), the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`) and not be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), and each transformation's tool must not be a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.
|
|
4803
4804
|
*/
|
|
4804
4805
|
static validatePlaybook(options) {
|
|
4805
4806
|
return (options.client ?? client).post({
|
|
@@ -7815,7 +7816,7 @@ const routes = {
|
|
|
7815
7816
|
"export-activity": {
|
|
7816
7817
|
serviceClass: "Activity",
|
|
7817
7818
|
operationId: "exportActivity",
|
|
7818
|
-
description: "Streams a project's activity entries as newline-delimited JSON — one entry object per line, **oldest first**, where the feed itself reads newest first: a feed answers what just happened, and a file is read start to end. `project_id`
|
|
7819
|
+
description: "Streams a project's activity entries as newline-delimited JSON — one entry object per line, **oldest first**, where the feed itself reads newest first: a feed answers what just happened, and a file is read start to end. The export is per-project: `project_id` names it, or a project-bound credential implies its own. Filters behave exactly as they do on the list endpoint.",
|
|
7819
7820
|
moduleDocsUrl: "https://naturali.ai/docs/modules/activity",
|
|
7820
7821
|
httpMethod: "get",
|
|
7821
7822
|
pathParams: ["project_id"],
|
|
@@ -9786,7 +9787,7 @@ const routes = {
|
|
|
9786
9787
|
"promote-agent-release": {
|
|
9787
9788
|
serviceClass: "AgentVersions",
|
|
9788
9789
|
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 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
|
+
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`, `claim`, `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
9791
|
moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
|
|
9791
9792
|
httpMethod: "post",
|
|
9792
9793
|
pathParams: ["project_id", "agent_id"],
|
|
@@ -9927,7 +9928,7 @@ const routes = {
|
|
|
9927
9928
|
},
|
|
9928
9929
|
{
|
|
9929
9930
|
"name": "model_aliases",
|
|
9930
|
-
"description": "Alias → the model id sent to the vendor.",
|
|
9931
|
+
"description": "Alias → the model id sent to the vendor, or `{ ai_provider_id, model }` naming another provider of the project that serves it.",
|
|
9931
9932
|
"required": false,
|
|
9932
9933
|
"type": "object",
|
|
9933
9934
|
"in": "body"
|
|
@@ -9951,7 +9952,7 @@ const routes = {
|
|
|
9951
9952
|
"get-ai-provider": {
|
|
9952
9953
|
serviceClass: "AIProviders",
|
|
9953
9954
|
operationId: "getAiProvider",
|
|
9954
|
-
description: "Returns a specific AI provider configuration",
|
|
9955
|
+
description: "Returns a specific AI provider configuration. A credential scoped to a project the provider is shared with, through an accepted share, reads its `id`, `name`, `provider`, `default_model` and `model_alias_names` only.",
|
|
9955
9956
|
moduleDocsUrl: "https://naturali.ai/docs/modules/ai-providers",
|
|
9956
9957
|
httpMethod: "get",
|
|
9957
9958
|
pathParams: ["project_id", "ai_provider_id"],
|
|
@@ -10041,7 +10042,7 @@ const routes = {
|
|
|
10041
10042
|
},
|
|
10042
10043
|
{
|
|
10043
10044
|
"name": "model_aliases",
|
|
10044
|
-
"description": "Alias → the model id sent to the vendor. Replaces the whole map; `null` clears it.",
|
|
10045
|
+
"description": "Alias → the model id sent to the vendor, or `{ ai_provider_id, model }` naming another provider of the project that serves it. Replaces the whole map; `null` clears it.",
|
|
10045
10046
|
"required": false,
|
|
10046
10047
|
"type": "object",
|
|
10047
10048
|
"in": "body"
|
|
@@ -10065,7 +10066,7 @@ const routes = {
|
|
|
10065
10066
|
"delete-ai-provider": {
|
|
10066
10067
|
serviceClass: "AIProviders",
|
|
10067
10068
|
operationId: "deleteAiProvider",
|
|
10068
|
-
description: "Deletes an AI provider configuration. Live references — agents
|
|
10069
|
+
description: "Deletes an AI provider configuration. Live references — the provider project's agents, model routes whose targets name this provider, and providers whose `model_aliases` forward to it (`meta.ai_provider_ids`) — always block deletion with `409 AI_PROVIDER_HAS_DEPENDENTS`; `force` does not override them, so delete or repoint those resources first. Soft dependents — price overrides, usage/generation records and shares another project has accepted — also block with `409` unless `force=true`, which deletes the provider's price overrides, revokes its shares and unlinks its usage history, preserving those rows: each usage event keeps the provider's id as its `ai_provider_id`. A grantee project's agents pinned to the provider fall back to that project's default route. The `409` body's `error.meta` reports the counts, a sample of offending IDs, and a `forcible` flag that is `true` when a `force=true` retry would succeed.",
|
|
10069
10070
|
moduleDocsUrl: "https://naturali.ai/docs/modules/ai-providers",
|
|
10070
10071
|
httpMethod: "delete",
|
|
10071
10072
|
pathParams: ["project_id", "ai_provider_id"],
|
|
@@ -10089,7 +10090,7 @@ const routes = {
|
|
|
10089
10090
|
},
|
|
10090
10091
|
{
|
|
10091
10092
|
"name": "force",
|
|
10092
|
-
"description": "When `true`, delete the provider's price overrides and unlink its usage history so a provider with only soft dependents can be removed. Has no effect on live references (agents, model routes), which always block deletion.\n",
|
|
10093
|
+
"description": "When `true`, delete the provider's price overrides, revoke its shares and unlink its usage history so a provider with only soft dependents can be removed. Has no effect on live references (agents, model routes), which always block deletion.\n",
|
|
10093
10094
|
"required": false,
|
|
10094
10095
|
"type": "boolean",
|
|
10095
10096
|
"in": "query"
|
|
@@ -10908,7 +10909,7 @@ const routes = {
|
|
|
10908
10909
|
"export-audit-entries": {
|
|
10909
10910
|
serviceClass: "AuditLog",
|
|
10910
10911
|
operationId: "exportAuditEntries",
|
|
10911
|
-
description: "Streams a project's audit-log entries as newline-delimited JSON — one entry object per line, oldest first — for archival before the retention window expires, or for shipping into an external system. `project_id`
|
|
10912
|
+
description: "Streams a project's audit-log entries as newline-delimited JSON — one entry object per line, oldest first — for archival before the retention window expires, or for shipping into an external system. The export is per-project: `project_id` names it, or a project-bound credential implies its own. Filters behave exactly as they do on the list endpoint.",
|
|
10912
10913
|
moduleDocsUrl: "https://naturali.ai/docs/modules/audit-log",
|
|
10913
10914
|
httpMethod: "get",
|
|
10914
10915
|
pathParams: ["project_id"],
|
|
@@ -13950,7 +13951,7 @@ const routes = {
|
|
|
13950
13951
|
"export-documents": {
|
|
13951
13952
|
serviceClass: "Documents",
|
|
13952
13953
|
operationId: "exportDocuments",
|
|
13953
|
-
description: "Streams a project's documents as newline-delimited JSON — one document object per line, oldest first — for archiving the corpus or shipping it into another system. `project_id`
|
|
13954
|
+
description: "Streams a project's documents as newline-delimited JSON — one document object per line, oldest first — for archiving the corpus or shipping it into another system. The export is per-project: `project_id` names it, or a project-bound credential implies its own. The rows are the rows the listing returns for the same caller, so a policy that hides a document hides it here too, and withdrawn documents and the reserved `/.system/` root are left out.",
|
|
13954
13955
|
moduleDocsUrl: "https://naturali.ai/docs/modules/documents",
|
|
13955
13956
|
httpMethod: "get",
|
|
13956
13957
|
pathParams: ["project_id"],
|
|
@@ -15229,6 +15230,13 @@ const routes = {
|
|
|
15229
15230
|
"required": false,
|
|
15230
15231
|
"type": "object",
|
|
15231
15232
|
"in": "body"
|
|
15233
|
+
},
|
|
15234
|
+
{
|
|
15235
|
+
"name": "claim",
|
|
15236
|
+
"description": "What a run of the eval tests: the statement a `supported` verdict backs, the population its dataset stands for, and the limits outside which the verdict says nothing. Each run copies it when created. Null states none.",
|
|
15237
|
+
"required": false,
|
|
15238
|
+
"type": "object",
|
|
15239
|
+
"in": "body"
|
|
15232
15240
|
}
|
|
15233
15241
|
]
|
|
15234
15242
|
},
|
|
@@ -15336,6 +15344,13 @@ const routes = {
|
|
|
15336
15344
|
"required": false,
|
|
15337
15345
|
"type": "object",
|
|
15338
15346
|
"in": "body"
|
|
15347
|
+
},
|
|
15348
|
+
{
|
|
15349
|
+
"name": "claim",
|
|
15350
|
+
"description": "Replaces the stored claim as a whole; null clears it, omitting it leaves it unchanged.",
|
|
15351
|
+
"required": false,
|
|
15352
|
+
"type": "object",
|
|
15353
|
+
"in": "body"
|
|
15339
15354
|
}
|
|
15340
15355
|
]
|
|
15341
15356
|
},
|
|
@@ -21154,7 +21169,7 @@ const routes = {
|
|
|
21154
21169
|
"validate-playbook": {
|
|
21155
21170
|
serviceClass: "Playbooks",
|
|
21156
21171
|
operationId: "validatePlaybook",
|
|
21157
|
-
description: "Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write. With `project_id`, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`) and not be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), and each transformation's tool must not be a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.",
|
|
21172
|
+
description: "Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write. With a project (`project_id`, or the one a project-bound credential names), the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`) and not be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), and each transformation's tool must not be a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.",
|
|
21158
21173
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
21159
21174
|
httpMethod: "post",
|
|
21160
21175
|
pathParams: ["project_id"],
|
|
@@ -21171,7 +21186,7 @@ const routes = {
|
|
|
21171
21186
|
},
|
|
21172
21187
|
{
|
|
21173
21188
|
"name": "playbook_id",
|
|
21174
|
-
"description": "The playbook the definition would update, so an upstream reading it back is `UPSTREAM_CYCLE`. Requires
|
|
21189
|
+
"description": "The playbook the definition would update, so an upstream reading it back is `UPSTREAM_CYCLE`. Requires a project.",
|
|
21175
21190
|
"required": false,
|
|
21176
21191
|
"type": "string",
|
|
21177
21192
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.276.
|
|
3
|
+
"version": "0.276.3",
|
|
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.276.
|
|
34
|
+
"@naturali/sdk": "0.276.3",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|