@melius-ai/cli 0.48.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 +1 -1
- package/dist/{chunk-IFXKJUQ2.js → chunk-HQBTQ4N6.js} +117 -21
- package/dist/src/index.js +1 -1
- package/package.json +1 -1
package/dist/bin/mel.js
CHANGED
|
@@ -7490,7 +7490,7 @@ function inferDirectFileNodeMediaTypeFromContentType(contentType) {
|
|
|
7490
7490
|
return null;
|
|
7491
7491
|
}
|
|
7492
7492
|
var SERVER_PLACED_NODE_REFUSALS = {
|
|
7493
|
-
"img-angle": "Angle
|
|
7493
|
+
"img-angle": "A Camera Angle node is made from a source image, not created directly",
|
|
7494
7494
|
element: "An element node is placed from the element library, not created directly",
|
|
7495
7495
|
linked_output: "A linked output node is placed by the feature whose output it shows, not created directly"
|
|
7496
7496
|
};
|
|
@@ -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",
|
|
@@ -10539,6 +10545,8 @@ var UPLOAD_PURPOSES = [
|
|
|
10539
10545
|
"brand-kit-guidelines"
|
|
10540
10546
|
];
|
|
10541
10547
|
var UPLOAD_PROXY_VIDEO_PURPOSES = [
|
|
10548
|
+
"ditto-source",
|
|
10549
|
+
// Upload commands issued before the Ditto rename still send this.
|
|
10542
10550
|
"cast-replacement-source",
|
|
10543
10551
|
"canvas-video"
|
|
10544
10552
|
];
|
|
@@ -11006,14 +11014,29 @@ var IMAGE_ANGLE_ROTATION_MAX_DEG = 180;
|
|
|
11006
11014
|
var IMAGE_ANGLE_TILT_MIN_DEG = -30;
|
|
11007
11015
|
var IMAGE_ANGLE_TILT_MAX_DEG = 90;
|
|
11008
11016
|
var IMAGE_ANGLE_MAX_BATCH_SIZE = 5;
|
|
11017
|
+
var IMAGE_ANGLE_ZOOMS = ["wide", "medium", "close"];
|
|
11018
|
+
var ImageAngleZoomSchema = external_exports.enum(IMAGE_ANGLE_ZOOMS);
|
|
11019
|
+
var DEFAULT_IMAGE_ANGLE_ZOOM = "medium";
|
|
11009
11020
|
var imageAngleFields = {
|
|
11010
11021
|
rotationDeg: external_exports.number().finite().int().min(IMAGE_ANGLE_ROTATION_MIN_DEG).max(IMAGE_ANGLE_ROTATION_MAX_DEG),
|
|
11011
|
-
tiltDeg: external_exports.number().finite().int().min(IMAGE_ANGLE_TILT_MIN_DEG).max(IMAGE_ANGLE_TILT_MAX_DEG)
|
|
11022
|
+
tiltDeg: external_exports.number().finite().int().min(IMAGE_ANGLE_TILT_MIN_DEG).max(IMAGE_ANGLE_TILT_MAX_DEG),
|
|
11023
|
+
zoom: ImageAngleZoomSchema.optional().describe(
|
|
11024
|
+
"Camera distance: wide is farther away, medium (the default) is normal, close is nearer"
|
|
11025
|
+
)
|
|
11012
11026
|
};
|
|
11027
|
+
var StoredImageAngleSchema = external_exports.object({
|
|
11028
|
+
rotationDeg: imageAngleFields.rotationDeg,
|
|
11029
|
+
tiltDeg: imageAngleFields.tiltDeg,
|
|
11030
|
+
zoom: ImageAngleZoomSchema.exclude([
|
|
11031
|
+
DEFAULT_IMAGE_ANGLE_ZOOM
|
|
11032
|
+
]).optional()
|
|
11033
|
+
}).strict();
|
|
11013
11034
|
function canonicalImageAngle(angle) {
|
|
11035
|
+
const { zoom } = angle;
|
|
11014
11036
|
return {
|
|
11015
11037
|
rotationDeg: angle.rotationDeg === IMAGE_ANGLE_ROTATION_MIN_DEG ? IMAGE_ANGLE_ROTATION_MAX_DEG : angle.rotationDeg === 0 ? 0 : angle.rotationDeg,
|
|
11016
|
-
tiltDeg: angle.tiltDeg === 0 ? 0 : angle.tiltDeg
|
|
11038
|
+
tiltDeg: angle.tiltDeg === 0 ? 0 : angle.tiltDeg,
|
|
11039
|
+
...zoom && zoom !== DEFAULT_IMAGE_ANGLE_ZOOM && { zoom }
|
|
11017
11040
|
};
|
|
11018
11041
|
}
|
|
11019
11042
|
var ImageAngleInputSchema = external_exports.object(imageAngleFields).strict().transform(canonicalImageAngle);
|
|
@@ -11036,7 +11059,7 @@ var CreateImageAngleBodySchema = external_exports.object({
|
|
|
11036
11059
|
angles: external_exports.array(ImageAngleInputSchema).min(1).max(IMAGE_ANGLE_MAX_BATCH_SIZE).superRefine((angles, context2) => {
|
|
11037
11060
|
const seen = /* @__PURE__ */ new Set();
|
|
11038
11061
|
for (const [index, angle] of angles.entries()) {
|
|
11039
|
-
const key2 = `${angle.rotationDeg}:${angle.tiltDeg}`;
|
|
11062
|
+
const key2 = `${angle.rotationDeg}:${angle.tiltDeg}:${angle.zoom ?? DEFAULT_IMAGE_ANGLE_ZOOM}`;
|
|
11040
11063
|
if (seen.has(key2)) {
|
|
11041
11064
|
context2.addIssue({
|
|
11042
11065
|
code: external_exports.ZodIssueCode.custom,
|
|
@@ -11220,7 +11243,7 @@ var ModelConfigSchema = external_exports.object({
|
|
|
11220
11243
|
// Drop unreadable collaborative settings so one node cannot fail the response.
|
|
11221
11244
|
imageAngle: ImageAngleInputSchema.pipe(
|
|
11222
11245
|
// OpenAPI needs the output shape of the canonicalizing transform.
|
|
11223
|
-
|
|
11246
|
+
StoredImageAngleSchema
|
|
11224
11247
|
).optional().catch(void 0),
|
|
11225
11248
|
videoEditMode: external_exports.literal("replacement").optional(),
|
|
11226
11249
|
model: external_exports.string(),
|
|
@@ -11575,6 +11598,8 @@ var VersionProducedBySchema = external_exports.object({
|
|
|
11575
11598
|
inputs: external_exports.array(RunInputSchema).nullable()
|
|
11576
11599
|
});
|
|
11577
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(),
|
|
11578
11603
|
id: external_exports.string().uuid(),
|
|
11579
11604
|
title: external_exports.string(),
|
|
11580
11605
|
modelConfig: ModelConfigSchema.nullable(),
|
|
@@ -12163,10 +12188,12 @@ var RunNodeBodySchema = external_exports.object({
|
|
|
12163
12188
|
/** SDXL guidance scale. Only honored on the SDXL model. */
|
|
12164
12189
|
guidanceScale: SdxlGuidanceScaleSchema.optional(),
|
|
12165
12190
|
/**
|
|
12166
|
-
* Seedance draft version to
|
|
12191
|
+
* Seedance draft version to upscale. The run reuses the draft's
|
|
12167
12192
|
* prompt, inputs, duration, aspect ratio, seed and audio setting.
|
|
12168
12193
|
*/
|
|
12169
12194
|
draftVersionId: external_exports.string().uuid().optional(),
|
|
12195
|
+
/** Explicit completion resolution; omitted requests retain 1080p. */
|
|
12196
|
+
draftResolution: external_exports.enum(DRAFT_FINISH_RESOLUTIONS).optional(),
|
|
12170
12197
|
/** Spend a free generation instead of credits; refused, never billed, when none covers the run. */
|
|
12171
12198
|
useFreeGeneration: external_exports.boolean().optional()
|
|
12172
12199
|
});
|
|
@@ -13188,6 +13215,9 @@ var CastCreationSettingsSchema = external_exports.object({
|
|
|
13188
13215
|
visuals: external_exports.enum(["auto", "on", "off"]).optional().describe(
|
|
13189
13216
|
"Auto chooses useful supporting visuals from the script, actions and props across video styles, and may keep generated footage alone. Off skips added visuals. On remains accepted for compatibility. Subtitles are separate; generation eligibility still applies."
|
|
13190
13217
|
),
|
|
13218
|
+
visualsBrief: external_exports.string().trim().min(1).max(1e3).optional().describe(
|
|
13219
|
+
"The member's direction for every added visual, in their words: look, colors, type, motion, mood and how many. Never filmed; it asks for added visuals, so Visuals must not be Off."
|
|
13220
|
+
),
|
|
13191
13221
|
pronunciations: external_exports.array(CastPronunciationSchema).max(MAX_CAST_PRONUNCIATIONS).optional().describe(
|
|
13192
13222
|
'Confirmed spoken spellings, e.g. [{"word":"Emmaus","pronunciation":"ee-may-us"}]. Applied to speech only; keep the original spelling in the script and visual directions.'
|
|
13193
13223
|
)
|
|
@@ -13237,7 +13267,13 @@ var CastAuthoredSectionSchema = external_exports.object({
|
|
|
13237
13267
|
* ("Close-up in front of a whiteboard"), held on its first line. It can
|
|
13238
13268
|
* name avatars and props the way an action does.
|
|
13239
13269
|
*/
|
|
13240
|
-
scene: external_exports.string().optional()
|
|
13270
|
+
scene: external_exports.string().optional(),
|
|
13271
|
+
/**
|
|
13272
|
+
* What the member wants added on screen while this line is spoken, in
|
|
13273
|
+
* their words ("STOP slams in word by word"). Never filmed: the visuals
|
|
13274
|
+
* pass answers it over the finished clip.
|
|
13275
|
+
*/
|
|
13276
|
+
onScreen: external_exports.string().optional()
|
|
13241
13277
|
});
|
|
13242
13278
|
function dropShotFieldsFromSpokenSections(sections) {
|
|
13243
13279
|
return sections.map((section) => {
|
|
@@ -14136,6 +14172,7 @@ var CastVideoInputSchema = external_exports.object({
|
|
|
14136
14172
|
text: external_exports.string().max(5e3),
|
|
14137
14173
|
action: external_exports.string().max(2e3).optional(),
|
|
14138
14174
|
scene: external_exports.string().max(2e3).optional(),
|
|
14175
|
+
onScreen: external_exports.string().trim().min(1).max(500).optional(),
|
|
14139
14176
|
/** The id of the avatar who says it; absent is `avatar`. */
|
|
14140
14177
|
speakerId: external_exports.string().max(200).optional()
|
|
14141
14178
|
}).strict().superRefine(refuseShotFieldsOffShots)
|
|
@@ -14174,6 +14211,8 @@ var CastVideoReviewSchema = external_exports.object({
|
|
|
14174
14211
|
resolution: OutputResolutionSchema.optional(),
|
|
14175
14212
|
subtitles: external_exports.string(),
|
|
14176
14213
|
template: external_exports.string(),
|
|
14214
|
+
/** Auto, Off or Unavailable, for a member who can have added visuals; absent otherwise. */
|
|
14215
|
+
visuals: external_exports.string().optional(),
|
|
14177
14216
|
/** What preparation changed from the request, said where the member reviews it. */
|
|
14178
14217
|
notice: external_exports.string().optional(),
|
|
14179
14218
|
/** Everyone the video casts, `avatar` first, where it casts several. */
|
|
@@ -15064,9 +15103,13 @@ var EnterpriseStripeBillingAuditEntrySchema = external_exports.object({
|
|
|
15064
15103
|
notes: external_exports.string().optional()
|
|
15065
15104
|
});
|
|
15066
15105
|
var EnterpriseOrderSchema = EnterpriseOrderDetailsSchema.extend({
|
|
15106
|
+
/** Members plus pending invites. Null means unlimited; omission preserves the saved limit. */
|
|
15107
|
+
seatLimit: external_exports.number().int().positive().max(Number.MAX_SAFE_INTEGER).nullable().optional(),
|
|
15067
15108
|
stripeBilling: EnterpriseStripeBillingInputSchema.optional()
|
|
15068
15109
|
});
|
|
15069
|
-
var CustomerEnterpriseOrderSchema = EnterpriseOrderSchema.
|
|
15110
|
+
var CustomerEnterpriseOrderSchema = EnterpriseOrderSchema.omit({
|
|
15111
|
+
seatLimit: true
|
|
15112
|
+
}).extend({
|
|
15070
15113
|
stripeBilling: CustomerEnterpriseStripeBillingSchema.optional()
|
|
15071
15114
|
});
|
|
15072
15115
|
var CustomPlanCreditGrantScheduleSchema = external_exports.object({
|
|
@@ -15412,7 +15455,7 @@ var CastUpscaleOptionSchema = external_exports.object({
|
|
|
15412
15455
|
resolution: CastUpscaleResolutionSchema,
|
|
15413
15456
|
/**
|
|
15414
15457
|
* What upscaling the take to this size charges, priced the way the
|
|
15415
|
-
*
|
|
15458
|
+
* active upscaler prices the prepared parts. Every size can be
|
|
15416
15459
|
* chosen again, each time as a new take at this price.
|
|
15417
15460
|
*/
|
|
15418
15461
|
creditCost: external_exports.number().int().nonnegative(),
|
|
@@ -15432,7 +15475,7 @@ var CastUpscaleOptionSchema = external_exports.object({
|
|
|
15432
15475
|
generationId: external_exports.string().uuid().nullable().optional()
|
|
15433
15476
|
});
|
|
15434
15477
|
var CastUpscaleSchema = external_exports.object({
|
|
15435
|
-
/** The upscaler's registry id
|
|
15478
|
+
/** The upscaler's registry id. */
|
|
15436
15479
|
model: external_exports.string(),
|
|
15437
15480
|
/** The upscaler's name, as the canvas names it. */
|
|
15438
15481
|
modelName: external_exports.string(),
|
|
@@ -15447,7 +15490,7 @@ var CastUpscaleSchema = external_exports.object({
|
|
|
15447
15490
|
var CastUpscaledFromSchema = external_exports.object({
|
|
15448
15491
|
generationId: external_exports.string().uuid(),
|
|
15449
15492
|
resolution: CastUpscaleResolutionSchema,
|
|
15450
|
-
/** The upscaler's registry id
|
|
15493
|
+
/** The upscaler's registry id. */
|
|
15451
15494
|
model: external_exports.string(),
|
|
15452
15495
|
/** The upscaler's name, as the canvas names it. */
|
|
15453
15496
|
modelName: external_exports.string()
|
|
@@ -15495,6 +15538,7 @@ var CAST_ENTRY_POINTS = [
|
|
|
15495
15538
|
"example_link",
|
|
15496
15539
|
"canvas",
|
|
15497
15540
|
"guest_draft",
|
|
15541
|
+
"offers_menu",
|
|
15498
15542
|
"direct"
|
|
15499
15543
|
];
|
|
15500
15544
|
var CastEntryPointSchema = external_exports.enum(CAST_ENTRY_POINTS);
|
|
@@ -19289,7 +19333,14 @@ var SearchDittoTemplatesBodySchema = createCursorPaginationRequestSchema({ defau
|
|
|
19289
19333
|
});
|
|
19290
19334
|
var DittoTemplateShelfCategorySchema = external_exports.string().trim().min(1).max(64).optional();
|
|
19291
19335
|
var SearchPublicDittoTemplatesBodySchema = SearchDittoTemplatesBodySchema.extend({
|
|
19292
|
-
category: DittoTemplateShelfCategorySchema
|
|
19336
|
+
category: DittoTemplateShelfCategorySchema,
|
|
19337
|
+
/**
|
|
19338
|
+
* Every published template in a random order that each new search
|
|
19339
|
+
* picks, as a member's `shuffle` does; the cursor keeps that order.
|
|
19340
|
+
* `query` and `category` take precedence when set, and it takes
|
|
19341
|
+
* precedence over `sort`.
|
|
19342
|
+
*/
|
|
19343
|
+
shuffle: external_exports.boolean().optional()
|
|
19293
19344
|
});
|
|
19294
19345
|
var SearchMemberDittoTemplatesBodySchema = SearchDittoTemplatesBodySchema.extend({
|
|
19295
19346
|
/**
|
|
@@ -21222,7 +21273,7 @@ var canvasContract = c5.router({
|
|
|
21222
21273
|
}
|
|
21223
21274
|
},
|
|
21224
21275
|
createImageAngle: {
|
|
21225
|
-
summary: "Generate
|
|
21276
|
+
summary: "Generate Camera Angle images",
|
|
21226
21277
|
method: "POST",
|
|
21227
21278
|
path: "/canvases/:canvasId/angles",
|
|
21228
21279
|
pathParams: external_exports.object({ canvasId: external_exports.string().uuid() }),
|
|
@@ -24726,6 +24777,29 @@ var CastCameraReadSchema = external_exports.object({
|
|
|
24726
24777
|
)
|
|
24727
24778
|
});
|
|
24728
24779
|
|
|
24780
|
+
// ../api-contract/src/cast/video-style-read.ts
|
|
24781
|
+
var CAST_VIDEO_STYLE_READ_MAX_SECTIONS = 30;
|
|
24782
|
+
var CAST_VIDEO_STYLE_READ_MAX_PART_LENGTH = 4e3;
|
|
24783
|
+
var SectionPartSchema = external_exports.string().max(CAST_VIDEO_STYLE_READ_MAX_PART_LENGTH);
|
|
24784
|
+
var CastVideoStyleReadBodySchema = external_exports.object({
|
|
24785
|
+
/** The script as it will be filmed: each section's words and directions. */
|
|
24786
|
+
sections: external_exports.array(
|
|
24787
|
+
external_exports.object({
|
|
24788
|
+
text: SectionPartSchema,
|
|
24789
|
+
action: SectionPartSchema.optional(),
|
|
24790
|
+
scene: SectionPartSchema.optional()
|
|
24791
|
+
}).strict()
|
|
24792
|
+
).min(1).max(CAST_VIDEO_STYLE_READ_MAX_SECTIONS)
|
|
24793
|
+
}).strict();
|
|
24794
|
+
var CastVideoStyleReadSchema = external_exports.object({
|
|
24795
|
+
/**
|
|
24796
|
+
* The style Auto films the script in. Absent when the read could not run
|
|
24797
|
+
* or the team does not have `cast-auto-video-style`: Auto then renders as
|
|
24798
|
+
* its own Self-filmed base.
|
|
24799
|
+
*/
|
|
24800
|
+
videoStyle: CastVideoStyleIdSchema.exclude(["auto"]).optional()
|
|
24801
|
+
});
|
|
24802
|
+
|
|
24729
24803
|
// ../api-contract/src/cast/choreography.ts
|
|
24730
24804
|
var CAST_CHOREOGRAPHY_MAX_SECTIONS = 30;
|
|
24731
24805
|
var SectionTextSchema = external_exports.string().max(4e3);
|
|
@@ -24972,6 +25046,17 @@ var castContract = c18.router({
|
|
|
24972
25046
|
},
|
|
24973
25047
|
summary: "Read which parts of the camera each Cast section's action or scene names"
|
|
24974
25048
|
},
|
|
25049
|
+
readCastVideoStyle: {
|
|
25050
|
+
method: "POST",
|
|
25051
|
+
path: "/cast/video-style-read",
|
|
25052
|
+
body: CastVideoStyleReadBodySchema,
|
|
25053
|
+
responses: {
|
|
25054
|
+
200: CastVideoStyleReadSchema,
|
|
25055
|
+
400: MessageResponseSchema,
|
|
25056
|
+
403: MessageResponseSchema
|
|
25057
|
+
},
|
|
25058
|
+
summary: "Read which video style a Cast script reads as, for the Auto style"
|
|
25059
|
+
},
|
|
24975
25060
|
readCastChoreography: {
|
|
24976
25061
|
method: "POST",
|
|
24977
25062
|
path: "/cast/choreography",
|
|
@@ -26263,7 +26348,7 @@ function isMajorUpgrade(current, latest) {
|
|
|
26263
26348
|
return l[0] > c20[0];
|
|
26264
26349
|
}
|
|
26265
26350
|
function shouldShowUpgradeNotice(ctx = {}) {
|
|
26266
|
-
const current = ctx.current ?? "0.
|
|
26351
|
+
const current = ctx.current ?? "0.50.0";
|
|
26267
26352
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
26268
26353
|
const env = ctx.env ?? process.env;
|
|
26269
26354
|
const isTty = ctx.isTty ?? Boolean(process.stderr.isTTY);
|
|
@@ -26284,7 +26369,7 @@ Upgrade: npm install -g @melius-ai/cli@latest (or: brew update && brew upgrade
|
|
|
26284
26369
|
function printUpgradeNoticeIfNeeded(ctx = {}) {
|
|
26285
26370
|
try {
|
|
26286
26371
|
if (!shouldShowUpgradeNotice(ctx)) return;
|
|
26287
|
-
const current = ctx.current ?? "0.
|
|
26372
|
+
const current = ctx.current ?? "0.50.0";
|
|
26288
26373
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
26289
26374
|
process.stderr.write(formatUpgradeNotice(current, latest));
|
|
26290
26375
|
} catch {
|
|
@@ -26391,7 +26476,7 @@ function createClient(config) {
|
|
|
26391
26476
|
"Bypass-Tunnel-Reminder": "true",
|
|
26392
26477
|
[CUSTOM_REQUEST_HEADERS.meliusClient]: buildMeliusClientHeader({
|
|
26393
26478
|
surface: "cli",
|
|
26394
|
-
version: "0.
|
|
26479
|
+
version: "0.50.0"
|
|
26395
26480
|
})
|
|
26396
26481
|
};
|
|
26397
26482
|
if (config.teamId) {
|
|
@@ -26894,6 +26979,7 @@ function output(result, getOutputOpts) {
|
|
|
26894
26979
|
}
|
|
26895
26980
|
var angleHelp = `
|
|
26896
26981
|
Rotation: integer -180..180; tilt: integer -30..90 (positive is above).
|
|
26982
|
+
Optional zoom: wide (camera farther away), medium (default) or close (closer).
|
|
26897
26983
|
Requires the angles-node feature and editor access. Source must be a completed image.
|
|
26898
26984
|
Returns: creditCost for quotes; nodeId, nodeRunId, creditCost and optional batch results for generation; approvalId when member approval is required.
|
|
26899
26985
|
Use mel run wait <nodeRunId> to await completion, and mel canvas content <canvasId> --include-all-versions to inspect saved versions.
|
|
@@ -26917,7 +27003,7 @@ function registerAngleCommands(program2, getOutputOpts) {
|
|
|
26917
27003
|
"Completed image node ID from mel canvas content"
|
|
26918
27004
|
).requiredOption(
|
|
26919
27005
|
"--angles <json>",
|
|
26920
|
-
"Array of one to five distinct {rotationDeg, tiltDeg}
|
|
27006
|
+
"Array of one to five distinct {rotationDeg, tiltDeg, zoom?} views"
|
|
26921
27007
|
);
|
|
26922
27008
|
if (action === "create")
|
|
26923
27009
|
command.requiredOption(
|
|
@@ -26929,6 +27015,7 @@ function registerAngleCommands(program2, getOutputOpts) {
|
|
|
26929
27015
|
angleHelp + `Examples:
|
|
26930
27016
|
mel ${parent.name()} ${name} <canvasId> <sourceNodeId> --angles '[{"rotationDeg":37,"tiltDeg":12}]'${action === "create" ? " --request-key <key>" : ""}
|
|
26931
27017
|
mel ${parent.name()} ${name} <canvasId> <sourceNodeId> --angles '[{"rotationDeg":-45,"tiltDeg":0},{"rotationDeg":45,"tiltDeg":0}]'${action === "create" ? " --request-key <key>" : ""}
|
|
27018
|
+
mel ${parent.name()} ${name} <canvasId> <sourceNodeId> --angles '[{"rotationDeg":45,"tiltDeg":0,"zoom":"close"}]'${action === "create" ? " --request-key <key>" : ""}
|
|
26932
27019
|
`
|
|
26933
27020
|
).action(
|
|
26934
27021
|
async (canvasId, sourceNodeId, options) => {
|
|
@@ -26975,7 +27062,10 @@ function registerAngleCommands(program2, getOutputOpts) {
|
|
|
26975
27062
|
}
|
|
26976
27063
|
angle.command("regenerate").description(
|
|
26977
27064
|
"Generate a new version of an existing Angle and return run IDs"
|
|
26978
|
-
).argument("<canvasId>", "Canvas ID from mel canvas list").argument("<nodeId>", "Angle node ID from mel canvas content").requiredOption(
|
|
27065
|
+
).argument("<canvasId>", "Canvas ID from mel canvas list").argument("<nodeId>", "Angle node ID from mel canvas content").requiredOption(
|
|
27066
|
+
"--angle <json>",
|
|
27067
|
+
"One {rotationDeg, tiltDeg, zoom?} view"
|
|
27068
|
+
).requiredOption(
|
|
26979
27069
|
"--request-key <key>",
|
|
26980
27070
|
"Stable idempotency key for this submission"
|
|
26981
27071
|
).addHelpText(
|
|
@@ -31497,7 +31587,7 @@ function registerRunCommands(program2, getOutputOpts) {
|
|
|
31497
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"
|
|
31498
31588
|
).option(
|
|
31499
31589
|
"--draft-version-id <versionId>",
|
|
31500
|
-
'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'
|
|
31501
31591
|
).addOption(useFreeGenerationOption()).addHelpText(
|
|
31502
31592
|
"after",
|
|
31503
31593
|
`
|
|
@@ -31525,6 +31615,11 @@ Examples:
|
|
|
31525
31615
|
$ mel run start <nodeId> --canvas-id <canvasId> --draft-version-id <draftVersionId>
|
|
31526
31616
|
$ mel run start <audioNodeId> --canvas-id <canvasId> --voice-id <voiceId>
|
|
31527
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])
|
|
31528
31623
|
).action(
|
|
31529
31624
|
async (nodeId, opts) => {
|
|
31530
31625
|
const client = getClient();
|
|
@@ -31580,7 +31675,8 @@ Examples:
|
|
|
31580
31675
|
postProcess: opts.postProcess
|
|
31581
31676
|
},
|
|
31582
31677
|
...opts.draftVersionId !== void 0 && {
|
|
31583
|
-
draftVersionId: opts.draftVersionId
|
|
31678
|
+
draftVersionId: opts.draftVersionId,
|
|
31679
|
+
draftResolution: opts.draftResolution
|
|
31584
31680
|
},
|
|
31585
31681
|
...opts.useFreeGeneration && {
|
|
31586
31682
|
useFreeGeneration: true
|
|
@@ -33615,7 +33711,7 @@ function withDefaultHelp(args) {
|
|
|
33615
33711
|
}
|
|
33616
33712
|
function createProgram() {
|
|
33617
33713
|
const program2 = new Command();
|
|
33618
|
-
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(
|
|
33619
33715
|
"--fields <fields>",
|
|
33620
33716
|
"Select specific output fields (comma-separated)"
|
|
33621
33717
|
).option("--quiet", "Suppress output, exit code only").option("--verbose", "Log request/response metadata to stderr").addHelpText(
|
package/dist/src/index.js
CHANGED