
ZSeven-W/dsh-openpencil
863最近提交 2026年8月14日
dsh-openpencil DSH 插件
DSH OpenPencil 将 DeepSeek Harness 与 OpenPencil 连接起来,让 Agent 驱动一个真实的、可编辑的交互式设计画布,而不是返回生成的图片。它提供精确的多帧预览、交互式画布以及带有原生设计工具的托管编辑器,全部集成在 DSH 对话界面中。
如何安装 dsh-openpencil DSH 插件
dsh plugin --profile web add @zseven-w/dsh-openpencil@latest复制不会执行命令。安装 dsh-openpencil DSH 插件前请核对仓库和版本。
dsh-openpencil DSH 插件数据来源
dsh-openpencil DSH 插件快照日期:2026年8月16日
discovered
dsh-openpencil DSH 插件能做什么
- 精确的多帧预览,包含 PNG 缩略图轨道和点击选择导航
- 只读交互式画布,支持平移、缩放和适配,用于检查任意页面或节点
- 托管编辑器,包含选择、图层、属性、绘图工具、撤销/重做和显式保存语义
- 五个 Agent 原生设计工具:openpencil_new、openpencil_create、openpencil_edit、openpencil_render、openpencil_selection
- 基于能力门控的授权,使用签名的哈希绑定图像和文档能力
dsh-openpencil DSH 插件适合哪些场景
- 根据自然语言需求,通过 Agent 画布创建新的 .op 文档
- 在对话中预览和迭代现有设计,无需离开聊天
- 通过托管编辑器工作台编辑活动画布上的特定节点或图层
- 检查预览图库中未显示的非活动页面或嵌套节点
- 在单个 DSH 会话中构建从需求到最终产物的完整设计工作流
dsh-openpencil DSH 插件适合谁
- 使用 DeepSeek Harness 的设计师和开发者,需要创建或修改 OpenPencil 文档
- 将 Agent 原生设计工具集成到对话式 AI 工作流中的团队
dsh-openpencil DSH 插件的限制
- 对现有画布的后续编辑需要已打开的托管编辑器;更改在用户调用保存操作前保持未保存状态
- 轻量级 Web SDK 画布为只读;完整编辑需要使用独立的托管编辑器界面
dsh-openpencil DSH 插件的仓库 README 摘录
以下文字摘自 dsh-openpencil DSH 插件的上游仓库 ZSeven-W/dsh-openpencil 的 README,版权归原作者,仅作引用。
DSH OpenPencil connects [DeepSeek Harness](https://github.com/deepseek-ai/DSH) with [OpenPencil](https://github.com/ZSeven-W/openpencil) so an Agent drives a real, editable, interactive design canvas instead of returning a generated image. <table> <tr> <td width="50%"> ### 🖼️ Exact Multi-Frame Previews The installed OpenPencil headless exporter renders design-faithful previews: the first top-level frame as a large replay-safe PNG, plus a horizontally scrollable thumbnail rail, click-to-select, and previous/next navigation for multi-frame documents. </td> <td width="50%"> ### 🗺️ Interactive Canvas "Open interactive canvas" lazily mounts the read-only OpenPencil Web SDK with pan, zoom, and fit — inspect any page, nested node, or inactive page without leaving the conversation. </td> </tr> <tr> <td width="50%"> ### ✏️ Managed Editor With `editable: true`, the edit action opens the managed OpenPencil editor — selection, layers, properties, drawing tools, undo/redo, and explicit save semantics — in a resizable right-hand workbench with a full-screen option. </td> <td width="50%"> ### 🤖 Agent-Native Design Tools Five tools — `openpencil_new`, `openpencil_create`, `openpenci
阅读完整 README仓库许可: MIT
dsh-openpencil DSH 插件常见问题
如何安装 DSH OpenPencil 插件?
执行命令:`pnpm dlx --package=@deepseek-ai/dsh@0.1.0-rc.6 dsh plugin --profile web add @zseven-w/dsh-openpencil@latest`,然后启动 DSH Web 服务器:`pnpm dlx --package=@deepseek-ai/dsh@0.1.0-rc.6 dsh web`。该插件是公开的,无需 npm 令牌。
这个插件需要在我的机器上安装 OpenPencil 吗?
是的,为了完整功能,插件需要 OpenPencil 二进制文件。它会检查多个位置:环境变量 `DSH_OPENPENCIL_BINARY` 或 `DSH_OPENPENCIL_DESKTOP`、常见的 macOS 路径,或者 PATH 中的 `openpencil-desktop` 命令。如果精确的二进制文件不可用,回退渲染器(Jian)可能生成带标记的运行时预览,但精确渲染器的失败不会静默回退。
能否使用这个插件编辑 .op 文档?
可以,在调用 `openpencil_render` 时设置 `editable: true`,或者直接使用托管编辑器。编辑器支持选择、图层、属性、绘图工具、撤销/重做和显式保存。更改在您点击保存之前保持未保存状态。轻量级交互式画布是只读的,因此完整编辑需要使用托管编辑器工作台。
插件提供了哪些设计工具?
插件提供了五个 Agent 原生工具:`openpencil_new`(从批处理设计程序创建新的 .op)、`openpencil_create`(修改现有画布)、`openpencil_edit`(修改特定节点)、`openpencil_render`(渲染预览并可选择打开编辑器)和 `openpencil_selection`(读取当前在实时编辑器中选择的节点)。
预览和编辑器能力如何保证安全?
图像和文档授权是经过签名的哈希绑定能力。浏览器元数据从不暴露任意主机路径,签名预览/编辑器能力从不进入规范的工具结果或模型上下文。插件使用同源、会话绑定的端点恢复仅 UI 投影,编辑器授权仅针对最近的可信实时结果颁发。