@melius-ai/cli 0.50.0 → 0.50.1

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
@@ -7,7 +7,7 @@ import {
7
7
  printUpgradeNoticeIfNeeded,
8
8
  withDefaultHelp,
9
9
  writeError
10
- } from "../chunk-HQBTQ4N6.js";
10
+ } from "../chunk-LZJD32CC.js";
11
11
 
12
12
  // bin/mel.ts
13
13
  var program = createProgram();
@@ -13197,7 +13197,14 @@ var CastVideoStyleIdSchema = external_exports.enum([
13197
13197
  "comment-reply",
13198
13198
  "streamer-reaction",
13199
13199
  "animated-3d",
13200
- "street-interview"
13200
+ "street-interview",
13201
+ "product-film",
13202
+ "product-asmr",
13203
+ "product-3d",
13204
+ "product-stop-motion",
13205
+ "asmr",
13206
+ "claymation",
13207
+ "animated-2d"
13201
13208
  ]);
13202
13209
  var CAST_VIDEO_STYLE_IDS = CastVideoStyleIdSchema.options;
13203
13210
  var CastVideoStyleSchema = external_exports.object({
@@ -13222,7 +13229,10 @@ var CastCreationSettingsSchema = external_exports.object({
13222
13229
  '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.'
13223
13230
  )
13224
13231
  });
13225
- var CAST_MAX_AVATARS = 3;
13232
+ var CAST_MAX_LARGE_CAST_AVATARS = 8;
13233
+ function castTooManyAvatarsMessage(limit) {
13234
+ return `A video holds up to ${limit} avatars: avatar and at most ${limit - 1} in otherAvatars`;
13235
+ }
13226
13236
  var CAST_MAX_ACTION_BEAT_SECONDS = 8;
13227
13237
  var CastAuthoredSectionSchema = external_exports.object({
13228
13238
  id: external_exports.string(),
@@ -13632,7 +13642,7 @@ var MAX_CAST_READ_BEATS = 20;
13632
13642
  var MAX_CAST_TONE_TAGS_PER_BEAT = 2;
13633
13643
  var MIN_CAST_DRAFT_SECONDS = 3;
13634
13644
  var MAX_CAST_DRAFT_SECONDS = 600;
13635
- var CastScriptSpeakersSchema = external_exports.array(external_exports.string().trim().min(1).max(MAX_CUSTOM_AVATAR_NAME_LENGTH)).max(CAST_MAX_AVATARS).optional();
13645
+ var CastScriptSpeakersSchema = external_exports.array(external_exports.string().trim().min(1).max(MAX_CUSTOM_AVATAR_NAME_LENGTH)).max(CAST_MAX_LARGE_CAST_AVATARS).optional();
13636
13646
  var MAX_CAST_SCRIPT_REFERENCES = 12;
13637
13647
  var MAX_CAST_SCRIPT_REFERENCE_NAME_LENGTH = 200;
13638
13648
  var CastScriptReferencesSchema = external_exports.array(
@@ -14149,10 +14159,13 @@ var CastVideoInputSchema = external_exports.object({
14149
14159
  avatar: CastVideoAvatarSchema,
14150
14160
  voice: CastVideoVoiceSchema,
14151
14161
  voiceName: external_exports.string().max(200).optional(),
14152
- /** Everyone else the video casts. */
14162
+ /**
14163
+ * Everyone else the video casts. Past `CAST_MAX_AVATARS - 1` only with
14164
+ * `cast-large-cast`; prepare and run refuse more without it.
14165
+ */
14153
14166
  otherAvatars: external_exports.array(CastVideoOtherAvatarSchema).min(1).max(
14154
- CAST_MAX_AVATARS - 1,
14155
- `A video holds up to ${CAST_MAX_AVATARS} avatars: avatar and at most ${CAST_MAX_AVATARS - 1} in otherAvatars`
14167
+ CAST_MAX_LARGE_CAST_AVATARS - 1,
14168
+ castTooManyAvatarsMessage(CAST_MAX_LARGE_CAST_AVATARS)
14156
14169
  ).optional(),
14157
14170
  tone: external_exports.string().trim().min(1).max(MAX_CAST_TONE_LENGTH).optional(),
14158
14171
  engine: CastVideoEngineSchema.default("seedance"),
@@ -14163,18 +14176,23 @@ var CastVideoInputSchema = external_exports.object({
14163
14176
  source: external_exports.literal("database")
14164
14177
  }).optional(),
14165
14178
  sections: external_exports.array(
14166
- CastAuthoredSectionSchema.omit({
14167
- id: true,
14168
- continues: true,
14169
- inShot: true
14170
- }).extend({
14179
+ // Who is in a shot is the script's: whoever speaks, is
14180
+ // answered or is named in an action or scene.
14181
+ CastAuthoredSectionSchema.omit({ id: true, inShot: true }).extend({
14171
14182
  title: external_exports.string().max(200).optional(),
14172
14183
  text: external_exports.string().max(5e3),
14173
14184
  action: external_exports.string().max(2e3).optional(),
14174
14185
  scene: external_exports.string().max(2e3).optional(),
14175
14186
  onScreen: external_exports.string().trim().min(1).max(500).optional(),
14176
14187
  /** The id of the avatar who says it; absent is `avatar`. */
14177
- speakerId: external_exports.string().max(200).optional()
14188
+ speakerId: external_exports.string().max(200).optional(),
14189
+ /**
14190
+ * A line of the section above, in one shot with it: a
14191
+ * back-and-forth is a section and the lines that
14192
+ * continue it, each with its own speaker and action.
14193
+ * Refused without `cast-group-visuals`.
14194
+ */
14195
+ continues: external_exports.boolean().optional()
14178
14196
  }).strict().superRefine(refuseShotFieldsOffShots)
14179
14197
  ).min(1).max(30),
14180
14198
  backgroundId: external_exports.string().uuid().optional(),
@@ -14317,7 +14335,7 @@ var CastVideoApprovalPreviewSchema = external_exports.object({
14317
14335
  /** How `imageUrl` is drawn: a photo fills its frame, a sheet is shown whole. */
14318
14336
  picture: external_exports.enum(["photo", "sheet"])
14319
14337
  })
14320
- ).min(1).max(CAST_MAX_AVATARS).optional(),
14338
+ ).min(1).max(CAST_MAX_LARGE_CAST_AVATARS).optional(),
14321
14339
  voice: external_exports.string(),
14322
14340
  tone: external_exports.string().optional(),
14323
14341
  /** The saved background's name, or Auto. */
@@ -16569,7 +16587,7 @@ var CastGenerationAnalyticsSchema = external_exports.object({
16569
16587
  });
16570
16588
  var CastGenerationAnalyticsWriteSchema = CastGenerationAnalyticsSchema.omit({ agent: true }).extend({
16571
16589
  entrySurface: external_exports.enum(["cast", "cast-mcp"]).optional().catch(void 0),
16572
- avatarCount: external_exports.number().int().positive().max(CAST_MAX_AVATARS).optional(),
16590
+ avatarCount: external_exports.number().int().positive().max(CAST_MAX_LARGE_CAST_AVATARS).optional(),
16573
16591
  partCount: external_exports.number().int().positive().max(STITCH_MAX_CLIPS).optional()
16574
16592
  });
16575
16593
  var CastGenerationOperationSchema = external_exports.enum(["script", "replacement"]);
@@ -16865,7 +16883,7 @@ var SharedCastGenerationSchema = external_exports.object({
16865
16883
  SharedCastReplaceSelectionSchema
16866
16884
  ])
16867
16885
  })
16868
- ).max(CAST_MAX_AVATARS).optional()
16886
+ ).max(CAST_MAX_LARGE_CAST_AVATARS).optional()
16869
16887
  }).optional()
16870
16888
  });
16871
16889
  var SharedCastLinkPreviewVideoSchema = external_exports.object({ url: external_exports.string() });
@@ -19149,7 +19167,33 @@ var DittoVideoPersonSchema = external_exports.object({
19149
19167
  height: external_exports.number().positive().max(1)
19150
19168
  }).nullable().optional(),
19151
19169
  /** When they are on screen: the times, in milliseconds from the start, of the frames that show them. */
19152
- seenMs: external_exports.array(external_exports.number().nonnegative())
19170
+ seenMs: external_exports.array(external_exports.number().nonnegative()),
19171
+ /**
19172
+ * Where their face (or, when it does not show, their head) is in each of
19173
+ * those frames, in time order, as shares of the frame's width and height,
19174
+ * so a ring can follow them as the video plays. Absent for people found
19175
+ * before it was kept.
19176
+ */
19177
+ track: external_exports.array(
19178
+ external_exports.object({
19179
+ ms: external_exports.number().nonnegative(),
19180
+ x: external_exports.number().min(0).max(1),
19181
+ y: external_exports.number().min(0).max(1),
19182
+ width: external_exports.number().positive().max(1),
19183
+ height: external_exports.number().positive().max(1)
19184
+ })
19185
+ ).optional(),
19186
+ /** True for someone the member picked by clicking them in a frame; finding people had not listed them. */
19187
+ picked: external_exports.literal(true).optional(),
19188
+ /** On a team's copy of a template's video: 1-based position of the template replacement this person is. Absent for anyone the template keeps as filmed. */
19189
+ target: external_exports.number().int().positive().optional()
19190
+ });
19191
+ var PickDittoVideoPersonBodySchema = external_exports.object({
19192
+ /** When the frame is, in milliseconds from the start of the whole video. */
19193
+ timeMs: external_exports.number().finite().nonnegative(),
19194
+ /** Where in the frame, as shares of its width and height from the top left. */
19195
+ x: external_exports.number().min(0).max(1),
19196
+ y: external_exports.number().min(0).max(1)
19153
19197
  });
19154
19198
  var DittoVideoPeopleSchema = external_exports.object({
19155
19199
  /** `finding` until they are found; `failed` when they could not be, and Put me in asks in words instead. */
@@ -22746,7 +22790,7 @@ var dittoContract = c7.router({
22746
22790
  getVideoPeople: {
22747
22791
  method: "GET",
22748
22792
  path: "/ditto/videos/:assetId/people",
22749
- summary: "The people found in a video the member imported, to choose who each avatar replaces. Starts finding them when nobody has yet",
22793
+ summary: "The people found in a video the member imported or uploaded, to choose who each avatar replaces. Starts finding them in an import nobody has looked at yet; an upload waits for findVideoPeople",
22750
22794
  pathParams: external_exports.object({ assetId: external_exports.string().uuid() }),
22751
22795
  responses: {
22752
22796
  200: DittoVideoPeopleSchema,
@@ -22754,6 +22798,31 @@ var dittoContract = c7.router({
22754
22798
  404: MessageResponseSchema
22755
22799
  }
22756
22800
  },
22801
+ findVideoPeople: {
22802
+ method: "POST",
22803
+ path: "/ditto/videos/:assetId/people/find",
22804
+ summary: "Starts finding the people in a video the member uploaded or imported, when nobody has yet, and answers what is known so far",
22805
+ pathParams: external_exports.object({ assetId: external_exports.string().uuid() }),
22806
+ body: external_exports.object({}),
22807
+ responses: {
22808
+ 200: DittoVideoPeopleSchema,
22809
+ 403: MessageResponseSchema,
22810
+ 404: MessageResponseSchema
22811
+ }
22812
+ },
22813
+ pickVideoPerson: {
22814
+ method: "POST",
22815
+ path: "/ditto/videos/:assetId/people",
22816
+ summary: "Adds the person at a point the member clicked in a frame of their video, after the people already found, and answers them. 422 when nobody is there",
22817
+ pathParams: external_exports.object({ assetId: external_exports.string().uuid() }),
22818
+ body: PickDittoVideoPersonBodySchema,
22819
+ responses: {
22820
+ 200: DittoVideoPersonSchema,
22821
+ 403: MessageResponseSchema,
22822
+ 404: MessageResponseSchema,
22823
+ 422: MessageResponseSchema
22824
+ }
22825
+ },
22757
22826
  deleteImport: {
22758
22827
  method: "DELETE",
22759
22828
  path: "/ditto/imports/:importId",
@@ -24378,6 +24447,12 @@ var teamContract = c15.router({
24378
24447
  }
24379
24448
  },
24380
24449
  // --- Team-scoped (requires X-Team-Id header) ---
24450
+ getCurrentTeam: {
24451
+ method: "GET",
24452
+ path: "/teams/current",
24453
+ responses: { 200: TeamMembershipSchema },
24454
+ summary: "The caller's membership of the team this request acts for: the X-Team-Id team, or an API key's own team without one"
24455
+ },
24381
24456
  updateTeam: {
24382
24457
  method: "PATCH",
24383
24458
  path: "/teams/current",
@@ -26348,7 +26423,7 @@ function isMajorUpgrade(current, latest) {
26348
26423
  return l[0] > c20[0];
26349
26424
  }
26350
26425
  function shouldShowUpgradeNotice(ctx = {}) {
26351
- const current = ctx.current ?? "0.50.0";
26426
+ const current = ctx.current ?? "0.50.1";
26352
26427
  const latest = ctx.latest ?? serverLatestVersion;
26353
26428
  const env = ctx.env ?? process.env;
26354
26429
  const isTty = ctx.isTty ?? Boolean(process.stderr.isTTY);
@@ -26369,7 +26444,7 @@ Upgrade: npm install -g @melius-ai/cli@latest (or: brew update && brew upgrade
26369
26444
  function printUpgradeNoticeIfNeeded(ctx = {}) {
26370
26445
  try {
26371
26446
  if (!shouldShowUpgradeNotice(ctx)) return;
26372
- const current = ctx.current ?? "0.50.0";
26447
+ const current = ctx.current ?? "0.50.1";
26373
26448
  const latest = ctx.latest ?? serverLatestVersion;
26374
26449
  process.stderr.write(formatUpgradeNotice(current, latest));
26375
26450
  } catch {
@@ -26476,7 +26551,7 @@ function createClient(config) {
26476
26551
  "Bypass-Tunnel-Reminder": "true",
26477
26552
  [CUSTOM_REQUEST_HEADERS.meliusClient]: buildMeliusClientHeader({
26478
26553
  surface: "cli",
26479
- version: "0.50.0"
26554
+ version: "0.50.1"
26480
26555
  })
26481
26556
  };
26482
26557
  if (config.teamId) {
@@ -28679,7 +28754,7 @@ Examples:
28679
28754
  Returns: status (ready, invalid, estimate_unavailable), attemptId, input, review, estimatedCredits, scriptSeconds, aspectRatios.
28680
28755
  Input: { avatar: { name } or { kind: custom|curated|element, id }, sections: [{ text, action?, title? }], voice?, backgroundId?, props?, tone?, engine?, aspectRatio?, resolution?, subtitles?, creationSettings?, scriptTemplate? }.
28681
28756
  Use 1-30 sections (text up to 5000 characters, action up to 2000, title up to 200).
28682
- Props: 1-4 items shaped { assetId, name? }; get asset IDs from mel upload or mel asset search.
28757
+ Props: 1-${CAST_VIDEO_MAX_PROPS} items shaped { assetId, name? }; get asset IDs from mel upload or mel asset search.
28683
28758
  Template reference: scriptTemplate: { id: <templateId>, revision: <revision>, source: database }; discover with mel cast templates.
28684
28759
  Omitted voice uses the avatar's saved voice. Explicit voice { kind: auto } generates speech.
28685
28760
  Other voices: { kind: stock, voiceId } or { kind: custom, customVoiceId }. Use mel audio voice list to discover voices.
@@ -33711,7 +33786,7 @@ function withDefaultHelp(args) {
33711
33786
  }
33712
33787
  function createProgram() {
33713
33788
  const program2 = new Command();
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(
33789
+ program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.50.1").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
33715
33790
  "--fields <fields>",
33716
33791
  "Select specific output fields (comma-separated)"
33717
33792
  ).option("--quiet", "Suppress output, exit code only").option("--verbose", "Log request/response metadata to stderr").addHelpText(
package/dist/src/index.js CHANGED
@@ -2,7 +2,7 @@ import { createRequire } from 'node:module'; const require = createRequire(impor
2
2
  import {
3
3
  createProgram,
4
4
  withDefaultHelp
5
- } from "../chunk-HQBTQ4N6.js";
5
+ } from "../chunk-LZJD32CC.js";
6
6
  export {
7
7
  createProgram,
8
8
  withDefaultHelp
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melius-ai/cli",
3
- "version": "0.50.0",
3
+ "version": "0.50.1",
4
4
  "description": "The Melius command-line interface — create canvases and run AI image/video generations from your terminal",
5
5
  "keywords": [
6
6
  "ai",