From 87dfe408a0a69c59d01892e442d17c91c6660edd Mon Sep 17 00:00:00 2001 From: creatixchu Date: Fri, 25 Sep 2026 18:35:52 +0800 Subject: [PATCH] fix(cua): align host test compilation and package references --- apps/web/tests/cua-optin.e2e.ts | 1 + apps/web/tsconfig.json | 1 + packages/computer-use/cua-bundle/README.i18n.yaml | 6 +++--- packages/computer-use/cua-bundle/README.md | 2 +- packages/computer-use/cua-bundle/README.zh.md | 2 +- packages/computer-use/cua/README.i18n.yaml | 4 ++-- packages/computer-use/cua/README.md | 2 +- packages/computer-use/cua/README.zh.md | 2 +- .../cordis-composition-reference/references/packages.md | 2 +- 9 files changed, 12 insertions(+), 10 deletions(-) diff --git a/apps/web/tests/cua-optin.e2e.ts b/apps/web/tests/cua-optin.e2e.ts index 708b05369d..0441422130 100644 --- a/apps/web/tests/cua-optin.e2e.ts +++ b/apps/web/tests/cua-optin.e2e.ts @@ -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' diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index c235bcbcb2..1bceadaddf 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -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", diff --git a/packages/computer-use/cua-bundle/README.i18n.yaml b/packages/computer-use/cua-bundle/README.i18n.yaml index 5f6e45a6c3..40bfe09dc4 100644 --- a/packages/computer-use/cua-bundle/README.i18n.yaml +++ b/packages/computer-use/cua-bundle/README.i18n.yaml @@ -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 diff --git a/packages/computer-use/cua-bundle/README.md b/packages/computer-use/cua-bundle/README.md index 75ec2d00f5..ae0241681d 100644 --- a/packages/computer-use/cua-bundle/README.md +++ b/packages/computer-use/cua-bundle/README.md @@ -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. diff --git a/packages/computer-use/cua-bundle/README.zh.md b/packages/computer-use/cua-bundle/README.zh.md index b3e331cd91..696b1804a1 100644 --- a/packages/computer-use/cua-bundle/README.zh.md +++ b/packages/computer-use/cua-bundle/README.zh.md @@ -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` 说明。关闭时撤回这些贡献。 diff --git a/packages/computer-use/cua/README.i18n.yaml b/packages/computer-use/cua/README.i18n.yaml index fef7888943..cda78e0df5 100644 --- a/packages/computer-use/cua/README.i18n.yaml +++ b/packages/computer-use/cua/README.i18n.yaml @@ -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 diff --git a/packages/computer-use/cua/README.md b/packages/computer-use/cua/README.md index 72c8d411e2..e1561dd101 100644 --- a/packages/computer-use/cua/README.md +++ b/packages/computer-use/cua/README.md @@ -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. diff --git a/packages/computer-use/cua/README.zh.md b/packages/computer-use/cua/README.zh.md index 14eff6e828..58a79b612f 100644 --- a/packages/computer-use/cua/README.zh.md +++ b/packages/computer-use/cua/README.zh.md @@ -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+` 这类缺少按键的输入会被拒绝。 diff --git a/packages/preset/agent-preset/skills/cordis-composition-reference/references/packages.md b/packages/preset/agent-preset/skills/cordis-composition-reference/references/packages.md index 9a1221c1d2..4a4a3d51c2 100644 --- a/packages/preset/agent-preset/skills/cordis-composition-reference/references/packages.md +++ b/packages/preset/agent-preset/skills/cordis-composition-reference/references/packages.md @@ -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 |