@melius-ai/cli 0.47.0 → 0.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/bin/mel.js +1 -1
- package/dist/{chunk-D3PTVBQC.js → chunk-IFXKJUQ2.js} +162 -33
- package/dist/src/index.js +1 -1
- package/package.json +1 -1
package/dist/bin/mel.js
CHANGED
|
@@ -9757,6 +9757,7 @@ function planAutoformatRequest(nodes, edges, request, savedLayout) {
|
|
|
9757
9757
|
}
|
|
9758
9758
|
|
|
9759
9759
|
// ../canvas-domain/src/video-replacement.ts
|
|
9760
|
+
var VIDEO_REPLACEMENT_MAX_DURATION_SECONDS = 30;
|
|
9760
9761
|
var VideoReplacementCapabilitySchema = external_exports.object({
|
|
9761
9762
|
fullOutputMaxDurationSeconds: external_exports.number().positive(),
|
|
9762
9763
|
maxReferenceImages: external_exports.number().int().positive(),
|
|
@@ -12575,7 +12576,14 @@ var BulkRunCreditShortfallModeSchema = external_exports.enum([
|
|
|
12575
12576
|
]);
|
|
12576
12577
|
var BulkNodeRunStartResponseSchema = BulkNodeRunResponseSchema.extend({
|
|
12577
12578
|
/** Nodes left unrun because the team's credits covered only part of the run. */
|
|
12578
|
-
creditSkippedNodeIds: external_exports.array(external_exports.string().uuid()).optional()
|
|
12579
|
+
creditSkippedNodeIds: external_exports.array(external_exports.string().uuid()).optional(),
|
|
12580
|
+
/**
|
|
12581
|
+
* Nodes whose failure hands their input on instead of failing what they
|
|
12582
|
+
* feed (a Cast setting picture, a long video's look), so the run still
|
|
12583
|
+
* delivers. Empty when the run has none; absent from servers that
|
|
12584
|
+
* predate it.
|
|
12585
|
+
*/
|
|
12586
|
+
fallbackNodeIds: external_exports.array(external_exports.string().uuid()).optional()
|
|
12579
12587
|
});
|
|
12580
12588
|
|
|
12581
12589
|
// ../api-contract/src/canvas/schema/direct-mutation.ts
|
|
@@ -13177,6 +13185,9 @@ var MAX_CAST_PRONUNCIATIONS = 50;
|
|
|
13177
13185
|
var CastCreationSettingsSchema = external_exports.object({
|
|
13178
13186
|
videoStyle: CastVideoStyleSchema,
|
|
13179
13187
|
speech: external_exports.enum(["on-screen", "narration"]),
|
|
13188
|
+
visuals: external_exports.enum(["auto", "on", "off"]).optional().describe(
|
|
13189
|
+
"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
|
+
),
|
|
13180
13191
|
pronunciations: external_exports.array(CastPronunciationSchema).max(MAX_CAST_PRONUNCIATIONS).optional().describe(
|
|
13181
13192
|
'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.'
|
|
13182
13193
|
)
|
|
@@ -13750,8 +13761,9 @@ var PrepareCastScriptBodySchema = external_exports.object({
|
|
|
13750
13761
|
longVideo: external_exports.boolean(),
|
|
13751
13762
|
readPacing: external_exports.boolean()
|
|
13752
13763
|
});
|
|
13764
|
+
var MAX_PREPARED_CAST_SCRIPT_SECTIONS = 100;
|
|
13753
13765
|
var PrepareCastScriptResponseSchema = external_exports.object({
|
|
13754
|
-
sections: external_exports.array(CastScriptSectionSchema).min(1).max(
|
|
13766
|
+
sections: external_exports.array(CastScriptSectionSchema).min(1).max(MAX_PREPARED_CAST_SCRIPT_SECTIONS),
|
|
13755
13767
|
requestedSeconds: external_exports.number().positive().nullable(),
|
|
13756
13768
|
estimatedSeconds: external_exports.number().nonnegative()
|
|
13757
13769
|
});
|
|
@@ -13781,7 +13793,7 @@ var CastLocationRequestSchema = external_exports.object({
|
|
|
13781
13793
|
cutaway: CastAuthoredSectionSchema.shape.cutaway
|
|
13782
13794
|
})
|
|
13783
13795
|
).min(1).max(100)
|
|
13784
|
-
).min(
|
|
13796
|
+
).min(1).max(100),
|
|
13785
13797
|
/**
|
|
13786
13798
|
* Also read who else is in each setting (`cast-background-extras`).
|
|
13787
13799
|
* Absent, the read is as it was and no setting names any people.
|
|
@@ -13803,7 +13815,7 @@ var CAST_OUTFIT_KINDS = [
|
|
|
13803
13815
|
"accessory"
|
|
13804
13816
|
];
|
|
13805
13817
|
var CastLocationResponseSchema = external_exports.object({
|
|
13806
|
-
speech: external_exports.array(external_exports.array(CastCreationSettingsSchema.shape.speech).min(1).max(100)).min(
|
|
13818
|
+
speech: external_exports.array(external_exports.array(CastCreationSettingsSchema.shape.speech).min(1).max(100)).min(1).max(100),
|
|
13807
13819
|
locations: external_exports.array(
|
|
13808
13820
|
external_exports.object({
|
|
13809
13821
|
name: external_exports.string().trim().min(1).max(80).regex(/^[^[\]{}\n\r]+$/),
|
|
@@ -14118,12 +14130,12 @@ var CastVideoInputSchema = external_exports.object({
|
|
|
14118
14130
|
CastAuthoredSectionSchema.omit({
|
|
14119
14131
|
id: true,
|
|
14120
14132
|
continues: true,
|
|
14121
|
-
inShot: true
|
|
14122
|
-
scene: true
|
|
14133
|
+
inShot: true
|
|
14123
14134
|
}).extend({
|
|
14124
14135
|
title: external_exports.string().max(200).optional(),
|
|
14125
14136
|
text: external_exports.string().max(5e3),
|
|
14126
14137
|
action: external_exports.string().max(2e3).optional(),
|
|
14138
|
+
scene: external_exports.string().max(2e3).optional(),
|
|
14127
14139
|
/** The id of the avatar who says it; absent is `avatar`. */
|
|
14128
14140
|
speakerId: external_exports.string().max(200).optional()
|
|
14129
14141
|
}).strict().superRefine(refuseShotFieldsOffShots)
|
|
@@ -14141,6 +14153,7 @@ var CastVideoInputSchema = external_exports.object({
|
|
|
14141
14153
|
workId: external_exports.string().uuid().optional()
|
|
14142
14154
|
}).strict();
|
|
14143
14155
|
var CastVideoRequestSchema = CastVideoInputSchema.extend({
|
|
14156
|
+
useFreeGeneration: external_exports.boolean().optional(),
|
|
14144
14157
|
voice: CastVideoVoiceSchema.optional(),
|
|
14145
14158
|
avatar: external_exports.union([
|
|
14146
14159
|
CastVideoAvatarSchema,
|
|
@@ -14174,11 +14187,13 @@ var CastVideoReviewSchema = external_exports.object({
|
|
|
14174
14187
|
});
|
|
14175
14188
|
var preparation = external_exports.object({
|
|
14176
14189
|
attemptId: external_exports.string().uuid(),
|
|
14190
|
+
preparationToken: external_exports.string().uuid().optional(),
|
|
14177
14191
|
input: CastVideoInputSchema,
|
|
14178
14192
|
review: CastVideoReviewSchema,
|
|
14179
14193
|
scriptSeconds: external_exports.number().nonnegative(),
|
|
14180
14194
|
aspectRatios: external_exports.array(OutputAspectRatioSchema),
|
|
14181
|
-
estimatedWait: external_exports.string().optional()
|
|
14195
|
+
estimatedWait: external_exports.string().optional(),
|
|
14196
|
+
visualsUnavailableReason: external_exports.string().optional()
|
|
14182
14197
|
});
|
|
14183
14198
|
var PrepareCastVideoResponseSchema = external_exports.discriminatedUnion("status", [
|
|
14184
14199
|
preparation.extend({
|
|
@@ -14197,10 +14212,15 @@ var PrepareCastVideoResponseSchema = external_exports.discriminatedUnion("status
|
|
|
14197
14212
|
]);
|
|
14198
14213
|
var RunCastVideoBodySchema = external_exports.object({
|
|
14199
14214
|
attemptId: external_exports.string().uuid(),
|
|
14215
|
+
preparationToken: external_exports.string().uuid().optional(),
|
|
14216
|
+
expectedEstimatedCredits: external_exports.number().finite().nonnegative().optional(),
|
|
14200
14217
|
input: CastVideoInputSchema,
|
|
14201
14218
|
/** Spend a free generation instead of credits; refused, never billed, when none covers the video. */
|
|
14202
14219
|
useFreeGeneration: external_exports.boolean().optional()
|
|
14203
14220
|
}).strict();
|
|
14221
|
+
var CastPreparedVideoQuoteSchema = external_exports.object({
|
|
14222
|
+
estimatedCredits: external_exports.number().finite().nonnegative()
|
|
14223
|
+
});
|
|
14204
14224
|
var videoReference = external_exports.object({
|
|
14205
14225
|
generationId: external_exports.string().uuid(),
|
|
14206
14226
|
canvasId: external_exports.string().uuid(),
|
|
@@ -14799,8 +14819,16 @@ var API_ERROR_CODE = {
|
|
|
14799
14819
|
dittoBetaRequired: "DITTO_BETA_REQUIRED",
|
|
14800
14820
|
/** The Ditto template was retired or deleted; the client asks for another video. */
|
|
14801
14821
|
dittoTemplateNotFound: "DITTO_TEMPLATE_NOT_FOUND",
|
|
14822
|
+
/** The Ditto template changed since the draft took it; the client drops its source. */
|
|
14823
|
+
dittoTemplateChanged: "DITTO_TEMPLATE_CHANGED",
|
|
14824
|
+
/** A Ditto request's source video is gone; the client drops it and asks for a video. */
|
|
14825
|
+
dittoSourceNotFound: "DITTO_SOURCE_NOT_FOUND",
|
|
14826
|
+
/** A Ditto request's image (`assetId`) is gone; the client drops it from the edit. */
|
|
14827
|
+
dittoReferenceNotFound: "DITTO_REFERENCE_NOT_FOUND",
|
|
14802
14828
|
/** The request asked for a free generation and none covers it; refused, never billed. */
|
|
14803
|
-
freeGenerationUnavailable: FREE_GENERATION_UNAVAILABLE_ERROR_CODE
|
|
14829
|
+
freeGenerationUnavailable: FREE_GENERATION_UNAVAILABLE_ERROR_CODE,
|
|
14830
|
+
/** Someone saved the subtitles since this edit started; the client reloads them. */
|
|
14831
|
+
videoSubtitlesRevisionStale: "VIDEO_SUBTITLES_REVISION_STALE"
|
|
14804
14832
|
};
|
|
14805
14833
|
var TEAM_SEAT_LIMIT_REACHED_MESSAGE = `Team supports up to ${TEAM_SEAT_PLAN.maxSeats} seats. We've notified our team and will reach out over email about a larger plan.`;
|
|
14806
14834
|
|
|
@@ -15959,6 +15987,8 @@ var ModelVariantResponseSchema = external_exports.object({
|
|
|
15959
15987
|
defaultResolution: OutputResolutionSchema.nullable().optional(),
|
|
15960
15988
|
featuredDescription: external_exports.string().nullable(),
|
|
15961
15989
|
cost: ModelCostSchema.optional(),
|
|
15990
|
+
/** `cost` before the team's model discount; set only when the team has one. */
|
|
15991
|
+
listCost: ModelCostSchema.optional(),
|
|
15962
15992
|
/** Selectable voices for audio variants, or null when none apply. */
|
|
15963
15993
|
voices: VoiceCapabilitySchema.nullable().optional(),
|
|
15964
15994
|
/**
|
|
@@ -15987,6 +16017,8 @@ var ModelResponseSchema = external_exports.object({
|
|
|
15987
16017
|
estimatedLatencySeconds: external_exports.number().nullable().optional(),
|
|
15988
16018
|
featuredDescription: external_exports.string().nullable().optional(),
|
|
15989
16019
|
cost: ModelCostSchema,
|
|
16020
|
+
/** `cost` before the team's model discount; set only when the team has one. */
|
|
16021
|
+
listCost: ModelCostSchema.optional(),
|
|
15990
16022
|
deprecated: external_exports.boolean().optional(),
|
|
15991
16023
|
hiddenFromAgent: external_exports.boolean().optional(),
|
|
15992
16024
|
/** Set on image models. Optional only so a client can read a server that predates it. */
|
|
@@ -16304,7 +16336,8 @@ var DittoModelOptionSchema = DittoModelSchema.extend({
|
|
|
16304
16336
|
});
|
|
16305
16337
|
var ListDittoModelsResponseSchema = external_exports.object({
|
|
16306
16338
|
models: external_exports.array(DittoModelOptionSchema),
|
|
16307
|
-
styleTransferModels: external_exports.array(DittoModelOptionSchema).optional()
|
|
16339
|
+
styleTransferModels: external_exports.array(DittoModelOptionSchema).optional(),
|
|
16340
|
+
sourceClipPreparation: external_exports.boolean().optional()
|
|
16308
16341
|
});
|
|
16309
16342
|
var DittoQuoteSchema = external_exports.object({
|
|
16310
16343
|
id: external_exports.string(),
|
|
@@ -18424,7 +18457,6 @@ var SharedGenerationOutputSchema = external_exports.object({
|
|
|
18424
18457
|
var SharedCreatorSchema = external_exports.object({
|
|
18425
18458
|
id: external_exports.string().uuid(),
|
|
18426
18459
|
name: external_exports.string(),
|
|
18427
|
-
email: external_exports.string(),
|
|
18428
18460
|
avatarUrl: external_exports.string().nullable()
|
|
18429
18461
|
});
|
|
18430
18462
|
var SharedGenerationResponseSchema = external_exports.object({
|
|
@@ -19121,6 +19153,43 @@ var JoinPublicDittoWaitlistBodySchema = external_exports.object({
|
|
|
19121
19153
|
email: external_exports.string().trim().min(3).max(254).email()
|
|
19122
19154
|
});
|
|
19123
19155
|
|
|
19156
|
+
// ../api-contract/src/ditto/source-clips.ts
|
|
19157
|
+
var CancelDittoSourceClipBodySchema = external_exports.object({
|
|
19158
|
+
sessionId: external_exports.string().uuid(),
|
|
19159
|
+
revision: external_exports.number().int().positive().safe()
|
|
19160
|
+
});
|
|
19161
|
+
var PrepareDittoSourceClipBodySchema = CancelDittoSourceClipBodySchema.extend({
|
|
19162
|
+
sourceAssetId: external_exports.string().uuid(),
|
|
19163
|
+
sourceRange: DittoSettingsSchema.shape.sourceRange.unwrap().refine(
|
|
19164
|
+
(range) => range.endMs - range.startMs <= VIDEO_REPLACEMENT_MAX_DURATION_SECONDS * 1e3,
|
|
19165
|
+
"Choose a shorter clip"
|
|
19166
|
+
)
|
|
19167
|
+
});
|
|
19168
|
+
var PrepareDittoSourceClipResponseSchema = external_exports.discriminatedUnion(
|
|
19169
|
+
"status",
|
|
19170
|
+
[
|
|
19171
|
+
PrepareDittoSourceClipBodySchema.extend({
|
|
19172
|
+
status: external_exports.literal("preparing")
|
|
19173
|
+
}),
|
|
19174
|
+
PrepareDittoSourceClipBodySchema.extend({
|
|
19175
|
+
status: external_exports.literal("ready"),
|
|
19176
|
+
asset: external_exports.object({
|
|
19177
|
+
assetId: external_exports.string().uuid(),
|
|
19178
|
+
url: external_exports.string(),
|
|
19179
|
+
durationMs: external_exports.number().finite().positive(),
|
|
19180
|
+
previewUrl: external_exports.string().optional()
|
|
19181
|
+
})
|
|
19182
|
+
}),
|
|
19183
|
+
PrepareDittoSourceClipBodySchema.extend({
|
|
19184
|
+
status: external_exports.literal("failed"),
|
|
19185
|
+
message: external_exports.string()
|
|
19186
|
+
}),
|
|
19187
|
+
PrepareDittoSourceClipBodySchema.extend({
|
|
19188
|
+
status: external_exports.literal("cancelled")
|
|
19189
|
+
})
|
|
19190
|
+
]
|
|
19191
|
+
);
|
|
19192
|
+
|
|
19124
19193
|
// ../api-contract/src/ditto/templates.ts
|
|
19125
19194
|
var DittoTemplateCategorySchema = external_exports.enum([
|
|
19126
19195
|
"dances",
|
|
@@ -19218,6 +19287,10 @@ var SearchDittoTemplatesBodySchema = createCursorPaginationRequestSchema({ defau
|
|
|
19218
19287
|
*/
|
|
19219
19288
|
sort: DittoTemplateSearchSortSchema.optional()
|
|
19220
19289
|
});
|
|
19290
|
+
var DittoTemplateShelfCategorySchema = external_exports.string().trim().min(1).max(64).optional();
|
|
19291
|
+
var SearchPublicDittoTemplatesBodySchema = SearchDittoTemplatesBodySchema.extend({
|
|
19292
|
+
category: DittoTemplateShelfCategorySchema
|
|
19293
|
+
});
|
|
19221
19294
|
var SearchMemberDittoTemplatesBodySchema = SearchDittoTemplatesBodySchema.extend({
|
|
19222
19295
|
/**
|
|
19223
19296
|
* Only the templates a new member starts their first video from:
|
|
@@ -19233,14 +19306,8 @@ var SearchMemberDittoTemplatesBodySchema = SearchDittoTemplatesBodySchema.extend
|
|
|
19233
19306
|
* `starters` takes precedence when both are set.
|
|
19234
19307
|
*/
|
|
19235
19308
|
popular: external_exports.boolean().optional(),
|
|
19236
|
-
/**
|
|
19237
|
-
|
|
19238
|
-
* order on every request, so a Home shelf shows different templates
|
|
19239
|
-
* first each visit. At most `pageSize` of them; one page with no
|
|
19240
|
-
* cursor, and a cursor is refused. `starters` and `popular` take
|
|
19241
|
-
* precedence when set. A category the server doesn't know lists none.
|
|
19242
|
-
*/
|
|
19243
|
-
category: external_exports.string().trim().min(1).max(64).optional(),
|
|
19309
|
+
/** `starters` and `popular` take precedence when set. */
|
|
19310
|
+
category: DittoTemplateShelfCategorySchema,
|
|
19244
19311
|
/**
|
|
19245
19312
|
* Every published template in a random order that each new search
|
|
19246
19313
|
* picks, in place of the staff order. The cursor keeps that order, so
|
|
@@ -21600,7 +21667,7 @@ var canvasContract = c5.router({
|
|
|
21600
21667
|
...BulkRunFreeGenerationFields
|
|
21601
21668
|
}),
|
|
21602
21669
|
responses: {
|
|
21603
|
-
201:
|
|
21670
|
+
201: BulkNodeRunStartResponseSchema,
|
|
21604
21671
|
202: external_exports.object({ approvalId: external_exports.string().uuid() }),
|
|
21605
21672
|
400: MessageResponseSchema
|
|
21606
21673
|
}
|
|
@@ -22147,6 +22214,29 @@ var customFontContract = c6.router({
|
|
|
22147
22214
|
// ../api-contract/src/ditto/routes.ts
|
|
22148
22215
|
var c7 = initContract();
|
|
22149
22216
|
var dittoContract = c7.router({
|
|
22217
|
+
prepareSourceClip: {
|
|
22218
|
+
method: "POST",
|
|
22219
|
+
path: "/ditto/source-clips",
|
|
22220
|
+
body: PrepareDittoSourceClipBodySchema,
|
|
22221
|
+
responses: {
|
|
22222
|
+
200: PrepareDittoSourceClipResponseSchema,
|
|
22223
|
+
400: ApiErrorResponseSchema,
|
|
22224
|
+
403: ApiErrorResponseSchema,
|
|
22225
|
+
404: ApiErrorResponseSchema,
|
|
22226
|
+
410: ApiErrorResponseSchema
|
|
22227
|
+
}
|
|
22228
|
+
},
|
|
22229
|
+
cancelSourceClip: {
|
|
22230
|
+
method: "POST",
|
|
22231
|
+
path: "/ditto/source-clips/cancel",
|
|
22232
|
+
body: CancelDittoSourceClipBodySchema,
|
|
22233
|
+
responses: {
|
|
22234
|
+
200: external_exports.object({ success: external_exports.literal(true) }),
|
|
22235
|
+
400: ApiErrorResponseSchema,
|
|
22236
|
+
403: ApiErrorResponseSchema,
|
|
22237
|
+
410: ApiErrorResponseSchema
|
|
22238
|
+
}
|
|
22239
|
+
},
|
|
22150
22240
|
searchTemplates: {
|
|
22151
22241
|
method: "POST",
|
|
22152
22242
|
path: "/ditto/templates/search",
|
|
@@ -22179,13 +22269,21 @@ var dittoContract = c7.router({
|
|
|
22179
22269
|
searchPublicTemplates: {
|
|
22180
22270
|
method: "POST",
|
|
22181
22271
|
path: "/ditto/public/templates/search",
|
|
22182
|
-
body:
|
|
22272
|
+
body: SearchPublicDittoTemplatesBodySchema,
|
|
22183
22273
|
responses: {
|
|
22184
22274
|
200: SearchDittoTemplatesResponseSchema,
|
|
22185
22275
|
400: MessageResponseSchema
|
|
22186
22276
|
},
|
|
22187
22277
|
summary: "Published Ditto templates, readable without signing in"
|
|
22188
22278
|
},
|
|
22279
|
+
listPublicTemplateShelves: {
|
|
22280
|
+
method: "GET",
|
|
22281
|
+
path: "/ditto/public/templates/shelves",
|
|
22282
|
+
responses: {
|
|
22283
|
+
200: ListDittoTemplateShelvesResponseSchema
|
|
22284
|
+
},
|
|
22285
|
+
summary: "Home's template shelves in order, each searched with searchPublicTemplates' category, readable without signing in"
|
|
22286
|
+
},
|
|
22189
22287
|
getPublicTemplate: {
|
|
22190
22288
|
method: "GET",
|
|
22191
22289
|
path: "/ditto/public/templates/:id",
|
|
@@ -24736,6 +24834,17 @@ var castContract = c18.router({
|
|
|
24736
24834
|
},
|
|
24737
24835
|
summary: "Resolve saved video inputs and estimate credits without starting a generation"
|
|
24738
24836
|
},
|
|
24837
|
+
readCastPreparedVideoQuote: {
|
|
24838
|
+
method: "POST",
|
|
24839
|
+
path: "/cast/videos/prepared-quote",
|
|
24840
|
+
body: RunCastVideoBodySchema.omit({ expectedEstimatedCredits: true }),
|
|
24841
|
+
responses: {
|
|
24842
|
+
200: CastPreparedVideoQuoteSchema,
|
|
24843
|
+
400: MessageResponseSchema,
|
|
24844
|
+
403: MessageResponseSchema
|
|
24845
|
+
},
|
|
24846
|
+
summary: "Read the bound estimate for an existing prepared video"
|
|
24847
|
+
},
|
|
24739
24848
|
runCastVideo: {
|
|
24740
24849
|
method: "POST",
|
|
24741
24850
|
headers: IdempotencyRequestHeadersSchema,
|
|
@@ -25094,6 +25203,7 @@ var publicContract = c19.router(
|
|
|
25094
25203
|
options: castContract.getCastOptions,
|
|
25095
25204
|
library: castContract.searchCastLibrary,
|
|
25096
25205
|
prepare: castContract.prepareCastVideo,
|
|
25206
|
+
preparedQuote: castContract.readCastPreparedVideoQuote,
|
|
25097
25207
|
run: castContract.runCastVideo,
|
|
25098
25208
|
get: castContract.getCastVideo,
|
|
25099
25209
|
download: castContract.downloadCastVideo,
|
|
@@ -26153,7 +26263,7 @@ function isMajorUpgrade(current, latest) {
|
|
|
26153
26263
|
return l[0] > c20[0];
|
|
26154
26264
|
}
|
|
26155
26265
|
function shouldShowUpgradeNotice(ctx = {}) {
|
|
26156
|
-
const current = ctx.current ?? "0.
|
|
26266
|
+
const current = ctx.current ?? "0.48.0";
|
|
26157
26267
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
26158
26268
|
const env = ctx.env ?? process.env;
|
|
26159
26269
|
const isTty = ctx.isTty ?? Boolean(process.stderr.isTTY);
|
|
@@ -26174,7 +26284,7 @@ Upgrade: npm install -g @melius-ai/cli@latest (or: brew update && brew upgrade
|
|
|
26174
26284
|
function printUpgradeNoticeIfNeeded(ctx = {}) {
|
|
26175
26285
|
try {
|
|
26176
26286
|
if (!shouldShowUpgradeNotice(ctx)) return;
|
|
26177
|
-
const current = ctx.current ?? "0.
|
|
26287
|
+
const current = ctx.current ?? "0.48.0";
|
|
26178
26288
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
26179
26289
|
process.stderr.write(formatUpgradeNotice(current, latest));
|
|
26180
26290
|
} catch {
|
|
@@ -26281,7 +26391,7 @@ function createClient(config) {
|
|
|
26281
26391
|
"Bypass-Tunnel-Reminder": "true",
|
|
26282
26392
|
[CUSTOM_REQUEST_HEADERS.meliusClient]: buildMeliusClientHeader({
|
|
26283
26393
|
surface: "cli",
|
|
26284
|
-
version: "0.
|
|
26394
|
+
version: "0.48.0"
|
|
26285
26395
|
})
|
|
26286
26396
|
};
|
|
26287
26397
|
if (config.teamId) {
|
|
@@ -26597,7 +26707,9 @@ function readCastRequest(path5) {
|
|
|
26597
26707
|
}
|
|
26598
26708
|
function readCastSubmission(path5) {
|
|
26599
26709
|
const prepared = parseCastValue(
|
|
26600
|
-
PrepareCastVideoResponseSchema
|
|
26710
|
+
PrepareCastVideoResponseSchema.and(
|
|
26711
|
+
CastVideoRequestSchema.pick({ useFreeGeneration: true }).strip()
|
|
26712
|
+
),
|
|
26601
26713
|
readCastJson(path5),
|
|
26602
26714
|
"Use the complete response from mel cast prepare. Run: mel cast run --help"
|
|
26603
26715
|
);
|
|
@@ -26613,7 +26725,16 @@ function readCastSubmission(path5) {
|
|
|
26613
26725
|
EXIT_USAGE_ERROR
|
|
26614
26726
|
);
|
|
26615
26727
|
}
|
|
26616
|
-
return {
|
|
26728
|
+
return {
|
|
26729
|
+
attemptId: prepared.attemptId,
|
|
26730
|
+
input: prepared.input,
|
|
26731
|
+
...prepared.preparationToken && {
|
|
26732
|
+
preparationToken: prepared.preparationToken
|
|
26733
|
+
},
|
|
26734
|
+
...prepared.useFreeGeneration !== void 0 && {
|
|
26735
|
+
useFreeGeneration: prepared.useFreeGeneration
|
|
26736
|
+
}
|
|
26737
|
+
};
|
|
26617
26738
|
}
|
|
26618
26739
|
var CAMERA_MOVE_OPTION_DESCRIPTION = `Camera move for a variant with supportsCameraMove: true in mel model list (requires --model and --variant): a preset (${CAMERA_PRESETS.join(", ")}) or a keyframed path as JSON {"type":"path","keyframes":[{"time":0-1,"azimuth":degrees,"elevation":-90-90,"distance":>0}, ...2-12]}. Omit to let the prompt direct the camera`;
|
|
26619
26740
|
function parseCameraMove(value, source) {
|
|
@@ -28480,15 +28601,23 @@ Examples:
|
|
|
28480
28601
|
$ mel cast prepare --input-file <template-request.json>`
|
|
28481
28602
|
).action(async (options) => {
|
|
28482
28603
|
const body = readCastRequest(options.inputFile);
|
|
28604
|
+
const useFreeGeneration = body.useFreeGeneration ?? false;
|
|
28483
28605
|
const client = getClient();
|
|
28606
|
+
const prepared = await castRequest(
|
|
28607
|
+
(signal) => client.cast.prepare({
|
|
28608
|
+
body: { ...body, useFreeGeneration },
|
|
28609
|
+
fetchOptions: { signal }
|
|
28610
|
+
}),
|
|
28611
|
+
{
|
|
28612
|
+
label: "Cast preparation",
|
|
28613
|
+
suggestion: "Run: mel cast prepare --help"
|
|
28614
|
+
}
|
|
28615
|
+
);
|
|
28484
28616
|
writeJson(
|
|
28485
|
-
|
|
28486
|
-
|
|
28487
|
-
|
|
28488
|
-
|
|
28489
|
-
suggestion: "Run: mel cast prepare --help"
|
|
28490
|
-
}
|
|
28491
|
-
),
|
|
28617
|
+
{
|
|
28618
|
+
...prepared,
|
|
28619
|
+
useFreeGeneration
|
|
28620
|
+
},
|
|
28492
28621
|
getOutputOpts()
|
|
28493
28622
|
);
|
|
28494
28623
|
});
|
|
@@ -33486,7 +33615,7 @@ function withDefaultHelp(args) {
|
|
|
33486
33615
|
}
|
|
33487
33616
|
function createProgram() {
|
|
33488
33617
|
const program2 = new Command();
|
|
33489
|
-
program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.
|
|
33618
|
+
program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.48.0").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
|
|
33490
33619
|
"--fields <fields>",
|
|
33491
33620
|
"Select specific output fields (comma-separated)"
|
|
33492
33621
|
).option("--quiet", "Suppress output, exit code only").option("--verbose", "Log request/response metadata to stderr").addHelpText(
|
package/dist/src/index.js
CHANGED