makaron-cli 0.17.8 → 0.17.10
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 +12 -8
- package/bin/makaron.mjs +37 -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,16 @@ 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 with `--frame-count` (2–16) / `--frame-duration-ms` / `--gif-size sticker|full`. Frames share one native sheet: full-size square frames are 960px up to 9 frames, 816px for 10–12 and 720px for 13–16 (default 9 frames, 200 ms). `--gif-size sticker` uses ~512px frames for chat stickers and memes at about half the cost. 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 edit --output-format gif --gif-size sticker --frame-count 12 --frame-duration-ms 120 --background opaque --out nope.gif "Chat sticker: a cat wags its finger 'no', smug smile, caption 不行"
|
|
746
|
+
makaron chat --image mascot.png "Use GPT Image 2.6 Flare to make a looping GIF of this mascot waving; return the original GIF."
|
|
747
|
+
```
|
|
744
748
|
|
|
745
|
-
|
|
749
|
+
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,18 @@ 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 2-16, default 9; 960px frames up to 9, 816px for 10-12, 720px for 13-16.
|
|
2081
|
+
--frame-duration-ms <n> GIF frame delay, default 200; multiples of 10.
|
|
2082
|
+
--gif-size <size> sticker (~512px frames, about half cost) or full (default, largest frames).
|
|
2070
2083
|
--out <file> Save images; batches use name-1.ext, name-2.ext, etc.
|
|
2071
2084
|
--mj-speed <mode> fast (up to 4 images) or draft (up to 24).
|
|
2072
2085
|
--mj-quality <mode> standard or hd; HD regenerates, not lossless upscaling.
|
|
@@ -2079,15 +2092,21 @@ Options:
|
|
|
2079
2092
|
--help, -h Show this help.
|
|
2080
2093
|
|
|
2081
2094
|
Notes:
|
|
2095
|
+
GPT Image 2.6 defaults to low rendering quality + high reasoning.
|
|
2096
|
+
New GIF art and animated memes: use makaron chat with GPT Image 2.6 Flare.
|
|
2097
|
+
animated-gif is for existing-frame assembly or explicit timing/export controls.
|
|
2098
|
+
PNG/JPEG/WebP and animated GIF originals are preserved in the returned file.
|
|
2099
|
+
SVG is experimental (live provider returned 422), text-to-image only.
|
|
2100
|
+
GIF frames share the pixel budget. No format substitution.
|
|
2082
2101
|
MJ options require --image-model mj-v8.2; Draft + HD is invalid. Describe the scene
|
|
2083
2102
|
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.
|
|
2103
|
+
Model selection is optional. Transparent output routes strictly to GPT Image 2.6 Flare
|
|
2085
2104
|
and fails instead of returning an opaque fallback.
|
|
2086
2105
|
|
|
2087
2106
|
Examples:
|
|
2088
2107
|
makaron edit --image portrait.jpg --image-model qwen-spicy --out result.jpg "cinematic warm light"
|
|
2089
2108
|
makaron edit --image product.jpg --ref style.png --aspect 1:1 "use this visual style"
|
|
2090
|
-
makaron edit --image-model gpt-image-2.
|
|
2109
|
+
makaron edit --image-model gpt-image-2.6-flare --background transparent --out sticker.png "a magenta star sticker"
|
|
2091
2110
|
`);
|
|
2092
2111
|
}
|
|
2093
2112
|
|
|
@@ -3202,6 +3221,19 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3202
3221
|
}
|
|
3203
3222
|
editArgs.background = background;
|
|
3204
3223
|
}
|
|
3224
|
+
else if (['--quality', '--image-reasoning', '--output-format', '--gif-size', '--frame-count', '--frame-duration-ms'].includes(args[i])) {
|
|
3225
|
+
const flag = args[i], value = args[++i];
|
|
3226
|
+
const fields = { '--quality': ['imageQuality', ['auto', 'low', 'medium', 'high']], '--image-reasoning': ['imageReasoningEffort', ['low', 'medium', 'high']], '--output-format': ['outputFormat', ['png', 'jpeg', 'webp', 'gif', 'svg']], '--gif-size': ['gifFrameSize', ['sticker', 'full']] };
|
|
3227
|
+
if (fields[flag]) {
|
|
3228
|
+
const [key, allowed] = fields[flag];
|
|
3229
|
+
if (!allowed.includes(value)) { console.error(`Invalid ${flag}: use ${allowed.join(', ')}.`); process.exit(1); }
|
|
3230
|
+
editArgs[key] = value;
|
|
3231
|
+
} else {
|
|
3232
|
+
const number = Number(value), frames = flag === '--frame-count';
|
|
3233
|
+
if (!Number.isInteger(number) || number < (frames ? 2 : 20) || number > (frames ? 16 : 2000) || (!frames && number % 10)) { console.error(`Invalid ${flag}.`); process.exit(1); }
|
|
3234
|
+
editArgs[frames ? 'frameCount' : 'frameDurationMs'] = number;
|
|
3235
|
+
}
|
|
3236
|
+
}
|
|
3205
3237
|
else if (args[i] === '--out' && args[i + 1]) outputPath = args[++i];
|
|
3206
3238
|
else if (['--mj-speed', '--mj-quality', '--style-ref', '--mj-style-weight', '--mj-stylize', '--mj-chaos', '--mj-seed'].includes(args[i])) {
|
|
3207
3239
|
const flag = args[i], value = args[++i];
|
|
@@ -3232,7 +3264,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3232
3264
|
editArgs.midjourney = mjArgs;
|
|
3233
3265
|
}
|
|
3234
3266
|
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|
|
|
3267
|
+
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
3268
|
process.stderr.write('🎨 Generating...\n');
|
|
3237
3269
|
const result = await callMcpTool(baseUrl, headers, 'makaron_edit_image', editArgs);
|
|
3238
3270
|
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` (2–16) and `--frame-duration-ms` share one native sprite sheet: square frames are 960px up to 9 frames, 816px for 10–12, 720px for 13–16. For stickers/memes, describe one action with a numbered frame plan (rest → peak held 2–4 frames → back to rest), a locked camera, a solid background and an exact caption; the Agent follows its `gif-maker` Skill. 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.
|