@nodaro/cli 1.47.0 → 1.48.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.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ var require_package = __commonJS({
|
|
|
42
42
|
"package.json"(exports$1, module) {
|
|
43
43
|
module.exports = {
|
|
44
44
|
name: "@nodaro/cli",
|
|
45
|
-
version: "1.
|
|
45
|
+
version: "1.48.0",
|
|
46
46
|
description: "Command-line interface for Nodaro \u2014 list and run workflows, inspect jobs and executions, manage projects from the terminal.",
|
|
47
47
|
type: "module",
|
|
48
48
|
license: "Apache-2.0",
|
|
@@ -83,8 +83,8 @@ var require_package = __commonJS({
|
|
|
83
83
|
"@inquirer/confirm": "^6.0.12",
|
|
84
84
|
"@inquirer/input": "^5.0.12",
|
|
85
85
|
"@inquirer/select": "^5.1.4",
|
|
86
|
-
"@nodaro/sdk": "^2.
|
|
87
|
-
"@nodaro/shared": "^3.
|
|
86
|
+
"@nodaro/sdk": "^2.68.1",
|
|
87
|
+
"@nodaro/shared": "^3.60.1",
|
|
88
88
|
commander: "^12.1.0",
|
|
89
89
|
picocolors: "^1.1.1",
|
|
90
90
|
"@nodaro/prompts": "^1.53.1"
|
|
@@ -414,7 +414,7 @@ function saveWorkspace(profileName, workspaceId) {
|
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/client.ts
|
|
417
|
-
var CLI_VERSION = "1.
|
|
417
|
+
var CLI_VERSION = "1.48.0" ;
|
|
418
418
|
function buildPublicClient(opts = {}) {
|
|
419
419
|
const { profile } = getProfile(opts.profile);
|
|
420
420
|
return createClient({
|
|
@@ -6161,7 +6161,7 @@ function addRunFlags(cmd) {
|
|
|
6161
6161
|
"1-based example, as `trends get` lists its examples, whose pictures fill the optional slots you leave empty (default 1); leave it out on a trend with no example, whose empty optional slots stay as in the original; a Full depth trend uses its default image for the role if one is set, otherwise the original's look"
|
|
6162
6162
|
).option("--details <text>", "your own words (at most 1,000 characters); mention a slot as {slot:<key>}").option("--preview", "a 4-second preview run (only when the trend offers one)").addOption(
|
|
6163
6163
|
new Option("--resolution <r>", "one the trend offers (`trends get`); default its first: 480p, or 720p on a Nodaro Motion Pulse trend").choices([...RESOLUTIONS])
|
|
6164
|
-
).option("--
|
|
6164
|
+
).option("--draft", "make a 480p draft that Full Quality can finish at 1080p (Nodaro Motion Prism only; without it a run is plain)").option("--no-draft", "a plain run, the default (still accepted)");
|
|
6165
6165
|
}
|
|
6166
6166
|
function checkSlotKey(flag, spec, key2) {
|
|
6167
6167
|
if (!SLOT_KEY_RE.test(key2) || key2 === "__proto__") {
|
|
@@ -6225,7 +6225,7 @@ function buildRequest(flags) {
|
|
|
6225
6225
|
if (flags.details !== void 0) request.details = flags.details;
|
|
6226
6226
|
if (flags.preview) request.preview = true;
|
|
6227
6227
|
if (flags.resolution) request.resolution = flags.resolution;
|
|
6228
|
-
if (flags.draft
|
|
6228
|
+
if (flags.draft !== void 0) request.draft = flags.draft;
|
|
6229
6229
|
return request;
|
|
6230
6230
|
}
|
|
6231
6231
|
function trendsCommand() {
|
|
@@ -6370,9 +6370,9 @@ function trendsCommand() {
|
|
|
6370
6370
|
}
|
|
6371
6371
|
function fullQualityCommand() {
|
|
6372
6372
|
const cmd = new Command("full-quality").description(
|
|
6373
|
-
"finish a
|
|
6373
|
+
"finish a Nodaro Motion Prism draft (a Nodaro Motion or trend run made with draft: true) at Full Quality: its same take at 1080p, as a new job; Nodaro Motion Pulse has none \u2014 `estimate` quotes it (free), `run` SPENDS CREDITS"
|
|
6374
6374
|
);
|
|
6375
|
-
cmd.command("estimate <jobId>").description("quote finishing the
|
|
6375
|
+
cmd.command("estimate <jobId>").description("quote finishing the draft at Full Quality (free): the credits, and until when it can be finished").option("--profile <name>").option("--json").action(async (jobId, opts) => {
|
|
6376
6376
|
try {
|
|
6377
6377
|
const quote = neutralQuote(await buildClient(opts.profile).castSwap.fullQualityEstimate(jobId));
|
|
6378
6378
|
if (opts.json) {
|