makaron-cli 0.17.26 → 0.17.28
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 +2 -2
- package/bin/makaron.mjs +5 -5
- package/package.json +1 -1
- package/skills/makaron/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -347,7 +347,7 @@ npx makaron-cli chat --project auto \
|
|
|
347
347
|
-b "use Seedance Mini at 480p to make a 15s beat-synced video"
|
|
348
348
|
```
|
|
349
349
|
|
|
350
|
-
|
|
350
|
+
`chat --audio` accepts repeatable local MP3/WAV files (at least 2s and up to 15MB) or public audio URLs. Use an attached track as the soundtrack for a beat-synced edit of supplied footage. Video generation models have their own reference-audio duration limits.
|
|
351
351
|
|
|
352
352
|
`chat` intentionally has no video model or resolution flags. State both in the chat message so the Agent selects a compatible provider and resolution together. Use `video create` only when you explicitly need direct provider controls.
|
|
353
353
|
|
|
@@ -511,7 +511,7 @@ npx makaron-cli music create --vocals --style "lo-fi" "rainy day vibes"
|
|
|
511
511
|
npx makaron-cli music status <taskId>
|
|
512
512
|
```
|
|
513
513
|
|
|
514
|
-
Options: `--duration N` (seconds
|
|
514
|
+
Options: `--duration N` (seconds; 10-360 for instrumental), `--vocals` (include vocals), `--style "genre"`. Instrumental music uses Suno V6 and returns 2 takes (the first is the default); `--vocals` uses Seed Audio (up to 120s).
|
|
515
515
|
|
|
516
516
|
## Response Schema
|
|
517
517
|
|
package/bin/makaron.mjs
CHANGED
|
@@ -1855,8 +1855,7 @@ function getAudioMimeFromExt(ext) {
|
|
|
1855
1855
|
return null;
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
|
-
function validateAudioReferenceFile(audioPath,
|
|
1859
|
-
const maxDuration = options.maxDuration ?? MAX_AUDIO_REFERENCE_DURATION;
|
|
1858
|
+
function validateAudioReferenceFile(audioPath, { maxDuration = MAX_AUDIO_REFERENCE_DURATION } = {}) {
|
|
1860
1859
|
if (!fs.existsSync(audioPath)) {
|
|
1861
1860
|
return { ok: false, error: `Audio file not found: ${audioPath}` };
|
|
1862
1861
|
}
|
|
@@ -1879,7 +1878,7 @@ function validateAudioReferenceFile(audioPath, options = {}) {
|
|
|
1879
1878
|
if (duration < MIN_AUDIO_REFERENCE_DURATION) {
|
|
1880
1879
|
return { ok: false, error: `Audio too short: ${formatSeconds(duration)}s (min ${MIN_AUDIO_REFERENCE_DURATION}s).` };
|
|
1881
1880
|
}
|
|
1882
|
-
if (duration > maxDuration + MAX_AUDIO_REFERENCE_DURATION_TOLERANCE) {
|
|
1881
|
+
if (maxDuration != null && duration > maxDuration + MAX_AUDIO_REFERENCE_DURATION_TOLERANCE) {
|
|
1883
1882
|
return { ok: false, error: `Audio too long: ${formatSeconds(duration)}s (max ${maxDuration}s, with ${MAX_AUDIO_REFERENCE_DURATION_TOLERANCE}s metadata tolerance).` };
|
|
1884
1883
|
}
|
|
1885
1884
|
return { ok: true, mime, meta: { duration, fileSizeBytes: stat.size } };
|
|
@@ -2515,7 +2514,7 @@ Not sure which built-in skill to use? Start with:
|
|
|
2515
2514
|
else if (subtopic === 'status') console.log('Usage: makaron video status <taskId> | --snapshot <snapshotId> [--wait]');
|
|
2516
2515
|
else printVideoHelp();
|
|
2517
2516
|
} else if (topic === 'music') {
|
|
2518
|
-
if (subtopic === 'create') console.log('Usage: makaron music create [--duration <
|
|
2517
|
+
if (subtopic === 'create') console.log('Usage: makaron music create [--duration <10-360>] [--vocals] [--style "genre"] "description"\n Instrumental music uses Suno V6 and returns 2 takes (the first is the default). --vocals uses Seed Audio (max 120s).');
|
|
2519
2518
|
else if (subtopic === 'status') console.log('Usage: makaron music status <taskId>');
|
|
2520
2519
|
else console.log(`Music commands:
|
|
2521
2520
|
music create [--duration N] [--vocals] [--style "genre"] "description" Generate music
|
|
@@ -2773,7 +2772,8 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
|
|
|
2773
2772
|
prevalidatedAudioMetas.set(audioUrl, { ...valid, ...probed });
|
|
2774
2773
|
}
|
|
2775
2774
|
for (const audioPath of prevalidatedAudioFileList) {
|
|
2776
|
-
|
|
2775
|
+
// Chat imports a project track. Provider reference limits apply at generation.
|
|
2776
|
+
const valid = validateAudioReferenceFile(audioPath, { maxDuration: null });
|
|
2777
2777
|
if (!valid.ok) {
|
|
2778
2778
|
process.stderr.write(`❌ ${valid.error}\n`);
|
|
2779
2779
|
process.exit(1);
|
package/package.json
CHANGED
package/skills/makaron/SKILL.md
CHANGED
|
@@ -275,7 +275,7 @@ npx makaron-cli chat --project auto \
|
|
|
275
275
|
-b "use Seedance Mini at 480p to make a 15s beat-synced video"
|
|
276
276
|
```
|
|
277
277
|
|
|
278
|
-
|
|
278
|
+
`chat --audio` accepts repeatable local MP3/WAV files (at least 2s and up to 15MB) or public audio URLs. Use an attached track as the soundtrack for a beat-synced edit of supplied footage. Video generation models have their own reference-audio duration limits.
|
|
279
279
|
|
|
280
280
|
`chat` intentionally has no video model or resolution flags. State both in the chat message so the Agent selects a compatible provider and resolution together. Use `video create` only when you explicitly need direct provider controls.
|
|
281
281
|
|
|
@@ -438,7 +438,7 @@ npx makaron-cli music create --vocals --style "lo-fi" "rainy day vibes"
|
|
|
438
438
|
npx makaron-cli music status <taskId>
|
|
439
439
|
```
|
|
440
440
|
|
|
441
|
-
Options: `--duration N` (seconds
|
|
441
|
+
Options: `--duration N` (seconds; 10-360 for instrumental), `--vocals` (include vocals), `--style "genre"`. Instrumental music uses Suno V6 and returns 2 takes (the first is the default); `--vocals` uses Seed Audio (up to 120s).
|
|
442
442
|
|
|
443
443
|
## Response Schema
|
|
444
444
|
|