@melius-ai/cli 0.51.0 → 0.52.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/README.md +1 -1
- package/dist/bin/mel.js +1 -1
- package/dist/{chunk-QW6BJWR4.js → chunk-3RVBS56N.js} +50 -16
- package/dist/src/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -217,7 +217,7 @@ States are `submitting`, `running`, `captioning`, `ready`, and `failed`. `status
|
|
|
217
217
|
**Microdrama series.** For teams with Microdramas, a series groups Microdrama videos into episodes the server numbers. Start one with a title and, optionally, a genre and a style (`mel cast series create --help` lists them), then pass its ID to `mel cast run`. Every episode is filmed in the series' style (`videoStyleId`, `drama` unless you chose another): prepare each with `"creationSettings": { "videoStyle": { "id": "<videoStyleId>", "version": 1 }, "speech": "on-screen" }`.
|
|
218
218
|
|
|
219
219
|
```bash
|
|
220
|
-
mel cast series create --title "The Heiress Returns" --genre
|
|
220
|
+
mel cast series create --title "The Heiress Returns" --genre drama-dark
|
|
221
221
|
mel cast run --input-file prepared.json --series-id <seriesId>
|
|
222
222
|
mel cast series episodes --id <seriesId>
|
|
223
223
|
mel cast run --input-file prepared.json --episode-id <episodeId>
|
package/dist/bin/mel.js
CHANGED
|
@@ -13188,6 +13188,14 @@ var CastVideoStyleIdSchema = external_exports.enum([
|
|
|
13188
13188
|
"drama-dark",
|
|
13189
13189
|
"drama-luxury",
|
|
13190
13190
|
"drama-fantasy",
|
|
13191
|
+
"drama-coming-of-age",
|
|
13192
|
+
"drama-kdrama",
|
|
13193
|
+
"drama-90s",
|
|
13194
|
+
"drama-anime",
|
|
13195
|
+
"drama-webtoon",
|
|
13196
|
+
"drama-3d",
|
|
13197
|
+
"drama-cgi",
|
|
13198
|
+
"drama-2d",
|
|
13191
13199
|
"vlog",
|
|
13192
13200
|
"podcast",
|
|
13193
13201
|
"unboxing",
|
|
@@ -13216,7 +13224,15 @@ var CAST_MICRODRAMA_STYLE_IDS = [
|
|
|
13216
13224
|
"drama-romance",
|
|
13217
13225
|
"drama-dark",
|
|
13218
13226
|
"drama-luxury",
|
|
13219
|
-
"drama-fantasy"
|
|
13227
|
+
"drama-fantasy",
|
|
13228
|
+
"drama-coming-of-age",
|
|
13229
|
+
"drama-kdrama",
|
|
13230
|
+
"drama-90s",
|
|
13231
|
+
"drama-anime",
|
|
13232
|
+
"drama-webtoon",
|
|
13233
|
+
"drama-3d",
|
|
13234
|
+
"drama-cgi",
|
|
13235
|
+
"drama-2d"
|
|
13220
13236
|
];
|
|
13221
13237
|
var CastMicrodramaStyleIdSchema = external_exports.enum(CAST_MICRODRAMA_STYLE_IDS);
|
|
13222
13238
|
function isCastMicrodramaStyle(id) {
|
|
@@ -13231,6 +13247,7 @@ var CastPronunciationSchema = external_exports.object({
|
|
|
13231
13247
|
pronunciation: external_exports.string().trim().min(1).max(200)
|
|
13232
13248
|
});
|
|
13233
13249
|
var MAX_CAST_PRONUNCIATIONS = 50;
|
|
13250
|
+
var CastAestheticSchema = external_exports.enum(["polished", "natural", "raw"]);
|
|
13234
13251
|
var CastCreationSettingsSchema = external_exports.object({
|
|
13235
13252
|
videoStyle: CastVideoStyleSchema,
|
|
13236
13253
|
speech: external_exports.enum(["on-screen", "narration"]),
|
|
@@ -13240,6 +13257,9 @@ var CastCreationSettingsSchema = external_exports.object({
|
|
|
13240
13257
|
shots: external_exports.enum(["auto", "one-shot"]).optional().describe(
|
|
13241
13258
|
"Auto cuts the script into shots, with changes of framing and cutaways where the script and actions call for them. One shot films the video as one continuous take to camera with no cuts, so the script must fit one clip (the model's longest generation); a longer script is refused, never cut. Omitted means Auto."
|
|
13242
13259
|
),
|
|
13260
|
+
aesthetic: CastAestheticSchema.optional().describe(
|
|
13261
|
+
"How self-filmed the video looks, on Auto, Self-filmed and Comment reply; other styles ignore it. Polished: a steady phone in soft, even light, focus holding. Natural: a propped phone with small camera flaws. Raw: the phone held in the hand, with shake, late autofocus and an uneven zoom. Set it only when the member asks for a polished, raw, handheld or shaky look; omitted means Natural."
|
|
13262
|
+
),
|
|
13243
13263
|
visualsBrief: external_exports.string().trim().min(1).max(1e3).optional().describe(
|
|
13244
13264
|
"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."
|
|
13245
13265
|
),
|
|
@@ -13812,6 +13832,8 @@ var CastScriptSectionSchema = external_exports.object({
|
|
|
13812
13832
|
* visual-only beat. Absent means a spoken beat.
|
|
13813
13833
|
*/
|
|
13814
13834
|
kind: external_exports.enum(["action"]).optional(),
|
|
13835
|
+
/** On an action beat, a Shot: nobody from the cast is its subject. */
|
|
13836
|
+
cutaway: external_exports.literal(true).optional(),
|
|
13815
13837
|
/**
|
|
13816
13838
|
* Who says it, as the request's `speakers` spell the name. Only on a
|
|
13817
13839
|
* split or a draft asked with a cast.
|
|
@@ -16631,7 +16653,8 @@ var CastAdTypeSchema = external_exports.enum([
|
|
|
16631
16653
|
"visual_first",
|
|
16632
16654
|
"viral_trend"
|
|
16633
16655
|
]);
|
|
16634
|
-
var
|
|
16656
|
+
var CastListedGenreSchema = CastMicrodramaStyleIdSchema;
|
|
16657
|
+
var CAST_RETIRED_GENRES = [
|
|
16635
16658
|
"romance",
|
|
16636
16659
|
"revenge",
|
|
16637
16660
|
"billionaire",
|
|
@@ -16642,6 +16665,10 @@ var CastGenreSchema = external_exports.enum([
|
|
|
16642
16665
|
"family",
|
|
16643
16666
|
"thriller",
|
|
16644
16667
|
"comedy"
|
|
16668
|
+
];
|
|
16669
|
+
var CastGenreSchema = external_exports.enum([
|
|
16670
|
+
...CastListedGenreSchema.options,
|
|
16671
|
+
...CAST_RETIRED_GENRES
|
|
16645
16672
|
]);
|
|
16646
16673
|
var CastExploreStreamSchema = external_exports.object({
|
|
16647
16674
|
/** API-relative master playlist; each resolution's media is signed by the CDN. */
|
|
@@ -25484,11 +25511,7 @@ var CastVideoStyleReadBodySchema = external_exports.object({
|
|
|
25484
25511
|
).min(1).max(CAST_VIDEO_STYLE_READ_MAX_SECTIONS)
|
|
25485
25512
|
}).strict();
|
|
25486
25513
|
var CastVideoStyleReadSchema = external_exports.object({
|
|
25487
|
-
/**
|
|
25488
|
-
* The style Auto films the script in. Absent when the read could not run
|
|
25489
|
-
* or the team does not have `cast-auto-video-style`: Auto then renders as
|
|
25490
|
-
* its own Self-filmed base.
|
|
25491
|
-
*/
|
|
25514
|
+
/** Always absent: Auto films as Self-filmed. Kept for studio builds that still ask. */
|
|
25492
25515
|
videoStyle: CastVideoStyleIdSchema.exclude(["auto"]).optional()
|
|
25493
25516
|
});
|
|
25494
25517
|
|
|
@@ -25717,7 +25740,7 @@ var castContract = c18.router({
|
|
|
25717
25740
|
400: MessageResponseSchema,
|
|
25718
25741
|
403: MessageResponseSchema
|
|
25719
25742
|
},
|
|
25720
|
-
summary: "
|
|
25743
|
+
summary: "Retired: answers no style, since Auto films as Self-filmed"
|
|
25721
25744
|
},
|
|
25722
25745
|
precheckCastProps: {
|
|
25723
25746
|
method: "POST",
|
|
@@ -25946,6 +25969,17 @@ var castContract = c18.router({
|
|
|
25946
25969
|
},
|
|
25947
25970
|
summary: "Rename a Cast collection, or set a series' genre"
|
|
25948
25971
|
},
|
|
25972
|
+
deleteCastCollection: {
|
|
25973
|
+
method: "DELETE",
|
|
25974
|
+
path: "/cast/collections/:collectionId",
|
|
25975
|
+
pathParams: external_exports.object({ collectionId: external_exports.string().uuid() }),
|
|
25976
|
+
body: null,
|
|
25977
|
+
responses: {
|
|
25978
|
+
204: c18.noBody(),
|
|
25979
|
+
404: MessageResponseSchema
|
|
25980
|
+
},
|
|
25981
|
+
summary: "Delete a Cast collection; its videos stay in History, in no collection"
|
|
25982
|
+
},
|
|
25949
25983
|
listCastGenerations: {
|
|
25950
25984
|
method: "GET",
|
|
25951
25985
|
path: "/cast/generations",
|
|
@@ -27077,7 +27111,7 @@ function isMajorUpgrade(current, latest) {
|
|
|
27077
27111
|
return l[0] > c20[0];
|
|
27078
27112
|
}
|
|
27079
27113
|
function shouldShowUpgradeNotice(ctx = {}) {
|
|
27080
|
-
const current = ctx.current ?? "0.
|
|
27114
|
+
const current = ctx.current ?? "0.52.0";
|
|
27081
27115
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
27082
27116
|
const env = ctx.env ?? process.env;
|
|
27083
27117
|
const isTty = ctx.isTty ?? Boolean(process.stderr.isTTY);
|
|
@@ -27098,7 +27132,7 @@ Upgrade: npm install -g @melius-ai/cli@latest (or: brew update && brew upgrade
|
|
|
27098
27132
|
function printUpgradeNoticeIfNeeded(ctx = {}) {
|
|
27099
27133
|
try {
|
|
27100
27134
|
if (!shouldShowUpgradeNotice(ctx)) return;
|
|
27101
|
-
const current = ctx.current ?? "0.
|
|
27135
|
+
const current = ctx.current ?? "0.52.0";
|
|
27102
27136
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
27103
27137
|
process.stderr.write(formatUpgradeNotice(current, latest));
|
|
27104
27138
|
} catch {
|
|
@@ -27205,7 +27239,7 @@ function createClient(config) {
|
|
|
27205
27239
|
"Bypass-Tunnel-Reminder": "true",
|
|
27206
27240
|
[CUSTOM_REQUEST_HEADERS.meliusClient]: buildMeliusClientHeader({
|
|
27207
27241
|
surface: "cli",
|
|
27208
|
-
version: "0.
|
|
27242
|
+
version: "0.52.0"
|
|
27209
27243
|
})
|
|
27210
27244
|
};
|
|
27211
27245
|
if (config.teamId) {
|
|
@@ -29243,7 +29277,7 @@ async function downloadCastFile(url, output2, generationId) {
|
|
|
29243
29277
|
}
|
|
29244
29278
|
|
|
29245
29279
|
// src/commands/cast-series.ts
|
|
29246
|
-
var GENRES =
|
|
29280
|
+
var GENRES = CastListedGenreSchema.options.join(", ");
|
|
29247
29281
|
var STYLES = CAST_MICRODRAMA_STYLE_IDS.join(", ");
|
|
29248
29282
|
function seriesParams(id) {
|
|
29249
29283
|
return parseCastValue(
|
|
@@ -29262,7 +29296,7 @@ Returns: a series (id, title, genre, videoStyleId, episodeCount, nextEpisodeNumb
|
|
|
29262
29296
|
A series' episodes are Microdrama videos the server numbers, all filmed in the series' videoStyleId. Make the next one with mel cast run --series-id <seriesId>, another take of one with --episode-id <episodeId>.
|
|
29263
29297
|
Available to teams with Microdramas; other teams get a 404.
|
|
29264
29298
|
Examples:
|
|
29265
|
-
$ mel cast series create --title "The Heiress Returns" --genre
|
|
29299
|
+
$ mel cast series create --title "The Heiress Returns" --genre drama-dark
|
|
29266
29300
|
$ mel cast series episodes --id <seriesId>`
|
|
29267
29301
|
);
|
|
29268
29302
|
series.command("create").description("Start a Microdrama series; returns the new series").requiredOption("--title <title>", "Series title (1-120 characters)").option("--genre <genre>", `Genre, optional: ${GENRES}`).option(
|
|
@@ -29278,7 +29312,7 @@ Returns: id, title, genre, videoStyleId, episodeCount (0), nextEpisodeNumber (1)
|
|
|
29278
29312
|
The genre labels the series; it doesn't change the script or the filming. The style can't change later.
|
|
29279
29313
|
Examples:
|
|
29280
29314
|
$ mel cast series create --title "The Heiress Returns"
|
|
29281
|
-
$ mel cast series create --title "The Heiress Returns" --genre
|
|
29315
|
+
$ mel cast series create --title "The Heiress Returns" --genre drama-dark --style drama
|
|
29282
29316
|
$ mel cast series create --title "The Heiress Returns" --from <generationId>`
|
|
29283
29317
|
).action(
|
|
29284
29318
|
async (options) => {
|
|
@@ -29409,7 +29443,7 @@ Examples:
|
|
|
29409
29443
|
`
|
|
29410
29444
|
Pass --title, --genre, or both. Returns: the series.
|
|
29411
29445
|
Examples:
|
|
29412
|
-
$ mel cast series update --id <seriesId> --genre
|
|
29446
|
+
$ mel cast series update --id <seriesId> --genre drama-dark
|
|
29413
29447
|
$ mel cast series update --id <seriesId> --title "Season 2"
|
|
29414
29448
|
$ mel cast series update --id <seriesId> --genre none`
|
|
29415
29449
|
).action(
|
|
@@ -34700,7 +34734,7 @@ function withDefaultHelp(args) {
|
|
|
34700
34734
|
}
|
|
34701
34735
|
function createProgram() {
|
|
34702
34736
|
const program2 = new Command();
|
|
34703
|
-
program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.
|
|
34737
|
+
program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.52.0").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
|
|
34704
34738
|
"--fields <fields>",
|
|
34705
34739
|
"Select specific output fields (comma-separated)"
|
|
34706
34740
|
).option("--quiet", "Suppress output, exit code only").option("--verbose", "Log request/response metadata to stderr").addHelpText(
|
package/dist/src/index.js
CHANGED