makaron-cli 0.17.8 → 0.17.9
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 +11 -8
- package/bin/makaron.mjs +36 -5
- package/package.json +1 -1
- package/skills/makaron/SKILL.md +8 -4
package/README.md
CHANGED
|
@@ -405,11 +405,11 @@ npx makaron-cli edit --image photo.jpg --ref style.jpg "match this style"
|
|
|
405
405
|
# Output to file
|
|
406
406
|
npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
|
|
407
407
|
|
|
408
|
-
# Strict transparent PNG/WebP output through GPT Image 2.
|
|
409
|
-
npx makaron-cli edit --image-model gpt-image-2.
|
|
408
|
+
# Strict transparent PNG/WebP output through GPT Image 2.6 Flare (fails rather than returning opaque)
|
|
409
|
+
npx makaron-cli edit --image-model gpt-image-2.6-flare --background transparent --out sticker.png "a magenta star sticker"
|
|
410
410
|
```
|
|
411
411
|
|
|
412
|
-
Options: `--image`, `--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|gpt-image-2.
|
|
412
|
+
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`, `--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.
|
|
413
413
|
|
|
414
414
|
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.
|
|
415
415
|
|
|
@@ -734,12 +734,15 @@ npx makaron-cli admin fetch-skill https://www.makaron.app/s/4c4cbd57
|
|
|
734
734
|
|
|
735
735
|
FAL video models: **fal H3 Turbo** uses `minimax-h3-max` for single-start-frame I2V/T2V. **FAL H3 Max** uses the new selector `fal-h3-max`: native T2V or image/video/audio reference-to-video, default 768p, optional 480p/1080p, integer 5–15s; at most 9 images / 3 videos / 3 audios / 12 total. Reference video/audio each 2–15s and each modality totals at most 15s. Source-video modifications use generation with feature references, not typed edit/extend. Reference input tokens are billed in addition to output video; query current pricing.
|
|
736
736
|
|
|
737
|
-
The
|
|
737
|
+
GPT Image 2.6 Flare is the default image route; Sunburst is an explicit alternative. The fal adapter defaults to low rendering quality and **high reasoning**, independently selectable with `--quality auto|low|medium|high` and `--image-reasoning low|medium|high`. Legacy 2.5 request IDs migrate to the matching 2.6 variant; historical metadata is unchanged. Administrator Codex Subscription Agents use the same image tool and image API billing.
|
|
738
738
|
|
|
739
|
-
|
|
739
|
+
For new GIF artwork, mascot loops, and animated memes, **GPT Image 2.6 Flare is the go-to model**. Start with `makaron chat`; the Agent uses native image generation. Keep `animated-gif` for assembling existing frames or explicitly requested timing/export controls.
|
|
740
740
|
|
|
741
|
-
|
|
741
|
+
`--output-format png|jpeg|webp|gif|svg` preserves the original format. GIF supports generation/editing and `--frame-count` / `--frame-duration-ms`; all frames share the pixel budget and native sheet, with at most 960px per frame edge even for fewer frames (default 9 frames, 200 ms, 960 square). Per-frame 2K/4K is rejected before submission. SVG is experimental: live provider acceptance still returns 422. Its transport supports **text-to-image only**, with one output and no source/reference images; do not promise a working SVG generation route. Unsafe or external SVG content is rejected. CLI saves real GIF/SVG bytes with matching extensions, even if `--out` requested a different extension. No silent rasterization, fallback model or automatic paid retry.
|
|
742
742
|
|
|
743
|
-
|
|
743
|
+
```sh
|
|
744
|
+
makaron edit --output-format gif --quality medium --frame-count 9 --frame-duration-ms 160 --out spark.gif "A looping purple spark tracing a cyan circle"
|
|
745
|
+
makaron chat --image mascot.png "Use GPT Image 2.6 Flare to make a looping GIF of this mascot waving; return the original GIF."
|
|
746
|
+
```
|
|
744
747
|
|
|
745
|
-
|
|
748
|
+
The provider schema also advertises xhigh/max reasoning, but the live 2.6 endpoint rejected both during acceptance. They are not exposed as working Makaron tiers. Exact active 2.6 pricing rows are required before submission; final cost uses that task's fal billable USD units.
|
package/bin/makaron.mjs
CHANGED
|
@@ -535,6 +535,9 @@ select the personal plan explicitly. Base grok-4.6 selects OpenRouter API;
|
|
|
535
535
|
grok-4.6-grok-subscription selects the personal SuperGrok plan. Image/video
|
|
536
536
|
model routing stays automatic in chat.
|
|
537
537
|
|
|
538
|
+
New GIF artwork and animated memes use GPT Image 2.6 Flare by default.
|
|
539
|
+
Use animated-gif only for existing-frame assembly or explicit timing/export controls.
|
|
540
|
+
|
|
538
541
|
What you can ask:
|
|
539
542
|
Image edit
|
|
540
543
|
makaron chat --project <id> --image photo.jpg "remove the person in the background"
|
|
@@ -542,6 +545,9 @@ What you can ask:
|
|
|
542
545
|
Image generation
|
|
543
546
|
makaron chat --project auto "generate a cinematic poster of a rainy Tokyo alley"
|
|
544
547
|
|
|
548
|
+
Animated GIF from a reference
|
|
549
|
+
makaron chat --project auto --image mascot.png "Use GPT Image 2.6 Flare to make a looping GIF of this mascot waving; return the original GIF."
|
|
550
|
+
|
|
545
551
|
Video from image or timeline
|
|
546
552
|
makaron chat --project <id> "make this into a 5 second cinematic video"
|
|
547
553
|
|
|
@@ -2008,7 +2014,8 @@ function saveMcpImage(result, outputPath) {
|
|
|
2008
2014
|
const saved = [];
|
|
2009
2015
|
const stamp = Date.now();
|
|
2010
2016
|
for (const [index, image] of images.entries()) {
|
|
2011
|
-
const extension =
|
|
2017
|
+
const extension = ({ 'image/png': 'png', 'image/webp': 'webp', 'image/jpeg': 'jpg', 'image/gif': 'gif', 'image/svg+xml': 'svg' })[image.mimeType];
|
|
2018
|
+
if (!extension) throw new Error(`Unsupported generated MIME type: ${image.mimeType}`);
|
|
2012
2019
|
const requestedExtension = outputPath ? path.extname(outputPath).slice(1).toLowerCase() : '';
|
|
2013
2020
|
const compatible = extension === 'jpg' ? ['jpg', 'jpeg'].includes(requestedExtension) : requestedExtension === extension;
|
|
2014
2021
|
const stem = outputPath ? outputPath.slice(0, outputPath.length - path.extname(outputPath).length) : `makaron-output-${stamp}`;
|
|
@@ -2061,12 +2068,17 @@ Usage:
|
|
|
2061
2068
|
Options:
|
|
2062
2069
|
--image <file|url> Base image to edit. Omit for text-to-image.
|
|
2063
2070
|
--ref <file|url> Additional reference image. Repeatable; model-specific limit (Nano Banana 2.1: 14 total inputs).
|
|
2064
|
-
--image-model <id> gemini, gemini-2.1, gemini-lite, qwen-spicy, openai, gpt-image-2.
|
|
2071
|
+
--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, or mj-v8.2. Legacy qwen maps to qwen-spicy.
|
|
2065
2072
|
--skill <id> enhance, creative, wild, or captions.
|
|
2066
2073
|
--image-resolution <id> 1K, 2K, or 4K; Auto chooses Nano Banana 2.1.
|
|
2067
2074
|
--nsfw Route NSFW directly to Qwen Spicy.
|
|
2068
2075
|
--aspect <ratio> Output aspect ratio, for example 1:1, 16:9, or 9:16.
|
|
2069
2076
|
--background <mode> auto, opaque, or transparent.
|
|
2077
|
+
--quality <tier> auto, low, medium, high (2.6; default low).
|
|
2078
|
+
--image-reasoning <tier> low, medium, high (2.6; default high).
|
|
2079
|
+
--output-format <format> png, jpeg, webp, gif, svg (2.6; default png).
|
|
2080
|
+
--frame-count <n> GIF frames, default 9; max frame edge 960px.
|
|
2081
|
+
--frame-duration-ms <n> GIF frame delay, default 200; multiples of 10.
|
|
2070
2082
|
--out <file> Save images; batches use name-1.ext, name-2.ext, etc.
|
|
2071
2083
|
--mj-speed <mode> fast (up to 4 images) or draft (up to 24).
|
|
2072
2084
|
--mj-quality <mode> standard or hd; HD regenerates, not lossless upscaling.
|
|
@@ -2079,15 +2091,21 @@ Options:
|
|
|
2079
2091
|
--help, -h Show this help.
|
|
2080
2092
|
|
|
2081
2093
|
Notes:
|
|
2094
|
+
GPT Image 2.6 defaults to low rendering quality + high reasoning.
|
|
2095
|
+
New GIF art and animated memes: use makaron chat with GPT Image 2.6 Flare.
|
|
2096
|
+
animated-gif is for existing-frame assembly or explicit timing/export controls.
|
|
2097
|
+
PNG/JPEG/WebP and animated GIF originals are preserved in the returned file.
|
|
2098
|
+
SVG is experimental (live provider returned 422), text-to-image only.
|
|
2099
|
+
GIF frames share the pixel budget. No format substitution.
|
|
2082
2100
|
MJ options require --image-model mj-v8.2; Draft + HD is invalid. Describe the scene
|
|
2083
2101
|
naturally; the server prepares the English prompt. MJ is generation, not precise editing.
|
|
2084
|
-
Model selection is optional. Transparent output routes strictly to GPT Image 2.
|
|
2102
|
+
Model selection is optional. Transparent output routes strictly to GPT Image 2.6 Flare
|
|
2085
2103
|
and fails instead of returning an opaque fallback.
|
|
2086
2104
|
|
|
2087
2105
|
Examples:
|
|
2088
2106
|
makaron edit --image portrait.jpg --image-model qwen-spicy --out result.jpg "cinematic warm light"
|
|
2089
2107
|
makaron edit --image product.jpg --ref style.png --aspect 1:1 "use this visual style"
|
|
2090
|
-
makaron edit --image-model gpt-image-2.
|
|
2108
|
+
makaron edit --image-model gpt-image-2.6-flare --background transparent --out sticker.png "a magenta star sticker"
|
|
2091
2109
|
`);
|
|
2092
2110
|
}
|
|
2093
2111
|
|
|
@@ -3202,6 +3220,19 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3202
3220
|
}
|
|
3203
3221
|
editArgs.background = background;
|
|
3204
3222
|
}
|
|
3223
|
+
else if (['--quality', '--image-reasoning', '--output-format', '--frame-count', '--frame-duration-ms'].includes(args[i])) {
|
|
3224
|
+
const flag = args[i], value = args[++i];
|
|
3225
|
+
const fields = { '--quality': ['imageQuality', ['auto', 'low', 'medium', 'high']], '--image-reasoning': ['imageReasoningEffort', ['low', 'medium', 'high']], '--output-format': ['outputFormat', ['png', 'jpeg', 'webp', 'gif', 'svg']] };
|
|
3226
|
+
if (fields[flag]) {
|
|
3227
|
+
const [key, allowed] = fields[flag];
|
|
3228
|
+
if (!allowed.includes(value)) { console.error(`Invalid ${flag}: use ${allowed.join(', ')}.`); process.exit(1); }
|
|
3229
|
+
editArgs[key] = value;
|
|
3230
|
+
} else {
|
|
3231
|
+
const number = Number(value), frames = flag === '--frame-count';
|
|
3232
|
+
if (!Number.isInteger(number) || number < (frames ? 2 : 20) || number > (frames ? 64 : 2000) || (!frames && number % 10)) { console.error(`Invalid ${flag}.`); process.exit(1); }
|
|
3233
|
+
editArgs[frames ? 'frameCount' : 'frameDurationMs'] = number;
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3205
3236
|
else if (args[i] === '--out' && args[i + 1]) outputPath = args[++i];
|
|
3206
3237
|
else if (['--mj-speed', '--mj-quality', '--style-ref', '--mj-style-weight', '--mj-stylize', '--mj-chaos', '--mj-seed'].includes(args[i])) {
|
|
3207
3238
|
const flag = args[i], value = args[++i];
|
|
@@ -3232,7 +3263,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3232
3263
|
editArgs.midjourney = mjArgs;
|
|
3233
3264
|
}
|
|
3234
3265
|
editArgs.editPrompt = promptParts.join(' ');
|
|
3235
|
-
if (!editArgs.editPrompt) { console.error('Usage: makaron edit [--image <file|url>] [--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|
|
|
3266
|
+
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] [--ref <file>] [--aspect <ratio>] [--background auto|opaque|transparent] [--out <file>] "prompt"'); process.exit(1); }
|
|
3236
3267
|
process.stderr.write('🎨 Generating...\n');
|
|
3237
3268
|
const result = await callMcpTool(baseUrl, headers, 'makaron_edit_image', editArgs);
|
|
3238
3269
|
saveMcpImage(result, outputPath);
|
package/package.json
CHANGED
package/skills/makaron/SKILL.md
CHANGED
|
@@ -330,11 +330,11 @@ npx makaron-cli edit --image photo.jpg --ref style.jpg "match this style"
|
|
|
330
330
|
# Output to file
|
|
331
331
|
npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
|
|
332
332
|
|
|
333
|
-
# Strict transparent output through GPT Image 2.
|
|
334
|
-
npx makaron-cli edit --image-model gpt-image-2.
|
|
333
|
+
# Strict transparent output through GPT Image 2.6 Flare
|
|
334
|
+
npx makaron-cli edit --image-model gpt-image-2.6-flare --background transparent --out sticker.png "a magenta star sticker"
|
|
335
335
|
```
|
|
336
336
|
|
|
337
|
-
Options: `--image`, `--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|gpt-image-2.
|
|
337
|
+
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`, `--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.
|
|
338
338
|
|
|
339
339
|
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.
|
|
340
340
|
|
|
@@ -562,6 +562,10 @@ send_message "All done!"
|
|
|
562
562
|
|
|
563
563
|
FAL video models: **fal H3 Turbo** uses `minimax-h3-max` for single-start-frame I2V/T2V. **FAL H3 Max** uses the new selector `fal-h3-max`: native T2V or image/video/audio reference-to-video, default 768p, optional 480p/1080p, integer 5–15s; at most 9 images / 3 videos / 3 audios / 12 total. Reference video/audio each 2–15s and each modality totals at most 15s. Source-video modifications use generation with feature references, not typed edit/extend. Reference input tokens are billed in addition to output video; query current pricing.
|
|
564
564
|
|
|
565
|
-
|
|
565
|
+
For **new GIF art, mascot loops, and animated memes**, GPT Image 2.6 Flare is the go-to model. Use `makaron chat` with the complete request and reference images; the Agent uses native image generation. Do not select `animated-gif` for new generative animation. Retain that skill for assembling existing frames or explicit timing/export controls.
|
|
566
|
+
|
|
567
|
+
GPT Image 2.6 Flare is the default; Sunburst is optional. `--quality auto|low|medium|high` and `--image-reasoning low|medium|high` are independent (defaults low quality, high reasoning). `--output-format png|jpeg|webp|gif|svg` preserves originals. GIF supports generation/editing; `--frame-count` and `--frame-duration-ms` share the request pixel budget. SVG is experimental and not live-verified (provider acceptance returned 422), text-to-image only, no source/references; report a provider failure honestly, never flatten or replace. Exact active 2.6 pricing is required; final cost uses actual fal units. Legacy 2.5 IDs migrate to 2.6; historical media is unchanged. Administrator Codex Subscription Agents use the same image tool; image API cost is separate from Agent subscription usage.
|
|
568
|
+
|
|
569
|
+
The legacy `openai` image-model parameter now resolves to GPT Image 2.6 Flare.
|
|
566
570
|
|
|
567
571
|
Naming Seedance 2.5 in chat defaults to Seedance 2.5 Eco. Use `seedance-2.5-native` only when explicitly requesting native generation; Eco supports 720p/1080p/2K/4K final delivery.
|