qwen-audio-agent 1.10.1 → 2.0.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/CONTRIBUTING.md +12 -4
- package/PRIVACY.md +29 -14
- package/README.md +104 -114
- package/README_ZH.md +92 -103
- package/SECURITY.md +15 -8
- package/THIRD_PARTY_NOTICES.md +10 -0
- package/cli/bin/qwenaudio.mjs +1 -0
- package/cli/package.json +1 -1
- package/cli/src/arguments.mjs +216 -16
- package/cli/src/config-command.mjs +46 -18
- package/cli/src/diagnostics.mjs +134 -0
- package/cli/src/gateway-service.mjs +12 -3
- package/cli/src/instance-lock.mjs +11 -3
- package/cli/src/launcher.mjs +348 -27
- package/cli/src/runtime.mjs +82 -17
- package/cli/src/webui.mjs +1 -3
- package/config/frontend-agent/PROMPT.md +43 -34
- package/desktop/src/desktop-presence.mjs +101 -0
- package/desktop/src/desktop-surface-layout.mjs +196 -0
- package/desktop/src/i18n.mjs +236 -0
- package/desktop/src/orb-placement.mjs +127 -0
- package/desktop/src/orb-shell.mjs +215 -0
- package/desktop/src/orb-url.mjs +5 -0
- package/desktop/src/orb-window.mjs +162 -0
- package/desktop/src/preload.cjs +132 -0
- package/desktop/src/security.mjs +72 -0
- package/desktop/src/settings-config.mjs +465 -0
- package/desktop/src/settings-store.mjs +247 -0
- package/desktop/src/skin-store.mjs +347 -0
- package/docs/architecture/deep-dive.md +576 -0
- package/docs/architecture/deep-dive.zh.md +445 -0
- package/docs/architecture/overview.md +56 -0
- package/docs/architecture/overview.zh.md +49 -0
- package/docs/backends/configuration.md +544 -0
- package/docs/backends/configuration.zh.md +501 -0
- package/docs/backends/extend.md +132 -0
- package/docs/backends/extend.zh.md +120 -0
- package/docs/backends/overview.md +35 -30
- package/docs/backends/overview.zh.md +40 -34
- package/docs/configuration/advanced.md +94 -0
- package/docs/configuration/advanced.zh.md +85 -0
- package/docs/configuration/backend.md +94 -0
- package/docs/configuration/backend.zh.md +94 -0
- package/docs/configuration/frontend.md +88 -0
- package/docs/configuration/frontend.zh.md +88 -0
- package/docs/configuration.md +82 -716
- package/docs/configuration.zh.md +77 -636
- package/docs/contract.md +316 -0
- package/docs/contract.zh.md +280 -0
- package/docs/desktop/examples/firefly.pet.json +45 -0
- package/docs/desktop/overview.md +71 -44
- package/docs/desktop/overview.zh.md +63 -49
- package/docs/desktop/pet-skin-spec.md +105 -0
- package/docs/desktop/pet-skin-spec.zh.md +97 -0
- package/docs/extensions.md +79 -0
- package/docs/extensions.zh.md +73 -0
- package/docs/gateway-protocol.md +708 -0
- package/docs/gateway-protocol.zh.md +654 -0
- package/docs/gateway-webrtc-client.md +280 -0
- package/docs/gateway-webrtc-client.zh.md +253 -0
- package/docs/getting-started/concepts.md +46 -0
- package/docs/getting-started/concepts.zh.md +46 -0
- package/docs/getting-started/install.md +59 -33
- package/docs/getting-started/install.zh.md +52 -33
- package/docs/getting-started/mobile.md +75 -0
- package/docs/getting-started/mobile.zh.md +64 -0
- package/docs/getting-started/quickstart.md +52 -33
- package/docs/getting-started/quickstart.zh.md +51 -32
- package/docs/getting-started/tui.md +55 -5
- package/docs/getting-started/tui.zh.md +53 -5
- package/docs/getting-started/webui.md +49 -0
- package/docs/getting-started/webui.zh.md +45 -0
- package/docs/guides/conversation.md +42 -0
- package/docs/guides/conversation.zh.md +39 -0
- package/docs/guides/knowledge.md +65 -0
- package/docs/guides/knowledge.zh.md +58 -0
- package/docs/guides/notes-reminders.md +43 -0
- package/docs/guides/notes-reminders.zh.md +43 -0
- package/docs/guides/skills.md +48 -0
- package/docs/guides/skills.zh.md +48 -0
- package/docs/guides/tasks.md +54 -0
- package/docs/guides/tasks.zh.md +48 -0
- package/docs/guides/vision.md +43 -0
- package/docs/guides/vision.zh.md +43 -0
- package/docs/guides/web-search.md +54 -0
- package/docs/guides/web-search.zh.md +48 -0
- package/docs/operations/gateway.md +83 -0
- package/docs/operations/gateway.zh.md +75 -0
- package/docs/operations/remote-access.md +122 -0
- package/docs/operations/remote-access.zh.md +122 -0
- package/docs/operations/troubleshooting.md +93 -0
- package/docs/operations/troubleshooting.zh.md +90 -0
- package/docs/qwen-audio-agent-three-layer-architecture.png +0 -0
- package/docs/qwen-audio-agent-three-layer-architecture.svg +128 -0
- package/docs/qwen-audio-agent-two-layer-architecture.png +0 -0
- package/docs/reference/a2a-backend-adapter.md +123 -0
- package/docs/reference/a2a-backend-adapter.zh.md +107 -0
- package/docs/reference/backend-adapter-sdk.md +157 -0
- package/docs/reference/backend-adapter-sdk.zh.md +141 -0
- package/docs/reference/cli.md +74 -0
- package/docs/reference/cli.zh.md +74 -0
- package/docs/reference/desktop-animations.md +32 -0
- package/docs/reference/desktop-animations.zh.md +27 -0
- package/docs/reference/frontend-evaluations.md +34 -0
- package/docs/reference/frontend-evaluations.zh.md +27 -0
- package/docs/reference/frontend-mcp.md +128 -0
- package/docs/reference/frontend-mcp.zh.md +116 -0
- package/docs/reference/frontend-openapi.md +91 -0
- package/docs/reference/frontend-openapi.zh.md +85 -0
- package/docs/reference/frontend-profile.md +71 -0
- package/docs/reference/frontend-profile.zh.md +62 -0
- package/docs/reference/knowledge.md +227 -0
- package/docs/reference/knowledge.zh.md +212 -0
- package/docs/reference/memory-provider.md +142 -0
- package/docs/reference/memory-provider.zh.md +124 -0
- package/docs/reference/memory.md +61 -100
- package/docs/reference/memory.zh.md +61 -86
- package/docs/reference/personalization.md +47 -0
- package/docs/reference/personalization.zh.md +47 -0
- package/docs/reference/preference-learning.md +46 -0
- package/docs/reference/preference-learning.zh.md +38 -0
- package/docs/resources/papers.md +3 -0
- package/docs/resources/papers.zh.md +3 -0
- package/docs/resources/planning.md +6 -0
- package/docs/resources/planning.zh.md +6 -0
- package/docs/resources/presentations.md +20 -0
- package/docs/resources/presentations.zh.md +18 -0
- package/docs/roadmap/gateway-client-protocol.md +130 -0
- package/docs/roadmap/gateway-client-protocol.zh.md +130 -0
- package/docs/roadmap/gateway-remote-access.md +202 -0
- package/docs/roadmap/gateway-remote-access.zh.md +172 -0
- package/docs/scenarios/ai-passport.md +83 -0
- package/docs/scenarios/ai-passport.zh.md +74 -0
- package/docs/scenarios/customer-service.md +56 -0
- package/docs/scenarios/customer-service.zh.md +53 -0
- package/docs/scenarios/index.md +25 -0
- package/docs/scenarios/index.zh.md +25 -0
- package/docs/scenarios/lightrag.md +97 -0
- package/docs/scenarios/lightrag.zh.md +92 -0
- package/docs/scenarios/memcode.md +11 -0
- package/docs/scenarios/memcode.zh.md +9 -0
- package/docs/scenarios/smart-cockpit.md +140 -0
- package/docs/scenarios/smart-cockpit.zh.md +114 -0
- package/docs/scenarios/voicemem.md +134 -0
- package/docs/scenarios/voicemem.zh.md +121 -0
- package/docs/scenarios/x-omni.md +94 -0
- package/docs/scenarios/x-omni.zh.md +83 -0
- package/docs/voice-agent-architecture-presentation.zh.md +1042 -0
- package/docs/voice-frontends/custom-provider.md +62 -0
- package/docs/voice-frontends/custom-provider.zh.md +61 -0
- package/docs/voice-frontends/google-live.md +56 -0
- package/docs/voice-frontends/google-live.zh.md +49 -0
- package/docs/voice-frontends/gpt-live.md +53 -0
- package/docs/voice-frontends/gpt-live.zh.md +46 -0
- package/docs/voice-frontends/minicpm-o.md +50 -0
- package/docs/voice-frontends/minicpm-o.zh.md +45 -0
- package/docs/voice-frontends/qwen-audio-realtime.md +79 -0
- package/docs/voice-frontends/qwen-audio-realtime.zh.md +71 -0
- package/docs/voice-frontends/qwen-omni-realtime.md +89 -0
- package/docs/voice-frontends/qwen-omni-realtime.zh.md +81 -0
- package/docs/voice-frontends/speech-to-speech.zh.md +27 -0
- package/docs/voice-frontends/stepfun.md +61 -0
- package/docs/voice-frontends/stepfun.zh.md +53 -0
- package/examples/README.md +112 -0
- package/examples/README_ZH.md +90 -0
- package/examples/ai-passport/README.md +152 -0
- package/examples/ai-passport/README_ZH.md +129 -0
- package/examples/ai-passport/device-relay.mjs +273 -0
- package/examples/ai-passport/docs/device-protocol.md +64 -0
- package/examples/ai-passport/docs/device-protocol.zh.md +51 -0
- package/examples/webrtc/.env.example +7 -0
- package/examples/webrtc/README.md +56 -0
- package/examples/webrtc/README_ZH.md +53 -0
- package/examples/webrtc/client.mjs +282 -0
- package/examples/webrtc/index.html +50 -0
- package/examples/webrtc/package.json +12 -0
- package/examples/webrtc/start.mjs +31 -0
- package/examples/webrtc/styles.css +2 -0
- package/package.json +252 -31
- package/scripts/audit-dependencies.mjs +80 -19
- package/scripts/check-docs-site.mjs +63 -0
- package/scripts/desktop-after-pack.mjs +11 -0
- package/scripts/release-check +20 -11
- package/scripts/release-plan.mjs +29 -0
- package/scripts/{claude-code-acp.mjs → runtime/claude-code-acp.mjs} +1 -1
- package/scripts/{codex-acp.mjs → runtime/codex-acp.mjs} +1 -1
- package/scripts/{deepseek-harness-acp.mjs → runtime/deepseek-harness-acp.mjs} +1 -1
- package/scripts/{lib → runtime}/launcher.mjs +16 -8
- package/scripts/{openclaw-gateway.mjs → runtime/openclaw-gateway.mjs} +3 -3
- package/scripts/{openclaw.mjs → runtime/openclaw.mjs} +17 -24
- package/scripts/{opencode-server.mjs → runtime/opencode-server.mjs} +4 -5
- package/scripts/{opencode.mjs → runtime/opencode.mjs} +2 -2
- package/scripts/runtime/pi-acp.mjs +51 -0
- package/scripts/{prepare-openclaw-config.mjs → runtime/prepare-openclaw-config.mjs} +1 -1
- package/scripts/{sync-openclaw-gateway-token.mjs → runtime/sync-openclaw-gateway-token.mjs} +1 -1
- package/scripts/set-version.mjs +22 -1
- package/scripts/sync-docs-site.mjs +116 -0
- package/scripts/verify-package.mjs +133 -10
- package/server/package.json +5 -7
- package/server/src/README.md +159 -0
- package/server/src/access/browser-pairing-page.mjs +18 -0
- package/server/src/access/device-connection.mjs +21 -0
- package/server/src/access/gateway-access.mjs +421 -0
- package/server/src/access/gateway-public-endpoint.mjs +156 -0
- package/server/src/access/tailscale-serve.mjs +212 -0
- package/server/src/app/bootstrap.mjs +7 -430
- package/server/src/app/frontend-runtime.mjs +77 -0
- package/server/src/app/gateway-application.mjs +545 -0
- package/server/src/app/gateway-http-routes.mjs +552 -0
- package/server/src/app/offline-notifications.mjs +30 -0
- package/server/src/app/optional-modules.mjs +6 -0
- package/server/src/app/session-conversation-history.mjs +103 -0
- package/server/src/backend/adapters/a2a/backend-adapter.mjs +1230 -0
- package/server/src/{agent/acp-backend-adapter.mjs → backend/adapters/acp/backend-adapter.mjs} +707 -682
- package/server/src/backend/adapters/acp/backend-factory.mjs +62 -0
- package/server/src/{agent/acp-backend-profile.mjs → backend/adapters/acp/backend-profile.mjs} +3 -3
- package/server/src/{agent/acp-backend-session-utils.mjs → backend/adapters/acp/backend-session-utils.mjs} +81 -55
- package/server/src/{agent → backend/adapters/acp}/builtin-mcp.mjs +1 -0
- package/server/src/backend/adapters/acp/capabilities.mjs +27 -0
- package/server/src/{agent/acp-client-factory.mjs → backend/adapters/acp/client-factory.mjs} +2 -2
- package/server/src/backend/adapters/acp/content.mjs +222 -0
- package/server/src/backend/adapters/acp/coordinator-contract.mjs +16 -0
- package/server/src/backend/adapters/acp/coordinator-instructions.mjs +19 -0
- package/server/src/{agent/backends → backend/adapters/acp/drivers}/claude.mjs +14 -2
- package/server/src/{agent/backends → backend/adapters/acp/drivers}/codebuddy.mjs +11 -3
- package/server/src/{agent/backends → backend/adapters/acp/drivers}/codex.mjs +12 -4
- package/server/src/{agent/backends → backend/adapters/acp/drivers}/deepseek-harness.mjs +14 -4
- package/server/src/{agent/backends → backend/adapters/acp/drivers}/generic-acp.mjs +11 -1
- package/server/src/{agent/backends → backend/adapters/acp/drivers}/local-acp.mjs +25 -1
- package/server/src/{agent/openclaw-adapter.mjs → backend/adapters/acp/drivers/openclaw-delegation.mjs} +3 -33
- package/server/src/{agent/backends → backend/adapters/acp/drivers}/openclaw.mjs +19 -17
- package/server/src/{agent/backends → backend/adapters/acp/drivers}/opencode.mjs +12 -2
- package/server/src/backend/adapters/acp/drivers/pi.mjs +49 -0
- package/server/src/backend/adapters/acp/drivers/registry.mjs +92 -0
- package/server/src/{agent/backends → backend/adapters/acp/drivers}/shared.mjs +3 -7
- package/server/src/backend/adapters/acp/input-broker.mjs +135 -0
- package/server/src/backend/adapters/acp/keyed-serial-executor.mjs +18 -0
- package/server/src/backend/adapters/acp/permission-broker.mjs +227 -0
- package/server/src/{agent/acp-process-client.mjs → backend/adapters/acp/process-client.mjs} +154 -40
- package/server/src/backend/adapters/acp/request-signal.mjs +5 -0
- package/server/src/backend/adapters/acp/runtime-state.mjs +136 -0
- package/server/src/backend/adapters/acp/session-configuration.mjs +228 -0
- package/server/src/backend/adapters/acp/session-registry.mjs +153 -0
- package/server/src/{agent/acp-session-tools.mjs → backend/adapters/acp/session-tools.mjs} +17 -6
- package/server/src/backend/adapters/agent-client.mjs +191 -0
- package/server/src/backend/adapters/muse/backend-adapter.mjs +914 -0
- package/server/src/{agent/backend-adapter.mjs → backend/agent-error.mjs} +0 -6
- package/server/src/{agent/backend-availability.mjs → backend/availability.mjs} +24 -1
- package/server/src/backend/backend-adapter-conformance.mjs +116 -0
- package/server/src/backend/backend-adapter-sdk.mjs +68 -0
- package/server/src/backend/backend-port.mjs +60 -0
- package/server/src/backend/backend-work-input.mjs +14 -0
- package/server/src/backend/backend-work-runtime.mjs +63 -0
- package/server/src/client/active-client-leases.mjs +75 -0
- package/server/src/{voice → client}/active-voice-clients.mjs +3 -3
- package/server/src/client/client-action-port.mjs +164 -0
- package/server/src/client/client-command-runtime.mjs +185 -0
- package/server/src/client/client-event-router.mjs +257 -0
- package/server/src/client/presence-controller.mjs +88 -0
- package/server/src/conversation/conversation-sync.mjs +128 -28
- package/server/src/conversation/frontend-agent-context.mjs +20 -38
- package/server/src/conversation/frontend-conversation-projection.mjs +37 -0
- package/server/src/conversation/frontend-notes.mjs +84 -5
- package/server/src/conversation/session-digest.mjs +291 -0
- package/server/src/conversation/session-summariser.mjs +176 -0
- package/server/src/conversation/task-result-projector.mjs +3 -1
- package/server/src/core/backend-events.mjs +27 -0
- package/server/src/core/citation.mjs +83 -0
- package/server/src/core/config.mjs +232 -59
- package/server/src/core/frontend-profile.mjs +183 -0
- package/server/src/core/gateway-protocol.mjs +163 -0
- package/server/src/core/json-snapshot-store.mjs +177 -0
- package/server/src/core/llm/openai-compatible-chat.mjs +58 -0
- package/server/src/{conversation/memory-audit.mjs → core/operation-audit.mjs} +5 -7
- package/server/src/core/request-security.mjs +55 -7
- package/server/src/core/sensitive-content.mjs +28 -0
- package/server/src/core/versioned-json-store.mjs +99 -0
- package/server/src/core/websocket-send.mjs +41 -0
- package/server/src/core/work-authorization.mjs +110 -0
- package/server/src/core/work-input-request.mjs +90 -0
- package/server/src/delivery/agent-delivery.mjs +66 -0
- package/server/src/delivery/gateway-system-event.mjs +132 -0
- package/server/src/frontend/frontend-tools.mjs +178 -0
- package/server/src/frontend/mcp-tool-discovery.mjs +21 -0
- package/server/src/frontend/optional-features.mjs +6 -0
- package/server/src/frontend/retrieval/frontend-retrieval-runtime.mjs +84 -0
- package/server/src/frontend/retrieval/providers/bing.mjs +172 -0
- package/server/src/frontend/retrieval/providers/factory.mjs +30 -0
- package/server/src/frontend/retrieval/providers/mcp.mjs +259 -0
- package/server/src/frontend/retrieval/providers/so360.mjs +191 -0
- package/server/src/frontend/retrieval/providers/web-retrieval.mjs +30 -0
- package/server/src/frontend/retrieval/safe-url-fetcher.mjs +283 -0
- package/server/src/frontend/retrieval/web-search-provider.mjs +30 -0
- package/server/src/frontend/tools/agent-task-runtime.mjs +835 -0
- package/server/src/frontend/tools/client-tool-source.mjs +49 -0
- package/server/src/frontend/tools/features/agent-task-tools.mjs +148 -0
- package/server/src/frontend/tools/features/core-tools.mjs +31 -0
- package/server/src/frontend/tools/features/personal-tools.mjs +96 -0
- package/server/src/frontend/tools/features/retrieval-tools.mjs +217 -0
- package/server/src/frontend/tools/features/schedule-tools.mjs +132 -0
- package/server/src/frontend/tools/frontend-tool-context.mjs +39 -0
- package/server/src/frontend/tools/frontend-tool-loop.mjs +144 -0
- package/server/src/frontend/tools/frontend-tool-registry.mjs +230 -0
- package/server/src/frontend/tools/frontend-tool-source.mjs +60 -0
- package/server/src/frontend/tools/mcp/frontend-mcp-client.mjs +320 -0
- package/server/src/frontend/tools/mcp/frontend-mcp-config.mjs +280 -0
- package/server/src/frontend/tools/openapi/frontend-openapi-adapter.mjs +544 -0
- package/server/src/frontend/tools/openapi/frontend-openapi-config.mjs +191 -0
- package/server/src/frontend/tools/spawn-thinking-tool.mjs +42 -0
- package/server/src/frontend/tools/tool-call-handler.mjs +631 -0
- package/server/src/frontend/tools/tool-result.mjs +14 -0
- package/server/src/{voice → frontend}/tools/turn-transcripts.mjs +17 -0
- package/server/src/index.mjs +43 -9
- package/server/src/knowledge/frontend.mjs +7 -0
- package/server/src/knowledge/library-service.mjs +81 -0
- package/server/src/knowledge/module.mjs +131 -0
- package/server/src/knowledge/provider.mjs +289 -0
- package/server/src/knowledge/providers/local/document-converter.mjs +37 -0
- package/server/src/knowledge/providers/local/library.mjs +445 -0
- package/server/src/knowledge/providers/local/provider.mjs +217 -0
- package/server/src/knowledge/providers/local/summariser.mjs +138 -0
- package/server/src/knowledge/runtime.mjs +128 -0
- package/server/src/knowledge/tools.mjs +73 -0
- package/server/src/memory/PROMPT.md +15 -0
- package/server/src/memory/context.mjs +62 -0
- package/server/src/memory/frontend.mjs +18 -0
- package/server/src/{conversation/memory-extractor.mjs → memory/learning/extractor.mjs} +103 -57
- package/server/src/memory/learning/preference-candidate-store.mjs +39 -0
- package/server/src/memory/learning/preference-candidates.mjs +554 -0
- package/server/src/memory/learning/preference-promoter.mjs +302 -0
- package/server/src/memory/learning/profile-observer.mjs +473 -0
- package/server/src/memory/module.mjs +141 -0
- package/server/src/memory/provider-factory.mjs +48 -0
- package/server/src/memory/provider.mjs +120 -0
- package/server/src/{conversation/markdown-context-store.mjs → memory/providers/markdown/context-store.mjs} +56 -15
- package/server/src/{conversation/frontend-memory-service.mjs → memory/providers/markdown/provider.mjs} +17 -2
- package/server/src/memory/providers/voicemem/provider.mjs +567 -0
- package/server/src/memory/runtime.mjs +227 -0
- package/server/src/memory/session-observer.mjs +61 -0
- package/server/src/memory/tools.mjs +188 -0
- package/server/src/orchestration/session-task-coordinator.mjs +225 -0
- package/server/src/orchestration/task-operations.mjs +222 -0
- package/server/src/process/backend-drivers/openclaw.mjs +14 -0
- package/server/src/process/backend-drivers/registry.mjs +24 -2
- package/server/src/process/managed-backend.mjs +12 -8
- package/server/src/session/session-journal-format.mjs +38 -0
- package/server/src/session/session-journal-inspection.mjs +29 -0
- package/server/src/session/session-journal-reader.mjs +76 -0
- package/server/src/session/session-journal-registry.mjs +244 -0
- package/server/src/session/session-journal-retention.mjs +88 -0
- package/server/src/session/session-journal.mjs +142 -0
- package/server/src/session/session-replay.mjs +54 -0
- package/server/src/task/permission-policy.mjs +168 -0
- package/server/src/task/recurrence.mjs +202 -0
- package/server/src/task/reminder-scheduler.mjs +89 -10
- package/server/src/task/task-artifact.mjs +152 -0
- package/server/src/task/task-events.mjs +24 -0
- package/server/src/task/task-manager.mjs +533 -438
- package/server/src/task/task-notification-queue.mjs +131 -0
- package/server/src/task/task-recovery.mjs +56 -0
- package/server/src/task/task-repository.mjs +76 -0
- package/server/src/task/task-state.mjs +203 -0
- package/server/src/task/task-store.mjs +16 -3
- package/server/src/transport/agui-event-projector.mjs +42 -0
- package/server/src/transport/gateway-client-protocol-session.mjs +228 -0
- package/server/src/transport/gateway-client-replay-buffer.mjs +57 -0
- package/server/src/transport/gateway-client-transport.mjs +569 -0
- package/server/src/transport/gateway-task-event-projector.mjs +80 -0
- package/server/src/transport/sse-keepalive.mjs +45 -0
- package/server/src/transport/webrtc/config.mjs +16 -0
- package/server/src/transport/webrtc/media-process.mjs +164 -0
- package/server/src/transport/webrtc/media-worker.mjs +71 -0
- package/server/src/transport/webrtc/media.mjs +265 -0
- package/server/src/transport/webrtc/pcm.mjs +61 -0
- package/server/src/transport/webrtc/protocol.mjs +222 -0
- package/server/src/transport/webrtc/routes.mjs +144 -0
- package/server/src/voice/announcement/announcement-manager.mjs +120 -37
- package/server/src/voice/announcement/announcement-window.mjs +4 -4
- package/server/src/voice/announcement/progress-announcement-manager.mjs +240 -0
- package/server/src/voice/announcement/task-announcement-runtime.mjs +61 -0
- package/server/src/voice/input-arbitration.mjs +158 -0
- package/server/src/voice/input-asset-registry.mjs +164 -0
- package/server/src/voice/providers/dashscope.mjs +90 -25
- package/server/src/voice/providers/doubao-seeduplex-protocol.mjs +264 -0
- package/server/src/voice/providers/doubao-seeduplex.mjs +115 -0
- package/server/src/voice/providers/ga-protocol.mjs +4 -0
- package/server/src/voice/providers/google-live-protocol.mjs +257 -0
- package/server/src/voice/providers/google-live.mjs +131 -0
- package/server/src/voice/providers/gpt-live.mjs +114 -0
- package/server/src/voice/providers/minicpm-o-protocol.mjs +205 -0
- package/server/src/voice/providers/minicpm-o.mjs +91 -0
- package/server/src/voice/providers/openai-compatible-protocol.mjs +7 -0
- package/server/src/voice/providers/provider-registry.mjs +304 -0
- package/server/src/voice/providers/registry.mjs +71 -206
- package/server/src/voice/providers/s2s.mjs +21 -22
- package/server/src/voice/providers/stepfun-protocol.mjs +44 -0
- package/server/src/voice/providers/stepfun.mjs +97 -0
- package/server/src/voice/realtime-agent-delivery-runtime.mjs +61 -0
- package/server/src/voice/realtime-connection-status.mjs +20 -0
- package/server/src/voice/realtime-errors.mjs +8 -0
- package/server/src/voice/realtime-input-runtime.mjs +336 -0
- package/server/src/voice/realtime-presentation-runtime.mjs +692 -0
- package/server/src/voice/realtime-provider-extension.mjs +8 -0
- package/server/src/voice/realtime-provider-session.mjs +376 -0
- package/server/src/voice/realtime-provider.mjs +647 -127
- package/server/src/voice/realtime-recovery-context.mjs +63 -0
- package/server/src/voice/realtime-response-slot.mjs +46 -0
- package/server/src/voice/realtime-session-runtime.mjs +1194 -0
- package/server/src/voice/realtime-task-presentation.mjs +132 -0
- package/server/src/voice/realtime-turn-state.mjs +156 -0
- package/server/src/voice/response-context.mjs +2 -2
- package/server/src/voice/response-guards/index.mjs +4 -2
- package/server/src/voice/response-guards/reserved-protocol-envelope.mjs +35 -0
- package/server/src/voice/response-lifecycle.mjs +1 -0
- package/server/src/voice/session-observers.mjs +30 -0
- package/server/src/voice/turn-citations.mjs +87 -0
- package/server/src/voice/turn-correlation.mjs +34 -7
- package/server/src/voice/visual-input-buffer.mjs +107 -0
- package/shared/{backend-auth-status.mjs → backend/auth-status.mjs} +118 -3
- package/shared/backend/catalog.mjs +550 -0
- package/shared/backend/environment.mjs +103 -0
- package/shared/{backend-install.mjs → backend/install.mjs} +42 -20
- package/shared/{backend-lifecycle.mjs → backend/lifecycle.mjs} +2 -2
- package/shared/{backend-onboarding.mjs → backend/onboarding.mjs} +2 -54
- package/shared/backend/runtime-package.mjs +35 -0
- package/shared/{backend-setup.mjs → backend/setup.mjs} +30 -13
- package/shared/citation-display.mjs +29 -0
- package/shared/client-input-capabilities.mjs +25 -0
- package/shared/client-paths.mjs +11 -0
- package/shared/conversation-history.mjs +15 -0
- package/shared/conversation-session.mjs +11 -0
- package/shared/electron-host.cjs +118 -0
- package/shared/file-transaction-lock.mjs +180 -0
- package/shared/gateway/access-client.mjs +63 -0
- package/shared/gateway/client-profiles.mjs +31 -0
- package/shared/gateway/client-sdk.mjs +479 -0
- package/shared/gateway/client-state.mjs +106 -0
- package/shared/gateway/connection-profiles.mjs +123 -0
- package/shared/gateway/file-credential-store.mjs +55 -0
- package/shared/gateway/http-client.mjs +116 -0
- package/shared/{gateway-instance-lock.mjs → gateway/lease.mjs} +12 -12
- package/shared/gateway/options.mjs +44 -0
- package/shared/gateway/process.mjs +321 -0
- package/shared/gateway/remote-access.mjs +295 -0
- package/shared/gateway/setup.mjs +56 -0
- package/shared/gateway/url-policy.mjs +13 -0
- package/shared/gateway/webrtc-browser.mjs +262 -0
- package/shared/gateway/webrtc-message.mjs +58 -0
- package/shared/gateway/webrtc.mjs +52 -0
- package/shared/gateway/websocket-auth.mjs +39 -0
- package/shared/input-parts.mjs +284 -0
- package/shared/logger.mjs +2 -5
- package/shared/memory-provider-catalog.mjs +10 -0
- package/shared/permission-decisions.mjs +8 -0
- package/shared/process-path.mjs +351 -0
- package/shared/protocol/agui-events.mjs +27 -0
- package/shared/protocol/gateway-client-protocol.mjs +619 -0
- package/shared/protocol/gateway-events.mjs +357 -0
- package/shared/{realtime-events.mjs → protocol/realtime-events.mjs} +40 -2
- package/shared/realtime-model-catalog.mjs +121 -5
- package/shared/realtime-provider-catalog.mjs +71 -79
- package/shared/realtime-provider-definitions.mjs +317 -0
- package/shared/runtime-crypto.mjs +14 -0
- package/shared/runtime-environment.mjs +114 -260
- package/shared/runtime-paths.mjs +49 -0
- package/shared/session-events.mjs +78 -0
- package/shared/skill-library.mjs +231 -0
- package/shared/web-search-configuration.mjs +24 -0
- package/tui/package.json +2 -2
- package/tui/src/index.mjs +274 -797
- package/tui/src/input-parts.mjs +232 -0
- package/tui/src/playback.mjs +105 -0
- package/tui/src/runtime-configuration.mjs +222 -0
- package/tui/src/terminal-commands.mjs +5 -0
- package/tui/src/terminal-renderers.mjs +672 -0
- package/tui/src/text-cli.mjs +247 -0
- package/web/dist/assets/index-BRaiI-dW.js +91 -0
- package/web/dist/assets/index-D9k8R2JY.css +1 -0
- package/web/dist/assets/microphone-audio-worklet-processor-DvqhgtX_.js +24 -0
- package/web/dist/index.html +2 -2
- package/config/codebuddy/workspace/.codebuddy/models.json +0 -19
- package/docs/architecture.md +0 -401
- package/docs/architecture.zh.md +0 -325
- package/scripts/lib/launcher.test.mjs +0 -108
- package/scripts/start.mjs +0 -43
- package/scripts/test/memory-extractor-e2e.mjs +0 -197
- package/scripts/test/memory-gateway-smoke.mjs +0 -133
- package/server/src/agent/acp-session-registry.mjs +0 -107
- package/server/src/agent/agent-client.mjs +0 -203
- package/server/src/agent/backend-agent-instructions.mjs +0 -17
- package/server/src/agent/backends/registry.mjs +0 -34
- package/server/src/agent/coordinator.mjs +0 -313
- package/server/src/voice/frontend-tools.mjs +0 -273
- package/server/src/voice/realtime-gateway.mjs +0 -2034
- package/server/src/voice/response-guards/action-promise.mjs +0 -64
- package/server/src/voice/session-permission-policy.mjs +0 -56
- package/server/src/voice/tools/tool-call-handler.mjs +0 -1070
- package/server/src/voice/wake-word/model-manager.mjs +0 -121
- package/server/src/voice/wake-word/sherpa-detector.mjs +0 -85
- package/shared/backend-catalog.mjs +0 -276
- package/shared/gateway-client.mjs +0 -13
- package/web/dist/assets/index-4IeKEmc-.js +0 -38
- package/web/dist/assets/index-C9BCbA95.css +0 -1
- /package/config/{deepseek-harness → backends/deepseek-harness}/cordis.yml +0 -0
- /package/config/{openclaw → backends/openclaw}/openclaw.json5 +0 -0
- /package/server/src/{agent/backends → backend/adapters/acp/drivers}/private-file.mjs +0 -0
- /package/server/src/{core/memory-scopes.mjs → memory/scopes.mjs} +0 -0
package/CONTRIBUTING.md
CHANGED
|
@@ -21,12 +21,16 @@ npm run build
|
|
|
21
21
|
npm run release:check
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
桌面打包相关改动还需运行 `npm run test:desktop-package`:它构建临时未签名成品,
|
|
25
|
+
检查 ASAR 与外置资源、Electron 版本,并用隔离配置启动及关闭成品中的 Gateway。
|
|
26
|
+
该测试不调用真实语音服务或后台 Agent,macOS / Windows CI 都会执行。
|
|
27
|
+
|
|
24
28
|
提交前请确保没有把 `.env`、API Key、用户档案、任务状态、日志或后台工作目录加入
|
|
25
29
|
版本控制。
|
|
26
30
|
|
|
27
31
|
## 变更原则
|
|
28
32
|
|
|
29
|
-
- 保持 Realtime 前台与后台 Agent 的边界,遵循 `docs/architecture.md`。
|
|
33
|
+
- 保持 Realtime 前台与后台 Agent 的边界,遵循 `docs/architecture/deep-dive.md`。
|
|
30
34
|
- 修复应包含覆盖失败场景的测试。
|
|
31
35
|
- 避免在无关变更中重排或重写大段代码。
|
|
32
36
|
- 新配置必须有安全默认值,并同步更新 `.env.example` 与配置文档。
|
|
@@ -34,6 +38,10 @@ npm run release:check
|
|
|
34
38
|
|
|
35
39
|
## Pull Request
|
|
36
40
|
|
|
41
|
+
新增或更新 `examples/` 时,请遵循[示例贡献规范](examples/README_ZH.md)
|
|
42
|
+
([English](examples/README.md))。规范统一规定八项 README 内容、中英文对齐要求
|
|
43
|
+
及审核清单,作为示例贡献的明确审核依据。
|
|
44
|
+
|
|
37
45
|
请在 PR 中说明问题、修复方式、验证命令和兼容性影响。涉及网络、权限、持久化、
|
|
38
46
|
进程管理或发布流程的变更,应明确列出安全影响和回滚方式。
|
|
39
47
|
|
|
@@ -55,9 +63,9 @@ npm run version:set -- 0.6.0-beta.1 # 指定预发布版本
|
|
|
55
63
|
更新版本后必须同步维护 `CHANGELOG.md` 并运行 `npm run release:check`。发布改动
|
|
56
64
|
应从专用分支提交,例如 `release/0.11.0` 或 `codex/release-0.11.0`。Release PR
|
|
57
65
|
合并到 `main` 后,工作流会确认版本确实发生变化、版本对应的 Changelog 存在且
|
|
58
|
-
完整检查通过,然后自动创建 `v0.11.0`
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
完整检查通过,然后自动创建 `v0.11.0` 标签,构建 Universal macOS 和 Windows
|
|
67
|
+
桌面版。macOS 完成 Developer ID 签名和 Apple 公证,两端成品均通过启动检查后,
|
|
68
|
+
再以 npm provenance 发布公共包,并把安装包、ZIP 与更新元数据上传到 GitHub Release。
|
|
61
69
|
|
|
62
70
|
普通 PR 合并或未改变版本号的 `main` 更新不会触发发布。若发布在创建标签、上传
|
|
63
71
|
npm 或生成 Release 之间中断,可从 GitHub Actions 手动运行 Release 工作流,并
|
package/PRIVACY.md
CHANGED
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
# Privacy
|
|
2
2
|
|
|
3
|
-
qwen-audio-agent
|
|
4
|
-
|
|
3
|
+
qwen-audio-agent 的编排运行时由用户自行部署,不包含内置遥测、广告分析或自动崩溃上报。
|
|
4
|
+
语音对话、工具调用与后台工作可能与用户选择的外部服务交换数据;是否离开本机取决于配置。
|
|
5
5
|
|
|
6
6
|
## 数据流向
|
|
7
7
|
|
|
8
8
|
- 默认情况下,麦克风音频、实时转写上下文和模型回复请求会发送到阿里云
|
|
9
9
|
DashScope 的 Qwen Audio Realtime 服务。若用户配置其他兼容服务,则数据发送到
|
|
10
10
|
该服务。
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
- WebUI 仅在用户主动打开相机并开启实时视觉后,才会将有界 JPEG 帧经 Gateway
|
|
12
|
+
发送给当前 Realtime Provider。停止实时视觉即停止发送;Gateway 不把这些帧写入
|
|
13
|
+
对话历史、任务状态或本地文件,Provider 的后续处理受其隐私政策约束。
|
|
14
|
+
- 工作指令、所需附件与上下文会发送给用户选择的后台 Agent,结果再返回前台。
|
|
15
|
+
后台可通过 ACP、A2A 或自定义接口接入本机或远程服务,并使用其配置的模型、
|
|
16
|
+
工具、MCP 与项目文件;这些服务各自的隐私政策同样适用。
|
|
17
|
+
- 开启前台 MCP 或联网工具后,调用参数会交给对应工具或服务,返回内容可进入模型上下文。
|
|
18
|
+
`stdio` MCP 在 Gateway 主机启动进程;HTTP/SSE MCP 可连接远程服务。搜索服务会收到
|
|
19
|
+
搜索词,网页读取会访问目标站点。是否调用后台 Agent 与这些前台工具的数据流无关。
|
|
20
|
+
- 记忆与资料库默认实现保存于 Gateway 主机。启用文本模型辅助整理时,相关对话或文档
|
|
21
|
+
片段会交给所配置的模型;复杂文档转换使用后台的隔离执行会话,检索片段会交给语音前台。
|
|
22
|
+
若配置外部 Memory/Knowledge Provider,查询、写入与文档处理使用该 Provider;
|
|
23
|
+
声明支持会话或音频观察的记忆 Provider 还可能接收对话或音频。请检查其配置与隐私政策。
|
|
15
24
|
- Markdown 中的远程图片、音频和视频默认不会自动加载。用户点击加载或打开链接
|
|
16
25
|
后,目标站点可能获知用户的 IP 地址和浏览器信息。
|
|
17
26
|
|
|
18
27
|
## 本地数据
|
|
19
28
|
|
|
20
|
-
|
|
29
|
+
Gateway 的用户档案、长期记忆、任务状态、后台工作目录和配置默认保存在
|
|
21
30
|
`~/.config/qwaudio/`。API Key 等凭据不应写入仓库、对话或用户档案。卸载应用不会
|
|
22
|
-
|
|
31
|
+
自动删除该目录,避免意外丢失用户数据。桌面版的皮肤、界面偏好与连接凭据保存在
|
|
32
|
+
Electron 的客户端数据目录,移动端与浏览器也各自保存连接状态;远程连接不会把
|
|
33
|
+
Gateway 的整份配置同步到客户端。
|
|
23
34
|
|
|
24
35
|
运行日志默认保存在 `~/.config/qwaudio/logs/`,不会自动上传。日志系统会脱敏常见
|
|
25
36
|
凭据字段和 Bearer/API Key 文本,并且默认不记录音频、转写正文、模型回复正文、
|
|
@@ -28,12 +39,16 @@ qwen-audio-agent 是本地运行的语音前台,不包含内置遥测、广告
|
|
|
28
39
|
|
|
29
40
|
## 远程部署
|
|
30
41
|
|
|
31
|
-
Gateway
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
Gateway 默认只监听本机。显式 `--lan` 允许可信局域网访问,但 HTTP/WS 不加密传输;
|
|
43
|
+
不要将这一入口转发到公网。跨网络可使用官方 Tailscale 的私有 Tailnet 与 HTTPS Serve,
|
|
44
|
+
或自行部署带可信证书的 HTTPS 反向代理。客户端需配对或使用访问 Token;同一 Tailnet
|
|
45
|
+
不替代 Gateway 的设备授权。
|
|
46
|
+
|
|
47
|
+
部署者负责防火墙、代理、日志保护与数据保留策略。配对链接含设备凭据,不应公开分享;
|
|
48
|
+
设备丢失或链接泄露后应撤销凭据。配置 Tailscale 时,其网络连接与账户信息处理也受
|
|
49
|
+
Tailscale 隐私政策约束。操作说明见[远程连接与配对](docs/operations/remote-access.zh.md)。
|
|
34
50
|
|
|
35
51
|
## 项目边界
|
|
36
52
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
合适的部署方式。
|
|
53
|
+
本项目无法控制用户选择的模型、后台 Agent、MCP、记忆、知识库、网络服务及第三方
|
|
54
|
+
站点如何处理数据。正式使用前,请审阅相关服务的隐私条款并选择合适的部署方式。
|
package/README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# Qwen Audio Agent
|
|
2
2
|
|
|
3
|
-
[中文](README_ZH.md) | [English](README.md)
|
|
3
|
+
[中文](README_ZH.md) | [English](README.md) | [User Guide](https://qwenaudio.github.io/qwen-audio-agent/) | [Quickstart](https://qwenaudio.github.io/qwen-audio-agent/getting-started/quickstart) | [Paper](https://arxiv.org/pdf/2609.25195)
|
|
4
4
|
|
|
5
5
|
[](https://github.com/QwenAudio/qwen-audio-agent/actions/workflows/ci.yml)
|
|
6
6
|
[](https://www.npmjs.com/package/qwen-audio-agent)
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
[](LICENSE)
|
|
9
|
+
[](https://arxiv.org/abs/2609.25195)
|
|
9
10
|
[](#community)
|
|
10
11
|
|
|
11
12
|
## Agent Presence
|
|
@@ -26,42 +27,18 @@ tells you:
|
|
|
26
27
|
|
|
27
28
|
## News
|
|
28
29
|
|
|
29
|
-
- **2026-
|
|
30
|
-
|
|
31
|
-
- **2026-08-
|
|
32
|
-
|
|
33
|
-
- **2026-08-13 · [v1.9.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.9.1)**
|
|
34
|
-
🖥️ Improved desktop task card presentation and fixed several known issues.
|
|
30
|
+
- **2026-09-23 · [v2.0.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v2.0.0)**
|
|
31
|
+
🏗️ Rebuilt the orchestration runtime with a unified client protocol and ACP / A2A backend integration; 🎙️ expanded [voice and video model support](#voice-frontends); 🧠 enhanced frontend tools, memory, and knowledge libraries; 💬 added a desktop conversation panel and remote mobile access; 🧩 added [customer service, smart cockpit, digital human, and other examples](#examples-and-scenario-expansion); 📄 published the [technical report](https://arxiv.org/pdf/2609.25195).
|
|
32
|
+
- **2026-08-20 · [v1.11.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.11.0)**
|
|
33
|
+
🧩 Adds embeddable Gateway and Realtime Provider extensions; 🛠️ supports installing and managing Agent Skills; 📎 adds multimodal input to the TUI; 🎨 links pet animations to runtime states.
|
|
35
34
|
- **2026-08-13 · [v1.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.9.0)**
|
|
36
35
|
🧩 Desktop task cards show live Agent progress; 🔎 backend Agent selection is clearer and searchable; 🎙️ supports Qwen3.5-Omni Realtime frontend integration.
|
|
37
|
-
- **2026-08-12 · [v1.8.3](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.8.3)**
|
|
38
|
-
✨ Refined prompts; 📉 reduced token usage; 🔧 fixed known issues.
|
|
39
|
-
- **2026-08-11 · [v1.8.2](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.8.2)**
|
|
40
|
-
🖥️ Refreshed desktop settings with a more consistent visual experience; 🎙️ more reliable voice wake; ⏱️ long-running tasks now report progress automatically.
|
|
41
|
-
- **2026-08-11 · [v1.8.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.8.1)**
|
|
42
|
-
🧠 Cleaner persona and memory boundaries; 🔧 more reliable tasks and reminders.
|
|
43
|
-
- **2026-08-09 · [v1.8.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.8.0)**
|
|
44
|
-
🆕 Adds Qwen Code backend; 🔧 fixes known issues.
|
|
45
36
|
- **2026-08-07 · [v1.7.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.7.0)**
|
|
46
37
|
🎨 The orb opens up custom skins — import your own look, compatible with pet packs from the [Awesome Codex Pet](https://codexpet.top/) community gallery; 🪟 improved Windows backend Agent startup.
|
|
47
|
-
- **2026-08-07 · [v1.6.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.1)**
|
|
48
|
-
⚡ 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.
|
|
49
|
-
- **2026-08-06 · [v1.6.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.0)**
|
|
50
|
-
🪟 Desktop app now officially supports Windows; 🧠 adds invisible memory with automatic extraction after each session.
|
|
51
38
|
- **2026-08-05 · [v1.5.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.5.0)**
|
|
52
39
|
⏰ 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.
|
|
53
|
-
- **2026-08-05 · [v1.4.2](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.2)**
|
|
54
|
-
🔧 Improves desktop backend Agent installation, login, and status detection; refines long-term memory behavior.
|
|
55
|
-
- **2026-08-04 · [v1.4.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.1)**
|
|
56
|
-
🧰 Adds one-click backend Agent install; desktop floating orb supports auto-hide and shortcut recall.
|
|
57
|
-
- **2026-08-04 · [v1.4.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.0)**
|
|
58
|
-
🧠 Adds personalized rules and checklist management; desktop app supports auto-sleep and shortcut wake.
|
|
59
40
|
- **2026-08-03 · [v1.3.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.3.0)**
|
|
60
41
|
🎙️ Adds [🤗 speech-to-speech](https://github.com/huggingface/speech-to-speech) frontend integration, supporting fully local VAD, STT, LLM, and TTS.
|
|
61
|
-
- **2026-08-01 · [v1.2.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.2.0)**
|
|
62
|
-
⚡ Desktop app adds auto-update, faster startup, and improved backend Agent detection.
|
|
63
|
-
- **2026-07-31 · [v1.1.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.1.0)**
|
|
64
|
-
🤝 Adds Kimi Code CLI backend with native ACP integration.
|
|
65
42
|
- **2026-07-30 · [v1.0.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.0.0)**
|
|
66
43
|
🚀 First stable release, introducing a macOS desktop app with a built-in Gateway.
|
|
67
44
|
- **2026-07-28 · [v0.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v0.9.0)**
|
|
@@ -72,57 +49,99 @@ tells you:
|
|
|
72
49
|
Conversation doesn't stop for background tasks; when a task completes, the
|
|
73
50
|
result naturally returns to the current conversation:
|
|
74
51
|
|
|
75
|
-
|
|
52
|
+
<table>
|
|
53
|
+
<tr>
|
|
54
|
+
<th width="50%">Office</th>
|
|
55
|
+
<th width="50%">Smart Cockpit</th>
|
|
56
|
+
</tr>
|
|
57
|
+
<tr>
|
|
58
|
+
<td width="50%">
|
|
59
|
+
<video src="https://github.com/user-attachments/assets/ab570531-8da9-4af4-93fa-244bb6614c05" controls width="100%"></video>
|
|
60
|
+
</td>
|
|
61
|
+
<td width="50%">
|
|
62
|
+
<video src="https://github.com/user-attachments/assets/29375a62-d5d0-46e8-a963-e00118688002" controls width="100%"></video>
|
|
63
|
+
</td>
|
|
64
|
+
</tr>
|
|
65
|
+
</table>
|
|
76
66
|
|
|
77
67
|
### Core Features
|
|
78
68
|
|
|
79
69
|
- Full-duplex realtime voice interaction, natural interruption, and sustained multi-turn conversation
|
|
80
|
-
-
|
|
81
|
-
- One-click
|
|
70
|
+
- Replaceable realtime voice frontends, with cloud services and local deployment options
|
|
71
|
+
- One-click integration with your preferred Agent, reusing its model configuration, tools, MCP, Skills, and authentication
|
|
82
72
|
- Frontend conversation and background tasks run in parallel; ask about progress or cancel at any time
|
|
83
73
|
- Create multiple independent tasks executed asynchronously by the backend Agent, with continuous status tracking
|
|
84
74
|
- Task results automatically return to the current conversation, supporting follow-up questions and modifications
|
|
85
75
|
- WebUI, terminal TUI, and desktop floating orb (macOS / Windows / Linux)
|
|
86
|
-
-
|
|
87
|
-
- Per-user long-term personalization and cross-session memory
|
|
76
|
+
- Long-term per-user personalization and cross-session memory
|
|
88
77
|
|
|
89
78
|
## Architecture
|
|
90
79
|
|
|
91
|
-
|
|
80
|
+
<table>
|
|
81
|
+
<tr>
|
|
82
|
+
<td width="50%">
|
|
83
|
+
<img src="docs/architecture-overview-en.png" alt="qwen-audio-agent architecture">
|
|
84
|
+
</td>
|
|
85
|
+
<td width="50%">
|
|
86
|
+
<img src="docs/qwen-audio-agent-three-layer-architecture-en.png" alt="qwen-audio-agent reference architecture">
|
|
87
|
+
</td>
|
|
88
|
+
</tr>
|
|
89
|
+
</table>
|
|
92
90
|
|
|
93
91
|
Questions that can be answered directly are answered immediately; when tools
|
|
94
92
|
or sustained processing are needed, the task is delegated to the backend Agent.
|
|
95
93
|
Throughout, the user always faces the same assistant.
|
|
96
94
|
|
|
97
|
-
|
|
98
|
-
<summary>View detailed architecture</summary>
|
|
95
|
+
For the full design and module breakdown, see the [architecture document](docs/architecture/deep-dive.md).
|
|
99
96
|
|
|
100
|
-
|
|
97
|
+
## Frontend and Backend Support
|
|
101
98
|
|
|
102
|
-
|
|
99
|
+
The voice frontend handles realtime conversation; the backend Agent executes
|
|
100
|
+
tasks. They integrate independently and can be combined as needed.
|
|
103
101
|
|
|
104
|
-
|
|
102
|
+
### Voice Frontends
|
|
105
103
|
|
|
106
|
-
|
|
104
|
+
| Voice frontend | Deployment | Setup | Features |
|
|
105
|
+
| --- | --- | --- | --- |
|
|
106
|
+
| [Qwen Audio 3.0 Realtime](docs/voice-frontends/qwen-audio-realtime.md) | Cloud | Bailian API Key | Duplex voice, tool calling |
|
|
107
|
+
| [GPT-Live / OpenAI Realtime](docs/voice-frontends/gpt-live.md) | Cloud | OpenAI API Key | — |
|
|
108
|
+
| [Google Gemini Live](docs/voice-frontends/google-live.md) | Cloud | Google API Key | Live video input |
|
|
109
|
+
| [Qwen3.5-Omni Realtime](docs/voice-frontends/qwen-omni-realtime.md) | Cloud | Bailian API Key | Live video input |
|
|
110
|
+
| [Qwen3.8 Omni Flash Realtime](docs/voice-frontends/qwen-omni-realtime.md) | Cloud | Bailian API Key + workspace-specific endpoint | Live video input |
|
|
111
|
+
| [Doubao Seeduplex 3.0 Realtime](docs/configuration/frontend.md#choose-a-service) | Cloud | Volcengine Speech API Key | — |
|
|
112
|
+
| [StepAudio 3 Realtime](docs/voice-frontends/stepfun.md) | Cloud | StepFun API Key | — |
|
|
113
|
+
| [Hugging Face Speech-to-Speech](docs/voice-frontends/speech-to-speech.md) | Local | Start the service and set its URL | Configurable STT / LLM / TTS |
|
|
114
|
+
| [MiniCPM-o 4.5](docs/voice-frontends/minicpm-o.md) | Local or cloud | Compatible service URL | Live video input, no tool calling |
|
|
115
|
+
|
|
116
|
+
To connect another voice service, implement the
|
|
117
|
+
[Realtime Provider interface](docs/voice-frontends/custom-provider.md) without
|
|
118
|
+
changing the Gateway's core voice-session or backend-task logic.
|
|
119
|
+
|
|
120
|
+
### Backend Agents
|
|
107
121
|
|
|
108
122
|
| Backend Agent | Integration | Setup | Rating |
|
|
109
123
|
| --- | --- | --- | --- |
|
|
110
|
-
| None | N/A | Frontend-only mode, no config needed | ★★★★★ |
|
|
124
|
+
| None | N/A | Frontend-only mode, no backend config needed | ★★★★★ |
|
|
125
|
+
| Qwen Code | Native ACP | One-click install, user config required | ★★★★★ |
|
|
111
126
|
| OpenCode | Native ACP | One-click install + Bailian config | ★★★★★ |
|
|
112
127
|
| OpenClaw | Built-in ACP bridge | One-click install + Bailian config | ★★★★★ |
|
|
113
128
|
| Qoder | Native ACP | One-click install, user config required | ★★★★★ |
|
|
114
|
-
|
|
|
129
|
+
| MiniMax Code | Native ACP | One-click install, user config required | ★★★★☆ |
|
|
115
130
|
| Kimi Code | Native ACP | One-click install, user config required | ★★★★★ |
|
|
116
131
|
| Hermes | Native ACP | One-click install, user config required | ★★★★☆ |
|
|
117
132
|
| CodeBuddy | Native ACP | One-click install, user config required | ★★★★☆ |
|
|
118
133
|
| Codex | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
|
|
119
134
|
| Claude Code | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
|
|
120
|
-
| DeepSeek | Native ACP
|
|
135
|
+
| DeepSeek Harness | Native ACP | One-click install, DeepSeek API key required | ★★★★☆ |
|
|
136
|
+
| Pi | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
|
|
137
|
+
| Muse Code | Native MSP adapter | Install Muse and its optional SDK on demand; user config required | ★★★☆☆ |
|
|
121
138
|
|
|
122
139
|
Ratings reflect current integration completeness, compatibility, and
|
|
123
140
|
verification level: five stars indicate a thoroughly tested recommended
|
|
124
141
|
integration; four stars indicate active development or not yet fully verified.
|
|
125
|
-
For detailed configuration and capability boundaries, see the
|
|
142
|
+
For detailed configuration and capability boundaries, see the
|
|
143
|
+
[backend Agent documentation](docs/backends/overview.md) and
|
|
144
|
+
[configuration guide](docs/configuration.md).
|
|
126
145
|
|
|
127
146
|
## Installation
|
|
128
147
|
|
|
@@ -145,23 +164,24 @@ qwenaudio config
|
|
|
145
164
|
|
|
146
165
|
```dotenv
|
|
147
166
|
DASHSCOPE_API_KEY=your-key
|
|
148
|
-
# Voice frontend model:
|
|
167
|
+
# Voice frontend model: optional, defaults to Qwen Audio 3.0 Realtime Plus
|
|
149
168
|
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
|
|
150
169
|
# Backend Agent: optional, leave empty or set to none for frontend-only mode
|
|
151
170
|
AGENT_PROTOCOL=openclaw
|
|
152
|
-
# Backend model:
|
|
171
|
+
# Backend model: optional; explicit values use standard ACP, empty reuses Agent config
|
|
153
172
|
QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-max
|
|
154
173
|
```
|
|
155
174
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
175
|
+
Before starting, create a key from the [Bailian API Key page](https://bailian.console.aliyun.com/?tab=model#/api-key).
|
|
176
|
+
Eligible new users can review the [new-user free quota](https://help.aliyun.com/zh/model-studio/new-free-quota)
|
|
177
|
+
and check remaining usage on the [model usage page](https://help.aliyun.com/zh/model-studio/model-usage-statistics).
|
|
178
|
+
Quota and billing rules are subject to the current official Bailian documentation.
|
|
179
|
+
|
|
180
|
+
> The example above uses the default DashScope voice frontend. See
|
|
181
|
+
> [Voice Frontends](#voice-frontends) for other cloud and self-hosted options.
|
|
161
182
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
model but do not override it.
|
|
183
|
+
With a visual-capable Realtime frontend, WebUI can explicitly stream bounded
|
|
184
|
+
camera frames alongside live audio. See [Realtime frontend configuration](docs/configuration/frontend.md).
|
|
165
185
|
|
|
166
186
|
2. Start the Gateway, then open another terminal to start the TUI (or use `qwenaudio webui` for the browser UI):
|
|
167
187
|
|
|
@@ -170,21 +190,17 @@ qwenaudio # Terminal 1: Gateway
|
|
|
170
190
|
qwenaudio tui # Terminal 2: TUI
|
|
171
191
|
```
|
|
172
192
|
|
|
173
|
-
For full configuration options,
|
|
174
|
-
|
|
175
|
-
[voice frontends](docs/
|
|
193
|
+
For full configuration options, local voice frontend setup, and TUI platform
|
|
194
|
+
notes, see [quick start](docs/getting-started/quickstart.md),
|
|
195
|
+
[voice frontends](docs/configuration/frontend.md), and
|
|
176
196
|
[TUI notes](docs/getting-started/tui.md).
|
|
177
197
|
|
|
178
198
|
## Desktop App
|
|
179
199
|
|
|
180
|
-
The desktop app provides a floating voice orb
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
the same as quitting or restarting the desktop app. Completed tasks can wake
|
|
185
|
-
the app and return their results to the conversation.
|
|
186
|
-
Download the installer for your platform from the releases page, or build
|
|
187
|
-
from source:
|
|
200
|
+
The desktop app provides a persistent floating voice orb with a built-in
|
|
201
|
+
Gateway, automatic idle sleep, local voice wake, and customizable appearance.
|
|
202
|
+
Download the installer for your platform from the releases page, or build from
|
|
203
|
+
source:
|
|
188
204
|
|
|
189
205
|
```bash
|
|
190
206
|
npm run desktop:build:local # macOS
|
|
@@ -192,58 +208,32 @@ npm run desktop:build:win # Windows
|
|
|
192
208
|
npm run desktop:build:linux # Linux (AppImage + deb, no signing)
|
|
193
209
|
```
|
|
194
210
|
|
|
195
|
-
For visuals, orb behavior, and build instructions, see the
|
|
196
|
-
|
|
197
|
-
## Backend Agent
|
|
198
|
-
|
|
199
|
-
`AGENT_PROTOCOL` is optional. Leave empty for frontend-only mode; when set,
|
|
200
|
-
it reuses the installed Agent's user-level models, tools, MCP, Skills, and
|
|
201
|
-
authentication. The CLI and desktop app share one onboarding contract: reuse
|
|
202
|
-
an existing Agent when available, install only missing components when the
|
|
203
|
-
user requests one-click installation, and keep installation, configuration,
|
|
204
|
-
and runtime readiness as separate states. Configuration stays backend-owned;
|
|
205
|
-
the desktop app opens the Agent's native setup entry instead of copying or
|
|
206
|
-
rewriting its credentials.
|
|
207
|
-
|
|
208
|
-
```bash
|
|
209
|
-
qwenaudio setup # View available backend Agents
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
For Agent selection, persistent background service, generic ACP entry, and
|
|
213
|
-
permission modes, see the [backend Agent documentation](docs/backends/overview.md).
|
|
214
|
-
|
|
215
|
-
## Personalization and Memory
|
|
211
|
+
For visuals, orb behavior, and build instructions, see the
|
|
212
|
+
[desktop documentation](docs/desktop/overview.md).
|
|
216
213
|
|
|
217
|
-
|
|
218
|
-
`MEMORY.md`, `tasks.json`, `logs/`), kept local only, never
|
|
219
|
-
committed to the repository. See [assistant profile, user preferences, and memory](docs/reference/memory.md).
|
|
214
|
+
## Examples and Scenario Expansion
|
|
220
215
|
|
|
221
|
-
|
|
216
|
+
The current qwen-audio-agent framework focuses on desktop productivity: users
|
|
217
|
+
can keep talking with the Agent in realtime while delegating tool use, file
|
|
218
|
+
work, code changes, and long-running tasks to the backend Agent.
|
|
222
219
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
- `full` permission allows the backend to execute commands and modify files; use only in trusted projects.
|
|
227
|
-
- The Gateway is for local use only; do not expose it directly to the network or public internet.
|
|
228
|
-
- On Linux / Windows with full-duplex without echo cancellation, wear headphones.
|
|
220
|
+
This "foreground conversation + background task" design is not limited to
|
|
221
|
+
desktop use. It can also expand to more scenarios where the Agent can both
|
|
222
|
+
chat naturally and get real work done.
|
|
229
223
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
npm run desktop # Desktop floating orb (macOS / Windows)
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
For more build, test, and release instructions, see [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
224
|
+
| Scenario | Description | Link | Status |
|
|
225
|
+
| --- | --- | --- | --- |
|
|
226
|
+
| Desktop | Voice chat, progress follow-up, tools, and background tasks. | [Docs][desktop-docs] | Available |
|
|
227
|
+
| Smart cockpit | Vehicle control, navigation, music, weather, and services. | [Example][smart-cockpit-example] | Available |
|
|
228
|
+
| X-Omni | Visual conversation, on-demand capture, optional observation and narration. | [Example](https://github.com/QwenAudio/qwen-audio-agent/tree/main/examples/x-omni/README.md) | Available |
|
|
229
|
+
| AI Passport | Qwen Voice Bean on a hardware card, with voice conversation and backend tasks. Currently half-duplex only. | [Example][ai-passport-example] | Available |
|
|
230
|
+
| Customer Service | Voice customer service for retail and airline scenarios. | [Example](https://github.com/QwenAudio/qwen-audio-agent/tree/main/examples/customer-service/README.md) | Available |
|
|
231
|
+
| Embodied intelligence | Voice commands, action execution, inspection, and exception feedback. | TBD | Planned |
|
|
232
|
+
| Livestream assistant | Audience interaction, product explanation, coupons, and risk reminders. | TBD | Planned |
|
|
233
|
+
|
|
234
|
+
[desktop-docs]: docs/desktop/overview.md
|
|
235
|
+
[smart-cockpit-example]: examples/smart-cockpit
|
|
236
|
+
[ai-passport-example]: examples/ai-passport
|
|
247
237
|
|
|
248
238
|
## Community
|
|
249
239
|
|