← 返回列表
D

@maxwell-feng/dsh-windows-ocr

v0.2.3 · 0 天前发布

dsh plugin: recognize attached images with the built-in Windows OCR engine (Windows.Media.Ocr) and send only the recognized text to the model. Text models never receive image bytes; vision passthrough is opt-in.

dshdsh-plugindeepseek-harnessocrwindowsprivacy

README

windows-ocr

![Awesome DSH Plugin](https://awesome-dsh-plugin.com)

一个 DeepSeek Harness(dsh)插件:让纯文本模型也能"看"附件图片——图片在本机用 Windows 自带 OCR 引擎(Windows.Media.Ocr)识别,只有识别出的文字会发给模型 API。

隐私默认:图片字节在本机 OCR,不会发给服务商。只有当你明确想让真正的视觉模型接收原图时,才设置 passthrough: true

  • 不需要改任何模型配置——不用在 settings.yaml 里给模型加 input: [text, image]

  • 对 dsh 里的任何 provider/模型通用;默认所有附件图片在出站前都会先 OCR。

  • 视觉模型透传是可选开启的(passthrough: true)。

  • 默认安全(fail-closed):插件没加载时,模型保持纯文本,图片附件会被拒绝——不存在静默泄漏;缺失 attachment 的图片块会被替换为拒绝文本,绝不会以原始 image 块保留。
  • npm 安装

    bash
    dsh plugin --profile web add @maxwell-feng/dsh-windows-ocr

    (把 web 换成你的 profile,如 tui。)预编译发布(含 Sigstore provenance),无需源码构建或 allowBuilds 授权。从本仓库源码安装仍可用下

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    @maxwell-feng/dsh-windows-ocr
    Repo
    git+https://github.com/maxwell-feng/dsh-windows-ocr.git
    Engines
    {"node":">=20"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}