mcp-ai-music 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -763,7 +763,11 @@ async function handleQueryProgress(input) {
763
763
  // 如果只有流式地址(streamAudioUrl)但 audioUrl 为空,则视为进行中
764
764
  const hasFinalAudio = typeof result.audioUrl === 'string' && result.audioUrl.trim() !== '';
765
765
  if (status === 'complete' && !hasFinalAudio) {
766
- status = 'processing';
766
+ status = 'pending';
767
+ }
768
+ // 进行中统一返回 pending
769
+ if (status === 'processing' || status === 'text' || status === 'first') {
770
+ status = 'pending';
767
771
  }
768
772
  let statusMessage = "";
769
773
  switch (status) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-ai-music",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "AI作曲MCP服务 - 基于Suno4.5 API的音乐生成、翻唱、扩展和进度查询工具",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {