makaron-cli 0.17.21 → 0.17.22

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.21",
3
+ "version": "0.17.22",
4
4
  "description": "Give Claude Code a creative agent. Pass complete creative requests and source media to Makaron Chat.",
5
5
  "author": {
6
6
  "name": "Versa AI",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.21",
3
+ "version": "0.17.22",
4
4
  "description": "Give Codex a creative agent. Pass complete creative requests and source media to Makaron Chat.",
5
5
  "author": {
6
6
  "name": "Versa AI",
package/README.md CHANGED
@@ -483,7 +483,7 @@ Options for `video create`: `--script "..."`, `--script-file <path>`, `--image <
483
483
 
484
484
  fal H3 Turbo: use `--video-model minimax-h3-max` for faster-than-real-time generation. It supports exactly 5/10/15 seconds at 480p/768p and defaults to native 768p, with no image for T2V or exactly one `--image` for I2V. It does not accept reference video/audio or multiple images.
485
485
 
486
- Seedance 2.5: use `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30 second videos generated at 480p then automatically upscaled to 720p, 1080p (default), 2K or 4K. Use `seedance-2.5-native` explicitly for native output at 480p (default) or 720p. `--image` accepts local files or URLs (up to 30), while repeatable `--video` and `--audio` accept up to 10 each. Use `--video-operation generate|edit|extend`, `--extend-direction forward|backward`, `--output-format mp4|mov`, `--web-search`, `--generated-audio` / `--no-generated-audio`, and `--relaxed-content-filter`. Edit/extend require a video reference. Eco delivers MP4; MOV is native-only. The native Evolink route does not expose 4K output.
486
+ Seedance 2.5: use `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30 second videos generated at 480p then automatically upscaled to 720p, 1080p (default), 2K or 4K. Use `seedance-2.5-native` explicitly for native output at 480p (default), 720p, 1080p or 4K. `--image` accepts local files or URLs (up to 30), while repeatable `--video` and `--audio` accept up to 10 each. Use `--video-operation generate|edit|extend`, `--extend-direction forward|backward`, `--output-format mp4|mov`, `--web-search`, `--generated-audio` / `--no-generated-audio`, and `--relaxed-content-filter`. Edit/extend require a video reference. Eco delivers MP4; MOV is native-only. Native 4K passes `quality: "4k"` to the EvoLink generation API, without Eco enhancement. Native1080p/4K MP4 uses10bit HEVC; verify playback in a compatible player. Apply the reviewed high-resolution tariff before new product requests; missing prices block submission.
487
487
 
488
488
  Wan 3.0: choose `--video-model wan-3.0` or the faster `--video-model wan-3.0-prime`. Both support 2-30 second generation, 480p/720p/1080p/2K/4K, and up to 10 images, 5 videos, and 5 audio references. Pass `--video-resolution 2k|4k` to use the matching FlashVSR/Pro endpoint automatically; Pro is not a separate model selector. Use generation mode with feature references; typed edit/extend and `--relaxed-content-filter` are not supported.
489
489
 
@@ -769,3 +769,12 @@ Both paths return a Makaron `projectUrl`. Open it to move/scale, reorder or dele
769
769
  Use `--editable-text` only when the user explicitly requests native editable text fields. It makes recognized text editable using approximate fonts; edited wording can differ in typography, texture and styling. A request to split layers or change wording alone does not imply this option. Describe the default result as image layers, including lettering, rather than promising native editable text. The original image and PNG layers remain in the project/workspace.
770
770
 
771
771
  `--project` reuses a project; otherwise the direct command creates a private project. `--max-outputs` is 2–100 including the background (default 8); quality is `auto|1K|1.5K|2K` (default `1K` for faster decomposition). One quality setting applies to the whole task; per-layer resolution controls are unavailable. Use an explicit higher tier or `auto` when preserving source resolution is required. The actual output count and pixel tiers determine one task charge. Failed or uncertain submissions are never replayed automatically; retain the printed job ID and query status. Repeated status reads preserve saved GUI edits and do not debit again. When the layers are ready, the edit link opens the resulting snapshot.
772
+
773
+ Native Seedance 2.5 4K is high cost and explicit opt-in only. Ordinary video,
774
+ vague HD requests and failed tasks must not upgrade to it. Run `makaron video
775
+ create --video-model seedance-2.5-native --video-resolution 4k --duration 4
776
+ --script "..."` without `--max-credits` first to obtain a no-charge complete quote.
777
+ Show the quoted total Makaron credits before repeating the identical request with
778
+ `--max-credits <quoted-total>` and a stable `--request-id <uuid>`. A higher fresh
779
+ quote stops before charging. Input video adds billable seconds; supplier credits
780
+ are different from Makaron credits. Native 4K uses EvoLink, never Eco enhancement.
package/bin/makaron.mjs CHANGED
@@ -2141,6 +2141,7 @@ Inputs:
2141
2141
 
2142
2142
  Generation options:
2143
2143
  --video-model <id> seedance-fast, seedance-mini, seedance, seedance-2.5-flash, seedance-2.5,
2144
+ seedance-2.5-eco (upscaled), seedance-2.5-native (high-cost native 4k: quote before submission),
2144
2145
  wan-3.0, wan-3.0-prime, kling-4, kling-4-flash, grok, google-omni,
2145
2146
  minimax-h3, minimax-h3-max, fal-h3-max, or sync-lipsync-v3.
2146
2147
  --duration <seconds> Output duration supported by the selected model.
@@ -2173,6 +2174,8 @@ Recent model choices:
2173
2174
  seedance-2.5-flash 4-30s; 480p/720p;10 images/5 videos/5 audios; edit follows source.
2174
2175
  --image-workflow <id> Flash: reference-to-video (default) or image-to-video (1-2 first/last frames).
2175
2176
  --request-id <uuid> Reuse this ID with identical arguments to recover the original billed task.
2177
+ --max-credits <integer> Native 4K spending ceiling; omit for a quote with no generation.
2178
+ seedance-2.5-native Native 480p/720p/1080p/4k; 4k is high-cost, explicit opt-in only.
2176
2179
  seedance-2.5 Defaults to Eco; 4-30s; 1080p default, 720p/2k/4k; multimodal refs.
2177
2180
  seedance-2.5-eco 480p generation → ByteDance Fast; 1080p default, 2k/4k.
2178
2181
  minimax-h3 4-15s; 768p default or 2k; image/video/audio feature refs.
@@ -3474,7 +3477,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3474
3477
  const referenceVoices = [];
3475
3478
  let script = '', duration = undefined, aspectRatio = undefined, videoModel = undefined, videoResolution = undefined, imageWorkflow = undefined, wait = false;
3476
3479
  let keepOriginalSound = false, videoOperation = undefined, extendDirection = undefined, outputFormat = undefined;
3477
- let generateAudio = undefined, contentFilter = undefined, webSearch = false, billingRequestId = undefined;
3480
+ let generateAudio = undefined, contentFilter = undefined, webSearch = false, billingRequestId = undefined, maxCredits = undefined;
3478
3481
  for (let i = 2; i < args.length; i++) {
3479
3482
  if (args[i] === '--image' && args[i + 1]) images.push(args[++i]);
3480
3483
  else if (args[i] === '--video' && args[i + 1]) videos.push(args[++i]);
@@ -3494,6 +3497,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3494
3497
  else if (args[i] === '--keep-original-sound') keepOriginalSound = true;
3495
3498
  else if (args[i] === '--image-workflow' && args[i + 1]) imageWorkflow = args[++i];
3496
3499
  else if (args[i] === '--request-id' && args[i + 1]) billingRequestId = args[++i];
3500
+ else if (args[i] === '--max-credits' && args[i + 1]) maxCredits = Number(args[++i]);
3497
3501
  else if (args[i] === '--video-operation' && args[i + 1]) videoOperation = args[++i];
3498
3502
  else if (args[i] === '--extend-direction' && args[i + 1]) extendDirection = args[++i];
3499
3503
  else if (args[i] === '--output-format' && args[i + 1]) outputFormat = args[++i];
@@ -3521,8 +3525,9 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3521
3525
  if (billingRequestId && !/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(billingRequestId)) {
3522
3526
  console.error('--request-id must be a UUID. Reuse it only for the identical submission.'); process.exit(1);
3523
3527
  }
3528
+ if (maxCredits != null && (!Number.isSafeInteger(maxCredits) || maxCredits <= 0)) { console.error('--max-credits must be a positive integer.'); process.exit(1); }
3524
3529
  const isFlash = selectedVideoModel === 'seedance-2.5-flash';
3525
- const isSeedance25 = ['seedance-2.5', 'seedance-2.5-eco'].includes(selectedVideoModel);
3530
+ const isSeedance25 = ['seedance-2.5', 'seedance-2.5-eco', 'seedance-2.5-native'].includes(selectedVideoModel);
3526
3531
  const isWan30 = selectedVideoModel === 'wan-3.0' || selectedVideoModel === 'wan-3.0-prime';
3527
3532
  const isSeedanceModel = selectedVideoModel === 'seedance-fast' || selectedVideoModel === 'seedance-mini' || selectedVideoModel === 'seedance' || isSeedance25 || isFlash;
3528
3533
  const isMinimaxH3 = selectedVideoModel === 'minimax-h3';
@@ -3662,6 +3667,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3662
3667
  : videoUrls[0]
3663
3668
  ? { videoUrl: videoUrls[0], editPrompt: script, images, videoModel: selectedVideoModel, videoResolution, referType: isSeedanceModel ? 'feature' : 'base' }
3664
3669
  : { script, images, videoModel: selectedVideoModel, videoResolution };
3670
+ if (maxCredits != null) vArgs.maxCredits = maxCredits;
3665
3671
  if (imageWorkflow) vArgs.imageWorkflow = imageWorkflow;
3666
3672
  if (billingRequestId) vArgs.billingRequestId = billingRequestId;
3667
3673
  if (inputVideoMeta?.duration) vArgs.referenceVideoDuration = inputVideoMeta.duration;
@@ -3669,6 +3675,29 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3669
3675
  if (effectiveDuration) vArgs.duration = effectiveDuration;
3670
3676
  if (aspectRatio) vArgs.aspectRatio = aspectRatio;
3671
3677
  if (keepOriginalSound && videoUrls.length && !isSeedance25) vArgs.keepOriginalSound = true;
3678
+ if (selectedVideoModel === 'seedance-2.5-native' && videoResolution === '4k') {
3679
+ vArgs.billingRequestId ||= randomUUID();
3680
+ const previewArgs = { ...vArgs };
3681
+ delete previewArgs.maxCredits;
3682
+ const preview = await callMcpTool(baseUrl, headers, 'makaron_create_video', previewArgs);
3683
+ const previewText = preview?.content?.find(c => c.type === 'text')?.text;
3684
+ let quote;
3685
+ try { quote = JSON.parse(previewText); } catch { /* Existing receipt or pricing error. */ }
3686
+ if (!quote?.costQuote) {
3687
+ // Replays return their original receipt; never turn an unknown response into a new paid call.
3688
+ if (previewText) console.log(previewText);
3689
+ process.exit(previewText?.includes('Task ID:') ? 0 : 1);
3690
+ }
3691
+ process.stderr.write(`Native 4K is high cost. Estimated total: ${quote.costQuote.credits} Makaron credits (${quote.costQuote.durationSec}s output, ${quote.costQuote.referenceVideoDurationSec}s video input).\n`);
3692
+ if (maxCredits == null) {
3693
+ console.log(JSON.stringify({ ...quote, billingRequestId: vArgs.billingRequestId }, null, 2));
3694
+ process.exit(0);
3695
+ }
3696
+ if (quote.costQuote.credits > maxCredits) {
3697
+ console.error(`Quote exceeds --max-credits ${maxCredits}. No generation submitted.`);
3698
+ process.exit(1);
3699
+ }
3700
+ }
3672
3701
  const result = await callMcpTool(baseUrl, headers, videoUrls.length && !isSeedance25 && !isFlash && !isWan30 && !isGrok && !isMinimaxH3 && !isFalReference && !isSyncLipsync ? 'makaron_edit_video' : 'makaron_create_video', vArgs);
3673
3702
  const text = result?.content?.find(c => c.type === 'text')?.text;
3674
3703
  if (text) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.21",
3
+ "version": "0.17.22",
4
4
  "description": "Talk to Makaron Agent from the terminal — create projects, edit images, generate videos",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -401,7 +401,7 @@ npx makaron-cli chat --project <id|auto> --video input.mp4 -b "make it funny"
401
401
 
402
402
  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.
403
403
 
404
- 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.
404
+ 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 Kling 4.0 Flash (`kling-4-flash`) at 720p. Explicit FAL H3 Max (`fal-h3-max`) supports 480p/768p/1080p 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.
405
405
 
406
406
  Provider integration contract: every image passed to video generation is a feature reference by default, even when there is exactly one image. Never infer image-to-video/first-frame mode from image count. The sole current exception is explicitly selected `minimax-h3-max`, whose declared capability maps exactly one selected image to native image-to-video; it does not accept reference video/audio or multiple images.
407
407
 
@@ -409,7 +409,7 @@ fal H3 Turbo uses the `minimax-h3-max` selector, supports exactly 5/10/15 second
409
409
 
410
410
  Seedance 2.5 Flash: explicitly select `--video-model seedance-2.5-flash`; generation is integer 4–30s at480p/720p (default720p). Up to10images,5videos(each2–30s,total≤30s),5audios(total≤30s). Images are feature references by default; `--image-workflow image-to-video` locks1–2 first/last frames with no video/audio inputs. Use `--video-operation generate` for video references or `edit` for exactly one4–30s source; edit and first/last frames follow source canvas. Edit follows source duration: omit duration, never -1. Native synchronized audio is included. No extend, draft, MOV, web-search, relaxed content filter or native1080p/4K. Keep the returned task ID and poll it; never silently substitute Eco or another model. This candidate needs its additive media-pricing migration before live product billing can submit.
411
411
 
412
- Seedance 2.5 uses `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30s videos: generate at 480p, then automatically upscale to 720p, 1080p (default), 2K or 4K in one task. This is upscaled output. Use `seedance-2.5-native` explicitly for unenhanced native output at 480p (default) or 720p; the native Evolink route does not expose 4K. All Seedance 2.5 routes accept up to 30 images + 10 videos + 10 audios, repeatable local/URL references, `--video-operation generate|edit|extend`, `--extend-direction`, and `--web-search`. Eco delivers MP4; native also supports `--output-format mov`. Use `makaron chat` to enhance an existing video without regeneration, or MCP `makaron_upscale_video` with one video URL and `resolution=720p|1080p|2k|4k` (up to 60s).
412
+ Seedance 2.5 uses `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30s videos: generate at 480p, then automatically upscale to 720p, 1080p (default), 2K or 4K in one task. This is upscaled output. Use `seedance-2.5-native` explicitly for native 480p (default), 720p, 1080p or 4K. Native 4K is high cost: use only for an explicit native 4K request or explicit Native + 4K selection. Ordinary/HD requests and failures must never upgrade to it. For direct `video create`, omit `--max-credits` first to obtain the complete no-charge quote, disclose the total Makaron credits, then repeat identical arguments with `--max-credits <quoted-total>` and the returned `--request-id`. A changed/higher quote stops before charging. Input videos count toward the total; supplier credits are not Makaron credits. Native 4K requires fixed 4–30s generation/extension; edit follows source duration. Web search is disabled on this route until its extra fee can be quoted. Native 1080p/4K MP4 uses 10-bit HEVC; playback requires codec support. All Seedance 2.5 routes accept up to 30 images + 10 videos + 10 audios, repeatable local/URL references, `--video-operation generate|edit|extend`, `--extend-direction`, and `--web-search`. Eco delivers MP4; native also supports `--output-format mov`. Use `makaron chat` to enhance an existing video without regeneration, or MCP `makaron_upscale_video` with one video URL and `resolution=720p|1080p|2k|4k` (up to 60s).
413
413
 
414
414
  Wan 3.0 exposes two model choices: `--video-model wan-3.0` and the faster `--video-model wan-3.0-prime`. Both support 2-30s generation, native audio, up to 10 images + 5 videos + 5 audios, and 480p/720p/1080p/2K/4K. Pass `--video-resolution 2k|4k` to select the matching FlashVSR/Pro endpoint automatically; Pro is not a separate model selector. Use generation mode with feature references; typed edit/extend and the relaxed content-filter flag are not supported.
415
415