makaron-cli 0.17.7 → 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 +12 -9
- package/bin/makaron.mjs +157 -25
- package/package.json +2 -2
- package/skills/makaron/SKILL.md +9 -5
package/README.md
CHANGED
|
@@ -317,7 +317,7 @@ npx makaron-cli chat --project <id> --video party.mp4 --image kid.jpg -b "make t
|
|
|
317
317
|
npx makaron-cli chat --project <id> --video clip1.mp4 --video clip2.mp4 -b "splice these into one seamless video"
|
|
318
318
|
```
|
|
319
319
|
|
|
320
|
-
Video files are uploaded via signed URL. CLI local video uploads support `.mp4`, `.mov`, or `.webm`, max
|
|
320
|
+
Video files are uploaded via signed URL. CLI local video uploads support `.mp4`, `.mov`, or `.webm`, max 500MB, max 900s (15 minutes) with 1s metadata tolerance, and <=1080p / 2,086,876 frame pixels. The CLI uploads files over 6MB directly to Storage in 6MB resumable chunks without loading the entire file into memory and rejects videos above those limits. Local `makaron analyze --video` uploads also support max 500MB; analysis provider limits still apply.
|
|
321
321
|
For a new presenter or product video, ask for picture, speech, lip sync and music together in one `chat` brief. Seedance 2.5 defaults to Eco. Native subtitles can be included; for precise or editable captions, Makaron keeps the native soundtrack and adds text through a lightweight composition, without a Studio production recipe or another voice generation. Review the completed MP4 for speech, caption spelling and synchronization.
|
|
322
322
|
|
|
323
323
|
The agent understands video content natively — it can analyze scenes, edit, extend, and compose videos. Seedance video-reference editing is still limited to ~15s provider references, so longer uploaded videos should be split/prepared by the agent before model submission; Kling 4.0 supports direct edit for a 3-30s source.
|
|
@@ -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
|
@@ -52,12 +52,13 @@ const CHAT_AGENT_MODELS = [
|
|
|
52
52
|
const SUPABASE_URL = 'https://sdyrtztrjgmmpnirswxt.supabase.co';
|
|
53
53
|
const SUPABASE_ANON_KEY = 'sb_publishable_FJFN2YYaWaQjABUKLqxQcA_fhxPLFDY';
|
|
54
54
|
|
|
55
|
-
const MAX_VIDEO_UPLOAD_FILE_SIZE_MB =
|
|
55
|
+
const MAX_VIDEO_UPLOAD_FILE_SIZE_MB = 500;
|
|
56
56
|
const MAX_VIDEO_UPLOAD_FILE_SIZE = MAX_VIDEO_UPLOAD_FILE_SIZE_MB * 1024 * 1024;
|
|
57
57
|
const MAX_VIDEO_UPLOAD_DURATION = 900;
|
|
58
58
|
const MAX_VIDEO_UPLOAD_DURATION_TOLERANCE = 1;
|
|
59
59
|
const MAX_VIDEO_PROVIDER_REFERENCE_DURATION = 15;
|
|
60
60
|
const MAX_VIDEO_PROVIDER_REFERENCE_DURATION_TOLERANCE = 0.5;
|
|
61
|
+
const MAX_VIDEO_PROVIDER_REFERENCE_FILE_SIZE = 50 * 1024 * 1024;
|
|
61
62
|
const MIN_AUDIO_REFERENCE_DURATION = 2;
|
|
62
63
|
const MAX_AUDIO_REFERENCE_DURATION = 15;
|
|
63
64
|
const MAX_AUDIO_REFERENCE_DURATION_TOLERANCE = 0.5;
|
|
@@ -523,6 +524,10 @@ Options:
|
|
|
523
524
|
--stream Live SSE; follows the same run after handoff.
|
|
524
525
|
--help, -h Show this help.
|
|
525
526
|
|
|
527
|
+
Local video uploads: MP4/MOV/WebM, max ${MAX_VIDEO_UPLOAD_FILE_SIZE_MB}MB,
|
|
528
|
+
max ${MAX_VIDEO_UPLOAD_DURATION}s (15 minutes, with 1s metadata tolerance), <=1080p.
|
|
529
|
+
Direct video model reference limits remain provider-specific.
|
|
530
|
+
|
|
526
531
|
Agent LLM defaults to auto, following the server-configured Agent model.
|
|
527
532
|
When that default is a GPT model, eligible accounts can use the Codex plan.
|
|
528
533
|
GPT-5.6 and GPT-6 base ids select Azure API; append -codex-subscription to
|
|
@@ -530,6 +535,9 @@ select the personal plan explicitly. Base grok-4.6 selects OpenRouter API;
|
|
|
530
535
|
grok-4.6-grok-subscription selects the personal SuperGrok plan. Image/video
|
|
531
536
|
model routing stays automatic in chat.
|
|
532
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
|
+
|
|
533
541
|
What you can ask:
|
|
534
542
|
Image edit
|
|
535
543
|
makaron chat --project <id> --image photo.jpg "remove the person in the background"
|
|
@@ -537,6 +545,9 @@ What you can ask:
|
|
|
537
545
|
Image generation
|
|
538
546
|
makaron chat --project auto "generate a cinematic poster of a rainy Tokyo alley"
|
|
539
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
|
+
|
|
540
551
|
Video from image or timeline
|
|
541
552
|
makaron chat --project <id> "make this into a 5 second cinematic video"
|
|
542
553
|
|
|
@@ -1596,10 +1607,96 @@ function readImageAsDataUrl(filePath) {
|
|
|
1596
1607
|
return `data:${v.mime};base64,${buf.toString('base64')}`;
|
|
1597
1608
|
}
|
|
1598
1609
|
|
|
1610
|
+
async function uploadFileResumable(uploadUrl, token, storagePath, filePath, contentType) {
|
|
1611
|
+
const chunkSize = 6 * 1024 * 1024;
|
|
1612
|
+
const size = fs.statSync(filePath).size;
|
|
1613
|
+
const bucket = new URL(uploadUrl).pathname.match(/\/object\/upload\/sign\/([^/]+)\//)?.[1];
|
|
1614
|
+
if (!bucket || !storagePath) {
|
|
1615
|
+
process.stderr.write('⚠️ Missing resumable upload metadata. Update the Makaron service and retry.\n');
|
|
1616
|
+
return null;
|
|
1617
|
+
}
|
|
1618
|
+
const headers = { 'Tus-Resumable': '1.0.0', 'x-signature': token, apikey: SUPABASE_ANON_KEY };
|
|
1619
|
+
const metadata = Object.entries({ bucketName: decodeURIComponent(bucket), objectName: storagePath, contentType, cacheControl: '3600' })
|
|
1620
|
+
.map(([key, value]) => `${key} ${Buffer.from(value).toString('base64')}`).join(',');
|
|
1621
|
+
let file;
|
|
1622
|
+
try {
|
|
1623
|
+
const created = await fetch(new URL('/storage/v1/upload/resumable/sign', uploadUrl), {
|
|
1624
|
+
method: 'POST',
|
|
1625
|
+
headers: { ...headers, 'Upload-Length': String(size), 'Upload-Metadata': metadata },
|
|
1626
|
+
signal: AbortSignal.timeout(60_000),
|
|
1627
|
+
});
|
|
1628
|
+
if (!created.ok || !created.headers.get('location')) {
|
|
1629
|
+
process.stderr.write(`⚠️ Failed to start resumable upload (HTTP ${created.status}).\n`);
|
|
1630
|
+
return null;
|
|
1631
|
+
}
|
|
1632
|
+
const location = new URL(created.headers.get('location'), uploadUrl);
|
|
1633
|
+
const offsetFrom = response => {
|
|
1634
|
+
const raw = response.headers.get('upload-offset');
|
|
1635
|
+
const value = raw === null ? NaN : Number(raw);
|
|
1636
|
+
return Number.isSafeInteger(value) && value >= 0 && value <= size ? value : null;
|
|
1637
|
+
};
|
|
1638
|
+
let offset = 0;
|
|
1639
|
+
let retries = 0;
|
|
1640
|
+
let progress = 0;
|
|
1641
|
+
file = await fs.promises.open(filePath, 'r');
|
|
1642
|
+
const buffer = Buffer.alloc(chunkSize);
|
|
1643
|
+
while (offset < size) {
|
|
1644
|
+
const length = Math.min(chunkSize, size - offset);
|
|
1645
|
+
let read = 0;
|
|
1646
|
+
while (read < length) {
|
|
1647
|
+
const { bytesRead } = await file.read(buffer, read, length - read, offset + read);
|
|
1648
|
+
if (!bytesRead) throw new Error('Unexpected end of upload file');
|
|
1649
|
+
read += bytesRead;
|
|
1650
|
+
}
|
|
1651
|
+
let response;
|
|
1652
|
+
try {
|
|
1653
|
+
response = await fetch(location, {
|
|
1654
|
+
method: 'PATCH',
|
|
1655
|
+
headers: { ...headers, 'Upload-Offset': String(offset), 'Content-Type': 'application/offset+octet-stream' },
|
|
1656
|
+
body: buffer.subarray(0, length),
|
|
1657
|
+
signal: AbortSignal.timeout(60_000),
|
|
1658
|
+
});
|
|
1659
|
+
} catch {
|
|
1660
|
+
// A lost response may still mean the chunk committed. HEAD reconciles it.
|
|
1661
|
+
}
|
|
1662
|
+
const next = response?.ok ? offsetFrom(response) : null;
|
|
1663
|
+
if (next === offset + length) {
|
|
1664
|
+
offset = next;
|
|
1665
|
+
retries = 0;
|
|
1666
|
+
} else {
|
|
1667
|
+
if (response && !response.ok && response.status < 500 && ![408, 409, 429].includes(response.status)) {
|
|
1668
|
+
process.stderr.write(`⚠️ Failed to upload file (HTTP ${response.status}).\n`);
|
|
1669
|
+
return null;
|
|
1670
|
+
}
|
|
1671
|
+
if (++retries > 3) throw new Error('Resumable upload retries exhausted');
|
|
1672
|
+
await new Promise(resolve => setTimeout(resolve, 1000 * retries));
|
|
1673
|
+
const head = await fetch(location, { method: 'HEAD', headers, signal: AbortSignal.timeout(60_000) }).catch(() => null);
|
|
1674
|
+
const committed = head?.ok ? offsetFrom(head) : null;
|
|
1675
|
+
if (committed !== null) {
|
|
1676
|
+
if (committed < offset || committed > offset + length) throw new Error('Invalid resumable upload offset');
|
|
1677
|
+
if (committed > offset) { offset = committed; retries = 0; }
|
|
1678
|
+
}
|
|
1679
|
+
continue;
|
|
1680
|
+
}
|
|
1681
|
+
const percent = Math.floor(offset / size * 10) * 10;
|
|
1682
|
+
if (percent > progress) {
|
|
1683
|
+
progress = percent;
|
|
1684
|
+
process.stderr.write(`📤 Upload ${percent}%\n`);
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
return true;
|
|
1688
|
+
} catch {
|
|
1689
|
+
process.stderr.write('⚠️ Resumable upload failed. Retry the upload.\n');
|
|
1690
|
+
return null;
|
|
1691
|
+
} finally {
|
|
1692
|
+
await file?.close();
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1599
1696
|
/**
|
|
1600
1697
|
* Upload a local file via signed URL (works for both images and videos).
|
|
1601
1698
|
* 1. POST /api/storage/upload-url → get signed URL + public URL
|
|
1602
|
-
* 2.
|
|
1699
|
+
* 2. Upload directly to Storage; files over 6MB use signed TUS chunks.
|
|
1603
1700
|
* Returns public URL on success, null on failure.
|
|
1604
1701
|
*/
|
|
1605
1702
|
async function uploadFileViaSignedUrl(baseUrl, headers, projectId, filePath, contentType, options = {}) {
|
|
@@ -1614,23 +1711,33 @@ async function uploadFileViaSignedUrl(baseUrl, headers, projectId, filePath, con
|
|
|
1614
1711
|
process.stderr.write(`⚠️ Failed to get upload URL: ${await urlRes.text()}\n`);
|
|
1615
1712
|
return null;
|
|
1616
1713
|
}
|
|
1617
|
-
const { uploadUrl, token, publicUrl } = await urlRes.json();
|
|
1714
|
+
const { uploadUrl, token, publicUrl, path: storagePath } = await urlRes.json();
|
|
1715
|
+
|
|
1716
|
+
if (fs.statSync(filePath).size > 6 * 1024 * 1024) {
|
|
1717
|
+
return await uploadFileResumable(uploadUrl, token, storagePath, filePath, contentType) ? publicUrl : null;
|
|
1718
|
+
}
|
|
1618
1719
|
|
|
1619
1720
|
// Step 2: PUT file directly to Supabase Storage
|
|
1620
|
-
const
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1721
|
+
const file = fs.createReadStream(filePath);
|
|
1722
|
+
try {
|
|
1723
|
+
const putRes = await fetch(uploadUrl, {
|
|
1724
|
+
method: 'PUT',
|
|
1725
|
+
headers: {
|
|
1726
|
+
'Content-Type': contentType,
|
|
1727
|
+
'Content-Length': String(fs.statSync(filePath).size),
|
|
1728
|
+
'Authorization': `Bearer ${token}`,
|
|
1729
|
+
},
|
|
1730
|
+
body: file,
|
|
1731
|
+
duplex: 'half',
|
|
1732
|
+
});
|
|
1733
|
+
if (!putRes.ok) {
|
|
1734
|
+
process.stderr.write(`⚠️ Failed to upload file: ${await putRes.text()}\n`);
|
|
1735
|
+
return null;
|
|
1736
|
+
}
|
|
1737
|
+
return publicUrl;
|
|
1738
|
+
} finally {
|
|
1739
|
+
file.destroy();
|
|
1632
1740
|
}
|
|
1633
|
-
return publicUrl;
|
|
1634
1741
|
}
|
|
1635
1742
|
|
|
1636
1743
|
async function uploadImageFilesViaSignedUrl(baseUrl, headers, projectId, imagePaths) {
|
|
@@ -1888,7 +1995,7 @@ function validateVideoFileForAnalysis(videoPath) {
|
|
|
1888
1995
|
return { ok: false, error: `Video file is empty: ${videoPath}` };
|
|
1889
1996
|
}
|
|
1890
1997
|
if (stat.size > MAX_VIDEO_UPLOAD_FILE_SIZE) {
|
|
1891
|
-
return { ok: false, error: `Video too large: ${(stat.size / 1024 / 1024).toFixed(1)}MB (max ${MAX_VIDEO_UPLOAD_FILE_SIZE_MB}MB).
|
|
1998
|
+
return { ok: false, error: `Video too large: ${(stat.size / 1024 / 1024).toFixed(1)}MB (max ${MAX_VIDEO_UPLOAD_FILE_SIZE_MB}MB). Compress or split the video before uploading.` };
|
|
1892
1999
|
}
|
|
1893
2000
|
const ext = path.extname(videoPath).slice(1).toLowerCase();
|
|
1894
2001
|
if (!['mp4', 'mov', 'webm'].includes(ext)) {
|
|
@@ -1907,7 +2014,8 @@ function saveMcpImage(result, outputPath) {
|
|
|
1907
2014
|
const saved = [];
|
|
1908
2015
|
const stamp = Date.now();
|
|
1909
2016
|
for (const [index, image] of images.entries()) {
|
|
1910
|
-
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}`);
|
|
1911
2019
|
const requestedExtension = outputPath ? path.extname(outputPath).slice(1).toLowerCase() : '';
|
|
1912
2020
|
const compatible = extension === 'jpg' ? ['jpg', 'jpeg'].includes(requestedExtension) : requestedExtension === extension;
|
|
1913
2021
|
const stem = outputPath ? outputPath.slice(0, outputPath.length - path.extname(outputPath).length) : `makaron-output-${stamp}`;
|
|
@@ -1960,12 +2068,17 @@ Usage:
|
|
|
1960
2068
|
Options:
|
|
1961
2069
|
--image <file|url> Base image to edit. Omit for text-to-image.
|
|
1962
2070
|
--ref <file|url> Additional reference image. Repeatable; model-specific limit (Nano Banana 2.1: 14 total inputs).
|
|
1963
|
-
--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.
|
|
1964
2072
|
--skill <id> enhance, creative, wild, or captions.
|
|
1965
2073
|
--image-resolution <id> 1K, 2K, or 4K; Auto chooses Nano Banana 2.1.
|
|
1966
2074
|
--nsfw Route NSFW directly to Qwen Spicy.
|
|
1967
2075
|
--aspect <ratio> Output aspect ratio, for example 1:1, 16:9, or 9:16.
|
|
1968
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.
|
|
1969
2082
|
--out <file> Save images; batches use name-1.ext, name-2.ext, etc.
|
|
1970
2083
|
--mj-speed <mode> fast (up to 4 images) or draft (up to 24).
|
|
1971
2084
|
--mj-quality <mode> standard or hd; HD regenerates, not lossless upscaling.
|
|
@@ -1978,15 +2091,21 @@ Options:
|
|
|
1978
2091
|
--help, -h Show this help.
|
|
1979
2092
|
|
|
1980
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.
|
|
1981
2100
|
MJ options require --image-model mj-v8.2; Draft + HD is invalid. Describe the scene
|
|
1982
2101
|
naturally; the server prepares the English prompt. MJ is generation, not precise editing.
|
|
1983
|
-
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
|
|
1984
2103
|
and fails instead of returning an opaque fallback.
|
|
1985
2104
|
|
|
1986
2105
|
Examples:
|
|
1987
2106
|
makaron edit --image portrait.jpg --image-model qwen-spicy --out result.jpg "cinematic warm light"
|
|
1988
2107
|
makaron edit --image product.jpg --ref style.png --aspect 1:1 "use this visual style"
|
|
1989
|
-
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"
|
|
1990
2109
|
`);
|
|
1991
2110
|
}
|
|
1992
2111
|
|
|
@@ -2264,7 +2383,7 @@ Not sure which built-in skill to use? Start with:
|
|
|
2264
2383
|
} else if (topic === 'edit') {
|
|
2265
2384
|
printEditHelp();
|
|
2266
2385
|
} else if (topic === 'analyze') {
|
|
2267
|
-
console.log(
|
|
2386
|
+
console.log(`Usage: makaron analyze --video <file|url> ["question"]\nLocal video uploads: MP4/MOV/WebM, max ${MAX_VIDEO_UPLOAD_FILE_SIZE_MB}MB. Analysis provider limits apply.`);
|
|
2268
2387
|
} else if (topic === 'video') {
|
|
2269
2388
|
if (subtopic === 'script') console.log('Usage: makaron video script --image <file> [--image <file>] [--lang en|zh] "direction"');
|
|
2270
2389
|
else if (subtopic === 'create') printVideoCreateHelp();
|
|
@@ -2648,7 +2767,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
2648
2767
|
}
|
|
2649
2768
|
|
|
2650
2769
|
if (chatVideos.length > 0) {
|
|
2651
|
-
//
|
|
2770
|
+
// Stream prevalidated local files via signed URL (works with API key auth).
|
|
2652
2771
|
const uploadedVideoUrls = [...prevalidatedVideoUrlList];
|
|
2653
2772
|
const uploadedVideoMetas = prevalidatedVideoUrlList.map(() => null);
|
|
2654
2773
|
if (prevalidatedVideoUrlList.length) {
|
|
@@ -3101,6 +3220,19 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3101
3220
|
}
|
|
3102
3221
|
editArgs.background = background;
|
|
3103
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
|
+
}
|
|
3104
3236
|
else if (args[i] === '--out' && args[i + 1]) outputPath = args[++i];
|
|
3105
3237
|
else if (['--mj-speed', '--mj-quality', '--style-ref', '--mj-style-weight', '--mj-stylize', '--mj-chaos', '--mj-seed'].includes(args[i])) {
|
|
3106
3238
|
const flag = args[i], value = args[++i];
|
|
@@ -3131,7 +3263,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3131
3263
|
editArgs.midjourney = mjArgs;
|
|
3132
3264
|
}
|
|
3133
3265
|
editArgs.editPrompt = promptParts.join(' ');
|
|
3134
|
-
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); }
|
|
3135
3267
|
process.stderr.write('🎨 Generating...\n');
|
|
3136
3268
|
const result = await callMcpTool(baseUrl, headers, 'makaron_edit_image', editArgs);
|
|
3137
3269
|
saveMcpImage(result, outputPath);
|
|
@@ -3324,7 +3456,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3324
3456
|
maxDuration: providerMaxDuration,
|
|
3325
3457
|
durationTolerance: MAX_VIDEO_PROVIDER_REFERENCE_DURATION_TOLERANCE,
|
|
3326
3458
|
maxFramePixels: providerMaxPixels,
|
|
3327
|
-
maxFileSize: isWan30 ? MULEROUTER_WAN_MAX_VIDEO_FILE_SIZE : isSeedance25 || isSyncLipsync || isKling4 ? 200 * 1024 * 1024 :
|
|
3459
|
+
maxFileSize: isWan30 ? MULEROUTER_WAN_MAX_VIDEO_FILE_SIZE : isSeedance25 || isSyncLipsync || isKling4 ? 200 * 1024 * 1024 : MAX_VIDEO_PROVIDER_REFERENCE_FILE_SIZE,
|
|
3328
3460
|
...(isKling4 ? {
|
|
3329
3461
|
allowedExtensions: ['mp4', 'mov'], minSide: 720, maxSide: 2160,
|
|
3330
3462
|
} : isGrok ? {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "makaron-cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.9",
|
|
4
4
|
"description": "Talk to Makaron Agent from the terminal — create projects, edit images, generate videos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "node test/smoke.mjs",
|
|
7
|
+
"test": "node test/smoke.mjs && node test/upload.mjs",
|
|
8
8
|
"test:smoke": "node test/smoke.mjs",
|
|
9
9
|
"test:live": "MAKARON_LIVE=1 node test/live-smoke.mjs"
|
|
10
10
|
},
|
package/skills/makaron/SKILL.md
CHANGED
|
@@ -246,7 +246,7 @@ npx makaron-cli chat --project <id> --video clip1.mp4 --video clip2.mp4 -b "comb
|
|
|
246
246
|
npx makaron-cli chat --project auto --video https://example.com/dance.mp4 -b "extend this to 15 seconds"
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
-
Supported formats: MP4, MOV, WebM. CLI local video uploads support max
|
|
249
|
+
Supported formats: MP4, MOV, WebM. CLI local video uploads support max 500MB, max 900s (15 minutes) with 1s metadata tolerance, and <=1080p / 2,086,876 frame pixels. The CLI uploads files over 6MB directly to Storage in 6MB resumable chunks without loading the entire file into memory and rejects videos above those limits. Local `makaron analyze --video` uploads also support max 500MB; analysis provider limits still apply. Videos are uploaded to the project timeline. The Agent can analyze scenes, edit content, compose multiple clips, extend duration, and add effects — all via natural language. Seedance reference-video limits remain provider-specific, so longer uploaded videos should be split/prepared by the agent before model submission; Kling 4.0 supports direct edit for a 3-30s source.
|
|
250
250
|
|
|
251
251
|
Use `chat --project <id|auto> --video ...` for any project/timeline video work. Direct video commands are standalone raw-tool calls.
|
|
252
252
|
|
|
@@ -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.
|