makaron-cli 0.17.11 → 0.17.13

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.17.11",
3
+ "version": "0.17.13",
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.17.11",
3
+ "version": "0.17.13",
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
@@ -488,12 +488,12 @@ Video edit model behavior: `--video-model kling-4 --video --video-operation edit
488
488
  ### `music` — Music generation
489
489
 
490
490
  ```bash
491
- npx makaron-cli music create "gentle piano, warm strings, cinematic"
491
+ npx makaron-cli music create --duration 30 "gentle piano, warm strings, cinematic"
492
492
  npx makaron-cli music create --vocals --style "lo-fi" "rainy day vibes"
493
493
  npx makaron-cli music status <taskId>
494
494
  ```
495
495
 
496
- Options: `--vocals` (include vocals), `--style "genre"`
496
+ Options: `--duration N` (seconds, up to 120), `--vocals` (include vocals), `--style "genre"`. Music is generated by Seed Audio.
497
497
 
498
498
  ## Response Schema
499
499
 
package/bin/makaron.mjs CHANGED
@@ -2396,10 +2396,10 @@ Not sure which built-in skill to use? Start with:
2396
2396
  else if (subtopic === 'status') console.log('Usage: makaron video status <taskId> | --snapshot <snapshotId> [--wait]');
2397
2397
  else printVideoHelp();
2398
2398
  } else if (topic === 'music') {
2399
- if (subtopic === 'create') console.log('Usage: makaron music create [--vocals] [--style "genre"] "description"');
2399
+ if (subtopic === 'create') console.log('Usage: makaron music create [--duration <1-120>] [--vocals] [--style "genre"] "description"\n Music is generated by Seed Audio (max 120s).');
2400
2400
  else if (subtopic === 'status') console.log('Usage: makaron music status <taskId>');
2401
2401
  else console.log(`Music commands:
2402
- music create [--vocals] [--style "genre"] "description" Generate music
2402
+ music create [--duration N] [--vocals] [--style "genre"] "description" Generate music
2403
2403
  music status <taskId> Check music status
2404
2404
  `);
2405
2405
  } else if (topic === 'admin') {
@@ -3579,17 +3579,20 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3579
3579
 
3580
3580
  if (sub === 'create') {
3581
3581
  const promptParts = [];
3582
- let instrumental = true, style = undefined;
3582
+ let instrumental = true, style = undefined, duration = undefined;
3583
3583
  for (let i = 2; i < args.length; i++) {
3584
3584
  if (args[i] === '--vocals') instrumental = false;
3585
3585
  else if (args[i] === '--style' && args[i + 1]) style = args[++i];
3586
+ else if (args[i] === '--duration' && args[i + 1]) duration = Number(args[++i]);
3586
3587
  else promptParts.push(args[i]);
3587
3588
  }
3588
3589
  const prompt = promptParts.join(' ');
3589
- if (!prompt) { console.error('Usage: makaron music create [--vocals] [--style "lo-fi"] "gentle piano"'); process.exit(1); }
3590
+ if (!prompt) { console.error('Usage: makaron music create [--duration 30] [--vocals] [--style "lo-fi"] "gentle piano"'); process.exit(1); }
3591
+ if (duration !== undefined && (!Number.isFinite(duration) || duration <= 0)) { console.error('--duration must be a positive number of seconds'); process.exit(1); }
3590
3592
  process.stderr.write('🎵 Generating music...\n');
3591
3593
  const mArgs = { prompt, instrumental };
3592
3594
  if (style) mArgs.style = style;
3595
+ if (duration !== undefined) mArgs.duration_seconds = duration;
3593
3596
  const result = await callMcpTool(baseUrl, headers, 'makaron_create_music', mArgs);
3594
3597
  const text = result?.content?.find(c => c.type === 'text')?.text;
3595
3598
  if (text) console.log(text);
@@ -3603,7 +3606,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3603
3606
 
3604
3607
  } else {
3605
3608
  console.log(`Music commands:
3606
- music create [--vocals] [--style "genre"] "description" Generate music
3609
+ music create [--duration N] [--vocals] [--style "genre"] "description" Generate music
3607
3610
  music status <taskId> Check music status
3608
3611
  `);
3609
3612
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.11",
3
+ "version": "0.17.13",
4
4
  "description": "Talk to Makaron Agent from the terminal — create projects, edit images, generate videos",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -414,12 +414,12 @@ Video edit model behavior: `--video-model kling-4 --video --video-operation edit
414
414
  ### `music` — Music generation
415
415
 
416
416
  ```bash
417
- npx makaron-cli music create "gentle piano, warm strings, cinematic"
417
+ npx makaron-cli music create --duration 30 "gentle piano, warm strings, cinematic"
418
418
  npx makaron-cli music create --vocals --style "lo-fi" "rainy day vibes"
419
419
  npx makaron-cli music status <taskId>
420
420
  ```
421
421
 
422
- Options: `--vocals` (include vocals), `--style "genre"`
422
+ Options: `--duration N` (seconds, up to 120), `--vocals` (include vocals), `--style "genre"`. Music is generated by Seed Audio.
423
423
 
424
424
  ## Response Schema
425
425