@naturali/cli 0.203.0 → 0.203.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 +11 -2
- 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.203.
|
|
20
|
+
var version = "0.203.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -7192,6 +7192,15 @@ const buildCallOptions = (args) => {
|
|
|
7192
7192
|
* renamed operation fails a test instead of silently disarming this.
|
|
7193
7193
|
*/
|
|
7194
7194
|
const OUTCOME_IN_BODY = /* @__PURE__ */ new Set(["createFormation", "updateFormation"]);
|
|
7195
|
+
/** `CODE: message` from a formation's `StoredError`, when it carries either. */
|
|
7196
|
+
const storedErrorReason = (error) => {
|
|
7197
|
+
if (typeof error !== "object" || error === null) return void 0;
|
|
7198
|
+
const { code, message } = error;
|
|
7199
|
+
const parts = [code, message].filter((part) => {
|
|
7200
|
+
return typeof part === "string" && part.length > 0;
|
|
7201
|
+
});
|
|
7202
|
+
return parts.length > 0 ? parts.join(": ") : void 0;
|
|
7203
|
+
};
|
|
7195
7204
|
/**
|
|
7196
7205
|
* The stderr line for a `2xx` body that reports its own failure, or `undefined`
|
|
7197
7206
|
* when there is nothing to report.
|
|
@@ -7202,7 +7211,7 @@ const bodyReportedFailure = (args) => {
|
|
|
7202
7211
|
if (typeof data !== "object" || data === null) return void 0;
|
|
7203
7212
|
const body = data;
|
|
7204
7213
|
if (body["status"] !== "failed") return void 0;
|
|
7205
|
-
return `Deploy failed: ${
|
|
7214
|
+
return `Deploy failed: ${storedErrorReason(body["error"]) ?? "no reason given"}`;
|
|
7206
7215
|
};
|
|
7207
7216
|
/**
|
|
7208
7217
|
* Runs one generated command: parses its flags, resolves credentials, calls the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.203.
|
|
3
|
+
"version": "0.203.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.203.
|
|
34
|
+
"@naturali/sdk": "0.203.1",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|