@naturali/cli 0.262.0 → 0.263.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 +13 -10
- 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.263.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -2289,8 +2289,9 @@ var Conversations = class {
|
|
|
2289
2289
|
* Generate the next message in a conversation
|
|
2290
2290
|
*
|
|
2291
2291
|
* Generates the next message using the specified actor's linked agent or chat.
|
|
2292
|
-
* Background by default: returns `202 Accepted`
|
|
2293
|
-
* lands as a new ConversationMessage
|
|
2292
|
+
* Background by default: returns `202 Accepted` with the generation's id
|
|
2293
|
+
* once its record exists, and the reply lands as a new ConversationMessage
|
|
2294
|
+
* when it completes — poll `GET /v1/projects/{project_id}/generations/{generation_id}` or
|
|
2294
2295
|
* `GET /v1/projects/{project_id}/conversations/{conversation_id}/messages` for it.
|
|
2295
2296
|
* Pass `?wait=true` to block and receive the result inline. On
|
|
2296
2297
|
* `completed`, the reply is persisted as a new ConversationMessage
|
|
@@ -3335,7 +3336,7 @@ var Formations = class {
|
|
|
3335
3336
|
/**
|
|
3336
3337
|
* Plan a formation deployment
|
|
3337
3338
|
*
|
|
3338
|
-
* Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions.
|
|
3339
|
+
* Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions. With `formation_id`, a `{ "no_echo": true }` placeholder takes that formation's stored value, as on an update.
|
|
3339
3340
|
*
|
|
3340
3341
|
*/
|
|
3341
3342
|
static planFormation(options) {
|
|
@@ -3409,6 +3410,8 @@ var Formations = class {
|
|
|
3409
3410
|
*
|
|
3410
3411
|
* Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state.
|
|
3411
3412
|
*
|
|
3413
|
+
* A template read back can be sent as read: each `{ "no_echo": true }` placeholder takes the stored value at its path, in a resource that then equals its deployed declaration, or the update is `400 VALIDATION_FAILED`.
|
|
3414
|
+
*
|
|
3412
3415
|
* A **template-shape** error is refused with `400`. A **deploy** failure is not: the operation ran, so the formation is returned with `200` and `status: "failed"`, and `error` explains why. Read `status` — a `2xx` here means the deploy was attempted, not that it worked. The `naturali` CLI exits non-zero on that body so `update-formation && …` does not lie.
|
|
3413
3416
|
*
|
|
3414
3417
|
* A deploy that replaced a resource and could not delete the superseded one answers `status: "active"` with `error.code: "FORMATION_REPLACE_CLEANUP_FAILED"` — the desired state is realised, and `error.meta.failures` names every resource still live. The next deploy retries the disposal.
|
|
@@ -5728,7 +5731,7 @@ var Sessions = class {
|
|
|
5728
5731
|
/**
|
|
5729
5732
|
* Trigger agent generation
|
|
5730
5733
|
*
|
|
5731
|
-
* Triggers the agent to generate a response based on the current conversation. Background by default: returns `202 Accepted`
|
|
5734
|
+
* Triggers the agent to generate a response based on the current conversation. Background by default: returns `202 Accepted` with the generation's id once its record exists. Pass ?wait=true to block and receive the assistant reply (or a requires_action status if the agent needs client tool outputs) in the response.
|
|
5732
5735
|
*
|
|
5733
5736
|
*/
|
|
5734
5737
|
static generateSessionResponse(options) {
|
|
@@ -9449,7 +9452,7 @@ const routes = {
|
|
|
9449
9452
|
},
|
|
9450
9453
|
{
|
|
9451
9454
|
"name": "wait",
|
|
9452
|
-
"description": "When omitted or `false` (default), the generation runs in the background and `202 Accepted` is returned immediately with a `generation_id` to poll. Pass `true` to block until the generation settles and receive the result. Mutually exclusive with `stream: true`. A tool call, `builtin` or MCP, always waits.",
|
|
9455
|
+
"description": "When omitted or `false` (default), the generation runs in the background and `202 Accepted` is returned immediately with a `generation_id` to poll. Pass `true` to block until the generation settles and receive the result. Mutually exclusive with `stream: true`. A tool call, `builtin` or MCP, always waits. An agent's `builtin` call that is still waiting after the 5-minute tool-call timeout answers with the running generation (`status: running`, `generation_id`), and the generation's outcome is sent to that agent as a continuation once both have settled.",
|
|
9453
9456
|
"required": false,
|
|
9454
9457
|
"type": "boolean",
|
|
9455
9458
|
"in": "query"
|
|
@@ -12937,7 +12940,7 @@ const routes = {
|
|
|
12937
12940
|
"generate-conversation-message": {
|
|
12938
12941
|
serviceClass: "Conversations",
|
|
12939
12942
|
operationId: "generateConversationMessage",
|
|
12940
|
-
description: "Generates the next message using the specified actor's linked agent or chat. Background by default: returns `202 Accepted`
|
|
12943
|
+
description: "Generates the next message using the specified actor's linked agent or chat. Background by default: returns `202 Accepted` with the generation's id once its record exists, and the reply lands as a new ConversationMessage when it completes — poll `GET /v1/projects/{project_id}/generations/{generation_id}` or `GET /v1/projects/{project_id}/conversations/{conversation_id}/messages` for it. Pass `?wait=true` to block and receive the result inline. On `completed`, the reply is persisted as a new ConversationMessage authored by that actor. On `requires_action`, nothing is persisted; the caller must submit tool outputs via the Agents module and re-invoke generate — so a flow using client tools should pass `?wait=true`.",
|
|
12941
12944
|
moduleDocsUrl: "https://naturali.ai/docs/modules/conversations",
|
|
12942
12945
|
httpMethod: "post",
|
|
12943
12946
|
pathParams: ["project_id", "conversation_id"],
|
|
@@ -16178,7 +16181,7 @@ const routes = {
|
|
|
16178
16181
|
"plan-formation": {
|
|
16179
16182
|
serviceClass: "Formations",
|
|
16180
16183
|
operationId: "planFormation",
|
|
16181
|
-
description: "Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions.",
|
|
16184
|
+
description: "Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions. With `formation_id`, a `{ \"no_echo\": true }` placeholder takes that formation's stored value, as on an update.",
|
|
16182
16185
|
moduleDocsUrl: "https://naturali.ai/docs/modules/formations",
|
|
16183
16186
|
httpMethod: "post",
|
|
16184
16187
|
pathParams: ["project_id"],
|
|
@@ -16325,7 +16328,7 @@ const routes = {
|
|
|
16325
16328
|
"update-formation": {
|
|
16326
16329
|
serviceClass: "Formations",
|
|
16327
16330
|
operationId: "updateFormation",
|
|
16328
|
-
description: "Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state. A **template-shape** error is refused with `400`. A **deploy** failure is not: the operation ran, so the formation is returned with `200` and `status: \"failed\"`, and `error` explains why. Read `status` — a `2xx` here means the deploy was attempted, not that it worked. The `naturali` CLI exits non-zero on that body so `update-formation && …` does not lie. A deploy that replaced a resource and could not delete the superseded one answers `status: \"active\"` with `error.code: \"FORMATION_REPLACE_CLEANUP_FAILED\"` — the desired state is realised, and `error.meta.failures` names every resource still live. The next deploy retries the disposal.",
|
|
16331
|
+
description: "Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state. A template read back can be sent as read: each `{ \"no_echo\": true }` placeholder takes the stored value at its path, in a resource that then equals its deployed declaration, or the update is `400 VALIDATION_FAILED`. A **template-shape** error is refused with `400`. A **deploy** failure is not: the operation ran, so the formation is returned with `200` and `status: \"failed\"`, and `error` explains why. Read `status` — a `2xx` here means the deploy was attempted, not that it worked. The `naturali` CLI exits non-zero on that body so `update-formation && …` does not lie. A deploy that replaced a resource and could not delete the superseded one answers `status: \"active\"` with `error.code: \"FORMATION_REPLACE_CLEANUP_FAILED\"` — the desired state is realised, and `error.meta.failures` names every resource still live. The next deploy retries the disposal.",
|
|
16329
16332
|
moduleDocsUrl: "https://naturali.ai/docs/modules/formations",
|
|
16330
16333
|
httpMethod: "put",
|
|
16331
16334
|
pathParams: ["project_id", "formation_id"],
|
|
@@ -24017,7 +24020,7 @@ const routes = {
|
|
|
24017
24020
|
"generate-session-response": {
|
|
24018
24021
|
serviceClass: "Sessions",
|
|
24019
24022
|
operationId: "generateSessionResponse",
|
|
24020
|
-
description: "Triggers the agent to generate a response based on the current conversation. Background by default: returns `202 Accepted`
|
|
24023
|
+
description: "Triggers the agent to generate a response based on the current conversation. Background by default: returns `202 Accepted` with the generation's id once its record exists. Pass ?wait=true to block and receive the assistant reply (or a requires_action status if the agent needs client tool outputs) in the response.",
|
|
24021
24024
|
moduleDocsUrl: "https://naturali.ai/docs/modules/sessions",
|
|
24022
24025
|
httpMethod: "post",
|
|
24023
24026
|
pathParams: ["project_id", "session_id"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.263.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.
|
|
34
|
+
"@naturali/sdk": "0.263.1",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|