qwen-audio-agent 1.6.0 → 1.6.1

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 (46) hide show
  1. package/README.md +121 -109
  2. package/README_ZH.md +218 -0
  3. package/cli/package.json +1 -1
  4. package/docs/architecture.md +0 -20
  5. package/docs/architecture.zh.md +305 -0
  6. package/docs/backends/overview.md +35 -49
  7. package/docs/backends/overview.zh.md +89 -0
  8. package/docs/configuration.md +356 -314
  9. package/docs/configuration.zh.md +640 -0
  10. package/docs/desktop/overview.md +22 -37
  11. package/docs/desktop/overview.zh.md +45 -0
  12. package/docs/getting-started/install.md +28 -28
  13. package/docs/getting-started/install.zh.md +77 -0
  14. package/docs/getting-started/quickstart.md +23 -23
  15. package/docs/getting-started/quickstart.zh.md +64 -0
  16. package/docs/getting-started/tui.md +19 -19
  17. package/docs/getting-started/tui.zh.md +41 -0
  18. package/docs/reference/memory.md +52 -41
  19. package/docs/reference/memory.zh.md +59 -0
  20. package/docs/voice-frontends/speech-to-speech.md +50 -18
  21. package/docs/voice-frontends/speech-to-speech.zh.md +87 -0
  22. package/package.json +12 -3
  23. package/scripts/release-check +1 -1
  24. package/scripts/set-version.mjs +1 -1
  25. package/server/package.json +2 -1
  26. package/server/src/agent/acp-backend-adapter.mjs +12 -18
  27. package/server/src/agent/acp-process-client.mjs +1 -29
  28. package/server/src/agent/acp-session-tools.mjs +0 -65
  29. package/server/src/agent/agent-client.mjs +0 -46
  30. package/server/src/agent/backend-availability.mjs +57 -0
  31. package/server/src/agent/backends/claude.mjs +0 -4
  32. package/server/src/agent/backends/qoder.mjs +1 -2
  33. package/server/src/agent/builtin-mcp.mjs +67 -0
  34. package/server/src/app/bootstrap.mjs +12 -4
  35. package/server/src/core/config.mjs +0 -23
  36. package/server/src/voice/realtime-gateway.mjs +23 -7
  37. package/server/src/voice/tools/tool-call-handler.mjs +127 -101
  38. package/shared/realtime-events.mjs +1 -0
  39. package/tui/package.json +1 -1
  40. package/web/dist/assets/index-CH9eBvfi.js +38 -0
  41. package/web/dist/index.html +1 -1
  42. package/README_EN.md +0 -468
  43. package/docs/vision.md +0 -108
  44. package/server/src/agent/screen-capture.mjs +0 -154
  45. package/server/src/agent/vision-describer.mjs +0 -89
  46. package/web/dist/assets/index-CAteXyT1.js +0 -38
package/README.md CHANGED
@@ -1,113 +1,121 @@
1
1
  # Qwen Audio Agent
2
2
 
3
- [中文](README.md) | [English](README_EN.md)
3
+ [中文](README_ZH.md) | [English](README.md)
4
4
 
5
5
  [![CI](https://github.com/QwenAudio/qwen-audio-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/QwenAudio/qwen-audio-agent/actions/workflows/ci.yml)
6
6
  [![npm](https://img.shields.io/npm/v/qwen-audio-agent)](https://www.npmjs.com/package/qwen-audio-agent)
7
7
  [![node](https://img.shields.io/badge/node-%E2%89%A522.22.2-brightgreen)](https://nodejs.org/)
8
8
  [![license](https://img.shields.io/github/license/QwenAudio/qwen-audio-agent)](LICENSE)
9
- [![WeChat](https://img.shields.io/badge/WeChat-%E5%8A%A0%E5%85%A5%E8%AE%A8%E8%AE%BA-07C160?logo=wechat&logoColor=white)](#交流与分享)
9
+ [![WeChat](https://img.shields.io/badge/WeChat-join_chat-07C160?logo=wechat&logoColor=white)](#community)
10
10
 
11
- ## Agent,始终在场
11
+ ## Agent Presence
12
12
 
13
- 真正的交流,不该在说完一句话后,就陷入漫长的等待。也不该因为 Agent 正在查资料、调用工具或处理任务,整场对话就此暂停。
13
+ Real conversation should not leave you waiting after a single sentence, nor
14
+ should it grind to a halt just because the Agent is looking something up,
15
+ calling a tool, or working on a task.
14
16
 
15
- 交流应该是连续的,Agent 也应该始终在场。
17
+ Conversation should keep flowing, and the Agent should always be present.
16
18
 
17
- 所以,我们做了 **qwen-audio-agent**——让 Agent 持续交流、持续工作、持续在场的实时语音运行时。无论是聊天、思考,还是处理任务,Agent 都始终在这场对话里。它会倾听,会回应,也会在任务完成时自然地告诉你:
19
+ That is why we built **qwen-audio-agent**—a realtime voice runtime that keeps
20
+ Agents talking, working, and present. Whether chatting with you, thinking
21
+ through a problem, or working on a task, your Agent remains in the
22
+ conversation. It listens, responds, and when the task is complete, naturally
23
+ tells you:
18
24
 
19
- “已经好了。”
25
+ "It's ready."
20
26
 
21
27
  ## News
22
28
 
29
+ - **2026-08-07 · [v1.6.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.1)**
30
+ ⚡ Task delegation and permission decisions confirm instantly; 🖥️ built-in computer-use lets backend Agents operate the computer out of the box; 🎙️ more reliable wake; 📚 fully bilingual docs.
23
31
  - **2026-08-06 · [v1.6.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.0)**
24
- 🪟 桌面版正式支持 Windows;👀 后台 Agent 支持看屏幕与看图片;🧠 新增无感记忆,会话结束后自动提取。
32
+ 🪟 Desktop app now officially supports Windows; 🧠 adds invisible memory with automatic extraction after each session.
25
33
  - **2026-08-05 · [v1.5.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.5.0)**
26
- ⏰ 新增定时提醒与进度查询;🗣️ 新增语音唤醒词“你好千问”;🐧 桌面版支持 Linux 打包;桌面版数据目录与 CLI 隔离。
34
+ ⏰ Adds scheduled reminders and progress reporting; 🗣️ adds the voice wake word ("你好千问"); 🐧 desktop build support for Linux; the desktop app now uses a data directory isolated from the CLI.
27
35
  - **2026-08-05 · [v1.4.2](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.2)**
28
- 🔧 优化桌面端后台 Agent 的安装、登录与状态检测,完善长期记忆行为。
36
+ 🔧 Improves desktop backend Agent installation, login, and status detection; refines long-term memory behavior.
29
37
  - **2026-08-04 · [v1.4.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.1)**
30
- 🧰 新增后台 Agent 一键安装;桌面悬浮球支持自动隐藏与快捷键唤回。
38
+ 🧰 Adds one-click backend Agent install; desktop floating orb supports auto-hide and shortcut recall.
31
39
  - **2026-08-04 · [v1.4.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.0)**
32
- 🧠 新增个性化规则与清单管理;桌面版支持自动休眠与快捷键唤醒。
40
+ 🧠 Adds personalized rules and checklist management; desktop app supports auto-sleep and shortcut wake.
33
41
  - **2026-08-03 · [v1.3.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.3.0)**
34
- 🎙️ 新增 [🤗 speech-to-speech](https://github.com/huggingface/speech-to-speech) 前台接入,支持本地部署 VAD、STT、LLM 与 TTS 全链路。
42
+ 🎙️ Adds [🤗 speech-to-speech](https://github.com/huggingface/speech-to-speech) frontend integration, supporting fully local VAD, STT, LLM, and TTS.
35
43
  - **2026-08-01 · [v1.2.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.2.0)**
36
- ⚡ 桌面版新增自动更新,优化启动速度与后台 Agent 检测。
44
+ ⚡ Desktop app adds auto-update, faster startup, and improved backend Agent detection.
37
45
  - **2026-07-31 · [v1.1.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.1.0)**
38
- 🤝 新增 Kimi Code CLI 后台,原生 ACP 接入。
46
+ 🤝 Adds Kimi Code CLI backend with native ACP integration.
39
47
  - **2026-07-30 · [v1.0.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.0.0)**
40
- 🚀 正式版发布,推出内置 Gateway 的 macOS 桌面版。
48
+ 🚀 First stable release, introducing a macOS desktop app with a built-in Gateway.
41
49
  - **2026-07-28 · [v0.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v0.9.0)**
42
- 🌍 项目正式开源,后台 Agent 统一接入 ACP 架构。
50
+ 🌍 Project officially open-sourced; backend Agents unified under the ACP architecture.
43
51
 
44
- ## 对话继续,任务也在继续
52
+ ## Conversation Continues, Tasks Too
45
53
 
46
- 对话不会因为后台任务而停下;任务完成后,结果会自然回到当前对话:
54
+ Conversation doesn't stop for background tasks; when a task completes, the
55
+ result naturally returns to the current conversation:
47
56
 
48
57
  https://github.com/user-attachments/assets/42022655-36d1-46b2-9c26-ff0765284000
49
58
 
50
- ### 核心特色
59
+ ### Core Features
51
60
 
52
- - 全双工实时语音交互、自然打断和持续多轮对话
53
- - 一键选择你喜欢的办事 Agent,复用已有的工具、MCP、Skill
54
- - 前台对话与后台任务并驾齐驱,可随时追问任务进度或取消任务
55
- - 支持创建多个独立任务,由后台 Agent 异步执行,并持续追踪任务状态
56
- - 任务结果自动回到当前对话,支持继续追问和修改
57
- - 支持 WebUI、终端 TUI 和桌面悬浮球(macOS / Windows / Linux)
58
- - 支持本地用户档案与跨会话个人记忆
61
+ - Full-duplex realtime voice interaction, natural interruption, and sustained multi-turn conversation
62
+ - One-click selection of your preferred coding Agent, reusing existing tools, MCP, and Skills
63
+ - Frontend conversation and background tasks run in parallel; ask about progress or cancel at any time
64
+ - Create multiple independent tasks executed asynchronously by the backend Agent, with continuous status tracking
65
+ - Task results automatically return to the current conversation, supporting follow-up questions and modifications
66
+ - WebUI, terminal TUI, and desktop floating orb (macOS / Windows / Linux)
67
+ - Local user profile and cross-session personal memory
59
68
 
60
- ## 参考架构
69
+ ## Architecture
61
70
 
62
- ![qwen-audio-agent 原理图](docs/architecture-overview.png)
71
+ ![qwen-audio-agent architecture](docs/architecture-overview-en.png)
63
72
 
64
- 能直接回答的问题会立即回答;需要工具或持续处理时,任务会交给后台 Agent。
65
- 整个过程中,用户面对的始终是同一个助理。
73
+ Questions that can be answered directly are answered immediately; when tools
74
+ or sustained processing are needed, the task is delegated to the backend Agent.
75
+ Throughout, the user always faces the same assistant.
66
76
 
67
77
  <details open>
68
- <summary>查看详细架构</summary>
78
+ <summary>View detailed architecture</summary>
69
79
 
70
- ![qwen-audio-agent 接入参考架构](docs/qwen-audio-agent-three-layer-architecture.png)
80
+ ![qwen-audio-agent reference architecture](docs/qwen-audio-agent-three-layer-architecture-en.png)
71
81
 
72
- 更完整的设计与模块说明见[架构文档](docs/architecture.md)。
82
+ For the full design and module breakdown, see the [architecture document](docs/architecture.md).
73
83
 
74
84
  </details>
75
85
 
76
- ## Agent 支持
86
+ ## Agent Support
77
87
 
78
- | 后台 Agent | 接入方式 | 接入准备 | 推荐指数 |
88
+ | Backend Agent | Integration | Setup | Rating |
79
89
  | --- | --- | --- | --- |
80
- | 无 | N/A | 仅前台模式,无需配置 | ★★★★★ |
81
- | OpenCode | 原生 ACP | 支持一键安装和百炼配置 | ★★★★★ |
82
- | OpenClaw | 内置 ACP 桥接 | 支持一键安装和百炼配置 | ★★★★★ |
83
- | Qoder | 原生 ACP | 支持一键安装,需用户配置 | ★★★★★ |
84
- | Kimi Code | 原生 ACP | 支持一键安装,需用户配置 | ★★★★★ |
85
- | Hermes | 原生 ACP | 支持一键安装,需用户配置 | ★★★★☆ |
86
- | CodeBuddy | 原生 ACP | 支持一键安装,需用户配置 | ★★★★☆ |
87
- | Codex | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
88
- | Claude Code | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
90
+ | None | N/A | Frontend-only mode, no config needed | ★★★★★ |
91
+ | OpenCode | Native ACP | One-click install + Bailian config | ★★★★★ |
92
+ | OpenClaw | Built-in ACP bridge | One-click install + Bailian config | ★★★★★ |
93
+ | Qoder | Native ACP | One-click install, user config required | ★★★★★ |
94
+ | Kimi Code | Native ACP | One-click install, user config required | ★★★★★ |
95
+ | Hermes | Native ACP | One-click install, user config required | ★★★★☆ |
96
+ | CodeBuddy | Native ACP | One-click install, user config required | ★★★★☆ |
97
+ | Codex | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
98
+ | Claude Code | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
89
99
 
90
- 推荐指数综合反映当前集成完整度、兼容性和实际验证程度:五星表示已经过充分测试的
91
- 推荐集成,四星表示正在开发或尚未完成同等范围验证。
92
- 详细配置和能力边界见[配置说明](docs/configuration.md)。
100
+ Ratings reflect current integration completeness, compatibility, and
101
+ verification level: five stars indicate a thoroughly tested recommended
102
+ integration; four stars indicate active development or not yet fully verified.
103
+ For detailed configuration and capability boundaries, see the [configuration guide](docs/configuration.md).
93
104
 
94
- 开启后,后台 Agent 还可以看用户的屏幕或一张已有的图片,用于回答「屏幕上这个报错
95
- 是什么意思」这类问题,见[看屏幕与看图片](docs/vision.md)。
105
+ ## Installation
96
106
 
97
- ## 安装
98
-
99
- 需要 Node.js 22.22.2+ 或 24.15.0+、npm 10+。一键安装(推荐):
107
+ Requires Node.js 22.22.2+ or 24.15.0+, npm 10+. One-click install (recommended):
100
108
 
101
109
  ```bash
102
110
  npm install -g qwen-audio-agent
103
111
  ```
104
112
 
105
- 从源码安装、从 GitHub 安装最新代码以及获取 DashScope API Key 的详细步骤见
106
- [安装指南](docs/getting-started/install.md)。
113
+ For building from source, installing from GitHub, and obtaining a DashScope
114
+ API Key, see the [installation guide](docs/getting-started/install.md).
107
115
 
108
- ## 快速开始
116
+ ## Quick Start
109
117
 
110
- 1. 创建配置并填入 API Key:
118
+ 1. Create your config and fill in the API Key:
111
119
 
112
120
  ```bash
113
121
  qwenaudio config
@@ -115,73 +123,76 @@ qwenaudio config
115
123
 
116
124
  ```dotenv
117
125
  DASHSCOPE_API_KEY=your-key
118
- # 语音前台模型:qwen-audio-3.0-realtime-flash 或 qwen-audio-3.0-realtime-plus(默认)
126
+ # Voice frontend model: qwen-audio-3.0-realtime-flash or qwen-audio-3.0-realtime-plus (default)
119
127
  QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
120
- # 后台Agent:可选,不设置或设置为 none 时,启动仅前台模式
128
+ # Backend Agent: optional, leave empty or set to none for frontend-only mode
121
129
  AGENT_PROTOCOL=openclaw
122
- # 后台模型:可为空,留空则沿用 Agent 自身的用户配置
130
+ # Backend model: can be empty; if empty, uses the Agent's own user config
123
131
  QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-max
124
132
  ```
125
133
 
126
- > 默认使用 DashScope 实时语音前台;也可切换为本地 [speech-to-speech 前台](docs/voice-frontends/speech-to-speech.md),无需云端 API Key。
134
+ > Uses DashScope realtime voice frontend by default; alternatively, switch to a local [speech-to-speech frontend](docs/voice-frontends/speech-to-speech.md), no cloud API Key needed.
127
135
 
128
- 2. 启动 Gateway,另开终端启动 TUI(也可用 `qwenaudio webui` 启动浏览器界面):
136
+ 2. Start the Gateway, then open another terminal to start the TUI (or use `qwenaudio webui` for the browser UI):
129
137
 
130
138
  ```bash
131
- qwenaudio # 终端 1:Gateway
132
- qwenaudio tui # 终端 2:TUI
139
+ qwenaudio # Terminal 1: Gateway
140
+ qwenaudio tui # Terminal 2: TUI
133
141
  ```
134
142
 
135
- 完整配置项、speech-to-speech 前台接入和 TUI 平台注意事项见
136
- [快速开始](docs/getting-started/quickstart.md)、
137
- [语音前台](docs/voice-frontends/speech-to-speech.md)与
138
- [TUI 注意](docs/getting-started/tui.md)。
143
+ For full configuration options, speech-to-speech frontend setup, and TUI
144
+ platform notes, see [quick start](docs/getting-started/quickstart.md),
145
+ [voice frontends](docs/voice-frontends/speech-to-speech.md), and
146
+ [TUI notes](docs/getting-started/tui.md).
139
147
 
140
- ## 桌面版
148
+ ## Desktop App
141
149
 
142
- 桌面版提供常驻桌面的语音悬浮球,内置 Gateway,支持自动隐藏、快捷键唤回和语音
143
- 唤醒。从发布页下载对应平台安装包,或从源码构建:
150
+ The desktop app provides a floating voice orb that stays on your desktop,
151
+ with a built-in Gateway, auto-hide, shortcut recall, and voice wake word.
152
+ Download the installer for your platform from the releases page, or build
153
+ from source:
144
154
 
145
155
  ```bash
146
156
  npm run desktop:build:local # macOS
147
157
  npm run desktop:build:win # Windows
148
- npm run desktop:build:linux # Linux(AppImage + deb,无需签名)
158
+ npm run desktop:build:linux # Linux (AppImage + deb, no signing)
149
159
  ```
150
160
 
151
- 外观效果、悬浮球行为和构建说明见[桌面版文档](docs/desktop/overview.md)。
161
+ For visuals, orb behavior, and build instructions, see the [desktop documentation](docs/desktop/overview.md).
152
162
 
153
- ## 后台 Agent
163
+ ## Backend Agent
154
164
 
155
- `AGENT_PROTOCOL` 可选。留空即仅前台模式;选择后可复用已安装 Agent 的用户级
156
- 模型、工具、MCP、Skill 和认证。OpenCode 和 OpenClaw 支持一键安装与百炼配置。
165
+ `AGENT_PROTOCOL` is optional. Leave empty for frontend-only mode; when set,
166
+ it reuses the installed Agent's user-level models, tools, MCP, Skills, and
167
+ authentication. OpenCode and OpenClaw support one-click install with Bailian
168
+ configuration.
157
169
 
158
170
  ```bash
159
- qwenaudio setup # 查看当前可用的后台 Agent
171
+ qwenaudio setup # View available backend Agents
160
172
  ```
161
173
 
162
- Agent 选择、后台常驻服务、通用 ACP 入口和权限模式见
163
- [后台 Agent 文档](docs/backends/overview.md)。
174
+ For Agent selection, persistent background service, generic ACP entry, and
175
+ permission modes, see the [backend Agent documentation](docs/backends/overview.md).
164
176
 
165
- ## 用户档案与记忆
177
+ ## User Profile and Memory
166
178
 
167
- 用户数据保存在 `~/.config/qwaudio/`(`USER.md`、`frontend-memory.json`、
168
- `tasks.json`、`logs/`),只存本机、不进仓库。详见
169
- [用户档案与记忆](docs/reference/memory.md)。
179
+ User data is stored in `~/.config/qwaudio/` (`USER.md`,
180
+ `frontend-memory.json`, `tasks.json`, `logs/`), kept local only, never
181
+ committed to the repository. See [user profile and memory](docs/reference/memory.md).
170
182
 
171
- ## 使用注意事项
183
+ ## Important Notes
172
184
 
173
- - 不要在用户档案或对话中保存密码、API Key、验证码和访问令牌。
174
- - 麦克风音频与实时对话会发送到配置的 Realtime 前台服务(DashScope 或
175
- speech-to-speech)。
176
- - 后台任务可能调用所选 Agent 的模型、工具、MCP 和外部服务。
177
- - `full` 权限允许后台执行命令和修改文件,只应在可信项目中使用。
178
- - Gateway 默认仅供本机访问;不要直接暴露到局域网或公网。
179
- - Linux / Windows 使用无回声消除全双工时,请佩戴耳机。
185
+ - Do not store passwords, API Keys, verification codes, or access tokens in the user profile or conversation.
186
+ - Microphone audio and realtime conversation are sent to the configured Realtime frontend service (DashScope or speech-to-speech).
187
+ - Background tasks may invoke the selected Agent's models, tools, MCP, and external services.
188
+ - `full` permission allows the backend to execute commands and modify files; use only in trusted projects.
189
+ - The Gateway is for local use only; do not expose it directly to the network or public internet.
190
+ - On Linux / Windows with full-duplex without echo cancellation, wear headphones.
180
191
 
181
- 详细数据边界见[隐私说明](PRIVACY.md),网络与权限配置见
182
- [配置说明](docs/configuration.md)。
192
+ For detailed data boundaries, see the [privacy notice](PRIVACY.md); for
193
+ network and permission configuration, see the [configuration guide](docs/configuration.md).
183
194
 
184
- ## 源码开发
195
+ ## Development
185
196
 
186
197
  ```bash
187
198
  npm install
@@ -190,30 +201,31 @@ npm test
190
201
  ```
191
202
 
192
203
  ```bash
193
- npm run dev # Gateway 与 WebUI 热更新
194
- npm run desktop # 桌面悬浮球(macOS / Windows)
204
+ npm run dev # Gateway + WebUI hot reload
205
+ npm run desktop # Desktop floating orb (macOS / Windows)
195
206
  ```
196
207
 
197
- 更多构建、测试和发布说明见 [CONTRIBUTING.md](CONTRIBUTING.md)。
208
+ For more build, test, and release instructions, see [CONTRIBUTING.md](CONTRIBUTING.md).
198
209
 
199
- ## 交流与分享
210
+ ## Community
200
211
 
201
- 你可以直接在 [GitHub Issues](https://github.com/QwenAudio/qwen-audio-agent/issues) 发起讨论。
212
+ You can start discussions directly in [GitHub Issues](https://github.com/QwenAudio/qwen-audio-agent/issues).
202
213
 
203
- 对中国用户,也可以扫描左侧二维码加入微信交流群;如果群二维码已满或过期,
204
- 扫描右侧任一维护者的个人二维码,维护者会邀请你进群。
214
+ For users in China, scan the QR codes below to join the WeChat group. If the
215
+ group QR code is full or expired, scan either maintainer's personal QR code
216
+ to be invited.
205
217
 
206
- | 微信交流群 | 个人微信 | 个人微信 |
218
+ | WeChat Group | Personal | Personal |
207
219
  | :---: | :---: | :---: |
208
- | <img src="docs/wechat-group-qr.png" width="240" alt="微信交流群二维码"> | <img src="docs/wechat-contact-qr.png" width="240" alt="李旭个人微信二维码"> | <img src="docs/wechat-pigeon-dan-qr.png" width="240" alt="Pigeon.Dan 个人微信二维码"> |
220
+ | <img src="docs/wechat-group-qr.png" width="240" alt="WeChat group QR code"> | <img src="docs/wechat-contact-qr.png" width="240" alt="Li Xu personal WeChat QR code"> | <img src="docs/wechat-pigeon-dan-qr.png" width="240" alt="Pigeon.Dan personal WeChat QR code"> |
209
221
 
210
- ## 参与贡献与安全
222
+ ## Contributing and Security
211
223
 
212
- - 开发与提交说明:[CONTRIBUTING.md](CONTRIBUTING.md)
213
- - 安全问题报告:[SECURITY.md](SECURITY.md)
214
- - 数据流向说明:[PRIVACY.md](PRIVACY.md)
215
- - 第三方组件声明:[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)
224
+ - Development and contribution guide: [CONTRIBUTING.md](CONTRIBUTING.md)
225
+ - Security reports: [SECURITY.md](SECURITY.md)
226
+ - Data flow and privacy: [PRIVACY.md](PRIVACY.md)
227
+ - Third-party notices: [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)
216
228
 
217
- ## 许可证
229
+ ## License
218
230
 
219
231
  [Apache License 2.0](LICENSE)
package/README_ZH.md ADDED
@@ -0,0 +1,218 @@
1
+ # Qwen Audio Agent
2
+
3
+ [中文](README_ZH.md) | [English](README.md)
4
+
5
+ [![CI](https://github.com/QwenAudio/qwen-audio-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/QwenAudio/qwen-audio-agent/actions/workflows/ci.yml)
6
+ [![npm](https://img.shields.io/npm/v/qwen-audio-agent)](https://www.npmjs.com/package/qwen-audio-agent)
7
+ [![node](https://img.shields.io/badge/node-%E2%89%A522.22.2-brightgreen)](https://nodejs.org/)
8
+ [![license](https://img.shields.io/github/license/QwenAudio/qwen-audio-agent)](LICENSE)
9
+ [![WeChat](https://img.shields.io/badge/WeChat-%E5%8A%A0%E5%85%A5%E8%AE%A8%E8%AE%BA-07C160?logo=wechat&logoColor=white)](#交流与分享)
10
+
11
+ ## Agent,始终在场
12
+
13
+ 真正的交流,不该在说完一句话后,就陷入漫长的等待。也不该因为 Agent 正在查资料、调用工具或处理任务,整场对话就此暂停。
14
+
15
+ 交流应该是连续的,Agent 也应该始终在场。
16
+
17
+ 所以,我们做了 **qwen-audio-agent**——让 Agent 持续交流、持续工作、持续在场的实时语音运行时。无论是聊天、思考,还是处理任务,Agent 都始终在这场对话里。它会倾听,会回应,也会在任务完成时自然地告诉你:
18
+
19
+ “已经好了。”
20
+
21
+ ## News
22
+
23
+ - **2026-08-07 · [v1.6.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.1)**
24
+ ⚡ 委派任务与权限确认即说即回;🖥️ 内置 computer-use,后台 Agent 开箱可操作电脑;🎙️ 唤醒更可靠;📚 文档全面双语化。
25
+ - **2026-08-06 · [v1.6.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.0)**
26
+ 🪟 桌面版正式支持 Windows;🧠 新增无感记忆,会话结束后自动提取。
27
+ - **2026-08-05 · [v1.5.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.5.0)**
28
+ ⏰ 新增定时提醒与进度查询;🗣️ 新增语音唤醒词“你好千问”;🐧 桌面版支持 Linux 打包;桌面版数据目录与 CLI 隔离。
29
+ - **2026-08-05 · [v1.4.2](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.2)**
30
+ 🔧 优化桌面端后台 Agent 的安装、登录与状态检测,完善长期记忆行为。
31
+ - **2026-08-04 · [v1.4.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.1)**
32
+ 🧰 新增后台 Agent 一键安装;桌面悬浮球支持自动隐藏与快捷键唤回。
33
+ - **2026-08-04 · [v1.4.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.0)**
34
+ 🧠 新增个性化规则与清单管理;桌面版支持自动休眠与快捷键唤醒。
35
+ - **2026-08-03 · [v1.3.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.3.0)**
36
+ 🎙️ 新增 [🤗 speech-to-speech](https://github.com/huggingface/speech-to-speech) 前台接入,支持本地部署 VAD、STT、LLM 与 TTS 全链路。
37
+ - **2026-08-01 · [v1.2.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.2.0)**
38
+ ⚡ 桌面版新增自动更新,优化启动速度与后台 Agent 检测。
39
+ - **2026-07-31 · [v1.1.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.1.0)**
40
+ 🤝 新增 Kimi Code CLI 后台,原生 ACP 接入。
41
+ - **2026-07-30 · [v1.0.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.0.0)**
42
+ 🚀 正式版发布,推出内置 Gateway 的 macOS 桌面版。
43
+ - **2026-07-28 · [v0.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v0.9.0)**
44
+ 🌍 项目正式开源,后台 Agent 统一接入 ACP 架构。
45
+
46
+ ## 对话继续,任务也在继续
47
+
48
+ 对话不会因为后台任务而停下;任务完成后,结果会自然回到当前对话:
49
+
50
+ https://github.com/user-attachments/assets/42022655-36d1-46b2-9c26-ff0765284000
51
+
52
+ ### 核心特色
53
+
54
+ - 全双工实时语音交互、自然打断和持续多轮对话
55
+ - 一键选择你喜欢的办事 Agent,复用已有的工具、MCP、Skill
56
+ - 前台对话与后台任务并驾齐驱,可随时追问任务进度或取消任务
57
+ - 支持创建多个独立任务,由后台 Agent 异步执行,并持续追踪任务状态
58
+ - 任务结果自动回到当前对话,支持继续追问和修改
59
+ - 支持 WebUI、终端 TUI 和桌面悬浮球(macOS / Windows / Linux)
60
+ - 支持本地用户档案与跨会话个人记忆
61
+
62
+ ## 参考架构
63
+
64
+ ![qwen-audio-agent 原理图](docs/architecture-overview.png)
65
+
66
+ 能直接回答的问题会立即回答;需要工具或持续处理时,任务会交给后台 Agent。
67
+ 整个过程中,用户面对的始终是同一个助理。
68
+
69
+ <details open>
70
+ <summary>查看详细架构</summary>
71
+
72
+ ![qwen-audio-agent 接入参考架构](docs/qwen-audio-agent-three-layer-architecture.png)
73
+
74
+ 更完整的设计与模块说明见[架构文档](docs/architecture.zh.md)。
75
+
76
+ </details>
77
+
78
+ ## Agent 支持
79
+
80
+ | 后台 Agent | 接入方式 | 接入准备 | 推荐指数 |
81
+ | --- | --- | --- | --- |
82
+ | 无 | N/A | 仅前台模式,无需配置 | ★★★★★ |
83
+ | OpenCode | 原生 ACP | 支持一键安装和百炼配置 | ★★★★★ |
84
+ | OpenClaw | 内置 ACP 桥接 | 支持一键安装和百炼配置 | ★★★★★ |
85
+ | Qoder | 原生 ACP | 支持一键安装,需用户配置 | ★★★★★ |
86
+ | Kimi Code | 原生 ACP | 支持一键安装,需用户配置 | ★★★★★ |
87
+ | Hermes | 原生 ACP | 支持一键安装,需用户配置 | ★★★★☆ |
88
+ | CodeBuddy | 原生 ACP | 支持一键安装,需用户配置 | ★★★★☆ |
89
+ | Codex | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
90
+ | Claude Code | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
91
+
92
+ 推荐指数综合反映当前集成完整度、兼容性和实际验证程度:五星表示已经过充分测试的
93
+ 推荐集成,四星表示正在开发或尚未完成同等范围验证。
94
+ 详细配置和能力边界见[配置说明](docs/configuration.zh.md)。
95
+
96
+ ## 安装
97
+
98
+ 需要 Node.js 22.22.2+ 或 24.15.0+、npm 10+。一键安装(推荐):
99
+
100
+ ```bash
101
+ npm install -g qwen-audio-agent
102
+ ```
103
+
104
+ 从源码安装、从 GitHub 安装最新代码以及获取 DashScope API Key 的详细步骤见
105
+ [安装指南](docs/getting-started/install.zh.md)。
106
+
107
+ ## 快速开始
108
+
109
+ 1. 创建配置并填入 API Key:
110
+
111
+ ```bash
112
+ qwenaudio config
113
+ ```
114
+
115
+ ```dotenv
116
+ DASHSCOPE_API_KEY=your-key
117
+ # 语音前台模型:qwen-audio-3.0-realtime-flash 或 qwen-audio-3.0-realtime-plus(默认)
118
+ QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
119
+ # 后台Agent:可选,不设置或设置为 none 时,启动仅前台模式
120
+ AGENT_PROTOCOL=openclaw
121
+ # 后台模型:可为空,留空则沿用 Agent 自身的用户配置
122
+ QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-max
123
+ ```
124
+
125
+ > 默认使用 DashScope 实时语音前台;也可切换为本地 [speech-to-speech 前台](docs/voice-frontends/speech-to-speech.zh.md),无需云端 API Key。
126
+
127
+ 2. 启动 Gateway,另开终端启动 TUI(也可用 `qwenaudio webui` 启动浏览器界面):
128
+
129
+ ```bash
130
+ qwenaudio # 终端 1:Gateway
131
+ qwenaudio tui # 终端 2:TUI
132
+ ```
133
+
134
+ 完整配置项、speech-to-speech 前台接入和 TUI 平台注意事项见
135
+ [快速开始](docs/getting-started/quickstart.zh.md)、
136
+ [语音前台](docs/voice-frontends/speech-to-speech.zh.md)与
137
+ [TUI 注意](docs/getting-started/tui.zh.md)。
138
+
139
+ ## 桌面版
140
+
141
+ 桌面版提供常驻桌面的语音悬浮球,内置 Gateway,支持自动隐藏、快捷键唤回和语音
142
+ 唤醒。从发布页下载对应平台安装包,或从源码构建:
143
+
144
+ ```bash
145
+ npm run desktop:build:local # macOS
146
+ npm run desktop:build:win # Windows
147
+ npm run desktop:build:linux # Linux(AppImage + deb,无需签名)
148
+ ```
149
+
150
+ 外观效果、悬浮球行为和构建说明见[桌面版文档](docs/desktop/overview.zh.md)。
151
+
152
+ ## 后台 Agent
153
+
154
+ `AGENT_PROTOCOL` 可选。留空即仅前台模式;选择后可复用已安装 Agent 的用户级
155
+ 模型、工具、MCP、Skill 和认证。OpenCode 和 OpenClaw 支持一键安装与百炼配置。
156
+
157
+ ```bash
158
+ qwenaudio setup # 查看当前可用的后台 Agent
159
+ ```
160
+
161
+ Agent 选择、后台常驻服务、通用 ACP 入口和权限模式见
162
+ [后台 Agent 文档](docs/backends/overview.zh.md)。
163
+
164
+ ## 用户档案与记忆
165
+
166
+ 用户数据保存在 `~/.config/qwaudio/`(`USER.md`、`frontend-memory.json`、
167
+ `tasks.json`、`logs/`),只存本机、不进仓库。详见
168
+ [用户档案与记忆](docs/reference/memory.zh.md)。
169
+
170
+ ## 使用注意事项
171
+
172
+ - 不要在用户档案或对话中保存密码、API Key、验证码和访问令牌。
173
+ - 麦克风音频与实时对话会发送到配置的 Realtime 前台服务(DashScope 或
174
+ speech-to-speech)。
175
+ - 后台任务可能调用所选 Agent 的模型、工具、MCP 和外部服务。
176
+ - `full` 权限允许后台执行命令和修改文件,只应在可信项目中使用。
177
+ - Gateway 默认仅供本机访问;不要直接暴露到局域网或公网。
178
+ - Linux / Windows 使用无回声消除全双工时,请佩戴耳机。
179
+
180
+ 详细数据边界见[隐私说明](PRIVACY.md),网络与权限配置见
181
+ [配置说明](docs/configuration.zh.md)。
182
+
183
+ ## 源码开发
184
+
185
+ ```bash
186
+ npm install
187
+ npm run build
188
+ npm test
189
+ ```
190
+
191
+ ```bash
192
+ npm run dev # Gateway 与 WebUI 热更新
193
+ npm run desktop # 桌面悬浮球(macOS / Windows)
194
+ ```
195
+
196
+ 更多构建、测试和发布说明见 [CONTRIBUTING.md](CONTRIBUTING.md)。
197
+
198
+ ## 交流与分享
199
+
200
+ 你可以直接在 [GitHub Issues](https://github.com/QwenAudio/qwen-audio-agent/issues) 发起讨论。
201
+
202
+ 对中国用户,也可以扫描左侧二维码加入微信交流群;如果群二维码已满或过期,
203
+ 扫描右侧任一维护者的个人二维码,维护者会邀请你进群。
204
+
205
+ | 微信交流群 | 个人微信 | 个人微信 |
206
+ | :---: | :---: | :---: |
207
+ | <img src="docs/wechat-group-qr.png" width="240" alt="微信交流群二维码"> | <img src="docs/wechat-contact-qr.png" width="240" alt="李旭个人微信二维码"> | <img src="docs/wechat-pigeon-dan-qr.png" width="240" alt="Pigeon.Dan 个人微信二维码"> |
208
+
209
+ ## 参与贡献与安全
210
+
211
+ - 开发与提交说明:[CONTRIBUTING.md](CONTRIBUTING.md)
212
+ - 安全问题报告:[SECURITY.md](SECURITY.md)
213
+ - 数据流向说明:[PRIVACY.md](PRIVACY.md)
214
+ - 第三方组件声明:[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)
215
+
216
+ ## 许可证
217
+
218
+ [Apache License 2.0](LICENSE)
package/cli/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwen-audio-agent/cli",
3
3
  "private": true,
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "qwenaudio": "./bin/qwenaudio.mjs"
@@ -296,26 +296,6 @@ must report the failure; it must not inspect the target directory with native
296
296
  tools or duplicate the delegated work.
297
297
 
298
298
  Frontend code must not depend on which internal capability was chosen.
299
-
300
- When screen capture is enabled, the Gateway injects one further tool that lets
301
- the backend Agent look at the user's screen or at an image file. Realtime keeps
302
- its seven tools: it declares only text and audio modalities and cannot receive
303
- an image at all, so a request about something visible reaches the backend
304
- through ordinary delegation and the Agent decides whether it needs to look.
305
-
306
- What the Agent receives depends on configuration. By default it gets the image
307
- itself, as an ACP prompt image content block, gated on the
308
- `promptCapabilities.image` it declared during initialize. With a vision model
309
- configured, the Gateway asks that model instead and hands the Agent a
310
- description. ACP has no notion of a model and no way to change one inside a
311
- Session, so the second form is what allows an Agent running on a text model to
312
- still answer questions about something visible.
313
-
314
- Unlike the five Session tools, the image tool is not Gateway-owned for
315
- permission purposes. It stays outside the auto-approved set, so every call
316
- surfaces to the user as a normal permission request. A screen may hold
317
- passwords, private messages, or financial detail, and consent for one look is
318
- not consent for the next.
319
299
  Frontend task snapshots may expose only a bounded title and generic delegated
320
300
  state, never delegation IDs, target Session IDs, directories, or raw events.
321
301