@anionex/dsh-vision-toolkit 0.1.34 → 0.1.35
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 +34 -0
- package/README.zh.md +34 -0
- package/assets/logo_aihubmix.png +0 -0
- package/assets/skill/UPSTREAM.json +3 -3
- package/assets/skill/references/restore-ui.md +5 -3
- package/assets/wechat-reward.png +0 -0
- package/docs/dsh-desktop-install.md +67 -0
- package/docs/dsh-desktop-install.zh.md +67 -0
- package/package.json +1 -1
- package/patches/vision-tools-dsh.patch +33 -10
package/README.md
CHANGED
|
@@ -53,6 +53,22 @@ dsh plugin --profile web add @anionex/dsh-vision-toolkit
|
|
|
53
53
|
|
|
54
54
|
**Upstream toolkit:** [Anionex/agent-vision-toolkit](https://github.com/Anionex/agent-vision-toolkit) · **Project website:** [agent-vision.anionex.me](https://agent-vision.anionex.me)
|
|
55
55
|
|
|
56
|
+
## ❤️ Sponsor
|
|
57
|
+
|
|
58
|
+
> Want to sponsor this project? See [FUNDING.md](FUNDING.md) or email davidyang042@gmail.com.
|
|
59
|
+
|
|
60
|
+
<details open>
|
|
61
|
+
<summary>Click to collapse</summary>
|
|
62
|
+
|
|
63
|
+
<table>
|
|
64
|
+
<tr>
|
|
65
|
+
<td width="220"><a href="https://aihubmix.com/?aff=5wj6sgx8"><img src="assets/logo_aihubmix.png" alt="AIHubMix" height="48"></a></td>
|
|
66
|
+
<td>Thanks to <a href="https://aihubmix.com/?aff=5wj6sgx8">AIHubMix</a> for sponsoring this project! AIHubMix is a stable, high-concurrency AI model API gateway that connects Claude, GPT, Gemini, DeepSeek, and other mainstream models through a single API key, compatible with multiple protocols, with <b>free model options</b> available. Users in China can use it via the <a href="https://inferera.com/?aff=5wj6sgx8">China entry</a>, and users abroad via the <a href="https://aihubmix.com/?aff=5wj6sgx8">Global entry</a>.</td>
|
|
67
|
+
</tr>
|
|
68
|
+
</table>
|
|
69
|
+
|
|
70
|
+
</details>
|
|
71
|
+
|
|
56
72
|
**Contents**
|
|
57
73
|
|
|
58
74
|
- [Highlights](#highlights)
|
|
@@ -63,6 +79,7 @@ dsh plugin --profile web add @anionex/dsh-vision-toolkit
|
|
|
63
79
|
- [Toolbox](#toolbox)
|
|
64
80
|
- [Configuration and limits](#configuration-and-limits)
|
|
65
81
|
- [Troubleshooting](#troubleshooting)
|
|
82
|
+
- [Donation](#donation)
|
|
66
83
|
- [Development and community](#development-and-community)
|
|
67
84
|
|
|
68
85
|
## Recent updates
|
|
@@ -147,6 +164,16 @@ You can install it into a Headless Profile too:
|
|
|
147
164
|
dsh plugin --profile headless add @anionex/dsh-vision-toolkit
|
|
148
165
|
```
|
|
149
166
|
|
|
167
|
+
Using DSH Desktop? It bundles its own `dsh` CLI and intentionally does not add it to your system PATH. Open **DSH Terminal** from the tray and run the command there, targeting the Desktop profile:
|
|
168
|
+
|
|
169
|
+
```sh
|
|
170
|
+
dsh plugin --profile desktop add @anionex/dsh-vision-toolkit
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Then restart DSH Desktop. The built-in plugin marketplace in DSH Desktop 2.0.1 has known installation issues; the terminal command above is the reliable path until a fixed Desktop release is available.
|
|
174
|
+
|
|
175
|
+
For the full Desktop install, update, and troubleshooting walkthrough, see [Installing and updating in DSH Desktop](docs/dsh-desktop-install.md).
|
|
176
|
+
|
|
150
177
|
### 2. Restart and check it
|
|
151
178
|
|
|
152
179
|
Restart a running Web Profile, then open **Settings → Vision Toolkit**. The free provider is already configured; run **Test vision model** to confirm it is reachable.
|
|
@@ -291,6 +318,7 @@ For advanced setups — overriding `runtime.python`, using `runtime.mode: extern
|
|
|
291
318
|
| A custom Credential is missing | Enter the API key in **Settings → Vision Toolkit** and confirm the Credential name matches the provider configuration |
|
|
292
319
|
| First-time runtime setup fails | The standalone-Python download needs network and disk access. Check connectivity or package-cache access, or install Python 3.11+ / configure `runtime.python` in Settings, then retry the model test |
|
|
293
320
|
| Chrome is not found | Install Chrome, Chromium, or Edge. Only HTML screenshot rendering is unavailable; the other tools still work |
|
|
321
|
+
| DSH Desktop says `dsh` is not recognized, or its built-in marketplace install fails | Open **DSH Terminal** from the tray, run `dsh plugin --profile desktop add @anionex/dsh-vision-toolkit`, then restart DSH Desktop. The Desktop 2.0.1 marketplace has known install issues, so the terminal command is the reliable path for now |
|
|
294
322
|
| An artifact cannot be previewed | Use **Open file** or the workspace path in the result. Preview URLs exist only while the Web route is available |
|
|
295
323
|
|
|
296
324
|
## FAQ
|
|
@@ -299,6 +327,12 @@ For advanced setups — overriding `runtime.python`, using `runtime.mode: extern
|
|
|
299
327
|
|
|
300
328
|
No. Each inspection sends only the necessary intent and the image to the multimodal model, and context does not accumulate across calls, so the added cost stays small. To reduce it further, a locally deployed small multimodal side model (for example the Gemma 4 or Qwen 3.5/3.6 series) can provide the vision capability.
|
|
301
329
|
|
|
330
|
+
## Donation
|
|
331
|
+
|
|
332
|
+
If this project is valuable to you, you are welcome to buy the developer a coffee ☕️
|
|
333
|
+
|
|
334
|
+
<img width="240" alt="WeChat reward code" src="assets/wechat-reward.png" />
|
|
335
|
+
|
|
302
336
|
## Development and community
|
|
303
337
|
|
|
304
338
|
- Read [CONTRIBUTING.md](CONTRIBUTING.md) before contributing.
|
package/README.zh.md
CHANGED
|
@@ -52,6 +52,22 @@ dsh plugin --profile web add @anionex/dsh-vision-toolkit
|
|
|
52
52
|
|
|
53
53
|
**上游工具箱:** [Anionex/agent-vision-toolkit](https://github.com/Anionex/agent-vision-toolkit) · **项目网站:** [agent-vision.anionex.me](https://agent-vision.anionex.me)
|
|
54
54
|
|
|
55
|
+
## ❤️ 赞助
|
|
56
|
+
|
|
57
|
+
> 想赞助本项目?详见 [FUNDING.md](FUNDING.md) 或发送邮件到 davidyang042@gmail.com。
|
|
58
|
+
|
|
59
|
+
<details open>
|
|
60
|
+
<summary>点击折叠</summary>
|
|
61
|
+
|
|
62
|
+
<table>
|
|
63
|
+
<tr>
|
|
64
|
+
<td width="220"><a href="https://aihubmix.com/?aff=5wj6sgx8"><img src="assets/logo_aihubmix.png" alt="AIHubMix" height="48"></a></td>
|
|
65
|
+
<td>感谢 <a href="https://aihubmix.com/?aff=5wj6sgx8">AIHubMix</a> 赞助本项目!AIHubMix 是稳定、高并发的 AI 大模型 API 聚合平台,一个 API Key 即可接入 Claude、GPT、Gemini、DeepSeek 等主流模型,兼容多种协议,并提供<b>免费模型选择</b>。国内用户请通过<a href="https://inferera.com/?aff=5wj6sgx8">国内入口</a>使用,海外用户请通过<a href="https://aihubmix.com/?aff=5wj6sgx8">海外入口</a>使用。</td>
|
|
66
|
+
</tr>
|
|
67
|
+
</table>
|
|
68
|
+
|
|
69
|
+
</details>
|
|
70
|
+
|
|
55
71
|
**目录**
|
|
56
72
|
|
|
57
73
|
- [亮点](#亮点)
|
|
@@ -62,6 +78,7 @@ dsh plugin --profile web add @anionex/dsh-vision-toolkit
|
|
|
62
78
|
- [工具一览](#工具一览)
|
|
63
79
|
- [配置与限制](#配置与限制)
|
|
64
80
|
- [常见问题](#常见问题)
|
|
81
|
+
- [赞赏](#赞赏)
|
|
65
82
|
- [开发与社区](#开发与社区)
|
|
66
83
|
|
|
67
84
|
## 最近更新
|
|
@@ -147,6 +164,16 @@ Headless Profile 也可以安装:
|
|
|
147
164
|
dsh plugin --profile headless add @anionex/dsh-vision-toolkit
|
|
148
165
|
```
|
|
149
166
|
|
|
167
|
+
使用 **DSH Desktop 桌面版**?桌面版自带 `dsh` 命令行,但有意不写入系统 PATH,请不要在系统终端里执行上面的命令。请从托盘打开 **DSH 终端(Open DSH Terminal)**,在桌面版自己的终端中安装到 Desktop Profile:
|
|
168
|
+
|
|
169
|
+
```sh
|
|
170
|
+
dsh plugin --profile desktop add @anionex/dsh-vision-toolkit
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
安装完成后重启 DSH Desktop。DSH Desktop 2.0.1 内置插件市场的“一键安装”存在已知问题,修复前请优先使用上面的终端命令安装。
|
|
174
|
+
|
|
175
|
+
完整的桌面版安装、更新与排查步骤见 [DSH Desktop 安装与更新指南](docs/dsh-desktop-install.zh.md)。
|
|
176
|
+
|
|
150
177
|
### 2. 重启并确认
|
|
151
178
|
|
|
152
179
|
重启正在运行的 Web Profile,打开 **设置 → 视觉工具**。默认免费服务已经配置好;你可以直接运行**测试视觉模型**确认连接。
|
|
@@ -289,6 +316,7 @@ API Key: https://agent-vision.anionex.me(自动填写)
|
|
|
289
316
|
| 自定义 Credential 缺失 | 在 **设置 → 视觉工具** 填写 API Key,并确认 Credential 名称与配置一致 |
|
|
290
317
|
| 首次运行时准备失败 | 自动下载托管 Python 需要网络和磁盘权限;失败时检查网络或包缓存,也可以安装 Python 3.11+ 或在 Settings 中配置 `runtime.python`,然后重新测试 |
|
|
291
318
|
| 找不到 Chrome | 安装 Chrome、Chromium 或 Edge;只有 HTML 截图不可用,其他工具不受影响 |
|
|
319
|
+
| DSH Desktop 提示找不到 `dsh` 命令,或内置插件市场安装失败 | 从托盘打开 **DSH 终端**,运行 `dsh plugin --profile desktop add @anionex/dsh-vision-toolkit`,再重启 DSH Desktop。桌面版 2.0.1 的内置市场存在已知安装问题,当前请优先使用终端安装 |
|
|
292
320
|
| 产物无法预览 | 使用“打开文件”或结果中的工作区路径;预览 URL 只在 Web 路由可用时存在 |
|
|
293
321
|
|
|
294
322
|
## FAQ
|
|
@@ -297,6 +325,12 @@ API Key: https://agent-vision.anionex.me(自动填写)
|
|
|
297
325
|
|
|
298
326
|
不会。每次检查只把必要的意图和图片发给多模态模型,调用之间不会累积上下文,因此额外成本很小。想进一步降低成本,可以用本地部署的小型多模态侧模型(例如 Gemma 4 或 Qwen 3.5/3.6 系列)提供视觉能力。
|
|
299
327
|
|
|
328
|
+
## 赞赏
|
|
329
|
+
|
|
330
|
+
如果本项目对你有价值,欢迎请开发者喝杯咖啡☕️
|
|
331
|
+
|
|
332
|
+
<img width="240" alt="微信收款码" src="assets/wechat-reward.png" />
|
|
333
|
+
|
|
300
334
|
## 开发与社区
|
|
301
335
|
|
|
302
336
|
- 贡献前请阅读 [CONTRIBUTING.md](CONTRIBUTING.md)。
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"repository": "https://github.com/Anionex/agent-vision-toolkit",
|
|
4
4
|
"commit": "77c24ad5b5d7a123119862893129f939307f1d3f",
|
|
5
5
|
"patch": "patches/vision-tools-dsh.patch",
|
|
6
|
-
"patchSha256": "
|
|
6
|
+
"patchSha256": "29f596fc36b476ecfe9b138ec4778f10c81fcfb550beb340cb3fc472f8cdb05f",
|
|
7
7
|
"sourceFiles": [
|
|
8
8
|
{
|
|
9
9
|
"path": "SKILL.md",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"path": "references/restore-ui.md",
|
|
67
|
-
"bytes":
|
|
68
|
-
"sha256": "
|
|
67
|
+
"bytes": 10341,
|
|
68
|
+
"sha256": "447068bbc967497f02a409b091267afd1277980bfd50b859131976b7a09e1d81"
|
|
69
69
|
}
|
|
70
70
|
]
|
|
71
71
|
}
|
|
@@ -10,9 +10,11 @@ structured diagram, read `restore-structure.md`.
|
|
|
10
10
|
## Choose the restore mode
|
|
11
11
|
|
|
12
12
|
- Use **fast restore mode** when the user asks for a quick, rough,
|
|
13
|
-
approximate, prototype, or first-pass reconstruction,
|
|
14
|
-
speed over fidelity
|
|
15
|
-
|
|
13
|
+
approximate, prototype, or first-pass reconstruction, explicitly values
|
|
14
|
+
speed over fidelity, or the reference image itself shows a floating
|
|
15
|
+
speed-intent control such as "快速还原为 HTML" / "快速生成" / "quick
|
|
16
|
+
restore" overlay. Its target is a recognizable screenshot in about
|
|
17
|
+
three minutes when the project already runs.
|
|
16
18
|
- Use the **standard restore workflow** below when the user asks for close,
|
|
17
19
|
precise, pixel-level, or production-ready alignment, or does not opt into a
|
|
18
20
|
faster approximation.
|
|
Binary file
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Installing and Updating dsh-vision-toolkit in DSH Desktop
|
|
2
|
+
|
|
3
|
+
This guide explains how to install, verify, and update `dsh-vision-toolkit` in **DSH Desktop**.
|
|
4
|
+
|
|
5
|
+
> Why a separate guide? DSH Desktop bundles its own `dsh` CLI but intentionally does **not** add it to the system PATH. Running `dsh` in a system shell (PowerShell, cmd, or the macOS Terminal) reports "command not found" by design — this is not a plugin issue. Always use the **DSH Terminal** opened from the desktop tray.
|
|
6
|
+
|
|
7
|
+
## 1. Open the DSH Terminal
|
|
8
|
+
|
|
9
|
+
1. Find the **DSH Desktop** icon in the system tray (bottom-right on Windows, top-right menu bar on macOS).
|
|
10
|
+
2. **Right-click** the icon and choose **Open DSH Terminal**.
|
|
11
|
+
3. Verify the environment in the opened terminal:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
dsh --version
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
If the version prints, the terminal environment is ready. If the command is not found, make sure the app is v2.0+ and try fully quitting and relaunching DSH Desktop first.
|
|
18
|
+
|
|
19
|
+
## 2. Install the plugin
|
|
20
|
+
|
|
21
|
+
Run the following command in the **DSH Terminal**:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
dsh plugin --profile desktop add @anionex/dsh-vision-toolkit@0.1.34
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Notes:
|
|
28
|
+
|
|
29
|
+
- `--profile desktop` targets the default `desktop` profile; replace `desktop` with `web` to install into a `web` profile.
|
|
30
|
+
- **Pin an exact version** (currently `0.1.34`). The DSH 1024Store marketplace catalog lags behind npm, so a one-click marketplace install can land on an older version; an explicit version guarantees the latest release.
|
|
31
|
+
- If the active profile is already the target profile, you can omit `--profile desktop` and run `dsh plugin add @anionex/dsh-vision-toolkit@0.1.34` directly.
|
|
32
|
+
|
|
33
|
+
## 3. Restart and verify
|
|
34
|
+
|
|
35
|
+
1. **Fully quit DSH Desktop**: right-click the tray icon → **Quit** (closing the window only hides it).
|
|
36
|
+
2. Reopen DSH Desktop.
|
|
37
|
+
3. Open **Settings → Vision Toolkit** and click **Test vision model** to confirm the built-in free vision service works.
|
|
38
|
+
4. Paste an image into the conversation and ask directly, or invoke `/vision-skills` for the full vision workflow.
|
|
39
|
+
|
|
40
|
+
## 4. Update to a new version
|
|
41
|
+
|
|
42
|
+
1. Check the latest version on the [npm page](https://www.npmjs.com/package/@anionex/dsh-vision-toolkit).
|
|
43
|
+
2. In the **DSH Terminal**, rerun the install command with the new version:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
dsh plugin --profile desktop add @anionex/dsh-vision-toolkit@<new-version>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
3. **Fully quit and reopen DSH Desktop** so the new version takes effect.
|
|
50
|
+
|
|
51
|
+
If you installed without pinning an exact version, the official `dsh plugin update` command also works; with a pinned version such as `@0.1.34`, use the explicit-version command above.
|
|
52
|
+
|
|
53
|
+
## Troubleshooting
|
|
54
|
+
|
|
55
|
+
| Problem | What to do |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| `dsh` is not recognized in a system shell | Expected. Open **DSH Terminal** from the tray instead of using system PowerShell/cmd/Terminal |
|
|
58
|
+
| No Open DSH Terminal in the tray menu | Make sure the app is v2.0+; this entry exists only in v2 and later |
|
|
59
|
+
| The built-in marketplace fails with "cannot confirm the operation result" | DSH Desktop 2.0.1 has known marketplace install issues; use the DSH Terminal command in this guide instead |
|
|
60
|
+
| Plugin does not show up after install | Confirm the command targeted the right profile and **fully quit and restart** DSH Desktop |
|
|
61
|
+
| Want to install into the web profile | Replace `desktop` with `web` in the command, then restart DSH Desktop and switch to the web profile |
|
|
62
|
+
|
|
63
|
+
## Links
|
|
64
|
+
|
|
65
|
+
- [Project website](https://agent-vision.anionex.me)
|
|
66
|
+
- [npm package](https://www.npmjs.com/package/@anionex/dsh-vision-toolkit)
|
|
67
|
+
- [DSH Desktop user guide](https://github.com/anywhere-labs/deepseek-harness-desktop/blob/master/docs/user-guide.en.md)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# DSH Desktop 安装与更新指南
|
|
2
|
+
|
|
3
|
+
本指南说明如何在 **DSH Desktop(桌面版)** 中安装、验证和更新 `dsh-vision-toolkit`。
|
|
4
|
+
|
|
5
|
+
> 为什么需要单独一份指南?DSH Desktop 自带 `dsh` 命令行,但**不会写入系统 PATH**。在系统终端(PowerShell、cmd、macOS 终端)里运行 `dsh` 会提示找不到命令,这是桌面版的设计行为,不是插件问题。请始终使用桌面版托盘提供的 **DSH 终端**。
|
|
6
|
+
|
|
7
|
+
## 1. 打开 DSH 终端
|
|
8
|
+
|
|
9
|
+
1. 找到系统托盘中的 **DSH Desktop** 图标(Windows 在右下角,macOS 在右上角菜单栏)。
|
|
10
|
+
2. **右键**图标,选择 **Open DSH Terminal**(或 **打开 DSH 终端**)。
|
|
11
|
+
3. 打开的终端里先确认环境可用:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
dsh --version
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
能看到版本号就说明终端环境正常。如果提示找不到命令,请确认应用版本是 v2.0+,并完全退出桌面版后重新打开再试。
|
|
18
|
+
|
|
19
|
+
## 2. 安装插件
|
|
20
|
+
|
|
21
|
+
在 **DSH 终端** 中运行以下命令:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
dsh plugin --profile desktop add @anionex/dsh-vision-toolkit@0.1.34
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
几点说明:
|
|
28
|
+
|
|
29
|
+
- `--profile desktop` 表示安装到桌面版默认的 `desktop` Profile;想装到 `web` Profile 时把 `desktop` 换成 `web`。
|
|
30
|
+
- **建议带精确版本号**(当前为 `0.1.34`)。DSH 1024Store 插件市场的目录数据有滞后,市场里一键安装可能装到旧版本;显式写版本号能确保装到最新版。
|
|
31
|
+
- 如果当前激活的 Profile 就是要装的 Profile,也可以省略 `--profile desktop`,直接运行 `dsh plugin add @anionex/dsh-vision-toolkit@0.1.34`。
|
|
32
|
+
|
|
33
|
+
## 3. 重启并验证
|
|
34
|
+
|
|
35
|
+
1. **完全退出 DSH Desktop**:托盘右键 → **退出**(关闭窗口只是隐藏,不算退出)。
|
|
36
|
+
2. 重新打开 DSH Desktop。
|
|
37
|
+
3. 进入 **设置 → 视觉工具**,点击 **测试视觉模型**,确认默认免费视觉服务可用。
|
|
38
|
+
4. 在会话中**粘贴一张图片直接提问**,或调用 `/vision-skills` 使用完整视觉工作流。
|
|
39
|
+
|
|
40
|
+
## 4. 更新到新版本
|
|
41
|
+
|
|
42
|
+
1. 在 [npm 页面](https://www.npmjs.com/package/@anionex/dsh-vision-toolkit) 查看最新版本号。
|
|
43
|
+
2. 在 **DSH 终端** 中,把安装命令里的版本号换成新版本后重新执行:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
dsh plugin --profile desktop add @anionex/dsh-vision-toolkit@<新版本号>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
3. 再次**完全退出并重启 DSH Desktop**,新版本才会生效。
|
|
50
|
+
|
|
51
|
+
如果当初安装时没有锁定精确版本,也可以使用官方更新命令 `dsh plugin update`,但精确版本安装(`@0.1.34` 这种写法)下请使用上面的显式版本号方式升级。
|
|
52
|
+
|
|
53
|
+
## 常见问题
|
|
54
|
+
|
|
55
|
+
| 问题 | 处理方式 |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| 系统终端里找不到 `dsh` 命令 | 正常。请从托盘打开 **DSH 终端**,不要用系统 PowerShell/cmd/终端 |
|
|
58
|
+
| 托盘菜单里没有 Open DSH Terminal | 确认应用是 v2.0+ 版本;v2 才开始提供该入口 |
|
|
59
|
+
| 内置插件市场安装失败,提示“无法确认操作结果” | DSH Desktop 2.0.1 的市场安装链路有已知问题,请改用本文的 DSH 终端命令安装 |
|
|
60
|
+
| 装完插件没生效 | 确认命令装到了正确的 Profile,并**完全退出后重启**桌面版 |
|
|
61
|
+
| 想装到 web Profile | 把命令中的 `desktop` 换成 `web`,重启桌面版后到 web Profile 使用 |
|
|
62
|
+
|
|
63
|
+
## 相关链接
|
|
64
|
+
|
|
65
|
+
- [项目主页](https://agent-vision.anionex.me)
|
|
66
|
+
- [npm 包](https://www.npmjs.com/package/@anionex/dsh-vision-toolkit)
|
|
67
|
+
- [DSH Desktop 用户指南](https://github.com/anywhere-labs/deepseek-harness-desktop/blob/master/docs/user-guide.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anionex/dsh-vision-toolkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "DeepSeek Harness-native integration for agent-vision-toolkit: image Q&A, OCR, grounding, UI restoration, pixel diff, Artifacts, and Web UI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek",
|
|
@@ -803,10 +803,33 @@ index 3261fcf..68025be 100644
|
|
|
803
803
|
nodes, labels, groups, edges, directions, and edge labels.
|
|
804
804
|
6. Generate the Mermaid, Graphviz, or requested structure from that inventory.
|
|
805
805
|
diff --git a/references/restore-ui.md b/references/restore-ui.md
|
|
806
|
-
index f9ec11a..
|
|
806
|
+
index f9ec11a..bfc63c0e4eacbd3a5eaf9453ec542d3b5380875a 100644
|
|
807
807
|
--- a/references/restore-ui.md
|
|
808
808
|
+++ b/references/restore-ui.md
|
|
809
|
-
@@ -
|
|
809
|
+
@@ -10,11 +10,13 @@
|
|
810
|
+
## Choose the restore mode
|
|
811
|
+
-
|
|
812
|
+
-- Use **fast restore mode** when the user asks for a quick, rough,
|
|
813
|
+
- approximate, prototype, or first-pass reconstruction, or explicitly values
|
|
814
|
+
- speed over fidelity. Its target is a recognizable screenshot in about three
|
|
815
|
+
- minutes when the project already runs.
|
|
816
|
+
-- Use the **standard restore workflow** below when the user asks for close,
|
|
817
|
+
- precise, pixel-level, or production-ready alignment, or does not opt into a
|
|
818
|
+
- faster approximation.
|
|
819
|
+
-
|
|
820
|
+
+
|
|
821
|
+
+- Use **fast restore mode** when the user asks for a quick, rough,
|
|
822
|
+
+ approximate, prototype, or first-pass reconstruction, explicitly values
|
|
823
|
+
+ speed over fidelity, or the reference image itself shows a floating
|
|
824
|
+
+ speed-intent control such as "快速还原为 HTML" / "快速生成" / "quick
|
|
825
|
+
+ restore" overlay. Its target is a recognizable screenshot in about
|
|
826
|
+
+ three minutes when the project already runs.
|
|
827
|
+
+- Use the **standard restore workflow** below when the user asks for close,
|
|
828
|
+
+ precise, pixel-level, or production-ready alignment, or does not opt into a
|
|
829
|
+
+ faster approximation.
|
|
830
|
+
+
|
|
831
|
+
## Fast restore mode: first screenshot in about three minutes
|
|
832
|
+
@@ -28,17 +30,18 @@
|
|
810
833
|
1. Inspect the existing frontend stack, component library, icon set, source
|
|
811
834
|
assets, and design tokens before writing code, but stop searching as soon as
|
|
812
835
|
a usable local primitive is found.
|
|
@@ -833,7 +856,7 @@ index f9ec11a..69627895161fc1b57c6241665255fdf86ae1c1e5 100644
|
|
|
833
856
|
|
|
834
857
|
### Build the approximation
|
|
835
858
|
|
|
836
|
-
@@ -47,8 +
|
|
859
|
+
@@ -47,8 +50,9 @@
|
|
837
860
|
when zoomed in.
|
|
838
861
|
2. Reuse the project's existing components and CSS tokens. If its frontend or
|
|
839
862
|
icon library contains a reasonably similar component or icon, use it
|
|
@@ -845,7 +868,7 @@ index f9ec11a..69627895161fc1b57c6241665255fdf86ae1c1e5 100644
|
|
|
845
868
|
3. Use nearby existing palette tokens or visually similar CSS values. Exact
|
|
846
869
|
sampled hex values, gradients, subtle borders, and shadow opacity are out of
|
|
847
870
|
scope unless one of them defines the whole composition.
|
|
848
|
-
@@ -57,7 +
|
|
871
|
+
@@ -57,7 +61,7 @@
|
|
849
872
|
|
|
850
873
|
### Render once, fix once, deliver
|
|
851
874
|
|
|
@@ -854,7 +877,7 @@ index f9ec11a..69627895161fc1b57c6241665255fdf86ae1c1e5 100644
|
|
|
854
877
|
existing browser setup.
|
|
855
878
|
2. Inspect the screenshot once. If there is an obvious structural failure such
|
|
856
879
|
as a missing major region, broken wrapping, or a wildly wrong scale, make
|
|
857
|
-
@@ -66,7 +
|
|
880
|
+
@@ -66,7 +70,7 @@
|
|
858
881
|
small color, icon, font, shadow, radius, or spacing differences.
|
|
859
882
|
|
|
860
883
|
A practical time box is roughly 30 seconds for project inspection plus
|
|
@@ -863,7 +886,7 @@ index f9ec11a..69627895161fc1b57c6241665255fdf86ae1c1e5 100644
|
|
|
863
886
|
rendering, one correction, and screenshot delivery. Dependency installation or
|
|
864
887
|
a project that does not already run may extend that target; do not compensate
|
|
865
888
|
by silently switching back to a long precision loop.
|
|
866
|
-
@@ -112,18 +
|
|
889
|
+
@@ -112,18 +116,19 @@
|
|
867
890
|
### 2. Establish the coordinate system
|
|
868
891
|
|
|
869
892
|
Record the reference image dimensions and the target viewport. Screenshots may
|
|
@@ -891,7 +914,7 @@ index f9ec11a..69627895161fc1b57c6241665255fdf86ae1c1e5 100644
|
|
|
891
914
|
|
|
892
915
|
Treat model boxes as approximate handles. Use them to organize the page, but
|
|
893
916
|
do not mistake their final few pixels for measured boundaries.
|
|
894
|
-
@@ -141,15 +
|
|
917
|
+
@@ -141,15 +146,11 @@
|
|
895
918
|
extraction, tighten the final region to the visual's own ink; adjacent text or
|
|
896
919
|
rules inside the region can become foreground components too.
|
|
897
920
|
|
|
@@ -912,7 +935,7 @@ index f9ec11a..69627895161fc1b57c6241665255fdf86ae1c1e5 100644
|
|
|
912
935
|
```
|
|
913
936
|
|
|
914
937
|
Inspect the transparent result before use. Confirm that the whole visual is
|
|
915
|
-
@@ -162,8 +
|
|
938
|
+
@@ -162,8 +163,8 @@
|
|
916
939
|
- Follow the project's existing framework and component patterns.
|
|
917
940
|
- Build content, interaction, responsive layout, borders, shadows, and simple
|
|
918
941
|
shapes natively.
|
|
@@ -923,7 +946,7 @@ index f9ec11a..69627895161fc1b57c6241665255fdf86ae1c1e5 100644
|
|
|
923
946
|
- Place extracted assets with explicit logical dimensions. Preserve their
|
|
924
947
|
aspect ratio and avoid baking surrounding whitespace into the asset.
|
|
925
948
|
- Match structure and proportions before tuning small spacing.
|
|
926
|
-
@@ -172,10 +
|
|
949
|
+
@@ -172,10 +173,10 @@
|
|
927
950
|
|
|
928
951
|
For an existing implementation, start here.
|
|
929
952
|
|
|
@@ -936,7 +959,7 @@ index f9ec11a..69627895161fc1b57c6241665255fdf86ae1c1e5 100644
|
|
|
936
959
|
spot or explain.
|
|
937
960
|
3. Fix material discrepancies: missing or wrong content, incorrect hierarchy,
|
|
938
961
|
broken wrapping, visibly wrong alignment or scale, wrong component state,
|
|
939
|
-
@@ -185,7 +
|
|
962
|
+
@@ -185,7 +186,7 @@
|
|
940
963
|
rasterization, antialiasing, subpixel placement, or another imperceptible
|
|
941
964
|
rendering detail.
|
|
942
965
|
|