makaron-cli 0.17.16 → 0.17.18
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 +5 -2
- package/bin/makaron.mjs +38 -13
- package/package.json +1 -1
- package/skills/makaron/SKILL.md +4 -2
package/README.md
CHANGED
|
@@ -409,7 +409,7 @@ npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
|
|
|
409
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.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.
|
|
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|seedream-5.5`, `--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
|
|
|
@@ -624,11 +624,12 @@ Admin commands require an API key with admin privileges. Ask your admin to run `
|
|
|
624
624
|
|
|
625
625
|
### Add credits to a user
|
|
626
626
|
|
|
627
|
-
Use
|
|
627
|
+
Use the account email address, Supabase user UUID, or full active API key. Credits are added to the owning account (shared by its API keys), and must be a positive integer. Keep `MAKARON_API_KEY` set to your administrator credential; the positional API key identifies the recipient. Full recipient keys are redacted from command output.
|
|
628
628
|
|
|
629
629
|
```bash
|
|
630
630
|
npx makaron-cli admin add-credits user@example.com 1000
|
|
631
631
|
npx makaron-cli admin add-credits <user-id> 1000 --json
|
|
632
|
+
npx makaron-cli admin add-credits "$RECIPIENT_API_KEY" 1000 --json
|
|
632
633
|
```
|
|
633
634
|
|
|
634
635
|
### List all marketplace skills
|
|
@@ -748,3 +749,5 @@ makaron chat --image mascot.png "Use GPT Image 2.6 Flare to make a looping GIF o
|
|
|
748
749
|
```
|
|
749
750
|
|
|
750
751
|
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.
|
|
752
|
+
|
|
753
|
+
Seedream 5.5 (`--image-model seedream-5.5`) uses EvoLink, accepts at most 10 ordered inputs (base included), `--image-resolution 1K|1.5K|2K`, and `--output-format png|jpeg` (default PNG). `--background transparent` requires native PNG alpha. Quality/reasoning/GIF/SVG controls are unsupported. It never participates in Auto or switches providers after failure. Direct `makaron edit --image/--ref` uploads local originals automatically; direct MCP callers must supply public HTTPS PNG/JPEG/WebP originals. Accepted task receipts are saved to the user workspace before polling. The server must configure `EVOLINK_API_KEY` and an exact active `seedream-5.5` pricing row before use.
|
package/bin/makaron.mjs
CHANGED
|
@@ -2082,9 +2082,9 @@ Usage:
|
|
|
2082
2082
|
Options:
|
|
2083
2083
|
--image <file|url> Base image to edit. Omit for text-to-image.
|
|
2084
2084
|
--ref <file|url> Additional reference image. Repeatable; model-specific limit (Nano Banana 2.1: 14 total inputs).
|
|
2085
|
-
--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,
|
|
2085
|
+
--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, or seedream-5.5. Legacy qwen maps to qwen-spicy.
|
|
2086
2086
|
--skill <id> enhance, creative, wild, or captions.
|
|
2087
|
-
--image-resolution <id> 1K, 2K, or 4K;
|
|
2087
|
+
--image-resolution <id> 1K, 2K, or 4K; Seedream 5.5 supports 1K, 1.5K and 2K. Auto remains Flare-first.
|
|
2088
2088
|
--nsfw Route NSFW directly to Qwen Spicy.
|
|
2089
2089
|
--aspect <ratio> Output aspect ratio, for example 1:1, 16:9, or 9:16.
|
|
2090
2090
|
--background <mode> auto, opaque, or transparent.
|
|
@@ -2114,7 +2114,7 @@ Notes:
|
|
|
2114
2114
|
GIF frames share the pixel budget. No format substitution.
|
|
2115
2115
|
MJ options require --image-model mj-v8.2; Draft + HD is invalid. Describe the scene
|
|
2116
2116
|
naturally; the server prepares the English prompt. MJ is generation, not precise editing.
|
|
2117
|
-
Model selection is optional. Transparent output
|
|
2117
|
+
Model selection is optional. Transparent output defaults to GPT Image 2.6 Flare; explicit Seedream 5.5 retains native PNG alpha
|
|
2118
2118
|
and fails instead of returning an opaque fallback.
|
|
2119
2119
|
|
|
2120
2120
|
Examples:
|
|
@@ -2425,7 +2425,7 @@ Not sure which built-in skill to use? Start with:
|
|
|
2425
2425
|
else if (subtopic === 'skill-categories') console.log('Usage: makaron admin skill-categories [--json|add|update|delete] ...');
|
|
2426
2426
|
else if (subtopic === 'upload') console.log('Usage: makaron admin upload <local-file> <storage-path>');
|
|
2427
2427
|
else if (subtopic === 'fetch-skill') console.log('Usage: makaron admin fetch-skill <share-code|url>');
|
|
2428
|
-
else if (subtopic === 'add-credits') console.log('Usage: makaron admin add-credits <email-or-user-id> <credits> [--json]');
|
|
2428
|
+
else if (subtopic === 'add-credits') console.log('Usage: makaron admin add-credits <email-or-user-id-or-api-key> <credits> [--json]');
|
|
2429
2429
|
else if (subtopic === 'set-admin') console.log('Usage: makaron admin set-admin <email>');
|
|
2430
2430
|
else console.log(`Admin commands:
|
|
2431
2431
|
admin skills List all marketplace skills
|
|
@@ -2438,7 +2438,7 @@ Not sure which built-in skill to use? Start with:
|
|
|
2438
2438
|
admin skill-categories delete <id> Delete a category
|
|
2439
2439
|
admin upload <file> <storage-path> Upload file to Storage
|
|
2440
2440
|
admin fetch-skill <code|url> Download skill from share link
|
|
2441
|
-
admin add-credits <user> <credits> Add credits by email or
|
|
2441
|
+
admin add-credits <user> <credits> Add credits by email, user ID or API key
|
|
2442
2442
|
admin set-admin <email> Grant admin access to a user
|
|
2443
2443
|
`);
|
|
2444
2444
|
} else if (topic === 'register') {
|
|
@@ -3214,11 +3214,16 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3214
3214
|
} else if (command === 'edit') {
|
|
3215
3215
|
const { headers, baseUrl } = getAuth();
|
|
3216
3216
|
const editArgs = {};
|
|
3217
|
+
let editSourceFile;
|
|
3218
|
+
const editReferenceFiles = [];
|
|
3217
3219
|
const mjArgs = {};
|
|
3218
3220
|
const promptParts = [];
|
|
3219
3221
|
let outputPath = null;
|
|
3220
3222
|
for (let i = 1; i < args.length; i++) {
|
|
3221
|
-
if (args[i] === '--image' && args[i + 1])
|
|
3223
|
+
if (args[i] === '--image' && args[i + 1]) {
|
|
3224
|
+
editSourceFile = args[++i];
|
|
3225
|
+
editArgs.image = imageToArg(editSourceFile);
|
|
3226
|
+
}
|
|
3222
3227
|
else if (args[i] === '--image-model' && args[i + 1]) editArgs.model = args[++i];
|
|
3223
3228
|
else if (args[i] === '--model' && args[i + 1]) {
|
|
3224
3229
|
warnLegacyModelFlag('--image-model');
|
|
@@ -3227,7 +3232,9 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3227
3232
|
else if (args[i] === '--skill' && args[i + 1]) editArgs.skill = args[++i];
|
|
3228
3233
|
else if (args[i] === '--ref' && args[i + 1]) {
|
|
3229
3234
|
editArgs.referenceImages = editArgs.referenceImages || [];
|
|
3230
|
-
|
|
3235
|
+
const reference = args[++i];
|
|
3236
|
+
editReferenceFiles.push(reference);
|
|
3237
|
+
editArgs.referenceImages.push(imageToArg(reference));
|
|
3231
3238
|
}
|
|
3232
3239
|
else if (args[i] === '--image-resolution' && args[i + 1]) {
|
|
3233
3240
|
const resolution = args[++i];
|
|
@@ -3286,7 +3293,17 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3286
3293
|
editArgs.midjourney = mjArgs;
|
|
3287
3294
|
}
|
|
3288
3295
|
editArgs.editPrompt = promptParts.join(' ');
|
|
3289
|
-
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); }
|
|
3296
|
+
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] [--ref <file>] [--aspect <ratio>] [--background auto|opaque|transparent] [--out <file>] "prompt"'); process.exit(1); }
|
|
3297
|
+
if (editArgs.model === 'seedream-5.5') {
|
|
3298
|
+
const sources = [...(editSourceFile ? [editSourceFile] : []), ...editReferenceFiles];
|
|
3299
|
+
if (sources.length > 10) { console.error('Seedream 5.5 accepts at most 10 inputs including the base.'); process.exit(1); }
|
|
3300
|
+
const localFiles = sources.filter(source => !isHttpUrl(source));
|
|
3301
|
+
const uploaded = localFiles.length ? await uploadImageFilesViaSignedUrl(baseUrl, headers, undefined, localFiles) : [];
|
|
3302
|
+
const byPath = new Map(localFiles.map((source, index) => [source, uploaded[index]]));
|
|
3303
|
+
const publicSource = source => isHttpUrl(source) ? source : byPath.get(source);
|
|
3304
|
+
if (editSourceFile) editArgs.image = publicSource(editSourceFile);
|
|
3305
|
+
if (editReferenceFiles.length) editArgs.referenceImages = editReferenceFiles.map(publicSource);
|
|
3306
|
+
}
|
|
3290
3307
|
process.stderr.write('🎨 Generating...\n');
|
|
3291
3308
|
const result = await callMcpTool(baseUrl, headers, 'makaron_edit_image', editArgs);
|
|
3292
3309
|
saveMcpImage(result, outputPath);
|
|
@@ -3800,17 +3817,25 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3800
3817
|
const user = args[2]?.trim();
|
|
3801
3818
|
const credits = Number(args[3]);
|
|
3802
3819
|
if (!user || !Number.isSafeInteger(credits) || credits <= 0) {
|
|
3803
|
-
console.error('Usage: makaron admin add-credits <email-or-user-id> <credits> [--json]');
|
|
3820
|
+
console.error('Usage: makaron admin add-credits <email-or-user-id-or-api-key> <credits> [--json]');
|
|
3804
3821
|
console.error('Credits must be a positive integer.');
|
|
3805
3822
|
process.exit(1);
|
|
3806
3823
|
}
|
|
3807
3824
|
|
|
3825
|
+
const isApiKey = user.startsWith('mk_live_');
|
|
3808
3826
|
const res = await fetch(`${baseUrl}/api/admin/add-credits`, {
|
|
3809
3827
|
method: 'POST',
|
|
3810
3828
|
headers: { 'Content-Type': 'application/json', ...headers },
|
|
3811
|
-
body: JSON.stringify({ email: user, credits }),
|
|
3829
|
+
body: JSON.stringify({ ...(isApiKey ? { apiKey: user } : { email: user }), credits }),
|
|
3812
3830
|
});
|
|
3813
|
-
const
|
|
3831
|
+
const responseText = await res.text();
|
|
3832
|
+
// Never echo the target credential, even if an older server includes it in an error.
|
|
3833
|
+
let data;
|
|
3834
|
+
try {
|
|
3835
|
+
data = JSON.parse(responseText, (_key, value) =>
|
|
3836
|
+
isApiKey && typeof value === 'string' ? value.replaceAll(user, '[redacted API key]') : value);
|
|
3837
|
+
}
|
|
3838
|
+
catch { data = null; }
|
|
3814
3839
|
if (!res.ok) {
|
|
3815
3840
|
console.error(`Error ${res.status}:`, data?.error || 'Failed to add credits');
|
|
3816
3841
|
process.exit(1);
|
|
@@ -3818,7 +3843,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3818
3843
|
if (args.includes('--json')) {
|
|
3819
3844
|
console.log(JSON.stringify(data));
|
|
3820
3845
|
} else {
|
|
3821
|
-
console.log(`✅ Added ${credits} credits to ${user}. New balance: ${data.newBalance}`);
|
|
3846
|
+
console.log(`✅ Added ${credits} credits to ${isApiKey ? data.userId : user}. New balance: ${data.newBalance}`);
|
|
3822
3847
|
}
|
|
3823
3848
|
|
|
3824
3849
|
} else {
|
|
@@ -3833,7 +3858,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
3833
3858
|
admin skill-categories delete <id> Delete a category
|
|
3834
3859
|
admin upload <file> <storage-path> Upload file to Storage
|
|
3835
3860
|
admin fetch-skill <code|url> Download skill from share link
|
|
3836
|
-
admin add-credits <user> <credits> Add credits by email or
|
|
3861
|
+
admin add-credits <user> <credits> Add credits by email, user ID or API key
|
|
3837
3862
|
admin set-admin <email> Grant admin access to a user
|
|
3838
3863
|
`);
|
|
3839
3864
|
}
|
package/package.json
CHANGED
package/skills/makaron/SKILL.md
CHANGED
|
@@ -196,7 +196,7 @@ npx makaron-cli chat --project auto \
|
|
|
196
196
|
|
|
197
197
|
`--skill` accepts an installed skill name, a marketplace UUID, or a unique marketplace label. Marketplace search matches every localized title, every localized default prompt, and category ids. If a marketplace skill is matched, the CLI installs or reuses it and sends `[Active skill: <installed-skill-name>]` to Makaron Agent. Do not call admin skill commands for ordinary users. There is intentionally no user-facing CLI delete command for marketplace skills.
|
|
198
198
|
|
|
199
|
-
For an explicitly authorized administrator, `admin add-credits <email-or-user-id> <positive-integer> [--json]` adds credits to
|
|
199
|
+
For an explicitly authorized administrator, `admin add-credits <email-or-user-id-or-api-key> <positive-integer> [--json]` adds credits to the owning account. A full active recipient API key can identify the account; keep `MAKARON_API_KEY` set to the administrator credential. Never include full keys in messages or logs. Marketplace administrators can use `admin skills` to see category assignment and 4-locale title/prompt completeness, while `admin skill-categories` supports list/add/update/delete. New skills must include `en`, `zh`, `zh-Hant`, and `ja` in both `labels` and `prompts`, plus at least one existing `categories` id. Partial localized updates are safely merged server-side.
|
|
200
200
|
|
|
201
201
|
### With additional images (existing project)
|
|
202
202
|
|
|
@@ -334,7 +334,7 @@ npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
|
|
|
334
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.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.
|
|
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|seedream-5.5`, `--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
|
|
|
@@ -570,3 +570,5 @@ GPT Image 2.6 Flare is the default; Sunburst is optional. `--quality auto|low|me
|
|
|
570
570
|
The legacy `openai` image-model parameter now resolves to GPT Image 2.6 Flare.
|
|
571
571
|
|
|
572
572
|
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.
|
|
573
|
+
|
|
574
|
+
Seedream 5.5 (`--image-model seedream-5.5`) uses EvoLink, accepts at most 10 ordered inputs (base included), `--image-resolution 1K|1.5K|2K`, and `--output-format png|jpeg` (default PNG). `--background transparent` requires native PNG alpha. Quality/reasoning/GIF/SVG controls are unsupported. It never participates in Auto or switches providers after failure. Direct `makaron edit --image/--ref` uploads local originals automatically; direct MCP callers must supply public HTTPS PNG/JPEG/WebP originals. Accepted task receipts are saved to the user workspace before polling. The server must configure `EVOLINK_API_KEY` and an exact active `seedream-5.5` pricing row before use.
|