feat(music): add --model flag, --output-format url, apiDocs#73
feat(music): add --model flag, --output-format url, apiDocs#73tars90percent merged 3 commits intoMiniMax-AI:mainfrom
Conversation
|
Hey Raylan — I just pushed When you rebase PRs 73-76 on main, here's what to change:
This applies to all 4 PRs (#73–#76). Let me know if you have any questions! |
…--help - Add --model flag to music generate (override default model) - Add --output-format url (24h expiry) to music generate - Add --model flag to music cover - Add apiDocs field to Command interface (in command.ts) - Improve --help descriptions: list all 14 lyrics structure tags, note length limits, clarify instrumental model behavior - Add URL output and music-2.5+ instrumental examples
…dd trailing newline - Validate --output-format is 'hex' or 'url' before sending to API - Throw CLIError when URL output requested but API returns no audio_url (previously wrote 0-byte empty file silently) - Use console.log for URL output to include trailing newline (W2 fix) - Simplify: quiet mode already gets clean URL, non-quiet gets JSON/text via formatOutput — no need for separate branches
- Change apiDocs from full URL to path (fixes broken URL in --help) - Add client-side model validation for --model flag - Error when --stream and --output-format url are combined
|
Thanks for the PR! I pushed a fix commit (045c016) addressing a few issues before merging:
Apologies for pushing directly rather than requesting changes -- should have let you address these yourself. Will do that next time. |
Changes
--modelflag: Allow users to override the default model (music-2.6/music-2.6-free/music-2.5+/music-2.5)--output-format url: Return a 24h-expiry download URL instead of hex dataapiDocs: Add official API doc link to --help output--modelfor music cover: Override default (music-cover/music-cover-free)apiDocs?: stringto CommandSpec/Command (needed by PR feat: terminal UX improvements — Model hint, quota status & env detection #5 docs)Files
src/commands/music/generate.tssrc/commands/music/cover.tssrc/command.ts(apiDocs interface)