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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.27",
3
+ "version": "0.17.28",
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.27",
3
+ "version": "0.17.28",
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
@@ -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
- `--audio` accepts repeatable local files or public URLs. Local MP3/WAV files must be 2-15s and <=15MB; reference audio currently works with Seedance video generation.
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, options = {}) {
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
- const valid = validateAudioReferenceFile(audioPath);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.27",
3
+ "version": "0.17.28",
4
4
  "description": "Talk to Makaron Agent from the terminal — create projects, edit images, generate videos",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -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
- `--audio` accepts repeatable local files or public URLs. Local MP3/WAV files must be 2-15s and <=15MB; reference audio currently works with Seedance video generation.
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