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.
- package/dist/index.js +5 -1
- 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 = '
|
|
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) {
|