qwen-audio-agent 2.0.1 → 2.2.0

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 (208) hide show
  1. package/README.md +21 -10
  2. package/README_ZH.md +19 -10
  3. package/THIRD_PARTY_NOTICES.md +1 -1
  4. package/cli/package.json +1 -1
  5. package/cli/src/arguments.mjs +4 -1
  6. package/cli/src/config-command.mjs +36 -6
  7. package/cli/src/gateway-service.mjs +7 -1
  8. package/cli/src/launcher.mjs +13 -0
  9. package/config/frontend-agent/LIVE_PROMPT.md +64 -0
  10. package/config/frontend-agent/PROMPT.md +29 -26
  11. package/desktop/src/i18n.mjs +6 -1
  12. package/desktop/src/settings-config.mjs +32 -40
  13. package/desktop/src/settings-store.mjs +19 -28
  14. package/docs/architecture/deep-dive.md +103 -66
  15. package/docs/architecture/deep-dive.zh.md +73 -50
  16. package/docs/backends/configuration.md +4 -4
  17. package/docs/backends/configuration.zh.md +4 -4
  18. package/docs/backends/overview.md +3 -0
  19. package/docs/backends/overview.zh.md +3 -0
  20. package/docs/configuration/backend.md +15 -1
  21. package/docs/configuration/backend.zh.md +15 -1
  22. package/docs/configuration/frontend.md +78 -28
  23. package/docs/configuration/frontend.zh.md +76 -28
  24. package/docs/configuration.md +1 -1
  25. package/docs/configuration.zh.md +1 -1
  26. package/docs/contract.md +24 -2
  27. package/docs/contract.zh.md +20 -2
  28. package/docs/extensions.md +14 -0
  29. package/docs/extensions.zh.md +11 -0
  30. package/docs/gateway-protocol.md +26 -0
  31. package/docs/gateway-protocol.zh.md +22 -0
  32. package/docs/gateway-webrtc-client.md +3 -3
  33. package/docs/gateway-webrtc-client.zh.md +3 -3
  34. package/docs/getting-started/install.md +4 -1
  35. package/docs/getting-started/install.zh.md +4 -1
  36. package/docs/getting-started/mobile.md +8 -2
  37. package/docs/getting-started/mobile.zh.md +5 -0
  38. package/docs/getting-started/quickstart.md +2 -2
  39. package/docs/getting-started/quickstart.zh.md +2 -2
  40. package/docs/getting-started/webui.md +2 -0
  41. package/docs/getting-started/webui.zh.md +2 -0
  42. package/docs/guides/knowledge.md +8 -5
  43. package/docs/guides/knowledge.zh.md +4 -3
  44. package/docs/guides/tasks.md +63 -2
  45. package/docs/guides/tasks.zh.md +45 -1
  46. package/docs/guides/web-search.md +32 -1
  47. package/docs/guides/web-search.zh.md +28 -1
  48. package/docs/operations/troubleshooting.md +30 -0
  49. package/docs/operations/troubleshooting.zh.md +26 -0
  50. package/docs/reference/backend-adapter-sdk.md +33 -2
  51. package/docs/reference/backend-adapter-sdk.zh.md +29 -2
  52. package/docs/reference/cli.md +3 -3
  53. package/docs/reference/cli.zh.md +3 -3
  54. package/docs/scenarios/lightrag.md +2 -2
  55. package/docs/scenarios/lightrag.zh.md +2 -2
  56. package/docs/scenarios/x-omni.md +5 -2
  57. package/docs/scenarios/x-omni.zh.md +5 -2
  58. package/docs/voice-agent-architecture-presentation.zh.md +34 -37
  59. package/docs/voice-frontends/custom-provider.md +22 -4
  60. package/docs/voice-frontends/custom-provider.zh.md +22 -4
  61. package/docs/voice-frontends/google-live.md +14 -8
  62. package/docs/voice-frontends/google-live.zh.md +13 -8
  63. package/docs/voice-frontends/gpt-live-1.md +149 -0
  64. package/docs/voice-frontends/gpt-live-1.zh.md +114 -0
  65. package/docs/voice-frontends/minicpm-o.md +8 -4
  66. package/docs/voice-frontends/minicpm-o.zh.md +7 -4
  67. package/docs/voice-frontends/{gpt-live.md → openai-realtime.md} +19 -10
  68. package/docs/voice-frontends/{gpt-live.zh.md → openai-realtime.zh.md} +18 -10
  69. package/docs/voice-frontends/qwen-audio-live.md +164 -0
  70. package/docs/voice-frontends/qwen-audio-live.zh.md +122 -0
  71. package/docs/voice-frontends/qwen-audio-realtime.md +41 -15
  72. package/docs/voice-frontends/qwen-audio-realtime.zh.md +34 -12
  73. package/docs/voice-frontends/qwen-omni-realtime.md +12 -9
  74. package/docs/voice-frontends/qwen-omni-realtime.zh.md +12 -9
  75. package/docs/voice-frontends/speech-to-speech.md +8 -4
  76. package/docs/voice-frontends/speech-to-speech.zh.md +7 -3
  77. package/docs/voice-frontends/stepfun.md +7 -4
  78. package/docs/voice-frontends/stepfun.zh.md +7 -4
  79. package/examples/webrtc/start.mjs +2 -1
  80. package/package.json +34 -16
  81. package/scripts/audit-dependencies.mjs +3 -25
  82. package/scripts/electron-smoke.mjs +5 -5
  83. package/scripts/patch-build-node-gyp.mjs +63 -0
  84. package/scripts/prepare-build.mjs +2 -0
  85. package/scripts/release-check +2 -2
  86. package/scripts/runtime/claude-code-acp.mjs +5 -5
  87. package/scripts/verify-package.mjs +3 -0
  88. package/server/package.json +5 -5
  89. package/server/src/app/gateway-application.mjs +3 -0
  90. package/server/src/app/gateway-http-routes.mjs +3 -0
  91. package/server/src/app/session-conversation-history.mjs +9 -1
  92. package/server/src/backend/adapters/a2a/backend-adapter.mjs +32 -26
  93. package/server/src/backend/adapters/acp/backend-adapter.mjs +703 -251
  94. package/server/src/backend/adapters/acp/coordinator-contract.mjs +2 -13
  95. package/server/src/backend/adapters/acp/coordinator-instructions.mjs +29 -8
  96. package/server/src/backend/adapters/acp/coordinator-queue.mjs +58 -0
  97. package/server/src/backend/adapters/acp/drivers/codex.mjs +1 -1
  98. package/server/src/backend/adapters/acp/drivers/openclaw.mjs +1 -2
  99. package/server/src/backend/adapters/acp/input-broker.mjs +2 -0
  100. package/server/src/backend/adapters/acp/process-client.mjs +111 -16
  101. package/server/src/backend/adapters/acp/session-configuration.mjs +2 -19
  102. package/server/src/backend/adapters/acp/session-registry.mjs +9 -0
  103. package/server/src/backend/adapters/acp/session-tools.mjs +1 -1
  104. package/server/src/backend/adapters/acp/turn-updates.mjs +188 -0
  105. package/server/src/backend/adapters/acp/work-continuation.mjs +48 -0
  106. package/server/src/backend/adapters/agent-client.mjs +24 -1
  107. package/server/src/backend/adapters/llm/backend-adapter.mjs +393 -0
  108. package/server/src/backend/adapters/muse/backend-adapter.mjs +2 -0
  109. package/server/src/backend/availability.mjs +12 -3
  110. package/server/src/backend/backend-adapter-sdk.mjs +3 -0
  111. package/server/src/backend/backend-port.mjs +13 -0
  112. package/server/src/backend/backend-work-runtime.mjs +23 -0
  113. package/server/src/client/client-command-runtime.mjs +14 -0
  114. package/server/src/conversation/conversation-sync.mjs +26 -2
  115. package/server/src/conversation/frontend-agent-context.mjs +18 -5
  116. package/server/src/conversation/frontend-notes.mjs +7 -5
  117. package/server/src/conversation/task-result-projector.mjs +1 -1
  118. package/server/src/core/backend-events.mjs +4 -0
  119. package/server/src/core/citation.mjs +8 -2
  120. package/server/src/core/config.mjs +46 -54
  121. package/server/src/core/gateway-protocol.mjs +4 -1
  122. package/server/src/core/request-security.mjs +7 -1
  123. package/server/src/core/work-conversation-context.mjs +138 -0
  124. package/server/src/core/work-input-request.mjs +1 -0
  125. package/server/src/frontend/frontend-tools.mjs +20 -7
  126. package/server/src/frontend/retrieval/providers/bing.mjs +23 -12
  127. package/server/src/frontend/retrieval/providers/factory.mjs +18 -1
  128. package/server/src/frontend/retrieval/providers/mcp.mjs +30 -11
  129. package/server/src/frontend/retrieval/providers/so360.mjs +23 -12
  130. package/server/src/frontend/tools/agent-task-runtime.mjs +119 -99
  131. package/server/src/frontend/tools/features/agent-task-tools.mjs +23 -42
  132. package/server/src/frontend/tools/frontend-tool-context.mjs +2 -2
  133. package/server/src/frontend/tools/spawn-thinking-tool.mjs +2 -2
  134. package/server/src/frontend/tools/tool-call-handler.mjs +166 -86
  135. package/server/src/knowledge/providers/local/library.mjs +26 -6
  136. package/server/src/knowledge/providers/local/provider.mjs +25 -6
  137. package/server/src/memory/providers/markdown/context-store.mjs +24 -11
  138. package/server/src/orchestration/session-task-coordinator.mjs +13 -3
  139. package/server/src/orchestration/task-operations.mjs +54 -12
  140. package/server/src/orchestration/task-updates.mjs +82 -0
  141. package/server/src/task/reminder-scheduler.mjs +5 -1
  142. package/server/src/task/task-manager.mjs +72 -15
  143. package/server/src/task/task-recovery.mjs +12 -2
  144. package/server/src/task/task-scheduler.mjs +5 -5
  145. package/server/src/task/task-state.mjs +13 -0
  146. package/server/src/transport/gateway-client-transport.mjs +35 -0
  147. package/server/src/transport/webrtc/protocol.mjs +1 -1
  148. package/server/src/voice/announcement/announcement-manager.mjs +3 -0
  149. package/server/src/voice/audio-stream-diagnostics.mjs +139 -0
  150. package/server/src/voice/native-delegation-runtime.mjs +360 -0
  151. package/server/src/voice/providers/dashscope-live.mjs +93 -0
  152. package/server/src/voice/providers/dashscope.mjs +45 -33
  153. package/server/src/voice/providers/doubao-seeduplex-protocol.mjs +54 -0
  154. package/server/src/voice/providers/doubao-seeduplex.mjs +16 -11
  155. package/server/src/voice/providers/ga-protocol.mjs +7 -2
  156. package/server/src/voice/providers/google-live-protocol.mjs +124 -34
  157. package/server/src/voice/providers/google-live.mjs +20 -14
  158. package/server/src/voice/providers/gpt-live-1-protocol.mjs +597 -0
  159. package/server/src/voice/providers/gpt-live-1.mjs +3 -0
  160. package/server/src/voice/providers/gpt-live-client-context.mjs +182 -0
  161. package/server/src/voice/providers/minicpm-o.mjs +9 -7
  162. package/server/src/voice/providers/openai-live.mjs +150 -0
  163. package/server/src/voice/providers/{gpt-live.mjs → openai-realtime.mjs} +23 -19
  164. package/server/src/voice/providers/provider-registry.mjs +11 -1
  165. package/server/src/voice/providers/qwen-live-protocol.mjs +399 -0
  166. package/server/src/voice/providers/registry.mjs +47 -12
  167. package/server/src/voice/providers/runtime-configuration.mjs +34 -0
  168. package/server/src/voice/providers/s2s.mjs +9 -7
  169. package/server/src/voice/providers/stepfun.mjs +14 -11
  170. package/server/src/voice/realtime-input-runtime.mjs +58 -20
  171. package/server/src/voice/realtime-presentation-runtime.mjs +111 -27
  172. package/server/src/voice/realtime-provider-session.mjs +59 -14
  173. package/server/src/voice/realtime-provider.mjs +358 -45
  174. package/server/src/voice/realtime-session-runtime.mjs +282 -35
  175. package/server/src/voice/realtime-task-presentation.mjs +8 -2
  176. package/server/src/voice/realtime-turn-state.mjs +33 -2
  177. package/shared/backend/catalog.mjs +26 -2
  178. package/shared/backend/install.mjs +3 -1
  179. package/shared/backend/setup.mjs +43 -0
  180. package/shared/gateway/client-sdk.mjs +21 -6
  181. package/shared/gateway/setup.mjs +13 -1
  182. package/shared/gateway/websocket-auth.mjs +2 -1
  183. package/shared/protocol/gateway-client-protocol.mjs +14 -0
  184. package/shared/protocol/gateway-events.mjs +39 -1
  185. package/shared/realtime-legacy-environment.mjs +81 -0
  186. package/shared/realtime-model-catalog.mjs +68 -194
  187. package/shared/realtime-models/README.md +33 -0
  188. package/shared/realtime-models/dashscope.mjs +57 -0
  189. package/shared/realtime-models/google.mjs +10 -0
  190. package/shared/realtime-models/openai.mjs +24 -0
  191. package/shared/realtime-models/profile.mjs +38 -0
  192. package/shared/realtime-models/stepfun.mjs +10 -0
  193. package/shared/realtime-models/volcengine.mjs +12 -0
  194. package/shared/realtime-provider-catalog.mjs +23 -11
  195. package/shared/realtime-provider-definitions.mjs +168 -235
  196. package/shared/runtime-environment.mjs +23 -30
  197. package/shared/skill-library.mjs +49 -13
  198. package/shared/web-search-configuration.mjs +25 -2
  199. package/tui/package.json +2 -2
  200. package/tui/src/index.mjs +14 -9
  201. package/tui/src/runtime-configuration.mjs +2 -0
  202. package/tui/src/terminal-commands.mjs +40 -0
  203. package/tui/src/text-cli.mjs +10 -1
  204. package/web/dist/assets/index-Bc2Q04J9.css +1 -0
  205. package/web/dist/assets/index-bY4DFXKT.js +96 -0
  206. package/web/dist/index.html +2 -2
  207. package/web/dist/assets/index-BRaiI-dW.js +0 -91
  208. package/web/dist/assets/index-D9k8R2JY.css +0 -1
@@ -1,50 +1,72 @@
1
- # Qwen Audio 3.0 Realtime
1
+ # Qwen Audio Realtime
2
2
 
3
- The default voice frontend: DashScope's Qwen Audio 3.0 Realtime family,
4
- purpose-built for speech-to-speech conversation. This is what you get when
5
- you install qwen-audio-agent and only set an API key.
3
+ DashScope's Qwen Audio 3.0 and 3.1 Realtime models are purpose-built for
4
+ speech-to-speech conversation. The default is Qwen Audio 3.1 Realtime
5
+ Plus when you install qwen-audio-agent and only set an API key.
6
6
 
7
7
  ## Models
8
8
 
9
+ The built-in Audio models are:
10
+
9
11
  | Model | Notes |
10
12
  | --- | --- |
11
- | `qwen-audio-3.0-realtime-plus` | **Default.** Higher quality |
13
+ | `qwen-audio-3.1-realtime-plus` | **Default.** Uses `longanqian_v3.1` by default |
14
+ | `qwen-audio-3.1-realtime-flash` | Uses `longanqian_v3.1` by default |
15
+ | `qwen-audio-3.0-realtime-plus` | Previous-generation Plus model, still available |
12
16
  | `qwen-audio-3.0-realtime-flash` | Lower latency, lower cost |
13
17
 
14
- Both accept text and audio input, produce text and audio output, and
18
+ All accept text and audio input, produce text and audio output, and
15
19
  support Function Calling (which is how the Gateway's frontend tools —
16
20
  task delegation, memory, reminders — reach the model).
17
21
 
18
22
  ## Setup
19
23
 
20
24
  ```dotenv
21
- DASHSCOPE_API_KEY=your-key
22
- QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
25
+ QWEN_AUDIO_REALTIME_PROVIDER=dashscope
26
+ QWEN_AUDIO_REALTIME_API_KEY=your-key
27
+ QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.1-realtime-plus
28
+ QWEN_AUDIO_REALTIME_URL=
29
+ QWEN_AUDIO_REALTIME_VOICE=
23
30
  ```
24
31
 
25
- `DASHSCOPE_API_KEY` is used only by DashScope; other providers have their own credentials.
32
+ All frontends use the same [connection fields](../configuration/frontend.md#connection-fields); the selected provider determines how the credential is used.
26
33
 
27
34
  One Gateway owns one active model. Switch it from the Desktop settings
28
35
  page or from the CLI, then restart the Gateway:
29
36
 
30
37
  ```bash
31
- qwenaudio config set --realtime-model qwen-audio-3.0-realtime-flash
38
+ qwenaudio config set --realtime-model qwen-audio-3.1-realtime-flash
32
39
  # For an installed user background service only:
33
40
  qwenaudio gateway restart
34
41
  ```
35
42
 
43
+ 3.1 Plus / Flash reuse the `dashscope` provider and the existing WebSocket event
44
+ protocol. An explicitly configured 3.0 model remains selected until you change
45
+ or clear its model setting. If you have explicitly set a voice, choose one matching the model
46
+ or clear the override to use its default. See the [official migration guidance](https://help.aliyun.com/zh/model-studio/qwen-audio-realtime-user-guides).
47
+
36
48
  WebUI and TUI only display the active model; they never override it.
37
49
 
50
+ The supported model list and each model's adaptation parameters are maintained
51
+ in framework code. Users select a model; they do not add model records or tune
52
+ API bindings, capabilities, or turn detection. The default remains 3.1 Plus.
53
+ Built-in support does not verify live account access; confirm availability for
54
+ your account and endpoint. See the
55
+ [configuration reference](../configuration/frontend.md#select-a-supported-model).
56
+
38
57
  ## Voice and turn detection
39
58
 
40
- - Default voice: `longanqian` — override with `QWEN_AUDIO_REALTIME_VOICE`.
59
+ - Default voice: `longanqian_v3.1` for 3.1 Plus / Flash;
60
+ `longanqian` for 3.0 Plus / Flash. Override with `QWEN_AUDIO_REALTIME_VOICE` using a voice supported
61
+ by the selected model.
41
62
  - A GCP client may provide a session-scoped voice in
42
63
  `connection.output_voice` on its initial `session.hello`. It takes precedence
43
64
  over the environment default. At runtime, call
44
65
  `GatewayClient.updateOutputVoice(voice)`; the Gateway rebuilds the upstream
45
66
  Realtime Session while preserving the Client connection and Gateway session.
46
- - Turn detection: `smart_turn` (semantic end-of-turn), configured by the
47
- runtime; no manual VAD tuning is exposed.
67
+ - Turn detection: `smart_turn_v2` for 3.1 Plus / Flash; `smart_turn` for 3.0 Plus / Flash.
68
+ The framework selects the fixed mode for the chosen model. Turn detection and
69
+ VAD parameters are not user-configurable.
48
70
 
49
71
  ## Endpoint overrides
50
72
 
@@ -52,9 +74,12 @@ For private deployments or proxies:
52
74
 
53
75
  | Setting | Effect |
54
76
  | --- | --- |
55
- | `QWEN_AUDIO_REALTIME_BASE_URL` / `QWEN_AUDIO_REALTIME_URL` | Replace the DashScope Realtime endpoint |
77
+ | `QWEN_AUDIO_REALTIME_URL` | Replace the DashScope Realtime endpoint |
56
78
  | `DASHSCOPE_WORKSPACE_ID` | Switch to a Bailian dedicated-workspace endpoint (`wss://<workspace-id>.cn-beijing.maas.aliyuncs.com/...`) |
57
79
 
80
+ For workspace-specific access, use the existing workspace setting or base URL
81
+ override with the endpoint supplied for your region and workspace.
82
+
58
83
  The transport runs 16 kHz PCM input and 24 kHz PCM output over a single
59
84
  WebSocket.
60
85
 
@@ -71,7 +96,8 @@ the model level, see [Qwen Omni Realtime](qwen-omni-realtime.md).
71
96
 
72
97
  ## Read next
73
98
 
74
- - [GPT-Live / OpenAI Realtime](gpt-live.md) — OpenAI cloud realtime frontend
99
+ - [Qwen Audio Live](qwen-audio-live.md) — native Client delegation under the same DashScope provider
100
+ - [OpenAI Realtime](openai-realtime.md) — OpenAI cloud realtime frontend
75
101
  - [Google Gemini Live](google-live.md) — Google cloud realtime frontend
76
102
  - [Speech-to-Speech](speech-to-speech.md) — fully local frontend, no cloud key
77
103
  - [MiniCPM-o 4.5](minicpm-o.md) — local end-to-end realtime voice
@@ -1,44 +1,63 @@
1
- # Qwen Audio 3.0 Realtime
1
+ # Qwen Audio Realtime
2
2
 
3
- 默认语音前台:DashScope 的 Qwen Audio 3.0 Realtime 系列,专为语音直通语音的
4
- 对话而生。装好 qwen-audio-agent、只填一个 API Key 时,用的就是它。
3
+ DashScope 的 Qwen Audio 3.0 和 3.1 Realtime 模型,专为语音直通语音的对话而生。
4
+ 装好 qwen-audio-agent、只填一个 API Key 时,默认使用 Qwen Audio 3.1 Realtime Plus。
5
5
 
6
6
  ## 模型
7
7
 
8
+ 内置的 Audio 模型如下:
9
+
8
10
  | 模型 | 说明 |
9
11
  | --- | --- |
10
- | `qwen-audio-3.0-realtime-plus` | **默认。** 质量更高 |
12
+ | `qwen-audio-3.1-realtime-plus` | **默认。** 默认音色为 `longanqian_v3.1` |
13
+ | `qwen-audio-3.1-realtime-flash` | 默认音色为 `longanqian_v3.1` |
14
+ | `qwen-audio-3.0-realtime-plus` | 上一代 Plus 模型,仍可选择 |
11
15
  | `qwen-audio-3.0-realtime-flash` | 延迟更低、成本更低 |
12
16
 
13
- 两个模型都接受文本和音频输入、产出文本和音频,并支持 Function Calling
17
+ 这些模型都接受文本和音频输入、产出文本和音频,并支持 Function Calling
14
18
  (网关的前台工具——任务委派、记忆、提醒——正是通过它到达模型)。
15
19
 
16
20
  ## 配置
17
21
 
18
22
  ```dotenv
19
- DASHSCOPE_API_KEY=your-key
20
- QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
23
+ QWEN_AUDIO_REALTIME_PROVIDER=dashscope
24
+ QWEN_AUDIO_REALTIME_API_KEY=your-key
25
+ QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.1-realtime-plus
26
+ QWEN_AUDIO_REALTIME_URL=
27
+ QWEN_AUDIO_REALTIME_VOICE=
21
28
  ```
22
29
 
30
+ 所有前台共用同一套[连接字段](../configuration/frontend.zh.md#连接配置),凭据的具体用法由所选供应商决定。
23
31
 
24
32
  一个 Gateway 同一时刻只生效一个模型。在桌面版设置页或 CLI 切换后,
25
33
  重启 Gateway 生效:
26
34
 
27
35
  ```bash
28
- qwenaudio config set --realtime-model qwen-audio-3.0-realtime-flash
36
+ qwenaudio config set --realtime-model qwen-audio-3.1-realtime-flash
29
37
  # 以下仅用于已安装的用户后台服务:
30
38
  qwenaudio gateway restart
31
39
  ```
32
40
 
41
+ 3.1 Plus / Flash 复用 `dashscope` Provider 和现有 WebSocket 事件协议。已显式配置的 3.0 模型
42
+ 不会自动切换,需修改或清除模型配置。如果已显式配置音色,
43
+ 请改用与模型匹配的音色,或清除覆盖值以使用模型默认音色。详见[官方迁移说明](https://help.aliyun.com/zh/model-studio/qwen-audio-realtime-user-guides)。
44
+
33
45
  WebUI 和 TUI 只展示当前生效模型,不单独覆盖。
34
46
 
47
+ 受支持模型列表及各模型的适配参数由框架代码维护。用户只选择模型,不新增模型记录,
48
+ 也不修改 API 绑定、能力或话轮检测。默认模型仍为 3.1 Plus。内置支持不代表已验证
49
+ 实时账号权限,请确认账号和服务地址对应的可用性。详见
50
+ [配置参考](../configuration/frontend.zh.md#选择受支持模型)。
51
+
35
52
  ## 音色与话轮检测
36
53
 
37
- - 默认音色 `longanqian`,可用 `QWEN_AUDIO_REALTIME_VOICE` 覆盖。
54
+ - 3.1 Plus / Flash 默认使用 `longanqian_v3.1`;3.0 Plus / Flash 默认音色仍为 `longanqian`。
55
+ 可用 `QWEN_AUDIO_REALTIME_VOICE` 覆盖,但须选择当前模型支持的音色。
38
56
  - GCP 客户端可在首次 `session.hello` 的 `connection.output_voice` 中提供会话级音色;
39
57
  它优先于环境变量。运行时调用 `GatewayClient.updateOutputVoice(voice)`,Gateway 会
40
58
  重建上游 Realtime Session,客户端连接和 Gateway 会话保持不变。
41
- - 话轮检测为 `smart_turn`(语义判停),由运行时配置,不暴露手动 VAD 调参。
59
+ - 3.1 Plus / Flash 使用 `smart_turn_v2`,3.0 Plus / Flash 使用 `smart_turn`。
60
+ 框架按所选模型使用固定模式,不开放用户配置话轮检测或 VAD 参数。
42
61
 
43
62
  ## 端点覆盖
44
63
 
@@ -46,9 +65,11 @@ WebUI 和 TUI 只展示当前生效模型,不单独覆盖。
46
65
 
47
66
  | 配置项 | 作用 |
48
67
  | --- | --- |
49
- | `QWEN_AUDIO_REALTIME_BASE_URL` / `QWEN_AUDIO_REALTIME_URL` | 替换 DashScope Realtime 端点 |
68
+ | `QWEN_AUDIO_REALTIME_URL` | 替换 DashScope Realtime 端点 |
50
69
  | `DASHSCOPE_WORKSPACE_ID` | 切换到百炼专属工作区端点(`wss://<workspace-id>.cn-beijing.maas.aliyuncs.com/...`) |
51
70
 
71
+ 如通过专属工作区接入,继续使用现有工作区配置或基础地址覆盖,填写对应地域、工作区提供的端点。
72
+
52
73
  传输层在单条 WebSocket 上跑 16 kHz PCM 输入、24 kHz PCM 输出。
53
74
 
54
75
  ## 能力边界
@@ -63,7 +84,8 @@ WebUI 和 TUI 只展示当前生效模型,不单独覆盖。
63
84
 
64
85
  ## 继续阅读
65
86
 
66
- - [GPT-Live / OpenAI Realtime](gpt-live.zh.md)——OpenAI 云端实时语音前台
87
+ - [Qwen Audio Live](qwen-audio-live.zh.md)——同一 DashScope 供应商下的原生 Client 委派
88
+ - [OpenAI Realtime](openai-realtime.zh.md)——OpenAI 云端实时语音前台
67
89
  - [Google Gemini Live](google-live.zh.md)——Google 云端实时语音前台
68
90
  - [Speech-to-Speech](speech-to-speech.zh.md)——全本地前台,无需云端 Key
69
91
  - [MiniCPM-o 4.5](minicpm-o.zh.md)——本地端到端实时语音前台
@@ -26,31 +26,34 @@ Both generations use the `dashscope` provider; select the model with
26
26
 
27
27
  ```dotenv
28
28
  QWEN_AUDIO_REALTIME_PROVIDER=dashscope
29
- DASHSCOPE_API_KEY=your-key
29
+ QWEN_AUDIO_REALTIME_API_KEY=your-key
30
30
  QWEN_AUDIO_REALTIME_MODEL=qwen3.8-omni-flash-realtime
31
- QWEN_AUDIO_REALTIME_BASE_URL=wss://<WorkspaceId>.cn-beijing.maas.aliyuncs.com/api-ws/v1/realtime
31
+ QWEN_AUDIO_REALTIME_URL=wss://<WorkspaceId>.cn-beijing.maas.aliyuncs.com/api-ws/v1/realtime
32
+ QWEN_AUDIO_REALTIME_VOICE=
32
33
  ```
33
34
 
34
35
  Replace `<WorkspaceId>` with your workspace ID. For Singapore, use
35
36
  `<WorkspaceId>.ap-southeast-1.maas.aliyuncs.com`. See the [official connection guide](https://help.aliyun.com/zh/model-studio/realtime).
36
37
  In Desktop, keep DashScope selected and use the existing endpoint, API key, and model fields; no new provider is needed.
37
38
  The default public DashScope endpoint cannot be used for this model.
38
- A Gateway uses one active model at a time. Apply settings or restart the Gateway after changing configuration. The default model is unchanged.
39
+ A Gateway uses one active model at a time. Apply settings or restart the Gateway after changing configuration. Omni is opt-in; the default frontend model is `qwen-audio-3.1-realtime-plus`.
39
40
 
40
41
  ### Qwen3.5 Omni
41
42
 
42
43
  The 3.5 family uses the same credential and endpoint settings as
43
- [Qwen Audio 3.0 Realtime](qwen-audio-realtime.md).
44
+ [Qwen Audio Realtime](qwen-audio-realtime.md).
44
45
 
45
46
  ```dotenv
46
47
  QWEN_AUDIO_REALTIME_PROVIDER=dashscope
47
- DASHSCOPE_API_KEY=your-key
48
+ QWEN_AUDIO_REALTIME_API_KEY=your-key
48
49
  QWEN_AUDIO_REALTIME_MODEL=qwen3.5-omni-flash-realtime
50
+ QWEN_AUDIO_REALTIME_URL=
51
+ QWEN_AUDIO_REALTIME_VOICE=
49
52
  ```
50
53
 
51
54
  ## Voice and turn detection
52
55
 
53
- - Project voice defaults: `Tina` for 3.8, `Ethan` for 3.5 — override with `QWEN_OMNI_REALTIME_VOICE`.
56
+ - Project voice defaults: `Tina` for 3.8, `Ethan` for 3.5 — override with `QWEN_AUDIO_REALTIME_VOICE`.
54
57
  - On 3.5, the known-incompatible `Cherry` selection is rejected before connecting, with a
55
58
  suggestion to use this project's model default. Unknown and cloned voice IDs
56
59
  are passed to the provider; no allowlist, ID-prefix inference, or automatic
@@ -76,14 +79,14 @@ visual frames in this release.
76
79
 
77
80
  ## Which family should I pick?
78
81
 
79
- - **Audio** (`qwen-audio-3.0-realtime-*`) — the default; voice-first
82
+ - **Audio** (default: `qwen-audio-3.1-realtime-plus`) — voice-first
80
83
  conversation, nothing else needed.
81
84
  - **Omni** — pick when you want the frontend to combine live visual frames with voice;
82
85
  3.8 additionally requires a workspace-specific endpoint.
83
86
 
84
87
  ## Read next
85
88
 
86
- - [Qwen Audio 3.0 Realtime](qwen-audio-realtime.md) — the default family
87
- - [GPT-Live / OpenAI Realtime](gpt-live.md) — OpenAI cloud realtime frontend
89
+ - [Qwen Audio Realtime](qwen-audio-realtime.md) — the default family
90
+ - [OpenAI Realtime](openai-realtime.md) — OpenAI cloud realtime frontend
88
91
  - [Google Gemini Live](google-live.md) — Google cloud realtime frontend
89
92
  - [Frontend configuration reference](../configuration/frontend.md)
@@ -25,30 +25,33 @@
25
25
 
26
26
  ```dotenv
27
27
  QWEN_AUDIO_REALTIME_PROVIDER=dashscope
28
- DASHSCOPE_API_KEY=your-key
28
+ QWEN_AUDIO_REALTIME_API_KEY=your-key
29
29
  QWEN_AUDIO_REALTIME_MODEL=qwen3.8-omni-flash-realtime
30
- QWEN_AUDIO_REALTIME_BASE_URL=wss://<WorkspaceId>.cn-beijing.maas.aliyuncs.com/api-ws/v1/realtime
30
+ QWEN_AUDIO_REALTIME_URL=wss://<WorkspaceId>.cn-beijing.maas.aliyuncs.com/api-ws/v1/realtime
31
+ QWEN_AUDIO_REALTIME_VOICE=
31
32
  ```
32
33
 
33
34
  将 `<WorkspaceId>` 替换为真实业务空间 ID;新加坡地址使用
34
35
  `<WorkspaceId>.ap-southeast-1.maas.aliyuncs.com`。参见[官方连接说明](https://help.aliyun.com/zh/model-studio/realtime)。
35
36
  桌面版仍选择 DashScope,在现有“服务地址”“API Key”“模型”中填写即可,无需新增 Provider。
36
37
  该模型不能使用默认的 DashScope 公共服务地址。
37
- 一个 Gateway 同一时刻只生效一个模型;修改配置后应用设置或重启 Gateway。默认模型不变。
38
+ 一个 Gateway 同一时刻只生效一个模型;修改配置后应用设置或重启 Gateway。Omni 需显式选择;默认前台模型为 `qwen-audio-3.1-realtime-plus`。
38
39
 
39
40
  ### Qwen3.5 Omni
40
41
 
41
- 3.5 系列沿用 [Qwen Audio 3.0 Realtime](qwen-audio-realtime.zh.md) 的凭据与服务地址配置。
42
+ 3.5 系列沿用 [Qwen Audio Realtime](qwen-audio-realtime.zh.md) 的凭据与服务地址配置。
42
43
 
43
44
  ```dotenv
44
45
  QWEN_AUDIO_REALTIME_PROVIDER=dashscope
45
- DASHSCOPE_API_KEY=your-key
46
+ QWEN_AUDIO_REALTIME_API_KEY=your-key
46
47
  QWEN_AUDIO_REALTIME_MODEL=qwen3.5-omni-flash-realtime
48
+ QWEN_AUDIO_REALTIME_URL=
49
+ QWEN_AUDIO_REALTIME_VOICE=
47
50
  ```
48
51
 
49
52
  ## 音色与话轮检测
50
53
 
51
- - 项目默认音色:3.8 为 `Tina`,3.5 为 `Ethan`;可用 `QWEN_OMNI_REALTIME_VOICE` 覆盖。
54
+ - 项目默认音色:3.8 为 `Tina`,3.5 为 `Ethan`;可用 `QWEN_AUDIO_REALTIME_VOICE` 覆盖。
52
55
  - 3.5 已确认不兼容的 `Cherry` 会在连接前被拒绝,并提示改用项目为该模型配置的默认音色。
53
56
  未知和复刻音色仍交给供应商验证,不使用完整白名单或 ID 前缀推断,不自动替换配置。
54
57
  参见[官方音色列表](https://help.aliyun.com/zh/model-studio/omni-voice-list)。
@@ -69,13 +72,13 @@ WebUI 可以把摄像头画面采样为有界 JPEG 帧,并通过协商后的 G
69
72
 
70
73
  ## 两个系列怎么选?
71
74
 
72
- - **Audio**(`qwen-audio-3.0-realtime-*`)——默认选择;语音优先的对话,
75
+ - **Audio**(默认 `qwen-audio-3.1-realtime-plus`)——语音优先的对话,
73
76
  无其他依赖。
74
77
  - **Omni**——需要前台结合实时画面与语音时选择;3.8 需额外配置业务空间服务地址。
75
78
 
76
79
  ## 继续阅读
77
80
 
78
- - [Qwen Audio 3.0 Realtime](qwen-audio-realtime.zh.md)——默认系列
79
- - [GPT-Live / OpenAI Realtime](gpt-live.zh.md)——OpenAI 云端实时语音前台
81
+ - [Qwen Audio Realtime](qwen-audio-realtime.zh.md)——默认系列
82
+ - [OpenAI Realtime](openai-realtime.zh.md)——OpenAI 云端实时语音前台
80
83
  - [Google Gemini Live](google-live.zh.md)——Google 云端实时语音前台
81
84
  - [前台配置参考](../configuration/frontend.zh.md)
@@ -73,15 +73,19 @@ Set the following in `config.env`:
73
73
 
74
74
  ```dotenv
75
75
  QWEN_AUDIO_REALTIME_PROVIDER=speech-to-speech
76
- SPEECH_TO_SPEECH_REALTIME_URL=ws://127.0.0.1:8765/v1/realtime
76
+ QWEN_AUDIO_REALTIME_URL=ws://127.0.0.1:8765/v1/realtime
77
+ QWEN_AUDIO_REALTIME_API_KEY=
78
+ QWEN_AUDIO_REALTIME_MODEL=
79
+ QWEN_AUDIO_REALTIME_VOICE=
77
80
  ```
78
81
 
79
82
  In full-local mode, no cloud API Key is required. If the Realtime interface sits behind a
80
83
  proxy that requires Bearer authentication, you can set:
81
84
 
82
85
  ```dotenv
83
- SPEECH_TO_SPEECH_AUTH_TOKEN=your-token
86
+ QWEN_AUDIO_REALTIME_API_KEY=your-token
84
87
  ```
85
88
 
86
- `SPEECH_TO_SPEECH_AUTH_TOKEN` is only used for proxy authentication and is not an access
87
- password for the local service.
89
+ The model and voice are configured in speech-to-speech, not the Gateway. The optional
90
+ `QWEN_AUDIO_REALTIME_API_KEY` is sent as a Bearer token; setting it does not enable
91
+ authentication on an otherwise unprotected local service.
@@ -69,14 +69,18 @@ OpenAI 兼容端点指向百炼等云端模型。具体参数见 speech-to-speec
69
69
 
70
70
  ```dotenv
71
71
  QWEN_AUDIO_REALTIME_PROVIDER=speech-to-speech
72
- SPEECH_TO_SPEECH_REALTIME_URL=ws://127.0.0.1:8765/v1/realtime
72
+ QWEN_AUDIO_REALTIME_URL=ws://127.0.0.1:8765/v1/realtime
73
+ QWEN_AUDIO_REALTIME_API_KEY=
74
+ QWEN_AUDIO_REALTIME_MODEL=
75
+ QWEN_AUDIO_REALTIME_VOICE=
73
76
  ```
74
77
 
75
78
  在全本地模式下无需云端 API Key。如果 Realtime 接口位于需要 Bearer 认证的代理
76
79
  后方,可设置:
77
80
 
78
81
  ```dotenv
79
- SPEECH_TO_SPEECH_AUTH_TOKEN=your-token
82
+ QWEN_AUDIO_REALTIME_API_KEY=your-token
80
83
  ```
81
84
 
82
- `SPEECH_TO_SPEECH_AUTH_TOKEN` 仅用于代理认证,不是本地服务的访问密码。
85
+ 模型和音色在 speech-to-speech 配置,不由 Gateway 选择。可选的
86
+ `QWEN_AUDIO_REALTIME_API_KEY` 作为 Bearer token 发送;填写它不会自动为未设防的本地服务开启认证。
@@ -9,14 +9,17 @@ Edit the user configuration file shown by `qwenaudio config`:
9
9
 
10
10
  ```dotenv
11
11
  QWEN_AUDIO_REALTIME_PROVIDER=stepfun
12
- STEPFUN_API_KEY=your-stepfun-key
12
+ QWEN_AUDIO_REALTIME_API_KEY=your-stepfun-key
13
+ QWEN_AUDIO_REALTIME_MODEL=stepaudio-3-realtime-preview
14
+ QWEN_AUDIO_REALTIME_URL=
15
+ QWEN_AUDIO_REALTIME_VOICE=
13
16
  ```
14
17
 
15
18
  | Optional setting | Default | Description |
16
19
  | --- | --- | --- |
17
- | `STEPFUN_REALTIME_URL` | `wss://api.stepfun.com/v1/realtime` | WebSocket endpoint |
18
- | `STEPFUN_REALTIME_MODEL` | `stepaudio-3-realtime-preview` | Currently supported model profile |
19
- | `STEPFUN_REALTIME_VOICE` | Empty | Service default, or a voice ID supported by the model |
20
+ | `QWEN_AUDIO_REALTIME_URL` | `wss://api.stepfun.com/v1/realtime` | WebSocket endpoint |
21
+ | `QWEN_AUDIO_REALTIME_MODEL` | `stepaudio-3-realtime-preview` | Currently supported model profile |
22
+ | `QWEN_AUDIO_REALTIME_VOICE` | Empty | Service default, or a voice ID supported by the model |
20
23
 
21
24
  Credentials and voices are independent of DashScope. Unknown model IDs fail
22
25
  before connecting; new models require a capability profile. Preview availability
@@ -9,14 +9,17 @@
9
9
 
10
10
  ```dotenv
11
11
  QWEN_AUDIO_REALTIME_PROVIDER=stepfun
12
- STEPFUN_API_KEY=your-stepfun-key
12
+ QWEN_AUDIO_REALTIME_API_KEY=your-stepfun-key
13
+ QWEN_AUDIO_REALTIME_MODEL=stepaudio-3-realtime-preview
14
+ QWEN_AUDIO_REALTIME_URL=
15
+ QWEN_AUDIO_REALTIME_VOICE=
13
16
  ```
14
17
 
15
18
  | 可选设置 | 默认值 | 说明 |
16
19
  | --- | --- | --- |
17
- | `STEPFUN_REALTIME_URL` | `wss://api.stepfun.com/v1/realtime` | WebSocket 地址 |
18
- | `STEPFUN_REALTIME_MODEL` | `stepaudio-3-realtime-preview` | 当前支持的模型档案 |
19
- | `STEPFUN_REALTIME_VOICE` | 空 | 服务默认音色,或该模型支持的音色 ID |
20
+ | `QWEN_AUDIO_REALTIME_URL` | `wss://api.stepfun.com/v1/realtime` | WebSocket 地址 |
21
+ | `QWEN_AUDIO_REALTIME_MODEL` | `stepaudio-3-realtime-preview` | 当前支持的模型档案 |
22
+ | `QWEN_AUDIO_REALTIME_VOICE` | 空 | 服务默认音色,或该模型支持的音色 ID |
20
23
 
21
24
  使用独立凭据和音色,不继承 DashScope 配置。未知模型 ID 在建连前报错;支持
22
25
  新模型需要添加能力档案。预览模型的可用性和后续替换以
@@ -1,5 +1,6 @@
1
1
  import { fileURLToPath, pathToFileURL } from 'node:url'
2
2
  import { requireWebRtcDependencies } from '../../shared/gateway/webrtc.mjs'
3
+ import { DEFAULT_DASHSCOPE_REALTIME_MODEL } from '../../shared/realtime-model-catalog.mjs'
3
4
 
4
5
  export function demoEnvironment(environment, args = []) {
5
6
  if (args.some(arg => arg !== '--omni')) throw new Error('Usage: node start.mjs [--omni]')
@@ -9,7 +10,7 @@ export function demoEnvironment(environment, args = []) {
9
10
  QWEN_AUDIO_REALTIME_PROVIDER: 'dashscope',
10
11
  QWEN_AUDIO_REALTIME_MODEL: args.includes('--omni')
11
12
  ? 'qwen3.5-omni-plus-realtime'
12
- : 'qwen-audio-3.0-realtime-plus',
13
+ : DEFAULT_DASHSCOPE_REALTIME_MODEL,
13
14
  }
14
15
  }
15
16
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qwen-audio-agent",
3
3
  "desktopName": "qwen-audio-agent.desktop",
4
- "version": "2.0.1",
4
+ "version": "2.2.0",
5
5
  "description": "A realtime voice runtime that keeps AI agents talking, working, and present.",
6
6
  "author": "qwen-audio-agent contributors",
7
7
  "license": "Apache-2.0",
@@ -57,6 +57,7 @@
57
57
  "./gateway-application": "./server/src/app/gateway-application.mjs",
58
58
  "./backend-adapter-sdk": "./server/src/backend/backend-adapter-sdk.mjs",
59
59
  "./a2a-backend-adapter": "./server/src/backend/adapters/a2a/backend-adapter.mjs",
60
+ "./llm-backend-adapter": "./server/src/backend/adapters/llm/backend-adapter.mjs",
60
61
  "./realtime-provider": "./server/src/voice/realtime-provider-extension.mjs",
61
62
  "./web-retrieval": "./server/src/frontend/retrieval/providers/web-retrieval.mjs",
62
63
  "./knowledge-provider": "./server/src/knowledge/provider.mjs",
@@ -179,8 +180,12 @@
179
180
  "docs/voice-frontends/qwen-audio-realtime.zh.md",
180
181
  "docs/voice-frontends/qwen-omni-realtime.md",
181
182
  "docs/voice-frontends/qwen-omni-realtime.zh.md",
182
- "docs/voice-frontends/gpt-live.md",
183
- "docs/voice-frontends/gpt-live.zh.md",
183
+ "docs/voice-frontends/openai-realtime.md",
184
+ "docs/voice-frontends/openai-realtime.zh.md",
185
+ "docs/voice-frontends/gpt-live-1.md",
186
+ "docs/voice-frontends/gpt-live-1.zh.md",
187
+ "docs/voice-frontends/qwen-audio-live.md",
188
+ "docs/voice-frontends/qwen-audio-live.zh.md",
184
189
  "docs/voice-frontends/google-live.md",
185
190
  "docs/voice-frontends/google-live.zh.md",
186
191
  "docs/scenarios/smart-cockpit.md",
@@ -279,6 +284,7 @@
279
284
  "test:desktop-smoke": "node scripts/electron-smoke.mjs",
280
285
  "test:desktop-package": "npm run build && node scripts/test/desktop-package-smoke.mjs",
281
286
  "test:web-browser": "node scripts/test/browser-webui-smoke.mjs",
287
+ "test:mobile-layout": "node scripts/test/mobile-layout-smoke.mjs",
282
288
  "desktop:build": "node scripts/check-desktop-release-env.mjs && npm run build && electron-builder --config desktop/electron-builder.yml --mac dmg zip",
283
289
  "desktop:build:local": "npm run build && electron-builder --config desktop/electron-builder.yml --config.mac.identity=- --config.mac.hardenedRuntime=false --config.mac.notarize=false --mac dmg",
284
290
  "desktop:build:linux": "npm run build && electron-builder --config desktop/electron-builder.yml --linux AppImage deb",
@@ -310,6 +316,8 @@
310
316
  "example:webrtc:install": "npm ci --prefix packages/webrtc --no-audit --no-fund",
311
317
  "example:webrtc": "node examples/webrtc/start.mjs",
312
318
  "example:webrtc:omni": "node examples/webrtc/start.mjs --omni",
319
+ "example:music-assistant": "node examples/music-assistant/start.mjs",
320
+ "example:music-assistant:verify": "node examples/music-assistant/verify.mjs",
313
321
  "lint": "eslint .",
314
322
  "docs:dev": "concurrently -n sync,site -c yellow,magenta \"node scripts/sync-docs-site.mjs --watch\" \"vitepress dev docs\"",
315
323
  "predocs:dev": "node scripts/sync-docs-site.mjs",
@@ -337,27 +345,30 @@
337
345
  "release:check": "./scripts/release-check"
338
346
  },
339
347
  "dependencies": {
340
- "@a2a-js/sdk": "1.1.0",
341
- "@agentclientprotocol/sdk": "1.4.0",
342
- "@modelcontextprotocol/sdk": "1.30.0",
348
+ "@a2a-js/sdk": "1.3.0",
349
+ "@agentclientprotocol/sdk": "1.8.0",
350
+ "@modelcontextprotocol/sdk": "1.32.1",
343
351
  "@qwen-code/open-computer-use": "^0.2.3",
344
352
  "electron-updater": "6.8.9",
345
353
  "express": "^4.22.2",
346
354
  "qrcode": "1.5.4",
347
- "sherpa-onnx": "1.13.7",
348
- "tar-stream": "3.2.1",
355
+ "sherpa-onnx": "1.13.8",
356
+ "tar-stream": "3.2.2",
349
357
  "unbzip2-stream": "1.4.3",
350
- "ws": "^8.21.3",
351
- "yaml": "2.9.0",
352
- "zod": "^4.5.4"
358
+ "ws": "^8.23.1",
359
+ "yaml": "2.9.1",
360
+ "zod": "^4.6.6"
353
361
  },
354
362
  "devDependencies": {
355
363
  "concurrently": "^9.2.0",
356
- "electron-builder": "26.16.0",
357
- "eslint": "10.9.1",
364
+ "electron": "43.8.1",
365
+ "electron-builder": "26.17.0",
366
+ "eslint": "10.12.0",
358
367
  "eslint-plugin-react-hooks": "7.1.1",
359
- "globals": "17.12.0",
368
+ "globals": "17.13.0",
360
369
  "playwright": "^1.63.0",
370
+ "react": "^19.3.0",
371
+ "react-dom": "^19.3.0",
361
372
  "vitepress": "^1.6.4"
362
373
  },
363
374
  "overrides": {
@@ -365,8 +376,15 @@
365
376
  "@hono/node-server": "2.0.12",
366
377
  "@electron/asar": "4.2.1",
367
378
  "@electron/universal": "3.0.6",
368
- "fast-uri": "3.1.6",
379
+ "fast-uri": "3.1.9",
369
380
  "qs": "6.16.0",
370
- "uuid": "11.1.1"
381
+ "uuid": "11.1.1",
382
+ "global-agent": "4.1.3",
383
+ "shell-quote": "1.12.0",
384
+ "tar": "8.0.5",
385
+ "node-gyp": "12.4.0",
386
+ "vitepress": {
387
+ "vite": "6.4.4"
388
+ }
371
389
  }
372
390
  }
@@ -5,31 +5,9 @@ import { spawnSync } from 'node:child_process'
5
5
  const AUDIT_ATTEMPTS = 3
6
6
  const AUDIT_RETRY_DELAY_MS = 1_000
7
7
 
8
- // 仅记录没有上游修复版本、且不进入生产依赖的构建链问题。npm 的审计
9
- // 快照偶尔会漏报已有 advisory,因此例外按明确到期日收敛,不以单次缺席
10
- // 判定已修复。
11
- const TEMPORARY_BUILD_ADVISORIES = new Map([
12
- [1102341, {
13
- id: 'GHSA-67mh-4wv8-2f99',
14
- expires: '2026-11-30',
15
- reason: 'VitePress 1.6.4 的开发服务器间接依赖;npm 当前无可用修复,且不进入生产依赖',
16
- }],
17
- [1116229, {
18
- id: 'GHSA-4w7w-66w2-5vf9',
19
- expires: '2026-11-30',
20
- reason: 'VitePress 1.6.4 的开发服务器间接依赖;npm 当前无可用修复,且不进入生产依赖',
21
- }],
22
- [1120784, {
23
- id: 'GHSA-v6wh-96g9-6wx3',
24
- expires: '2026-11-30',
25
- reason: 'VitePress 1.6.4 的开发服务器间接依赖;npm 当前无可用修复,且不进入生产依赖',
26
- }],
27
- [1123525, {
28
- id: 'GHSA-fx2h-pf6j-xcff',
29
- expires: '2026-11-30',
30
- reason: 'VitePress 1.6.4 的开发服务器间接依赖;npm 当前无可用修复,且不进入生产依赖',
31
- }],
32
- ])
8
+ // VitePress now uses a patched Vite through the scoped package override.
9
+ // No build-chain advisories are currently exempt from the release audit.
10
+ const TEMPORARY_BUILD_ADVISORIES = new Map()
33
11
 
34
12
  function runAuditOnce(args) {
35
13
  const npmExecutable = process.env.npm_execpath
@@ -1,13 +1,13 @@
1
1
  import { spawn } from 'node:child_process'
2
+ import { createRequire } from 'node:module'
2
3
  import { dirname, resolve } from 'node:path'
3
4
  import { fileURLToPath } from 'node:url'
4
5
 
5
6
  const root = resolve(dirname(fileURLToPath(import.meta.url)), '..')
6
- const executable = resolve(
7
- root,
8
- 'node_modules/.bin',
9
- process.platform === 'win32' ? 'electron.cmd' : 'electron',
10
- )
7
+ // Resolve (and, on a clean install, download) Electron before the test clock
8
+ // starts. Launch the binary directly so the watchdog terminates Electron,
9
+ // not its CLI wrapper while leaving the application running.
10
+ const executable = createRequire(import.meta.url)('electron')
11
11
  const fixture = resolve(root, 'desktop/smoke/electron-smoke.cjs')
12
12
 
13
13
  const child = spawn(executable, [fixture], {