@melius-ai/cli 0.46.0 → 0.47.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-HF2PL2BN.js → chunk-D3PTVBQC.js} +243 -45
- package/dist/src/index.js +1 -1
- package/package.json +1 -1
package/dist/bin/mel.js
CHANGED
|
@@ -10372,7 +10372,10 @@ var CompleteFilesUploadBodySchema = external_exports.object({
|
|
|
10372
10372
|
parts: external_exports.array(CompletedPartSchema),
|
|
10373
10373
|
width: external_exports.number().int().positive().optional(),
|
|
10374
10374
|
height: external_exports.number().int().positive().optional(),
|
|
10375
|
-
folderId: external_exports.string().uuid().nullable().optional()
|
|
10375
|
+
folderId: external_exports.string().uuid().nullable().optional(),
|
|
10376
|
+
// Set by the Files page's own uploads, so their completion notifies the
|
|
10377
|
+
// member. Omitted ⇒ no notification.
|
|
10378
|
+
notifyUploader: external_exports.boolean().optional()
|
|
10376
10379
|
});
|
|
10377
10380
|
var CompleteFilesUploadResponseSchema = external_exports.object({
|
|
10378
10381
|
file: FileCardSchema
|
|
@@ -10544,6 +10547,27 @@ var UPLOAD_PROXY_PURPOSES = [
|
|
|
10544
10547
|
];
|
|
10545
10548
|
var MAX_FONT_FILE_SIZE_BYTES = 10 * 1024 * 1024;
|
|
10546
10549
|
|
|
10550
|
+
// ../api-contract/src/agent/credit-notice.ts
|
|
10551
|
+
var AgentCreditNoticeSchema = external_exports.object({
|
|
10552
|
+
id: external_exports.string().uuid().optional(),
|
|
10553
|
+
teamId: external_exports.string().uuid(),
|
|
10554
|
+
kind: external_exports.enum(["run", "build"]),
|
|
10555
|
+
requiredCredits: external_exports.number().finite().nonnegative(),
|
|
10556
|
+
availableCredits: external_exports.number().finite().nonnegative()
|
|
10557
|
+
});
|
|
10558
|
+
var creditNoticeOutputSchema = external_exports.object({
|
|
10559
|
+
creditNotice: AgentCreditNoticeSchema
|
|
10560
|
+
});
|
|
10561
|
+
var AgentCreditNoticeQuoteSchema = external_exports.object({
|
|
10562
|
+
notice: AgentCreditNoticeSchema,
|
|
10563
|
+
status: external_exports.enum(["insufficient_credits", "ready", "started", "unavailable"]),
|
|
10564
|
+
nodeCount: external_exports.number().int().nonnegative(),
|
|
10565
|
+
quoteToken: external_exports.string().optional(),
|
|
10566
|
+
message: external_exports.string().optional(),
|
|
10567
|
+
/** The quote waits on work in progress (Mel's reply or an input generating) and changes once it finishes. */
|
|
10568
|
+
waiting: external_exports.boolean().optional()
|
|
10569
|
+
});
|
|
10570
|
+
|
|
10547
10571
|
// ../api-contract/src/agent/turn-context.ts
|
|
10548
10572
|
var questionId = external_exports.string().min(1).max(200);
|
|
10549
10573
|
var AgentClarificationSubmissionSchema = external_exports.object({
|
|
@@ -10981,12 +11005,29 @@ var IMAGE_ANGLE_ROTATION_MAX_DEG = 180;
|
|
|
10981
11005
|
var IMAGE_ANGLE_TILT_MIN_DEG = -30;
|
|
10982
11006
|
var IMAGE_ANGLE_TILT_MAX_DEG = 90;
|
|
10983
11007
|
var IMAGE_ANGLE_MAX_BATCH_SIZE = 5;
|
|
10984
|
-
var
|
|
11008
|
+
var imageAngleFields = {
|
|
10985
11009
|
rotationDeg: external_exports.number().finite().int().min(IMAGE_ANGLE_ROTATION_MIN_DEG).max(IMAGE_ANGLE_ROTATION_MAX_DEG),
|
|
10986
11010
|
tiltDeg: external_exports.number().finite().int().min(IMAGE_ANGLE_TILT_MIN_DEG).max(IMAGE_ANGLE_TILT_MAX_DEG)
|
|
10987
|
-
}
|
|
10988
|
-
|
|
10989
|
-
|
|
11011
|
+
};
|
|
11012
|
+
function canonicalImageAngle(angle) {
|
|
11013
|
+
return {
|
|
11014
|
+
rotationDeg: angle.rotationDeg === IMAGE_ANGLE_ROTATION_MIN_DEG ? IMAGE_ANGLE_ROTATION_MAX_DEG : angle.rotationDeg === 0 ? 0 : angle.rotationDeg,
|
|
11015
|
+
tiltDeg: angle.tiltDeg === 0 ? 0 : angle.tiltDeg
|
|
11016
|
+
};
|
|
11017
|
+
}
|
|
11018
|
+
var ImageAngleInputSchema = external_exports.object(imageAngleFields).strict().transform(canonicalImageAngle);
|
|
11019
|
+
var IMAGE_ANGLE_RESOLUTIONS = ["1K", "2K", "4K"];
|
|
11020
|
+
var ImageAngleResolutionSchema = external_exports.enum(IMAGE_ANGLE_RESOLUTIONS);
|
|
11021
|
+
var IMAGE_ANGLE_MAX_COUNT = 4;
|
|
11022
|
+
var ImageAngleCountSchema = external_exports.number().finite().int().min(1).max(IMAGE_ANGLE_MAX_COUNT);
|
|
11023
|
+
var RegenerateImageAngleBodySchema = external_exports.object({
|
|
11024
|
+
...imageAngleFields,
|
|
11025
|
+
resolution: ImageAngleResolutionSchema.default("1K"),
|
|
11026
|
+
count: ImageAngleCountSchema.default(1)
|
|
11027
|
+
}).strict().transform(({ resolution, count, ...angle }) => ({
|
|
11028
|
+
...canonicalImageAngle(angle),
|
|
11029
|
+
resolution,
|
|
11030
|
+
count
|
|
10990
11031
|
}));
|
|
10991
11032
|
var CreateImageAngleBodySchema = external_exports.object({
|
|
10992
11033
|
sourceNodeId: external_exports.string().uuid(),
|
|
@@ -11917,11 +11958,13 @@ var FREE_GENERATION_GRANT_SOURCES = [
|
|
|
11917
11958
|
"operator",
|
|
11918
11959
|
"promotion"
|
|
11919
11960
|
];
|
|
11961
|
+
var FREE_GENERATION_MEDIA = ["image", "video", "audio"];
|
|
11920
11962
|
var FREE_GENERATION_SCOPE_VERSION = 1;
|
|
11921
11963
|
var FreeGenerationScopeSchema = external_exports.object({
|
|
11922
11964
|
version: external_exports.literal(FREE_GENERATION_SCOPE_VERSION),
|
|
11923
11965
|
actions: external_exports.array(external_exports.enum(GRANTABLE_FREE_GENERATION_ACTION_KINDS)).min(1),
|
|
11924
11966
|
callers: external_exports.array(FreeGenerationCallerSchema).min(1),
|
|
11967
|
+
media: external_exports.array(external_exports.enum(FREE_GENERATION_MEDIA)).min(1).optional(),
|
|
11925
11968
|
models: external_exports.array(external_exports.string().trim().min(1)).min(1).optional(),
|
|
11926
11969
|
limits: external_exports.object({
|
|
11927
11970
|
resolutions: external_exports.array(external_exports.string().trim().min(1)).min(1).optional(),
|
|
@@ -11959,12 +12002,18 @@ var FreeGenerationAllowanceSchema = external_exports.object({
|
|
|
11959
12002
|
/** Null when the grant never expires. */
|
|
11960
12003
|
expiresAt: external_exports.string().datetime().nullable(),
|
|
11961
12004
|
/** Whether the scope lists the caller asking; the agent still spends one only with the member's approval. */
|
|
11962
|
-
availableToCaller: external_exports.boolean()
|
|
12005
|
+
availableToCaller: external_exports.boolean(),
|
|
12006
|
+
/** The promotion whose enrollment granted it; absent from a server that predates the field. */
|
|
12007
|
+
promotionId: external_exports.string().min(1).optional()
|
|
11963
12008
|
});
|
|
11964
12009
|
var ListFreeGenerationsResponseSchema = external_exports.object({
|
|
11965
12010
|
/** In the order a run draws from them: the soonest expiry first. */
|
|
11966
12011
|
data: external_exports.array(FreeGenerationAllowanceSchema)
|
|
11967
12012
|
});
|
|
12013
|
+
var FirstCastVideoOfferResponseSchema = external_exports.object({
|
|
12014
|
+
/** Whether saving a card now would earn the team its first free Cast video, credited to the member asking. */
|
|
12015
|
+
eligible: external_exports.boolean()
|
|
12016
|
+
});
|
|
11968
12017
|
var FREE_GENERATION_UNAVAILABLE_ERROR_CODE = "FREE_GENERATION_UNAVAILABLE";
|
|
11969
12018
|
function isFreeGenerationUnavailableError(body) {
|
|
11970
12019
|
return typeof body === "object" && body !== null && body.code === FREE_GENERATION_UNAVAILABLE_ERROR_CODE;
|
|
@@ -12333,6 +12382,9 @@ var RunVideoToolBodySchema = external_exports.object({
|
|
|
12333
12382
|
toolName: external_exports.string().trim().min(1),
|
|
12334
12383
|
toolConfig: external_exports.record(external_exports.unknown()).optional()
|
|
12335
12384
|
});
|
|
12385
|
+
var QuoteVideoToolRunResponseSchema = external_exports.object({
|
|
12386
|
+
creditCost: external_exports.number().int().nonnegative()
|
|
12387
|
+
});
|
|
12336
12388
|
var ExtractVideoFrameBodySchema = external_exports.object({
|
|
12337
12389
|
canvasId: external_exports.string().uuid(),
|
|
12338
12390
|
targetNodeId: external_exports.string().uuid(),
|
|
@@ -13091,10 +13143,12 @@ var CanvasPaginationErrorSchema = external_exports.object({
|
|
|
13091
13143
|
});
|
|
13092
13144
|
|
|
13093
13145
|
// ../api-contract/src/cast/creation.ts
|
|
13146
|
+
var CastVideoEngineSchema = external_exports.enum(["seedance", "wan-3"]);
|
|
13094
13147
|
var CastVideoStyleIdSchema = external_exports.enum([
|
|
13095
13148
|
"auto",
|
|
13096
13149
|
"self-filmed",
|
|
13097
13150
|
"produced",
|
|
13151
|
+
"drama",
|
|
13098
13152
|
"vlog",
|
|
13099
13153
|
"podcast",
|
|
13100
13154
|
"unboxing",
|
|
@@ -13106,18 +13160,29 @@ var CastVideoStyleIdSchema = external_exports.enum([
|
|
|
13106
13160
|
"corporate-training",
|
|
13107
13161
|
"storytime",
|
|
13108
13162
|
"comment-reply",
|
|
13109
|
-
"streamer-reaction"
|
|
13163
|
+
"streamer-reaction",
|
|
13164
|
+
"animated-3d",
|
|
13165
|
+
"street-interview"
|
|
13110
13166
|
]);
|
|
13111
13167
|
var CAST_VIDEO_STYLE_IDS = CastVideoStyleIdSchema.options;
|
|
13112
13168
|
var CastVideoStyleSchema = external_exports.object({
|
|
13113
13169
|
id: CastVideoStyleIdSchema,
|
|
13114
13170
|
version: external_exports.literal(1)
|
|
13115
13171
|
});
|
|
13172
|
+
var CastPronunciationSchema = external_exports.object({
|
|
13173
|
+
word: external_exports.string().trim().min(1).max(200),
|
|
13174
|
+
pronunciation: external_exports.string().trim().min(1).max(200)
|
|
13175
|
+
});
|
|
13176
|
+
var MAX_CAST_PRONUNCIATIONS = 50;
|
|
13116
13177
|
var CastCreationSettingsSchema = external_exports.object({
|
|
13117
13178
|
videoStyle: CastVideoStyleSchema,
|
|
13118
|
-
speech: external_exports.enum(["on-screen", "narration"])
|
|
13179
|
+
speech: external_exports.enum(["on-screen", "narration"]),
|
|
13180
|
+
pronunciations: external_exports.array(CastPronunciationSchema).max(MAX_CAST_PRONUNCIATIONS).optional().describe(
|
|
13181
|
+
'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
|
+
)
|
|
13119
13183
|
});
|
|
13120
13184
|
var CAST_MAX_AVATARS = 3;
|
|
13185
|
+
var CAST_MAX_ACTION_BEAT_SECONDS = 8;
|
|
13121
13186
|
var CastAuthoredSectionSchema = external_exports.object({
|
|
13122
13187
|
id: external_exports.string(),
|
|
13123
13188
|
/** Optional section name; never spoken. */
|
|
@@ -13126,6 +13191,18 @@ var CastAuthoredSectionSchema = external_exports.object({
|
|
|
13126
13191
|
/** Direction for the picture, never part of the spoken read. */
|
|
13127
13192
|
action: external_exports.string().optional(),
|
|
13128
13193
|
kind: external_exports.enum(["action"]).optional(),
|
|
13194
|
+
/**
|
|
13195
|
+
* A Shot: an action beat about the place, a prop, or what the story is
|
|
13196
|
+
* looking at, with `action` saying what the camera sees. It shows nobody
|
|
13197
|
+
* from the cast as its subject; someone its words put in it appears only
|
|
13198
|
+
* as those words place them. A spoken section drops it when parsed.
|
|
13199
|
+
*/
|
|
13200
|
+
cutaway: external_exports.literal(true).optional(),
|
|
13201
|
+
/**
|
|
13202
|
+
* How long an action beat holds, in whole seconds. Absent is
|
|
13203
|
+
* `CAST_ACTION_BEAT_SECONDS`. A spoken section drops it when parsed.
|
|
13204
|
+
*/
|
|
13205
|
+
seconds: external_exports.number().int().min(1).max(CAST_MAX_ACTION_BEAT_SECONDS).optional(),
|
|
13129
13206
|
/**
|
|
13130
13207
|
* Which of the cast's avatars says it: an avatar entry id
|
|
13131
13208
|
* (`config.avatars[].id`). Absent means the cast's first avatar, which is
|
|
@@ -13151,8 +13228,37 @@ var CastAuthoredSectionSchema = external_exports.object({
|
|
|
13151
13228
|
*/
|
|
13152
13229
|
scene: external_exports.string().optional()
|
|
13153
13230
|
});
|
|
13231
|
+
function dropShotFieldsFromSpokenSections(sections) {
|
|
13232
|
+
return sections.map((section) => {
|
|
13233
|
+
if (section.kind === "action") return section;
|
|
13234
|
+
const spoken = { ...section };
|
|
13235
|
+
delete spoken.cutaway;
|
|
13236
|
+
delete spoken.seconds;
|
|
13237
|
+
return spoken;
|
|
13238
|
+
});
|
|
13239
|
+
}
|
|
13240
|
+
function castSectionsSchema(sections) {
|
|
13241
|
+
return sections.transform(dropShotFieldsFromSpokenSections).pipe(sections);
|
|
13242
|
+
}
|
|
13243
|
+
function refuseShotFieldsOffShots(section, context2) {
|
|
13244
|
+
if (section.kind !== "action" && (section.cutaway !== void 0 || section.seconds !== void 0))
|
|
13245
|
+
context2.addIssue({
|
|
13246
|
+
code: external_exports.ZodIssueCode.custom,
|
|
13247
|
+
message: 'cutaway and seconds belong to a silent action section (kind: "action")'
|
|
13248
|
+
});
|
|
13249
|
+
else if (section.seconds !== void 0 && section.cutaway !== true)
|
|
13250
|
+
context2.addIssue({
|
|
13251
|
+
code: external_exports.ZodIssueCode.custom,
|
|
13252
|
+
message: "seconds is how long a Shot holds: set it only with cutaway: true"
|
|
13253
|
+
});
|
|
13254
|
+
}
|
|
13255
|
+
function refuseShotFieldsOffShotsInSections(sections, context2) {
|
|
13256
|
+
for (const section of sections) refuseShotFieldsOffShots(section, context2);
|
|
13257
|
+
}
|
|
13154
13258
|
var CastCreationSchema = external_exports.object({
|
|
13155
|
-
sections:
|
|
13259
|
+
sections: castSectionsSchema(
|
|
13260
|
+
external_exports.array(CastAuthoredSectionSchema.omit({ id: true }))
|
|
13261
|
+
).superRefine(refuseShotFieldsOffShotsInSections),
|
|
13156
13262
|
settings: CastCreationSettingsSchema
|
|
13157
13263
|
});
|
|
13158
13264
|
|
|
@@ -13633,6 +13739,22 @@ var CastScriptSectionSchema = external_exports.object({
|
|
|
13633
13739
|
message: "A spoken beat needs words",
|
|
13634
13740
|
path: ["text"]
|
|
13635
13741
|
});
|
|
13742
|
+
var PrepareCastScriptBodySchema = external_exports.object({
|
|
13743
|
+
prompt: external_exports.string().trim().min(1).max(MAX_PROMPT_ENHANCE_INPUT_LENGTH),
|
|
13744
|
+
engine: CastVideoEngineSchema,
|
|
13745
|
+
voice: external_exports.enum(["cast", "track"]),
|
|
13746
|
+
creationSettings: CastCreationSettingsSchema,
|
|
13747
|
+
tone: external_exports.string().trim().min(1).max(MAX_CAST_TONE_LENGTH).optional(),
|
|
13748
|
+
speakers: CastScriptSpeakersSchema,
|
|
13749
|
+
references: CastScriptReferencesSchema,
|
|
13750
|
+
longVideo: external_exports.boolean(),
|
|
13751
|
+
readPacing: external_exports.boolean()
|
|
13752
|
+
});
|
|
13753
|
+
var PrepareCastScriptResponseSchema = external_exports.object({
|
|
13754
|
+
sections: external_exports.array(CastScriptSectionSchema).min(1).max(100),
|
|
13755
|
+
requestedSeconds: external_exports.number().positive().nullable(),
|
|
13756
|
+
estimatedSeconds: external_exports.number().nonnegative()
|
|
13757
|
+
});
|
|
13636
13758
|
var EnhanceScriptResponseSchema = external_exports.object({
|
|
13637
13759
|
prompt: external_exports.string(),
|
|
13638
13760
|
/**
|
|
@@ -13654,7 +13776,9 @@ var CastLocationRequestSchema = external_exports.object({
|
|
|
13654
13776
|
title: external_exports.string().max(200),
|
|
13655
13777
|
text: external_exports.string().max(MAX_PROMPT_ENHANCE_INPUT_LENGTH),
|
|
13656
13778
|
action: external_exports.string().max(4e3).optional(),
|
|
13657
|
-
scene: external_exports.string().max(4e3).optional()
|
|
13779
|
+
scene: external_exports.string().max(4e3).optional(),
|
|
13780
|
+
/** A Shot, sent without its action and scene. */
|
|
13781
|
+
cutaway: CastAuthoredSectionSchema.shape.cutaway
|
|
13658
13782
|
})
|
|
13659
13783
|
).min(1).max(100)
|
|
13660
13784
|
).min(2).max(100),
|
|
@@ -13706,19 +13830,16 @@ var CastLocationResponseSchema = external_exports.object({
|
|
|
13706
13830
|
/** Absent from reads before it, which split no look. */
|
|
13707
13831
|
kind: external_exports.enum(CAST_OUTFIT_KINDS).optional()
|
|
13708
13832
|
})
|
|
13709
|
-
).max(200).optional(),
|
|
13710
|
-
/**
|
|
13711
|
-
* The sections whose directions say what the presenter already wears,
|
|
13712
|
-
* only for a request that asks for outfit changes.
|
|
13713
|
-
*/
|
|
13714
|
-
wornOutfits: external_exports.array(
|
|
13715
|
-
external_exports.object({
|
|
13716
|
-
part: external_exports.number().int().min(0).max(99),
|
|
13717
|
-
section: external_exports.number().int().min(0).max(99),
|
|
13718
|
-
wears: external_exports.string().trim().min(1).max(300)
|
|
13719
|
-
})
|
|
13720
13833
|
).max(200).optional()
|
|
13721
13834
|
});
|
|
13835
|
+
var MAX_CAST_PRONUNCIATION_CHECKS = 5;
|
|
13836
|
+
var CastPronunciationCheckRequestSchema = external_exports.object({
|
|
13837
|
+
script: external_exports.string().trim().min(1).max(MAX_PROMPT_ENHANCE_INPUT_LENGTH),
|
|
13838
|
+
known: external_exports.array(external_exports.string().trim().min(1).max(200)).max(100).optional()
|
|
13839
|
+
});
|
|
13840
|
+
var CastPronunciationCheckResponseSchema = external_exports.object({
|
|
13841
|
+
words: external_exports.array(CastPronunciationSchema).max(MAX_CAST_PRONUNCIATION_CHECKS)
|
|
13842
|
+
});
|
|
13722
13843
|
|
|
13723
13844
|
// ../api-contract/src/veed-subtitles.ts
|
|
13724
13845
|
var VEED_SUBTITLES_BASIC_PRESETS = [
|
|
@@ -13956,7 +14077,6 @@ var CastTemplateReferenceSchema = external_exports.object({
|
|
|
13956
14077
|
|
|
13957
14078
|
// ../api-contract/src/cast/video.ts
|
|
13958
14079
|
var CAST_VIDEO_MAX_PROPS = 6;
|
|
13959
|
-
var CastVideoEngineSchema = external_exports.enum(["seedance", "wan-3"]);
|
|
13960
14080
|
var CastVideoAvatarSchema = external_exports.object({
|
|
13961
14081
|
kind: external_exports.enum(["custom", "curated", "element"]),
|
|
13962
14082
|
id: external_exports.string().uuid()
|
|
@@ -13981,7 +14101,7 @@ var CastVideoInputSchema = external_exports.object({
|
|
|
13981
14101
|
avatar: CastVideoAvatarSchema,
|
|
13982
14102
|
voice: CastVideoVoiceSchema,
|
|
13983
14103
|
voiceName: external_exports.string().max(200).optional(),
|
|
13984
|
-
/** Everyone else the video casts
|
|
14104
|
+
/** Everyone else the video casts. */
|
|
13985
14105
|
otherAvatars: external_exports.array(CastVideoOtherAvatarSchema).min(1).max(
|
|
13986
14106
|
CAST_MAX_AVATARS - 1,
|
|
13987
14107
|
`A video holds up to ${CAST_MAX_AVATARS} avatars: avatar and at most ${CAST_MAX_AVATARS - 1} in otherAvatars`
|
|
@@ -14006,7 +14126,7 @@ var CastVideoInputSchema = external_exports.object({
|
|
|
14006
14126
|
action: external_exports.string().max(2e3).optional(),
|
|
14007
14127
|
/** The id of the avatar who says it; absent is `avatar`. */
|
|
14008
14128
|
speakerId: external_exports.string().max(200).optional()
|
|
14009
|
-
}).strict()
|
|
14129
|
+
}).strict().superRefine(refuseShotFieldsOffShots)
|
|
14010
14130
|
).min(1).max(30),
|
|
14011
14131
|
backgroundId: external_exports.string().uuid().optional(),
|
|
14012
14132
|
propAssetId: external_exports.string().uuid().optional(),
|
|
@@ -14298,6 +14418,7 @@ var AgentMessageFeedbackResponseSchema = external_exports.object({
|
|
|
14298
14418
|
createdAt: external_exports.string().datetime()
|
|
14299
14419
|
});
|
|
14300
14420
|
var ApprovalCreditShortfallSchema = external_exports.object({
|
|
14421
|
+
creditNotice: AgentCreditNoticeSchema.optional(),
|
|
14301
14422
|
runNodeCount: external_exports.number().int(),
|
|
14302
14423
|
totalNodeCount: external_exports.number().int(),
|
|
14303
14424
|
requiredCredits: external_exports.number(),
|
|
@@ -14988,6 +15109,8 @@ var DomainJoinTargetSchema = external_exports.object({
|
|
|
14988
15109
|
alreadyRequested: external_exports.boolean()
|
|
14989
15110
|
});
|
|
14990
15111
|
var TeamInvitationPreviewSchema = external_exports.object({
|
|
15112
|
+
/** Picks the team mark's monogram color. Absent from older servers. */
|
|
15113
|
+
teamId: external_exports.string().uuid().optional(),
|
|
14991
15114
|
teamName: external_exports.string(),
|
|
14992
15115
|
teamPhotoUrl: external_exports.string().nullable(),
|
|
14993
15116
|
memberCount: external_exports.number().int().nonnegative(),
|
|
@@ -16376,7 +16499,10 @@ var CastGenerationOperationSchema = external_exports.enum(["script", "replacemen
|
|
|
16376
16499
|
var CastGenerationConfigSchema = external_exports.object({
|
|
16377
16500
|
operation: CastGenerationOperationSchema.optional(),
|
|
16378
16501
|
replacement: DittoInputSchema.optional(),
|
|
16379
|
-
sections:
|
|
16502
|
+
sections: castSectionsSchema(
|
|
16503
|
+
external_exports.array(CastAuthoredSectionSchema)
|
|
16504
|
+
).optional(),
|
|
16505
|
+
requestedSeconds: external_exports.number().positive().optional(),
|
|
16380
16506
|
creationSettings: CastCreationSettingsSchema.optional(),
|
|
16381
16507
|
// Attribution must not reject an otherwise valid generation record.
|
|
16382
16508
|
scriptTemplate: CastTemplateReferenceSchema.optional().catch(void 0),
|
|
@@ -16602,6 +16728,7 @@ var CastGenerationConfigSchema = external_exports.object({
|
|
|
16602
16728
|
var SharedCastConfigSchema = CastGenerationConfigSchema.pick({
|
|
16603
16729
|
autoVoice: true,
|
|
16604
16730
|
sections: true,
|
|
16731
|
+
requestedSeconds: true,
|
|
16605
16732
|
creationSettings: true,
|
|
16606
16733
|
aspectRatio: true,
|
|
16607
16734
|
tone: true,
|
|
@@ -17808,12 +17935,14 @@ var SentOnboardingFlowAssignmentSchema = external_exports.enum([
|
|
|
17808
17935
|
"flag_off",
|
|
17809
17936
|
"domain_join",
|
|
17810
17937
|
"no_team",
|
|
17811
|
-
"ditto_entry"
|
|
17938
|
+
"ditto_entry",
|
|
17939
|
+
"cast_entry"
|
|
17812
17940
|
]);
|
|
17813
17941
|
var ONBOARDING_SURFACES = [
|
|
17814
17942
|
"canvas",
|
|
17815
17943
|
"playground",
|
|
17816
17944
|
"cast",
|
|
17945
|
+
"ditto",
|
|
17817
17946
|
"explore"
|
|
17818
17947
|
];
|
|
17819
17948
|
var OnboardingSurfaceSchema = external_exports.enum(ONBOARDING_SURFACES);
|
|
@@ -17847,6 +17976,10 @@ var AccountOnboardingSchema = external_exports.object({
|
|
|
17847
17976
|
// `ditto_entry` assignment). Optional so a newer client still parses a
|
|
17848
17977
|
// server that predates it; read a missing value as false.
|
|
17849
17978
|
dittoEntry: external_exports.boolean().optional(),
|
|
17979
|
+
// The member signed up from Cast and runs its shorter onboarding (the
|
|
17980
|
+
// `cast_entry` assignment). Optional so a newer client still parses a
|
|
17981
|
+
// server that predates it; read a missing value as false.
|
|
17982
|
+
castEntry: external_exports.boolean().optional(),
|
|
17850
17983
|
answers: OnboardingAnswersSchema
|
|
17851
17984
|
});
|
|
17852
17985
|
var UpdateAccountOnboardingSchema = external_exports.object({
|
|
@@ -17882,6 +18015,7 @@ var InAppExperience;
|
|
|
17882
18015
|
InAppExperience2["AgentCreditSavingsOffer"] = "agent_credit_savings_offer";
|
|
17883
18016
|
InAppExperience2["WelcomeCreditsOffer"] = "welcome_credits_offer";
|
|
17884
18017
|
InAppExperience2["FirstMonthDiscountOffer"] = "first_month_discount_offer";
|
|
18018
|
+
InAppExperience2["FreeCastVideoToast"] = "free_cast_video_toast";
|
|
17885
18019
|
InAppExperience2["HomeGuide"] = "home_guide";
|
|
17886
18020
|
InAppExperience2["NodeToolbarSetupGuide"] = "node_toolbar_setup_guide";
|
|
17887
18021
|
InAppExperience2["NodeToolbarResultsGuide"] = "node_toolbar_results_guide";
|
|
@@ -17897,6 +18031,9 @@ var InAppExperience;
|
|
|
17897
18031
|
InAppExperience2["CastAvatarsGuide"] = "cast_avatars_guide";
|
|
17898
18032
|
InAppExperience2["CastConversationGuide"] = "cast_conversation_guide";
|
|
17899
18033
|
InAppExperience2["CastBlanksGuide"] = "cast_blanks_guide";
|
|
18034
|
+
InAppExperience2["CastNamesGuide"] = "cast_names_guide";
|
|
18035
|
+
InAppExperience2["CastShotsGuide"] = "cast_shots_guide";
|
|
18036
|
+
InAppExperience2["CastLanguageGuide"] = "cast_language_guide";
|
|
17900
18037
|
InAppExperience2["ElementCreatorGuide"] = "element_creator_guide";
|
|
17901
18038
|
InAppExperience2["ElementProductDescriptionGuide"] = "element_product_description_guide";
|
|
17902
18039
|
InAppExperience2["PlaygroundGuide"] = "playground_guide";
|
|
@@ -17921,6 +18058,7 @@ var IN_APP_EXPERIENCE_REGISTRY = {
|
|
|
17921
18058
|
[InAppExperience.AgentCreditSavingsOffer]: ON_OUTCOME,
|
|
17922
18059
|
[InAppExperience.WelcomeCreditsOffer]: ON_OUTCOME,
|
|
17923
18060
|
[InAppExperience.FirstMonthDiscountOffer]: ON_OUTCOME,
|
|
18061
|
+
[InAppExperience.FreeCastVideoToast]: ON_OUTCOME,
|
|
17924
18062
|
[InAppExperience.HomeGuide]: { version: 1, suppressAfterShown: true },
|
|
17925
18063
|
[InAppExperience.NodeToolbarSetupGuide]: ON_OUTCOME,
|
|
17926
18064
|
[InAppExperience.NodeToolbarResultsGuide]: ON_OUTCOME,
|
|
@@ -17936,6 +18074,9 @@ var IN_APP_EXPERIENCE_REGISTRY = {
|
|
|
17936
18074
|
[InAppExperience.CastAvatarsGuide]: ON_OUTCOME,
|
|
17937
18075
|
[InAppExperience.CastConversationGuide]: ON_OUTCOME,
|
|
17938
18076
|
[InAppExperience.CastBlanksGuide]: ON_OUTCOME,
|
|
18077
|
+
[InAppExperience.CastNamesGuide]: ON_OUTCOME,
|
|
18078
|
+
[InAppExperience.CastShotsGuide]: ON_OUTCOME,
|
|
18079
|
+
[InAppExperience.CastLanguageGuide]: ON_OUTCOME,
|
|
17939
18080
|
[InAppExperience.ElementCreatorGuide]: ON_OUTCOME,
|
|
17940
18081
|
[InAppExperience.ElementProductDescriptionGuide]: ON_OUTCOME,
|
|
17941
18082
|
[InAppExperience.PlaygroundGuide]: ON_OUTCOME,
|
|
@@ -18717,6 +18858,9 @@ var CompleteUploadBodySchema = external_exports.object({
|
|
|
18717
18858
|
// background refreshes set this so they don't mint a new version each time.
|
|
18718
18859
|
// Explicit user saves omit it and fork a new version as usual.
|
|
18719
18860
|
replaceActiveVersion: external_exports.boolean().optional(),
|
|
18861
|
+
// Set by an upload the member started (a canvas drop or pick), so its
|
|
18862
|
+
// completion notifies them. Omitted ⇒ no notification.
|
|
18863
|
+
notifyUploader: external_exports.boolean().optional(),
|
|
18720
18864
|
// PDF-only: how to process the upload once complete. Omitted ⇒ "summary"
|
|
18721
18865
|
// (the server default and every non-PDF upload). See PdfExtractionModeSchema.
|
|
18722
18866
|
pdfExtractionMode: PdfExtractionModeSchema.optional(),
|
|
@@ -19737,7 +19881,8 @@ var agentContract = c.router({
|
|
|
19737
19881
|
contentType: external_exports.string(),
|
|
19738
19882
|
// The member's own name for the file; the S3 key
|
|
19739
19883
|
// is a generated id. Shown on the sent message.
|
|
19740
|
-
filename: external_exports.string().optional()
|
|
19884
|
+
filename: external_exports.string().optional(),
|
|
19885
|
+
nodeId: external_exports.string().uuid().optional()
|
|
19741
19886
|
})
|
|
19742
19887
|
).max(MAX_INPUT_IMAGES).optional(),
|
|
19743
19888
|
videoUrls: external_exports.array(external_exports.string().url()).max(MAX_INPUT_VIDEOS).optional(),
|
|
@@ -19747,7 +19892,8 @@ var agentContract = c.router({
|
|
|
19747
19892
|
s3Key: external_exports.string(),
|
|
19748
19893
|
s3Bucket: external_exports.string(),
|
|
19749
19894
|
contentType: external_exports.string(),
|
|
19750
|
-
filename: external_exports.string().optional()
|
|
19895
|
+
filename: external_exports.string().optional(),
|
|
19896
|
+
nodeId: external_exports.string().uuid().optional()
|
|
19751
19897
|
})
|
|
19752
19898
|
).max(MAX_INPUT_VIDEOS).optional(),
|
|
19753
19899
|
documents: external_exports.array(
|
|
@@ -19756,7 +19902,8 @@ var agentContract = c.router({
|
|
|
19756
19902
|
s3Key: external_exports.string(),
|
|
19757
19903
|
s3Bucket: external_exports.string(),
|
|
19758
19904
|
contentType: external_exports.string(),
|
|
19759
|
-
filename: external_exports.string().optional()
|
|
19905
|
+
filename: external_exports.string().optional(),
|
|
19906
|
+
nodeId: external_exports.string().uuid().optional()
|
|
19760
19907
|
})
|
|
19761
19908
|
).max(MAX_INPUT_DOCUMENTS).optional(),
|
|
19762
19909
|
// Audio files the member attached, each already placed on the
|
|
@@ -19921,6 +20068,30 @@ var agentContract = c.router({
|
|
|
19921
20068
|
summary: "Read the avatar or background options an agent reply showed, as they render"
|
|
19922
20069
|
},
|
|
19923
20070
|
// ── Tool Approvals ──────────────────────────────────────────────────
|
|
20071
|
+
quoteCreditNotice: {
|
|
20072
|
+
method: "GET",
|
|
20073
|
+
path: "/agent/credit-notices/:noticeId/quote",
|
|
20074
|
+
pathParams: external_exports.object({ noticeId: external_exports.string().uuid() }),
|
|
20075
|
+
responses: {
|
|
20076
|
+
200: AgentCreditNoticeQuoteSchema,
|
|
20077
|
+
403: MessageResponseSchema,
|
|
20078
|
+
404: MessageResponseSchema
|
|
20079
|
+
},
|
|
20080
|
+
summary: "Requote the remaining work in a credit notice without starting it"
|
|
20081
|
+
},
|
|
20082
|
+
confirmCreditNotice: {
|
|
20083
|
+
method: "POST",
|
|
20084
|
+
path: "/agent/credit-notices/:noticeId/confirm",
|
|
20085
|
+
pathParams: external_exports.object({ noticeId: external_exports.string().uuid() }),
|
|
20086
|
+
body: external_exports.object({ quoteToken: external_exports.string().min(1).max(128) }),
|
|
20087
|
+
responses: {
|
|
20088
|
+
200: AgentCreditNoticeQuoteSchema,
|
|
20089
|
+
403: MessageResponseSchema,
|
|
20090
|
+
404: MessageResponseSchema,
|
|
20091
|
+
409: MessageResponseSchema
|
|
20092
|
+
},
|
|
20093
|
+
summary: "Explicitly approve a fresh credit notice quote"
|
|
20094
|
+
},
|
|
19924
20095
|
getApproval: {
|
|
19925
20096
|
method: "GET",
|
|
19926
20097
|
path: "/agent/approvals/:approvalId",
|
|
@@ -21012,7 +21183,7 @@ var canvasContract = c5.router({
|
|
|
21012
21183
|
canvasId: external_exports.string().uuid(),
|
|
21013
21184
|
nodeId: external_exports.string().uuid()
|
|
21014
21185
|
}),
|
|
21015
|
-
body:
|
|
21186
|
+
body: RegenerateImageAngleBodySchema,
|
|
21016
21187
|
responses: {
|
|
21017
21188
|
200: QuoteImageAngleResponseSchema,
|
|
21018
21189
|
400: MessageResponseSchema,
|
|
@@ -21031,7 +21202,7 @@ var canvasContract = c5.router({
|
|
|
21031
21202
|
}),
|
|
21032
21203
|
headers: external_exports.object({ "idempotency-key": IdempotencyKeySchema }),
|
|
21033
21204
|
metadata: { idempotent: true },
|
|
21034
|
-
body:
|
|
21205
|
+
body: RegenerateImageAngleBodySchema,
|
|
21035
21206
|
responses: {
|
|
21036
21207
|
201: CreateImageAngleResponseSchema,
|
|
21037
21208
|
202: external_exports.object({ approvalId: external_exports.string().uuid() }),
|
|
@@ -21208,6 +21379,18 @@ var canvasContract = c5.router({
|
|
|
21208
21379
|
404: NodeRunErrorResponseSchema
|
|
21209
21380
|
}
|
|
21210
21381
|
},
|
|
21382
|
+
// Read-only: prices a video tool run without starting it.
|
|
21383
|
+
quoteVideoToolRun: {
|
|
21384
|
+
method: "POST",
|
|
21385
|
+
path: "/nodes/:nodeId/video-tool-run-quotes",
|
|
21386
|
+
pathParams: external_exports.object({ nodeId: external_exports.string().uuid() }),
|
|
21387
|
+
body: RunVideoToolBodySchema,
|
|
21388
|
+
responses: {
|
|
21389
|
+
200: QuoteVideoToolRunResponseSchema,
|
|
21390
|
+
400: NodeRunErrorResponseSchema,
|
|
21391
|
+
404: NodeRunErrorResponseSchema
|
|
21392
|
+
}
|
|
21393
|
+
},
|
|
21211
21394
|
extractVideoFrame: {
|
|
21212
21395
|
method: "POST",
|
|
21213
21396
|
path: "/nodes/:nodeId/frame-extractions",
|
|
@@ -23443,6 +23626,12 @@ var freeGenerationContract = c10.router({
|
|
|
23443
23626
|
path: "/free-generations",
|
|
23444
23627
|
responses: { 200: ListFreeGenerationsResponseSchema },
|
|
23445
23628
|
summary: "List the team's free generations: what each covers and how many are left"
|
|
23629
|
+
},
|
|
23630
|
+
getFirstCastVideoOffer: {
|
|
23631
|
+
method: "GET",
|
|
23632
|
+
path: "/free-generations/first-cast-video-offer",
|
|
23633
|
+
responses: { 200: FirstCastVideoOfferResponseSchema },
|
|
23634
|
+
summary: "Whether saving a card now would earn the team its first free Cast video"
|
|
23446
23635
|
}
|
|
23447
23636
|
});
|
|
23448
23637
|
|
|
@@ -24375,15 +24564,18 @@ var CastScriptLanguageSchema = external_exports.object({
|
|
|
24375
24564
|
|
|
24376
24565
|
// ../api-contract/src/cast/comment-read.ts
|
|
24377
24566
|
var CastCommentReadBodySchema = external_exports.object({
|
|
24378
|
-
/** The script as written: its words, actions and
|
|
24379
|
-
sections:
|
|
24380
|
-
|
|
24381
|
-
|
|
24382
|
-
|
|
24383
|
-
|
|
24384
|
-
|
|
24385
|
-
|
|
24386
|
-
|
|
24567
|
+
/** The script as written: its words, actions, scenes and Shots. */
|
|
24568
|
+
sections: castSectionsSchema(
|
|
24569
|
+
external_exports.array(
|
|
24570
|
+
CastAuthoredSectionSchema.pick({
|
|
24571
|
+
text: true,
|
|
24572
|
+
action: true,
|
|
24573
|
+
scene: true,
|
|
24574
|
+
kind: true,
|
|
24575
|
+
cutaway: true
|
|
24576
|
+
})
|
|
24577
|
+
).min(1)
|
|
24578
|
+
)
|
|
24387
24579
|
}).strict();
|
|
24388
24580
|
var CastCommentReadSchema = external_exports.object({
|
|
24389
24581
|
/** Null when the script quotes no comment it replies to, or the read could not tell. */
|
|
@@ -24497,6 +24689,12 @@ var CastPropReferenceSchema = external_exports.object({
|
|
|
24497
24689
|
assetId: external_exports.string().uuid(),
|
|
24498
24690
|
referenceAssetId: external_exports.string().uuid().describe(
|
|
24499
24691
|
"The picture the clip takes for this prop: the prop picture itself, or a copy showing the product alone when the picture shows a real person."
|
|
24692
|
+
),
|
|
24693
|
+
showsPerson: external_exports.literal(true).optional().describe(
|
|
24694
|
+
"The prop picture shows a real person and the clip has no product-only copy to take instead, because every image model refused the edit or it is still running, so it would take that person as its presenter."
|
|
24695
|
+
),
|
|
24696
|
+
copyPending: external_exports.literal(true).optional().describe(
|
|
24697
|
+
"With showsPerson: the product-only copy is still being made or stored, so a Generate a few minutes later gets it."
|
|
24500
24698
|
)
|
|
24501
24699
|
});
|
|
24502
24700
|
var ResolveCastPropReferencesResponseSchema = external_exports.object({
|
|
@@ -25955,7 +26153,7 @@ function isMajorUpgrade(current, latest) {
|
|
|
25955
26153
|
return l[0] > c20[0];
|
|
25956
26154
|
}
|
|
25957
26155
|
function shouldShowUpgradeNotice(ctx = {}) {
|
|
25958
|
-
const current = ctx.current ?? "0.
|
|
26156
|
+
const current = ctx.current ?? "0.47.0";
|
|
25959
26157
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
25960
26158
|
const env = ctx.env ?? process.env;
|
|
25961
26159
|
const isTty = ctx.isTty ?? Boolean(process.stderr.isTTY);
|
|
@@ -25976,7 +26174,7 @@ Upgrade: npm install -g @melius-ai/cli@latest (or: brew update && brew upgrade
|
|
|
25976
26174
|
function printUpgradeNoticeIfNeeded(ctx = {}) {
|
|
25977
26175
|
try {
|
|
25978
26176
|
if (!shouldShowUpgradeNotice(ctx)) return;
|
|
25979
|
-
const current = ctx.current ?? "0.
|
|
26177
|
+
const current = ctx.current ?? "0.47.0";
|
|
25980
26178
|
const latest = ctx.latest ?? serverLatestVersion;
|
|
25981
26179
|
process.stderr.write(formatUpgradeNotice(current, latest));
|
|
25982
26180
|
} catch {
|
|
@@ -26083,7 +26281,7 @@ function createClient(config) {
|
|
|
26083
26281
|
"Bypass-Tunnel-Reminder": "true",
|
|
26084
26282
|
[CUSTOM_REQUEST_HEADERS.meliusClient]: buildMeliusClientHeader({
|
|
26085
26283
|
surface: "cli",
|
|
26086
|
-
version: "0.
|
|
26284
|
+
version: "0.47.0"
|
|
26087
26285
|
})
|
|
26088
26286
|
};
|
|
26089
26287
|
if (config.teamId) {
|
|
@@ -32019,7 +32217,7 @@ function registerFreeGenerationCommands(program2, getOutputOpts) {
|
|
|
32019
32217
|
"after",
|
|
32020
32218
|
`
|
|
32021
32219
|
Returns: an array of { grantId, scopeTemplateId, label, unit, scope, quantity, remaining, source, startsAt, expiresAt, availableToCaller }, in the order runs use them (the soonest expiry first; expiresAt null never expires).
|
|
32022
|
-
scope is what one free generation covers: actions (${GRANTABLE_FREE_GENERATION_ACTION_KINDS.join(", ")}), callers (${FREE_GENERATION_CALLERS.join(", ")}), models, and limits (resolutions, maxDurationSeconds, maxOutputs). Every listed setting has to match.
|
|
32220
|
+
scope is what one free generation covers: actions (${GRANTABLE_FREE_GENERATION_ACTION_KINDS.join(", ")}), callers (${FREE_GENERATION_CALLERS.join(", ")}), media (${FREE_GENERATION_MEDIA.join(", ")}), models, and limits (resolutions, maxDurationSeconds, maxOutputs). Every listed setting has to match.
|
|
32023
32221
|
A run from the CLI can use one only when availableToCaller is true and remaining is above 0.
|
|
32024
32222
|
To use one, add --use-free-generation to mel run start, mel bulk-run start or mel ditto run. A run that asks for one and finds none that covers it is refused, never billed.
|
|
32025
32223
|
|
|
@@ -33288,7 +33486,7 @@ function withDefaultHelp(args) {
|
|
|
33288
33486
|
}
|
|
33289
33487
|
function createProgram() {
|
|
33290
33488
|
const program2 = new Command();
|
|
33291
|
-
program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.
|
|
33489
|
+
program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.47.0").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
|
|
33292
33490
|
"--fields <fields>",
|
|
33293
33491
|
"Select specific output fields (comma-separated)"
|
|
33294
33492
|
).option("--quiet", "Suppress output, exit code only").option("--verbose", "Log request/response metadata to stderr").addHelpText(
|
package/dist/src/index.js
CHANGED