Bundle
@dsh-external/dsh-vision-helper
辅助视觉模型:图片→文本描述,供文本模型、浏览器截图兜底与聊天贴图降级使用
- Source
- statem-li
- License
- BSD-3-Clause
- Updated
- Updated 19 days ago
Readme
# @dsh-external/dsh-vision-helper
辅助视觉模型插件(DeepSeek Harness / dsh):图片→文本描述,供文本模型、浏览器截图兜底与聊天贴图降级使用。
- 提供 `vision_describe` 等视觉描述能力,浏览器截图可走本插件兜底
- 设置页可配置辅助视觉模型(VisionModelSection)
- 依赖 `@dsh-external/dsh-browser` 或其它浏览器插件的截图路径配合使用
## 安装
### 方式一:本地 link(已验证,推荐)
本站在 web profile 中验证可用。以链接依赖加入 profile:
```jsonc
// %USERPROFILE%\.dsh\profiles\web\package.json -> dependencies
"@dsh-external/dsh-vision-helper": "link:D:/AI/Dsh/dsh-vision-helper"
```
再在 `%USERPROFILE%\.dsh\profiles\web\cordis.patch.yml` 追加:
```yaml
- insert:
- id: dsh-vision-helper
name: "@dsh-external/dsh-vision-helper"
```
然后 `pnpm install`,重启 `dsh web`。本地 link 方式下运行依赖由插件目录内 node_modules 链接(指向本机 dsh checkout)解析,**不依赖 npm 注册表版本**,最稳定。
### 方式二:GitHub 官方安装
```bash
dsh plugin add github:statem-li/dsh-vision-helper
```
**注意:** 本插件宿主端依赖 `@deepseek-ai/dsh-tools` 与 `schemastery`,当前 npm 注册表上 `@deepseek-ai/dsh-tools` 仅发布到 `0.0.1-rc.1`(最新 harness 为 0.1.0-rc.x),版本未对齐;若官方安装后启动报 `Cannot find package ...`,请改用方式一。
## 源码构建
```bash
DSH_CHECKOUT=D:/AI/deepseek-harness bash scripts/build.sh
# src/*.ts → lib/*.js(tsc)、src/client/* → lib/client.js(tsdown)
```
## 许可
BSD-3-ClauseInstall
dsh plugin --profile web add github:statem-li/dsh-vision-helper
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-external-dsh-vision-helper from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.