makaron-cli 0.17.27 → 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 +1 -1
- package/bin/makaron.mjs +4 -4
- package/package.json +1 -1
- package/skills/makaron/SKILL.md +1 -1
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
|
|
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 } };
|
|
@@ -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
|
|