makaron-cli 0.14.6 → 0.14.7

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.14.6",
3
+ "version": "0.14.7",
4
4
  "description": "Give Claude Code a creative agent. Pass complete creative requests and source media to Makaron Chat.",
5
5
  "author": {
6
6
  "name": "Versa AI",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.14.6",
3
+ "version": "0.14.7",
4
4
  "description": "Give Codex a creative agent. Pass complete creative requests and source media to Makaron Chat.",
5
5
  "author": {
6
6
  "name": "Versa AI",
package/README.md CHANGED
@@ -367,7 +367,9 @@ npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
367
367
  npx makaron-cli edit --image-model openai --background transparent --out sticker.png "a magenta star sticker"
368
368
  ```
369
369
 
370
- Options: `--image`, `--image-model gemini|gemini-lite|qwen|openai|pony|wai`, `--ref <file>` (up to 3), `--aspect <ratio>`, `--background auto|opaque|transparent`, `--out <path>`. Transparent output routes strictly to GPT Image 2 and is returned only when the provider supplies real PNG/WebP alpha.
370
+ Options: `--image`, `--image-model gemini|gemini-lite|qwen|openai|wan2.7-image|pony|wai`, `--ref <file>` (up to 3), `--aspect <ratio>`, `--background auto|opaque|transparent`, `--out <path>`. Transparent output routes strictly to GPT Image 2 and is returned only when the provider supplies real PNG/WebP alpha.
371
+
372
+ `wan2.7-image` uses Alibaba international for fast, approximately 1K generation and editing (default 6 credits/image). Failed or timed-out Wan requests are not automatically retried or switched to another model. Face identity can change. Example: `makaron edit --image portrait.jpg --image-model wan2.7-image --aspect 16:9 --out stadium.jpg "Place this woman in a baseball stadium, preserving her face."`
371
373
 
372
374
  ### `video` — Standalone video tools (no project timeline)
373
375
 
package/bin/makaron.mjs CHANGED
@@ -1468,6 +1468,10 @@ async function callMcpTool(baseUrl, headers, toolName, args) {
1468
1468
  if (!res.ok) { console.error(`MCP error ${res.status}:`, await res.text()); process.exit(1); }
1469
1469
  const data = await res.json();
1470
1470
  if (data.error) { console.error(`MCP error:`, data.error.message); process.exit(1); }
1471
+ if (data.result?.isError) {
1472
+ console.error('MCP tool failed:', data.result.content?.filter(c => c.type === 'text').map(c => c.text).join('\n') || 'Unknown tool error');
1473
+ process.exit(1);
1474
+ }
1471
1475
  return data.result;
1472
1476
  }
1473
1477
 
@@ -1875,7 +1879,7 @@ Usage:
1875
1879
  Options:
1876
1880
  --image <file|url> Base image to edit. Omit for text-to-image.
1877
1881
  --ref <file|url> Additional reference image. Repeatable, up to 3.
1878
- --image-model <id> gemini, gemini-lite, qwen, openai, pony, or wai.
1882
+ --image-model <id> gemini, gemini-lite, qwen, openai, wan2.7-image, pony, or wai.
1879
1883
  --skill <id> enhance, creative, wild, or captions.
1880
1884
  --aspect <ratio> Output aspect ratio, for example 1:1, 16:9, or 9:16.
1881
1885
  --background <mode> auto, opaque, or transparent.
@@ -2924,7 +2928,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
2924
2928
  else promptParts.push(args[i]);
2925
2929
  }
2926
2930
  editArgs.editPrompt = promptParts.join(' ');
2927
- if (!editArgs.editPrompt) { console.error('Usage: makaron edit [--image <file|url>] [--image-model gemini|gemini-lite|qwen|openai|pony|wai] [--ref <file>] [--aspect <ratio>] [--background auto|opaque|transparent] [--out <file>] "prompt"'); process.exit(1); }
2931
+ if (!editArgs.editPrompt) { console.error('Usage: makaron edit [--image <file|url>] [--image-model gemini|gemini-lite|qwen|openai|wan2.7-image|pony|wai] [--ref <file>] [--aspect <ratio>] [--background auto|opaque|transparent] [--out <file>] "prompt"'); process.exit(1); }
2928
2932
  process.stderr.write('🎨 Generating...\n');
2929
2933
  const result = await callMcpTool(baseUrl, headers, 'makaron_edit_image', editArgs);
2930
2934
  saveMcpImage(result, outputPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.14.6",
3
+ "version": "0.14.7",
4
4
  "description": "Talk to Makaron Agent from the terminal — create projects, edit images, generate videos",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -304,7 +304,7 @@ npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
304
304
  npx makaron-cli edit --image-model openai --background transparent --out sticker.png "a magenta star sticker"
305
305
  ```
306
306
 
307
- Options: `--image`, `--image-model gemini|gemini-lite|qwen|openai|pony|wai`, `--ref <file>` (up to 3), `--aspect <ratio>`, `--background auto|opaque|transparent`, `--out <path>`. Transparent output routes strictly to GPT Image 2 and fails instead of returning an opaque fallback.
307
+ Options: `--image`, `--image-model gemini|gemini-lite|qwen|openai|wan2.7-image|pony|wai`, `--ref <file>` (up to 3), `--aspect <ratio>`, `--background auto|opaque|transparent`, `--out <path>`. Transparent output routes strictly to GPT Image 2 and fails instead of returning an opaque fallback. Wan 2.7 Image is an explicit fast ~1K route; do not automatically retry failures/timeouts, and do not promise exact face preservation.
308
308
 
309
309
  ### `video` — Standalone video tools (no project timeline)
310
310