dsh-codex-style-computer-use 2.3.5 → 3.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/README.md CHANGED
@@ -1,10 +1,12 @@
1
- # Codex-style Computer Use
1
+ # Codex-style Computer Use · Windows Computer Use and Desktop Automation
2
2
 
3
3
  [![开放插件市场](https://img.shields.io/endpoint?url=https%3A%2F%2Fdshopen.org%2Fbadge%2Fdsh-codex-style-computer-use.json)](https://dshopen.org/zh/plugins/dsh-codex-style-computer-use/)
4
4
 
5
- **Windows Computer Use 2.3.5 for DeepSeek Harness**
5
+ **Windows computer use, desktop automation and UI Automation plugin for DeepSeek Harness** · 3.1.0
6
6
 
7
- Discover available actions per control, scroll to an exact percentage, switch views, and place the caret before or after matching text. Includes OCR and batch actions.
7
+ Operate your Windows desktop from DSH: read UI Automation (UIA) control trees, click / type / drag by verified numbered marks and read back to confirm; window screenshots, OCR text finding, batch actions and human handoff. Per-action approval by default; full-access sessions run under that grant and log to `policy.jsonl`. The interaction style is Codex-like — address controls by identity instead of guessing coordinates.
8
+
9
+ In 3.1.0 you can also point at an open web page with `@` and read or drive that one cited tab in the user's own browser, list running applications as a passive window read that lights no indicator and takes no desktop lease, and switch the browser panel back on from **设置 → 电脑操控(调试)→ 在侧栏显示浏览器** even after it was unpinned from the sidebar. The connection page now spells out the Windows extension-folder picker, including its empty-looking folder and the second click some pickers need.
8
10
 
9
11
  English | [中文](README.zh.md) | [Français](README.fr.md) | [Deutsch](README.de.md) | [Español](README.es.md) | [Português](README.pt.md) | [العربية](README.ar.md) | [Русский](README.ru.md) | [فارسی](README.fa.md) · [Install](#install-and-update-in-dsh-market) · [Changelog](CHANGELOG.md) · [2.0.0 changes](docs/RELEASE-2.0.0.md)
10
12
 
@@ -55,7 +57,7 @@ The illustrations above show the interaction model introduced in 1.3.0; the 2.0.
55
57
  <details>
56
58
  <summary>Current release and compatibility</summary>
57
59
 
58
- **2.0.0** is the new major release, initially distributed on npm `next` while the 24-hour release gate runs. See [2.0.0 changes and migration](docs/RELEASE-2.0.0.md). Check registry tags for current stable availability.
60
+ **3.1.0** is the current release: it adds the cited browser page, passive application listing, the sidebar switch and the corrected connection-page instructions above. **2.0.0** introduced compact receipts and bounded UIA queries — see [2.0.0 changes and migration](docs/RELEASE-2.0.0.md). Check registry tags for current stable availability.
59
61
 
60
62
  Version 1.3.1 reads text from the screen by name, notices the Windows secure desktop and resumes on its own, and keeps every colour on the same DPI-derived edge rail with a visible breathing floor. Version 1.3.0 releases desktop control when work ends while the chat continues.
61
63
 
@@ -91,7 +93,9 @@ this Agent's observation cache; it does not delete screenshots, attachments or u
91
93
 
92
94
  Search **computer-use** or **Codex-style** in the market. Look for repository **ltmroberthk915/dsh-computer-use** and npm package **dsh-codex-style-computer-use** (maintainer: **ltmroberthk**), then click **Install**. Use **Update** or **Update all** for stable-channel updates. Both native helpers are included; no PowerShell 7 or build permission is needed.
93
95
 
94
- Alternatively, enter **`dsh-codex-style-computer-use`** in **Settings → Plugins → Add plugin** for the current stable channel, or **`dsh-codex-style-computer-use@2.0.0`** for the version described here. Enter the npm package spec directly. Your host may apply a waiting period to fresh versions; follow its indication. A newly added bundle can load live on supported hosts; check that its tools and skill appear. Restart from the tray when replacing a loaded version, when the client remains stale, or when DSH reports **restart-required**.
96
+ You can also read the full description and version history on the [DSH Open Market page](https://dshopen.org/plugins/dsh-codex-style-computer-use/) before installing from the built-in market.
97
+
98
+ Alternatively, enter **`dsh-codex-style-computer-use`** in **Settings → Plugins → Add plugin** for the current stable channel, or **`dsh-codex-style-computer-use@3.1.0`** for the version described here. Enter the npm package spec directly. Your host may apply a waiting period to fresh versions; follow its indication. A newly added bundle can load live on supported hosts; check that its tools and skill appear. Restart from the tray when replacing a loaded version, when the client remains stale, or when DSH reports **restart-required**.
95
99
 
96
100
  ### Releases less than 24 hours old
97
101
 
@@ -171,6 +175,57 @@ See [the detailed protocol](skills/computer-use/references/progressive-control.m
171
175
  identity and sampled pixels before any input is dispatched, so a stale mark is refused rather than
172
176
  clicked at the wrong place.
173
177
 
178
+ ## Browser pages (optional)
179
+
180
+ Unlike the desktop tools above, the browser tools **move no window and take no pointer**: a page the
181
+ user cites with `@` stays in their own window and tab and is read or driven in the background. They
182
+ therefore appear **on demand** — only after this conversation has cited a page, or after the user has
183
+ enabled a browser window for it in the sidebar. An ordinary desktop session (and one that already has
184
+ another browser plugin's tools) gets no duplicate row.
185
+
186
+ | Purpose | Tool |
187
+ |---|---|
188
+ | Read | `computer_browser_read` (DOM/role/refs, `selector`/`frame`, `cursor` paging) |
189
+ | Act | `computer_browser_act` (up to 12 steps; upload, drag/drop, wait and extract are steps) |
190
+ | Open/find | `computer_browser_open`, `computer_browser_find` |
191
+ | Capture | `computer_browser_capture` (full page or viewport) |
192
+
193
+ Three boundaries:
194
+
195
+ - **Only the human grants a page.** A tab is usable when the user cited it with `@`, or when they
196
+ enabled a window themselves; assistant prose, page content, tool results and subagent sessions
197
+ cannot grant one. Citing several tabs requires naming the `tab` explicitly.
198
+ - **Read before you act.** Each read mints a snapshot ID that the batch must present; a batch cannot
199
+ be replayed, and a navigation or cross-document change requires a fresh read.
200
+ - **Uploads need the human's own words.** Upload/drop accept only the exact absolute paths the user
201
+ gave in this conversation (exact match; UNC paths are always refused).
202
+
203
+ `automationMode` applies here too: `read-only` allows reads (including a `wait`/`extract`-only
204
+ batch) and refuses every write; anything else is settled by the same shared approval chain. DSH's
205
+ own UI, plugin settings and pairing page are never targets — page automation cannot bypass the host
206
+ guard the desktop tools already obey.
207
+
208
+ **Verifying the host's own page never appears**: after a normal pairing, open the browser sidebar;
209
+ the `list` response must not include the DSH UI's own tab (`hostPageInList:false`). Protected ports
210
+ come from three live signals — the injected `webServer.port`, the bridge's port once it binds, and
211
+ `req.socket.localPort` on every authenticated request (never a forgeable `Host` header). A local dev
212
+ page on a different port (for example `http://localhost:3000/`) is unaffected.
213
+
214
+ ## References: running programs and native files
215
+
216
+ The `@` menu can also point at a **running application's window**. The pick only inserts a reference —
217
+ it never focuses, activates or clicks — and the existing desktop tools (`computer_shot {hwnd}`,
218
+ `computer_window`, `computer_uia`, `computer_ocr`) then act on that window. The reference is bound to
219
+ this runtime plus the pid, the process start time and the hwnd, so a closed window
220
+ (`APP_WINDOW_CLOSED`), an exited process (`APP_PROCESS_EXITED`) or a reused handle
221
+ (`APP_WINDOW_REPLACED`) is refused rather than silently reaching a different window.
222
+
223
+ Files, folders and conversations come from the host's own reference source: this plugin improves it in
224
+ place instead of adding a second search. When folders fill the provider's result cap, files are still
225
+ listed, and `@file:` / `@folder:` / `@session:` narrow the menu by category (`@文件:` and the other
226
+ localized spellings, plus a full-width colon, work too), while `@file: QA` adds a filter. Atomic
227
+ insertion, folder drill-down and the other sources are unchanged.
228
+
174
229
  ## Approval modes
175
230
 
176
231
  For a host that reports a disabled-prompt automatic refusal as “the user rejected tool”, see the [DSH approval attribution patch and regression test](docs/APPROVAL-ATTRIBUTION.md).
package/README.zh.md CHANGED
@@ -1,10 +1,12 @@
1
- # Codex 风格 Computer Use
1
+ # Codex 风格 Computer Use · Windows 电脑操作与桌面自动化
2
2
 
3
3
  [![开放插件市场](https://img.shields.io/endpoint?url=https%3A%2F%2Fdshopen.org%2Fbadge%2Fdsh-codex-style-computer-use.json)](https://dshopen.org/zh/plugins/dsh-codex-style-computer-use/)
4
4
 
5
- **Windows 桌面操控 2.3.5 · DeepSeek Harness 插件**
5
+ **Windows 电脑操作、电脑控制与桌面自动化插件 · DeepSeek Harness** · 3.1.0
6
6
 
7
- 先看控件支持哪些操作,再按百分比精确滚动、切换视图或显示离屏条目。编辑时可把光标准确放在匹配文字前后。支持 OCR 和批量操作。
7
+ 让 DSH 的 agent 直接操作你的 Windows 桌面:用 UI Automation(UIA)读控件树,按编号标记精确点击、输入、拖拽并回读验证;支持窗口截图、OCR 找字、批量操作与人工接管。默认逐次审批,完全权限会话按授权执行并记入 `policy.jsonl`。交互风格是 Codex 式的——按控件身份寻址,而不是猜坐标。
8
+
9
+ 3.1.0 另外支持:用 `@` 指向一个已打开的网页,就只读写用户自己浏览器里的那个标签页;把运行中的应用列出来是纯被动的窗口读取,不亮指示灯也不占用桌面租约;即使浏览器入口已从侧栏取消固定,也能在 **设置 → 电脑操控(调试)→ 在侧栏显示浏览器** 里重新打开。连接页也写清了 Windows 选择扩展目录时的细节,包括目录看起来是空的、以及某些选择器需要点两次。
8
10
 
9
11
  [English](README.md) | 中文 | [Français](README.fr.md) | [Deutsch](README.de.md) | [Español](README.es.md) | [Português](README.pt.md) | [العربية](README.ar.md) | [Русский](README.ru.md) | [فارسی](README.fa.md) · [安装](#在-dsh-market-安装和更新) · [版本记录](CHANGELOG.md) · [2.0.0 变更](docs/RELEASE-2.0.0.md)
10
12
 
@@ -55,7 +57,7 @@
55
57
  <details>
56
58
  <summary>当前版本与兼容性</summary>
57
59
 
58
- **2.0.0** 为本次大版本,先发布至 npm `next`,通过仓库规定的 24 小时成熟期后再升稳定频道。详见 [2.0.0 变更与迁移](docs/RELEASE-2.0.0.md),稳定版以 registry 标签为准。
60
+ **3.1.0** 为当前版本:新增上文所述的 `@` 引用网页、被动的应用列表、侧栏开关与更正后的连接页说明。**2.0.0** 引入精简回执与有界 UIA 查询——详见 [2.0.0 变更与迁移](docs/RELEASE-2.0.0.md);稳定版以 registry 标签为准。
59
61
 
60
62
  1.3.1 可直接从屏幕读字定位控件,察觉 Windows 安全桌面并在其结束后自动续接;所有颜色共用同一条按 DPI 换算的边缘光环,呼吸谷值保持可见。1.3.0 起工具用完可主动释放,聊天继续;正常收尾自动退出。
61
63
 
@@ -86,7 +88,9 @@
86
88
 
87
89
  在市场搜索 **computer-use** 或 **Codex-style**,认准仓库 **ltmroberthk915/dsh-computer-use**、npm 包 **dsh-codex-style-computer-use**(维护者 **ltmroberthk**),点击**安装**。以后通过市场的**更新**或**全部更新**获取正式频道版本。两份原生组件都已随包提供,无需 PowerShell 7、SDK 或构建白名单。
88
90
 
89
- 也可在 **设置 → 插件 → 添加插件** 输入 **`dsh-codex-style-computer-use`**,安装当前正式频道;要体验本页描述的 2.0.0,输入 **`dsh-codex-style-computer-use@2.0.0`**。这里填 npm 包名即可。宿主可能对新版本设置等待期,以界面提示为准。首次新增 bundle 可在支持的宿主中热加载;确认工具与 skill 已出现即可使用。替换已经加载的版本、客户端界面未刷新或界面提示 **restart-required / 需要重启** 时,从托盘完整退出 DSH 并重新打开。
91
+ 也可以在 [DSH Open Market 插件页](https://dshopen.org/zh/plugins/dsh-codex-style-computer-use/) 查看完整介绍与版本列表,再回到 DSH 内置市场安装。
92
+
93
+ 也可在 **设置 → 插件 → 添加插件** 输入 **`dsh-codex-style-computer-use`**,安装当前正式频道;要体验本页描述的 3.1.0,输入 **`dsh-codex-style-computer-use@3.1.0`**。这里填 npm 包名即可。宿主可能对新版本设置等待期,以界面提示为准。首次新增 bundle 可在支持的宿主中热加载;确认工具与 skill 已出现即可使用。替换已经加载的版本、客户端界面未刷新或界面提示 **restart-required / 需要重启** 时,从托盘完整退出 DSH 并重新打开。
90
94
 
91
95
  ### 发布未满 24 小时
92
96
 
@@ -164,6 +168,47 @@ $CuDshInstall = Join-Path $env:LOCALAPPDATA 'Programs\DeepSeek Harness'
164
168
  `computer_marks` 返回屏幕上元素的编号列表;`computer_marks {shot:true}` 额外保存对应的标注图。`computer_shot` 返回普通截图,在支持图片输入的模型路由上直接附带图片。mark 是一次**快照
165
169
  ID**:派发输入前会核对窗口身份与采样像素,因此过期的 mark 会被拒绝,而不是点到错误的位置。
166
170
 
171
+ ## 浏览器网页(可选)
172
+
173
+ 和上面的桌面工具不同,浏览器工具**不移动任何窗口,也不占用鼠标**:用户用 `@` 选中的网页留在
174
+ 他自己的窗口和标签页里,后台读写。因此它们**按需出现**——只有本会话真的引用过网页,或用户在
175
+ 侧栏里为该会话开启了某个浏览器窗口之后,才会注册这五个工具;普通桌面会话(以及已经装了别的
176
+ 浏览器插件的会话)不会多出一排重复工具。
177
+
178
+ | 用途 | 工具 |
179
+ |---|---|
180
+ | 读页面 | `computer_browser_read`(DOM/role/ref、`selector`/`frame`、`cursor` 分页) |
181
+ | 操作页面 | `computer_browser_act`(最多 12 步;上传、拖放、等待、提取都是它的 step) |
182
+ | 打开/查找 | `computer_browser_open`、`computer_browser_find` |
183
+ | 截图 | `computer_browser_capture`(全页或视口) |
184
+
185
+ 三条边界:
186
+
187
+ - **授权来自人。** 只有用户在消息里 `@` 引用的标签页,或用户自己开启的窗口,才可用;助手、
188
+ 网页内容、工具结果和子会话都不能授权。多标签引用时必须显式指定 `tab`。
189
+ - **读在写之前。** 每次读生成快照 ID,操作必须用它;同一批次不能重放,导航或跨文档后要重新读。
190
+ - **上传要原话。** 上传/拖放只接受用户在本会话里给出的完整绝对路径(精确匹配,UNC 一律拒绝)。
191
+
192
+ `automationMode` 同样生效:`read-only` 只允许读(含只有 `wait`/`extract` 的批次),其余写操作
193
+ 按共享审批链路裁决。DSH 自身的界面、插件设置页和配对页永远不是可操作目标——网页读写不能绕开
194
+ 桌面原有的宿主门禁。
195
+
196
+ **复验宿主界面不会出现在列表里**:正常配对后打开浏览器侧栏,`list` 响应中的标签页不应包含
197
+ 当前 DSH 界面自己的标签(`hostPageInList:false`)。受保护端口来自三处实时证据:注入的
198
+ `webServer.port`、桥接自身绑定后的端口,以及每个已认证请求的 `req.socket.localPort`(不依赖可
199
+ 伪造的 `Host` 头)。其它端口的本地开发页(如 `http://localhost:3000/`)不受影响。
200
+
201
+ ## 引用:已打开的程序与原生文件
202
+
203
+ `@` 菜单还能指向**已打开程序的窗口**。选中只插入一个引用——不会聚焦、激活或点击——之后由已有的桌面
204
+ 工具(`computer_shot {hwnd}`、`computer_window`、`computer_uia`、`computer_ocr`)作用在那个窗口上。
205
+ 引用绑定「本次运行 + pid + 进程启动时间 + hwnd」,因此窗口已关闭(`APP_WINDOW_CLOSED`)、进程已退出
206
+ (`APP_PROCESS_EXITED`)或句柄被复用(`APP_WINDOW_REPLACED`)都会被拒绝,而不是悄悄换成另一个窗口。
207
+
208
+ 文件、文件夹和对话走宿主自己的引用源:本插件在原处增强,不另起一套搜索。文件夹占满结果上限时仍会列出
209
+ 文件;`@文件:` / `@文件夹:` / `@对话:` 按类别收窄菜单(全角冒号同样有效),`@文件: QA` 则追加过滤
210
+ 条件。原子插入、文件夹下钻和其它来源都不受影响。
211
+
167
212
  ## 审批模式
168
213
 
169
214
  `automationMode` 在插件设置里配置,默认 `standard`: