@naturali/cli 0.150.0 → 0.151.0
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 +73 -1
- 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.151.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -4034,6 +4034,36 @@ var Projects = class {
|
|
|
4034
4034
|
});
|
|
4035
4035
|
}
|
|
4036
4036
|
/**
|
|
4037
|
+
* Pause a project
|
|
4038
|
+
*
|
|
4039
|
+
* Stops everything the project runs, with one call. From the moment it answers, nothing new starts: generations, tool calls, orchestration runs, eval runs and trigger fires in the project respond `409` with `PROJECT_PAUSED`, and so does resuming a single run or task the pause holds. A channel keeps receiving messages and answers each with a neutral "can't reply right now" line.
|
|
4040
|
+
* What is already in motion is parked, not discarded: live orchestration runs pause at their next checkpoint, open tasks stop dispatching, schedule triggers stop firing and queued eval items wait. A generation already running finishes. Reads and configuration changes keep working.
|
|
4041
|
+
* Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `project.paused`. Requires the `admin` role.
|
|
4042
|
+
*
|
|
4043
|
+
*/
|
|
4044
|
+
static pauseProject(options) {
|
|
4045
|
+
return (options.client ?? client).post({
|
|
4046
|
+
url: "/v1/projects/{project_id}/pause",
|
|
4047
|
+
...options,
|
|
4048
|
+
headers: {
|
|
4049
|
+
"Content-Type": "application/json",
|
|
4050
|
+
...options.headers
|
|
4051
|
+
}
|
|
4052
|
+
});
|
|
4053
|
+
}
|
|
4054
|
+
/**
|
|
4055
|
+
* Resume a project
|
|
4056
|
+
*
|
|
4057
|
+
* Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `project.resumed`. Requires the `admin` role.
|
|
4058
|
+
*
|
|
4059
|
+
*/
|
|
4060
|
+
static resumeProject(options) {
|
|
4061
|
+
return (options.client ?? client).post({
|
|
4062
|
+
url: "/v1/projects/{project_id}/resume",
|
|
4063
|
+
...options
|
|
4064
|
+
});
|
|
4065
|
+
}
|
|
4066
|
+
/**
|
|
4037
4067
|
* List project members
|
|
4038
4068
|
*
|
|
4039
4069
|
* Lists who may act in the project, and with what role. Readable by every member, whatever their role: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
|
|
@@ -16252,6 +16282,48 @@ const routes = {
|
|
|
16252
16282
|
"in": "query"
|
|
16253
16283
|
}]
|
|
16254
16284
|
},
|
|
16285
|
+
"pause-project": {
|
|
16286
|
+
serviceClass: "Projects",
|
|
16287
|
+
operationId: "pauseProject",
|
|
16288
|
+
description: "Stops everything the project runs, with one call. From the moment it answers, nothing new starts: generations, tool calls, orchestration runs, eval runs and trigger fires in the project respond `409` with `PROJECT_PAUSED`, and so does resuming a single run or task the pause holds. A channel keeps receiving messages and answers each with a neutral \"can't reply right now\" line. What is already in motion is parked, not discarded: live orchestration runs pause at their next checkpoint, open tasks stop dispatching, schedule triggers stop firing and queued eval items wait. A generation already running finishes. Reads and configuration changes keep working. Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `project.paused`. Requires the `admin` role.",
|
|
16289
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/projects",
|
|
16290
|
+
httpMethod: "post",
|
|
16291
|
+
pathParams: ["project_id"],
|
|
16292
|
+
queryParams: [],
|
|
16293
|
+
headerParams: [],
|
|
16294
|
+
cookieParams: [],
|
|
16295
|
+
flags: [{
|
|
16296
|
+
"name": "project_id",
|
|
16297
|
+
"description": "Project public ID (proj_ prefix).",
|
|
16298
|
+
"required": true,
|
|
16299
|
+
"type": "string",
|
|
16300
|
+
"in": "path"
|
|
16301
|
+
}, {
|
|
16302
|
+
"name": "reason",
|
|
16303
|
+
"description": "Why the project is paused. Stored as `pause_reason` and carried onto every run and task the pause parks.\n",
|
|
16304
|
+
"required": false,
|
|
16305
|
+
"type": "string",
|
|
16306
|
+
"in": "body"
|
|
16307
|
+
}]
|
|
16308
|
+
},
|
|
16309
|
+
"resume-project": {
|
|
16310
|
+
serviceClass: "Projects",
|
|
16311
|
+
operationId: "resumeProject",
|
|
16312
|
+
description: "Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `project.resumed`. Requires the `admin` role.",
|
|
16313
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/projects",
|
|
16314
|
+
httpMethod: "post",
|
|
16315
|
+
pathParams: ["project_id"],
|
|
16316
|
+
queryParams: [],
|
|
16317
|
+
headerParams: [],
|
|
16318
|
+
cookieParams: [],
|
|
16319
|
+
flags: [{
|
|
16320
|
+
"name": "project_id",
|
|
16321
|
+
"description": "Project public ID (proj_ prefix).",
|
|
16322
|
+
"required": true,
|
|
16323
|
+
"type": "string",
|
|
16324
|
+
"in": "path"
|
|
16325
|
+
}]
|
|
16326
|
+
},
|
|
16255
16327
|
"list-project-members": {
|
|
16256
16328
|
serviceClass: "Projects",
|
|
16257
16329
|
operationId: "listProjectMembers",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"yaml": "^2.9.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@naturali/sdk": "0.
|
|
28
|
+
"@naturali/sdk": "0.151.0",
|
|
29
29
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
30
30
|
"@types/node": "^26.5.1",
|
|
31
31
|
"tsdown": "^0.23.0",
|