@nodaro/cli 1.18.0 → 1.18.2
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.js +14 -5
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var require_package = __commonJS({
|
|
|
29
29
|
"package.json"(exports$1, module) {
|
|
30
30
|
module.exports = {
|
|
31
31
|
name: "@nodaro/cli",
|
|
32
|
-
version: "1.18.
|
|
32
|
+
version: "1.18.2",
|
|
33
33
|
description: "Command-line interface for Nodaro \u2014 list and run workflows, inspect jobs and executions, manage projects from the terminal.",
|
|
34
34
|
type: "module",
|
|
35
35
|
license: "Apache-2.0",
|
|
@@ -70,11 +70,11 @@ var require_package = __commonJS({
|
|
|
70
70
|
"@inquirer/confirm": "^6.0.12",
|
|
71
71
|
"@inquirer/input": "^5.0.12",
|
|
72
72
|
"@inquirer/select": "^5.1.4",
|
|
73
|
-
"@nodaro/sdk": "^
|
|
74
|
-
"@nodaro/shared": "^
|
|
73
|
+
"@nodaro/sdk": "^2.0.0",
|
|
74
|
+
"@nodaro/shared": "^3.0.0",
|
|
75
75
|
commander: "^12.1.0",
|
|
76
76
|
picocolors: "^1.1.1",
|
|
77
|
-
"@nodaro/prompts": "^1.
|
|
77
|
+
"@nodaro/prompts": "^1.17.2"
|
|
78
78
|
},
|
|
79
79
|
devDependencies: {
|
|
80
80
|
tsup: "^8.5.0",
|
|
@@ -398,7 +398,7 @@ function saveWorkspace(profileName, workspaceId) {
|
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
// src/client.ts
|
|
401
|
-
var CLI_VERSION = "1.18.
|
|
401
|
+
var CLI_VERSION = "1.18.2" ;
|
|
402
402
|
function buildClient(profileName) {
|
|
403
403
|
const { name, profile } = getProfile(profileName);
|
|
404
404
|
if (!profile) {
|
|
@@ -556,6 +556,15 @@ async function watchUntilTerminal(opts) {
|
|
|
556
556
|
info(`[${elapsed(start)}s] ${opts.label} \u2192 ${status}`);
|
|
557
557
|
lastStatus = status;
|
|
558
558
|
}
|
|
559
|
+
if (status === "pending_review") {
|
|
560
|
+
if (opts.json) emit(result.data, opts);
|
|
561
|
+
else {
|
|
562
|
+
info("awaiting review (a human decision is pending; not a failure)");
|
|
563
|
+
dim(`check later: nodaro jobs get ${opts.label}`);
|
|
564
|
+
process.exit(3);
|
|
565
|
+
}
|
|
566
|
+
return result;
|
|
567
|
+
}
|
|
559
568
|
if (TERMINAL.has(status)) {
|
|
560
569
|
if (opts.json) emit(result.data, opts);
|
|
561
570
|
else if (status === "completed") success(`completed in ${elapsed(start)}s`);
|