DeepSeek Harness 插件

173787247/dsh-wsl-winshot

Star 数 ★ 1 分类 WSL 与 Windows 互操作 收录于 2026-10-08

截取 Windows 窗口到 WSL 文件:整窗、按区域裁剪,或裁剪到指定 UI 元素。

安装

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:173787247/dsh-wsl-winshot

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

把指定的 Windows 窗口截图存入 WSL 文件,可按进程号或窗口句柄指定。

DeepSeek Harness 插件:Capture a specific Windows window to a WSL file, by process id or window handle.

属于 dsh-wsl-kit 的一部分。

English → README.md

安装

dsh plugin --profile web add github:173787247/dsh-wsl-winshot

用法

win_shot_window                                        # foreground window
win_shot_window pid=1234 name="build-output"           # a specific process

说明

Use this when you need the picture. Use dsh-wsl-shot when the image is already on the clipboard. A minimized window is restored before measuring, because a minimized window reports an empty rectangle.

依赖

  • Windows + WSL,DeepSeek Harness 跑在 WSL 里。
  • PowerShell 位于标准路径(插件自己会找)。

测试

npm test

单元测试在任何平台都能跑;实时测试在 WSL 之外自动跳过。

兼容性

字段 值
插件 dsh-wsl-winshot 0.1.0
最低 dsh ≥ 0.1.2(Web UI 一次性 ?token=,Windows 中继 :3081)
最新验证 以 dsh-wsl-kit 兼容性 为准(当前 0.2.2-rc.5)— 套件唯一真源
套件档位 full 或单独安装

许可

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。