Align the macOS Computer Use provider package and entry names

This commit is contained in:
creatixchu committed 2026-11-11 11:43:44 +08:00
1 parent 1e5a6c2133
commit e7950b0ca8
59 files changed
+239 -180

No files matched your search

@@ -39,10 +39,10 @@ If an existing record is damaged or its keychain/certificate is missing, setup s
## Configure the source build
Resolve the DSH home used by the developer (`DSH_HOME`, otherwise `~/.dsh`). Merge the two printed values into its `cordis.patch.yml`, targeting the entry that loads `@deepseek-ai/dsh-experimental-cua-macos`. The shipped entry ID is `cua`:
Resolve the DSH home used by the developer (`DSH_HOME`, otherwise `~/.dsh`). Merge the two printed values into its `cordis.patch.yml`, targeting the entry that loads `@deepseek-ai/dsh-cua-macos`. The shipped entry ID is `cua-macos`:
```yaml
- id: cua
- id: cua-macos
config:
sourceSigning:
identity: "<fingerprint printed by setup>"
+2 -2
View File
@@ -45,8 +45,8 @@
en: b42f103358d0dfd7
zh: a534164ad9eb00da
/desktop-packaging/runtime-file-selection-and-installation-checks:
en: a92b8fda03ae3f19
zh: 5b2f0b4e1cad1745
en: da4669b98c79ee48
zh: d007e87f13ff54d3
/desktop-packaging/desktop-runtime-preparation:
en: 84be38ab3136fff7
zh: bb4ed12ee0e1dfa0
+1 -1
View File
@@ -252,7 +252,7 @@ Desktop packs workspace packages locally and installs external dependencies thro
The [Electron shell file list](../scripts/electron-builder-config.mjs) excludes recognized JavaScript/CSS/TypeScript source maps and TypeScript build caches from the separate `resources/app.asar/node_modules` dependency collection. These exclusions preserve runtime code, native modules, WASM, data files (including ordinary `.map` assets), licenses, and notices; [shell archive tests](../tests/shell-file-selection.spec.ts) check retained bytes and exclusions.
The [Office conversion provider](../../../packages/document/office-kit/README.md) is a Host service mounted by web-app, so every application that loads web-app, including `dsh web` and Desktop, provides it together with the [Office tools](../../../packages/document/tool-office/README.md). The provider [resolves the Kit's engine itself](../../../packages/document/office-kit/README.md#understand-the-implementation), including the mapping of native engine manifests to unpacked physical directories. Desktop packaging only carries and unpacks the engine: it carries the target’s declared native engine, or WASM when the kit declares no matching native target, and preparation rejects a missing target engine before packaging. The complete Office dependencies, including the JavaScript libraries and the selected engine’s executables, data, licenses, and notices, are unpacked under `resources/app.asar.unpacked/dsh/node_modules/`. The Desktop shell passes the primary runtime location to the Host in [main.ts](../src/main.ts), and the Host sets it as `DSH_PRIMARY_RUNTIME`; neither passes a Kit location. Office skills are available in every application that loads web-app, and Desktop reads them from the skill package inside `resources/app.asar`; only Desktop mounts the bundled Python environment (`workspace-dependencies`). On macOS, the native helper receives the JIT entitlement required by [LibreOffice’s UNO bridge](https://github.com/LibreOffice/core/blob/master/sysui/desktop/macosx/hardened_runtime.xcent.in). The Computer Use helper applications under `@deepseek-ai/dsh-experimental-cua-macos/native/bin` are also unpacked whole under `resources/app.asar.unpacked/dsh/node_modules/`, and the provider opens that copy.
The [Office conversion provider](../../../packages/document/office-kit/README.md) is a Host service mounted by web-app, so every application that loads web-app, including `dsh web` and Desktop, provides it together with the [Office tools](../../../packages/document/tool-office/README.md). The provider [resolves the Kit's engine itself](../../../packages/document/office-kit/README.md#understand-the-implementation), including the mapping of native engine manifests to unpacked physical directories. Desktop packaging only carries and unpacks the engine: it carries the target’s declared native engine, or WASM when the kit declares no matching native target, and preparation rejects a missing target engine before packaging. The complete Office dependencies, including the JavaScript libraries and the selected engine’s executables, data, licenses, and notices, are unpacked under `resources/app.asar.unpacked/dsh/node_modules/`. The Desktop shell passes the primary runtime location to the Host in [main.ts](../src/main.ts), and the Host sets it as `DSH_PRIMARY_RUNTIME`; neither passes a Kit location. Office skills are available in every application that loads web-app, and Desktop reads them from the skill package inside `resources/app.asar`; only Desktop mounts the bundled Python environment (`workspace-dependencies`). On macOS, the native helper receives the JIT entitlement required by [LibreOffice’s UNO bridge](https://github.com/LibreOffice/core/blob/master/sysui/desktop/macosx/hardened_runtime.xcent.in). The Computer Use helper applications under `@deepseek-ai/dsh-cua-macos/native/bin` are also unpacked whole under `resources/app.asar.unpacked/dsh/node_modules/`, and the provider opens that copy.
The packaged application runs compiled JavaScript and pre-generated Typert metadata; it does not compile TypeScript plugins. Source-level debugger navigation and editor declarations remain available in development packages. [Copy-policy tests](../tests/runtime-file-policy.spec.ts) cover exclusions and retained assets; The [payload smoke](../tests/fixtures/runtime-payload-smoke.mjs) runs under Electron RunAsNode before the Host smoke and final inventory verification. The payload smoke resolves the search tool’s ripgrep executable and verifies text search and file enumeration. Signed Windows builds run these checks after dependency signing; other builds run them during `prepare:dsh`. The [Host smoke](../scripts/smoke-runtime.ts) creates DOCX, XLSX, and PPTX inputs with bundled Python and runs each through the real Office provider: PDF conversion, PNG rendering, conversion to the matching OpenDocument format, and, for XLSX, recalculation, checking each output's signature. Every assembled application, including directory and unsigned builds, repeats the payload and Host checks against ASAR. Archive integrity checks compare the complete archived descriptor with preparation, file bytes and membership in both archive and unpacked trees, recorded executable flags for archived files, and physical permissions for unpacked files. Conversion failures stop packaging before a release record is written; macOS DMG/ZIP builds run these checks before notarization.
+1 -1
View File
@@ -252,7 +252,7 @@ Desktop 在本地打包工作区包,并通过目标捆绑的 Node 和 pnpm 安
[Electron 外壳文件清单](../scripts/electron-builder-config.mjs)从单独收集的 `resources/app.asar/node_modules` 依赖中排除已识别的 JavaScript/CSS/TypeScript source map 和 TypeScript 构建缓存。这些排除规则保留运行时代码、原生模块、WASM、数据文件(包括普通 `.map` 资源)、许可证和 notices;[外壳归档测试](../tests/shell-file-selection.spec.ts)检查保留文件的字节和排除项。
[Office 转换提供方](../../../packages/document/office-kit/README.zh.md)是 web-app 挂载的 Host 服务,因此所有加载 web-app 的应用(包括 `dsh web` 和 Desktop)都提供它以及 [Office 工具](../../../packages/document/tool-office/README.zh.md)。该提供方[自行解析 Kit 的引擎](../../../packages/document/office-kit/README.zh.md#understand-the-implementation),包括把原生引擎清单映射到解包后的实体目录。Desktop 打包只负责携带和解包引擎:携带目标声明的原生引擎;kit 未声明匹配的原生目标时携带 WASM;目标引擎缺失时,准备阶段在打包前拒绝。完整的 Office 依赖(包括 JavaScript 库以及所选引擎的可执行文件、数据、许可证和声明)解包到 `resources/app.asar.unpacked/dsh/node_modules/` 下。Desktop 壳在 [main.ts](../src/main.ts) 中把主运行时位置传给 Host,由 Host 设为 `DSH_PRIMARY_RUNTIME`;两者都不传 Kit 位置。所有加载 web-app 的应用都提供 Office 技能,Desktop 从 `resources/app.asar` 内的技能包读取它们;只有 Desktop 挂载内置 Python 环境(`workspace-dependencies`)。在 macOS 上,原生 helper 获得 [LibreOffice UNO 桥](https://github.com/LibreOffice/core/blob/master/sysui/desktop/macosx/hardened_runtime.xcent.in)所需的 JIT 权限。`@deepseek-ai/dsh-experimental-cua-macos/native/bin` 下的 Computer Use helper 应用也整体解包到 `resources/app.asar.unpacked/dsh/node_modules/` 下,提供方打开该副本。
[Office 转换提供方](../../../packages/document/office-kit/README.zh.md)是 web-app 挂载的 Host 服务,因此所有加载 web-app 的应用(包括 `dsh web` 和 Desktop)都提供它以及 [Office 工具](../../../packages/document/tool-office/README.zh.md)。该提供方[自行解析 Kit 的引擎](../../../packages/document/office-kit/README.zh.md#understand-the-implementation),包括把原生引擎清单映射到解包后的实体目录。Desktop 打包只负责携带和解包引擎:携带目标声明的原生引擎;kit 未声明匹配的原生目标时携带 WASM;目标引擎缺失时,准备阶段在打包前拒绝。完整的 Office 依赖(包括 JavaScript 库以及所选引擎的可执行文件、数据、许可证和声明)解包到 `resources/app.asar.unpacked/dsh/node_modules/` 下。Desktop 壳在 [main.ts](../src/main.ts) 中把主运行时位置传给 Host,由 Host 设为 `DSH_PRIMARY_RUNTIME`;两者都不传 Kit 位置。所有加载 web-app 的应用都提供 Office 技能,Desktop 从 `resources/app.asar` 内的技能包读取它们;只有 Desktop 挂载内置 Python 环境(`workspace-dependencies`)。在 macOS 上,原生 helper 获得 [LibreOffice UNO 桥](https://github.com/LibreOffice/core/blob/master/sysui/desktop/macosx/hardened_runtime.xcent.in)所需的 JIT 权限。`@deepseek-ai/dsh-cua-macos/native/bin` 下的 Computer Use helper 应用也整体解包到 `resources/app.asar.unpacked/dsh/node_modules/` 下,提供方打开该副本。
打包应用运行编译后的 JavaScript 和预生成的 Typert 元数据,不编译 TypeScript 插件。源码级调试导航和编辑器声明仍可从开发包中获取。[复制规则测试](../tests/runtime-file-policy.spec.ts)覆盖排除项和保留资源;[产物 smoke](../tests/fixtures/runtime-payload-smoke.mjs) 在 Host smoke 和最终清单验证之前,使用 Electron RunAsNode 执行。产物 smoke 解析搜索工具使用的 ripgrep 可执行文件,并验证文本搜索和文件枚举。Windows 签名构建在依赖签名后运行这些检查;其他构建在 `prepare:dsh` 中运行。[Host smoke](../scripts/smoke-runtime.ts) 使用捆绑的 Python 创建 DOCX、XLSX 和 PPTX 输入,并通过真实 Office 提供方逐一执行:PDF 转换、PNG 渲染、转换为对应的 OpenDocument 格式,以及针对 XLSX 的重算,检查每个输出的签名。每个组装后的应用(包括目录包和未签名构建)都会针对 ASAR 重复产物和 Host 检查。归档完整性检查将归档内完整描述符与准备结果比对,并核对归档和解包目录中的文件内容与清单、归档内文件记录的执行标志,以及解包文件的物理权限。转换失败会在写入发布记录前终止打包;macOS DMG/ZIP 构建在公证前执行这些检查。
@@ -79,7 +79,7 @@ export function createElectronBuilderConfig(
`**/node_modules/@deepseek-ai/libreoffice-kit-${resolvedPlatform}-${resolvedArch}/**/*`,
// LaunchServices opens the Computer Use helper as an application, so every file of its bundles stays on disk.
// Both architectures ship: they form one notarized payload whose manifest staging verifies as a whole.
'**/node_modules/@deepseek-ai/dsh-experimental-cua-macos/native/bin/**/*']
'**/node_modules/@deepseek-ai/dsh-cua-macos/native/bin/**/*']
const windowsSigner = packagesWindows && !unsigned
? createWindowsTokenSigner({
certificateFile: env.DSH_DESKTOP_WINDOWS_CER_FILE,
+1 -1
View File
@@ -16,7 +16,7 @@ const MACH_O_MAGICS = new Set(['cafebabe', 'cafebabf', 'cefaedfe', 'cffaedfe', '
* `native/bin/darwin-<arch>/<generation>/<name>.app`. Other bundles, such as LibreOffice's unsigned application,
* are not matched and keep per-file runtime signing.
*/
const CUA_HELPER_BUNDLE = /^(node_modules\/@deepseek-ai\/dsh-experimental-cua-macos\/native\/bin\/darwin-[^/]+\/[^/]+\/[^/]+\.app)\//u
const CUA_HELPER_BUNDLE = /^(node_modules\/@deepseek-ai\/dsh-cua-macos\/native\/bin\/darwin-[^/]+\/[^/]+\/[^/]+\.app)\//u
function magic(path: string): string {
const descriptor = openSync(path, 'r')
@@ -9,7 +9,7 @@ import { expect, it, onTestFinished } from 'vitest'
import { pnpmCommand } from '../../../scripts/release/process.ts'
const repository = resolve(import.meta.dirname, '../../..')
const providerName = '@deepseek-ai/dsh-experimental-cua-macos'
const providerName = '@deepseek-ai/dsh-cua-macos'
const windowsProvider = '@deepseek-ai/dsh-cua-windows'
const bundleName = '@deepseek-ai/dsh-cua-bundle'
const readManifest = async (path: string): Promise<Record<string, unknown>> =>
+1 -1
View File
@@ -28,7 +28,7 @@ it('signs Mach-O files in their final locations and verifies each signature', as
expect(verifyMacOSRuntimeCode).toHaveBeenCalledWith(join(path, 'addon.node'), identity)
})
const helperBundle = 'node_modules/@deepseek-ai/dsh-experimental-cua-macos/native/bin/darwin-arm64/generation/DSH Computer Use.app'
const helperBundle = 'node_modules/@deepseek-ai/dsh-cua-macos/native/bin/darwin-arm64/generation/DSH Computer Use.app'
function machO(path: string): void {
mkdirSync(join(path, '..'), { recursive: true })
writeFileSync(path, Buffer.from('cffaedfe00000000', 'hex'))
+1 -1
View File
@@ -73,7 +73,7 @@ describe('desktop macOS release signature', () => {
expect(config.asarUnpack).toEqual(expect.arrayContaining([
'**/*.{node,dylib,dll,so,exe}',
'**/@vscode/ripgrep-*/bin/rg',
'**/node_modules/@deepseek-ai/dsh-experimental-cua-macos/native/bin/**/*',
'**/node_modules/@deepseek-ai/dsh-cua-macos/native/bin/**/*',
]))
expect(config).toMatchObject({
appId: RELEASE_ENVIRONMENT.DSH_DESKTOP_APP_ID,
@@ -99,7 +99,7 @@ describe('desktop package-set selection', () => {
})
})
const macProvider = '@deepseek-ai/dsh-experimental-cua-macos'
const macProvider = '@deepseek-ai/dsh-cua-macos'
const cuaBundle = '@deepseek-ai/dsh-cua-bundle'
const targetManifests = () => new Map<string, PackedDesktopPackage>([
['@deepseek-ai/dsh', packed('@deepseek-ai/dsh', { dependencies: { [cuaBundle]: '1.0.0' } })],
@@ -157,8 +157,8 @@ it('copies no macOS tarball into the Windows package set', () => {
}
const output = join(root, 'output')
prepareDesktopPackageSet([inputs], output, { platform: 'win32', arch: 'x64' })
expect(readdirSync(join(output, DESKTOP_PACKAGES_DIR))).not.toContain('dsh-experimental-cua-macos.tgz')
expect(readdirSync(join(output, DESKTOP_PACKAGES_DIR))).not.toContain('dsh-cua-macos.tgz')
prepareDesktopPackageSet([inputs], output, { platform: 'darwin', arch: 'arm64' })
expect(readFileSync(join(output, DESKTOP_PACKAGES_DIR, 'dsh-experimental-cua-macos.tgz')))
.toEqual(readFileSync(join(inputs, 'dsh-experimental-cua-macos.tgz')))
expect(readFileSync(join(output, DESKTOP_PACKAGES_DIR, 'dsh-cua-macos.tgz')))
.toEqual(readFileSync(join(inputs, 'dsh-cua-macos.tgz')))
})
+1 -1
View File
@@ -26,7 +26,7 @@ it.skipIf(process.platform !== 'darwin').each([
try {
const patch = join(directory, 'native-fixture.yml')
// Permission inspection fails against this non-helper executable; activation still permits dismissing setup.
await writeFile(patch, JSON.stringify([{ id: 'cua', config: { helperPath: process.execPath } }]))
await writeFile(patch, JSON.stringify([{ id: 'cua-macos', config: { helperPath: process.execPath } }]))
const defaults = join(directory, 'script-defaults')
if (script) {
await mkdir(defaults)
+1 -1
View File
@@ -35,7 +35,7 @@ it.skipIf(process.platform !== 'darwin')('keeps system requests pending until fr
await writeFile(join(root, 'observe-helper'), '')
const fixturePatch = join(root, 'native-fixture.yml')
// Keep the external helper override above bundle order changes when CUA is re-enabled.
await writeFile(fixturePatch, JSON.stringify([{ id: 'cua', config: { helperPath: helper } }]))
await writeFile(fixturePatch, JSON.stringify([{ id: 'cua-macos', config: { helperPath: helper } }]))
const scaffold = await launchWebScaffold({
profile: { packages: [{ dir: bundle, enabled: true }] },
extraOverlayPath: fixturePatch,
+32 -32
View File
@@ -886,6 +886,38 @@ export interface Config {
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-credentials-local -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-cua-macos -->
<a id="deepseek-aidsh-cua-macos"></a>
## `@deepseek-ai/dsh-cua-macos`
- `inject`: `computerUse` · `tools` · `systemPrompt` · `subprocess` · `agents`
- `refs`: [`CuaConfig`](../packages/experimental/cua/src/index.ts)
- `source`: [`packages/experimental/cua-macos/src/index.ts:34`](../packages/experimental/cua-macos/src/index.ts)
```ts config-catalog
/** Native preparation, source-build signing, operation bounds, and profile-local application grants. */
export interface Config extends CuaConfig {
/** Interval in milliseconds between permission and position checks while the native guide is open. */
permissionPollIntervalMs: number
/**
* Source-build signing: `ad-hoc` (default) binds grants to the code hash;
* an object selects an existing certificate in an explicitly configured keychain.
* Installed packages and `helperPath` keep their own signature.
*/
sourceSigning: SourceSigning
}
/** Signature selected for source builds; certificates are created and unlocked by the developer. */
export type SourceSigning = 'ad-hoc' | {
/** Existing codesign certificate name or SHA-1 fingerprint, without a leading dash or whitespace. */
identity: string
/** Absolute keychain path. */
keychain: string
}
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-cua-macos -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-cua-windows -->
<a id="deepseek-aidsh-cua-windows"></a>
@@ -1176,38 +1208,6 @@ export interface Config {
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-cua-macos -->
<a id="deepseek-aidsh-experimental-cua-macos"></a>
## `@deepseek-ai/dsh-experimental-cua-macos`
- `inject`: `computerUse` · `tools` · `systemPrompt` · `subprocess` · `agents`
- `refs`: [`CuaConfig`](../packages/experimental/cua/src/index.ts)
- `source`: [`packages/experimental/cua-macos/src/index.ts:34`](../packages/experimental/cua-macos/src/index.ts)
```ts config-catalog
/** Native preparation, source-build signing, operation bounds, and profile-local application grants. */
export interface Config extends CuaConfig {
/** Interval in milliseconds between permission and position checks while the native guide is open. */
permissionPollIntervalMs: number
/**
* Source-build signing: `ad-hoc` (default) binds grants to the code hash;
* an object selects an existing certificate in an explicitly configured keychain.
* Installed packages and `helperPath` keep their own signature.
*/
sourceSigning: SourceSigning
}
/** Signature selected for source builds; certificates are created and unlocked by the developer. */
export type SourceSigning = 'ad-hoc' | {
/** Existing codesign certificate name or SHA-1 fingerprint, without a leading dash or whitespace. */
identity: string
/** Absolute keychain path. */
keychain: string
}
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-cua-macos -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-forge -->
<a id="deepseek-aidsh-experimental-forge"></a>
+32 -32
View File
@@ -888,6 +888,38 @@ export interface Config {
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-credentials-local -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-cua-macos -->
<a id="deepseek-aidsh-cua-macos"></a>
## `@deepseek-ai/dsh-cua-macos`
- `inject`: `computerUse` · `tools` · `systemPrompt` · `subprocess` · `agents`
- `refs`: [`CuaConfig`](../packages/experimental/cua/src/index.ts)
- `source`: [`packages/experimental/cua-macos/src/index.ts:34`](../packages/experimental/cua-macos/src/index.ts)
```ts config-catalog
/** Native preparation, source-build signing, operation bounds, and profile-local application grants. */
export interface Config extends CuaConfig {
/** Interval in milliseconds between permission and position checks while the native guide is open. */
permissionPollIntervalMs: number
/**
* Source-build signing: `ad-hoc` (default) binds grants to the code hash;
* an object selects an existing certificate in an explicitly configured keychain.
* Installed packages and `helperPath` keep their own signature.
*/
sourceSigning: SourceSigning
}
/** Signature selected for source builds; certificates are created and unlocked by the developer. */
export type SourceSigning = 'ad-hoc' | {
/** Existing codesign certificate name or SHA-1 fingerprint, without a leading dash or whitespace. */
identity: string
/** Absolute keychain path. */
keychain: string
}
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-cua-macos -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-cua-windows -->
<a id="deepseek-aidsh-cua-windows"></a>
@@ -1178,38 +1210,6 @@ export interface Config {
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-cua-macos -->
<a id="deepseek-aidsh-experimental-cua-macos"></a>
## `@deepseek-ai/dsh-experimental-cua-macos`
- `inject`: `computerUse` · `tools` · `systemPrompt` · `subprocess` · `agents`
- `refs`: [`CuaConfig`](../packages/experimental/cua/src/index.ts)
- `source`: [`packages/experimental/cua-macos/src/index.ts:34`](../packages/experimental/cua-macos/src/index.ts)
```ts config-catalog
/** Native preparation, source-build signing, operation bounds, and profile-local application grants. */
export interface Config extends CuaConfig {
/** Interval in milliseconds between permission and position checks while the native guide is open. */
permissionPollIntervalMs: number
/**
* Source-build signing: `ad-hoc` (default) binds grants to the code hash;
* an object selects an existing certificate in an explicitly configured keychain.
* Installed packages and `helperPath` keep their own signature.
*/
sourceSigning: SourceSigning
}
/** Signature selected for source builds; certificates are created and unlocked by the developer. */
export type SourceSigning = 'ad-hoc' | {
/** Existing codesign certificate name or SHA-1 fingerprint, without a leading dash or whitespace. */
identity: string
/** Absolute keychain path. */
keychain: string
}
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-cua-macos -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-forge -->
<a id="deepseek-aidsh-experimental-forge"></a>
+8 -8
View File
@@ -264,6 +264,7 @@ flowchart TD
pkg_creation_recommendations["creation-recommendations"]
pkg_cua["cua"]
pkg_cua_bundle["cua-bundle"]
pkg_cua_macos["cua-macos"]
pkg_cua_windows["cua-windows"]
pkg_experimental_api_speech_to_text["experimental-api-speech-to-text"]
pkg_experimental_auto_review["experimental-auto-review"]
@@ -281,7 +282,6 @@ flowchart TD
pkg_experimental_computer_use_cua_driver_mcp["experimental-computer-use-cua-driver-mcp"]
pkg_experimental_computer_use_cua_driver_native["experimental-computer-use-cua-driver-native"]
pkg_experimental_cot_translation_bundle["experimental-cot-translation-bundle"]
pkg_experimental_cua_macos["experimental-cua-macos"]
pkg_experimental_forge["experimental-forge"]
pkg_experimental_forge_bundle["experimental-forge-bundle"]
pkg_experimental_forge_github["experimental-forge-github"]
@@ -960,6 +960,12 @@ flowchart TD
pkg_creation_recommendations --> pkg_session
pkg_creation_recommendations --> pkg_skill
pkg_creation_recommendations --> pkg_tools
pkg_cua_macos --> pkg_agent
pkg_cua_macos --> pkg_computer_use
pkg_cua_macos --> pkg_subprocess
pkg_cua_macos --> pkg_system_prompt
pkg_cua_macos --> pkg_tools
pkg_cua_macos --> pkg_user_questions
pkg_cua_windows --> pkg_agent
pkg_cua_windows --> pkg_computer_use
pkg_cua_windows --> pkg_subprocess
@@ -983,12 +989,6 @@ flowchart TD
pkg_experimental_computer_use_cua_driver_native --> pkg_computer_use
pkg_experimental_computer_use_cua_driver_native --> pkg_system_prompt
pkg_experimental_computer_use_cua_driver_native --> pkg_tools
pkg_experimental_cua_macos --> pkg_agent
pkg_experimental_cua_macos --> pkg_computer_use
pkg_experimental_cua_macos --> pkg_subprocess
pkg_experimental_cua_macos --> pkg_system_prompt
pkg_experimental_cua_macos --> pkg_tools
pkg_experimental_cua_macos --> pkg_user_questions
pkg_hooks_codex --> pkg_agent
pkg_hooks_codex --> pkg_hook_protocol
pkg_hooks_codex --> pkg_llm
@@ -1841,12 +1841,12 @@ flowchart TD
| [`workspace-changes`](../packages/deliverables/workspace-changes) | `deliverables` | [`agent`](../packages/core/agent), [`fs`](../packages/fs/fs), [`session`](../packages/core/session), [`subprocess`](../packages/subprocess/subprocess), [`tools`](../packages/core/tools) |
| [`action-cards`](../packages/experimental/action-cards) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`typert-protocol`](../packages/typert/protocol) |
| [`creation-recommendations`](../packages/experimental/creation-recommendations) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`skill`](../packages/skill/skill), [`tools`](../packages/core/tools) |
| [`cua-macos`](../packages/experimental/cua-macos) | `experimental` | [`agent`](../packages/core/agent), [`computer-use`](../packages/computer-use/computer-use), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-questions`](../packages/interaction/user-questions) |
| [`cua-windows`](../packages/experimental/cua-windows) | `experimental` | [`agent`](../packages/core/agent), [`computer-use`](../packages/computer-use/computer-use), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-questions`](../packages/interaction/user-questions) |
| [`experimental-browser-use-chrome-devtools-mcp`](../packages/experimental/browser-use-chrome-devtools-mcp) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`experimental-browser-use-playwright-mcp`](../packages/experimental/browser-use-playwright-mcp) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`experimental-browser-use-stagehand-native`](../packages/experimental/browser-use-stagehand-native) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools) |
| [`experimental-computer-use-cua-driver-native`](../packages/experimental/computer-use-cua-driver-native) | `experimental` | [`computer-use`](../packages/computer-use/computer-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools) |
| [`experimental-cua-macos`](../packages/experimental/cua-macos) | `experimental` | [`agent`](../packages/core/agent), [`computer-use`](../packages/computer-use/computer-use), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-questions`](../packages/interaction/user-questions) |
| [`hooks-codex`](../packages/experimental/hooks-codex) | `experimental` | [`agent`](../packages/core/agent), [`hook-protocol`](../packages/experimental/hook-protocol), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`session-title-all-prompts-llm`](../packages/experimental/session-title-all-prompts-llm) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`session-title`](../packages/session/session-title), [`session-title-llm`](../packages/session/session-title-llm) |
| [`terminal-panel`](../packages/experimental/terminal-panel) | `experimental` | [`api-terminal-controller`](../packages/api/terminal-controller), [`output-retention`](../packages/util/output-retention), [`terminal`](../packages/terminal/terminal), [`tools`](../packages/core/tools) |
+8 -8
View File
@@ -266,6 +266,7 @@ flowchart TD
pkg_creation_recommendations["creation-recommendations"]
pkg_cua["cua"]
pkg_cua_bundle["cua-bundle"]
pkg_cua_macos["cua-macos"]
pkg_cua_windows["cua-windows"]
pkg_experimental_api_speech_to_text["experimental-api-speech-to-text"]
pkg_experimental_auto_review["experimental-auto-review"]
@@ -283,7 +284,6 @@ flowchart TD
pkg_experimental_computer_use_cua_driver_mcp["experimental-computer-use-cua-driver-mcp"]
pkg_experimental_computer_use_cua_driver_native["experimental-computer-use-cua-driver-native"]
pkg_experimental_cot_translation_bundle["experimental-cot-translation-bundle"]
pkg_experimental_cua_macos["experimental-cua-macos"]
pkg_experimental_forge["experimental-forge"]
pkg_experimental_forge_bundle["experimental-forge-bundle"]
pkg_experimental_forge_github["experimental-forge-github"]
@@ -962,6 +962,12 @@ flowchart TD
pkg_creation_recommendations --> pkg_session
pkg_creation_recommendations --> pkg_skill
pkg_creation_recommendations --> pkg_tools
pkg_cua_macos --> pkg_agent
pkg_cua_macos --> pkg_computer_use
pkg_cua_macos --> pkg_subprocess
pkg_cua_macos --> pkg_system_prompt
pkg_cua_macos --> pkg_tools
pkg_cua_macos --> pkg_user_questions
pkg_cua_windows --> pkg_agent
pkg_cua_windows --> pkg_computer_use
pkg_cua_windows --> pkg_subprocess
@@ -985,12 +991,6 @@ flowchart TD
pkg_experimental_computer_use_cua_driver_native --> pkg_computer_use
pkg_experimental_computer_use_cua_driver_native --> pkg_system_prompt
pkg_experimental_computer_use_cua_driver_native --> pkg_tools
pkg_experimental_cua_macos --> pkg_agent
pkg_experimental_cua_macos --> pkg_computer_use
pkg_experimental_cua_macos --> pkg_subprocess
pkg_experimental_cua_macos --> pkg_system_prompt
pkg_experimental_cua_macos --> pkg_tools
pkg_experimental_cua_macos --> pkg_user_questions
pkg_hooks_codex --> pkg_agent
pkg_hooks_codex --> pkg_hook_protocol
pkg_hooks_codex --> pkg_llm
@@ -1843,12 +1843,12 @@ flowchart TD
| [`workspace-changes`](../packages/deliverables/workspace-changes) | `deliverables` | [`agent`](../packages/core/agent), [`fs`](../packages/fs/fs), [`session`](../packages/core/session), [`subprocess`](../packages/subprocess/subprocess), [`tools`](../packages/core/tools) |
| [`action-cards`](../packages/experimental/action-cards) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`typert-protocol`](../packages/typert/protocol) |
| [`creation-recommendations`](../packages/experimental/creation-recommendations) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`skill`](../packages/skill/skill), [`tools`](../packages/core/tools) |
| [`cua-macos`](../packages/experimental/cua-macos) | `experimental` | [`agent`](../packages/core/agent), [`computer-use`](../packages/computer-use/computer-use), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-questions`](../packages/interaction/user-questions) |
| [`cua-windows`](../packages/experimental/cua-windows) | `experimental` | [`agent`](../packages/core/agent), [`computer-use`](../packages/computer-use/computer-use), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-questions`](../packages/interaction/user-questions) |
| [`experimental-browser-use-chrome-devtools-mcp`](../packages/experimental/browser-use-chrome-devtools-mcp) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`experimental-browser-use-playwright-mcp`](../packages/experimental/browser-use-playwright-mcp) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`experimental-browser-use-stagehand-native`](../packages/experimental/browser-use-stagehand-native) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools) |
| [`experimental-computer-use-cua-driver-native`](../packages/experimental/computer-use-cua-driver-native) | `experimental` | [`computer-use`](../packages/computer-use/computer-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools) |
| [`experimental-cua-macos`](../packages/experimental/cua-macos) | `experimental` | [`agent`](../packages/core/agent), [`computer-use`](../packages/computer-use/computer-use), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-questions`](../packages/interaction/user-questions) |
| [`hooks-codex`](../packages/experimental/hooks-codex) | `experimental` | [`agent`](../packages/core/agent), [`hook-protocol`](../packages/experimental/hook-protocol), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`session-title-all-prompts-llm`](../packages/experimental/session-title-all-prompts-llm) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`session-title`](../packages/session/session-title), [`session-title-llm`](../packages/session/session-title-llm) |
| [`terminal-panel`](../packages/experimental/terminal-panel) | `experimental` | [`api-terminal-controller`](../packages/api/terminal-controller), [`output-retention`](../packages/util/output-retention), [`terminal`](../packages/terminal/terminal), [`tools`](../packages/core/tools) |
+2 -2
View File
@@ -3,8 +3,8 @@
# After editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/subsystems/computer-use.md
/computer-use:
en: bf7dcc9124e8bce2
zh: 4199c51e21dc9b0a
en: 6ae6c953da1539b5
zh: 3a26744d438537de
/computer-use/choose-a-provider:
en: fa2e0d7b41c0450b
zh: af9a799711f901e6
+2 -2
View File
@@ -4,9 +4,9 @@ English | [中文](computer-use.zh.md)
Computer use lets a model observe and operate the local desktop through a configured provider. The shared DSH capability is called **computer use**; **Cua Driver** names the upstream implementation.
[Computer Use](../../packages/experimental/cua-bundle/README.md) provides an optional experimental switch for macOS CUA permission setup.
[Computer Use](../../packages/experimental/cua-bundle/README.md) is an optional experimental bundle for macOS and Windows.
The [`macOS CUA provider`](../../packages/experimental/cua-macos/README.md) uses the [shared CUA objects and executor](../../packages/experimental/cua/README.md), which enforce application consent through User Questions and profile configuration.
The [macOS provider](../../packages/experimental/cua-macos/README.md) and the [Windows provider](../../packages/experimental/cua-windows/README.md) use the [shared CUA service](../../packages/experimental/cua/README.md) to enforce application consent.
The CUA provider owns `ctx.cuaAccess` for system-permission status, explicit system requests, and application revocation. Its [permission page](../../packages/experimental/cua/README.md) projects these controls; app/window operations enforce the provider's consent policy before dispatch.
+2 -2
View File
@@ -4,9 +4,9 @@
计算机操作让模型通过配置的提供方观察并操作本地桌面。DSH 的共享能力称为 **computer use(计算机操作)**;**Cua Driver** 是上游实现的名称。
[Computer Use](../../packages/experimental/cua-bundle/README.zh.md) 提供 macOS CUA 及权限设置 的可选实验性开关。
[Computer Use](../../packages/experimental/cua-bundle/README.zh.md) 是适用于 macOS 和 Windows 的可选实验性插件组合。
[macOS CUA 提供方](../../packages/experimental/cua-macos/README.zh.md)使用[共享 CUA 对象与执行器](../../packages/experimental/cua/README.zh.md),通过 User Questions 和配置档设置执行应用授权。
[macOS 后端](../../packages/experimental/cua-macos/README.zh.md)和 [Windows 后端](../../packages/experimental/cua-windows/README.zh.md)都通过[共享 CUA 服务](../../packages/experimental/cua/README.zh.md)检查应用访问授权。
CUA provider 通过 `ctx.cuaAccess` 提供系统权限状态、用户主动申请和应用授权撤销。[权限页面](../../packages/experimental/cua/README.zh.md)投影这些控件;app/window 操作在分派前执行 provider 的授权检查。
@@ -0,0 +1,16 @@
# Bilingual-pair consistency record for guide.md (docs/i18n/README.md): per heading
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
# After editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/upgrade-guide/v0.2.2-rc.2/cua-macos-provider/guide.md
/:
en: 0419f932938cec69
zh: 1a4d3945c3b66da0
/macos-computer-use-provider-name:
en: d3fe214de2ce524a
zh: 876e90563dc6103a
/macos-computer-use-provider-name/change:
en: ece3a608dc332080
zh: dd5c90ea526fe920
/macos-computer-use-provider-name/migration:
en: 15118f41ca0b6dc3
zh: 6b1edb875f990387
@@ -0,0 +1,18 @@
---
kind: upgrade-guide
description: "Update direct dependencies and configuration overrides for the renamed macOS Computer Use provider."
---
# macOS Computer Use provider name
English | [中文](guide.zh.md)
## Change
The macOS provider package is now `@deepseek-ai/dsh-cua-macos` and its Cordis plugin name is `cua-macos`. The Computer Use bundle mounts it under the entry ID `cua-macos`. A profile that only enables the bundle picks up the new package automatically.
## Migration
1. Replace direct dependencies and imports of `@deepseek-ai/dsh-experimental-cua-macos` with `@deepseek-ai/dsh-cua-macos` and update your lockfile. In custom Cordis compositions, update the provider's `name` if it references the old package.
2. In home or profile `cordis.patch.yml` and other overlays targeting the bundled provider, change `id: cua` to `id: cua-macos`. Keep the whole existing `config`, including any `agentPreset`, `helperPath` or `sourceSigning` values. Independently chosen IDs in custom compositions can stay as configured.
3. On macOS with Computer Use enabled, run `dsh --profile web --dump-config` (substitute your profile). Check that the `cua-macos` entry loads the new package and has your expected configuration.
@@ -0,0 +1,18 @@
---
kind: upgrade-guide
description: "更新直接依赖和配置中引用的 macOS Computer Use 提供方名称。"
---
# macOS Computer Use 提供方名称
[English](guide.md) | 中文
## 变更
macOS 提供方的包名改为 `@deepseek-ai/dsh-cua-macos`,Cordis 插件名改为 `cua-macos`。Computer Use 组合使用配置行 ID `cua-macos` 挂载该包。只启用组合的配置档会自动使用新包。
## 迁移
1. 将直接依赖和导入中的 `@deepseek-ai/dsh-experimental-cua-macos` 替换为 `@deepseek-ai/dsh-cua-macos`,并更新锁文件。如果自定义 Cordis 配置的 `name` 引用了旧包,也要更新。
2. 如果主目录或配置档的 `cordis.patch.yml` 及其他覆盖配置指向组合提供的 macOS 后端,将 `id: cua` 改为 `id: cua-macos`。保留完整的 `config`,包括已设置的 `agentPreset`、`helperPath` 和 `sourceSigning`。自定义组合中自行指定的 ID 可以继续使用。
3. 在 macOS 上启用 Computer Use 后,运行 `dsh --profile web --dump-config`,将 `web` 换成实际使用的配置档。检查 `cua-macos` 行是否加载了新包,以及各项配置是否符合预期。
+1 -1
View File
@@ -301,10 +301,10 @@
"@deepseek-ai/dsh-experimental-worktree": "workspace:*",
"@deepseek-ai/dsh-experimental-tool-worktree": "workspace:*",
"@deepseek-ai/dsh-cua-bundle": "workspace:*",
"@deepseek-ai/dsh-cua-macos": "workspace:*",
"@deepseek-ai/dsh-cua-windows": "workspace:*",
"@deepseek-ai/dsh-experimental-subagent-oar": "workspace:*",
"@deepseek-ai/dsh-experimental-tool-subagent-oar": "workspace:*",
"@deepseek-ai/dsh-experimental-cua-macos": "workspace:*",
"@deepseek-ai/dsh-experimental-forge": "workspace:*",
"@deepseek-ai/dsh-experimental-forge-github": "workspace:*",
"@deepseek-ai/dsh-experimental-forge-session": "workspace:*",
@@ -21,8 +21,8 @@
en: 181679887837591a
zh: cc2e96766ce0aa63
/deepseek-ai-dsh-computer-use/further-exploration:
en: 987295d677466c04
zh: 9d7b40a04786490e
en: 8f23a0c0b0b4b681
zh: 0b68aa44c28d131e
/deepseek-ai-dsh-computer-use/model-experience:
en: 8780c250dfaefaaa
zh: 1c4b3598a131fb65
@@ -56,6 +56,7 @@ One private name owns the slot. Cordis effects remove contributions when their p
- [Computer Use bundle](../../experimental/cua-bundle/README.md) — enable DSH's native CUA and permission controls.
- [Shared CUA library](../../experimental/cua/README.md) — application/window objects, tool execution, and application consent.
- [macOS CUA provider](../../experimental/cua-macos/README.md) — DSH's Swift implementation and native helper lifecycle.
- [Windows CUA provider](../../experimental/cua-windows/README.md) for native application and window operations.
- [Cua Driver MCP provider](../../experimental/computer-use-cua-driver-mcp/README.md) — use an installed driver.
- [Cua Driver native provider](../../experimental/computer-use-cua-driver-native/README.md) — use the npm runtime.
@@ -56,6 +56,7 @@ kind: "package-reference"
- [Computer Use 组合包](../../experimental/cua-bundle/README.zh.md):启用 DSH 原生 CUA 和权限管理功能。
- [共享 CUA 库](../../experimental/cua/README.zh.md):应用与窗口对象、工具执行和应用授权。
- [macOS CUA 提供方](../../experimental/cua-macos/README.zh.md):DSH 的 Swift 实现和原生辅助进程生命周期。
- [Windows CUA 提供方](../../experimental/cua-windows/README.zh.md)提供原生应用与窗口操作。
- [Cua Driver MCP 提供方](../../experimental/computer-use-cua-driver-mcp/README.zh.md) — 使用已安装的驱动。
- [Cua Driver 原生提供方](../../experimental/computer-use-cua-driver-native/README.zh.md) — 使用 npm 运行时。
+2 -2
View File
@@ -18,8 +18,8 @@
en: 55d9e37b0a8dd4d8
zh: 3acb6415f92698fb
/packages-experimental/packages:
en: 53c2534fd0043ca3
zh: d319461cf6db95b5
en: f338793f2f496fd3
zh: bb02b4dfa6ec430f
/packages-experimental/related-documentation:
en: 40797d4849455966
zh: bb91a68dd995887c
+1
View File
@@ -79,6 +79,7 @@ Promotion requires a named product role, documented public behavior and limitati
| [`ptc-runtime-python`](ptc-runtime-python/README.md) | CPython subprocess backend for the PTC execution seam | `ctx.ptcRuntime` |
| [CUA](cua/README.md) | Application/window objects, authorized execution, and permission controls. | `ctx.cuaAccess` |
| [macOS CUA](cua-macos/README.md) | Swift native execution and platform preparation. | `ctx.computerUse` |
| [Windows CUA](cua-windows/README.md) | Native application and window operations through Windows UI Automation. | `ctx.computerUse` |
| [`cua-bundle`](cua-bundle/README.md) | Optional Computer Use switch for PTC sessions | — |
| [`computer-use-cua-driver-mcp`](computer-use-cua-driver-mcp/README.md) | Use an installed Cua Driver through MCP | `ctx.computerUse` |
| [`computer-use-cua-driver-native`](computer-use-cua-driver-native/README.md) | Embed the Cua Driver native npm runtime | `ctx.computerUse` |
+1
View File
@@ -79,6 +79,7 @@ kind: "package-group"
| [`ptc-runtime-python`](ptc-runtime-python/README.zh.md) | PTC 执行 seam 的 CPython 子进程后端 | `ctx.ptcRuntime` |
| [CUA](cua/README.zh.md) | 应用与窗口对象、授权执行和权限控件。 | `ctx.cuaAccess` |
| [macOS CUA](cua-macos/README.zh.md) | Swift 原生执行与平台组件准备。 | `ctx.computerUse` |
| [Windows CUA](cua-windows/README.zh.md) | 通过 Windows UI Automation 操作应用与窗口。 | `ctx.computerUse` |
| [`cua-bundle`](cua-bundle/README.zh.md) | 面向 PTC 会话、默认关闭的 Computer Use 开关 | — |
| [`computer-use-cua-driver-mcp`](computer-use-cua-driver-mcp/README.zh.md) | 通过 MCP 使用已安装的 Cua Driver | `ctx.computerUse` |
| [`computer-use-cua-driver-native`](computer-use-cua-driver-native/README.zh.md) | 嵌入 Cua Driver 原生 npm 运行时 | `ctx.computerUse` |
@@ -1,8 +1,8 @@
- insert:
- id: cua-provider-registry
name: '@deepseek-ai/dsh-computer-use'
- id: cua
name: '@deepseek-ai/dsh-experimental-cua-macos'
- id: cua-macos
name: '@deepseek-ai/dsh-cua-macos'
disabled: !!js process.platform !== 'darwin'
config:
agentPreset: ptc
@@ -59,7 +59,7 @@
"@deepseek-ai/cordis-plugin-loader": "workspace:~"
},
"optionalDependencies": {
"@deepseek-ai/dsh-experimental-cua-macos": "workspace:*",
"@deepseek-ai/dsh-cua-macos": "workspace:*",
"@deepseek-ai/dsh-cua-windows": "workspace:*"
}
}
@@ -10,11 +10,14 @@ it.each(['darwin', 'win32', 'linux'])('loads the exported patch directly on %s a
const patch = load(await readFile(new URL('../cordis.patch.yml', import.meta.url), 'utf8'), {
schema: entryListSchema,
}) as { insert: EntryOptions[] }[]
for (const id of ['cua-macos', 'cua-windows']) {
expect(patch[0]!.insert.find(row => row.id === id)?.name).toBe(`@deepseek-ai/dsh-${id}`)
}
const ctx = new Context()
await ctx.plugin(Loader)
if (!ctx.loader.internal) throw new Error('Loader module importer is unavailable')
const imported = vi.spyOn(ctx.loader.internal, 'import').mockImplementation(async (name: string) => {
if (platform !== 'darwin' && name === '@deepseek-ai/dsh-experimental-cua-macos') {
if (platform !== 'darwin' && name === '@deepseek-ai/dsh-cua-macos') {
throw new Error('native provider is absent from this installation')
}
return { name, apply: () => {} }
@@ -27,7 +30,7 @@ it.each(['darwin', 'win32', 'linux'])('loads the exported patch directly on %s a
const imports = imported.mock.calls.map(call => call[0])
expect(imports).toContain('@deepseek-ai/dsh-cua')
expect(imports).toContain('@deepseek-ai/dsh-computer-use')
expect(imports.includes('@deepseek-ai/dsh-experimental-cua-macos')).toBe(platform === 'darwin')
expect(imports.includes('@deepseek-ai/dsh-cua-macos')).toBe(platform === 'darwin')
expect(imports.includes('@deepseek-ai/dsh-cua-windows')).toBe(platform === 'win32')
} finally {
await ctx.fiber.dispose()
@@ -5,48 +5,48 @@
/:
en: a1503331d3f35516
zh: fcb8e5220ff732e1
/deepseek-ai-dsh-experimental-cua-macos:
en: 022ca213425e11ee
zh: d64631748ed91cc2
/deepseek-ai-dsh-experimental-cua-macos/summary:
/deepseek-ai-dsh-cua-macos:
en: 6eb23f23ded7ef97
zh: 686a726f161d3219
/deepseek-ai-dsh-cua-macos/summary:
en: 02bf160f22823a31
zh: 48ba17cc62debce2
/deepseek-ai-dsh-experimental-cua-macos/table-of-contents:
/deepseek-ai-dsh-cua-macos/table-of-contents:
en: 1777e7bf6785f986
zh: e3daac1074ebb74d
/deepseek-ai-dsh-experimental-cua-macos/use-this-package:
en: 1707074b060e3ddf
zh: 89bf1457c0a6e808
/deepseek-ai-dsh-experimental-cua-macos/use-this-package/connect-an-external-execution-environment:
/deepseek-ai-dsh-cua-macos/use-this-package:
en: d9843ea5d0bc7703
zh: 28911258d10d680e
/deepseek-ai-dsh-cua-macos/use-this-package/connect-an-external-execution-environment:
en: 7058be5d1b778643
zh: 821de6b0ad7aba27
/deepseek-ai-dsh-experimental-cua-macos/understand-the-implementation:
/deepseek-ai-dsh-cua-macos/understand-the-implementation:
en: 4e82b85a5aa72eee
zh: 4e004b7a205d8688
/deepseek-ai-dsh-experimental-cua-macos/further-exploration:
/deepseek-ai-dsh-cua-macos/further-exploration:
en: ff9fac614001a98f
zh: 329678941154aaea
/deepseek-ai-dsh-experimental-cua-macos/model-experience:
/deepseek-ai-dsh-cua-macos/model-experience:
en: 215e7ba838619b7b
zh: a311da3843709f90
/deepseek-ai-dsh-experimental-cua-macos/model-experience/native-application-operations:
/deepseek-ai-dsh-cua-macos/model-experience/native-application-operations:
en: ab7cba4a42334ab9
zh: f77cd9d84624b6c2
/deepseek-ai-dsh-experimental-cua-macos/model-experience/native-application-operations/what-the-model-sees:
/deepseek-ai-dsh-cua-macos/model-experience/native-application-operations/what-the-model-sees:
en: 0acecc785a72c0c2
zh: db46d8eb88f9620c
/deepseek-ai-dsh-experimental-cua-macos/model-experience/native-application-operations/what-the-model-sees/ptc-operation-guidance-verbatim:
/deepseek-ai-dsh-cua-macos/model-experience/native-application-operations/what-the-model-sees/ptc-operation-guidance-verbatim:
en: 9142df90fd94ef91
zh: cad17384c7f7452b
/deepseek-ai-dsh-experimental-cua-macos/model-experience/native-application-operations/token-effect:
/deepseek-ai-dsh-cua-macos/model-experience/native-application-operations/token-effect:
en: 75db5557a3bfb338
zh: 52b34e266737c582
/deepseek-ai-dsh-experimental-cua-macos/model-experience/native-application-operations/kv-cache-effect:
/deepseek-ai-dsh-cua-macos/model-experience/native-application-operations/kv-cache-effect:
en: a2c9acb5a4320dda
zh: e8d1586af60215c4
/deepseek-ai-dsh-experimental-cua-macos/known-limitations-and-deferred-work:
/deepseek-ai-dsh-cua-macos/known-limitations-and-deferred-work:
en: 58f87b2ee23def70
zh: f7e03371bc06cbfa
/deepseek-ai-dsh-experimental-cua-macos/known-limitations-and-deferred-work/dev-note:
/deepseek-ai-dsh-cua-macos/known-limitations-and-deferred-work/dev-note:
en: b836f01bd0bceb4a
zh: 8122fa08b2aa95fa
+4 -4
View File
@@ -3,7 +3,7 @@ description: "Inspect and operate native macOS applications through scoped app a
kind: "package-reference"
---
# @deepseek-ai/dsh-experimental-cua-macos
# @deepseek-ai/dsh-cua-macos
English | [中文](README.zh.md)
@@ -43,10 +43,10 @@ pnpm dsh headless --patch packages/experimental/cua-macos/examples/macos.cordis.
The dump command checks profile composition without a model request. For a real task, replace `--dump-config` with a prompt and configure the profile’s model credentials. The overlay mounts the computer-use registry and this provider; remove an existing competing provider before using it. The helper needs Accessibility permission for AX/input and Screen Recording permission for capture; use the Computer Use permission page to open System Settings and add the helper. Source builds use the bundle filename `DSH Computer Use Dev.app` and declare `DSH Computer Use Dev` in Info.plist; select the development entry when granting access. `getCapabilities` returns the provider’s declared capabilities with observed permissions and session lock state. Locked or unavailable desktop sessions reject UI observations and input before dispatch; the user must unlock macOS before resuming. `listApps` and `cua.getState` list running applications. `findApps(query)` searches standard macOS application directories by name, bundle ID or absolute path. `getApp` selects a unique name, bundle ID, path or running PID, obtains application consent, and launches a stopped app in the background when needed. A stopped application’s bundle identifier and executable path are read from disk before approval and rechecked before and after launch; applications without a bundle identifier use their canonical executable path for reusable consent. When a selector resolves to an installation, `getApp` matches its executable path to running processes, regardless of their localized names. If launch is needed, macOS opens that installation and can reuse a process started during approval. The helper waits for launch to complete before reporting the running state. A post-launch verification failure expires the pending handle but can leave the process running; inspect running applications before selecting a fresh handle. The returned object does not read AX or activate the app. Launch cancellation may leave the application running. Model guidance starts with background observation and input, without activation during initialization or before each action. For hidden or minimized windows, try `app.show()` or `window.show()` and read fresh state. This requests unhide and unminimize without activation, raising or switching Spaces; app-level restoration selects the focused, main or sole AX window. The result names the selected `windowId`, or null when no window was selected, and reports `foregroundChanged` by comparing the front app and top window before and after the request. Null means foreground evidence was unavailable; later focus changes remain possible. If restoration fails or the window remains unusable, explain the needed foreground step, call `app.activate()` or an observed window’s advertised `AXRaise` action, then observe again. Necessary foreground access takes priority over preserving focus. Applications may change focus after input; background delivery does not guarantee an undisturbed user session.
Source builds default to `sourceSigning: ad-hoc`, without creating certificates or keychains. Changed binaries can require new permission grants. To reduce repeated grants during rebuilds and across worktrees, select an existing certificate and its absolute keychain path in the DSH home’s `cordis.patch.yml`; `cua` is the entry ID loading `@deepseek-ai/dsh-experimental-cua-macos`:
Source builds default to `sourceSigning: ad-hoc`, without creating certificates or keychains. Changed binaries can require new permission grants. To reduce repeated grants during rebuilds and across worktrees, select an existing certificate and its absolute keychain path in the DSH home’s `cordis.patch.yml`; `cua-macos` is the entry ID loading `@deepseek-ai/dsh-cua-macos`:
```yaml
- id: cua
- id: cua-macos
config:
sourceSigning:
identity: "<certificate SHA-1 fingerprint>"
@@ -78,7 +78,7 @@ Source builds default to `sourceSigning: ad-hoc`, without creating certificates
| `dragDurationMs` / `dragSteps` | `400` / `20` | Duration and movement segments for a drag. |
| `textEventIntervalMs` | `0.25` | Delay after each Unicode down/up event, from 0 to 999 ms. Keystroke timing is independent. |
The [configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-experimental-cua-macos) lists all fields. Native tool calls use `{method, params}`; the complete method-specific schema is exposed to the model. `getApp` returns the `appHandle` used by every app-targeted operation, and `app.getWindow(windowId)` returns the object that owns screenshots and pointer input.
The [configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-cua-macos) lists all fields. Native tool calls use `{method, params}`; the complete method-specific schema is exposed to the model. `getApp` returns the `appHandle` used by every app-targeted operation, and `app.getWindow(windowId)` returns the object that owns screenshots and pointer input.
`pressKey(key, modifiers?)` presses and releases one key. For shortcuts, pass held modifiers separately, as in `pressKey('a', ['command'])`. Pressing a modifier itself, as in `pressKey('shift')`, sets its flag on press and clears it on release. A single `+` or `plus` sends Shift+=. The macOS helper accepts `command`/`cmd`, `shift`, `option`/`alt`, `control`/`ctrl`, and `fn`, and maps them to their physical keys. Key names are platform-defined; keypad names (`KP_0` through `KP_9`, `KP_Enter`, and keypad operators) retain their physical key codes. `typeText` sends literal text, including its line breaks and tabs. Use the App object's `pressKey` for a short press.
+4 -4
View File
@@ -3,7 +3,7 @@ description: "通过按应用和窗口限定的对象,观察和操作原生 ma
kind: "package-reference"
---
# @deepseek-ai/dsh-experimental-cua-macos
# @deepseek-ai/dsh-cua-macos
[English](README.md) | 中文
@@ -43,10 +43,10 @@ pnpm dsh headless --patch packages/experimental/cua-macos/examples/macos.cordis.
配置输出命令不发起模型请求。执行真实任务时,将 `--dump-config` 替换为任务提示,并配置该 profile 的模型凭据。配置挂载 computer-use 注册表和本 provider;使用前需移除已有的竞争 provider。helper 需要辅助功能权限来读取 AX 和输入,需要屏幕录制权限来截图;通过 Computer Use 权限页打开系统设置并添加 helper。源码构建的应用包名为 `DSH Computer Use Dev.app`,Info.plist 声明名称 `DSH Computer Use Dev`;授权时选择开发版条目。`getCapabilities` 返回提供方声明的平台能力,以及实际查询的权限和锁屏状态。桌面会话锁定或不可用时,界面观察与输入会在分派前拒绝,需由用户解锁 macOS 后继续。`listApps` 和 `cua.getState` 列出运行中的应用。`findApps(query)` 按名称、bundle ID 或绝对路径搜索 macOS 标准应用目录。`getApp` 按唯一名称、bundle ID、路径或运行中的 PID 选择应用,取得应用许可后,在需要时后台启动尚未运行的应用。授权前从磁盘读取应用的 Bundle ID 和可执行路径,在启动前后重新读取并核对;没有 Bundle ID 的应用使用规范化的可执行路径复用授权。找到指定的安装包后,`getApp` 用可执行文件路径查找已有进程,进程显示名可以是其他语言。需要启动时,macOS 打开指定的安装副本,也可以复用授权期间启动的进程。helper 等待应用完成启动后返回运行状态。启动后验证失败会使待启动句柄失效,但进程可能仍在运行;应先查看运行中的应用,再取得新句柄。返回对象时不读取 AX,也不激活应用。启动被取消时,应用可能已经运行。模型指引要求先在后台观察和输入,不在初始化或每次动作前激活应用。窗口隐藏或最小化时,先尝试 `app.show()` 或 `window.show()`,再重新观察。它请求取消隐藏和恢复最小化,不主动激活、抬起窗口或切换桌面空间;应用级恢复选择焦点窗口、主窗口或唯一 AX 窗口。结果通过 `windowId` 指明选中的窗口,未选中时为 null;`foregroundChanged` 比较操作前后的前台应用和最上层窗口,无法取得完整观察时为 null,返回后仍可能发生焦点变化。恢复失败或窗口仍不可用时,说明需要前台的步骤,再调用 `app.activate()` 或窗口声明的 `AXRaise` 动作并重新观察。必须使用前台时,以完成任务为先。应用收到输入后仍可能改变焦点,后台投递不保证用户操作始终不受干扰。
源码构建默认使用 `sourceSigning: ad-hoc` 临时签名,不创建证书或钥匙串。二进制变化后可能需要重新授权。需要减少开发重建和跨 worktree 的授权次数时,在 DSH home 的 `cordis.patch.yml` 中选择已有证书及其钥匙串绝对路径;`cua` 是加载 `@deepseek-ai/dsh-experimental-cua-macos` 的节点 ID:
源码构建默认使用 `sourceSigning: ad-hoc` 临时签名,不创建证书或钥匙串。二进制变化后可能需要重新授权。需要减少开发重建和跨 worktree 的授权次数时,在 DSH home 的 `cordis.patch.yml` 中选择已有证书及其钥匙串绝对路径;`cua-macos` 是加载 `@deepseek-ai/dsh-cua-macos` 的节点 ID:
```yaml
- id: cua
- id: cua-macos
config:
sourceSigning:
identity: "<certificate SHA-1 fingerprint>"
@@ -78,7 +78,7 @@ pnpm dsh headless --patch packages/experimental/cua-macos/examples/macos.cordis.
| `dragDurationMs` / `dragSteps` | `400` / `20` | 拖动时长和移动分段数。 |
| `textEventIntervalMs` | `0.25` | 每个 Unicode 按下或抬起事件后的间隔,范围为 0 至 1000 毫秒。击键节奏独立。 |
[配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-experimental-cua-macos)列出全部字段。原生工具调用使用 `{method, params}`,模型可以看到每个方法的完整参数定义。`getApp` 返回每个面向应用的操作所需的 `appHandle`,`app.getWindow(windowId)` 返回负责截图和指针输入的对象。
[配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-cua-macos)列出全部字段。原生工具调用使用 `{method, params}`,模型可以看到每个方法的完整参数定义。`getApp` 返回每个面向应用的操作所需的 `appHandle`,`app.getWindow(windowId)` 返回负责截图和指针输入的对象。
`pressKey(key, modifiers?)` 按下并松开一个键。使用快捷键时单独传入修饰键,例如 `pressKey('a', ['command'])`。单独调用 `pressKey('shift')` 时,按下事件带有 Shift 标志,释放事件清除该标志。`+` 和 `plus` 都会发送 Shift 和等号。macOS helper 接受 `command`/`cmd`、`shift`、`option`/`alt`、`control`/`ctrl` 和 `fn`,并映射到对应物理键。按键名由平台定义;数字键盘名称(`KP_0` 到 `KP_9`、`KP_Enter` 和数字键盘运算键)保留独立的物理键码。`typeText` 发送字面文本,包括其中的换行和制表符。短按使用 App 对象上的 `pressKey`。
@@ -1,7 +1,7 @@
- insert:
- id: cua-provider-registry
name: '../../../computer-use/computer-use/src/index.ts'
- id: cua
- id: cua-macos
name: '../src/index.ts'
config:
agentPreset: false
@@ -1,6 +1,6 @@
{
"meta": {
"title": "macOS Computer Use后端",
"description": "为共享Computer Use服务提供 macOS 原生应用与窗口对象。"
"title": "macOS Computer Use 后端",
"description": "为共享 Computer Use 服务提供 macOS 原生应用与窗口对象。"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "@deepseek-ai/dsh-experimental-cua-macos",
"name": "@deepseek-ai/dsh-cua-macos",
"description": "macOS native provider for shared Computer Use application and window objects",
"version": "0.2.2-rc.2",
"publishConfig": {
+2 -2
View File
@@ -27,7 +27,7 @@ const CAPABILITIES: CuaStartupCapabilities = {
}
/** Loader plugin identity. */
export const name = 'experimental-cua-macos'
export const name = 'cua-macos'
/** Services required by the shared CUA executor and the native launcher. */
export const inject = ['computerUse', 'tools', 'systemPrompt', 'subprocess', 'agents']
/** Native preparation, source-build signing, operation bounds, and profile-local application grants. */
@@ -83,7 +83,7 @@ export async function apply(ctx: Context, config: Config): Promise<void> {
controller.abort()
// The Loader receives preparation failures through apply; disposal only awaits quiescence.
await prepared.catch(() => {})
}, 'dsh-cua.native-preparation')
}, 'cua-macos.native-preparation')
const helperPath = await prepared
controller.signal.throwIfAborted()
installCua(ctx, config, { helperPath, ...backend })
@@ -115,15 +115,15 @@ it.each(['ad-hoc', { identity: 'Apple Development: Example', keychain: '/keychai
it('reads an application that an Electron archive installation keeps beside app.asar', async () => {
const f = await fixture()
const archived = join(f.root, 'Resources/app.asar/dsh/node_modules/@deepseek-ai/dsh-experimental-cua-macos')
const path = await publish(join(f.root, 'Resources/app.asar.unpacked/dsh/node_modules/@deepseek-ai/dsh-experimental-cua-macos/native/bin/darwin-arm64'), f.output, 'release')
const archived = join(f.root, 'Resources/app.asar/dsh/node_modules/@deepseek-ai/dsh-cua-macos')
const path = await publish(join(f.root, 'Resources/app.asar.unpacked/dsh/node_modules/@deepseek-ai/dsh-cua-macos/native/bin/darwin-arm64'), f.output, 'release')
expect(await prepareNativeExecutable({ ...f.spec, packageRoot: archived })).toBe(path)
expect(f.spawn).not.toHaveBeenCalled()
})
it('names the expected directory when an installed package carries no helper application', async () => {
const f = await fixture()
const installed = join(f.root, 'node_modules/@deepseek-ai/dsh-experimental-cua-macos.asar/package')
const installed = join(f.root, 'node_modules/@deepseek-ai/dsh-cua-macos.asar/package')
const directory = join(installed, 'native/bin/darwin-arm64')
await expect(prepareNativeExecutable({ ...f.spec, packageRoot: installed })).rejects.toThrow(
`Computer use helper application is missing from ${directory}; this installation does not include the signed helper`)
+4 -4
View File
@@ -6,8 +6,8 @@
en: ed2539c6d12f814a
zh: 55a6c9d7f0d21fb7
/deepseek-ai-dsh-cua:
en: 00f8b591b74dfba6
zh: e928ab13be2eebfa
en: f5a4153faa0d6942
zh: 7458bb626dd74b6d
/deepseek-ai-dsh-cua/summary:
en: 23eb2a4f1cb71986
zh: 62e2bec7155ed063
@@ -15,8 +15,8 @@
en: 5db4d4fea25493b9
zh: 65ab64fc24eb0d09
/deepseek-ai-dsh-cua/use-this-package:
en: b43164b395f6cb4e
zh: 050709c625ea3f43
en: bbb23504e4251095
zh: 4ca645ba0e88b00b
/deepseek-ai-dsh-cua/use-this-package/permission-controls:
en: 754ca69ec462325a
zh: 440d76acf2666689
+2 -2
View File
@@ -7,7 +7,7 @@ kind: "package-reference"
English | [中文](README.zh.md)
Providers install the app/window object API with `installCua`; callers connect through `connectCua`. The `cua` API discovers applications, and `CuaApp` objects activate the selected application and enumerate its windows. `CuaApp` and `CuaWindow` both extend `CuaSurface`; explicit window objects own screenshots and pointer input. The macOS provider supplies native execution for this interface.
Providers install the app/window object API with `installCua`; callers connect through `connectCua`. The `cua` API discovers applications, and `CuaApp` objects activate the selected application and enumerate its windows. `CuaApp` and `CuaWindow` both extend `CuaSurface`; explicit window objects own screenshots and pointer input. The macOS and Windows providers execute native operations on their respective platforms.
## Summary
@@ -29,7 +29,7 @@ Application consent supplies English, Chinese, and Japanese display text from `s
<a id="use-this-package"></a>
## Use this package
Mount the [macOS provider](../cua-macos/README.md) to enable native operations on macOS. External PTC hosts import `connectCua` from `@deepseek-ai/dsh-cua/bridge` and supply the current `tools.cua` binding. Source compositions and native preparation belong to the provider.
Mount the [macOS provider](../cua-macos/README.md) or the [Windows provider](../cua-windows/README.md) to enable native operations on that platform. External PTC hosts import `connectCua` from `@deepseek-ai/dsh-cua/bridge` and supply the current `tools.cua` binding. Source compositions and native preparation belong to the provider.
`cua_run_code` runs TypeScript as scoped REPL statements in a separate persistent Node environment for each Agent. The global `cua` object is available before the program starts; `tools` contains only `cua`. Call ordinary tools directly outside the program. Use top-level `await` and `inspect(...values)` to display selected text and screenshots; top-level `return` is invalid. The tool accepts the same timeout and sandbox controls as `run_code`. A restarted runtime automatically recreates `cua`, but other variables and selected application objects must be created again.
+2 -2
View File
@@ -7,7 +7,7 @@ kind: "package-reference"
[English](README.md) | 中文
各提供方通过 `installCua` 安装应用/窗口对象 API;调用方通过 `connectCua` 连接。`cua` API 负责发现应用,`CuaApp` 对象负责激活选定的应用并枚举其窗口。`CuaApp` 与 `CuaWindow` 都扩展 `CuaSurface`;显式窗口对象负责截图和指针输入。macOS 提供方为此接口提供原生执行。
各提供方通过 `installCua` 安装应用/窗口对象 API;调用方通过 `connectCua` 连接。`cua` API 负责发现应用,`CuaApp` 对象负责激活选定的应用并枚举其窗口。`CuaApp` 与 `CuaWindow` 都扩展 `CuaSurface`;显式窗口对象负责截图和指针输入。macOS 和 Windows 提供方负责各自平台的原生操作。
## 概述
@@ -29,7 +29,7 @@ kind: "package-reference"
<a id="use-this-package"></a>
## 使用本包
挂载 [macOS 提供方](../cua-macos/README.zh.md)以在 macOS 上启用原生操作。外部 PTC 宿主从 `@deepseek-ai/dsh-cua/bridge` 导入 `connectCua`,并提供当前 `tools.cua` 绑定。源码组合与原生组件准备由提供方负责。
挂载 [macOS 提供方](../cua-macos/README.zh.md)或 [Windows 提供方](../cua-windows/README.zh.md)以启用对应平台的原生操作。外部 PTC 宿主从 `@deepseek-ai/dsh-cua/bridge` 导入 `connectCua`,并提供当前 `tools.cua` 绑定。源码组合与原生组件准备由提供方负责。
`cua_run_code` 为每个 agent(智能体)在独立的持久 Node 环境中按 scoped REPL 语句运行 TypeScript。程序开始前即可使用全局 `cua` 对象;`tools` 中只有 `cua`。其他普通工具在程序外直接调用。使用顶层 `await`,通过 `inspect(...values)` 展示选中的文字和截图;顶层 `return` 无效。工具接受与 `run_code` 相同的超时和沙箱控制参数。运行时重启会自动重建 `cua`,但其他变量和已选择的应用对象需要重新创建。
+2 -2
View File
@@ -1,6 +1,6 @@
{
"meta": {
"title": "Computer Use服务",
"description": "管理Computer Use的应用对象、授权和带日志的工具执行。"
"title": "Computer Use 服务",
"description": "管理 Computer Use 的应用对象、授权和带日志的工具执行。"
}
}
@@ -198,6 +198,7 @@ Every package below exports a Cordis plugin that a bundle patch can name in a Lo
| `@deepseek-ai/dsh-client-ui-plugin-recommendations` | no | Official plugin card body with catalog text and enabling |
| `@deepseek-ai/dsh-creation-recommendations` | no | Create persistent removable interface plugins from explicit conversation needs |
| `@deepseek-ai/dsh-cua` | no | Shared Computer Use application objects, authorization, and logged tool execution |
| `@deepseek-ai/dsh-cua-macos` | yes | macOS native provider for shared Computer Use application and window objects |
| `@deepseek-ai/dsh-cua-windows` | yes | Windows C# computer use through shared application and window objects |
| `@deepseek-ai/dsh-experimental-api-speech-to-text` | yes | Authenticated experimental speech transcription for browser clients |
| `@deepseek-ai/dsh-experimental-auto-review` | no | Per-tool LLM authorization review for the DeepSeek Harness Auto permission preset |
@@ -212,7 +213,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-experimental-cua-macos` | yes | macOS native provider for shared Computer Use application and window objects |
| `@deepseek-ai/dsh-experimental-forge` | yes | Provider-neutral change request registry with shared status polling |
| `@deepseek-ai/dsh-experimental-forge-github` | yes | GitHub provider for the experimental forge registry, read through the GitHub CLI on the host |
| `@deepseek-ai/dsh-experimental-forge-session` | yes | Binds change requests to the Session that created, pushed, or tracked them |
+6 -6
View File
@@ -45,6 +45,9 @@ importers:
'@deepseek-ai/dsh-cua-bundle':
specifier: workspace:*
version: link:packages/experimental/cua-bundle
'@deepseek-ai/dsh-cua-macos':
specifier: workspace:*
version: link:packages/experimental/cua-macos
'@deepseek-ai/dsh-cua-windows':
specifier: workspace:*
version: link:packages/experimental/cua-windows
@@ -69,9 +72,6 @@ importers:
'@deepseek-ai/dsh-experimental-computer-use-cua-driver-native':
specifier: workspace:*
version: link:packages/experimental/computer-use-cua-driver-native
'@deepseek-ai/dsh-experimental-cua-macos':
specifier: workspace:*
version: link:packages/experimental/cua-macos
'@deepseek-ai/dsh-experimental-forge':
specifier: workspace:*
version: link:packages/experimental/forge
@@ -10016,12 +10016,12 @@ importers:
specifier: ^4.2.0
version: 4.3.2
optionalDependencies:
'@deepseek-ai/dsh-cua-macos':
specifier: workspace:*
version: link:../cua-macos
'@deepseek-ai/dsh-cua-windows':
specifier: workspace:*
version: link:../cua-windows
'@deepseek-ai/dsh-experimental-cua-macos':
specifier: workspace:*
version: link:../cua-macos
packages/experimental/cua-macos:
dependencies:
+1 -1
View File
@@ -190,7 +190,7 @@ const packageFileExtras: Readonly<Record<string, readonly string[]>> = {
'@deepseek-ai/dsh-experimental-subagent-oar': ['LICENSE-OAR'],
// CUA publishes its client API and attributed native source for local macOS builds.
'@deepseek-ai/dsh-cua': ['lib/remote-types.js', 'lib/api.js', 'lib/bridge.js', 'lib/native-client.js', 'lib/protocol.js', 'lib/config.js', 'lib/native-schema.js', 'lib/native-build.js', 'lib/guidance.js'],
'@deepseek-ai/dsh-experimental-cua-macos': ['native/bin', 'cua-helper.json', 'native/Package.swift', 'native/Info.plist', 'native/DSHComputerUse.icns', 'native/build_app.py', 'native/Sources', 'native/tests/swift', 'native/tests/test_swift.py', 'native/LICENSE.cua-driver', 'native/LICENSE.computer-use-icon', 'native/upstream.json', 'native/README.md', 'native/README.zh.md', 'native/protocol.schema.json'],
'@deepseek-ai/dsh-cua-macos': ['native/bin', 'cua-helper.json', 'native/Package.swift', 'native/Info.plist', 'native/DSHComputerUse.icns', 'native/build_app.py', 'native/Sources', 'native/tests/swift', 'native/tests/test_swift.py', 'native/LICENSE.cua-driver', 'native/LICENSE.computer-use-icon', 'native/upstream.json', 'native/README.md', 'native/README.zh.md', 'native/protocol.schema.json'],
'@deepseek-ai/dsh-cua-windows': ['native/bin'],
'@deepseek-ai/dsh-webhook-github': ['examples/github-review/cordis.yml', 'examples/github-review/github-ready-review-rule.mjs'],
// Liveshare publishes its built Relay gateway entry and the shared runtime
+2 -2
View File
@@ -72,7 +72,7 @@ it.skipIf(process.platform === 'win32')('keeps npm tarball bytes when reusing a
mkdirSync(output)
stageCuaHelperPayload(f.payload, packageRoot, identity)
writeFileSync(join(packageRoot, 'package.json'), JSON.stringify({
name: '@deepseek-ai/dsh-experimental-cua-macos', version: f.manifest.version, type: 'module',
name: '@deepseek-ai/dsh-cua-macos', version: f.manifest.version, type: 'module',
files: ['lib/index.js', 'native/bin', CUA_MANIFEST],
}))
writeFileSync(join(packageRoot, 'lib/index.js'), 'export const provider = "fixture";\n')
@@ -85,7 +85,7 @@ it.skipIf(process.platform === 'win32')('keeps npm tarball bytes when reusing a
expect(result.isCanceled).toBe(false)
expect(result.signal).toBeUndefined()
expect(result.exitCode, result.stderr).toBe(0)
const tarball = join(output, 'deepseek-ai-dsh-experimental-cua-macos-1.0.0.tgz')
const tarball = join(output, 'deepseek-ai-dsh-cua-macos-1.0.0.tgz')
await verifyCuaHelperTarball(tarball, identity)
return readFileSync(tarball)
}
+1 -1
View File
@@ -123,7 +123,7 @@ async function main(): Promise<void> {
// 2. Current official artifacts, so the run never serves an earlier build.
await runStep(root, ['run', 'build:official'], abort.signal, 'build:official')
verifyBuiltBundles({ entries, packages })
if (selection.members.some(member => member.name === '@deepseek-ai/dsh-experimental-cua-macos')) {
if (selection.members.some(member => member.name === '@deepseek-ai/dsh-cua-macos')) {
await runStep(root, ['--dir', 'packages/experimental/cua-macos', 'run', 'build:native'], abort.signal, 'CUA native build')
}
+1 -1
View File
@@ -8,6 +8,7 @@
export const EXPERIMENTAL_PACKAGE_NAME_EXCEPTIONS: Readonly<Record<string, string>> = {
'packages/experimental/cua': '@deepseek-ai/dsh-cua',
'packages/experimental/cua-bundle': '@deepseek-ai/dsh-cua-bundle',
'packages/experimental/cua-macos': '@deepseek-ai/dsh-cua-macos',
'packages/experimental/cua-windows': '@deepseek-ai/dsh-cua-windows',
'packages/experimental/tool-session-query': '@deepseek-ai/dsh-tool-session-query',
'packages/experimental/session-title-all-prompts-llm': '@deepseek-ai/dsh-session-title-all-prompts-llm',
@@ -50,7 +51,6 @@ export const LEGACY_PREFIXED_EXPERIMENTAL_PACKAGE_DIRECTORIES: readonly string[]
'packages/experimental/computer-use-cua-driver-mcp',
'packages/experimental/computer-use-cua-driver-native',
'packages/experimental/cot-translation-bundle',
'packages/experimental/cua-macos',
'packages/experimental/forge',
'packages/experimental/forge-bundle',
'packages/experimental/forge-github',
+1 -1
View File
@@ -63,7 +63,7 @@ export const EXISTING_PLUGIN_ENTRY_EXPORTS = {
'@deepseek-ai/dsh-experimental-claude-code-mods': [
'DEFAULT_TOOL_ALIASES', 'KNOWN_EVENTS', 'MODS_API_VERSION', 'SERVED_EVENTS', 'defineMod',
],
'@deepseek-ai/dsh-experimental-cua-macos': ['GUIDANCE'],
'@deepseek-ai/dsh-cua-macos': ['GUIDANCE'],
'@deepseek-ai/dsh-experimental-forge': ['changeRequestKey'],
'@deepseek-ai/dsh-experimental-inspector': ['resolveInspectorOptions', 'startInspector'],
'@deepseek-ai/dsh-experimental-ptc-runtime-python': [
+1 -1
View File
@@ -71,7 +71,7 @@ describe('release families', () => {
'@deepseek-ai/dsh-experimental-cot-translation-bundle',
'@deepseek-ai/dsh-creation-recommendations',
'@deepseek-ai/dsh-cua-bundle',
'@deepseek-ai/dsh-experimental-cua-macos',
'@deepseek-ai/dsh-cua-macos',
'@deepseek-ai/dsh-cua-windows',
'@deepseek-ai/dsh-cua',
'@deepseek-ai/dsh-experimental-forge-bundle',
+1 -1
View File
@@ -317,7 +317,7 @@ describe('release publication channels', () => {
it('verifies helper sources from the repository root when publication is invoked from a subdirectory', async () => {
const fixture = packedRelease(['1.0.0'])
vi.mocked(packedIdentity).mockReturnValue({ name: '@deepseek-ai/dsh-experimental-cua-macos', version: '1.0.0' })
vi.mocked(packedIdentity).mockReturnValue({ name: '@deepseek-ai/dsh-cua-macos', version: '1.0.0' })
vi.mocked(verifyCuaHelperTarball).mockResolvedValue(undefined)
registry()
const root = resolve(import.meta.dirname, '../..')
+1 -1
View File
@@ -187,7 +187,7 @@ export async function publishRelease(familyId: string, directory: string, distTa
return { tarball, ...packedIdentity(tarball) }
})
for (const member of order) {
if (member.name !== '@deepseek-ai/dsh-experimental-cua-macos') continue
if (member.name !== '@deepseek-ai/dsh-cua-macos') continue
await verifyCuaHelperTarball(member.tarball, { sourceDigest: cuaHelperSourceDigest(resolve(import.meta.dirname, '../..')) })
}
if (distTag !== undefined) {
@@ -49,7 +49,7 @@
- id: computer-use
name: '@deepseek-ai/dsh-computer-use'
- id: cua-native
name: '@deepseek-ai/dsh-experimental-cua-macos'
name: '@deepseek-ai/dsh-cua-macos'
config:
agentPreset: false
helperPath: !!js process.cwd() + '/native-helper.mjs'
+1 -1
View File
@@ -31,7 +31,7 @@
- id: computer-use
name: '@deepseek-ai/dsh-computer-use'
- id: cua-native
name: '@deepseek-ai/dsh-experimental-cua-macos'
name: '@deepseek-ai/dsh-cua-macos'
config:
agentPreset: false
helperPath: !!js process.cwd() + '/native-helper.mjs'
@@ -49,7 +49,7 @@
- id: computer-use
name: '@deepseek-ai/dsh-computer-use'
- id: cua-native
name: '@deepseek-ai/dsh-experimental-cua-macos'
name: '@deepseek-ai/dsh-cua-macos'
config:
agentPreset: false
helperPath: !!js process.cwd() + '/native-helper.mjs'
+1 -1
View File
@@ -31,7 +31,7 @@
- id: computer-use
name: '@deepseek-ai/dsh-computer-use'
- id: cua-native
name: '@deepseek-ai/dsh-experimental-cua-macos'
name: '@deepseek-ai/dsh-cua-macos'
config:
agentPreset: false
helperPath: !!js process.cwd() + '/native-helper.mjs'
+1 -1
View File
@@ -111,7 +111,7 @@
"@deepseek-ai/dsh-computer-use": ["./packages/computer-use/computer-use/src/index.ts"],
"@deepseek-ai/dsh-computer-use/brand": ["./packages/computer-use/computer-use/src/brand.ts"],
"@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp": ["./packages/experimental/computer-use-cua-driver-mcp/src/index.ts"],
"@deepseek-ai/dsh-experimental-cua-macos": ["./packages/experimental/cua-macos/src/index.ts"],
"@deepseek-ai/dsh-cua-macos": ["./packages/experimental/cua-macos/src/index.ts"],
"@deepseek-ai/dsh-cua-windows": ["./packages/experimental/cua-windows/src/index.ts"],
"@deepseek-ai/dsh-cua/config": ["./packages/experimental/cua/src/config.ts"],
"@deepseek-ai/dsh-cua/native-schema": ["./packages/experimental/cua/src/native-schema.ts"],