fix(cua): align host test compilation and package references

This commit is contained in:
creatixchu committed 2026-09-25 18:35:52 +08:00
1 parent 82b3073ba5
commit 87dfe408a0
9 files changed
+12 -10

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { fileURLToPath } from 'node:url'
import { chromium, type Browser } from 'playwright'
import type {} from '@deepseek-ai/dsh-ptc-runtime'
import { expect, it } from 'vitest'
import { launchWebScaffold, type WebScaffold } from './scaffold.ts'
import { ZH_BROWSER_LOCALE } from './support.ts'
+1
View File
@@ -68,6 +68,7 @@
"tests/plugin-config.e2e.ts",
"tests/input-plugin-extensions.e2e.ts",
"tests/plugin-manager.e2e.ts",
"tests/cua-optin.e2e.ts",
"tests/plugin-install-cancel.e2e.ts",
"tests/plugin-install-approve.e2e.ts",
"tests/plugin-install-registry.e2e.ts",
@@ -32,9 +32,9 @@
/deepseek-ai-dsh-cua-bundle/model-experience/computer-use-and-persistent-ptc/what-the-model-sees:
en: e0ec4ec0a2683bf8
zh: 31f52853554fc9cb
/deepseek-ai-dsh-cua-bundle/model-experience/computer-use-and-persistent-ptc/token-impact:
en: 8b2d8de0b7a602f1
zh: baf88cb87a0125a3
/deepseek-ai-dsh-cua-bundle/model-experience/computer-use-and-persistent-ptc/token-effect:
en: 0317762b9495344b
zh: 18d6c05f756f46d3
/deepseek-ai-dsh-cua-bundle/model-experience/computer-use-and-persistent-ptc/kv-cache-effect:
en: 531bbb60e3628734
zh: 66781f28c4980f77
+1 -1
View File
@@ -65,7 +65,7 @@ Disabling unloads CUA and its persistent runtime, cancels and awaits owned opera
Enabling contributes the CUA tool, guidance and persistent PTC execution instructions; disabling withdraws them. [CUA](../cua/README.md) and [PTC](../../ptc-runtime/ptc-runtime-node/README.md#persistent-repl) own the full interfaces and output semantics.
#### Token impact
#### Token effect
Enabling adds CUA guidance and changes the `run_code` description. Disabling withdraws these contributions.
@@ -65,7 +65,7 @@ pnpm dsh web
开启时模型获得 CUA 操作工具、使用指引和 persistent PTC 的执行说明;关闭时撤回这些贡献。完整接口与输出约定由 [CUA](../cua/README.zh.md) 和 [PTC](../../ptc-runtime/ptc-runtime-node/README.zh.md#persistent-repl) 说明。
#### Token impact
#### Token effect
启用时添加 CUA 指引,并更新 `run_code` 说明。关闭时撤回这些贡献。
+2 -2
View File
@@ -15,8 +15,8 @@
en: d152484eb41ac6b4
zh: 7b30b973a849247d
/deepseek-ai-dsh-cua/use-this-package:
en: 4978d663fc761c08
zh: f39f8469cdf12004
en: 9843d79e506382f1
zh: 091cc642cc9a2f03
/deepseek-ai-dsh-cua/use-this-package/connect-an-external-execution-environment:
en: 59b551986b1da1df
zh: 0dd69fc4633492df
+1 -1
View File
@@ -47,7 +47,7 @@ The dump command checks profile composition without a model request. For a real
| `dragDurationMs` / `dragSteps` | `400` / `20` | Duration and movement segments for a drag. |
| `textEventIntervalMs` | `0.25` | Delay after each Unicode down/up event, from 0 to 1000 ms. Chord timing is independent. |
The [configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-experimental-cua) lists all fields. Native tool calls use `{method, params}`; the complete method-specific schema is exposed to the model. For example, `getApp` returns the `appHandle` needed by `listWindows`, `getState` and input operations.
The [configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-cua) lists all fields. Native tool calls use `{method, params}`; the complete method-specific schema is exposed to the model. For example, `getApp` returns the `appHandle` needed by `listWindows`, `getState` and input operations.
Key chords use `+` between modifiers and the key. Use `+` for the plus key, `cmd++` for Command-plus, or the key name `plus`; an unfinished chord such as `cmd+` is rejected.
+1 -1
View File
@@ -47,7 +47,7 @@ pnpm dsh headless --patch packages/computer-use/cua/examples/macos.cordis.yml --
| `dragDurationMs` / `dragSteps` | `400` / `20` | 拖动时长和移动分段数。 |
| `textEventIntervalMs` | `0.25` | 每个 Unicode 按下或抬起事件后的间隔,范围为 0 至 1000 毫秒。组合键的节奏独立。 |
[配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-experimental-cua)列出全部字段。原生工具调用使用 `{method, params}`,模型可以看到每个方法的完整参数定义。例如,`getApp` 返回 `listWindows`、`getState` 和输入操作所需的 `appHandle`。
[配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-cua)列出全部字段。原生工具调用使用 `{method, params}`,模型可以看到每个方法的完整参数定义。例如,`getApp` 返回 `listWindows`、`getState` 和输入操作所需的 `appHandle`。
组合键用 `+` 分隔修饰键与按键。加号键写作 `+`,Command 加号写作 `cmd++`,也可以使用键名 `plus`;`cmd+` 这类缺少按键的输入会被拒绝。
@@ -128,6 +128,7 @@ Every package below exports a Cordis plugin that a bundle patch can name in a Lo
| Package | Config | Description |
|---|---|---|
| `@deepseek-ai/dsh-computer-use` | no | Exclusive named computer-use provider registration |
| `@deepseek-ai/dsh-cua` | yes | macOS computer use through application and window objects |
## context
@@ -186,7 +187,6 @@ Every package below exports a Cordis plugin that a bundle patch can name in a Lo
| `@deepseek-ai/dsh-experimental-client-ui-voice-input` | no | Record speech and insert editable text into the conversation draft |
| `@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp` | yes | Experimental computer use through an installed Cua Driver MCP executable |
| `@deepseek-ai/dsh-experimental-computer-use-cua-driver-native` | no | Experimental computer-use provider embedding the Cua Driver native npm SDK |
| `@deepseek-ai/dsh-cua` | yes | Experimental Codex-style macOS computer use |
| `@deepseek-ai/dsh-experimental-inspector` | yes | Experimental cross-realm CDP hub for Host debugging and Client Runtime inspection |
| `@deepseek-ai/dsh-experimental-ptc-runtime-python` | yes | CPython subprocess implementation of the DeepSeek Harness PTC execution seam |
| `@deepseek-ai/dsh-experimental-speech-to-text` | yes | Experimental speech recognition with independently selectable providers |