qwen-audio-agent 1.9.1 → 1.10.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.
package/README.md CHANGED
@@ -26,6 +26,8 @@ tells you:
26
26
 
27
27
  ## News
28
28
 
29
+ - **2026-08-13 · [v1.10.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.10.0)**
30
+ 🐋 Added experimental DeepSeek Harness backend support with one-click installation.
29
31
  - **2026-08-13 · [v1.9.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.9.1)**
30
32
  🖥️ Improved desktop task card presentation and fixed several known issues.
31
33
  - **2026-08-13 · [v1.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.9.0)**
@@ -111,6 +113,7 @@ For the full design and module breakdown, see the [architecture document](docs/a
111
113
  | CodeBuddy | Native ACP | One-click install, user config required | ★★★★☆ |
112
114
  | Codex | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
113
115
  | Claude Code | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
116
+ | DeepSeek | Native ACP (experimental) | One-click install, DeepSeek API key required | ★★★★☆ |
114
117
 
115
118
  Ratings reflect current integration completeness, compatibility, and
116
119
  verification level: five stars indicate a thoroughly tested recommended
package/README_ZH.md CHANGED
@@ -20,6 +20,8 @@
20
20
 
21
21
  ## News
22
22
 
23
+ - **2026-08-13 · [v1.10.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.10.0)**
24
+ 🐋 新增实验性 DeepSeek Harness 后台接入,支持一键安装。
23
25
  - **2026-08-13 · [v1.9.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.9.1)**
24
26
  🖥️ 优化桌面端任务卡片展示,并修复若干已知问题。
25
27
  - **2026-08-13 · [v1.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.9.0)**
@@ -103,6 +105,7 @@ https://github.com/user-attachments/assets/42022655-36d1-46b2-9c26-ff0765284000
103
105
  | CodeBuddy | 原生 ACP | 支持一键安装,需用户配置 | ★★★★☆ |
104
106
  | Codex | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
105
107
  | Claude Code | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
108
+ | DeepSeek | 原生 ACP(实验性) | 支持一键安装,需 DeepSeek API Key | ★★★★☆ |
106
109
 
107
110
  推荐指数综合反映当前集成完整度、兼容性和实际验证程度:五星表示已经过充分测试的
108
111
  推荐集成,四星表示正在开发或尚未完成同等范围验证。
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.9.1",
4
+ "version": "1.10.0",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "qwenaudio": "./bin/qwenaudio.mjs"
@@ -0,0 +1,59 @@
1
+ # Minimal automation composition for qwen-audio-agent. DeepSeek Harness is a
2
+ # Developer Preview; keep vendor-specific runtime details inside this adapter.
3
+ - id: llm-deepseek
4
+ name: '@deepseek-ai/dsh-llm-deepseek'
5
+ config:
6
+ thinking: enabled
7
+ reasoningEffort: max
8
+ models:
9
+ - id: deepseek-v4-flash
10
+ - id: deepseek-v4-pro
11
+
12
+ - id: sandbox
13
+ name: '@deepseek-ai/dsh-sandbox-local'
14
+ - id: sandbox-policy
15
+ name: '@deepseek-ai/dsh-sandbox-policy'
16
+ config:
17
+ mode: !!js "process.env.DSH_PERMISSION_MODE ?? 'workspace-write'"
18
+ workspaceRoot: !!js process.cwd()
19
+ - id: subprocess
20
+ name: '@deepseek-ai/dsh-subprocess-local'
21
+ - id: bash
22
+ name: '@deepseek-ai/dsh-bash-sandbox'
23
+ config:
24
+ timeoutMs: 60000
25
+ - id: approval
26
+ name: '@deepseek-ai/dsh-user-approval'
27
+ config:
28
+ policy: !!js "process.env.DSH_PERMISSION_MODE === 'danger-full-access' ? 'never' : 'ask'"
29
+
30
+ - id: acp-agent
31
+ name: '@deepseek-ai/dsh-acp-demo'
32
+ config:
33
+ provider: deepseek-official
34
+ model: !!js "process.env.DSH_MODEL ?? 'deepseek-v4-pro'"
35
+ persistenceRoot: !!js "process.env.DEEPSEEK_HARNESS_SESSION_ROOT ?? './.sessions'"
36
+ workspaceContext:
37
+ maxBytes: 65536
38
+ persona: |
39
+ You are a capable coding and task assistant. Your working directory is {{cwd}}.
40
+ Use the available tools to complete the user's request. Verify changes when practical.
41
+ Keep the final answer concise and factual.
42
+
43
+ - id: token-meter
44
+ name: '@deepseek-ai/dsh-token-meter'
45
+ - id: compaction-basic
46
+ name: '@deepseek-ai/dsh-compaction-basic'
47
+ config:
48
+ thresholdRatio: 0.8
49
+ retainRatio: 0.08
50
+ maxTokens: 8192
51
+ compactionRetries: 1
52
+ - id: fs-sandbox
53
+ name: '@deepseek-ai/dsh-fs-sandbox'
54
+ config:
55
+ cwd: !!js process.cwd()
56
+ - id: fs-observation-policy
57
+ name: '@deepseek-ai/dsh-fs-observation-policy'
58
+ - id: tool-fs
59
+ name: '@deepseek-ai/dsh-tool-fs'
@@ -16,6 +16,7 @@ The Backend Agent handles tasks that require tools, file operations, or sustaine
16
16
  | CodeBuddy | Native ACP | Supports one-click install, requires user configuration | ★★★★☆ |
17
17
  | Codex | External ACP adapter | Supports one-click install of both the core and adapter, requires user configuration | ★★★★☆ |
18
18
  | Claude Code | External ACP adapter | Supports one-click install of both the core and adapter, requires user configuration | ★★★★☆ |
19
+ | DeepSeek | Native ACP (experimental) | Supports one-click install, requires a DeepSeek API key | ★★★★☆ |
19
20
 
20
21
  The recommendation rating reflects the current integration completeness, compatibility, and extent of real-world verification: five stars indicates a fully tested and recommended integration, while four stars indicates ongoing development or incomplete verification of the same scope.
21
22
 
@@ -25,10 +26,20 @@ Uninstalled backend agents can be installed locally with a unified command:
25
26
 
26
27
  ```bash
27
28
  qwenaudio install codex
29
+ qwenaudio install deepseek
28
30
  ```
29
31
 
30
32
  Before installation, a detection step runs to **only fill in missing components**: native ACP backends are ready to use once installed; if the core is missing, the core is installed; if the core is already installed and only the ACP adapter is missing, only the adapter is installed; if everything is ready, a prompt confirms availability. In the desktop settings page's "Backend Agent" list, an "Install" button appears at the end of rows for uninstalled backends that support one-click install, using the same installation logic as the CLI.
31
33
 
34
+ DeepSeek Harness is currently a Developer Preview. This initial integration
35
+ supports voice-triggered tasks, permission decisions, cancellation of the current
36
+ run, and final-result delivery. Its ACP endpoint does not yet expose historical
37
+ Session resume, Gateway MCP injection, or fine-grained tool progress. After
38
+ installation, run `dsh web` and configure the API key in DeepSeek's model
39
+ settings; `DEEPSEEK_API_KEY` remains available as a per-run override. Optionally
40
+ set `DEEPSEEK_HARNESS_MODEL` to
41
+ `deepseek-v4-pro` (default) or `deepseek-v4-flash`.
42
+
32
43
  View currently available backend agents:
33
44
 
34
45
  ```bash
@@ -17,6 +17,7 @@
17
17
  | CodeBuddy | 原生 ACP | 支持一键安装,需用户配置 | ★★★★☆ |
18
18
  | Codex | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
19
19
  | Claude Code | 外部 ACP 适配 | 支持一键安装本体与适配器,需用户配置 | ★★★★☆ |
20
+ | DeepSeek | 原生 ACP(实验性) | 支持一键安装,需 DeepSeek API Key | ★★★★☆ |
20
21
 
21
22
  推荐指数综合反映当前集成完整度、兼容性和实际验证程度:五星表示已经过充分测试的
22
23
  推荐集成,四星表示正在开发或尚未完成同等范围验证。
@@ -27,6 +28,7 @@
27
28
 
28
29
  ```bash
29
30
  qwenaudio install codex
31
+ qwenaudio install deepseek
30
32
  ```
31
33
 
32
34
  安装前先检测,**只补齐缺失的组件**:原生 ACP 后台装好即可用;本体缺失时装本体;
@@ -34,6 +36,12 @@ qwenaudio install codex
34
36
  的“后台 Agent”列表中,未安装且支持一键安装的后台行尾会显示“安装”按钮,与 CLI
35
37
  使用同一份安装逻辑。
36
38
 
39
+ DeepSeek Harness 当前处于 Developer Preview。初步接入支持语音发起任务、权限确认、
40
+ 取消当前执行和最终结果回传;其 ACP 暂不支持历史 Session 续接、Gateway MCP 注入与
41
+ 细粒度工具进度。安装后运行 `dsh web`,在 DeepSeek 的模型设置中配置 API Key;
42
+ `DEEPSEEK_API_KEY` 仍可作为单次运行覆盖。可用
43
+ `DEEPSEEK_HARNESS_MODEL` 选择 `deepseek-v4-pro`(默认)或 `deepseek-v4-flash`。
44
+
37
45
  查看当前可用的后台 Agent:
38
46
 
39
47
  ```bash
@@ -63,6 +63,7 @@ command:
63
63
 
64
64
  ```bash
65
65
  qwenaudio install codex
66
+ qwenaudio install deepseek
66
67
  ```
67
68
 
68
69
  - Before installation, it detects and only fills in missing components: a native ACP backend is
@@ -86,6 +87,19 @@ qwenaudio install codex
86
87
  the row, using the same installation logic as the CLI; script-type installations will pop up
87
88
  a native confirmation dialog.
88
89
 
90
+ DeepSeek Harness is currently an experimental integration. After installation,
91
+ run `dsh web` and configure the official API key in its model settings. The ACP
92
+ integration reuses that credential. Its model setting is intentionally separate
93
+ from other backends so Qwen or other provider model names are not forwarded to DeepSeek:
94
+
95
+ ```dotenv
96
+ AGENT_PROTOCOL=deepseek
97
+ # Optional: deepseek-v4-pro (default) or deepseek-v4-flash
98
+ DEEPSEEK_HARNESS_MODEL=deepseek-v4-pro
99
+ ```
100
+
101
+ `DEEPSEEK_API_KEY` may still be set as an explicit per-run override.
102
+
89
103
  ## Minimal Configuration
90
104
 
91
105
  The minimal configuration only requires real-time voice credentials:
@@ -56,6 +56,7 @@ JSON 输出与 CLI 使用同一个共享检测模块,可供桌面版和其他
56
56
 
57
57
  ```bash
58
58
  qwenaudio install codex
59
+ qwenaudio install deepseek
59
60
  ```
60
61
 
61
62
  - 安装前先检测,只补齐缺失的组件:原生 ACP 后台装好即可用;本体缺失时装本体;
@@ -71,6 +72,18 @@ qwenaudio install codex
71
72
  - 桌面版设置页的“后台 Agent”列表中,未安装且支持一键安装的后台行尾会显示
72
73
  “安装”按钮,与 CLI 使用同一份安装逻辑;脚本类安装会弹出原生确认框。
73
74
 
75
+ DeepSeek Harness 当前为实验性接入。安装后运行 `dsh web`,在模型设置中配置官方
76
+ API Key,ACP 接入会直接复用该凭据。它的模型配置独立于其他后台,避免把 Qwen 等
77
+ 模型名称误传给 DeepSeek:
78
+
79
+ ```dotenv
80
+ AGENT_PROTOCOL=deepseek
81
+ # 可选:deepseek-v4-pro(默认)或 deepseek-v4-flash
82
+ DEEPSEEK_HARNESS_MODEL=deepseek-v4-pro
83
+ ```
84
+
85
+ 仍可通过 `DEEPSEEK_API_KEY` 为单次运行显式覆盖凭据。
86
+
74
87
  ## 最小配置
75
88
 
76
89
  最小配置只需要填写实时语音凭据:
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": "1.9.1",
4
+ "version": "1.10.0",
5
5
  "description": "A realtime voice frontend for mainstream AI agents.",
6
6
  "author": "qwen-audio-agent contributors",
7
7
  "license": "Apache-2.0",
@@ -22,7 +22,8 @@
22
22
  "openclaw",
23
23
  "qoder",
24
24
  "kimi-code",
25
- "claude-code"
25
+ "claude-code",
26
+ "deepseek"
26
27
  ],
27
28
  "type": "module",
28
29
  "bin": {
@@ -34,6 +35,7 @@
34
35
  "cli/package.json",
35
36
  "config/frontend-agent/",
36
37
  "config/openclaw/openclaw.json5",
38
+ "config/deepseek-harness/cordis.yml",
37
39
  "config/codebuddy/workspace/.codebuddy/models.json",
38
40
  "docs/architecture.md",
39
41
  "docs/architecture.zh.md",
@@ -0,0 +1,59 @@
1
+ import { readFileSync, statSync } from 'node:fs'
2
+ import { homedir } from 'node:os'
3
+ import { join, resolve } from 'node:path'
4
+ import {
5
+ commandAvailable,
6
+ spawnAndProxy,
7
+ } from './lib/launcher.mjs'
8
+
9
+ const binary = process.env.DEEPSEEK_HARNESS_ACP_BIN || 'dsh-acp-demo'
10
+ const configPath = process.env.DEEPSEEK_HARNESS_CONFIG
11
+ || resolve(process.cwd(), 'cordis.yml')
12
+
13
+ function yamlScalar(value) {
14
+ const text = String(value || '').trim()
15
+ if (!text) return ''
16
+ if (text.startsWith('"') && text.endsWith('"')) {
17
+ try { return JSON.parse(text) } catch { return '' }
18
+ }
19
+ if (text.startsWith("'") && text.endsWith("'")) {
20
+ return text.slice(1, -1).replaceAll("''", "'")
21
+ }
22
+ return text.replace(/\s+#.*$/, '').trim()
23
+ }
24
+
25
+ // dsh web stores provider credentials in Harness's owner-only credential
26
+ // document. The standalone ACP composition does not boot the Web profile's
27
+ // credential plugin, so bridge that official store into this one child only.
28
+ function storedDeepSeekCredential(env = process.env) {
29
+ const dshHome = String(env.DSH_HOME || '').trim() || join(homedir(), '.dsh')
30
+ const path = join(dshHome, '.credentials.yaml')
31
+ try {
32
+ const stat = statSync(path)
33
+ if (process.platform !== 'win32' && (stat.mode & 0o077) !== 0) return ''
34
+ const line = readFileSync(path, 'utf8')
35
+ .split(/\r?\n/)
36
+ .find(value => /^\s*DEEPSEEK_API_KEY\s*:/.test(value))
37
+ return yamlScalar(line?.replace(/^\s*DEEPSEEK_API_KEY\s*:/, ''))
38
+ } catch {
39
+ return ''
40
+ }
41
+ }
42
+
43
+ const apiKey = String(process.env.DEEPSEEK_API_KEY || '').trim()
44
+ || storedDeepSeekCredential()
45
+ if (!apiKey) {
46
+ console.error('DeepSeek is not configured. Run `dsh web` and add your API key.')
47
+ process.exit(1)
48
+ }
49
+ if (!commandAvailable(binary)) {
50
+ console.error(
51
+ 'DeepSeek ACP runtime is not installed. Run: '
52
+ + 'qwenaudio install deepseek',
53
+ )
54
+ process.exit(1)
55
+ }
56
+
57
+ await spawnAndProxy(binary, ['--config', configPath], {
58
+ env: { ...process.env, DEEPSEEK_API_KEY: apiKey },
59
+ })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwen-audio-agent/server",
3
3
  "private": true,
4
- "version": "1.9.1",
4
+ "version": "1.10.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "node --watch src/index.mjs",
@@ -238,10 +238,10 @@ export class AcpBackendAdapter {
238
238
  backendAgent: this.coordinatorAgent || null,
239
239
  sessionModel: 'one-persistent-backend-agent',
240
240
  capabilities: {
241
- delegation: true,
241
+ delegation: this.profile.delegation !== false,
242
242
  permissions: true,
243
243
  backendUi: Boolean(this.profile.backendUi),
244
- nativeSessionHistory: true,
244
+ nativeSessionHistory: this.profile.nativeSessionHistory !== false,
245
245
  externalMcp: this.profile.externalMcp,
246
246
  },
247
247
  }
@@ -416,7 +416,7 @@ export class AcpBackendAdapter {
416
416
  }
417
417
  }
418
418
  options = await this.applyProfileSessionConfig(session, options)
419
- if (this.model) {
419
+ if (this.model && this.profile.processModelConfiguration !== true) {
420
420
  await this.forceSessionModel(session, options)
421
421
  }
422
422
  }
@@ -0,0 +1,53 @@
1
+ import { resolve } from 'node:path'
2
+ import { baseEnvironment, processAcpConnection } from './shared.mjs'
3
+
4
+ export const deepSeekHarnessBackendDriver = {
5
+ id: 'deepseek',
6
+ label: 'DeepSeek',
7
+
8
+ createProfile({
9
+ root,
10
+ directory,
11
+ cliPath,
12
+ model,
13
+ permissionMode,
14
+ sessionRoot,
15
+ }) {
16
+ return {
17
+ label: this.label,
18
+ acpConnection: processAcpConnection({
19
+ command: process.execPath,
20
+ args: [resolve(root, 'scripts/deepseek-harness-acp.mjs')],
21
+ cwd: directory,
22
+ env: {
23
+ ...baseEnvironment(),
24
+ ELECTRON_RUN_AS_NODE: '1',
25
+ DEEPSEEK_HARNESS_CONFIG: resolve(
26
+ root,
27
+ 'config/deepseek-harness/cordis.yml',
28
+ ),
29
+ DEEPSEEK_HARNESS_SESSION_ROOT: sessionRoot,
30
+ DEEPSEEK_HARNESS_ACP_BIN: cliPath,
31
+ DSH_MODEL: model || 'deepseek-v4-pro',
32
+ DSH_PERMISSION_MODE: permissionMode === 'full'
33
+ ? 'danger-full-access'
34
+ : 'workspace-write',
35
+ },
36
+ }),
37
+ // DeepSeek Harness ACP currently rejects non-empty mcpServers.
38
+ externalMcp: false,
39
+ sessionMcp: false,
40
+ nativeDelegation: false,
41
+ delegation: false,
42
+ nativeSessionHistory: false,
43
+ processModelConfiguration: true,
44
+ backendUi: false,
45
+ sessionInstructions: [
46
+ 'DeepSeek Harness ACP does not expose project Session management to',
47
+ 'the Gateway. Complete the requested work in this Session with the',
48
+ 'tools available to you. Do not claim to have opened or resumed a',
49
+ 'separate Session.',
50
+ ].join(' '),
51
+ }
52
+ },
53
+ }
@@ -1,6 +1,7 @@
1
1
  import { codeBuddyBackendDriver } from './codebuddy.mjs'
2
2
  import { claudeBackendDriver } from './claude.mjs'
3
3
  import { codexBackendDriver } from './codex.mjs'
4
+ import { deepSeekHarnessBackendDriver } from './deepseek-harness.mjs'
4
5
  import { genericAcpBackendDriver } from './generic-acp.mjs'
5
6
  import { localAcpBackendDrivers } from './local-acp.mjs'
6
7
  import { openClawBackendDriver } from './openclaw.mjs'
@@ -13,6 +14,7 @@ const drivers = new Map([
13
14
  codeBuddyBackendDriver,
14
15
  codexBackendDriver,
15
16
  claudeBackendDriver,
17
+ deepSeekHarnessBackendDriver,
16
18
  genericAcpBackendDriver,
17
19
  ].map(driver => [driver.id, driver]))
18
20
 
@@ -84,6 +84,10 @@ export function resolveBackendModels(env = process.env) {
84
84
  codeBuddy: name,
85
85
  codex: name,
86
86
  claude: common,
87
+ deepSeekHarness: String(
88
+ env.DEEPSEEK_HARNESS_MODEL
89
+ || (name.startsWith('deepseek-') ? name : ''),
90
+ ).trim(),
87
91
  acp: common,
88
92
  }
89
93
  }
@@ -293,6 +297,15 @@ export const config = {
293
297
  ? resolve(process.env.CLAUDE_CONFIG_DIR)
294
298
  : '',
295
299
  },
300
+ deepseek: {
301
+ model: backendModels.deepSeekHarness,
302
+ directory: resolveBackendWorkspace('deepseek'),
303
+ cliPath: String(process.env.DEEPSEEK_HARNESS_ACP_BIN || '').trim(),
304
+ sessionRoot: resolve(
305
+ runtimeEnvironment.configDirectory,
306
+ 'backends/deepseek-harness/sessions',
307
+ ),
308
+ },
296
309
  acp: {
297
310
  model: String(backendModels.acp).trim(),
298
311
  directory: resolveBackendWorkspace('acp'),
@@ -1,5 +1,6 @@
1
1
  import { spawn } from 'node:child_process'
2
2
  import { existsSync } from 'node:fs'
3
+ import { readFile } from 'node:fs/promises'
3
4
  import { readdir } from 'node:fs/promises'
4
5
  import { join } from 'node:path'
5
6
 
@@ -90,6 +91,23 @@ function openClawInitializationStatus({ env, pathExists = existsSync }) {
90
91
  return 'unknown'
91
92
  }
92
93
 
94
+ async function deepSeekCredentialStatus({ env, readFileImpl = readFile }) {
95
+ if (String(env.DEEPSEEK_API_KEY || '').trim()) return 'authenticated'
96
+ const home = String(env.DSH_HOME || env.HOME || env.USERPROFILE || '').trim()
97
+ if (!home) return 'unauthenticated'
98
+ const path = env.DSH_HOME
99
+ ? join(home, '.credentials.yaml')
100
+ : join(home, '.dsh', '.credentials.yaml')
101
+ try {
102
+ const content = await readFileImpl(path, 'utf8')
103
+ return /^\s*DEEPSEEK_API_KEY\s*:\s*(?!(?:["']{2})\s*$)\S+/m.test(content)
104
+ ? 'authenticated'
105
+ : 'unauthenticated'
106
+ } catch {
107
+ return 'unauthenticated'
108
+ }
109
+ }
110
+
93
111
  function runStatus(command, args, {
94
112
  env,
95
113
  spawnImpl = spawn,
@@ -141,7 +159,16 @@ export async function inspectBackendAuthentication(id, {
141
159
  run = runStatus,
142
160
  listCodeBuddyCredentials = codeBuddyCredentialFiles,
143
161
  pathExists = existsSync,
162
+ readCredentialFile = readFile,
144
163
  } = {}) {
164
+ if (id === 'deepseek') {
165
+ return {
166
+ status: await deepSeekCredentialStatus({
167
+ env,
168
+ readFileImpl: readCredentialFile,
169
+ }),
170
+ }
171
+ }
145
172
  if (id === 'codebuddy') {
146
173
  const files = await listCodeBuddyCredentials({ env, platform })
147
174
  // CodeBuddy 没有只读的 login status 命令。凭证目录为空可以确认未登录,
@@ -180,6 +180,61 @@ const definitions = new Map([
180
180
  },
181
181
  supportsFullPermission: true,
182
182
  }],
183
+ ['deepseek', {
184
+ id: 'deepseek',
185
+ label: 'DeepSeek',
186
+ workspaceEnvironment: 'DEEPSEEK_HARNESS_WORKSPACE',
187
+ setup: {
188
+ command: 'dsh',
189
+ executableEnvironment: 'DEEPSEEK_HARNESS_BIN',
190
+ integration: 'native',
191
+ adapterCommand: 'dsh-acp-demo',
192
+ adapterEnvironment: 'DEEPSEEK_HARNESS_ACP_BIN',
193
+ adapterRuntimeEnvironment: 'DEEPSEEK_HARNESS_ACP_RUNTIME',
194
+ managedAdapterFallback: false,
195
+ inspectAdapterIndependently: true,
196
+ },
197
+ lifecycle: {
198
+ installation: {
199
+ // Keep the ACP executable package last. If an earlier Developer
200
+ // Preview component fails, setup remains visibly incomplete and a
201
+ // retry fills the whole composition instead of skipping it.
202
+ steps: [
203
+ {
204
+ kind: 'npm',
205
+ label: 'DeepSeek CLI',
206
+ component: 'backend',
207
+ package: '@deepseek-ai/dsh@0.1.0-rc.6',
208
+ registry: 'https://registry.npmjs.org/',
209
+ },
210
+ ...[
211
+ '@deepseek-ai/dsh-llm-deepseek@0.1.0-rc.6',
212
+ '@deepseek-ai/dsh-sandbox-local@0.1.0-rc.6',
213
+ '@deepseek-ai/dsh-subprocess-local@0.1.0-rc.6',
214
+ '@deepseek-ai/dsh-bash-sandbox@0.1.0-rc.6',
215
+ '@deepseek-ai/dsh-token-meter@0.1.0-rc.6',
216
+ '@deepseek-ai/dsh-compaction-basic@0.1.0-rc.6',
217
+ '@deepseek-ai/dsh-fs-sandbox@0.1.0-rc.6',
218
+ '@deepseek-ai/dsh-fs-observation-policy@0.1.0-rc.6',
219
+ '@deepseek-ai/dsh-tool-fs@0.1.0-rc.6',
220
+ '@deepseek-ai/dsh-acp-demo@0.1.0-rc.6',
221
+ ].map((packageName, index, packages) => ({
222
+ kind: 'npm',
223
+ label: index === packages.length - 1 ? 'ACP Runtime' : '运行组件',
224
+ component: 'adapter',
225
+ package: packageName,
226
+ registry: 'https://registry.npmjs.org/',
227
+ })),
228
+ ],
229
+ },
230
+ configuration: { mode: 'backend-owned' },
231
+ authentication: {
232
+ command: 'dsh web',
233
+ hint: '首次使用请启动 DeepSeek,并在模型设置中配置 API Key。',
234
+ },
235
+ },
236
+ supportsFullPermission: true,
237
+ }],
183
238
  ['acp', {
184
239
  id: 'acp',
185
240
  label: 'ACP Agent',
@@ -44,7 +44,20 @@ function stepPackage(step, env) {
44
44
 
45
45
  function stepDisplay(step, env) {
46
46
  if (step.kind === 'script') return step.command
47
- return `npm install -g ${stepPackage(step, env)}`
47
+ const registry = clean(step.registry)
48
+ return `npm install -g${registry ? ` --registry=${registry}` : ''} ${
49
+ stepPackage(step, env)
50
+ }`
51
+ }
52
+
53
+ function npmStepArgs(step, env) {
54
+ const registry = clean(step.registry)
55
+ return [
56
+ 'install',
57
+ '-g',
58
+ ...(registry ? [`--registry=${registry}`] : []),
59
+ stepPackage(step, env),
60
+ ]
48
61
  }
49
62
 
50
63
  function stepTitle(step, index) {
@@ -436,7 +449,7 @@ export async function installBackend(id, {
436
449
  }
437
450
  }
438
451
  const result = step.kind === 'npm'
439
- ? await runStep(npmCommand, ['install', '-g', stepPackage(step, env)], {
452
+ ? await runStep(npmCommand, npmStepArgs(step, env), {
440
453
  env: npmRunEnv(resolvedEnv, npmCommand),
441
454
  spawnImpl,
442
455
  onOutput: (stream, chunk) => onProgress({
@@ -289,12 +289,16 @@ function inspectAdapter(spec, env, find) {
289
289
  issue: `${spec.adapterCommand} 不可用`,
290
290
  }
291
291
  }
292
- const npx = installedOnly ? '' : find('npx')
292
+ const npx = installedOnly || spec.managedAdapterFallback === false
293
+ ? ''
294
+ : find('npx')
293
295
  if (npx) return { ready: true, source: 'managed', path: npx }
294
296
  return {
295
297
  ready: false,
296
298
  issue: installedOnly
297
299
  ? `缺少 ACP Adapter ${spec.adapterCommand},桌面版需先手动安装`
300
+ : spec.managedAdapterFallback === false
301
+ ? `缺少 ACP Adapter ${spec.adapterCommand}`
298
302
  : `缺少 ${spec.adapterCommand},并且 npx 不可用`,
299
303
  }
300
304
  }
@@ -403,7 +407,7 @@ function inspectBackend(id, {
403
407
  }
404
408
  }
405
409
 
406
- const adapter = backend.ready
410
+ const adapter = backend.ready || spec.inspectAdapterIndependently
407
411
  ? inspectAdapter(spec, env, find)
408
412
  : { ready: spec.integration !== 'adapter', source: spec.integration }
409
413
  const issues = [backend.issue, adapter.issue].filter(Boolean)
@@ -25,7 +25,7 @@ const USER_CONFIG_TEMPLATE = [
25
25
  '# SPEECH_TO_SPEECH_REALTIME_URL=ws://127.0.0.1:8765/v1/realtime',
26
26
  '',
27
27
  '# 可选:选择后台 Agent;留空时仅使用前台实时语音聊天',
28
- '# 可选 openclaw、opencode、qoder、qwen、kimi、hermes、codebuddy、codex、claude、acp 或 none',
28
+ '# 可选 openclaw、opencode、qoder、qwen、kimi、hermes、codebuddy、codex、claude、deepseek、acp 或 none',
29
29
  'AGENT_PROTOCOL=',
30
30
  '# 权限模式:native(后台自行询问)或 full(最高权限;仅支持安全映射的后端)',
31
31
  '# QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE=native',
@@ -33,6 +33,7 @@ const USER_CONFIG_TEMPLATE = [
33
33
  '# QWEN_AUDIO_AGENT_BACKEND_MODEL=',
34
34
  '# 可选:QWEN_AUDIO_AGENT_BACKEND_AGENT=协调 Agent ID',
35
35
  '# Kimi Code 可复用原生登录,或设置官方 KIMI_MODEL_* 临时模型变量',
36
+ '# DeepSeek(Harness Developer Preview):DEEPSEEK_API_KEY=your-key',
36
37
  '# 通用 ACP:ACP_COMMAND=your-agent,ACP_ARGS=["--acp"]',
37
38
  '',
38
39
  '# 可选日志设置:默认 info、单文件 10 MiB、保留 5 份',
package/tui/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwen-audio-agent/tui",
3
3
  "private": true,
4
- "version": "1.9.1",
4
+ "version": "1.10.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "node src/index.mjs",