@gestaltrun/dsh-desktop-cua 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.i18n.yaml +28 -0
- package/README.md +47 -2
- package/README.zh.md +48 -0
- package/cordis.patch.yml +1 -0
- package/desktop.patch.yml +15 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +47 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DeepSeek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.i18n.yaml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm run verify-translation-pairing --write product/desktop-cua/README.md
|
|
5
|
+
/:
|
|
6
|
+
en: fc405a4db833dd84
|
|
7
|
+
zh: 9fc6aa202f8ddfe6
|
|
8
|
+
/gestaltrun-dsh-desktop-cua:
|
|
9
|
+
en: 1b2be1e057d7c3ab
|
|
10
|
+
zh: 35a28e45fc074317
|
|
11
|
+
/gestaltrun-dsh-desktop-cua/summary:
|
|
12
|
+
en: 72a82489a74867bb
|
|
13
|
+
zh: 6220807ed6db9262
|
|
14
|
+
/gestaltrun-dsh-desktop-cua/table-of-contents:
|
|
15
|
+
en: c146bc3e3b0e6763
|
|
16
|
+
zh: a0a42a1d13586706
|
|
17
|
+
/gestaltrun-dsh-desktop-cua/use-this-package:
|
|
18
|
+
en: 778e3c445290057c
|
|
19
|
+
zh: 62ce0da69b3d9b65
|
|
20
|
+
/gestaltrun-dsh-desktop-cua/understand-the-implementation:
|
|
21
|
+
en: d411a20f8f118244
|
|
22
|
+
zh: a8d0cce4b3e794e6
|
|
23
|
+
/gestaltrun-dsh-desktop-cua/model-experience:
|
|
24
|
+
en: 8a0367b9ce097896
|
|
25
|
+
zh: d77056c8a1c59221
|
|
26
|
+
/gestaltrun-dsh-desktop-cua/known-limitations:
|
|
27
|
+
en: b22c5643fe7c2001
|
|
28
|
+
zh: 724b3e224772d011
|
package/README.md
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
description: "Use Computer Use in Gestalt Desktop on macOS with the bundled native helper and official application consent."
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
# @gestaltrun/dsh-desktop-cua
|
|
7
|
+
|
|
8
|
+
English | [中文](README.zh.md)
|
|
9
|
+
|
|
10
|
+
## Summary
|
|
11
|
+
|
|
12
|
+
Gestalt Desktop selects this bundle by default. On macOS, its Desktop layer enables the `cua` tool for authorized application observation and input. Windows and Linux keep both Computer Use entries disabled. Application consent belongs to the official macOS provider.
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
- [Use this package](#use-this-package)
|
|
17
|
+
- [Understand the implementation](#understand-the-implementation)
|
|
18
|
+
- [Model Experience](#model-experience)
|
|
19
|
+
- [Known limitations](#known-limitations)
|
|
20
|
+
|
|
21
|
+
<a id="use-this-package"></a>
|
|
22
|
+
## Use this package
|
|
23
|
+
|
|
24
|
+
Use the bundle shipped with Gestalt Desktop. Its ordinary profile patch is empty; only the Desktop launcher applies [desktop.patch.yml](desktop.patch.yml). macOS requires Accessibility and Screen Recording authorization for the responsible Host/helper. The provider asks separately for application access, with task-level and persistent choices; denial prevents application operations.
|
|
25
|
+
|
|
26
|
+
<a id="understand-the-implementation"></a>
|
|
27
|
+
## Understand the implementation
|
|
28
|
+
|
|
29
|
+
<details>
|
|
30
|
+
<summary>Implementation internals</summary>
|
|
31
|
+
|
|
32
|
+
The pack step compiles the official [Swift source](../../packages/experimental/cua-macos/native/README.md) for the selected macOS architecture. `DSH_DESKTOP_CUA_BUILD_DIR` selects an absolute compiler scratch directory; the default is `.artifacts/desktop-cua` under the repository. Windows and Linux packs contain no helper. A failed build removes the previous generated payload and stops before packing.
|
|
33
|
+
|
|
34
|
+
The bundle carries `native/bin/darwin-<arch>/dsh-cua-native`. The Desktop patch resolves this installed package from the Host entry point and passes the absolute helper path to the official provider. Desktop copies the complete physical DSH tree; its existing Mach-O signing pass signs the helper before sealing the App. App and DMG notarization submissions contain that sealed tree. End users need no Swift compiler.
|
|
35
|
+
|
|
36
|
+
</details>
|
|
37
|
+
|
|
38
|
+
<a id="model-experience"></a>
|
|
39
|
+
## Model Experience
|
|
40
|
+
|
|
41
|
+
The [official provider](../../packages/experimental/cua-macos/README.md#model-experience) owns the `cua` schema, guidance, observations, images and permission errors. This bundle adds no model prompt or authorization policy.
|
|
42
|
+
|
|
43
|
+
<a id="known-limitations"></a>
|
|
44
|
+
## Known limitations
|
|
45
|
+
|
|
46
|
+
The native provider requires macOS 14 or later. Ad-hoc packages do not establish Developer ID distribution or notarization acceptance; release packaging must verify those separately.
|
|
47
|
+
|
|
48
|
+
`pnpm test` runs the owning Desktop product-composition tests, including the macOS-only activation rule.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "在 macOS Gestalt Desktop 中使用随包分发的原生 helper 和官方应用授权进行 Computer Use。"
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @gestaltrun/dsh-desktop-cua
|
|
7
|
+
|
|
8
|
+
[English](README.md) | 中文
|
|
9
|
+
|
|
10
|
+
## 概述
|
|
11
|
+
|
|
12
|
+
Gestalt Desktop 默认选择此组合包。macOS 的 Desktop 层启用 `cua` 工具,用于观察和输入已授权的应用。Windows 和 Linux 保持两个 Computer Use 条目禁用。应用授权由官方 macOS provider 负责。
|
|
13
|
+
|
|
14
|
+
## 目录
|
|
15
|
+
|
|
16
|
+
- [使用此包](#use-this-package)
|
|
17
|
+
- [理解实现](#understand-the-implementation)
|
|
18
|
+
- [模型体验](#model-experience)
|
|
19
|
+
- [已知限制](#known-limitations)
|
|
20
|
+
|
|
21
|
+
<a id="use-this-package"></a>
|
|
22
|
+
## 使用此包
|
|
23
|
+
|
|
24
|
+
使用 Gestalt Desktop 随附的组合包。普通 profile patch 为空;只有 Desktop 启动器应用 [desktop.patch.yml](desktop.patch.yml)。macOS 要求为负责操作的 Host/helper 授予辅助功能和屏幕录制权限。provider 另行询问应用访问授权,支持任务级与长期授权;拒绝后不操作应用。
|
|
25
|
+
|
|
26
|
+
<a id="understand-the-implementation"></a>
|
|
27
|
+
## 理解实现
|
|
28
|
+
|
|
29
|
+
<details>
|
|
30
|
+
<summary>实现细节</summary>
|
|
31
|
+
|
|
32
|
+
打包步骤为所选 macOS 架构编译官方 [Swift 源码](../../packages/experimental/cua-macos/native/README.zh.md)。`DSH_DESKTOP_CUA_BUILD_DIR` 指定编译器工作目录的绝对路径;默认是仓库下的 `.artifacts/desktop-cua`。Windows 和 Linux 包不含 helper。构建失败时移除此前生成的产物,并在打包前停止。
|
|
33
|
+
|
|
34
|
+
组合包携带 `native/bin/darwin-<arch>/dsh-cua-native`。Desktop patch 从 Host 入口解析已安装的此包,将 helper 的绝对路径传给官方 provider。Desktop 复制完整物理 DSH 目录;现有 Mach-O 签名步骤在封装 App 前签名 helper。App 与 DMG 公证提交包含已封装的目录。最终用户无需 Swift 编译器。
|
|
35
|
+
|
|
36
|
+
</details>
|
|
37
|
+
|
|
38
|
+
<a id="model-experience"></a>
|
|
39
|
+
## 模型体验
|
|
40
|
+
|
|
41
|
+
[官方 provider](../../packages/experimental/cua-macos/README.zh.md#model-experience)负责 `cua` schema、指引、观察、图片和权限错误。本组合包不添加模型提示词或授权策略。
|
|
42
|
+
|
|
43
|
+
<a id="known-limitations"></a>
|
|
44
|
+
## 已知限制
|
|
45
|
+
|
|
46
|
+
原生 provider 要求 macOS 14 或更高版本。ad-hoc 包不能证明 Developer ID 分发或公证已获接受;发布打包必须单独验证。
|
|
47
|
+
|
|
48
|
+
`pnpm test` 运行所属 Desktop 产品组合测试,覆盖仅在 macOS 激活的规则。
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
- insert:
|
|
2
|
+
- id: gestaltrun-desktop-computer-use
|
|
3
|
+
name: '@deepseek-ai/dsh-computer-use'
|
|
4
|
+
disabled: !!js process.platform !== 'darwin'
|
|
5
|
+
- id: gestaltrun-desktop-cua-macos
|
|
6
|
+
name: '@deepseek-ai/dsh-experimental-cua-macos'
|
|
7
|
+
disabled: !!js process.platform !== 'darwin'
|
|
8
|
+
config:
|
|
9
|
+
helperPath: !!js |
|
|
10
|
+
(() => {
|
|
11
|
+
const path = process.getBuiltinModule('node:path')
|
|
12
|
+
const require = process.getBuiltinModule('node:module').createRequire(process.argv[1])
|
|
13
|
+
return path.join(path.dirname(require.resolve('@gestaltrun/dsh-desktop-cua/package.json')),
|
|
14
|
+
'native', 'bin', 'darwin-' + process.arch, 'dsh-cua-native')
|
|
15
|
+
})()
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gestaltrun/dsh-desktop-cua",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Gestalt Desktop macOS Computer Use profile and native helper",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./package.json": "./package.json",
|
|
9
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
10
|
+
"./desktop.patch.yml": "./desktop.patch.yml",
|
|
11
|
+
"./locale/*.json": "./locale/*.json"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"cordis.patch.yml",
|
|
15
|
+
"desktop.patch.yml",
|
|
16
|
+
"locale/*.json",
|
|
17
|
+
"native/bin",
|
|
18
|
+
"README.md",
|
|
19
|
+
"README.zh.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/gestaltrun/deepseek-harness.git",
|
|
25
|
+
"directory": "product/desktop-cua"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public",
|
|
29
|
+
"registry": "https://registry.npmjs.org/",
|
|
30
|
+
"tag": "candidate"
|
|
31
|
+
},
|
|
32
|
+
"dsh": {
|
|
33
|
+
"engines": {
|
|
34
|
+
"dsh": ">=0.2.1-alpha.3"
|
|
35
|
+
},
|
|
36
|
+
"bundle": {
|
|
37
|
+
"patch": "./cordis.patch.yml",
|
|
38
|
+
"desktopPatch": "./desktop.patch.yml"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@deepseek-ai/cordis": "4.0.6-alpha.1",
|
|
43
|
+
"@deepseek-ai/dsh-computer-use": "0.2.2-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-experimental-cua-macos": "0.2.2-alpha.2"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"release:pack": "node scripts/prepare-native.mjs && pnpm pack --pack-destination ../dist",
|
|
48
|
+
"test": "pnpm --dir ../.. exec vitest run apps/desktop/tests/product-profile.spec.ts"
|
|
49
|
+
}
|
|
6
50
|
}
|