dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
在 DSH 打字框里加一个截图键 —— 像微信聊天窗里那个:点一下、框一块、图就进输入框。
~/.dsh/dsh-lit-shot/settings.json)。要求:Windows 10/11、DSH 0.2.0-rc.2 及以上(在 0.2.1-rc.2 上验证过)、系统自带的 Windows PowerShell 5.1(不需要 pwsh)。
dsh plugin add github:QiaoSchoco/dsh-lit-shot也可以在 DSH 插件页里用「从路径安装」指向本仓库目录。装好后重启 DSH(宿主半是常驻进程,只在启动时加载)。
操作 · 结果 左键点剪刀 · 冻结屏幕 → 拖框 → 图片进输入框 Alt+A(默认) · 同上,任何窗口里都能触发 右键点剪刀 · 快捷键面板:显示当前热键,按新组合键即修改 框选时 Esc / 右键 · 取消这次截图
index.js:拉起一个常驻 powershell.exe(scripts/agent.ps1,内嵌 C#)。脚本用 RegisterHotKey 抢全局热键、用全屏无边框 Form 画冻结画面与选框、用 GDI CopyFromScreen 抓屏、按选区裁剪后把 PNG 路径写回 stdout(一行一个 JSON)。宿主把这些事件包成 6 条 ctx.webServer 路由:capture / pending / shot / claim / settings / cancel。client.js:在 conversation.input.left 槽注册剪刀按钮,点它 POST capture 等结果;热键截的图通过 /pending 轮询取回。拿到 PNG 后 conversation.createDrafts(sessionId, [file]) → inputActions.addAttachments(ids),失败则回滚并把图放进剪贴板。conversation.createDrafts / inputActions.addAttachments 是 DSH 尚未写进文档的草稿附件接口,升级后可能变动 —— 插件里做了失败回滚和剪贴板兜底,但这条线不是公开契约。Alt+A 可能和别的软件撞车;撞了会在右键面板显示「未注册」,换一个组合键即可。A screenshot button for the DSH composer on Windows: click the scissors, drag a rectangle over the frozen screen, and the picture is handed to the shipped draft-attachment channel so it is sent as a normal image. A resident PowerShell agent owns the global hotkey (Alt+A by default, editable from the right-click panel) and a full-screen overlay. Requires DSH >=0.2.0-rc.2 on Windows 10/11.
dsh plugin add github:QiaoSchoco/dsh-lit-shotMIT