dsh-docling

DSH PLUGIN工具与能力

仓库 sqhao-o/dsh-docling · npm dsh-doc

工具与能力 未标注验证等级 安全审查:未标注 可信度:未标注 可安装插件
安装这个插件

dsh-doc 为 DeepSeek Harness 提供全本地文档智能,解析 PDF、Office、图片并支持离线 OCR,无需 Docker 或 API 密钥。

一句话选型结论

按资料字段整理

dsh-docling 是工具与能力类的 DSH 可安装插件,未做沙盒验证,暂无安全审查结论,列出 4 项功能,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类工具与能力 收录类型可安装插件 验证等级未标注验证等级 安全审查未标注
验证等级 UNKNOWN 未标注验证等级
GitHub 星标 16 复刻 0 · 未关闭 issue 未标注
最近更新 2026-09-11 创建于 2026-08-14
README 11.3 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add dsh-doc
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名dsh-doc可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-docling:DeepSeek Harness 的全本地文档智能插件

  • 解析 PDF 与 Office
  • 离线 OCR 识别
  • 输出 Markdown/JSON
  • 本地运行保护隐私

上游标签

ai-agentdeepseekdeepseek-harnessdoclingdocument-intelligencedocument-parsingdocument-processingdsh-pluginllmnodejsocrpdfragtypescript

验证等级与安全审查

未标注验证等级
自动化流程结论,不是人工审核
验证等级未标注验证等级上游未给出验证结论,安装前请自行确认
安全审查未标注静态分析结论,未标注不代表已通过审查
仓库健康度未标注按仓库活跃度与最近更新时间给出
可信度未标注综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 安全审查还没结论,装之前先看仓库改了什么、要什么权限。
  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在工具与能力场景里给 DSH 补能力的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-docling当前 未做沙盒验证 未标注 16 未标注 有
loopx 未做沙盒验证 未标注 6,233 未标注 无
dsh-startup-screen 未做沙盒验证 未标注 633 未标注 有
minara-skills L4 · 沙盒安装通过 中风险 360 未标注 有
dsh-blender-plugin 未做沙盒验证 未标注 211 未标注 无
tokenledger L5 · 运行验证通过 低风险 204 0.2.0-rc.2 等 11 个 有

仓库档案

工具与能力
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方sqhao-o仓库 dsh-docling · 默认分支 未标注
分类工具与能力tools
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue16 / 0 / 未标注收录时的数值,非实时
创建 / 更新2026-08-14 · 2026-09-11最后推送 未标注
本站收录2026-08-21首次进入本站目录的时间

README 全文

11.3 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-docs

中文 | Installation prompt

dsh-docs gives your DeepSeek Harness agent real document intelligence —
entirely on your own machine. Hand it a PDF, Word, Excel, or PowerPoint file
and get back clean Markdown, plain text, or structured JSON; hand it a scanned
page or image and a fully offline OCR pipeline reads it for you. No Docker, no
HTTP service, no API keys, and no document ever leaves your disk.

It ships a pinned, self-contained Python + Xberg
runtime with offline Tesseract language data (English and Simplified Chinese),
delivering complete PDF/Office/OCR coverage on Windows x64 out of the box. The
native Xberg Node binding serves as a lightweight non-OCR fallback on any
platform, and every file read stays confined to folders you explicitly
authorize.

The published package and plugin id use the dsh-doc spelling and the tools
use dshdoc_*; they were renamed from the initial dsh-docling / docling_*
release.

One-prompt install

No local checkout or build toolchain is needed. Paste the following prompt into
a running DSH session (for example dsh web) in your own project folder. The
Harness agent installs the published npm package, downloads the pinned offline
OCR runtime, and configures the plugin in one go. The only prerequisite is a
working dsh CLI on Node ^22.19 or >= 24; every runtime step is plain
Node.js, so any shell works: cmd, PowerShell, pwsh, or Git Bash.

Install the dsh-doc plugin into my DSH web profile, end to end. Do every
step yourself in the terminal and verify the result.

1. Install the published plugin package:
dsh plugin --profile web add dsh-doc
2. Windows x64 only — download the prebuilt offline OCR runtime. The script
verifies the pinned archive SHA-256, then verifies every extracted file
against the bundled manifest:
node /.dsh/profiles/web/node_modules/dsh-doc/scripts/fetch-runtime-win32-x64.mjs /.dsh/runtimes/dshdoc-runtime-win32-x64
Replace  with my absolute home directory in this and every later step.
On any other platform, skip this step and use engine: node below.
3. Edit /.dsh/profiles/web/cordis.patch.yml. Preserve every existing
entry and add or update this one:
- id: dsh-doc
config:
engine: python
runtimeDir: /.dsh/runtimes/dshdoc-runtime-win32-x64
defaultOcr: true
maxOutputChars: 32000
The session workspace is readable automatically; add allowedLocalRoots only
for extra persistent directories such as a shared document vault.
If you skipped step 2, use `engine: node` and `defaultOcr: false` instead
and omit runtimeDir.
4. Verify with `dsh --profile web --dump-config` that the composed dsh-doc
entry carries exactly this config, then report the result and remind me to
restart `dsh web` so I can call dshdoc_health.

Hard constraints: never install, start, or configure Docling Serve, Docker,
containers, or any remote document-conversion service; never configure a
downloadable OCR backend or allow a model download.

After the agent finishes and you restart dsh web, check the engine with
dshdoc_health, then parse any file below your workspace with
dshdoc_extract. INSTALL.md documents the same flow plus the
manual procedure step by step.

Supported and tested inputs

  • PDF, DOCX, XLSX, PPTX, Markdown, HTML, CSV, and text
  • PNG, JPEG, TIFF, WebP, and scanned PDFs through local OCR
  • Markdown, plain text, or JSON-shaped Tool Results

The integration suite generates binary documents outside the repository and
verifies PDF, DOCX, XLSX, PPTX, PNG OCR, and scanned-PDF OCR. Test any other
Xberg-supported input against your own corpus before enabling it in production.

Quick start with dsh web

Install the published package into the web profile:

dsh plugin --profile web add dsh-doc

Windows x64 — fetch the prebuilt offline OCR runtime into a stable directory
outside node_modules (so plugin upgrades never delete it):

node ~/.dsh/profiles/web/node_modules/dsh-doc/scripts/fetch-runtime-win32-x64.mjs ~/.dsh/runtimes/dshdoc-runtime-win32-x64

Expand ~ to your absolute home directory everywhere, including inside the
YAML below. On other platforms, skip the runtime and use engine: node with
defaultOcr: false.

Add the plugin entry to the web profile's cordis.patch.yml:

- id: dsh-doc
config:
engine: python
runtimeDir: ~/.dsh/runtimes/dshdoc-runtime-win32-x64
maxFileBytes: 52428800
maxOutputChars: 32000
# Safe here because the configured runtime carries the local language packs.
defaultOcr: true
defaultTableMode: accurate
defaultOutputFormat: md

The session workspace is readable without further configuration. Add
allowedLocalRoots only for extra persistent directories the model may read
beyond the workspace, and set allowWorkspaceFiles: false only for
allowlist-only lockdown deployments.

Restart dsh web, then ask it to read a local document:

Read ./reports/annual-report.pdf and give me the three main risks.
Extract the tables from ./financials.xlsx.
Read the text from ./scanned-invoice.png.

Only paths below the session workspace or allowedLocalRoots are readable.
Relative paths resolve against the DSH session workspace, not the directory
from which dsh web was started.

Offline embedded Python runtime (Windows x64)

Most users fetch the prebuilt, hash-pinned runtime from the GitHub Release:

node ./scripts/fetch-runtime-win32-x64.mjs

To audit and rebuild from source instead, run:

node ./scripts/build-runtime-win32-x64.mjs

Either command creates a gitignored .dsh-runtime/runtime-win32-x64 directory
containing CPython 3.11.9, xberg==1.0.14, and pinned eng / chi_sim
Tesseract data. Every downloaded file is SHA-256 validated; the artifact
contains a manifest, NOTICE, and SPDX inventory. It does not alter a global
Python installation. Run node ./scripts/verify-runtime-win32-x64.mjs before
pointing a profile at a copied runtime artifact.

Point the plugin at the runtime:

- id: dsh-doc
config:
engine: python
runtimeDir:

The Python worker receives only a byte snapshot, display name, MIME type, and
conversion options over stdio. It never receives a user path or URL. It runs
offline, refuses missing OCR language packs, and disables document-derived OCR
caching. dshdoc_health reports the available OCR languages. See the runtime
guide.

Node-only fallback

Set engine: node only when you need PDF/Office/text parsing without the
embedded Python runtime. Its defaultOcr is false. To enable Node OCR, set
tessdataPath to a reviewed local directory containing every requested
.traineddata pack; missing data returns ENGINE_OCR_UNAVAILABLE
instead of downloading a model. The Python runtime above is the supported
complete offline OCR path.

Tools

Tool Purpose
dshdoc_health Report readiness of the selected local engine.
dshdoc_convert_file Parse an allowlisted local file.
dshdoc_extract Preferred local-file convenience tool.
dshdoc_convert_url Compatibility stub that returns UNSUPPORTED_URL.

HTTP(S) input is detected only to reject it safely. Download a remote document
through a reviewed workflow into an allowed local root, then parse that file.
The plugin never forwards a URL to Xberg or Python, avoiding redirect and
DNS-rebinding risks.

page_range uses inclusive, one-based page numbers for Markdown and plain-text
results. JSON output deliberately retains the complete structured document.

The conversion tools also accept an optional per-request ocr_languages array
(for example ["chi_sim", "eng"]) to override the configured language set for
one document. Results report OCR: applied / OCR: not used when the engine
exposes whether the OCR pipeline contributed; enabling OCR never replaces a
healthy embedded PDF text layer.

Configuration

Field Default Meaning
engine auto node, python, or auto; auto selects configured embedded Python, otherwise Node Xberg.
runtimeDir unset Absolute embedded-runtime directory.
pythonCommand unset Trusted Python executable for a managed runtime.
pythonWorkerPath shipped worker Absolute Python worker override.
tessdataPath runtime ocr/tessdata Absolute bundled Tesseract language-data directory.
ocrBackend auto auto or tesseract; both select the pinned local Tesseract backend.
ocrLanguages every bundled pack Ordered local OCR language packs. Unset uses every .traineddata pack in the configured runtime.
timeoutMs 120000 Per-conversion deadline.
maxFileBytes 52428800 Authorized input-size cap.
allowedLocalRoots [] Extra absolute non-root directories the model may read, beyond the session workspace.
allowWorkspaceFiles true Implicitly authorize the session workspace (session cwd) as a readable root; set false for allowlist-only lockdown.
defaultOcr false OCR default for images and scans; enable it only with a configured local tessdata runtime.
defaultTableMode accurate fast or accurate PDF table behavior.
defaultOutputFormat md md, text, or json.
maxOutputChars 32000 Maximum result returned to the model.
debug false Logs safe engine metadata only.

Older baseUrl, apiKey, enableRemoteUrls, and allowPrivateUrls profile
fields are accepted only for migration; they do not enable a remote engine.

Security model

  • Paths are realpathed and checked against every configured root and, unless
    allowWorkspaceFiles is disabled, the session workspace. Traversal,
    symlink escapes, filesystem roots, non-files, and oversized inputs fail.
  • The authorized descriptor is read once into a snapshot before parsing, so a
    later path replacement cannot change the parsed bytes.
  • The Node and Python engines accept bytes only. The plugin creates no listener,
    URL fetcher, container, or external parser service.
  • OCR is Tesseract-only in this release. All requested language packs are read
    from the configured local artifact; missing packs fail closed rather than
    triggering a model download.
  • The descriptor opened for parsing must have the same device/inode identity as
    the post-open allowlisted path, blocking file replacement between authorization
    and the byte snapshot.
  • Results are bounded before becoming Tool Results. JSON is limited using the
    same pretty representation shown to the model.

Development

pnpm install
pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm pack --pack-destination .pack

Tests create temporary documents only. They cover native Xberg, the Python
stdio worker, local OCR data, Cordis ToolRuntime, and local DSH AgentLoop
context injection.

Licenses

This project is MIT. Xberg 1.0.14 is MIT. The optional Windows runtime contains
CPython (PSF-2.0) and tessdata_fast language data (Apache-2.0), with exact
sources, hashes, and notices recorded in its generated artifact.

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
dsh-docling 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add dsh-doc` 即可。对应的 npm 包名是 `dsh-doc`。

dsh-docling 的验证等级是什么意思?

未标注验证等级。上游未给出验证结论,安装前请自行确认

dsh-docling 安全吗?

未标注。

dsh-docling 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-docling 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-docling 有哪些功能?

解析 PDF 与 Office、离线 OCR 识别、输出 Markdown/JSON、本地运行保护隐私。

工具与能力
按星标排序,可作替代方案

loopx

loopx

LoopX 是面向长周期 Agent 的本地优先控制平面,作为 DSH plugin 为 DeepSeek Harness 提供持久目标、证

未标注验证等级 6,233 星

dsh-startup-screen

dsh-startup-screen

DeepSeek Harness 的启动界面与启动动画插件。

未标注验证等级 633 星

dsh-blender-plugin

dsh-blender-plugin

让 AI 模型通过直连 TCP 通道实时驱动 Blender 的 DSH plugin:15 个工具覆盖视口取帧、任意角度渲染、内循环搜索、

未标注验证等级 211 星

tokenledger

TokenLedger

TokenLedger 为 DeepSeek Harness 提供零配置的 Token 用量记账,自动归属到实际服务请求的中转站,无需凭据即

L5 · 运行验证通过 204 星

deepseek-harness-jev

deepseek-harness-jev

把 TypeSafe Jev 接入 DeepSeek Harness 作为 System One 决策层,为技能与文件选择、任务监督、纠偏和

未标注验证等级 203 星

sqhao-o 的其它插件

1 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。