DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-visio

d

dsh-visio

Manifest valid

Open and edit Visio (.vsdx) drawings in a DSH panel: live SVG preview, shape and connector editing, layout checks, and a visio tool so the agent can read and modify the drawing. A pure-Python engine,

UI (client)hasBundlePatch

dsh-visio

CI

在 DeepSeek Harness(DSH)Web 界面里直接看和改 Visio 图纸(.vsdx)的插件:实时预览、形状编辑,外加一个给 Agent 用的 visio 工具。

引擎主体(.vsdx 读写、渲染、编辑)只用 Python 标准库,不需要装 Visio,也不依赖 Office;PNG 导出、snapshot 快照和模具预览图额外需要 Pillow(engine/vsdx_png.py、engine/svg_raster.py)。

English · 简体中文

status license engine

截图

面板选中形状(可编辑)
面板编辑形状

选中连接线后,可调起点/终点方向与线型:

编辑连接线

展示案例

案例内容语言
全球订单履约4 泳道 / 15 节点 / 3 决策门 / 3 条退回线中 · 英 · 日
平台逻辑架构接入/服务/数据三层容器 + 外部系统中 · 英 · 俄

全球订单履约

平台逻辑架构

功能

  • 实时预览:面板把 .vsdx 页面渲染成 SVG,每次改动后立即重绘。
  • 就地编辑:移动/缩放、文字、填充、线条、逐行文字颜色、形状数据。
  • 形状库:内置 16 种图形(流程、判定、起止……),支持导入 .vssx / .vstx 模具;图形用真实 Visio 母版几何绘制,不是几条线拼出来的。
  • 连接线:新增、加标签、删除;线自己的颜色/线宽/箭头都保留,标签从 1-D 形状的文字里读。
  • 关系检查:validate 能找出空连接(没有 Connect 行的线)、悬空 ID、漂移端点、零尺寸形状。
  • 多页、缩放、平移、网格、撤销/重做,以及文件被外部修改时的自动检测。
  • Agent 工具:同一套能力以 visio 工具暴露给模型,含模具发现(stencil_info、stencil_sheet)、整图快照(snapshot)和自描述的 capabilities。

安装

从插件市场安装(推荐):DSH 里打开 Settings → Plugins,搜 dsh-visio 点安装;或命令行:

dsh plugin --profile desktop add dsh-visio

npm 包:https://www.npmjs.com/package/dsh-visio(latest = 1.24.1)。

想在 Plugins → Discover / 插件市场 里看到它,需要先给 DSH 加一个索引源:

Settings → Plugins → Discover → Index sources
https://cdn.jsdelivr.net/npm/dsh-plugin-catalog/index.json

GitHub 源仍可直装(备用):

dsh plugin --profile desktop add github:SamyiHu/dsh-visio

本地开发:在 profile 的 package.json 里加 "dsh-visio": "link:/absolute/path/to/dsh-visio",执行 pnpm install,再重载应用。插件自带 cordis.patch.yml,会自动插入。

需要 PATH 里有 Python 3.9+(或在插件配置里设 pythonPath,或设环境变量 DSH_VISIO_PYTHON);若要用 PNG 导出 / 快照 / 模具预览,还需为该解释器安装 Pillow:python -m pip install Pillow。

使用

  • 侧栏 → Visio 图纸 打开面板;浮动画布按钮可以把同一张图放进可拖动的独立窗口。
  • 选目录 → 点一个 .vsdx:左边树列页面和形状,右边改选中形状的属性。
  • Agent 侧直接说需求即可,模型会调 visio 工具: open、text、get_shape、list、create、add_shape、move、set_text、set_cell、 set_prop、connect、delete、validate、kinds、stencils、stencil_info、 stencil_sheet、stencil_add、snapshot、capabilities、undo、redo、normalize、export。 examples/basic-shapes.vssx 是测试用的三母版模具。

配置

键默认值含义
pythonPathpython引擎使用的解释器
defaultFolder工作目录文件浏览器起始目录

兼容性

组件要求说明
Node.js≥ 18宿主半 index.js 用 ESM + node: 前缀导入 + import.meta.url;CI 在 Node 20 上跑
Python≥ 3.9引擎解释器,默认 Windows 用 python、其他系统用 python3;可用 pythonPath / DSH_VISIO_PYTHON 指定。CI 在 3.12 上跑
Pillow可选仅 PNG 导出、snapshot、模具预览需要;核心读写与 SVG 渲染是标准库
DSH 宿主>=0.1.7-rc.2(dsh.engines.dsh);保证 0.2.2-rc.1desktop profile / Web UI 插件。初制作期(2026-10-28 首版)的版本可用但仓库未记录确切号;更早的部分 0.2.x 之前版本可能可用、不保证。peerDependencies["@deepseek-ai/dsh"] 显式列出各预发布分支,避免 semver 静默排除 prerelease

机器可读声明在 package.json:engines.node、dsh.engines.dsh(声明性,pnpm 默认只 WARN)与 peerDependencies["@deepseek-ai/dsh"](npm/pnpm 真正校验的范围)。Python / Pillow 为插件自身运行前置,见上表。

结构

index.js                 Host 侧:`visio` 工具 + 同源路由、引擎进程池
client.js                Client 侧:面板、浮窗、属性检查器、i18n
engine/vsdx_core.py      读写渲染核心(OPC + XML,纯标准库)
engine/visio_bridge.py   Host 调用的 JSON 行协议
engine/blank_doc.py      从零生成最小可用 .vsdx
engine/kinds.py          16 种内置图形(真实母版几何)
engine/stencil.py        .vssx/.vstx 导入
tests/                   引擎、客户端渲染、客户端契约、Host 契约

Host 按解释器各留一个引擎子进程,并在任意 engine/*.py 变化时重启(mtime + size 指纹),避免改完还跑旧代码。

开发与测试

python tests/test_engine.py          # 15 例:编辑、连线、模具、快照
node tests/test_client_render.mjs    # 无头渲染面板/检查器/新建对话框
node tests/test_client_contract.mjs  # 翻译键 + 槽位契约
node tests/test_host_contract.mjs    # 工具 schema + 路由 + 桥往返
node tests/make_uicheck.mjs          # 生成右栏布局页,可在真浏览器里量尺寸

已知限制

  • SVG 预览对排版是近似(按宽度估算换行),和 Visio 不保证逐像素一致。
  • 主题/母版对几何和颜色的处理是有的,但不是每条样式继承规则都实现。
  • .vsdm 宏不执行。

CI / CD

  • ci.yml:push/PR 在 Linux + Windows 双矩阵跑语法检查、引擎 15 例、客户端契约、Host 契约,通过后产出整包 zip 附件。
  • release.yml:打 v* tag 自动发 Release;tag 与 package.json 版本不一致直接失败。

许可

MIT,见 LICENSE。仓库不含第三方样例文件,测试自己生成文档。

Comments

Loading…

Similar plugins

dsh-drawai

by fourzkw

DSH 右侧栏的可编辑画布 + AI 语义绘图工具(diagram_apply / diagram_read),直接读写原生 .drawio 文件

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 714

↓ 2k/wk

MIT

JavaScript

Nov 17, 2026

dsh plugin --profile web add dsh-drawai

A draw.io editor as a .drawio file viewer in the DSH sidebar: diagrams are ordinary workspace files (new ones default to docs/diagrams/), edits autosave, and a file changed outside the editor is refus

UI & ExperienceManifest valid

★ 0

NOASSERTION

TypeScript

dsh plugin --profile web add dsh-drawio

Preview and edit attached PowerPoint presentations in the DSH sidebar through conversation or manual controls, with shared undo/redo and PPTX download.

Development & InfrastructureManifest valid

★ 0

dsh plugin --profile web add dsh-pptx-editor

by senyayume

DSH 插件:在文件变更工具卡片上重绘行级 diff(相同行只渲染一次 + 行内字符高亮),覆盖 run_code(PTC) 与 str_replace_editor,轮末给出改动汇总卡,并可在资源管理器中定位或复制路径。

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 0

MIT

JavaScript

Sep 22, 2026

dsh plugin --profile web add dsh-edit-diff

by jean3690

DSH drawio 插件:AI 驱动画图(validate/render/edit/template 工具)+ 侧栏实时 SVG 画板,内嵌 diagrams.net 官方编辑器

Tools & CapabilitiesManifest valid

★ 11

↓ 401/wk

JavaScript

Sep 7, 2026

dsh plugin --profile web add dsh-drawio

by lhmd

DSH Director Toolkit is a DeepSeek Harness plugin for 3D artists, technical designers, and creative coders. Paste a half-formed idea, a reference note, or a portfolio caption and get a compact directi

Workflow & AutomationManifest valid

★ 9

MIT

JavaScript

Aug 13, 2026

dsh plugin --profile web add @lhmd/dsh-director-toolkit