@melius-ai/cli 0.49.0 → 0.50.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/bin/mel.js
CHANGED
|
@@ -8118,6 +8118,12 @@ function parseCustomResolution(resolution) {
|
|
|
8118
8118
|
return { width, height };
|
|
8119
8119
|
}
|
|
8120
8120
|
|
|
8121
|
+
// ../canvas-domain/src/variant-selection.ts
|
|
8122
|
+
var DRAFT_FINAL_RESOLUTION = "1080p";
|
|
8123
|
+
var DRAFT_FINISH_RESOLUTIONS = [DRAFT_FINAL_RESOLUTION, "4k"];
|
|
8124
|
+
var DRAFT_LIFETIME_DAYS = 7;
|
|
8125
|
+
var DRAFT_LIFETIME_MS = DRAFT_LIFETIME_DAYS * 24 * 60 * 60 * 1e3;
|
|
8126
|
+
|
|
8121
8127
|
// ../canvas-domain/src/condensed-media-node.ts
|
|
8122
8128
|
var CONDENSED_MEDIA_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
8123
8129
|
"image",
|
|
@@ -11592,6 +11598,8 @@ var VersionProducedBySchema = external_exports.object({
|
|
|
11592
11598
|
inputs: external_exports.array(RunInputSchema).nullable()
|
|
11593
11599
|
});
|
|
11594
11600
|
var NodeVersionResponseSchema = external_exports.object({
|
|
11601
|
+
/** Completion choices for this saved draft, computed from its original provider. */
|
|
11602
|
+
draftFinishResolutions: external_exports.array(external_exports.enum(DRAFT_FINISH_RESOLUTIONS)).optional(),
|
|
11595
11603
|
id: external_exports.string().uuid(),
|
|
11596
11604
|
title: external_exports.string(),
|
|
11597
11605
|
modelConfig: ModelConfigSchema.nullable(),
|
|
@@ -12180,10 +12188,12 @@ var RunNodeBodySchema = external_exports.object({
|
|
|
12180
12188
|
/** SDXL guidance scale. Only honored on the SDXL model. */
|
|
12181
12189
|
guidanceScale: SdxlGuidanceScaleSchema.optional(),
|
|
12182
12190
|
/**
|
|
12183
|
-
* Seedance draft version to
|
|
12191
|
+
* Seedance draft version to upscale. The run reuses the draft's
|
|
12184
12192
|
* prompt, inputs, duration, aspect ratio, seed and audio setting.
|
|
12185
12193
|
*/
|
|
12186
12194
|
draftVersionId: external_exports.string().uuid().optional(),
|
|
12195
|
+
/** Explicit completion resolution; omitted requests retain 1080p. */
|
|
12196
|
+
draftResolution: external_exports.enum(DRAFT_FINISH_RESOLUTIONS).optional(),
|
|
12187
12197
|
/** Spend a free generation instead of credits; refused, never billed, when none covers the run. */
|
|
12188
12198
|
useFreeGeneration: external_exports.boolean().optional()
|
|
12189
12199
|
});
|
|
@@ -26338,7 +26348,7 @@ function isMajorUpgrade(current, latest) {
|
|
|
26338
26348
|
return l[0] > c20[0];
|
|
26339
26349
|
}
|
|
26340
26350
|
function shouldShowUpgradeNotice(ctx = {}) {
|
|
26341
|
-
const current = ctx.current ?? "0.
|
|
26351
|
+
const current = ctx.current ?? "0.50.0";
|
|
26342
26352
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
26343
26353
|
const env = ctx.env ?? process.env;
|
|
26344
26354
|
const isTty = ctx.isTty ?? Boolean(process.stderr.isTTY);
|
|
@@ -26359,7 +26369,7 @@ Upgrade: npm install -g @melius-ai/cli@latest (or: brew update && brew upgrade
|
|
|
26359
26369
|
function printUpgradeNoticeIfNeeded(ctx = {}) {
|
|
26360
26370
|
try {
|
|
26361
26371
|
if (!shouldShowUpgradeNotice(ctx)) return;
|
|
26362
|
-
const current = ctx.current ?? "0.
|
|
26372
|
+
const current = ctx.current ?? "0.50.0";
|
|
26363
26373
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
26364
26374
|
process.stderr.write(formatUpgradeNotice(current, latest));
|
|
26365
26375
|
} catch {
|
|
@@ -26466,7 +26476,7 @@ function createClient(config) {
|
|
|
26466
26476
|
"Bypass-Tunnel-Reminder": "true",
|
|
26467
26477
|
[CUSTOM_REQUEST_HEADERS.meliusClient]: buildMeliusClientHeader({
|
|
26468
26478
|
surface: "cli",
|
|
26469
|
-
version: "0.
|
|
26479
|
+
version: "0.50.0"
|
|
26470
26480
|
})
|
|
26471
26481
|
};
|
|
26472
26482
|
if (config.teamId) {
|
|
@@ -31577,7 +31587,7 @@ function registerRunCommands(program2, getOutputOpts) {
|
|
|
31577
31587
|
"ElevenLabs voice id for audio nodes in text-to-speech or audio-to-audio mode. Required for those modes unless persisted on the node"
|
|
31578
31588
|
).option(
|
|
31579
31589
|
"--draft-version-id <versionId>",
|
|
31580
|
-
'Upscale a Seedance draft to 1080p: a finished draft version on this node (modelConfig.tier "draft" in mel canvas content --include-all-versions). Renders that draft again with its own
|
|
31590
|
+
'Upscale a Seedance draft (defaults to 1080p): a finished draft version on this node (modelConfig.tier "draft" in mel canvas content --include-all-versions). Renders that draft again with its own settings as a new version. Use --draft-resolution to choose a resolution advertised by draftFinishResolutions'
|
|
31581
31591
|
).addOption(useFreeGenerationOption()).addHelpText(
|
|
31582
31592
|
"after",
|
|
31583
31593
|
`
|
|
@@ -31605,6 +31615,11 @@ Examples:
|
|
|
31605
31615
|
$ mel run start <nodeId> --canvas-id <canvasId> --draft-version-id <draftVersionId>
|
|
31606
31616
|
$ mel run start <audioNodeId> --canvas-id <canvasId> --voice-id <voiceId>
|
|
31607
31617
|
$ mel run start <audioNodeId> --canvas-id <canvasId> --duration 10`
|
|
31618
|
+
).addOption(
|
|
31619
|
+
new Option(
|
|
31620
|
+
"--draft-resolution <resolution>",
|
|
31621
|
+
"Finish the saved draft at this resolution"
|
|
31622
|
+
).choices([...DRAFT_FINISH_RESOLUTIONS])
|
|
31608
31623
|
).action(
|
|
31609
31624
|
async (nodeId, opts) => {
|
|
31610
31625
|
const client = getClient();
|
|
@@ -31660,7 +31675,8 @@ Examples:
|
|
|
31660
31675
|
postProcess: opts.postProcess
|
|
31661
31676
|
},
|
|
31662
31677
|
...opts.draftVersionId !== void 0 && {
|
|
31663
|
-
draftVersionId: opts.draftVersionId
|
|
31678
|
+
draftVersionId: opts.draftVersionId,
|
|
31679
|
+
draftResolution: opts.draftResolution
|
|
31664
31680
|
},
|
|
31665
31681
|
...opts.useFreeGeneration && {
|
|
31666
31682
|
useFreeGeneration: true
|
|
@@ -33695,7 +33711,7 @@ function withDefaultHelp(args) {
|
|
|
33695
33711
|
}
|
|
33696
33712
|
function createProgram() {
|
|
33697
33713
|
const program2 = new Command();
|
|
33698
|
-
program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.
|
|
33714
|
+
program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.50.0").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
|
|
33699
33715
|
"--fields <fields>",
|
|
33700
33716
|
"Select specific output fields (comma-separated)"
|
|
33701
33717
|
).option("--quiet", "Suppress output, exit code only").option("--verbose", "Log request/response metadata to stderr").addHelpText(
|
package/dist/src/index.js
CHANGED