makaron-cli 0.17.27 → 0.17.29
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 +8 -1
- package/bin/makaron.mjs +16 -7
- package/bin/price.mjs +1 -0
- package/package.json +1 -1
- package/skills/makaron/SKILL.md +8 -1
package/README.md
CHANGED
|
@@ -347,7 +347,7 @@ npx makaron-cli chat --project auto \
|
|
|
347
347
|
-b "use Seedance Mini at 480p to make a 15s beat-synced video"
|
|
348
348
|
```
|
|
349
349
|
|
|
350
|
-
|
|
350
|
+
`chat --audio` accepts repeatable local MP3/WAV files (at least 2s and up to 15MB) or public audio URLs. Use an attached track as the soundtrack for a beat-synced edit of supplied footage. Video generation models have their own reference-audio duration limits.
|
|
351
351
|
|
|
352
352
|
`chat` intentionally has no video model or resolution flags. State both in the chat message so the Agent selects a compatible provider and resolution together. Use `video create` only when you explicitly need direct provider controls.
|
|
353
353
|
|
|
@@ -423,6 +423,13 @@ npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
|
|
|
423
423
|
npx makaron-cli edit --image-model gpt-image-2.6-flare --background transparent --out sticker.png "a magenta star sticker"
|
|
424
424
|
```
|
|
425
425
|
|
|
426
|
+
Select `z-image-turbo` for fast text-to-image or guided redraw. It returns one 1K image, WebP by default, with PNG/JPEG available through `--output-format`. For a redraw, pass one `--image` or one `--ref`. Redraw follows the source aspect ratio when the 1K canvas has a short edge of at least 512 pixels. For very wide or tall inputs, pass a supported aspect such as 16:9 or 9:16. For a current estimate, run `makaron price image --model z-image-turbo --resolution 1K --operation generate`.
|
|
427
|
+
|
|
428
|
+
```bash
|
|
429
|
+
npx makaron-cli edit --image-model z-image-turbo --out poster.webp "a screen-print illustration of an alpine railway"
|
|
430
|
+
npx makaron-cli edit --image poster.webp --image-model z-image-turbo --out variant.webp "redraw the poster in a two-color print style"
|
|
431
|
+
```
|
|
432
|
+
|
|
426
433
|
Options: `--image`, `--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|gpt-image-2.6-flare|gpt-image-2.6-sunburst|wan2.7-image|mj-v8.2|seedream-5.5|kling-image-4.0`, `--ref <file>` (model-specific limit), `--aspect <ratio>`, `--background auto|opaque|transparent`, `--out <path>`. Nano Banana 2.1 (`gemini-2.1`) supports up to 14 total input images and `--image-resolution 1K|2K|4K` (default 1K); it uses OpenRouter and does not retry or switch models automatically. Qwen Spicy supports 0–3 input images; legacy `qwen` requests map to it. Pony and WAI are retired. Transparent output defaults to GPT Image 2.6 Flare; an explicitly selected GPT Image 2.6 variant is retained. Output is returned only when the provider supplies real alpha.
|
|
427
434
|
|
|
428
435
|
Midjourney V8.2 (`mj-v8.2`) accepts natural-language briefs and prepares the English prompt automatically. Fast returns up to 4 images, Draft up to 24 smaller drafts, and HD regenerates up to 4 higher-resolution images. Every returned image is saved; `--out scene.png` produces `scene-1.png`, `scene-2.png`, etc. A single result keeps the requested filename. Provider filtering can reduce the batch size.
|
package/bin/makaron.mjs
CHANGED
|
@@ -1855,8 +1855,7 @@ function getAudioMimeFromExt(ext) {
|
|
|
1855
1855
|
return null;
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
|
-
function validateAudioReferenceFile(audioPath,
|
|
1859
|
-
const maxDuration = options.maxDuration ?? MAX_AUDIO_REFERENCE_DURATION;
|
|
1858
|
+
function validateAudioReferenceFile(audioPath, { maxDuration = MAX_AUDIO_REFERENCE_DURATION } = {}) {
|
|
1860
1859
|
if (!fs.existsSync(audioPath)) {
|
|
1861
1860
|
return { ok: false, error: `Audio file not found: ${audioPath}` };
|
|
1862
1861
|
}
|
|
@@ -1879,7 +1878,7 @@ function validateAudioReferenceFile(audioPath, options = {}) {
|
|
|
1879
1878
|
if (duration < MIN_AUDIO_REFERENCE_DURATION) {
|
|
1880
1879
|
return { ok: false, error: `Audio too short: ${formatSeconds(duration)}s (min ${MIN_AUDIO_REFERENCE_DURATION}s).` };
|
|
1881
1880
|
}
|
|
1882
|
-
if (duration > maxDuration + MAX_AUDIO_REFERENCE_DURATION_TOLERANCE) {
|
|
1881
|
+
if (maxDuration != null && duration > maxDuration + MAX_AUDIO_REFERENCE_DURATION_TOLERANCE) {
|
|
1883
1882
|
return { ok: false, error: `Audio too long: ${formatSeconds(duration)}s (max ${maxDuration}s, with ${MAX_AUDIO_REFERENCE_DURATION_TOLERANCE}s metadata tolerance).` };
|
|
1884
1883
|
}
|
|
1885
1884
|
return { ok: true, mime, meta: { duration, fileSizeBytes: stat.size } };
|
|
@@ -2094,9 +2093,9 @@ Options:
|
|
|
2094
2093
|
--image <file|url> Base image to edit. Omit for text-to-image.
|
|
2095
2094
|
--ref <file|url> Additional reference image. Repeatable; model-specific limit (Nano Banana 2.1: 14 total inputs).
|
|
2096
2095
|
--image-request-id <uuid> Stable Kling Image 4.0 generation ID; reuse to inspect a repeated attempt.
|
|
2097
|
-
--image-model <id> gemini, gemini-2.1, gemini-lite, qwen-spicy, openai, gpt-image-2.6-flare, gpt-image-2.6-sunburst, wan2.7-image, mj-v8.2, seedream-5.5,
|
|
2096
|
+
--image-model <id> gemini, gemini-2.1, gemini-lite, qwen-spicy, openai, gpt-image-2.6-flare, gpt-image-2.6-sunburst, wan2.7-image, mj-v8.2, seedream-5.5, kling-image-4.0, or z-image-turbo. Legacy qwen maps to qwen-spicy.
|
|
2098
2097
|
--skill <id> enhance, creative, wild, or captions.
|
|
2099
|
-
--image-resolution <id> 1K, 2K, or 4K; Kling Image 4.0 supports 2K/4K/8K; Seedream 5.5 supports 1K, 1.5K and 2K. Auto remains Flare-first.
|
|
2098
|
+
--image-resolution <id> 1K, 2K, or 4K; Kling Image 4.0 supports 2K/4K/8K; Seedream 5.5 supports 1K, 1.5K and 2K. Z-Image Turbo supports 1K. Auto remains Flare-first.
|
|
2100
2099
|
--nsfw Route NSFW directly to Qwen Spicy.
|
|
2101
2100
|
--aspect <ratio> Output aspect ratio, for example 1:1, 16:9, or 9:16.
|
|
2102
2101
|
--background <mode> auto, opaque, or transparent.
|
|
@@ -2118,6 +2117,9 @@ Options:
|
|
|
2118
2117
|
--help, -h Show this help.
|
|
2119
2118
|
|
|
2120
2119
|
Notes:
|
|
2120
|
+
Z-Image Turbo supports fast 1K text-to-image and single-image redraw. Pass one
|
|
2121
|
+
--image or one --ref for redraw. The short edge must be at least 512 pixels
|
|
2122
|
+
on the 1K canvas. Default WebP. PNG and JPEG are also available.
|
|
2121
2123
|
GPT Image 2.6 defaults to low rendering quality + high reasoning.
|
|
2122
2124
|
New GIF art and animated memes: use makaron chat with GPT Image 2.6 Flare.
|
|
2123
2125
|
animated-gif is for existing-frame assembly or explicit timing/export controls.
|
|
@@ -2130,6 +2132,8 @@ Notes:
|
|
|
2130
2132
|
and fails instead of returning an opaque fallback.
|
|
2131
2133
|
|
|
2132
2134
|
Examples:
|
|
2135
|
+
makaron edit --image-model z-image-turbo --out poster.webp "a screen-print illustration of an alpine railway"
|
|
2136
|
+
makaron edit --image poster.webp --image-model z-image-turbo --out variant.webp "redraw the poster in a two-color print style"
|
|
2133
2137
|
makaron edit --image portrait.jpg --image-model qwen-spicy --out result.jpg "cinematic warm light"
|
|
2134
2138
|
makaron edit --image product.jpg --ref style.png --aspect 1:1 "use this visual style"
|
|
2135
2139
|
makaron edit --image-model gpt-image-2.6-flare --background transparent --out sticker.png "a magenta star sticker"
|
|
@@ -2773,7 +2777,8 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
2773
2777
|
prevalidatedAudioMetas.set(audioUrl, { ...valid, ...probed });
|
|
2774
2778
|
}
|
|
2775
2779
|
for (const audioPath of prevalidatedAudioFileList) {
|
|
2776
|
-
|
|
2780
|
+
// Chat imports a project track. Provider reference limits apply at generation.
|
|
2781
|
+
const valid = validateAudioReferenceFile(audioPath, { maxDuration: null });
|
|
2777
2782
|
if (!valid.ok) {
|
|
2778
2783
|
process.stderr.write(`❌ ${valid.error}\n`);
|
|
2779
2784
|
process.exit(1);
|
|
@@ -3404,7 +3409,11 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3404
3409
|
editArgs.midjourney = mjArgs;
|
|
3405
3410
|
}
|
|
3406
3411
|
editArgs.editPrompt = promptParts.join(' ');
|
|
3407
|
-
if (!editArgs.editPrompt) { console.error('Usage: makaron edit [--image <file|url>] [--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|wan2.7-image|mj-v8.2|seedream-5.5|kling-image-4.0] [--ref <file>] [--aspect <ratio>] [--background auto|opaque|transparent] [--out <file>] "prompt"'); process.exit(1); }
|
|
3412
|
+
if (!editArgs.editPrompt) { console.error('Usage: makaron edit [--image <file|url>] [--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|wan2.7-image|mj-v8.2|seedream-5.5|kling-image-4.0|z-image-turbo] [--ref <file>] [--aspect <ratio>] [--background auto|opaque|transparent] [--out <file>] "prompt"'); process.exit(1); }
|
|
3413
|
+
if (editArgs.model === 'z-image-turbo' && Number(Boolean(editSourceFile)) + editReferenceFiles.length > 1) {
|
|
3414
|
+
console.error('Z-Image Turbo accepts one total input. Pass one --image or one --ref.');
|
|
3415
|
+
process.exit(1);
|
|
3416
|
+
}
|
|
3408
3417
|
if (editArgs.model === 'kling-image-4.0') {
|
|
3409
3418
|
editArgs.imageRequestId ||= randomUUID();
|
|
3410
3419
|
process.stderr.write(`Image request ID: ${editArgs.imageRequestId} (retain it; never repeat an uncertain paid submission with a new ID)\n`);
|
package/bin/price.mjs
CHANGED
|
@@ -48,6 +48,7 @@ Usage:
|
|
|
48
48
|
|
|
49
49
|
Examples:
|
|
50
50
|
makaron price video --model kling-4-flash --model seedance-2.5-native --duration 5 --resolution 720p
|
|
51
|
+
makaron price image --model z-image-turbo --resolution 1K --operation generate
|
|
51
52
|
makaron price image --model seedream-5.5 --resolution 2K --operation edit --image-count 3
|
|
52
53
|
makaron price audio --model evolink-seed-audio --duration 20
|
|
53
54
|
|
package/package.json
CHANGED
package/skills/makaron/SKILL.md
CHANGED
|
@@ -275,7 +275,7 @@ npx makaron-cli chat --project auto \
|
|
|
275
275
|
-b "use Seedance Mini at 480p to make a 15s beat-synced video"
|
|
276
276
|
```
|
|
277
277
|
|
|
278
|
-
|
|
278
|
+
`chat --audio` accepts repeatable local MP3/WAV files (at least 2s and up to 15MB) or public audio URLs. Use an attached track as the soundtrack for a beat-synced edit of supplied footage. Video generation models have their own reference-audio duration limits.
|
|
279
279
|
|
|
280
280
|
`chat` intentionally has no video model or resolution flags. State both in the chat message so the Agent selects a compatible provider and resolution together. Use `video create` only when you explicitly need direct provider controls.
|
|
281
281
|
|
|
@@ -349,6 +349,13 @@ npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
|
|
|
349
349
|
npx makaron-cli edit --image-model gpt-image-2.6-flare --background transparent --out sticker.png "a magenta star sticker"
|
|
350
350
|
```
|
|
351
351
|
|
|
352
|
+
Select `z-image-turbo` for fast text-to-image or guided redraw. It returns one 1K image, WebP by default, with PNG/JPEG available through `--output-format`. For a redraw, pass one `--image` or one `--ref`. Redraw follows the source aspect ratio when the 1K canvas has a short edge of at least 512 pixels. For very wide or tall inputs, pass a supported aspect such as 16:9 or 9:16. For a current estimate, run `makaron price image --model z-image-turbo --resolution 1K --operation generate`.
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
npx makaron-cli edit --image-model z-image-turbo --out poster.webp "a screen-print illustration of an alpine railway"
|
|
356
|
+
npx makaron-cli edit --image poster.webp --image-model z-image-turbo --out variant.webp "redraw the poster in a two-color print style"
|
|
357
|
+
```
|
|
358
|
+
|
|
352
359
|
Options: `--image`, `--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|gpt-image-2.6-flare|gpt-image-2.6-sunburst|wan2.7-image|mj-v8.2|seedream-5.5|kling-image-4.0`, `--ref <file>` (model-specific limit), `--aspect <ratio>`, `--image-resolution 1K|2K|4K`, `--background auto|opaque|transparent`, `--nsfw`, `--out <path>`. Image Model Capability prefers matching requirements, then relaxes output conflicts to deliver an image: GPT Image 2.6 Flare → Nano Banana 2.1 → Qwen Spicy. Omit the model for Auto: an 8:1 banner or an explicit resolution tier selects Nano Banana 2.1. Native ratio presets do not promise exact mathematical ratios or user pixel dimensions. For Agent-assessed NSFW, pass `--nsfw` to route directly to Spicy; never probe another provider first. Unknown IDs use Flare-first Auto. Output conflicts relax before submission: transparent 8:1 normally keeps 8:1 with opaque output; NSFW always uses Spicy regardless of unsupported dimensions. Preserve input content first and explain actual adjustments. See current MCP tool descriptions for the generated capability table. Classic Nano Banana 2 (`gemini`), Lite, Sunburst and Wan are explicit routes; `openai` means Flare and legacy `qwen` means Spicy. Pony/WAI are retired. Transparent output prefers Flare or explicitly selected Sunburst, and may relax alpha when other requirements conflict. Supplier failures never trigger automatic image resubmission or model switching.
|
|
353
360
|
|
|
354
361
|
Midjourney V8.2 (`mj-v8.2`) accepts natural-language briefs and prepares the English prompt automatically. Fast returns up to 4 images, Draft up to 24 smaller drafts, and HD regenerates up to 4 higher-resolution images. Every returned image is saved; `--out scene.png` produces `scene-1.png`, `scene-2.png`, etc. A single result keeps the requested filename. Provider filtering can reduce the batch size.
|