makaron-cli 0.17.14 → 0.17.16
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +2 -2
- package/bin/makaron.mjs +29 -9
- package/package.json +1 -1
- package/skills/makaron/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -473,7 +473,7 @@ For project/timeline video editing, use:
|
|
|
473
473
|
npx makaron-cli chat --project <id|auto> --video input.mp4 -b "make it funny"
|
|
474
474
|
```
|
|
475
475
|
|
|
476
|
-
Kling 4.0: use `--video-model kling-4` for native text-to-video or image/video feature references, integer 3–30s at 720p (default) or 1080p. Up to 10 images and 5 videos; source videos must each be 3s or longer, total at most 30s, 720–2160px per side, 24–60fps and at most 200MB each. `--video-operation edit` requires exactly one source video and preserves its canvas/audio. Explicit keyframe I2V, extension and replacement-audio controls are not exposed. Retake defaults to `kling-4` at 720p, original audio only, source at least 3s, no final/middle frame control. Kling 4.0 Flash
|
|
476
|
+
Kling 4.0: use `--video-model kling-4` for native text-to-video or image/video feature references, integer 3–30s at 720p (default) or 1080p. Up to 10 images and 5 videos; source videos must each be 3s or longer, total at most 30s, 720–2160px per side, 24–60fps and at most 200MB each. `--video-operation edit` requires exactly one source video and preserves its canvas/audio. Explicit keyframe I2V, extension and replacement-audio controls are not exposed. Retake defaults to `kling-4` at 720p, original audio only, source at least 3s, no final/middle frame control. Kling 4.0 Flash (`kling-4-flash`) is the default when `--video-model` is omitted (omitting it with `--duration` above 20 uses `seedance-2.5`): the faster variant with the same inputs, edit route and Retake rules, but integer 3–20s at 720p only, scripts at most 2500 characters, and source/reference videos at most 20s total. Never silently substitute one Kling 4 variant for the other.
|
|
477
477
|
|
|
478
478
|
Options for `video create`: `--script "..."`, `--script-file <path>`, `--image <url>` (repeatable, up to the selected model limit), `--video <file|url>` and `--audio <file|url>` (repeatable where supported), `--voice <xai-preset-id>` (repeatable, Grok only), `--duration <seconds>`, `--aspect 9:16|16:9|1:1`, `--video-model seedance-fast|seedance-mini|seedance|seedance-2.5|wan-3.0|wan-3.0-prime|kling-4|grok|google-omni|minimax-h3|minimax-h3-max|fal-h3-max|sync-lipsync-v3`, `--video-resolution auto|480p|720p|768p|1080p|2k|4k`. Default model is FAL H3 Max (`fal-h3-max`) at 768p (480p/1080p optional): native text-to-video or image/video/audio reference-to-video, integer 5-15s, up to 9 images + 3 videos + 3 audios (12 total). SeeDance accepts native text-to-video with no image and integer output duration 4-15s (default 5s); every Seedance image input is submitted through reference-to-video, including one image. `seedance-mini` supports 480p/720p and is best for cheaper drafts/multi-size tests. Wan 3.0 and Wan 3.0 Prime both expose 480p/720p/1080p/2K/4K; 2K/4K automatically use the matching FlashVSR endpoint. MiniMax H3 accepts native text-to-video, 4-15s output, public 768p/2k resolution, and up to 9 image, up to 3 video, and up to 3 audio feature references through Makaron Agent/chat; a single image keeps the `reference_image` role. `sync-lipsync-v3` requires exactly one video plus one MP3/WAV and preserves that replacement audio while aligning the mouth. H3 defaults to 768p; request 2k explicitly for maximum/final quality. Kling 4.0 supports integer 3-30s in one call. Grok generation uses `grok-imagine-video-1.5`: text-only generation supports 480p/720p/1080p, while any 1-7 image or preset voice input uses reference-to-video and is capped at 720p. Grok edit/extend uses `grok-imagine-video` internally under the same `grok` selector. Gemini Omni 1.2 supports 3-15s fast image/video generation and editing with native generated audio and multi-speaker dialogue; every image-only generation request uses `reference_to_video`, including a single image, with up to 6 images when no video reference is provided.
|
|
479
479
|
|
|
@@ -610,7 +610,7 @@ send_message "All done!"
|
|
|
610
610
|
- One project = one conversation thread. All history is preserved.
|
|
611
611
|
- One active Agent Run at a time per project. A new message received while it is active is appended to that same Agent Run and processed at a durable work-unit boundary; it does not interrupt the execution or create a second owner for an in-progress Studio workflow.
|
|
612
612
|
- Multi-image: `create --image a.jpg --image b.jpg` or `chat --image ref.jpg`.
|
|
613
|
-
- Video timing depends on the selected model: fal H3 Turbo and fal H3 Max usually finish in tens of seconds; Max with video references may take around 1-2 minutes. Queue and saving time can vary; other providers may take 3-5 minutes; current Grok generation/edit probes are usually around 15-60 seconds; Gemini Omni is usually around 50-100 seconds plus Storage handoff. Remotion compositions should be converted with `materialize` / `responses get --materialize`, and timing should be read from `duration_seconds`, `render_seconds`, and `realtime_ratio`.
|
|
613
|
+
- Video timing depends on the selected model: Kling 4.0 Flash (default) usually finishes in about 1-2 minutes; fal H3 Turbo and fal H3 Max usually finish in tens of seconds; Max with video references may take around 1-2 minutes. Queue and saving time can vary; other providers may take 3-5 minutes; current Grok generation/edit probes are usually around 15-60 seconds; Gemini Omni is usually around 50-100 seconds plus Storage handoff. Remotion compositions should be converted with `materialize` / `responses get --materialize`, and timing should be read from `duration_seconds`, `render_seconds`, and `realtime_ratio`.
|
|
614
614
|
- Music takes ~60 seconds. Appears in output when done.
|
|
615
615
|
- Images are typically ready in 15-30 seconds.
|
|
616
616
|
- stdout is always machine-readable JSON/text. Human-friendly logs go to stderr.
|
package/bin/makaron.mjs
CHANGED
|
@@ -77,6 +77,20 @@ const MINIMAX_H3_MAX_VIDEO_SIDE = 5760;
|
|
|
77
77
|
const MULEROUTER_WAN_MAX_VIDEO_SIDE = 4096;
|
|
78
78
|
const MULEROUTER_WAN_MAX_VIDEO_FILE_SIZE = 100 * 1024 * 1024;
|
|
79
79
|
|
|
80
|
+
// Provider version shown next to a model id, so users know which release runs.
|
|
81
|
+
const VIDEO_MODEL_LABELS = {
|
|
82
|
+
'google-omni': 'Gemini Omni 1.2 Flash',
|
|
83
|
+
'kling-4': 'Kling 4.0',
|
|
84
|
+
'kling-4-flash': 'Kling 4.0 Flash',
|
|
85
|
+
'fal-h3-max': 'FAL H3 Max',
|
|
86
|
+
'minimax-h3-max': 'H3 Max Turbo',
|
|
87
|
+
'grok': 'Grok Imagine Video 1.5',
|
|
88
|
+
};
|
|
89
|
+
function describeVideoModel(id) {
|
|
90
|
+
const label = VIDEO_MODEL_LABELS[String(id)];
|
|
91
|
+
return label ? `${id} (${label})` : String(id);
|
|
92
|
+
}
|
|
93
|
+
|
|
80
94
|
function warnLegacyModelFlag(replacement) {
|
|
81
95
|
process.stderr.write(`⚠️ --model is deprecated here; use ${replacement}.\n`);
|
|
82
96
|
}
|
|
@@ -687,7 +701,7 @@ async function streamAgent(baseUrl, headers, projectId, prompt, opts = {}) {
|
|
|
687
701
|
case 'tool_call':
|
|
688
702
|
process.stderr.write(`\n🔧 ${event.tool}`);
|
|
689
703
|
if (event.input?.editPrompt) process.stderr.write(`\n editPrompt: ${event.input.editPrompt}`);
|
|
690
|
-
if (event.input?.model) process.stderr.write(`\n model: ${event.input.model}`);
|
|
704
|
+
if (event.input?.model) process.stderr.write(`\n model: ${describeVideoModel(event.input.model)}`);
|
|
691
705
|
if (event.input?.skill) process.stderr.write(`\n skill: ${event.input.skill}`);
|
|
692
706
|
if (event.input?.description) process.stderr.write(`: ${event.input.description.substring(0, 80)}`);
|
|
693
707
|
process.stderr.write('\n');
|
|
@@ -829,7 +843,7 @@ async function pollRun(baseUrl, headers, runId, opts = {}) {
|
|
|
829
843
|
case 'tool_call':
|
|
830
844
|
process.stderr.write(`\n🔧 ${ev.data?.tool || ''}`);
|
|
831
845
|
if (ev.data?.input?.editPrompt) process.stderr.write(`\n editPrompt: ${ev.data.input.editPrompt}`);
|
|
832
|
-
if (ev.data?.input?.model) process.stderr.write(`\n model: ${ev.data.input.model}`);
|
|
846
|
+
if (ev.data?.input?.model) process.stderr.write(`\n model: ${describeVideoModel(ev.data.input.model)}`);
|
|
833
847
|
if (ev.data?.input?.description) process.stderr.write(`: ${ev.data.input.description.substring(0, 80)}`);
|
|
834
848
|
process.stderr.write('\n');
|
|
835
849
|
break;
|
|
@@ -2131,7 +2145,7 @@ Generation options:
|
|
|
2131
2145
|
--duration <seconds> Output duration supported by the selected model.
|
|
2132
2146
|
--video-resolution <res> auto, 480p, 720p, 768p, 1080p, 2k, or 4k.
|
|
2133
2147
|
--aspect <ratio> 9:16, 16:9, 1:1, or another supported ratio.
|
|
2134
|
-
--video-operation <mode> generate, edit, or extend (Seedance 2.5 / Grok); Kling 4 / Kling 4 Flash support generate/edit.
|
|
2148
|
+
--video-operation <mode> generate, edit, or extend (Seedance 2.5 / Grok / Gemini Omni 1.2); Kling 4 / Kling 4 Flash support generate/edit.
|
|
2135
2149
|
--extend-direction <dir> forward or backward.
|
|
2136
2150
|
--output-format <format> mp4 or mov.
|
|
2137
2151
|
--generated-audio Ask the provider to generate audio.
|
|
@@ -2144,9 +2158,12 @@ Generation options:
|
|
|
2144
2158
|
Recent model choices:
|
|
2145
2159
|
kling-4 Kling 4.0 standard: native text/image/video references, 3–30s, 720p/1080p.
|
|
2146
2160
|
Native edit preserves source audio; default for video retake.
|
|
2147
|
-
kling-4-flash Kling 4.0 Flash: faster
|
|
2148
|
-
3–20s, 720p only, video inputs <=20s total.
|
|
2149
|
-
|
|
2161
|
+
kling-4-flash Kling 4.0 Flash (default): faster Kling 4.0 with the same inputs and edit route;
|
|
2162
|
+
3–20s, 720p only, video inputs <=20s total, script <=2500 characters.
|
|
2163
|
+
google-omni Gemini Omni 1.2 Flash: 3–15s text/image/video with native audio, multi-speaker
|
|
2164
|
+
dialogue and lip-sync; edit (source <=15s) or extend (+3–10s, up to 30s);
|
|
2165
|
+
360p/720p, upscaled 1080p/4k.
|
|
2166
|
+
fal-h3-max FAL H3 Max (768p) reference-to-video: images, videos and audio;
|
|
2150
2167
|
integer 5–15s, 480p/768p/1080p, default 768p. Reference inputs cost extra.
|
|
2151
2168
|
minimax-h3-max fal H3 Turbo faster-than-real-time T2V or one-start-image I2V;
|
|
2152
2169
|
5/10/15s; native 768p default or 480p; no video/audio/multi-image references.
|
|
@@ -2178,7 +2195,8 @@ function printVideoHelp() {
|
|
|
2178
2195
|
video create --script "..." --video-model wan-3.0-prime Fast Wan tier, up to 4k
|
|
2179
2196
|
video create --script "..." --video-model seedance-2.5 4-30s multimodal generation/edit/extend
|
|
2180
2197
|
video create --script "..." --video-model kling-4 Kling 4.0, 3-30s, 720p/1080p
|
|
2181
|
-
video create --script "..." --video-model kling-4-flash Kling 4.0 Flash
|
|
2198
|
+
video create --script "..." --video-model kling-4-flash Kling 4.0 Flash (default), 3-20s 720p
|
|
2199
|
+
video create --script "..." --video-model google-omni Gemini Omni 1.2 Flash, 3-15s with dialogue
|
|
2182
2200
|
video create --script "..." --video <file|url> --video-model grok --video-operation extend
|
|
2183
2201
|
Edit or extend one MP4 with Grok
|
|
2184
2202
|
video create --script "..." --video <url> --audio <url> --video-model sync-lipsync-v3
|
|
@@ -3390,7 +3408,8 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3390
3408
|
? 'wan-3.0-prime'
|
|
3391
3409
|
: ['kling4', 'kling-4.0', 'kling 4.0', 'kling 4'].includes(String(videoModel).toLowerCase()) ? 'kling-4'
|
|
3392
3410
|
: ['kling4-flash', 'kling-4.0-flash', 'kling 4.0 flash', 'kling 4 flash'].includes(String(videoModel).toLowerCase()) ? 'kling-4-flash'
|
|
3393
|
-
|
|
3411
|
+
: ['omni', 'gemini-omni', 'gemini-omni-1.2', 'gemini-omni-1.2-flash', 'omni-1.2', 'gemini omni', 'gemini omni 1.2'].includes(String(videoModel).toLowerCase()) ? 'google-omni'
|
|
3412
|
+
: (videoModel || (duration != null && duration > 20 ? 'seedance-2.5' : 'kling-4-flash'));
|
|
3394
3413
|
const isSeedance25 = ['seedance-2.5', 'seedance-2.5-eco'].includes(selectedVideoModel);
|
|
3395
3414
|
const isWan30 = selectedVideoModel === 'wan-3.0' || selectedVideoModel === 'wan-3.0-prime';
|
|
3396
3415
|
const isSeedanceModel = selectedVideoModel === 'seedance-fast' || selectedVideoModel === 'seedance-mini' || selectedVideoModel === 'seedance' || isSeedance25;
|
|
@@ -3413,6 +3432,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3413
3432
|
if (isKling4 && (images.length > 10 || videos.length > 5 || audios.length)) { console.error(`${kling4Label} accepts at most 10 images and 5 videos, with no audio references.`); process.exit(1); }
|
|
3414
3433
|
if (isKling4 && duration != null && (!Number.isInteger(duration) || duration < 3 || duration > kling4MaxSeconds)) { console.error(`${kling4Label} output duration must be an integer from 3 to ${kling4MaxSeconds} seconds.`); process.exit(1); }
|
|
3415
3434
|
if (isKling4Flash && videoResolution && !['auto', '720p'].includes(videoResolution.toLowerCase())) { console.error('Kling 4.0 Flash supports 720p only.'); process.exit(1); }
|
|
3435
|
+
if (isKling4 && script.length > 2500) { console.error(`${kling4Label} scripts are limited to 2500 characters (this one has ${script.length}). Shorten the script, or choose another model with --video-model.`); process.exit(1); }
|
|
3416
3436
|
if (isFalReference && (images.length > 9 || videos.length > 3 || audios.length > 3 || images.length + videos.length + audios.length > 12)) { console.error('FAL H3 Max accepts at most 9 images, 3 videos, 3 audios, 12 total.'); process.exit(1); }
|
|
3417
3437
|
if (isFalReference && duration != null && (!Number.isInteger(duration) || duration < 5 || duration > 15)) { console.error('FAL H3 Max output duration must be an integer from 5 to 15 seconds.'); process.exit(1); }
|
|
3418
3438
|
if (isSeedance25 && images.length > 30) { console.error('Seedance 2.5 supports at most 30 image references.'); process.exit(1); }
|
|
@@ -3511,7 +3531,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3511
3531
|
audioUrls.push(uploaded);
|
|
3512
3532
|
}
|
|
3513
3533
|
// Standalone MCP tool (no project timeline write)
|
|
3514
|
-
process.stderr.write(
|
|
3534
|
+
process.stderr.write(`🎬 Submitting video (${describeVideoModel(selectedVideoModel)})...\n`);
|
|
3515
3535
|
const resolvedOperation = inferredOperation;
|
|
3516
3536
|
const vArgs = isSyncLipsync
|
|
3517
3537
|
? { script, images, videoUrls, audioUrls, videoModel: selectedVideoModel, videoResolution }
|
package/package.json
CHANGED
package/skills/makaron/SKILL.md
CHANGED
|
@@ -397,7 +397,7 @@ Chat segment inspection also reads source speech through ASR, reusing cached tra
|
|
|
397
397
|
npx makaron-cli chat --project <id|auto> --video input.mp4 -b "make it funny"
|
|
398
398
|
```
|
|
399
399
|
|
|
400
|
-
Kling 4.0: use `--video-model kling-4` for native text-to-video or image/video feature references, integer 3–30s at 720p (default) or 1080p. Up to 10 images and 5 videos; source videos must each be 3s or longer, total at most 30s, 720–2160px per side, 24–60fps and at most 200MB each. `--video-operation edit` requires exactly one source video and preserves its canvas/audio. Explicit keyframe I2V, extension and replacement-audio controls are not exposed. Retake defaults to `kling-4` at 720p, original audio only, source at least 3s, no final/middle frame control. Kling 4.0 Flash
|
|
400
|
+
Kling 4.0: use `--video-model kling-4` for native text-to-video or image/video feature references, integer 3–30s at 720p (default) or 1080p. Up to 10 images and 5 videos; source videos must each be 3s or longer, total at most 30s, 720–2160px per side, 24–60fps and at most 200MB each. `--video-operation edit` requires exactly one source video and preserves its canvas/audio. Explicit keyframe I2V, extension and replacement-audio controls are not exposed. Retake defaults to `kling-4` at 720p, original audio only, source at least 3s, no final/middle frame control. Kling 4.0 Flash (`kling-4-flash`) is the default when `--video-model` is omitted (omitting it with `--duration` above 20 uses `seedance-2.5`): the faster variant with the same inputs, edit route and Retake rules, but integer 3–20s at 720p only, scripts at most 2500 characters, and source/reference videos at most 20s total. Never silently substitute one Kling 4 variant for the other.
|
|
401
401
|
|
|
402
402
|
Options for `video create`: `--script "..."`, `--script-file <path>`, `--image <url>` (repeatable, up to the selected model limit), `--video <file|url>` and `--audio <file|url>` (repeatable where supported), `--voice <xai-preset-id>` (repeatable, Grok only), `--duration <seconds>`, `--aspect 9:16|16:9|1:1`, `--video-model seedance-fast|seedance-mini|seedance|seedance-2.5|wan-3.0|wan-3.0-prime|kling-4|grok|google-omni|minimax-h3|minimax-h3-max|fal-h3-max|sync-lipsync-v3`, `--video-resolution auto|480p|720p|768p|1080p|2k|4k`. Default model is FAL H3 Max (`fal-h3-max`) at 768p (480p/1080p optional): native text-to-video or image/video/audio reference-to-video, integer 5-15s, up to 9 images + 3 videos + 3 audios (12 total). SeeDance accepts native text-to-video with no image and integer output duration 4-15s (default 5s); every Seedance image input uses reference-to-video, including one image. `seedance-mini` supports 480p/720p and is best for cheaper drafts/multi-size tests. Wan 3.0 and Wan 3.0 Prime both expose 480p/720p/1080p/2K/4K; 2K/4K automatically use the matching FlashVSR endpoint. MiniMax H3 accepts native text-to-video, 4-15s output, public 768p/2k resolution, and up to 9 image, up to 3 video, and up to 3 audio feature references through Makaron Agent/chat; a single image keeps the `reference_image` role. fal H3 Turbo (`minimax-h3-max`) accepts native text-to-video or exactly one start image for image-to-video, exact 5/10/15s duration, and 480p/768p; it does not accept reference video/audio or multiple images. `sync-lipsync-v3` requires exactly one video plus one MP3/WAV and preserves that replacement audio while aligning the mouth. H3 defaults to 768p; request 2k explicitly for maximum/final quality. Kling 4.0 supports integer 3-30s in one call. Grok text-only generation supports 480p/720p/1080p; any 1-7 image or preset voice input uses reference-to-video and is capped at 720p. Grok edit/extend uses `grok-imagine-video` internally. Gemini Omni image-only generation always uses `reference_to_video`, including one image, with up to 6 images when no video reference is provided.
|
|
403
403
|
|
|
@@ -554,7 +554,7 @@ send_message "All done!"
|
|
|
554
554
|
- One project = one conversation thread. All history is preserved.
|
|
555
555
|
- One active Agent Run at a time per project. A new message received while it is active is appended to that same Agent Run and processed at a durable work-unit boundary; it does not interrupt the execution or create a second owner for an in-progress Studio workflow.
|
|
556
556
|
- Multi-image: `create --image a.jpg --image b.jpg` or `chat --image ref.jpg`.
|
|
557
|
-
- Video timing depends on the selected model: fal H3 Turbo and fal H3 Max usually finish in tens of seconds; Max with video references may take around 1-2 minutes. Queue and saving time can vary; other providers may take 3-5 minutes; current Grok generation/edit probes are usually around 15-60 seconds; Gemini Omni is usually around 50-100 seconds plus Storage handoff. Remotion compositions should be converted with `materialize` / `responses get --materialize`, and timing should be read from `duration_seconds`, `render_seconds`, and `realtime_ratio`.
|
|
557
|
+
- Video timing depends on the selected model: Kling 4.0 Flash (default) usually finishes in about 1-2 minutes; fal H3 Turbo and fal H3 Max usually finish in tens of seconds; Max with video references may take around 1-2 minutes. Queue and saving time can vary; other providers may take 3-5 minutes; current Grok generation/edit probes are usually around 15-60 seconds; Gemini Omni is usually around 50-100 seconds plus Storage handoff. Remotion compositions should be converted with `materialize` / `responses get --materialize`, and timing should be read from `duration_seconds`, `render_seconds`, and `realtime_ratio`.
|
|
558
558
|
- Music takes ~60 seconds. Appears in output when done.
|
|
559
559
|
- Images are typically ready in 15-30 seconds.
|
|
560
560
|
- stdout is always machine-readable JSON/text. Human-friendly logs go to stderr.
|