qwen-audio-agent 1.6.0 → 1.7.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 (49) hide show
  1. package/README.md +123 -109
  2. package/README_ZH.md +220 -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 +103 -0
  8. package/docs/configuration.md +356 -314
  9. package/docs/configuration.zh.md +571 -0
  10. package/docs/desktop/overview.md +48 -37
  11. package/docs/desktop/overview.zh.md +79 -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 +48 -0
  20. package/docs/voice-frontends/speech-to-speech.md +50 -18
  21. package/docs/voice-frontends/speech-to-speech.zh.md +55 -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 +13 -35
  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/orb-skin-catalog.mjs +28 -0
  39. package/shared/realtime-events.mjs +1 -0
  40. package/tui/package.json +1 -1
  41. package/web/dist/assets/index-BRBmAM0K.js +38 -0
  42. package/web/dist/assets/index-CpWTgGsp.css +1 -0
  43. package/web/dist/index.html +2 -2
  44. package/README_EN.md +0 -468
  45. package/docs/vision.md +0 -108
  46. package/server/src/agent/screen-capture.mjs +0 -154
  47. package/server/src/agent/vision-describer.mjs +0 -89
  48. package/web/dist/assets/index-CAteXyT1.js +0 -38
  49. package/web/dist/assets/index-CYkUfr6A.css +0 -1
package/README.md CHANGED
@@ -1,113 +1,123 @@
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.7.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.7.0)**
30
+ 🎨 The orb now supports skins, with custom look imports; 🪟 improved Windows backend Agent startup.
31
+ - **2026-08-07 · [v1.6.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.1)**
32
+ ⚡ 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
33
  - **2026-08-06 · [v1.6.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.0)**
24
- 🪟 桌面版正式支持 Windows;👀 后台 Agent 支持看屏幕与看图片;🧠 新增无感记忆,会话结束后自动提取。
34
+ 🪟 Desktop app now officially supports Windows; 🧠 adds invisible memory with automatic extraction after each session.
25
35
  - **2026-08-05 · [v1.5.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.5.0)**
26
- ⏰ 新增定时提醒与进度查询;🗣️ 新增语音唤醒词“你好千问”;🐧 桌面版支持 Linux 打包;桌面版数据目录与 CLI 隔离。
36
+ ⏰ 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
37
  - **2026-08-05 · [v1.4.2](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.2)**
28
- 🔧 优化桌面端后台 Agent 的安装、登录与状态检测,完善长期记忆行为。
38
+ 🔧 Improves desktop backend Agent installation, login, and status detection; refines long-term memory behavior.
29
39
  - **2026-08-04 · [v1.4.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.1)**
30
- 🧰 新增后台 Agent 一键安装;桌面悬浮球支持自动隐藏与快捷键唤回。
40
+ 🧰 Adds one-click backend Agent install; desktop floating orb supports auto-hide and shortcut recall.
31
41
  - **2026-08-04 · [v1.4.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.0)**
32
- 🧠 新增个性化规则与清单管理;桌面版支持自动休眠与快捷键唤醒。
42
+ 🧠 Adds personalized rules and checklist management; desktop app supports auto-sleep and shortcut wake.
33
43
  - **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 全链路。
44
+ 🎙️ Adds [🤗 speech-to-speech](https://github.com/huggingface/speech-to-speech) frontend integration, supporting fully local VAD, STT, LLM, and TTS.
35
45
  - **2026-08-01 · [v1.2.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.2.0)**
36
- ⚡ 桌面版新增自动更新,优化启动速度与后台 Agent 检测。
46
+ ⚡ Desktop app adds auto-update, faster startup, and improved backend Agent detection.
37
47
  - **2026-07-31 · [v1.1.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.1.0)**
38
- 🤝 新增 Kimi Code CLI 后台,原生 ACP 接入。
48
+ 🤝 Adds Kimi Code CLI backend with native ACP integration.
39
49
  - **2026-07-30 · [v1.0.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.0.0)**
40
- 🚀 正式版发布,推出内置 Gateway 的 macOS 桌面版。
50
+ 🚀 First stable release, introducing a macOS desktop app with a built-in Gateway.
41
51
  - **2026-07-28 · [v0.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v0.9.0)**
42
- 🌍 项目正式开源,后台 Agent 统一接入 ACP 架构。
52
+ 🌍 Project officially open-sourced; backend Agents unified under the ACP architecture.
43
53
 
44
- ## 对话继续,任务也在继续
54
+ ## Conversation Continues, Tasks Too
45
55
 
46
- 对话不会因为后台任务而停下;任务完成后,结果会自然回到当前对话:
56
+ Conversation doesn't stop for background tasks; when a task completes, the
57
+ result naturally returns to the current conversation:
47
58
 
48
59
  https://github.com/user-attachments/assets/42022655-36d1-46b2-9c26-ff0765284000
49
60
 
50
- ### 核心特色
61
+ ### Core Features
51
62
 
52
- - 全双工实时语音交互、自然打断和持续多轮对话
53
- - 一键选择你喜欢的办事 Agent,复用已有的工具、MCP、Skill
54
- - 前台对话与后台任务并驾齐驱,可随时追问任务进度或取消任务
55
- - 支持创建多个独立任务,由后台 Agent 异步执行,并持续追踪任务状态
56
- - 任务结果自动回到当前对话,支持继续追问和修改
57
- - 支持 WebUI、终端 TUI 和桌面悬浮球(macOS / Windows / Linux)
58
- - 支持本地用户档案与跨会话个人记忆
63
+ - Full-duplex realtime voice interaction, natural interruption, and sustained multi-turn conversation
64
+ - One-click selection of your preferred coding Agent, reusing existing tools, MCP, and Skills
65
+ - Frontend conversation and background tasks run in parallel; ask about progress or cancel at any time
66
+ - Create multiple independent tasks executed asynchronously by the backend Agent, with continuous status tracking
67
+ - Task results automatically return to the current conversation, supporting follow-up questions and modifications
68
+ - WebUI, terminal TUI, and desktop floating orb (macOS / Windows / Linux)
69
+ - Local user profile and cross-session personal memory
59
70
 
60
- ## 参考架构
71
+ ## Architecture
61
72
 
62
- ![qwen-audio-agent 原理图](docs/architecture-overview.png)
73
+ ![qwen-audio-agent architecture](docs/architecture-overview-en.png)
63
74
 
64
- 能直接回答的问题会立即回答;需要工具或持续处理时,任务会交给后台 Agent。
65
- 整个过程中,用户面对的始终是同一个助理。
75
+ Questions that can be answered directly are answered immediately; when tools
76
+ or sustained processing are needed, the task is delegated to the backend Agent.
77
+ Throughout, the user always faces the same assistant.
66
78
 
67
79
  <details open>
68
- <summary>查看详细架构</summary>
80
+ <summary>View detailed architecture</summary>
69
81
 
70
- ![qwen-audio-agent 接入参考架构](docs/qwen-audio-agent-three-layer-architecture.png)
82
+ ![qwen-audio-agent reference architecture](docs/qwen-audio-agent-three-layer-architecture-en.png)
71
83
 
72
- 更完整的设计与模块说明见[架构文档](docs/architecture.md)。
84
+ For the full design and module breakdown, see the [architecture document](docs/architecture.md).
73
85
 
74
86
  </details>
75
87
 
76
- ## Agent 支持
88
+ ## Agent Support
77
89
 
78
- | 后台 Agent | 接入方式 | 接入准备 | 推荐指数 |
90
+ | Backend Agent | Integration | Setup | Rating |
79
91
  | --- | --- | --- | --- |
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 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
92
+ | None | N/A | Frontend-only mode, no config needed | ★★★★★ |
93
+ | OpenCode | Native ACP | One-click install + Bailian config | ★★★★★ |
94
+ | OpenClaw | Built-in ACP bridge | One-click install + Bailian config | ★★★★★ |
95
+ | Qoder | Native ACP | One-click install, user config required | ★★★★★ |
96
+ | Kimi Code | Native ACP | One-click install, user config required | ★★★★★ |
97
+ | Hermes | Native ACP | One-click install, user config required | ★★★★☆ |
98
+ | CodeBuddy | Native ACP | One-click install, user config required | ★★★★☆ |
99
+ | Codex | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
100
+ | Claude Code | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
89
101
 
90
- 推荐指数综合反映当前集成完整度、兼容性和实际验证程度:五星表示已经过充分测试的
91
- 推荐集成,四星表示正在开发或尚未完成同等范围验证。
92
- 详细配置和能力边界见[配置说明](docs/configuration.md)。
102
+ Ratings reflect current integration completeness, compatibility, and
103
+ verification level: five stars indicate a thoroughly tested recommended
104
+ integration; four stars indicate active development or not yet fully verified.
105
+ For detailed configuration and capability boundaries, see the [configuration guide](docs/configuration.md).
93
106
 
94
- 开启后,后台 Agent 还可以看用户的屏幕或一张已有的图片,用于回答「屏幕上这个报错
95
- 是什么意思」这类问题,见[看屏幕与看图片](docs/vision.md)。
107
+ ## Installation
96
108
 
97
- ## 安装
98
-
99
- 需要 Node.js 22.22.2+ 或 24.15.0+、npm 10+。一键安装(推荐):
109
+ Requires Node.js 22.22.2+ or 24.15.0+, npm 10+. One-click install (recommended):
100
110
 
101
111
  ```bash
102
112
  npm install -g qwen-audio-agent
103
113
  ```
104
114
 
105
- 从源码安装、从 GitHub 安装最新代码以及获取 DashScope API Key 的详细步骤见
106
- [安装指南](docs/getting-started/install.md)。
115
+ For building from source, installing from GitHub, and obtaining a DashScope
116
+ API Key, see the [installation guide](docs/getting-started/install.md).
107
117
 
108
- ## 快速开始
118
+ ## Quick Start
109
119
 
110
- 1. 创建配置并填入 API Key:
120
+ 1. Create your config and fill in the API Key:
111
121
 
112
122
  ```bash
113
123
  qwenaudio config
@@ -115,73 +125,76 @@ qwenaudio config
115
125
 
116
126
  ```dotenv
117
127
  DASHSCOPE_API_KEY=your-key
118
- # 语音前台模型:qwen-audio-3.0-realtime-flash 或 qwen-audio-3.0-realtime-plus(默认)
128
+ # Voice frontend model: qwen-audio-3.0-realtime-flash or qwen-audio-3.0-realtime-plus (default)
119
129
  QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
120
- # 后台Agent:可选,不设置或设置为 none 时,启动仅前台模式
130
+ # Backend Agent: optional, leave empty or set to none for frontend-only mode
121
131
  AGENT_PROTOCOL=openclaw
122
- # 后台模型:可为空,留空则沿用 Agent 自身的用户配置
132
+ # Backend model: can be empty; if empty, uses the Agent's own user config
123
133
  QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-max
124
134
  ```
125
135
 
126
- > 默认使用 DashScope 实时语音前台;也可切换为本地 [speech-to-speech 前台](docs/voice-frontends/speech-to-speech.md),无需云端 API Key。
136
+ > 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
137
 
128
- 2. 启动 Gateway,另开终端启动 TUI(也可用 `qwenaudio webui` 启动浏览器界面):
138
+ 2. Start the Gateway, then open another terminal to start the TUI (or use `qwenaudio webui` for the browser UI):
129
139
 
130
140
  ```bash
131
- qwenaudio # 终端 1:Gateway
132
- qwenaudio tui # 终端 2:TUI
141
+ qwenaudio # Terminal 1: Gateway
142
+ qwenaudio tui # Terminal 2: TUI
133
143
  ```
134
144
 
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)。
145
+ For full configuration options, speech-to-speech frontend setup, and TUI
146
+ platform notes, see [quick start](docs/getting-started/quickstart.md),
147
+ [voice frontends](docs/voice-frontends/speech-to-speech.md), and
148
+ [TUI notes](docs/getting-started/tui.md).
139
149
 
140
- ## 桌面版
150
+ ## Desktop App
141
151
 
142
- 桌面版提供常驻桌面的语音悬浮球,内置 Gateway,支持自动隐藏、快捷键唤回和语音
143
- 唤醒。从发布页下载对应平台安装包,或从源码构建:
152
+ The desktop app provides a floating voice orb that stays on your desktop,
153
+ with a built-in Gateway, auto-hide, shortcut recall, and voice wake word.
154
+ Download the installer for your platform from the releases page, or build
155
+ from source:
144
156
 
145
157
  ```bash
146
158
  npm run desktop:build:local # macOS
147
159
  npm run desktop:build:win # Windows
148
- npm run desktop:build:linux # Linux(AppImage + deb,无需签名)
160
+ npm run desktop:build:linux # Linux (AppImage + deb, no signing)
149
161
  ```
150
162
 
151
- 外观效果、悬浮球行为和构建说明见[桌面版文档](docs/desktop/overview.md)。
163
+ For visuals, orb behavior, and build instructions, see the [desktop documentation](docs/desktop/overview.md).
152
164
 
153
- ## 后台 Agent
165
+ ## Backend Agent
154
166
 
155
- `AGENT_PROTOCOL` 可选。留空即仅前台模式;选择后可复用已安装 Agent 的用户级
156
- 模型、工具、MCP、Skill 和认证。OpenCode 和 OpenClaw 支持一键安装与百炼配置。
167
+ `AGENT_PROTOCOL` is optional. Leave empty for frontend-only mode; when set,
168
+ it reuses the installed Agent's user-level models, tools, MCP, Skills, and
169
+ authentication. OpenCode and OpenClaw support one-click install with Bailian
170
+ configuration.
157
171
 
158
172
  ```bash
159
- qwenaudio setup # 查看当前可用的后台 Agent
173
+ qwenaudio setup # View available backend Agents
160
174
  ```
161
175
 
162
- Agent 选择、后台常驻服务、通用 ACP 入口和权限模式见
163
- [后台 Agent 文档](docs/backends/overview.md)。
176
+ For Agent selection, persistent background service, generic ACP entry, and
177
+ permission modes, see the [backend Agent documentation](docs/backends/overview.md).
164
178
 
165
- ## 用户档案与记忆
179
+ ## User Profile and Memory
166
180
 
167
- 用户数据保存在 `~/.config/qwaudio/`(`USER.md`、`frontend-memory.json`、
168
- `tasks.json`、`logs/`),只存本机、不进仓库。详见
169
- [用户档案与记忆](docs/reference/memory.md)。
181
+ User data is stored in `~/.config/qwaudio/` (`USER.md`,
182
+ `frontend-memory.json`, `tasks.json`, `logs/`), kept local only, never
183
+ committed to the repository. See [user profile and memory](docs/reference/memory.md).
170
184
 
171
- ## 使用注意事项
185
+ ## Important Notes
172
186
 
173
- - 不要在用户档案或对话中保存密码、API Key、验证码和访问令牌。
174
- - 麦克风音频与实时对话会发送到配置的 Realtime 前台服务(DashScope 或
175
- speech-to-speech)。
176
- - 后台任务可能调用所选 Agent 的模型、工具、MCP 和外部服务。
177
- - `full` 权限允许后台执行命令和修改文件,只应在可信项目中使用。
178
- - Gateway 默认仅供本机访问;不要直接暴露到局域网或公网。
179
- - Linux / Windows 使用无回声消除全双工时,请佩戴耳机。
187
+ - Do not store passwords, API Keys, verification codes, or access tokens in the user profile or conversation.
188
+ - Microphone audio and realtime conversation are sent to the configured Realtime frontend service (DashScope or speech-to-speech).
189
+ - Background tasks may invoke the selected Agent's models, tools, MCP, and external services.
190
+ - `full` permission allows the backend to execute commands and modify files; use only in trusted projects.
191
+ - The Gateway is for local use only; do not expose it directly to the network or public internet.
192
+ - On Linux / Windows with full-duplex without echo cancellation, wear headphones.
180
193
 
181
- 详细数据边界见[隐私说明](PRIVACY.md),网络与权限配置见
182
- [配置说明](docs/configuration.md)。
194
+ For detailed data boundaries, see the [privacy notice](PRIVACY.md); for
195
+ network and permission configuration, see the [configuration guide](docs/configuration.md).
183
196
 
184
- ## 源码开发
197
+ ## Development
185
198
 
186
199
  ```bash
187
200
  npm install
@@ -190,30 +203,31 @@ npm test
190
203
  ```
191
204
 
192
205
  ```bash
193
- npm run dev # Gateway 与 WebUI 热更新
194
- npm run desktop # 桌面悬浮球(macOS / Windows)
206
+ npm run dev # Gateway + WebUI hot reload
207
+ npm run desktop # Desktop floating orb (macOS / Windows)
195
208
  ```
196
209
 
197
- 更多构建、测试和发布说明见 [CONTRIBUTING.md](CONTRIBUTING.md)。
210
+ For more build, test, and release instructions, see [CONTRIBUTING.md](CONTRIBUTING.md).
198
211
 
199
- ## 交流与分享
212
+ ## Community
200
213
 
201
- 你可以直接在 [GitHub Issues](https://github.com/QwenAudio/qwen-audio-agent/issues) 发起讨论。
214
+ You can start discussions directly in [GitHub Issues](https://github.com/QwenAudio/qwen-audio-agent/issues).
202
215
 
203
- 对中国用户,也可以扫描左侧二维码加入微信交流群;如果群二维码已满或过期,
204
- 扫描右侧任一维护者的个人二维码,维护者会邀请你进群。
216
+ For users in China, scan the QR codes below to join the WeChat group. If the
217
+ group QR code is full or expired, scan either maintainer's personal QR code
218
+ to be invited.
205
219
 
206
- | 微信交流群 | 个人微信 | 个人微信 |
220
+ | WeChat Group | Personal | Personal |
207
221
  | :---: | :---: | :---: |
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 个人微信二维码"> |
222
+ | <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
223
 
210
- ## 参与贡献与安全
224
+ ## Contributing and Security
211
225
 
212
- - 开发与提交说明:[CONTRIBUTING.md](CONTRIBUTING.md)
213
- - 安全问题报告:[SECURITY.md](SECURITY.md)
214
- - 数据流向说明:[PRIVACY.md](PRIVACY.md)
215
- - 第三方组件声明:[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)
226
+ - Development and contribution guide: [CONTRIBUTING.md](CONTRIBUTING.md)
227
+ - Security reports: [SECURITY.md](SECURITY.md)
228
+ - Data flow and privacy: [PRIVACY.md](PRIVACY.md)
229
+ - Third-party notices: [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)
216
230
 
217
- ## 许可证
231
+ ## License
218
232
 
219
233
  [Apache License 2.0](LICENSE)
package/README_ZH.md ADDED
@@ -0,0 +1,220 @@
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.7.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.7.0)**
24
+ 🎨 悬浮球支持换肤,可导入自定义外观;🪟 优化 Windows 后台 Agent 启动。
25
+ - **2026-08-07 · [v1.6.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.1)**
26
+ ⚡ 委派任务与权限确认即说即回;🖥️ 内置 computer-use,后台 Agent 开箱可操作电脑;🎙️ 唤醒更可靠;📚 文档全面双语化。
27
+ - **2026-08-06 · [v1.6.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.0)**
28
+ 🪟 桌面版正式支持 Windows;🧠 新增无感记忆,会话结束后自动提取。
29
+ - **2026-08-05 · [v1.5.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.5.0)**
30
+ ⏰ 新增定时提醒与进度查询;🗣️ 新增语音唤醒词“你好千问”;🐧 桌面版支持 Linux 打包;桌面版数据目录与 CLI 隔离。
31
+ - **2026-08-05 · [v1.4.2](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.2)**
32
+ 🔧 优化桌面端后台 Agent 的安装、登录与状态检测,完善长期记忆行为。
33
+ - **2026-08-04 · [v1.4.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.1)**
34
+ 🧰 新增后台 Agent 一键安装;桌面悬浮球支持自动隐藏与快捷键唤回。
35
+ - **2026-08-04 · [v1.4.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.0)**
36
+ 🧠 新增个性化规则与清单管理;桌面版支持自动休眠与快捷键唤醒。
37
+ - **2026-08-03 · [v1.3.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.3.0)**
38
+ 🎙️ 新增 [🤗 speech-to-speech](https://github.com/huggingface/speech-to-speech) 前台接入,支持本地部署 VAD、STT、LLM 与 TTS 全链路。
39
+ - **2026-08-01 · [v1.2.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.2.0)**
40
+ ⚡ 桌面版新增自动更新,优化启动速度与后台 Agent 检测。
41
+ - **2026-07-31 · [v1.1.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.1.0)**
42
+ 🤝 新增 Kimi Code CLI 后台,原生 ACP 接入。
43
+ - **2026-07-30 · [v1.0.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.0.0)**
44
+ 🚀 正式版发布,推出内置 Gateway 的 macOS 桌面版。
45
+ - **2026-07-28 · [v0.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v0.9.0)**
46
+ 🌍 项目正式开源,后台 Agent 统一接入 ACP 架构。
47
+
48
+ ## 对话继续,任务也在继续
49
+
50
+ 对话不会因为后台任务而停下;任务完成后,结果会自然回到当前对话:
51
+
52
+ https://github.com/user-attachments/assets/42022655-36d1-46b2-9c26-ff0765284000
53
+
54
+ ### 核心特色
55
+
56
+ - 全双工实时语音交互、自然打断和持续多轮对话
57
+ - 一键选择你喜欢的办事 Agent,复用已有的工具、MCP、Skill
58
+ - 前台对话与后台任务并驾齐驱,可随时追问任务进度或取消任务
59
+ - 支持创建多个独立任务,由后台 Agent 异步执行,并持续追踪任务状态
60
+ - 任务结果自动回到当前对话,支持继续追问和修改
61
+ - 支持 WebUI、终端 TUI 和桌面悬浮球(macOS / Windows / Linux)
62
+ - 支持本地用户档案与跨会话个人记忆
63
+
64
+ ## 参考架构
65
+
66
+ ![qwen-audio-agent 原理图](docs/architecture-overview.png)
67
+
68
+ 能直接回答的问题会立即回答;需要工具或持续处理时,任务会交给后台 Agent。
69
+ 整个过程中,用户面对的始终是同一个助理。
70
+
71
+ <details open>
72
+ <summary>查看详细架构</summary>
73
+
74
+ ![qwen-audio-agent 接入参考架构](docs/qwen-audio-agent-three-layer-architecture.png)
75
+
76
+ 更完整的设计与模块说明见[架构文档](docs/architecture.zh.md)。
77
+
78
+ </details>
79
+
80
+ ## Agent 支持
81
+
82
+ | 后台 Agent | 接入方式 | 接入准备 | 推荐指数 |
83
+ | --- | --- | --- | --- |
84
+ | 无 | N/A | 仅前台模式,无需配置 | ★★★★★ |
85
+ | OpenCode | 原生 ACP | 支持一键安装和百炼配置 | ★★★★★ |
86
+ | OpenClaw | 内置 ACP 桥接 | 支持一键安装和百炼配置 | ★★★★★ |
87
+ | Qoder | 原生 ACP | 支持一键安装,需用户配置 | ★★★★★ |
88
+ | Kimi Code | 原生 ACP | 支持一键安装,需用户配置 | ★★★★★ |
89
+ | Hermes | 原生 ACP | 支持一键安装,需用户配置 | ★★★★☆ |
90
+ | CodeBuddy | 原生 ACP | 支持一键安装,需用户配置 | ★★★★☆ |
91
+ | Codex | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
92
+ | Claude Code | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
93
+
94
+ 推荐指数综合反映当前集成完整度、兼容性和实际验证程度:五星表示已经过充分测试的
95
+ 推荐集成,四星表示正在开发或尚未完成同等范围验证。
96
+ 详细配置和能力边界见[配置说明](docs/configuration.zh.md)。
97
+
98
+ ## 安装
99
+
100
+ 需要 Node.js 22.22.2+ 或 24.15.0+、npm 10+。一键安装(推荐):
101
+
102
+ ```bash
103
+ npm install -g qwen-audio-agent
104
+ ```
105
+
106
+ 从源码安装、从 GitHub 安装最新代码以及获取 DashScope API Key 的详细步骤见
107
+ [安装指南](docs/getting-started/install.zh.md)。
108
+
109
+ ## 快速开始
110
+
111
+ 1. 创建配置并填入 API Key:
112
+
113
+ ```bash
114
+ qwenaudio config
115
+ ```
116
+
117
+ ```dotenv
118
+ DASHSCOPE_API_KEY=your-key
119
+ # 语音前台模型:qwen-audio-3.0-realtime-flash 或 qwen-audio-3.0-realtime-plus(默认)
120
+ QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
121
+ # 后台Agent:可选,不设置或设置为 none 时,启动仅前台模式
122
+ AGENT_PROTOCOL=openclaw
123
+ # 后台模型:可为空,留空则沿用 Agent 自身的用户配置
124
+ QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-max
125
+ ```
126
+
127
+ > 默认使用 DashScope 实时语音前台;也可切换为本地 [speech-to-speech 前台](docs/voice-frontends/speech-to-speech.zh.md),无需云端 API Key。
128
+
129
+ 2. 启动 Gateway,另开终端启动 TUI(也可用 `qwenaudio webui` 启动浏览器界面):
130
+
131
+ ```bash
132
+ qwenaudio # 终端 1:Gateway
133
+ qwenaudio tui # 终端 2:TUI
134
+ ```
135
+
136
+ 完整配置项、speech-to-speech 前台接入和 TUI 平台注意事项见
137
+ [快速开始](docs/getting-started/quickstart.zh.md)、
138
+ [语音前台](docs/voice-frontends/speech-to-speech.zh.md)与
139
+ [TUI 注意](docs/getting-started/tui.zh.md)。
140
+
141
+ ## 桌面版
142
+
143
+ 桌面版提供常驻桌面的语音悬浮球,内置 Gateway,支持自动隐藏、快捷键唤回和语音
144
+ 唤醒。从发布页下载对应平台安装包,或从源码构建:
145
+
146
+ ```bash
147
+ npm run desktop:build:local # macOS
148
+ npm run desktop:build:win # Windows
149
+ npm run desktop:build:linux # Linux(AppImage + deb,无需签名)
150
+ ```
151
+
152
+ 外观效果、悬浮球行为和构建说明见[桌面版文档](docs/desktop/overview.zh.md)。
153
+
154
+ ## 后台 Agent
155
+
156
+ `AGENT_PROTOCOL` 可选。留空即仅前台模式;选择后可复用已安装 Agent 的用户级
157
+ 模型、工具、MCP、Skill 和认证。OpenCode 和 OpenClaw 支持一键安装与百炼配置。
158
+
159
+ ```bash
160
+ qwenaudio setup # 查看当前可用的后台 Agent
161
+ ```
162
+
163
+ Agent 选择、后台常驻服务、通用 ACP 入口和权限模式见
164
+ [后台 Agent 文档](docs/backends/overview.zh.md)。
165
+
166
+ ## 用户档案与记忆
167
+
168
+ 用户数据保存在 `~/.config/qwaudio/`(`USER.md`、`frontend-memory.json`、
169
+ `tasks.json`、`logs/`),只存本机、不进仓库。详见
170
+ [用户档案与记忆](docs/reference/memory.zh.md)。
171
+
172
+ ## 使用注意事项
173
+
174
+ - 不要在用户档案或对话中保存密码、API Key、验证码和访问令牌。
175
+ - 麦克风音频与实时对话会发送到配置的 Realtime 前台服务(DashScope 或
176
+ speech-to-speech)。
177
+ - 后台任务可能调用所选 Agent 的模型、工具、MCP 和外部服务。
178
+ - `full` 权限允许后台执行命令和修改文件,只应在可信项目中使用。
179
+ - Gateway 默认仅供本机访问;不要直接暴露到局域网或公网。
180
+ - Linux / Windows 使用无回声消除全双工时,请佩戴耳机。
181
+
182
+ 详细数据边界见[隐私说明](PRIVACY.md),网络与权限配置见
183
+ [配置说明](docs/configuration.zh.md)。
184
+
185
+ ## 源码开发
186
+
187
+ ```bash
188
+ npm install
189
+ npm run build
190
+ npm test
191
+ ```
192
+
193
+ ```bash
194
+ npm run dev # Gateway 与 WebUI 热更新
195
+ npm run desktop # 桌面悬浮球(macOS / Windows)
196
+ ```
197
+
198
+ 更多构建、测试和发布说明见 [CONTRIBUTING.md](CONTRIBUTING.md)。
199
+
200
+ ## 交流与分享
201
+
202
+ 你可以直接在 [GitHub Issues](https://github.com/QwenAudio/qwen-audio-agent/issues) 发起讨论。
203
+
204
+ 对中国用户,也可以扫描左侧二维码加入微信交流群;如果群二维码已满或过期,
205
+ 扫描右侧任一维护者的个人二维码,维护者会邀请你进群。
206
+
207
+ | 微信交流群 | 个人微信 | 个人微信 |
208
+ | :---: | :---: | :---: |
209
+ | <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 个人微信二维码"> |
210
+
211
+ ## 参与贡献与安全
212
+
213
+ - 开发与提交说明:[CONTRIBUTING.md](CONTRIBUTING.md)
214
+ - 安全问题报告:[SECURITY.md](SECURITY.md)
215
+ - 数据流向说明:[PRIVACY.md](PRIVACY.md)
216
+ - 第三方组件声明:[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)
217
+
218
+ ## 许可证
219
+
220
+ [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.7.0",
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