@naturali/cli 0.54.0 → 0.55.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 +38 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.55.1";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
@@ -2040,7 +2040,7 @@ var Tasks = class {
|
|
|
2040
2040
|
* Update a task
|
|
2041
2041
|
*
|
|
2042
2042
|
* Edit the card's `title`, `assignee` or `payload`. At least one is required.
|
|
2043
|
-
* `payload` is **shallow-merged** over what is there: keys the request omits are preserved
|
|
2043
|
+
* `payload` is **shallow-merged** over what is there: keys the request omits are preserved. The merged result is validated against the board's `payload_schema`. `last_result` is read-only and lives in its own field — a payload write can never discard or forge it.
|
|
2044
2044
|
* `state` and `board_id` are rejected — a card moves only through `:transition`, and it never changes boards.
|
|
2045
2045
|
*
|
|
2046
2046
|
*/
|
|
@@ -2212,6 +2212,19 @@ var Traces = class {
|
|
|
2212
2212
|
...options
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
|
+
/**
|
|
2216
|
+
* Purge a trace's content
|
|
2217
|
+
*
|
|
2218
|
+
* Deletes the trace's step payload and clears its content columns, cascading to every descendant trace in its execution tree and to their generations. The rows survive as auditable skeletons — ids, timestamps and step counts are preserved — with `content_redacted_at` set as verifiable proof the content is gone; a purged trace still reads back with `GET /v1/projects/{project_id}/traces/{trace_id}` (a 404 there would prove nothing about what was erased).
|
|
2219
|
+
* Idempotent: purging an already-purged trace succeeds and leaves the original `content_redacted_at` in place.
|
|
2220
|
+
*
|
|
2221
|
+
*/
|
|
2222
|
+
static purgeTraceContent(options) {
|
|
2223
|
+
return (options.client ?? client).delete({
|
|
2224
|
+
url: "/v1/projects/{project_id}/traces/{trace_id}/content",
|
|
2225
|
+
...options
|
|
2226
|
+
});
|
|
2227
|
+
}
|
|
2215
2228
|
};
|
|
2216
2229
|
var Triggers = class {
|
|
2217
2230
|
/**
|
|
@@ -6891,7 +6904,7 @@ const routes = {
|
|
|
6891
6904
|
"update-task": {
|
|
6892
6905
|
serviceClass: "Tasks",
|
|
6893
6906
|
operationId: "updateTask",
|
|
6894
|
-
description: "Edit the card's `title`, `assignee` or `payload`. At least one is required. `payload` is **shallow-merged** over what is there: keys the request omits are preserved
|
|
6907
|
+
description: "Edit the card's `title`, `assignee` or `payload`. At least one is required. `payload` is **shallow-merged** over what is there: keys the request omits are preserved. The merged result is validated against the board's `payload_schema`. `last_result` is read-only and lives in its own field — a payload write can never discard or forge it. `state` and `board_id` are rejected — a card moves only through `:transition`, and it never changes boards.",
|
|
6895
6908
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/tasks",
|
|
6896
6909
|
httpMethod: "patch",
|
|
6897
6910
|
pathParams: ["project_id", "task_id"],
|
|
@@ -7434,6 +7447,28 @@ const routes = {
|
|
|
7434
7447
|
"in": "path"
|
|
7435
7448
|
}]
|
|
7436
7449
|
},
|
|
7450
|
+
"purge-trace-content": {
|
|
7451
|
+
serviceClass: "Traces",
|
|
7452
|
+
operationId: "purgeTraceContent",
|
|
7453
|
+
description: "Deletes the trace's step payload and clears its content columns, cascading to every descendant trace in its execution tree and to their generations. The rows survive as auditable skeletons — ids, timestamps and step counts are preserved — with `content_redacted_at` set as verifiable proof the content is gone; a purged trace still reads back with `GET /v1/projects/{project_id}/traces/{trace_id}` (a 404 there would prove nothing about what was erased). Idempotent: purging an already-purged trace succeeds and leaves the original `content_redacted_at` in place.",
|
|
7454
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/traces",
|
|
7455
|
+
httpMethod: "delete",
|
|
7456
|
+
pathParams: ["project_id", "trace_id"],
|
|
7457
|
+
queryParams: [],
|
|
7458
|
+
flags: [{
|
|
7459
|
+
"name": "project_id",
|
|
7460
|
+
"description": "Project public ID (proj_ prefix).",
|
|
7461
|
+
"required": true,
|
|
7462
|
+
"type": "string",
|
|
7463
|
+
"in": "path"
|
|
7464
|
+
}, {
|
|
7465
|
+
"name": "trace_id",
|
|
7466
|
+
"description": "Trace public ID (trace_ prefix).",
|
|
7467
|
+
"required": true,
|
|
7468
|
+
"type": "string",
|
|
7469
|
+
"in": "path"
|
|
7470
|
+
}]
|
|
7471
|
+
},
|
|
7437
7472
|
"list-triggers": {
|
|
7438
7473
|
serviceClass: "Triggers",
|
|
7439
7474
|
operationId: "listTriggers",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.55.1",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.55.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|