feat: Tevarn 内置 VSD/VSDX 查看器 - #2
Open
wu1w wants to merge 1 commit into
Open
Conversation
Add an in-app Visio viewer so Tevarn can open VSD/VSDX without a separate desktop app. VSDX/VSDM/VDX render to SVG from the XML package; binary .vsd uses LibreOffice or libvisio when present, otherwise extracted text plus an install hint. doc_read understands visio, chat artifacts treat .vsd/.vsdx as previewable, and office-pack routing matches visio/vsd keywords. Co-authored-by: wu1w <wu1w@users.noreply.github.com>
wu1w
marked this pull request as ready for review
August 13, 2026 02:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在 Tevarn 工作台里直接查看 Microsoft Visio 图纸,不必再装单独的 Visio 客户端。
做什么
.vsd/.vsdx/.vsdm/.vdxdoc_read按页提取形状文字,Agent 可以读流程图.vsd:若本机有 LibreOffice Draw 或vsd2svg则转 PDF/SVG;否则提取可打印字符串,并提示安装命令怎么用
旧版
.vsd要图形预览时,在 Windows 上安装 LibreOffice:测试
backend/tests/test_visio_preview.py:VSDX SVG 渲染、VDX、无转换器时的 .vsd 回退、doc_readtest_tool_policy.py::test_visio_keyword_selects_office_packfrontendartifacts / file-preview logic smokeAPI:
GET /api/files/visio-preview?path=...(as=pdf在 LibreOffice 转换成功时返回 PDF)